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

Davieyjtv: are you alive yet?00:00
mgzwhy are you still alive Daviey...00:04
Davieydammit.. it was HIM i wanted00:12
Davieygit!00:12
=== matsubara is now known as matsubara-afk
Davieyallenap: Mornin'08:12
Davieymgz: Mornin'08:22
Davieymgz: I could do with chatting to you :_08:22
mgzDaviey: sur08:24
mgzer... sure, not french for on.08:25
Davieymgz: Well.. tags.. they should be working right?08:26
Davieyas in, commissioning should be discovering some characteristics ?08:26
mgzDaviey: yup.08:26
Davieymgz: If i told you it was returning an empty set for arm and G-lab, what would you say?08:27
mgzwe don't create any default tags at the moment, so you need to set them up yourself08:27
DavieyOh!08:27
Davieyhow come?08:28
mgzbut filling in cpu_count and memory uses a similar mechanism, so if your nodes have those then tags will works08:28
mgzmostly because we don't know what people actually want08:28
Davieymgz: ii'm just seeinf []08:28
Davieyseeing*08:28
mgzI like the idea of documentation explaining how to do things and having examples08:28
Davieymgz: I imagined we'd get defaults of mem-$(free -g) and cpu-(numbr of cores) at least08:29
mgzwell, we have that anyway with the mem and cpu values08:30
Davieyhow do i query it then?08:30
mgzvia what means? you use the juju constaint form, either when acquiring a node, or on the nodes page on the site08:30
Davieymgz: http://pb.daviey.com/E2TV/08:31
mgzie, http//maas.dev:5240/nodes/?query=cpu=408:31
mgzright, unless you add some tags, your nodes will not have any tags :)08:32
mgzso, use the commandline client to create some08:32
=== lifeless_ is now known as lifeless
Davieymgz: I'm sorry if i am being dumb.. but how does that work?08:33
mgzyou supply a tag name, a definition, and optionally a comment08:33
Davieyhow does a definition work?08:33
mgzthe name is what you use to look up against nodes, the definition is an xpath that runs against the lshw output08:34
Davieymgz: http://192.168.9.1/MAAS/nodes/?query=cpu=24 is null by default?08:34
mgza trivial test is using 'true' as the definition, that will then be set on all nodes08:34
Davieymgz: Ok, is this captured in doc's?08:34
mgzyou have nodes with 24 or more cpus?08:35
Davieyyes08:35
Daviey15 of them :)08:35
mgzif you select one of them, do they have the correct cpu count?08:35
Davieyah, interesting.. they do no08:36
Davieythey show 2!08:36
mgzthere is no user-facing docs yet, we needed code in for freeze, we need docs for release08:36
Davieyand 49152 MB mem08:36
Daviey(should be 42GB!)08:36
mgzokay, so the trick will be to find out if it's the lshw output that's wrong, or our query08:37
mgzif you can extract that and post it somewhere, will tell you if it's a platform bug or a maas bug08:37
Davieyok08:37
mgzso, if you look at that output, there may be some other facet you care about, which you can then add a tag for08:38
mgz(it's not that useful with an entirely homogeneous cluster)08:38
Davieyhttp://pb.daviey.com/fKJs/08:39
mgz...we probably want an easy way of getting that lshw stuff as I suspect this might be a common support question08:39
mgzthat lists two cpus.08:40
Davieyhmm, only showing two cpu's.. but multiple cores i guess08:40
Davieythis one has 24 cores, ubuntu@node-0025904c7eb4:~$ cat /proc/cpuinfo  | grep processor | wc -l08:40
mgzwith multiple cores and threads per cpu08:40
Daviey2408:40
mgzwhat's the actual box? two hexacore chips with hyperthreading?08:41
Davieymgz: So.. is physical cpu, or core more important ?08:41
Davieymgz: NFI08:41
Davieyubuntu@node-0025904c7eb4:~$ sudo dmidecode | pastebinit08:41
Davieyhttp://pb.daviey.com/SOhU/08:41
mgzprobably the core count.08:42
mgzplus or minus hyperthreading08:42
mgzokay, so example tag to match that08:43
mgzI'm not sure the exact thing you use via the client, but it's along the lines of08:43
mgz*... addtag* --name dual_hexacore --definition "count(//node[@class='processor']/configuration/setting[@id='cores' and @value=6]) = 2"08:46
Davieymgz: Do you have ideas how we could add some common ones OOTB?08:47
Davieysuch as that08:47
mgzwell, that one doesn't seem common, but adding anything you suggest as examples would be fine :)08:47
DavieyUsers can always delete them.. but this feels so complex, that nobody will bother using it without some already provided08:47
mgzright, so one option is to fake instance types a little08:47
Davieymgz: Do you want to list some viable defaults ?08:48
mgzso, have a few set tags that are "box with about cpu/mem/other of X'08:48
Davieysounds reasonable08:49
Davieywhat do others think?08:49
mgzthe downside is composite tags like that will be very complicated compared to single purpose ones that just look at one detail of a box08:50
Davieyright08:50
mgzso, it's good to provide them, but they're bad examples to work off08:50
mgzDaviey: can you file a bug about your cpu_count and attach that lshw output?08:51
mgzbecause that wants fixing regardless I suspect08:51
Davieymgz: cpu_count should be cores rather than physical cpu's?08:53
mgzthat makes more sense to me08:54
mgzjam: it's meant to be your day off!08:58
mgzbad jam.08:58
lifelessDaviey: prob /proc reported cpus, so neither physical nore cores.08:59
Davieylifeless: I'm not qutie sure what i am seeing.  I assumed /proc/cpuinfo == lshw :)09:02
Davieybut it does not.09:02
jammgz: I'm off, I'm browsing for cars, and figured I'd check email.09:14
jamtoo much crap to do when moving...09:14
jammgz: what do you think about leaving out the 'bank:' in the xpath09:15
jambetter to have it or not have it?09:15
jamIt feels like we're getting to the place where that XPATH expression should be a configuration variable, so it can be tweaked in the field.09:15
jammgz: plus, if I can spend 5-10 min to keep you guys unblocked, as long as my wife doesn't notice, it is time well spent :)09:23
rbasakDaviey: please could you see bug 1065763? This is dannf's issue from yesterday.09:24
ubot5Launchpad bug 1065763 in MAAS "UI URL gives HTTP error 200 after CD install" [Undecided,New] https://launchpad.net/bugs/106576309:24
rbasakAs a dpkg-reconfigure maas-region-controller fixes it, I'm concerned that there's a postinst ordering issue09:25
mgzthe startswith() is a bit ugly, maybe using @class instead would help, but from the two compeltely different ways of listing memory it's a bit tricky to make one sane expression09:27
mgzI am getting the the point of thinking we need to give people a really easy way of getting at the lshw output if it's going to be this variable09:28
Davieyrbasak: ugh09:28
mgzotherwise trying to workout what's wrong with an expression will be taxing...09:28
mgzthe one issue with having the cpu and mem expressions stored as data rather than code is the migration needs them, and has limited access to stuff, but can probably get around that09:29
Davieyrbasak: Have you identified what is exactly not happening ?09:29
rbasakDaviey: no, I've not looked at all. I can't reproduce.09:30
rbasakI've not attempted to reproduce by altering postinst ordering mind.09:30
jammgz: as for data vs code, we could always have a default, and a way to poke a new expression into the system. (store in the db, rather than in the config)10:18
jtvallenap, jam: it's getting busy in the review department...  remember to claim reviews you're working on, to cut down on duplicate effort!11:45
mgzokay, posted pagination bits.12:36
roaksoaxrbasak: it doesn't seem to me that the postinst ordering is the problem13:46
roaksoaxrbasak: it seems to me that credentials for maas_workers in rabbitmq are the problem13:47
roaksoaxrbasak: that's why it works on reconfigure13:47
roaksoaxDaviey: ^^13:47
rbasakroaksoax: ok13:47
rbasakroaksoax: I'm not familiar with the packaging13:47
roaksoaxdannf: do you happen to have an installed system that failed to install maas without reconfiguring?13:48
roaksoaxrbasak: thank your for looking at it though :)13:50
Davieyroaksoax: Have a fix?13:50
roaksoaxDaviey: trying to reproduce and see if it is exactly what i think it is :)13:51
jtvOh, hi Daviey, hi roaksoax -- better help output for maas-cli is ready to land.  Unfortunately the cron job doesn't seem to be landing it yet.14:02
roaksoaxDaviey: http://pastebin.ubuntu.com/1274979/14:07
Davieyjtv: sweet14:10
jtvThe formatting may look a bit crap; I'm working on that.14:10
roaksoaxDaviey: it seems rabbimq issue14:11
Davieycrap14:11
Davieyi saw a race with that earlier14:11
jtvallenap: trying the regular HelpFormatter for maascli... actually looks better!  Any idea why we're using the RawDescriptionHelpFormatter?14:15
roaksoaxDaviey: yeah so the user doens't get created14:19
allenapjtv: Because the default formatter mangles the help text that contains :param foo: bits. It also smushes everything into a single paragraph.14:21
roaksoaxDaviey: ok, so the postinst creates 2 rabbitmq users. The first one creates correctly. However, for the installer, before we create the user we restart rabbitmq (force restart).14:22
roaksoaxDaviey: now, that we have 2 rabbitmq users... the fix seems to be that we should restart rabbitmq *again* for the installer14:23
roaksoaxDaviey: this will restart rabbitmq 2 times on install14:23
jtvallenap: ah yes...  I guess I'll just have to format the input text then.14:29
Davieyroaksoax: why does it need restarting ?14:30
roaksoaxDaviey: in the installer... because we should not run dameons on installation? and apparently after the user creation it dies or somthing happens14:31
roaksoaxDaviey: that's the same issue we had last cycle14:31
roaksoaxDaviey: so we had to force rabbimq to be running during the installer14:32
DavieyI wonder if dpkg-triggers could do what we need14:32
roaksoaxDaviey: it would be the same wouldn't it?14:34
roaksoaxDaviey: because it would also happen during the install when we need rabbitmq running14:34
Davieyroaksoax: Hmm, i'm not sure14:35
Davieymy gut says it's the solution, but i'd need to dig deeper14:35
roaksoaxDaviey: doesn't seem to be fixed by trying to restart rabbigmq again14:56
roaksoaxrabbitmq14:56
Davieypoop14:56
dannfroaksoax: i don't, but i can recreate one15:01
roaksoaxdannf: no worries, I know what the issue is15:03
roaksoaxDaviey: ok so it seems that there's no easy way to fix this15:22
Davieyroaksoax: what is the hard fix?15:23
Davieyroaksoax: Are you sure dpkg-trigger isn't the right fix?15:23
roaksoaxDaviey: so i tried trying to restart again, it doens't really create the user15:23
roaksoaxDaviey: i tried to force the start (as we do with postgresql), it doesn't work15:23
Daviey67784015:23
roaksoaxDaviey: i have a couple of other ideas but we'll see15:24
roaksoaxDaviey: and for the little I read... maybe not15:24
roaksoaxbug #67784015:24
ubot5Launchpad bug 517746 in Ubuntu Tweak "duplicate for #677840 E:No se pudieron leer las listas de fuentes." [High,Fix released] https://launchpad.net/bugs/51774615:24
roaksoaxDaviey: is that a bug number?15:25
Davieyerr, no15:25
Davieyit was an accidental OTP :)15:25
roaksoaxlol15:25
roaksoaxDaviey: well it seems tha triggers might be an option but idk whether that will work on a reboot15:40
Davieyi thought they should work 'when satisfied'15:45
roaksoaxDaviey: right, so this would involve modifying rabbitmq15:48
roaksoaxDaviey: "This feature is heavily used to track changes of packaged files in a list of predefined directories, and to update other files based on this."15:49
roaksoaxuhmmm these talks about files15:50
roaksoaxbut this cause is not handling filse, is having a server daemon running15:50
roaksoaxallenap: maas already supports https?15:53
roaksoaxsmoser: around?16:51
smoserhere16:51
roaksoaxsmoser: could you verify bug #1065259 please?16:51
ubot5Launchpad bug 1065259 in maas-enlist (Ubuntu Precise) "Enlistment fails if multiple MAC addresses are sent" [Undecided,Fix committed] https://launchpad.net/bugs/106525916:51
smoserroaksoax, i can try16:53
roaksoaxsmoser: thanks!16:53
roaksoaxDaviey: ok.. so ... tried many things by fixing the postinst and still no lock, os no idea of what might be wrong16:54
Davieyurgh16:54
DavieyThis is potentially a big deal16:54
smoserroaksoax, whats wroong?16:54
Davieymaas install bug from cd16:55
roaksoaxsmoser: idk whether you recall that during last cycle, we needed rabbitmq running in the installer in order for us to create the longpoll rabbitmq user, and etc16:55
Davieyie, release critical16:55
roaksoaxsmoser: so now, we not only create 1 rabbitmq user, but 2, and the second one doesn't get created16:56
roaksoaxsmoser: or how can I add -proposed automatically?16:57
roaksoaxto eh enlist user-data16:57
roaksoaxsmoser: this is the installre bug #106576316:58
ubot5Launchpad bug 1065763 in maas (Ubuntu) "UI URL gives HTTP error 200 after CD install" [High,Confirmed] https://launchpad.net/bugs/106576316:58
smoserroaksoax, enlistment?16:58
roaksoaxsmoser: yeah, so i'd like to add -proposed on cloud-init user data, is that possible?16:58
roaksoaxi mean, so that the userdata can grab the enlist image from there16:59
smoserroaksoax, well, you dont really have to.16:59
smoseryou can, but in a daily, the maas-enlist is already there.16:59
smoserthe most recent daily16:59
smoseri copied the SRU'd maas-enlist to maas-ephemeral ppa17:00
roaksoaxsmoser: ok so then we can mark it as verified then?17:00
smoserwell, if you verify it you can :)17:01
roaksoaxsmoser: that's why I was asking.. in order to verify we need to get it from proposed :)17:02
smoserok.17:03
smosera.) you dont need to do that. you could just use the daily of precise. it would have it.17:03
roaksoaxsmoser: right but we need to veirfy what's in proposed not on the daily even though you copied it :)17:03
smoserb.) you can (i suggest trying it) add a ppa by adding the appropriate cloud-config content to /usr/share/maas/preseeds/enlist_userdata17:03
smoserapt_sources:17:04
smoser - source: deb $MIRROR $RELEASE-proposed main17:04
smoserroaksoax, ^ add that and "should work"17:04
roaksoaxsmoser: cool thanks17:05
roaksoaxallenap: does maas already support HTTPs?17:08
smoserroaksoax, do you want me to try to do this?17:21
smoserto verify?17:21
roaksoaxsmoser: i already did17:21
smoseroh. ok.17:21
roaksoaxthanks tho17:21
smoserso my advice worked?17:22
smoserdid you use a daily ephemeral?17:22
roaksoaxsmoser: no i haven't upgraded ephemerals and yes i used -proposed17:24
smosercool17:25
roaksoaxflacoste: howdy!1 unrelated question that you might help me with. Why do PPA's don't allow upoading a package, which is in the Ubuntu Archive, but has a different tarball?18:59
flacosteroaksoax: you mean same version number than in the archive but actual different tarball?19:05
roaksoaxflacoste: yep19:07
roaksoaxflacoste: so I'm trying to upload a precise version of it, which has a different tarball19:07
flacosteroaksoax: it's a good question, i know we don't allow two publication of the same version number with a different tarball19:07
flacosteah19:08
flacostebut that would prevent the precise version from being upgraded when going to quantal, no?19:08
flacosteso in this case, that check does make sense19:08
=== flacoste changed the topic of #maas to: Discussion of upstream development of Ubuntu's Metal as a Service (MAAS) tool | MAAS jenkins: https://jenkins.qa.ubuntu.com/job/maas-trunk/
roaksoaxflacoste: right, but even if the quantla version has a higher ubuntu revision number, the upload fails19:10
roaksoaxflacoste: anyways, i guess this might prevent an SRU from happening due to this check19:10
roaksoaxbecause the upstream tarballs are gonna be different19:11
roaksoaxthe precise version has to include python-tf-tftp and yui319:11
flacosteroaksoax: the only check that i am aware of is that we don't allow two publication of the same package version with two different tar ball19:11
flacostenow, i wasn't aware that this was cross archive19:11
flacostei have no idea if this is intentional or not19:12
flacostebest thing is to file a bug if you think it is19:12
roaksoaxflacoste: this is the message: "File maas_0.1+bzr1264+dfsg.orig.tar.gz already exists in Primary Archive for Ubuntu, but uploaded version has different contents."19:12
flacosteand more knowledgeable folks will assess if it is or not19:12
roaksoaxflacoste: will do19:12
flacosteroaksoax: right, so it seems that it's a cross archive check19:12
flacostehmm19:12
roaksoaxflacoste: indeed19:13
flacostemy guess is that this is intentional19:13
flacosteto prevent a ppa from hijacking a ubuntu package19:13
roaksoaxyeah it seems like it19:13
flacosteor shadowing if you prefer19:13
roaksoaxright19:14
roaksoaxflacoste: alrught, thanks for the info19:14
lifelessits a consistency thing19:46
lifelessI *think* it applies to pockets as well19:47
lifelesse.g. ubuntu-security/ubuntu-release19:47

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