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

AskUbuntuUbuntu 14.04 LTS server + MAAS WEB gui wont import boot image | http://askubuntu.com/q/48388303:21
=== 20WAAFCU3 is now known as wallyworld
=== CyberJacob|Away is now known as CyberJacob
=== Guest79566 is now known as wallyworld
=== CyberJacob is now known as CyberJacob|Away
rvbabigjools: we've used a FakeRequest in a couple of places…08:09
rvba:)08:09
rvbabigjools: right, you need to shove whatever field you need in the FakeRequest.  See for instance how we've set the 'user' field in the FakeRequest in src/maasserver/tests/test_api_support.py.08:11
bigjoolsrvba: eurgh08:13
bigjoolsrvba: it's easier to create a real request surely08:13
rvbabigjools: we've used the RequestFactory in a couple of places as well (it's coming back to me now)08:14
rvbabigjools: ugly I know, but please have a look at src/maasserver/tests/test_middleware.py:fake_request08:35
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
bigjoolsrvba: je vais regarder08:54
bigjoolsrvba: maybe I should put that util in the testing dir08:55
rvbabigjools: yeah, looks like we've added many different ways of creating a test request.  All over the place.08:56
bigjoolsrvba: I had noticed :(08:56
bigjoolsrvba: I'll put it in the factory08:56
rvbaSounds good.08:57
bigjoolsFWIW those getCamelCaseThings really jar with the make_things!08:57
bigjoolsrvba: that's not right that Messages uses a class property as storage in that thing, is it?09:08
rvbabigjools: why?09:23
rvbabigjools: request._message it is an instance of Message… what's wrong with that?09:25
bigjoolsrvba: the fake Message has self.messages as a class property09:26
bigjoolsseems a bit weird09:26
bigjoolsworks, anyway09:26
bigjoolsrvba: https://code.launchpad.net/~julian-edwards/maas/staticip-api-exceptions/+merge/223192 :)09:26
rvbabigjools: I'll review it (still otp) soon09:27
bigjoolsrvba: thank you.  can you or jtv please review https://code.launchpad.net/~julian-edwards/maas/allocate-ip-on-start-2/+merge/222747 as well please, I am totally blocked on that now09:27
rvbabigjools: sure.  One of us (me, allenap or jtv) will take care of it today.09:28
bigjoolsrvba: a thousand thank yous09:28
jtvOr "toosind tak" as they say in Danish.09:36
jtv(Which happens to be their standard way of saying "thanks a lot")09:36
bigjoolsrvba: "Why using the hostname here and the system_id in the API error?"10:59
bigjoolsWhy do you think? :)10:59
rvbabigjools: sorry, I meant "Why are you using the system_id in the API and the hostname in the UI?"12:03
bigjoolsrvba: same response :12:04
bigjools:)12:04
rvbaheh12:04
bigjoolsIOW, which would you, as a consumer of each, prefer to see?12:04
rvbabigjools: I tend to favor using the system id, because it's guaranteed to be constant.12:06
rvbaBut I can see why the hostname makes sense in the UI.12:06
bigjoolsso you see why I used the system id in the api and the hostname in the web ui? :)12:06
bigjoolsthe system id appears nowhere in the web ui12:07
rvbaWell, it's in the URI of course.12:07
rvbaI just wish we had a pattern for these kind of things.12:08
bigjoolsthe url to the page is irrelevant in the context of a good web ui12:09
rvbaThe system id should at least be displayed on the node's page.12:10
rvbaBut anyway, that was a detail.12:11
rvbaallenap should be in the process of reviewing your other branch.12:11
allenaprvba: I am in the process of doing that.12:11
rvbaallenap: cool ;)12:12
bigjoolsallenap: much grassy ass.  I shall be heading to bed now.12:58
allenapbigjools: nn12:58
allenapNearly done.12:58
bigjoolsbe gentle with me12:58
galebbaHappy Monday, newbie here.Sorry to repeat the question i asked here yesterday.Where should i look for logs that shows ipmi powering on/off nodes ? I have setup maas and trying to add the first node. Booted the node from the dvd and pointed to maas server. Node get powered off as expected but doesnt show up under the nodes in the gui.13:07
bigjoolsallenap: just caught the review before actually going to bed.  Thanks :)13:07
bigjoolsgalebba: /var/log/maas/celery.log13:07
galebbaThanks. but it does not show any indication of an issue. This is all i have  INFO/MainProcess] Task provisioningserver.tasks.upload_dhcp_leases[fe6beb91-8dfa-4eee-9f7b-bfa9c9ed01bf] succeeded in 0.0749380588531s: Non13:09
galebbaand nothing in maas.log and pserv.log13:09
bigjoolsmake sure there's power parameters defined in the edit node page13:09
* bigjools off now, bye13:10
rbasakgalebba: the power control pieces are templated scripts. I forget where they are exactly, but one option to debug is for you to wrap them or amend them for debugging.13:11
=== kevin is now known as Guest25708
galebbaso i got the nodes to power on.off using the ipmitool with the follwoing,  ipmitool -H 172.18.112.136 -U admin -P password -I lanplus  -y 0000000000000000000000000000000000000000 chassis power status14:44
galebbahow do i insert a crypto key in to Maas ipmi templates as it seems the use of the keys is not in maas14:45
galebbabtw this is maas 1.4 on 12.04 LTS and Cisco UCS C series server14:45
blake_rallenap: ping15:59
alexpilottiblake_r: ping16:04
blake_rallenap: hey16:04
blake_ralexpilotti: hey16:04
alexpilottiblake_r: do we have a meeting today? :-)16:04
blake_ralexpilotti: yes16:04
alexpilottiblake_r: trying to join on the hangout but no luck16:04
blake_ralexpilotti: sorry running late16:04
allenapHey blake_r, what’s up?16:23
blake_rallenap: how does rpc handle long running operatings16:24
blake_rallenap: will it block, or is it async16:25
allenapblake_r: It won’t block any other RPC calls. If you use it from Twisted-land then it won’t block, but the helpers that are in (can’t remember offhand) will block the running thread if you need blocking.16:26
blake_rallenap: from maasserver side will it block16:26
allenapblake_r: We’re also planning on having “threads” (not OS threads) that can be initiated and queried, so things like boot and install and can started by a Django thread and revisited later on.16:27
blake_rallenap: i got a branch for diskless booting16:27
allenapblake_r: From Django, yes, they’ll block, but all calls go via Twisted’s event-loop, and there’s one of those running in every Django process on the region.16:27
blake_rallenap: i want to use rcp to create the disk on the cluster16:27
allenapblake_r: Cool.16:28
blake_rallenap: so it will take a while16:28
blake_rallenap: so if i make the call, it will wait for the response?16:28
blake_rallenap: i don't want to block the webrequest, but i want to wait to execute the poweron16:28
allenapblake_r: You could have a response which says “I’ve started, here’s my uuid if you want to check on my later”.16:29
allenaps/my/me/16:29
blake_rallenap: rpc returns a uuid?16:29
allenapThat’s our proposal for the robustness work.16:29
allenapblake_r: Nope, but it could do. Do you want a call about this later?16:29
blake_rallenap: sure16:29
allenapblake_r: In 3h okay?16:30
blake_rallenap: 3h?16:30
allenapI have another call then dinner and kids into bed stuff to do between now and then.16:30
allenapblake_r: 3 hours.16:30
blake_rallenap: oh okay, thats fine16:30
blake_rallenap: i send you an invite16:31
allenapblake_r: Ta.16:31
=== CyberJacob|Away is now known as CyberJacob
skinder_where's a good place to inquire as to problems with maas? i've setup a cluster controller that, when hosts in the subnet pxe boot and attempt to start the provisioning process, i get an error about / not being found19:11
skinder_i'm a bit stumped19:11
MilesDenverYea, I think this is a good place skinder19:14
MilesDenverAt the moment, I'm working on understanding the actual steps to build a system.  The language seems off and my system never seems to stay powered on.19:15
MilesDenverDocumentation doesn't have steps.19:15
=== CyberJacob is now known as CyberJacob|Away
MilesDenverskinder_: have you modified your preseed files?19:16
=== CyberJacob|Away is now known as CyberJacob
skinder_nope, a very basic unmolested install. the region controller is able to do its thing, and provision hosts in the subnet it's in, but when i added the second cluster controller, hosts in its subnet don't complete the pxe boot process.19:17
MilesDenverboth the first and the second are in the same subnet?19:18
skinder_no, is that necessary?19:18
blake_rskinder_: can the second cluster controller, reach the region controller19:18
skinder_yes19:18
MilesDenverno... it won't work actually.  MaaS is pretty good at making sure it's the only DHCP in the logical network19:19
blake_rskinder_: it needs to be able to reach the region, and so do the nodes!19:19
blake_rskinder_: do the nodes, have a route to the region as well?19:19
skinder_yes19:19
skinder_L3 connectivity is good19:19
blake_rskinder_: what is the error you are getting on the nodes?19:19
skinder_blake_r: one moment, i'll get you the exact error19:20
skinder_MilesDenver: well the two cluster controllers are the only dhcp servers in their respective broadcast domains, so that shouldn't be a problem i don't think19:20
skinder_and they're in different subnets, no dhcp forwarding is happening either19:22
MilesDenverKeep talking through the issue.  I'm not the expert Blake_r is, but i'll help where I can19:23
skinder_blake_r: "The disk drive for / is not ready yet or not present. Continue to wait, or Press S to skip or M for manual recovery."19:24
skinder_that is displayed directly after the "Net device info" and "Route info" tables are displayed19:24
blake_rskinder_: has it already installed? or should it be installing?19:24
blake_rskinder_: on the cluster, do "sudo service tgt restart"19:24
blake_rskinder_: also you do have the boot images imported for that cluster?19:25
skinder_blake_r: yes, boot images are installed19:25
skinder_blake_r: and no, it hasn't already installed19:25
blake_rskinder_: did it say the anything about ISCSI? trying to connect?19:25
blake_rskinder_: are you using fast-path installer?19:26
skinder_blake_r: yes, i have seen iscsi messages zip by19:26
skinder_tgt is restarted, will try again19:26
blake_rskinder_: so thats fast-path19:26
blake_rskinder_: yeah let me know if that works, if not19:26
blake_rskinder_: got something else for you to try that will help you debug19:27
skinder_blake_r: sweet, thanks. i will update momentarily.19:27
skinder_blake_r: still gets stuck at the same spot, same error19:30
MilesDenverI have a sad question - Why doesn't my new node stay running?  It displays it's hostname, but shuts down in less than a minute.19:38
MilesDenverWith a simple web interface, you can add, commission, update and recycle your servers at will19:45
MilesDenverDoes Commission mean set the Operating System on it and leave it running?19:45
skinder_i thought it was commission -> install19:47
skinder_oh wait derp that's probably not what you were asking. i've seen commissioned nodes stay powered on.19:50
MilesDenverskinder_ thanks19:50
MilesDenverI'm testing with a system that boots glacially slow.19:50
skinder_fun fun19:51
MilesDenverseems like "Start" is the same as "Accepting" a node19:51
MilesDenverSTART a) Finds DHCP server b) Receives PXE details c) Boots temp image d) Reports to MaaS server e) Node shuts down19:51
MilesDenverCOMMISSION must therefore load an OS and stay running.19:52
=== roadmr is now known as roadmr_afk
skinder_like you MilesDenver, i wish there were more details about the entire process. what happens during the commissioning, install, etc.19:54
skinder_makes it hard to troubleshoot without that19:54
skinder_especially when using a java remote kvm console in a linux desktop :P19:54
MilesDenverskinder_: so, we hang out here and help each other.  That works.19:54
MilesDenverhahaha19:54
MilesDenverCommissioning booted with the proper OS and name... ran for about a minute and powered off.19:56
jhobbsMilesDenver: "start" is load an os and stay running19:58
jhobbsMilesDenver: "commission" is more or less "get a node ready to install to"19:58
MilesDenverjhobbs: cool.  I'll try that.  Just deleted my node thinking I had it in some strange state19:59
MilesDenverNot really sure why the published doc is missing that detail.20:00
blake_rskinder_: same issue?20:01
skinder_blake_r: yes20:01
blake_rskinder_: is the node, that is trying to boot, already in MAAS, liek shows up in the WebUI20:01
skinder_blake_r: no20:02
blake_rskinder_: okay, is it amd64?20:02
blake_rskinder_: actually that doesn't matter20:02
blake_rskinder_: do this on the cluster20:02
blake_rskinder_: "tftp 127.0.0.1"20:02
blake_rskinder_: "get /pxelinux.cfg/default"20:02
blake_rskinder_: please pastebin the output20:03
blake_rskinder_: "cat default"20:03
skinder_blake_r: it'll be posted shortly20:03
skinder_blake_r: http://pastebin.com/rHcdHNaB20:04
blake_rskinder_: what version of MAAS are you runing?20:05
skinder_blake_r: 1.5.420:05
skinder_blake_r: ubuntu 12.04.520:05
blake_rskinder_: newest version uses trusty, for enlistment and commisioning, this is showing precise20:05
blake_rskinder_: even on precise should boot trusty for enlistment20:06
skinder_blake_r: kk will give that a go20:06
blake_rskinder_: you are running an older version20:06
blake_rskinder_: even the kernel paths are old20:06
skinder_blake_r: apparently one of my coworkers upgraded from 1.3 to 1.520:07
blake_rskinder_: then you need to run, maas-import-pxe-files again!20:07
skinder_blake_r: did, but i'll do so again20:07
skinder_blake_r: so apparently trusty wasn't listed in the /etc/maas/import_pxe_files sources, i added that, going to re-run the pxe file import20:09
blake_rskinder_: okay, let me know20:09
skinder_blake_r: same problem. even after the pxe image update, it's still pointing to the same precise images in the pxe cfg, not trusty20:24
blake_rskinder_: "sudo service maas-pserv restart"20:24
blake_rskinder_: try again20:24
skinder_blake_r: already did that20:24
skinder_i'm honestly just considering nuking these servers, installing a fresh copy of 14.04 and maas, and going from there20:25
MilesDenverThat's what I did20:26
blake_rskinder_: your going to have better luck with that20:26
blake_rskinder_: but it should work20:26
blake_rskinder_: apt-cache policy maas-cluster-controller20:27
skinder_http://pastebin.com/7kUBHVjW20:27
blake_rskinder_: your using 1.420:28
blake_rskinder_: not 1.5.320:28
blake_rskinder_: if your region is not the same version, it will not work20:28
blake_rskinder_: that makes since, as 1.4 is the highest on precise20:29
skinder_well, maas --version on the region controller says 1.5.4, and the package is named the same as on the cluster controller20:29
skinder_curious20:30
blake_rskinder_: well that is very strange20:30
=== roadmr_afk is now known as roadmr
MilesDenverStill seeing the behavior where after commissioning the node builds. runs for 90 seconds and shuts down.21:14
MilesDenverIf I disable DHCP, it can boot and stay running.... so something it's getting registered back to the MaaS server to let it know the system build is complete.21:22
MilesDenverBut I cannot log in to see the Node I just built, because it has not IP address21:23
=== CyberJacob is now known as CyberJacob|Away
MilesDenveranyone know how to debug a system that stays in a cycle of building.  Meaning after a successful node build, it shuts down and if you start it again is rebuilds... and shuts down22:37
AskUbuntuOpenstack Neutron - Cannot Access Tenant Router Gateway | http://askubuntu.com/q/48429322:43

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