/srv/irclogs.ubuntu.com/2012/07/10/#maas.txt

=== matsubara is now known as matsubara-afk
ScheerIHello Dear Members! I would like to use xen under ubuntu maas cloude. Can someone show me some directions about it?11:09
ScheerII was searching howtos about, but I did'nt find anything.11:10
roaksoaxrvba: howdy!13:12
roaksoaxallenap: howdy13:12
rvba\o roaksoax.13:12
allenaproaksoax: Hello!13:12
roaksoaxrvba: so I'fe found a couple errors that seems to be related to JS script13:13
rvbaroaksoax: I'm listening :)13:13
roaksoaxallenap: so I so you added python-tx-tftp to trunk.. where's the source that you wanted me to package13:13
allenaproaksoax: otp, be with you in 20 minutes.13:14
roaksoaxrvba: i found them while testing the power stuff for ipmi, which also is buggy and doesn't work. Trying to fix it13:14
roaksoaxallenap: sure13:14
allenaproaksoax: https://github.com/shylent/python-tx-tftp13:14
roaksoaxrvba: let me get you access to the instance first13:14
rvbak13:14
roaksoaxrvba: oh and the SRU for maas 1.0... you are killing me man.. it requires overwriting the config on the SRYU and I'm not sure whether we wanna do that13:15
roaksoax:)13:16
roaksoaxrobbiew: you are welcome! here's the ipmi patch http://paste.ubuntu.com/1084518/ you should patch /usr/share/pyshared/provisioningserver/14:08
roaksoaxrobbiew: then sudo service maas-pserv restart && sudo service apache2 restart14:08
roaksoaxrobbiew: i haven't yet uploaded a new version as there are a few JavaScript issues I wanna run first with rvba14:08
rvbaroaksoax: I'm back, I'll have a look at the JS issue right now.14:09
robbiewRoAkSoAx: nice, thanks!14:09
roaksoaxrvba: awesome. so 1. Add button doesn't respond (sometimes) 2. When editing node, sometimes power parameters boxes are not automatically shown. 3. when editing a node, some images seem to not show. That's up to bzr72014:10
rvbaroaksoax: the "sometimes" is frightening.14:10
roaksoaxrvba: is enum.js correlated to any of these?14:11
rvbaroaksoax: I don't think so.14:12
roaksoaxrobbiew: you're welcome. just let me know if you run into any more issues14:13
roaksoaxrvba: ok!14:13
robbiewRoAkSoAx: for sure14:14
rvbaroaksoax: that's what my gut feeling tells me but I'll investigate and get back to you.14:14
roaksoaxrvba: alright, cool, thanks14:14
rvbaroaksoax: the problem is indeed related to the enum.py change.14:19
rvbaroaksoax: we're looking for code snippets based on the names of the available power methods.14:20
roaksoaxrvba: hold on, I applied this patch http://paste.ubuntu.com/1084518/ for it to work14:21
roaksoaxrvba: however, even with the patch applied there's JS issues14:21
roaksoaxrvba: i.e. I select a different power method, and the boxes stay and JS does not update14:21
rvbaroaksoax: all the problems I see are related to the wrong enums.py.14:26
roaksoaxrvba: this is what I see: http://people.canonical.com/~andreserl/power.png14:27
roaksoaxallenap: the tft is still not operational right?14:32
rvbaroaksoax: also, the problem with the images is a bug, plain and simple, a wrong path.  I'll fix that right away.14:35
roaksoaxrvba: cool14:36
roaksoaxrvba: btw.. who disabled http://paste.ubuntu.com/1083378/14:38
roaksoaxrvba: its breaking enlistment14:38
roaksoax)14:38
roaksoaxrvba: because maas-enlist in precise sends after commmissioning action = 214:39
rvbaroaksoax: hum, bzr blame says Jeroen did that, not sure why...14:40
rvbajtv: are you around by any chance?14:40
roaksoaxrvba: heh, ok, I'll reenable it14:40
rvbaroaksoax: let me track down in which branch it was disabled first.14:41
roaksoaxk ;)14:41
rvbaI don't think Jeroen did that without a good reason.14:41
rvbaroaksoax: that change looks wrong.14:47
roaksoaxrvba: ok, I'll get that fixed then14:47
rvbaroaksoax: cool14:47
roaksoaxallenap: so let me know when we can discuss the tftp stuff please14:51
roaksoaxrvba: would you be so kind of reviewing https://code.launchpad.net/~andreserl/maas/reenable-after-commission/+merge/11420614:59
roaksoaxabd https://code.launchpad.net/~andreserl/maas/correct_power_methods/+merge/11419814:59
roaksoaxi need to roll up an update14:59
roaksoaxa packaging update14:59
rvbaroaksoax: I'm getting confused now, why did you s/ipmi/ipmitool/ exactly, that seems to be what caused the problem...?15:00
roaksoaxrvba: because ipmi looks for a file like: /etc/cobbler/power/power_ipmi.template which doesn't exist and consequently fails15:01
rvbaI mean these values are completely internal.  But the problem arises where there is a difference between enum.py and enums.js.15:01
rvbaroaksoax: oh, I see, maybe we should simply rename the template then.15:01
roaksoaxrvba: right, but renaiming the template causes more problems because we have to SRU to precise, and roll testing updates of maas-provision and etc etc15:02
rvbaWell, I guess it's six of one and half-a-dozen of the other.15:02
rvbaroaksoax: ok15:03
roaksoaxrvba: i think once cobbler is ditched, we can change them back15:03
rvbaLike I said, these values are internal so it's really not a problem.15:03
roaksoaxok cool :)15:03
rvbaroaksoax: but that template should be shipped in MAAS itself rather than fetching those from cobbler.15:05
roaksoaxrvba: right, but we are still using cobbler for power management15:05
rvbaroaksoax: MAAS supports that now, the templates are in: ./src/provisioningserver/power/templates/15:06
rvbabut we only have ether_wake.template  virsh.template right now.15:07
roaksoaxrvba: and are these templates being used to do the power management?15:07
roaksoaxrvba: because, as I can see, these are still pushed into cobbler15:08
rvbaroaksoax: they should be.  At least everything is in place to do so.  I'm not sure if the very last bit of wiring has been done though.15:08
roaksoaxrvba: ok, as far as robbiew tests from yesterday, it is cobbler the one who stll does the power management15:09
roaksoaxrvba: http://pastebin.ubuntu.com/1083356/ -> that's the error15:09
roaksoaxin cobbler15:09
roaksoaxrvba: that's why I';m saying, once we ditch cobbler we can simply merge rename then and add the templates15:10
robbiewRoAkSoAx: I haven't tested the patch you sent yet, but I was able to set IPMI-over-LAN without the previous error...so a good sign15:11
robbiewoddly, I had to select IPMI-over-LAN...save...and then go back to add the IPMI-over-LAN info15:11
rvbarobbiew: that's weird.15:12
rvbarobbiew: you mean the power info was not persisted the first time you saved the page?15:12
roaksoaxrvba: it didn't persist because it failed to save15:14
rvbarobbiew: about the branch "reenable-after-commission", I don't think we want to enable "NODE_AFTER_COMMISSIONING_ACTION.CHECK".15:14
robbiewRoAkSoAx:  right...I selected it, and I wasn't able to fill in the info15:15
robbiewuntil I saved and went back to edit again15:15
rvbarobbiew: err, roaksoax ^15:15
roaksoaxrobbiew: yeah that's a JS issue that will be fixeddnoce  role up the nn package15:15
roaksoaxrobbiew: i'll update the branch15:15
roaksoaxerr15:15
roaksoaxrvba: :)15:15
rvbahaha :)15:15
roaksoaxhaha15:15
roaksoaxrvba: so anyways, the problem was thii. 1. edit node. 2. select  ipmi. 3. save failure. Why? because when the information was sent to cobbler there was no power template named power_ipmi.template15:16
roaksoaxrvba: cobbler failed, telling maas "I failed", and consequently maas didn;t save15:17
rvbaI get it now.  Note that this whole power management UI was never meant to be used with Cobbler.15:17
roaksoaxrvba: so changing s/ipmi/ipmitool sets the power type ot ipmitool in cobbler, which works, and maas can save the node15:17
roaksoaxrvba: oh indeed, but it is still doing so15:17
roaksoaxrvba: still sending the updates to it15:18
rvbaroaksoax: Right, we need to change this.15:18
robbiewRoAkSoAx: just did a juju deploy and the machine was allocated...but not powered on :/15:18
roaksoaxrobbiew: uhmm ok I think what it is wrong15:21
roaksoaxrobbiew: i think we need the ipmi templates then15:21
robbiew RoAkSoAx:  I have templates in /etc/cobbler/power15:22
robbiewdo they need to be somewhere else?15:22
roaksoaxrobbiew: i think maas is not using cobbler for that anymore15:22
robbiewah15:23
roaksoaxi'll have to check that15:23
rvbaroaksoax: I'm not sure your fix to enum.py will be us very far.  Like I said, there parameters are not meant to work with cobbler template so the fact that the names are almost compatible is mostly luck (well, and the fact the our templates are greatly inspired by cobbler's templates).15:26
rvbas/will be/will get/15:26
rvbas/there parameters/these parameters/15:26
roaksoaxrvba: https://code.launchpad.net/~andreserl/maas/reenable-after-commission/+merge/114206 updated15:30
rvbaroaksoax: the thing is that these values were disabled because there is no actual implementation behind them.15:32
roaksoaxrvba: right, the problem is this: "power_type = ipmi" is save as power_type in cobbler, and that power type in cobbler does not exists15:32
roaksoaxrvba: so when virsh and ether_wake where created in maas, they matched the names of power_type in cobbler15:33
rvbaroaksoax: maybe maas enlist should simply use the default value (0) instead.15:33
robbiewwell all I know is that if I run the command in the cobbler ipmilan template...it works :)15:34
roaksoaxrvba: yeah but I15:38
roaksoaxrvba: yeah but I'd need to SRU that15:38
roaksoaxand SRU takes times :)15:38
roaksoaxrobbiew: cool, yueah so it seems that maas is not using cobbler for that anymore15:40
robbiewcoolio15:40
robbiewno biggie..it's clearly trivial, so I can tell folks it's coming soon ;)15:41
roaksoaxrobbiew: i'll try to get that working within maas itself by tonight15:41
roaksoaxrvba: removing those after commissioning actions is a feature removal and is not backwards compatible15:42
rvbaroaksoax: even better, you can just omit the 'after_commissioning_action' parameters during enlistment and the default action will be picked up by MAAS.15:43
rvbaroaksoax: well, not really, we simply removed the UI because there was nothing behind it.15:43
rvbaroaksoax: if we want to enable these only to test things, then that's fine but it really doesn't make sense to enable them on trunk as there is no functionality behind it.15:46
roaksoaxrvba: right the only problem i see is that we need to fix maas-enlist in precise15:49
rvbaroaksoax: is that a problem only because of the SRU thingy?  I confess I don't really know how much work that involves so I'll let you and Daviey be the judges on that... but I'd rather not enable an option in the UI which doesn't mean anything yet.15:53
roaksoaxrvba: SRU in this case is really simply TBH15:56
roaksoaxrvba: but if I wanted to add more functionality then that's a problem SRU'ing15:56
roaksoaxor bacporting15:56
rvbaroaksoax: so I guess we can fix maas-enlist then.15:57
roaksoaxrvba: http://paste.ubuntu.com/1084714/15:57
roaksoaxrvba: that's the fix15:57
roaksoaxrvba: thast';d be default15:59
rvbaroaksoax: that will use 0 which happens to be the default currently but if you simply remove that parameter, then MAAS' default will be used.16:00
roaksoaxrvba: I can do that, but, will it be useful sometime in the future?16:01
roaksoaxpassing different commissioning option16:01
rvbaroaksoax: not sure about that, setting it to 0 is fine by me.16:02
roaksoaxrvba: anyways, I'm more concerned about the power_management stuff rather than that16:02
roaksoaxrvba: so what do we do about that? I think we should rename back to ipmi/ipmi_lan once cobbler is ditched16:04
roaksoaxrvba: and add the templates that can be later renamed too16:04
roaksoaxrvba: that's simple enough16:04
rvbaroaksoax: we could do that but I confess I'm concerned about the fact that this still uses cobbler's template.  That really is a gamble.16:05
roaksoaxrvba: i think it is not using cobbler template. robbiew confirmed maas is not powering on a machine, but cobbler is. which means maas seems to not be telling cobbler to power it on16:06
roaksoaxrvba: it is either, not send the power_type to be saved in cobbler, or send a power_type that cobbler support, hence the patch16:07
rvbaroaksoax: the error you pasted was about cobbler not recognising the power setting, so MAAS talks to cobbler.16:08
roaksoaxrvba: right, the problem is maas tells cobbler16:08
roaksoax"16:08
roaksoax"save these power options, and send power_type =ipmi"16:08
roaksoaxrvba: cobbler says "16:08
roaksoaxrvba: cobbler says "i don't know ipmi, but I have ipmitool ipmilan"16:08
roaksoaxrvba: that's why it fails, but when it comes to *power on* it is not using cobbler aparently16:09
rvbaroaksoax: right, that makes sense.16:09
roaksoaxrvba: when the power inteface was first developed, the power types were set to the same names cobbler supports. In our case, cobbler supports virsh, ether_wake, ipmitool, ipmilan16:10
rvbaroaksoax: I'm ok to approve the MP if it unblocks you, but we will need to work on that to get it properly working.16:10
roaksoaxrvba: so MAAS power_types were virsh and ether_wake, to *match* cobbler supported ones16:10
roaksoaxrvba: yes please. I'll start looking on it after I prepare a package update16:11
rvbaroaksoax: ok16:11
=== matsubara-afk is now known as matsubara
rvbaroaksoax: ~andreserl/maas/correct_power_methods will be landed shortly.  I tried to summarize our findings (well, your finding :) ) on the MP.16:19
roaksoaxrvba: awesome, thanks!16:19
rvbaroaksoax: thank *you* :)16:20
roaksoaxheh :)16:25
robbiewRoAkSoAx: If you just wanna send me a patch to use the right cobbler template, I can roll with that....no need to do work that we have to undo once cobbler is removed16:30
rvbaroaksoax: don't forget to regenerate (manually for now) enums.js.16:32
roaksoaxrobbiew: will do! I'll just try to fix everything to work right rather than have a temporary patch16:32
roaksoaxrobbiew: will do ;)16:32
roaksoaxrvba: will do :)16:35
roaksoaxrvba: ah so the power stuff is using celery then16:40
rvbaroaksoax: yes, but we have only templates for virsh and ether_wake right now.16:41
roaksoaxrvba: yeah i'll take care of the ipmi ones then :)16:41
rvbaroaksoax: adding support for ipmi shouldn't be too complicated though.16:41
rvbaroaksoax: \o/16:42
rvbaroaksoax: note that we can do it really :)16:42
roaksoaxrvba: hehe no worries, I'll take care of it :)16:42
rvbaroaksoax: all right, thanks.  I need to go now but I'll review your branch(es) tomorrow (my) morning if you have branches up for review by then.16:45
roaksoaxrvba: will do, thanks16:55
roaksoaxrobbiew: do you happen to have the output of the command "/usr/bin/ipmitool -H "$power_address" -U "$power_user" -P "$power_pass" power "$power_mode"" ?17:24
robbiewRoAkSoAx: you mean run it with those variables filled in..or find that output in some sort of log17:27
roaksoaxrobbiew: i'd like the output of the command if you replafce it with the real values17:28
roaksoaxi.e.17:28
roaksoax> ipmitool -I lan -H 1.2.3.4 -f passfile chassis power status17:29
roaksoaxChassis Power is on17:29
robbiewack17:29
* robbiew turns them off first17:30
robbiewRoAkSoAx: http://pastebin.ubuntu.com/1084872/17:36
roaksoaxrobbiew: what about if you pass the "status" option17:40
robbiewI just turned it back off, so the status returned:  Chassis Power is off17:41
roaksoaxrobbiew: ok cool thanks17:41
roaksoaxrobbiew: so in maas are you using IPMI or IPMI LAN?17:42
robbiewI was using IPMI LAN17:43
roaksoaxrobbiew: alright cool. I almost have a patch for you17:47
robbiewRoAkSoAx: okay, so I have to run to lunch...will be back in a little over an hour...then I'll have to break this stuff down and leave for Houston, but I'll try and test before17:47
robbiewRoAkSoAx: just email me the patch or link to pastebin...just in case ;)17:48
roaksoaxrobbiew: will do17:48
* roaksoax food18:26
allenaproaksoax: Hi there. Any ideas about http://askubuntu.com/questions/159436/default-password-for-ubuntu-12-04-maas-image/160391? Lots of people seem to be having a similar problem, where their SSH keys are not being propagated to the nodes.19:33
* roaksoax looks20:00
roaksoaxallenap: seems like ssh keys were added *after node enlistment but i thought that bug didnt exist anymore*20:03
allenaproaksoax: Do you mean enlistment, or allocation? I don't remember this bug :_-/20:09
allenapThat should have just been :-/ I haven't been in an accident today.20:09
roaksoaxallenap: can't remember TBH, or the keys have to be added before they get accepted after enlistment20:10
roaksoaxallenap: i'll have to test20:10
roaksoaxallenap: maybe the users accept & commission and then they add the users20:16
allenaproaksoax: Ah, could be. So, maybe not a bug in the conventional sense, but a fairly major usability flaw. I'll talk about it with the other squaddies tomorrow morning. Thanks.20:24
roaksoaxallenap: cool. we';ll have to confirm though20:24
allenaproaksoax: Also, lp:python-tx-tftp has imported.20:24
roaksoaxallenap: yeah I saw, I'll package it as soon as possible20:26
allenapAwesome, thanks :)20:28
roaksoaxallenap: what's the license?21:29
allenaproaksoax: MIT.21:29
roaksoaxallenap: coolt hanks21:30
roaksoaxallenap: you don't happen to have his email, do you?21:36
allenaproaksoax: No, he won't give it up :) I've been communicating exclusively through issues and pull requests on GitHub.21:38
roaksoaxallenap: heh.. that's weird21:38
roaksoaxallenap: ahh dahh mark.lvov@gmail.com>21:45
allenaproaksoax: Where did you find that?21:47
roaksoaxallenap: launchpad///21:47
roaksoaxallenap: 31. By shylent <mark.lvov@gmail.com> on 2012-07-0221:47
allenaproaksoax: Hehe, tip top :)21:48
allenaproaksoax: Have a good evening, I'm off now.21:49
roaksoaxallenap: you too21:49
robbiewRoAkSoAx: hey...so I applied the patch as you suggested and restarted celery...nothing :/23:05
robbiewshould I try removing the machines, and adding freshly?23:05
roaksoaxrobbiew: what's the output of /var/log/maas/celery.log?23:05
robbiewhttp://pastebin.ubuntu.com/1085367/23:07
robbiewRoAkSoAx:   ^23:07
* roaksoax looks23:08
roaksoaxrobbiew: never seen that one before, and I don't see it in a newer version of the one I'm running. can you pastebin the whole log?23:20
robbiewone sec23:20
roaksoaxrobbiew: and can you also pastebin /etc/maas/celeryconfig.py and /etc/init/maas-celery.conf23:22
robbiewhttp://pastebin.ubuntu.com/1085386/23:24
robbiewcelery.log23:24
robbiewhttp://pastebin.ubuntu.com/1085387/23:25
robbiew/etc/maas/celeryconfig.py23:25
robbiewhttp://pastebin.ubuntu.com/1085388/23:26
robbiew/etc/init/maas-celery.conf23:26
robbiewRoAkSoAx: there ya go!23:26
roaksoaxrobbiew: can you add this "env PYTHONPATH="/usr/share/maas/" to /etc/init/maas-celery.conf right before the "exec"? should look like:http://paste.ubuntu.com/1085390/23:28
roaksoaxrobbiew: that's already fixed and I'm preparing an update23:28
robbiewdone23:29
roaksoaxrobbiew: so then would be "sudo service maas-celery restart"23:29
roaksoaxrobbiew: and pastebin /var/log/maas/celery.log again please23:29
robbiewhttp://pastebin.ubuntu.com/1085393/23:31
roaksoaxrobbiew: ok it should work now23:32
* robbiew is waiting for bootstrap to complete23:33
robbiew:)23:33
robbiewwill try soon23:33
roaksoaxalright cool, in the meantime I'l finish preparing the update23:33
robbiewRoAkSoAx: http://pastebin.ubuntu.com/1085403/23:39
robbiewfailed :/23:39
* roaksoax looks23:43
roaksoaxrobbiew: ok, so what if the ipmilan.template gets modified like this> http://paste.ubuntu.com/1085418/ (it would require restart of maas-celery maas-provision and apache2)23:54
robbiewoh wait...power_id is supposed to be the IP address?23:55
robbiewI thought it was the user id number23:55
roaksoaxrobbiew: the IP address23:56
robbiewffs23:56
roaksoaxrobbiew: that might indeed be the cause of the failure23:56
roaksoaxrobbiew: I'm fixing that too cause the names are bias23:57
robbiewso yeah...I was wondering how the IP was determined...I assumed MAAS provided it based on the hostname lookup23:57
roaksoaxit is actually the first time i'm looking at this so it clearly needs lots of things to get improved23:57
robbiewno worries23:57
robbiewme too :)23:57
roaksoaxhehe :)23:57
robbiewbut given MAAS knows the hostname23:58
robbiewoh wait23:58
robbiewnevermind23:58
robbiewIPMI IP address != hostname23:58
* robbiew has to go to team dinner...I'll shoot you an email with the results of ip address change23:59
roaksoaxrobbiew: alright, cool, and if that doesn't work try the minimized template :)23:59
robbiewheh23:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!