/srv/irclogs.ubuntu.com/2014/06/04/#maas.txt

=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
rvbabigjools: I can do this: https://code.launchpad.net/~rvb/maas/ipaddresses3/+merge/221988.  But I'm not sure how to improve the readability of the condition.  It's not easy to split because each check depends on the previous check being true.08:00
bigjoolslooking08:01
bigjoolsrvba: I think a nested for might be better here08:02
bigjoolsthe nested list comp is uuuugly08:02
rvbaA nested for would be much slower though.08:03
bigjoolswhy?08:03
rvbaUsing list comprehension means the iteration is done at a lower level.08:04
bigjoolsalso why not use itertools.chain?08:04
rvbaI can do that.08:04
bigjoolsare you just using sum to expand the query set?08:04
rvbaIt's basically the same.08:04
rvbaYes.08:04
bigjoolsright08:04
bigjoolssum obfuscates it a bit08:05
bigjoolsit's a bit like me getting a MatchError earlier today because "[] != []"08:05
bigjoolsthe joy of repr :)08:05
bigjoolsrvba: https://code.launchpad.net/~julian-edwards/maas/deallocate-static-ip/+merge/221825 if you fancy it08:55
rvbabigjools: sure08:55
bigjoolsrvba: and https://code.launchpad.net/~julian-edwards/maas/macaddress_to_ngi/+merge/221984 is easy karma08:55
=== vladk|offline is now known as vladk
=== gmb`` is now known as gmb
rvbabigjools: reviews done.09:25
rvbaI'm landing jtv's lint branch.  It looks pretty safe but I'll deal with any fallout.09:48
xperiaHi All. i was able to successful install Maas on my Ubuntu Server and to Commision my first Node. Maas Show now that the Status of my Node is Ready. When i Try however to PXE Boot my new Node Nothing Happens if i do however try to PXE Boot the Node over my Router however it works!10:15
xperiaWhat could be the Problem and how can i fix it? I would love to be able to Start Up the Nodes with MaaS itself instead over the Router.10:15
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
smoserdesignated, the .dist was created by that shell snippet.13:36
smoserhm..13:36
smoserinterresting.13:36
smoseri wonder if htat is busted.13:36
smosernah. we are using hard links there, which might make it ocnfusing, but the script does a cp to the .dist, and then modifies the original so that should be ok.13:36
gmbrvba, allenap, jtv: Can I get a review for https://code.launchpad.net/~gmb/maas/fix-commissioning-page-distro-list-bug-1312844/+merge/222010? I’m losing the ability to tell if it passes the smell test, so I’m perfectly happy with informed rejection :)13:45
allenapgmb: Sure.13:45
gmbTa13:45
rvbaCode smell detector activated.13:46
allenaprvba: Are you taking a look at that branch too then?14:21
rvbaallenap: no, since you're reviewing it.14:21
allenaprvba: Would you mind casting your eye over it for the forms stuff?14:21
rvbaallenap: sure14:21
designatedsmoser, I'm not sure what happened but I'm going to save off all of our custom preseeds and blow maas away.  I'm going to do a fresh install.  One of the interesting things I was seeing on nodes being commissioned, the hwclock was being adjusted to the correct local time but the timezone was still being reported as UTC.16:35
smoserdesignated, time zones dont really matter.16:36
smoserthe only thing that really matters is the bios clock.16:36
designatedis there a way to get a list of all ipmi addresses of all nodes in maas from the CLI?  'maas <profile> nodes list' doesn't list the ipmi ip address.16:36
smoseronce you're up, a reboot will have ubuntu set the hardware clock to be utc.16:37
smoserdesignated, no. there is not. you can probalby get it fairly easily with python16:38
smoserhttps://bugs.launchpad.net/maas/+bug/123315816:39
ubot5Ubuntu bug 1233158 in MAAS "no way to get power parameters in api" [Medium,Triaged]16:39
designatedword16:39
designatedI'll just dump them from the arp table on one of my routers and write a quick shell script to power cycle each one using ipmitools16:40
designatedsmoser, should the DNS zone name under cluster controller be a FQDN?18:19
smoseri'd tihnk so. like example.com18:20
smoseri think18:20
designatedsmoser, thanks18:24
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
designatedsmoser, so I have a fresh load of maas, finished importing boot images, added backdoor login and tried enlisting a node.  the node boots and sits at login screen, it never finishes and powers off, and is not showing up in maas.20:39
designatedsmoser, i do see some failure messages in cloud-init.log such as: 2014-06-04 14:24:42,994 - importer.py[DEBUG]: Failed at attempted import of 'ubuntu' due to: No module named ubuntu20:40
smoserwas this always the problem? that it was failing to enlist ?20:42
designatedsmoser, no, it was working previously20:43
designatedsmoser, running 1.5.1+bzr2269-0ubuntu0.120:43
designatedsmoser, like i said this is a fresh build.20:44
smoserthere is some output going somewhere probably. not sure whats happening, but if it turns off then some code ran. that output would have been to the vga console i think. so you should have seen it.20:49
smoserit will sit doing nothing for a while20:49
designatedsmoser, it doesn't power off.  i can try powering it off via ipmi20:50
designatedsmoser, i powered it off and it showed up in maas.  it must have failed to detect ipmi.20:53
=== vladk is now known as vladk|offline
smoserdesignated, oh. if it doesnt power off, then you should be albe to ssh in and look around.20:54
smoser(since you back-doored it)20:55
smoserand apt-get install pastebinit and then pastebinit /var/log/cloud-init*20:55
designatedsmoser, i manually set ipmi settings, trying to commission it now to see if that will work.20:58
designatedsmoser, and right back to where i was yesterday during commissioning.21:00
designatedOAuthUnauthorized: 'Expired timestamp: given 1401893824 and now 1401915424 has a greater difference than threshold 300'21:00
magicrobotmonkeyis there a way to read the power settings from the maas cli tool?21:22
magicrobotmonkeyon the gui i can see the ip, user, and pass21:23
magicrobotmonkeybut i cant get it from the cli21:23
magicrobotmonkeyi have power_type in read21:27
magicrobotmonkeybut not the other information21:28
designatedmagicrobotmonkey, 'maas <profile> nodes list' will show you the power type but there is no CLI command to show ipmi, ip address, username or password.21:41
magicrobotmonkeyok thanks21:46
=== wallyworld is now known as Guest56344
=== wallyworld is now known as Guest68975
designatedblake_r, smoser either one of you around?23:29
designatedduring commissioning, it looks like it never finishes because it cannot apt-get update.  I see a process running: root      1413  0.0  0.0  29008  2376 ?        S    17:13   0:00 apt-get --assume-yes -q update23:30
designatedif i try to update it manually, i get the following:23:30
designated$ sudo apt-get update23:31
designatedsudo: unable to resolve host vn-mgmt-023:31
designatedE: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)23:31
designatedE: Unable to lock directory /var/lib/apt/lists/23:31

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