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

roaksoaxbigjools: o/00:47
bigjoolsroaksoax: latest precise package won't install02:46
roaksoaxbigjools: output?02:46
bigjoolsroaksoax: http://pastebin.ubuntu.com/1357069/02:48
roaksoaxbigjools: let me fix it02:48
roaksoaxbigjools: oh I know what the problem is :). you should be able to install it using a clean install02:51
roaksoaxi'll add the necessary conflict/replaces02:51
bigjoolsyeah ::)02:52
jtvsmoser, are you here?14:44
smoserjtv, here.14:44
jtvHi.  Has anyone asked you yet about ways to get our custom commissioning scripts into cloud-init?14:44
roaksoaxjtv: howdy! hey all the packaging changes you did to change the iscsi stuff from regin to cluster... that also applies to the stabilization branch, right?14:45
jtvHi!  Er... I don't think it did, but give me a moment to collect my memories about why.14:45
roaksoaxjtv: that applies to having the images in the cluster-controller rather than region-controller, which is part of the stabilization branch14:46
jtvAh.  I may be confusing different jobs there.14:46
smoserjtv, well, sort of. in denmark i talke da bit with rapheal on how it should be done... i 'd have to think again.14:47
jtvThere are associated changes to the codebase, so it's not just a matter of porting the packaging changes across.14:47
roaksoaxjtv: bug #106884314:47
ubot5Launchpad bug 1068843 in maas (Ubuntu Raring) "maas-cluster-controller doesn't have images for provisioning" [High,Triaged] https://launchpad.net/bugs/106884314:47
smoserwe need to re-wrk the way that stuff is done.14:48
jtvSo it needs a change in cloud-init?14:48
smoserthe rendering for commissioning user-data will basically output a cloud-archive format.14:49
smoserno changes to cloud-init.14:49
smoserjust to the rendering of the user-data.14:49
smoserjtv, i'll try to write something readable down at http://pad.daviey.com/custom-commissioning14:50
* jtv loads14:50
smoseris there a bug for this ?14:50
roaksoaxjtv: https://launchpad.net/maas/+milestone/12.10-stabilization has bug #1068843, which means that all the images should now be on the cluster-controller, right? This means that the tgtd stuff should also be backported to the quantal packaging, right?14:51
ubot5Launchpad bug 1068843 in maas (Ubuntu Raring) "maas-cluster-controller doesn't have images for provisioning" [High,Triaged] https://launchpad.net/bugs/106884314:51
roaksoax(because all the ephemerals will be in the cluster controller side, rather than in the region)14:51
=== matsubara is now known as matsubara-lunch
jtvsmoser: I don't think we have a bug for that yet, no.14:52
jtvroaksoax: yes, that means that the packaging changes should be backported to 1.2.  I was told that there had already been some packaging changes to make the cluster controller depend on tgtd as well.14:56
jtvsmoser: one particular concern was that we wanted to run the custom commissioning scripts from the main commissioning script, so that we can report success using the "signal" call (if appropriate).  We figured that having cloud-init run all the scripts itself probably wasn't going to a perfect fit.14:59
smoserjtv, right. but some thing syou might not want that.15:02
jtveparse15:02
roaksoaxjtv: alright, i'll take care of it15:04
jtvThanks.  Losing my laptop really knocked me out of things for a while.15:04
smoserjtv, right now in existing commissiong script, it is actually not difficult for the user to add something and have it get run, and then maas-signal to post its output back.15:06
smoserbut just because the user needs to send a file down does not mean they necessarily want it executed and its output posted back.15:07
jtvRight.15:07
smoserthe current script differenciates this by "add_bin" and "add_script". but obviously they might also want to send my_python_library.py down, which would then be used by my_commissioning_script.py15:07
jtvWe're not even talking about supporting that yet, tbh.15:08
jtvBut we do want to be able to report overall success, not just success for each of several scripts.15:08
jtvAnd of course failure for custom scripts that bail out without ever getting to the point where they report success.15:09
smoserjtv, does the stuff there make sense?15:19
jtvsmoser: having trouble figuring out the text tbh16:01
smoserhmm.16:06
jtvMost of the text seems to say that cloud-init will run the custom scripts, but then the very last line seems to assume that the maas harness script will do it.  How do the two fit together?16:06
smosercloud-init does what you tell it to do.16:06
smosermaas has to tell it to run the scripts16:07
smoserit does so by sending a script that executes the other peices.16:07
jtvThat's what we've been wanting, yes.  But I don't see it anywhere in the text, really.  It only says that cloud-init will run files it gets sent.16:10
smoseri've update dthe last line there, jtv, maybe morem explicit on that now.16:12
jtvsmoser: I guess one of the two prior points is wrong then... one says that cloud-init will run files whose names start with "report-" and the other says that cloud-init will act upon the other files.  But cloud-init in both cases.  I'm guessing that one of those was meant to be the maas harness script instead.16:15
jtvsmoser: sorry, had some trouble there — maybe I shouldn't have upgraded this machine after all.  :)16:29
jtvHmm... still can't connect to pad.daviey.com16:39
mgzdaviey appears to be down16:39
Davieymgz: i am always down with t16:53
jtvI like the front page...  just says "Error"16:54
Davieyjtv: i killed it, do you need it?16:54
jtvWe sort of do, yes.16:54
Davieyok, give me 216:54
mgzdaviey's getting on up16:55
* jtv has to leave now17:10
Davieysorry17:27
Davieywas on a call17:27
Davieyit's back up17:29
spideyman_jam: Hi, Do you have a few minutes to discuss the kernel_opt tagging?18:00
mgzspideyman_: he's probably not on now, as it's late in his timezone, but feel free to bug me instead18:01
jamspideyman_: so it is technically 5 hours after my EOD, but I'd like to give you help as much as possible18:01
jammgz: I was going to poke you, but it is your EOD to, isn't it ? :)18:01
mgzhe *shouldn't* be on... :)18:01
mgzI owe an hour or so anyway18:02
jamspideyman_: we essentially appreciate someone actually using the feature, since we want to make sure it is useful18:02
spideyman_jam: Ah yes..it's very nice, and sorry I didn't realize it was so late18:02
spideyman_mgz:I sent an email to jam yesterday regarding the issue. If you have some spare time to look at it, I'd appreciate it18:04
jamspideyman_: timezones being what they are, there really isn't "good" overlap between us.18:04
mgzspideyman_: I read the main18:04
mgz*mail18:04
jamspideyman_: so I think the starting thing is to just find out what is going wrong with your script, because it generally looks right from our end.18:05
jamSo probably we need to have you run it, and figure out what the state is after the script has run.18:05
spideyman_mgz: ah right. So essentially, I'm not seeing an update in the UI, and the node.tags.values() is empty...yet the tag is created successfully18:05
spideyman_jam: sure one sec18:06
mgzso, my one immediate thought was you probably just need to call save()?18:06
jamspideyman_: can you successfully go to http://.../MAAS/tags/<tag-name> ?18:06
jammgz: IME you don't need save for many to many relationships18:06
jamthey get written right away18:06
mgzin the custom methods we do that already, but when working directly on the model methods, they don't18:06
jambut maybe you need a save for the new creation?18:06
mgzright, I think perhaps.18:07
jammgz: though I could be wrong about the M2M18:07
jamsave() would certainly be something to try.18:07
spideyman_jam: running the script now..it will be a sec18:07
jamThough note that he didn't add a save around the workerNode.tags.add()18:08
mgzright, the details of the django orm I'm still unclear on, but the top block of code looks a little wrong18:09
mgzcreates 'new_item', then looks it up immediately and puts in 'created_tag', and uses that to add18:10
jammgz: the only one I could specifically point to is doing node.tags.create() vs Tag.objects.create(), and using a get() after the create rather than just using the created item.18:10
jammgz: right, it seems odd, though not specifically wrong.18:10
mgzso, seemed like something persistency might be going wrong there18:10
mgzspideyman_: so, specifically, try the following instead:18:11
mgznew_tag = Tag.objects.create(name=tag_name, definition="true", kernel_opts=kernel_opts)18:12
mgznew_tag.save() # may or may not matter18:12
spideyman_mgz: okay, I give it a shot. I actually need to reboot, as this VM is not responding well18:13
mgznew_tag.node_set.add(tagged_node)18:13
mgzand then maybe throw in another save just in case to start with, then if that works, try taking them out again :)18:13
spideyman_mgz: sorry for the delay...my vm wasn't cooperating.18:27
spideyman_mgz: https://pastebin.canonical.com/78396/18:27
spideyman_mgz: I'll paste bin the tag info18:27
spideyman_mgz: https://pastebin.canonical.com/78397/18:28
spideyman_mgz: and there's the tag that it created...but it's not attached to the node18:29
mgzcan you pastebin your script too?18:29
spideyman_mgz: and here's the code I added: https://pastebin.canonical.com/78398/18:29
spideyman_mgz: the messy but "working" copy is here: lp:~jeffmarcom/+junk/maas-cert if interested.18:35
spideyman_mgz: you'll find the whole script in question under maascert/control/maas_nodes.py18:35
mgzspideyman_: so, I'd just flip all that to something like...18:36
mgzhttps://pastebin.canonical.com/78401/18:36
mgzwhich is the simplest that you can persuade the ORM to do. the other thing to try is to not supply definition= at all.18:37
mgzhm, the fact the node is your own subclass may also have som bearing18:40
spideyman_mgz: hmm...still didn't work18:41
spideyman_mgz: that's true...everything has worked with it so far. I'd hoped that it wouldn't be an issue18:42
spideyman_mgz: wait...removing the definition worked18:45
mgzokay, seems that's what you want here anyway, as you're manually assigning the tag to the node18:46
spideyman_mgz: right...thanks so much!!18:47
mgzI wonder if the definition was borked because the reasoning is wrong on "true" being a good xpath to match everything, or whether the async nature of populate nodes is somehow messing with your setup18:48
mgzanyway, I shall now descend, but will stay in this channel under my other alias in case you have any other questions18:49
Pradeep_on quantal maas after doing "sudo apt-get install maas-dhcp maas-dns" do I need to edit the configurations manually for dhcp20:11
Pradeep_I remember in Precise it used to be interactive20:11
dannfhey Pradeep_  - yeah there used to be debconf settings for ip range, etc20:11
* dannf doesn't know how things work in quantl though20:12
Pradeep_on Precise also there used to be a dnsmaq template file where I can go and edit the configuration20:13
Pradeep_I was referring to this document http://people.canonical.com/~gavin/docs/lp:maas/install.html#disc-install for installation20:14
Pradeep_is dhcpd used in Quantal instead of dnsmasq?20:47
=== matsubara_ is now known as matsubara
=== dpb_ is now known as Guest75682

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