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

mwhudsonbigjools: if i say the words "curtin" and "arm64" or "armhf" in the same sentence does that provoke any thoughts?01:46
bigjoolsscary ones01:46
mwhudsonheh01:46
bigjoolsI don't know if it's ever been tried on those arches01:47
bigjoolsarm IO mean01:47
bigjoolsgah can't type today01:47
mwhudsonthe thing that's lurking in my mind is the need (on current platforms) to run flash-kernel01:47
bigjoolsif you can find an image, give it a go :)01:47
mwhudsonwhat sort of images does curtin usually install?  cloud images?01:47
bigjoolsthey're big tarballs IIRC01:48
mwhudsonbigjools: if i say the words "curtin" and "documentation" in the same sentence...01:48
bigjoolswheeeeeee01:48
mwhudsonhttp://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/head:/examples/basic.yaml is just installing a clout root.tar.gz01:50
mwhudson*cloud01:50
mwhudsoni didn't think those had kernels in though01:52
bigjoolsthe kernels are downloaded separately01:54
mwhudsonoh!01:59
mwhudsonbigjools: do you know where it gets them from?02:00
bigjoolsmwhudson: http://maas.ubuntu.com/images02:01
bigjoolshttp://maas.ubuntu.com/images/ephemeral-v2/releases/streams/v1/com.ubuntu.maas:v2:download.json02:02
mwhudsonah ok02:02
mwhudsonbigjools: do you know where in curtin (which 'stage') the kernel gets handled?02:04
bigjoolsI don't, sorry02:04
bigjoolsit's a bit of a black hole to me, and as you note there's no docs02:05
mwhudsoni bet smoser doesn't have anything else to do this cycle02:05
mwhudsonone way appears to be more or less "chroot /target apt-get install linux-image"02:07
mwhudsonwhich ought to work fine x-platform02:07
bigjoolsyeah02:09
* bigjools brb02:09
mwhudsonactually i think that's more or less what it always does, not sure it uses the simplestreams data02:09
mwhudsonoh hahaha02:10
mwhudson    machine = platform.machine()02:10
mwhudson    if machine.startswith('armv7'):02:11
mwhudson        update_initramfs(target)02:11
mwhudson    else:02:11
mwhudson        setup_grub(cfg, target)02:11
mwhudsonyeah so about that...02:11
mwhudsonnot sure why the update_initramfs part is necessary, that's done by installing the kernel pacakge02:11
mwhudsonunless triggers are disabled or some such insanity02:11
jhobbsdoes the kernel package get installed on a curtin install?02:15
jhobbsit's not part of the image that gets unpacked?02:15
mwhudsonjhobbs: that's the way i read it02:15
mwhudsonhttp://bazaar.launchpad.net/~curtin-dev/curtin/trunk/view/head:/curtin/commands/curthooks.py#L13902:16
jhobbsi added that line; iirc the initramfs wasn't getting run until that setup_grub() ran02:19
jhobbswhich didn't work on armhf, so i just did update_initramfs02:19
mwhudsonhuh02:19
mwhudsonmaybe there is some conditionality then; the kernel package is only installed if there is no kernel in the installed image or something02:20
mwhudsonbut i don't see that02:20
mwhudsonnow02:27
mwhudsoncan i remember why i was interested in this question?02:27
mwhudsonjhobbs: so the way maas uses curtin is that it netboots a cloud image and uses cloud init data to run curtin?02:36
mwhudsonhow does the cloud init data get to the machine?02:36
jhobbsmwhudson: wget from maas more or less02:38
mwhudsonah so the cloud-init user-data is "get more config from this url"?02:38
mwhudsonah yes02:40
mwhudsonah i think you can put something like ds=nocloud-net[s=$url] on the kernel command line02:50
mwhudsonand then cloud-init will hit $url/user-data and $url/meta-data02:50
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
jtvbigjools: We don't really support multiple IPs per NIC for cluster interfaces, but I figured we could either say TFB, or treat them as multiple interfaces.07:11
jtvDepending on whether any actual need arises.07:11
bigjoolsjtv: treat them as aliased separate interfaces07:11
bigjoolsI did think about it at the time07:11
jtvI guess we could only manage one anyway.07:12
jtvDoesn't make much sense to run two dhcpds (for the same IP version) on the same NIC but for different networks.07:12
jtv(Not counting VLANs where you've got, from our perspective, different NICs anyway)07:12
bigjoolsno, you'd run a single dhcpd for all interfaces like we do now07:16
jtvSame thing applies regardless — dhcp daemon or dhcp service, you can't just serve two unrelated dynamic IP ranges on the same NIC without some way to configure which client should go in which range.07:17
jtvWe neither have nor, to my knowledge, need such configuration.  :)07:18
bigjoolscheap karma: https://code.launchpad.net/~julian-edwards/maas/ui-fixes/+merge/22350607:18
bigjoolsjtv: right, the whole thing is somewhat nonsensical07:19
jtvCheap karma?  Coming!07:20
rvbabigjools: haha, I see the wrong capitalization came from Django generating the labels based on the name of the fields. :)07:23
bigjoolsrvba: corrrrrect07:23
bigjoolsrvba: I am learning too much about Django lately.07:23
bigjools*twitch*07:23
rvbabigjools: too late, I'm anointing you "APAC Django expert attaché to the MAAS team" ;)07:24
* bigjools sets up mail forwarder to rvba for anything with "django" into07:24
bigjoolss/into/in it/07:25
* bigjools having a bad typing day07:25
jtvRecapitalising words is one of those things frameworks really oughtn't be doing for us.07:35
jtvbigjools, did you run into one of those "Ip address" fields?07:35
bigjoolsjtv: I bumped my nose on it07:35
=== vladk is now known as vladk|offline
jtvExercise: auto-capitalise MAISON DU THE for display as a title.07:36
jtv"Oh, ‘the’ is an article, let's lower-case that."07:37
jtv(I believe it should become thé)07:37
jtv(Sorry, Thé)07:37
rvbajtv: shouldn't it by "MAISON DU THÉ" in the first place?07:38
jtvIn principle, yes — but aren't all-caps names like this often displayed without the accents?07:40
rvbaVery often indeed.  But it doesn't make it right.07:40
jtvBut it's easy to think nobody will care, when actually some piece of software may come along and make assumptions about how your capitalisation rules work.07:41
jtvAnd don't get me started on how the Scots are going to fill out fields labeled "Mac"...07:42
jtv"Ach, I entered ‘Gregor’ but it doesnae work!”07:42
rvbajtv: care to review a tiny branch? https://code.launchpad.net/~rvb/maas/fix-manpage-generation/+merge/22351107:53
jtvOK07:53
rvbaTa07:53
=== CyberJacob is now known as CyberJacob|Away
rvbajtv: I also want to get started on doing some actual coding on IPv6.  Could we have a call (it will be short) to coordinate our work on this?08:59
jtvrvba: sure — there's some low-hanging fruit.09:01
bigjoolsrvba, jtv: please make sure you leave something obvious for me to do09:06
bigjoolssince I won't be able to pre-imp unless you volunteer to stay up late :)09:06
jtvbigjools: there'll be stuff left...  any questions about the cards on the board?09:06
rvbabigjools: did you talk with Andres about the additional work he wanted to get done on the DHCP stuff?09:06
=== vladk|offline is now known as vladk
bigjoolsjtv: I've not looked yet09:07
bigjoolsrvba: sort of09:07
jtvbigjools: they all have detailed descriptions... if you see something unclear about one, it's probably going to be unclear about all of them, so let me know.09:08
bigjoolsjtv: ok ta09:08
bigjoolsjtv: I guess the first thing is to try and get ipv6 working on my test network09:09
jtvThere are also a bunch of known jobs that you can do without though.09:09
bigjoolsjtv: why a feature flag?09:12
jtvbigjools: because there are places where it doesn't look as if we can do both IPv4 and IPv6 — we'll have to choose.09:15
bigjoolsjtv: example?09:15
jtvWhich do we tell dhcpd to serve?09:15
bigjoolsisn't that automatic depending on what format IP addresses are entered in the cluster interface edit form?09:16
jtvWhich cluster addresses do we discover?09:16
bigjoolsall of them, like now09:16
jtvWe don't do that now.09:16
jtvWe only discover the IPv4 ones.09:16
bigjoolsthat's all of them then, barring the ones we are about to add09:17
jtv...09:17
bigjoolswe already discover all ipv4, we just add discovery of ipv6 interfaces.09:18
bigjoolsand if you set them to be managed, we tell dhcpd to serve on there09:18
jtvYes, we can do that one dynamically.09:19
jtvWe'll need some validation changes to make it work that way of course.09:20
jtvThe problem is that right now we have a bunch of places that will quietly give wrong answers if we mix IPv4 and IPv6.  A feature flag buys us the freedom to fix those without breaking normal operation.09:23
* jtv steps out for about 2 minutes09:23
bigjoolsjtv: I say just do it right up front09:25
bigjoolsa feature flag is just procrastinating09:26
jtvbigjools: I think we can do it without a feature flag, if we can continue to run celery and such as IPv4, assuming the DNS stuff works out.09:30
AskUbuntuMaaS region controller with 2 Cluster | http://askubuntu.com/q/48495109:49
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
bigjoolsjtv: I think that would be OK from what I read10:40
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
jtvgmb: just spotted one of my pet antipatterns in update_mac_cluster_interfaces.  When you find yourself writing a search loop, extract it.  Don't do what you need to do inside the loop body and then decide that you're only going to do it once, so you can return.11:55
jtv"Find item.  If found, process item."11:55
jtvNot: "Loop over items.  If item is what I want, process item.  Break out of loop as an optimisation."11:56
Solution-Xanyone here do much with MAAS? I have a fresh install of 14.04 installed as MAAS controller that is being cranky and refuses to load the images. Installed OS, booted up, apt-upgrade, reboot, create MAAS user, login, click download images. Also tried "sudo maas-import-pxe-files" after as a backup and that completes but does not result in the webpage recognizing the images' existence. Also checked15:47
Solution-Xcelery.log and it doesnt spit any errors/warns.15:47
jtvSolution-X: and the boot images do not show up in the UI?15:49
jtvIt should normally be the one or the other — you get the images, or there's going to be an error in that log...15:50
jtv(Be aware that the download is huge...)15:50
Solution-Xcorrect15:53
Solution-Xwhich is whats confusing me15:53
jtvIn the celery.log, do you see the import task at least starting and finishing?  Or only starting, or neither?15:55
Solution-Xgive me a moment and ill drop a paste in...there may be something im simply not seeing15:55
jtvOK.  I'll have to leave soon, but would like a look.15:56
Solution-Xjust started and saw the start task and iftop is showing traffic15:56
jtvThen that sounds as if it's probably still downloading.  Have a look in /var/lib/maas/boot-resources/cache; you should see the files growing.15:57
Solution-Xthat is my impression as well15:58
jtvYou should see a snapshot directory in /var/lib/maas/boot-resources, too.15:59
Solution-Xim trying to more or less tail the process to you without shoving all the logs down your throat15:59
Solution-Xcache  snapshot-20140618-092857  snapshot-20140618-095234  snapshot-20140618-100031  snapshot-20140618-100657  snapshot-20140618-100932  snapshot-20140618-11554915:59
jtvLooks like you're running a bunch of downloads at the same time, or maybe started a few that were aborted.16:00
Solution-Xprobably aborted16:00
jtvHope so, because if they're still running they may slow you down.16:01
Solution-Xiftop traffic has subsided, load is 0 https://privatepaste.com/a98fcd3f0216:01
Solution-Xbad formatting but that link is celery16:01
jtvIt goes through phases; it may be unpacking an image file.16:02
jtvYup, your imports are probably still running.16:02
jtvIf you're running maas 1.5 (the default for 14.04), make sure you only have one instance of the import script running.  If the downloads are too much, review /etc/maas/bootresources.yaml.  (Finicky syntax, so be careful).16:04
jtvThat file is no longer there in 1.6, but in 1.5 it'll help you restrict what gets downloaded.16:04
jtvIf the script was going through an unpacking phase just now, watch for changes in the latest snapshot directory.16:05
jtvGotta run now!16:05
* jtv runs16:05
Solution-Xlooks like one of the previous tasks was causing the subsequent imports to fail...maybe i click import when it was already attempting an import when i first set it up...cleared the snapshots and ran another import, this time it was successful16:39
Solution-Xthanks again for the help and advice!16:39
jtvClearing the snapshots shouldn't make much of a difference, but they can pile up a bit.  They won't use much space though, because it's all links into the cache dir.16:53
=== matsubara is now known as matsubara-lunch
MilesDenverIs there a way to turn off "maas maas nodes accept-all"17:20
=== vladk is now known as vladk|offline
=== CyberJacob|Away is now known as CyberJacob
=== deegee__ is now known as drussell
=== matsubara-lunch is now known as matsubara
wrale_is maas 1.3.1 the latest packaged for ubuntu 12.04.4?18:20
wrale_will i still be able to use juju with this version?18:21
wrale_is there a simple way of installing the latest version of maas on precise?18:26
=== vladk|offline is now known as vladk
=== roadmr is now known as roadmr_afk
MilesDenverBack working on my system that never Commissions.  I can now look at the install logs, but I'm not seeing the problem.19:52
MilesDenverThe only problems I'm find are possibly not problems20:03
MilesDenverCould not open device at /dev/ipmi0, so Unable to start ipmievd during installation.20:03
MilesDenverand ci-info: no authorized ssh keys fingerprints found for user ubuntu.20:03
MilesDenverAnyone have troubleshooting suggestions?20:05
=== lazyPower is now known as lazypower-travel
=== vladk is now known as vladk|offline
MilesDenverMy cloud-init.log does show an awful lot of "Failed at attempted import of 'modulename'" -- http://pastebin.com/1daAfrTp20:29
=== roadmr_afk is now known as roadmr
=== roadmr is now known as roadmr_afk
MilesDenverI suspect I have this problem which is possibly hardware related - https://bugs.launchpad.net/ubuntu/+source/maas/+bug/132188520:56
ubot5Ubuntu bug 1321885 in openipmi (Ubuntu) "IMPI detection and automatic setting fail in ubuntu 14.4 maas" [Undecided,Confirmed]20:56
MilesDenverI'm going to manually build and curse the time I've wasted20:56
jhobbsMilesDenver: can you test running this script on your server20:58
jhobbshttp://bazaar.launchpad.net/~maas-maintainers/maas/trunk/view/head:/etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py20:58
jhobbsif you could run that and post the output to the bug that would be good20:58
MilesDenverhmmm. ok20:59
jhobbsyou'll have to isntall freeipmi-utils first20:59
jhobbsand run it as root20:59
jhobbsthat's the script that does ipmi config/detection20:59
jhobbsunfortunately it's hard to get good output from it from the logs20:59
MilesDenverWhere does it output?21:03
jhobbsit just outputs to console21:04
jhobbswhen you run it yourself21:04
MilesDenverhmmm, it only output "maas,WOzMJ8pfeG,172.26.0.186,LAN_2_0"21:04
jhobbswell, that's a good sign21:05
jhobbscan you use those credentials to access the system?21:05
MilesDenveroh... with some kind of IPMI tool.21:05
jhobbsah yeah21:05
jhobbsfrom a remote system, you could use ipmitool - ipmitool -H 172.26.0.186 -U maas -P WOzMJ8pfeG power status21:06
jhobbscan you also post the output of ipmi-locate ?21:06
MilesDenverthanks - ipmi-locate http://pastebin.com/Zjtt8s8021:09
MilesDenverand the ipmitool responds "Error: Unable to establish LAN session Unable to get Chassis Power Status" which likely means a firewall problem21:10
jhobbsMilesDenver: yeah it looks like detection and configuration is working21:12
jhobbsMilesDenver: can you ping that host from the maas server?21:12
MilesDenverI'm supposed to be building an OpenStack Compute Node on this system.  Tomorrow I need to build it manually21:12
jhobbsah21:13
jhobbsout of time for debug then?21:13
MilesDenverjhobbs well, I can probably debug a bit longer21:13
jhobbserr, can you try this command ipmitool -H  172.26.0.186 -U maas -P WOzMJ8pfeG power status21:14
jhobbsoops21:14
jhobbsipmitool -Ilanplus -H  172.26.0.186 -U maas -P WOzMJ8pfeG power status21:14
MilesDenverjhobbs: sure.... long wait (probably my firewall) then21:16
MilesDenver"Error: Unable to establish IPMI v2 / RMCP+ session Unable to get Chassis Power Status"21:16
jhobbsk21:16
jhobbsyeah i agree - sounds like a network issue21:16
lifelessor a wedged BMC21:16
MilesDenverlifeless: it's network.  I've never asked for the ports to be opened.21:17
lifelessMilesDenver: oops;)21:17
MilesDenverSeems like there is beer downstairs.  I'll come back to this tomorrow, but we have an all hands meeting in 10 minutes.21:20
MilesDenverActually, I'll probalby end up on the patio with my laptop in about an hour21:21
jhobbssounds rough21:21
MilesDenverwish you were here21:21
=== roadmr_afk is now known as roadmr
=== CyberJacob is now known as CyberJacob|Away

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