/srv/irclogs.ubuntu.com/2012/11/13/#maas.txt

shangbigjools: Q: are the maas-nocobbler being backported to precise yet?02:43
bigjoolsshang: it will be a couple of weeks yet02:43
shangbigjools: ah... ok :)02:43
allenapDaviey: Hello there guvnor. Do you want to talk about https://code.launchpad.net/~allenap/maas/remove-squashfs/+merge/133954 at all?11:06
Davieyallenap: not without mediation. :)11:07
allenapDaviey: Just a short quarrel?11:08
Davieyallenap: nah, not particularly.... I would rather issues were fixed, than just dropped.. but i'm not going to get emotional about it.11:08
Davieyallenap: It was really, that there was a fairly significant MP.. with no commentary as to why.11:09
* Daviey alos notes there is no unit tests, testing the removal is solid :)11:09
allenapHehe :)11:09
allenapDaviey: I'd like to reintroduce it at some point, but without the imminent pressure of a release.11:10
Davieyallenap: do you want artificial pressure?11:12
Davieyallenap: TBH, the FPI might make it pointless to reintroduce11:13
allenapDaviey: That's cool too.11:13
rbasakGenerally we want to merge stuff to trunk without breaking anything, right? And if it does break something, then we revert the merge and try again later? Otherwise we'd be red all the time. Think of this as just that?11:15
Davieyrbasak: Are you trying to use logic here?  Why let logic get in the way of a perfectly good complaint.11:17
rbasak:)11:18
rbasakallenap: what's the current schedule? THere's some stuff I'm working on that I'd like to make for the SRU/whatever11:18
* rbasak hadn't realised that anything was imminent11:19
allenaprbasak: I don't know that there's a date other than as soon as we can.11:21
rbasakOK11:22
allenapWhy won't lxc-start-ephemeral f****** work?12:23
allenapAh, because it's a shell script silently ignoring an error code.12:23
czajkowskiallenap: having a good day then are you!12:25
allenapczajkowski: Absolutely. MAAS has taught me to distrust everything written in shell. I'm still in the <rage> state though; not into acceptance yet.12:26
roaksoaxallenap:  why was import-squashfs removed?13:00
roaksoaxDaviey ^^13:02
allenaproaksoax: It's not working. There's some detail in https://code.launchpad.net/~allenap/maas/remove-squashfs/+merge/133954.13:33
roaksoaxallenap:  just responded to the comment13:34
roaksoaxas a comment13:34
roaksoaxsmoser: howdy! what was the example package you gave me for the SRU from quantal to precise-updates?14:01
smoserwalinuxagent14:02
roaksoaxsmoser: who should we talk to, SRU and security teams, right?14:03
roaksoaxsmoser: ah but walinuxagent is HW enablement, and its covered by the SRU policy14:03
smoserroaksoax, yeah, you're right on who to tlak to.14:06
smoserwalinuxagent as HW enablement is BS.14:06
smoserbut yeah, it was probably sold as such.14:06
roaksoaxlol ok14:06
smoserwe do have a valid interest.14:06
smoserits not like you and i just decided to do something sneaky and increase burdon for support.14:07
roaksoaxindeed14:10
Lele_Hi guys, is there any way to delete nodes once they are allocated14:11
Lele_i have nodes ins status "allocated to root"14:11
Lele_and i cannot delete them from the dashboard14:11
Lele_cause the delete button is greyed out and says "you cannot delete this node cause its in use"14:12
Lele_and im the owner of it14:12
Lele_if i delete them from the maas shell, its a correct procedure ?14:17
Lele_Node.objects.get()14:17
Lele_and then .delete14:17
melmothLele_, i dont know the internals, but what about first juju-terminate the services (or units) that maas thinks run on this machine ?14:19
rvbaLele_: yes, that's the correct 'manual' procedure.14:19
Lele_melmoth i was going to integrate maas with juju now, and i need 3 deallocated nodes, when i was ready to delete one to start the task i found that i cannot delete "cleanly" without juju integration14:27
Lele_so it was kinda egg-chicken situation14:27
Lele_im going to delete it from the maas shell, hope that all the other "dependant" services get cleaned ok14:28
Lele_ok rvba im going to do that way14:28
Lele_hmmm, seems that the shell doest allow me to do this either14:29
Lele_NodeStateViolation: Cannot delete node node-be1bc94e-29ec-11e2-bbd6-0025901e4c74: node is in state Allocated.14:29
allenapLele_: The node needs to be released first, which can be done via the command line.14:30
allenapLele_: It sounds like you might not want to delete the node, just release it back to MAAS.14:31
Lele_allenap, with the maas-cli ?14:31
Lele_yep thats what i want allenap14:31
allenapLele_: Yeah.#14:31
Lele_allenap, about that, i cant find the docs, whats the correct url to do the maas login14:33
Lele_so im getting and empty reply from the servers14:33
Lele_cause i get a 30214:33
Lele_i tried: maas-cli login maas http://172.16.167.14/MAAS/api/v1.014:34
Lele_maas-cli login maas http://172.16.167.14/MAAS/api/v2.014:34
Lele_maas-cli login maas http://172.16.167.14/MAAS/api/14:34
allenapLele_: maas-cli login maas http://172.16.167.14/MAAS should be enough.14:34
Lele_ok ill try allenap14:34
Lele_niceeee im in allenap thanks14:35
allenapLele_: Now: maas-cli maas node release <system-id>14:36
allenapThough finding out the system ID might take another step.14:36
allenapmaas-cli maas nodes list-allocated14:36
Lele_yep allenap maas-cli maas nodes lists14:37
=== matsubara is now known as matsubara-lunch
Lele_allenap will be nice if the "status" of the node, on the JSON response, had a status_description14:39
Lele_for example 6 is allocated14:39
Lele_etc14:39
Lele_so if we use the json output on a python script we dont need to mantain mappings within the status codes ids14:40
allenapLele_: Yes, agreed. rvba, can we get Piston to emit read-only fields? i.e. we create a status_description property on the model and Piston serialises it, but ignores it on write?14:41
rvbaallenap: yes.  A property on the model will work.14:45
Lele_allenap , rvba NICE :)14:47
roaksoaxsmoser: do you think we should start shipping maas-signal and maas-autodetect-ipmi with maas source itself?15:24
roaksoaxor at least with the packaging15:24
roaksoax?15:24
smoserit would seem to make sense for them to be in maas upstream source, yeah.15:25
smoserand then a binary package built from that.15:25
smoserthats a good idea.15:25
smoseror at least i can't think of any reason why not15:25
roaksoaxok cool15:25
roaksoaxsmoser: i think we should also start looking at dropping maas-enlist15:28
smoserroaksoax, where did that function move to ?15:30
roaksoaxsmoser: if we are backporting15:31
roaksoaxsmoser: poh hold on, the installer still uses it15:31
roaksoaxswo never mind :)15:31
=== matsubara-lunch is now known as matsubara
roaksoaxrvba: howdy! how do I add tests to scripts I'd like to add to maas/contrib?15:52
rvbaroaksoax: the natural place for a script would be scripts/.  Why do you want to put it in contrib/ ?15:57
roaksoaxrvba: err yeah, scripts :)15:58
roaksoaxrvba: i'm g0onna place two new scripts there, and I'd like to also add the tests for them15:58
roaksoaxrvba: and that probably will create a new binary package15:59
rvbaroaksoax: you can have a look at src/provisioningserver/tests/test_maas_import_pxe_files.py15:59
rvbaThat's a good example of tests testing a script.16:00
roaksoaxrvba: cool thanks. But now, where should the test be placed ? (these scripts only affect enlistment/commissioning process, so they don't really belong anywhere under src/*)16:00
rvbaroaksoax: these scripts are going to end up in a different package right?16:01
roaksoaxrvba: most likely yes16:02
rvbaroaksoax: then I think the best option is to create another module in src/.16:02
rvbaallenap: any opinion on that? ^16:02
roaksoaxsmoser: on the ipmi detection, do you think it would be a good idea to wait 60 seconds before obtaining the IP address of the IPMI card at all ties?16:07
roaksoaxtimes*16:07
smoserwhy would you do that?16:07
roaksoaxsmoser: becuase there's some situations on which it obtains a 0.0.0.0, and appears to be that the IP address gets set after that16:08
roaksoaxsmoser: due to maybe DHCP taking to much time, or maybe due to IPMI failing to query the card correctly16:08
roaksoaxsmoser: i.e., in my home setup, enlistment gets IP address for 2 servers correctly, but the third one gets 0.0.0.0, however, the IPMI card does have an IP address set, and it seems that the bmc command failed to correctly obtain the IP address16:09
roaksoaxmaybe the card requested the address again or something16:09
roaksoaxso in that case it would kinda make sense to wait 60seconds and try again16:09
roaksoaxand if it doesn't work, then exit16:10
roaksoaxsmoser: http://paste.ubuntu.com/1355779/16:10
smoserroaksoax, i guess that "wait some time and try again if ip looks invalid" is ok.16:13
smoserbut i didn't want "always wait 60 seconds"16:13
smoseras we dont want to delay the "all working" path16:13
roaksoaxright :)16:14
roaksoaxthought so too hence the diff16:14
roaksoaxalright, thanks for the input16:14
roaksoaxsmoser: i think that probably on commissioning we might no longer need to try to detect the IP address of the card, as it would/should be the same16:15
smoserroaksoax, that also does seem reasonable.16:19
roaksoaxyep, I'll get that updated then16:20
=== pcarrier_ is now known as pcarrier
bigjoolso/ roaksoax23:15

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