/srv/irclogs.ubuntu.com/2014/01/20/#maas.txt

=== CyberJacob is now known as CyberJacob|Away
jtv1bigjools: ->06:13
=== jtv1 is now known as jtv
bigjoolsjtv: ←06:13
bigjoolsdid we just ping with arrows?06:13
jtvSort of.06:13
jtvBough & arrough.06:13
jtvAnyway.  I phased my sketch of the changes according to my Baby Steps maxim.06:14
jtvHere's what I'd like to do at this point:06:14
jtvFirst, get an idea of what changes we want over the whole stretch.06:14
jtvSo that includes the multiple-interface-DNS change.06:14
jtvGet a grip on the changes it requires to the DNS config generators etc.06:15
jtvThen, decide whether (1) it makes sense to keep the phasing I outlined (where we do multiple DHCP interfaces first), and (2) anything can be done in parallel.06:15
jtvMake sense?06:16
* bigjools digesting06:16
bigjoolsjtv: ok yes that's fine06:17
bigjoolsparallel is good06:18
bigjoolsas is baby steps06:18
* bigjools fixorates trusty failures06:18
jtvRight now it looks to me as if it's pretty easy just to remove the restriction on multiple DHCP-managed interfaces, and the get_dns_managed_interface makes it easy to grep for reliance on the remaining (for now) restriction limiting us to one DNS-managed interface.06:19
jtvBut a bit more exploration first may be wise.06:20
jtvTo support multiple DNS-managed interfaces, obviously we need to take a closer look at how we manage DNS configs, but also at what options we offer to the user.06:21
jtvI'd particularly like to get a handle on the difference between (i) supporting resolution of hostnames to interfaces on the various networks, and (ii) providing name resolution to client interfaces on the various networks.06:22
jtvFor resolution, can we simply resolve a node's hostname to all of its interfaces?06:23
* jtv struggles with clarity06:24
jtvI mean: nodes can be both clients to our DNS, and hosts resolved in our DNS.06:24
jtvShould a node have a single hostname, mapping to all its IP addresses?06:27
jtvCurrently the DNS code only maps a node's hostname to an IP address leased to its oldest MACAddress object.06:35
bigjoolsright06:38
bigjoolsthis falls under some of the other fixes we wanted to do06:38
bigjoolsie boot from a maas-controlled management network, but the DNS should resolve to a different NIC06:38
* bigjools goes to deal with ants. 06:41
* bigjools realises this is an Archer cliché06:41
* jtv smugly sidesteps the cliché for another one.06:42
bigjoolsthey are antliminated06:45
* jtv cringes at attempted wordplay06:46
gingis there a way to get more logging/debugging info with maas? every time i have an issue i find it very diffcult to find out where it is going wrong07:11
bigjoolsging: can I help with something in particular?07:15
bigjoolsall the logs are under /var/log/maas/07:15
bigjoolsthere are a few different logs07:15
gingat the moment my nodes in kvm are failing tests while commisioning07:16
bigjoolswhich tests?07:16
ging00-maas-01-lshw and 00-maas-02-virtuality07:17
bigjoolsand what are you seeing?07:17
gingit instantly shuts down the vm so i can't see what is going on07:17
bigjoolswhat makes you say it's failing?07:18
gingit says failed 2/ and lists those 207:18
ging2/507:18
bigjoolsok07:18
bigjoolswell don't worry too much it doesn't affect normal operations, it'll just be missing some info in the database07:19
jtvWe don't expose the commissioning results  anywhere in the UI, do we?07:19
bigjoolsno07:19
bigjoolsyou have to DB-dive07:19
bigjoolsthis is something we should sort out I suppose!07:19
bigjoolsging: there's a database table called NodeCommissioningResult, the result logs will be in there07:20
gingok thanks i will have a look07:20
gingdo you think if i disable pxe boot on the vms they'll actually be working then ?07:21
jtvNo, that'll stop them from working with MAAS at all.07:21
gingis it the postgres db that maas is using?07:23
bigjoolsyes07:23
gingi can't even get into the database07:52
bigjoolsuse "maas shell" and then:07:55
bigjoolsfrom metadataserver.models import NodeCommissioningResult07:56
bigjoolsfrom metadataserver.models import NodeCommissionResult07:56
bigjoolssorry07:56
bigjoolsfor n in NodeCommissionResult.objects.all()07:57
bigjools  print n07:57
bigjoolsor similar07:57
bigjoolsjtv: want some cheap karma? https://code.launchpad.net/~julian-edwards/maas/fix-celery-callbacks-bug-1270713/+merge/20225007:58
=== CyberJacob|Away is now known as CyberJacob
bigjoolsyou lost your chance!  ok then gmb how about you?08:03
jtvDon't worry, I'll take it.08:03
bigjoolsha!08:03
bigjoolsit's a one liner08:03
jtvI am known for my one-liners.08:03
bigjoolseye liners more like08:04
jtvTramp!08:05
jtvbigjools: will your change cause any problems for the cloud-archive version?08:11
gingdoes maas shell have a man page?08:11
bigjoolsjtv: no idea, don't care. cloud archive should update if so.08:11
bigjoolsging: http://maas.ubuntu.com/docs is better08:12
jtvI think we include the generated man pages there nowadays.08:12
bigjoolsjtv: thanks for reviewiewiewiewering08:13
jtvYeahyeahyeah I know I know08:14
* bigjools out for a while08:15
gingwould a lack of connection to the repositories cause the commisioning tests to fail?08:43
jtvYes, it would08:45
jtvThe node connects to a proxy running on the region controller, and the proxy connects to the repository.08:45
gingi think this could be where it is going wrong08:48
jtvI think the lldp scripts would also fail though.08:49
jtvBecause those need to install lldp.08:49
jtvAnd the virtuality script doesn't look as if it needs any networking.08:51
jtvIn fact I don't see how that script could fail at all...08:51
jtvging: if you can run that maas-shell loop, that should provide error output for the commissioning scripts.08:52
gingjtv: i couldn't get it to run08:57
jtvWhere did it fail?08:57
gingit imported NodeCommisionsResult but the next bit gave me a syntax error08:58
gingand i have no understanding of this syntax08:58
jtvDid it say where the error happened?  If it's a traceback, just the last entry should be enough.08:59
jtvWhere it names a file and a line number.08:59
rvbaging: run this: '[n for n in NodeCommissionResult.objects.all()]'08:59
* jtv searches08:59
gingrvba with the braces and the quotes or neither?09:01
rvbaging: just what's inside the quotes (i.e. with the braces).09:02
jtvThat's meant to be run within the maas shell though — that failed to start, right?09:02
gingno i'm in the maas shell09:02
gingthis is what i get with the braces09:03
rvbajtv: Julian forgot the ':' at the end of the loop statement.09:03
ging[<NodeCommissionResult: NodeCommissionResult object>, <NodeCommissionResult: NodeCommissionResult object>, <NodeCommissionResult: NodeCommissionResult object>, <NodeCommissionResult: NodeCommissionResult object>, <NodeCommissionResult: NodeCommissionResult object>, <NodeCommissionResult: NodeCommissionResult object>, <NodeCommissionResult: NodeCommissionResult object>, <NodeCommissionResult: NodeCommissionResult object>]09:03
jtvAh!09:03
jtvWell, that's the objects.  Now for the contents.  :)09:04
jtvWe can start with the metadata:09:04
jtvfor n in NodeCommissionResult.objects.all():09:05
jtv    print(n.name, n.script_result)09:05
jtvThat'll tell us which ones succeeded and which ones failed (in case there's any misunderstanding there).09:06
rvbabigjools: rarg, looks like the celery upgrade broke quite a few things :/09:06
gingdo i need to end the print command with something? nothing happens09:08
jtvTry pressing enter another time.09:08
gingTypeError: 'NodeCommissionResult' object is not callable09:09
jtvEr...09:13
* jtv is not seeing it09:14
ginggot it now09:15
gingdidn't have enough of an indent09:15
gingh no i had a typo09:16
jtvThe most interesting output will be the non-zero results, of course.09:16
jtvMy system is upgrading; I'll drop out soon, hopefully briefly.09:20
gingso far i can see what tests are failing, but i don't know how to get the actual output of the tests, or is that it just pass or fail ?09:47
gingah n.data gives me something09:51
bigjoolsguys, FYI: http://docs.celeryproject.org/en/latest/whatsnew-3.0.html09:57
bigjoolsrvba,jtv, allenap, gmb ^09:57
bigjoolsrvba: notice the "Celery will automatically use the librabbitmq module if installed" :)09:58
* jtv goes offline. Will not be back for a while after all.09:58
rvbabigjools: that part I know :).  We managed to work around that.09:58
bigjoolsI know09:58
bigjoolsthe task chaining stuff is cool09:59
rvbaHopefully the core problem will get fixed at some point.09:59
bigjoolsit's clearly a bug in the rabbit lib09:59
rvbaYep09:59
bigjoolsaaaanyway I have to do kids' bedtime10:00
gingshould my maas server be listening as a proxy on port 8000? because it currently doesn't it has a proxy on 3128 but apt running on commisioning it trying to connect to it on port 800010:03
bigjoolsging: check the settings page to see what is configured. The proxy is squid-deb-proxy but I can't remember what its default port is.10:07
* bigjools wishes all good night10:07
gingchanging thing on the setting page seems to make no difference10:11
gingrestart of squid deb proxy and it now listens on 800010:18
gingsquid deb proxy crashes every time i connect to it, i'm not sure why11:09
gingbut that is definetely my problem11:09
rvbaallenap: does that problem ring a bell? http://paste.ubuntu.com/6785337/11:31
rvbaallenap: this is when I run 'make' in the branch where I upgraded testttools to 0.9.34.11:32
allenaprvba: It could be that you’ve got python-mimeparse installed locally.11:32
rvbaAh, good point.11:33
* rvba checks11:33
allenaprvba: Or that testtools 0.9.33 needs a newer version than is pinned in versions.cfg.11:33
rvbaallenap: no, not installed.11:33
rvbaallenap: python-mimeparse is not mentioned in versions.cfg11:33
allenaprvba: Ah, it ought to be then.11:34
rvbaallenap: why?  If it's not mentioned, doesn't just mean any version is okay?11:36
rvbadoesn't it*11:36
rvbaallenap: can you remind me what command I should run to get buildout to write versions.cfg?11:41
allenaprvba: bin/buildout -v buildout:allow-picked-versions=true11:54
rvbaallenap: Fu&%ing A!  Looks like it did the trick.  Thanks!12:02
tomixxx@jtv, matsubara: are u online? do you remember my MAAS-problem: one maas-server with two network-card-interfaces, one card connects to a private switch with two other nodes and one interface connects to the uni network13:59
jpds_tomixxx: Probably not at this time, but you're better off looking at http://shop.canonical.com/product_info.php?products_id=65814:21
=== jpds_ is now known as jpds
tomixxxjdps: ty but i guess i will keep the free-of-charge server ;)14:26
=== freeflying is now known as freeflying_away
=== zz_mwhudson is now known as mwhudson
=== mwhudson is now known as zz_mwhudson
=== zz_mwhudson is now known as mwhudson
=== freeflying_away is now known as freeflying

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