/srv/irclogs.ubuntu.com/2014/09/10/#maas.txt

=== CyberJacob is now known as CyberJacob|Away
=== jfarschman is now known as MilesDenver
bigjoolsjtv: was there a good reason to optimise the lease sending to the region so it didn't send them if there were no changes?03:23
bigjoolsI ask because of this bug with static IPs; if the leases are sent before the node is in maas then the cluster_interface link is never made03:23
bigjoolsso I have two choices to fix this: 1. send all leases every time, 2. add a separate job to parse the in-DB ones03:24
bigjoolswell "parse", read and apply the link I mean03:24
jtvbigjools: the reason was just generic worry about size, not any problem that we encountered in practice.03:30
jtvIs this what's been causing the bug where nodes didn't get static addresses in CI?03:31
jtvIt's not a matter of checking at MACAddress creation time whether a lease existed?03:32
bigjoolsjtv: that would be a third solution yes03:49
bigjoolsjtv: ok, I did it that way: https://code.launchpad.net/~julian-edwards/maas/always-send-leases/+merge/23405205:29
jtvbigjools: funny how that problem pattern keeps cropping up in software.06:16
bigjoolsjtv: which one?06:17
jtvHaving to detect that a combination of two events have occurred both when one occurs and when the other occurs.06:17
bigjoolsah yes06:17
bigjoolsI thought about using signals, and then I slapped myself in the face and woke up06:18
=== CyberJacob|Away is now known as CyberJacob
=== kickinz1|afk is now known as kickinz1
=== CyberJacob is now known as CyberJacob|Away
=== kickinz1 is now known as kickinz1|afk
=== kickinz1|afk is now known as kickinz1
=== kickinz1 is now known as kickinz1|afk
gmballenap: Branch: lp:~gmb/maas/port-add-virsh-to-rpc ; bin/test.maas maasserver.models.tests.test_nodegroup produces http://paste.ubuntu.com/8307588/09:01
gmb(this is the "Twisted is twisting my melon" problem, not the isolation problem.")09:01
=== kickinz1|afk is now known as kickinz1
allenapgmb: /me looks09:02
gmballenap: The "expected to be called…" thing I understand; it's the __call__ takes 2 arguments bit that I'm fuzzy on.09:02
allenapgmb: In NodeGroup.add_virsh you need to use keywords for all arguments (other than the command) when using the client.09:04
gmballenap: AAAAAAAAAAAAAH09:06
gmballenap: Can we improve that error, or is that upstream (looks like upstream…)09:06
jtvbigjools: I need to get a node's StaticIPAddress objects, but Node.static_ip_addresses returns address strings, not the objects.  Would it make sense to split out the part that returns StaticIPAddress objects?09:07
bigjoolsjtv: no, one moment OTP09:08
cariboujtv: remember my rsyslog query yesterday ? The MP for it is in Bug #134670309:15
ubot5bug 1346703 in maas (Ubuntu) "/var/log/maas/rsyslog has incorrect permission" [Medium,In progress] https://launchpad.net/bugs/134670309:15
allenapgmb: We can improve that error; I’ll sort it out.09:17
=== kickinz1 is now known as kickinz1|afk
gmballenap: Thanks. I was also missing a .wait(), but the error for that is *amazingly* helpful. I'm going to assume you wrote the code that generates it, so _thank you_.09:21
jtvcaribou: that explains why I didn't see it on the reviews list — we normally work against the upstream branches!09:22
jtvIn this case, that'd be lp:~maas-maintainers/maas/packaging09:22
cariboujtv: I know, but the fix is on the debian packaging files which are not on the dev branch09:22
jtvWe have separate upstream branches for those  ^09:22
cariboujtv: ah, so you have a specific branch for the packaging; want me to do the MP against this branch ?09:23
jtvYes please!09:23
jtvYou can probably just hit Resubmit.09:23
cariboujtv: sure, will do right now09:26
bigjoolsjtv: ok sorry I misread, yes, split it out09:26
* bigjools back later09:26
cariboujtv: I *manually* tested it on Utopic; seems to work fine09:26
cariboujtv: i.e. I rebuilt the packages & installed the debs09:26
jtvThanks bigjools09:28
jtvcaribou: if you check out lp:maas and cd into it, you can just run "make package" — will create packages in ../build-area09:28
jtv(Bit weird as a location, but otherwise very convenient)09:28
cariboujtv: good to know. I build so many pkg that debuild -S && sbuild are my friends09:29
cariboujtv: ok, I just resubmitted to lp:~maas-maintainers/maas/packaging09:29
cariboujtv: regarding Bug #1367266, want me to do a MP for this one as well ?09:30
ubot5bug 1367266 in maas (Ubuntu) "missing dependancy for python-pexpect for maas-region-controller" [Undecided,New] https://launchpad.net/bugs/136726609:30
caribouI saw that there was already the same for maas-cluster-controller09:31
jtvcaribou: first let's see if allenap knows more.  We may also want to add it to one of the lists in required-packages (in the main source branch) to facilitate development.09:32
cariboujtv: ok, fine. as long as it is referenced somewhere. I just stumbled over it while testing the other bug09:33
jtvallenap: do you know more about maas-region-controller needing python-pexpect installed?  Seems to be a missing or misplaced dependency.09:33
jtvcaribou: weird, now I don't see your MP at all...09:36
cariboujtv: lemme check; I'm far from being a pro @bzr09:36
cariboujtv: http://goo.gl/qvxu1g09:38
jtvcaribou: it's got a conflict, too.  :(09:38
jtvGrrr.  That resubmit did not work out the way I hoped.  :(09:39
jtvI'm sorry about that.09:39
cariboujtv: nevermind, it's only a few minutes to destroy it & redo09:39
cariboujtv: let me do it the proper way09:40
jtvThanks.09:40
=== kickinz1|afk is now known as kickinz1
allenapjtv: I suspect that’s for virsh support via SSH. blake_r?09:48
jtvblake_r: do you know about the maas-region-controller package seemingly missing a dependency on python-pexpect?09:48
allenapgmb: Up for a review? https://code.launchpad.net/~allenap/maas/rpc-better-client-error/+merge/23407709:49
gmballenap: Sure09:50
gmballenap: Lovely. Thankee :)09:51
cariboujtv: it's there I think : https://code.launchpad.net/~louis-bouchard/maas/lp1346703_rsyslog_ownership/+merge/23408009:52
jtvcaribou: I will have to leave very soon...  still not seeing it on the list for some reason!09:52
* jtv checks again09:52
jtvOh yes, there it is.09:53
cariboujtv: no worry, it can wait until tomorrow09:53
cariboujtv: or later09:53
jtvWhy does everybody have names of such similar lengths?  :)09:53
jtvThanks.09:53
gmballenap: In turn, here's my AddVirsh branch. https://code.launchpad.net/~gmb/maas/port-add-virsh-to-rpc/+merge/23408209:54
gmb(If you've time)09:55
jtvcaribou: I set a commit message (otherwise tarmac won't land the branch, but not complain either).  One thing still looks off: why did the top of the changelog get sliced off?09:55
cariboujtv: fine; Re: changelog I don't know09:56
jtvbigjools: drat, I need all of a node's IP/MAC mappings, but StaticIPAddress doesn't directly refer to the MAC.  We don't have anything ready-made for that, do we?09:56
jtvcaribou: have a look at the diff on the MP... a big red section there.09:57
cariboujtv: oh, crap my fault; lemme fix it09:57
jtv:)09:57
cariboujtv: should I just uncommit & fix it or do a new commit ? (told you I was bad at bzr)09:59
jtvcaribou: uncommit is fine, but when you push it back up, the revision will still be on the server.  To get around that, push with the --overwrite option.10:00
cariboujtv: k10:00
* jtv runs10:00
jtvnn folks!10:00
rvbann jtv10:00
caribouok, MP is fixed, jtv can have a look at it tomorrow10:07
=== kickinz1 is now known as kickinz1|afk
gmballenap (and maybe rvba; this is part-Django): I have a problem with lp:~gmb/maas/create-node-to-use-RPC. jtv was right about the source of the isolation problem, but now I can't get one of my tests to work… bin/test.maas src/maasserver/rpc/tests/test_nodes.py:TestCreateNode.test_creates_node always produces the following: http://paste.ubuntu.com/8308294/. I've used set_trace() to check that MACAddresses are actually getting created for the node — th10:52
gmbrvba, allenap: Diff here, for reference: http://paste.ubuntu.com/8308308/10:53
allenapgmb: I’ll take a look.11:01
gmballenap: Thanks.11:10
gmballenap: Also, thanks for the review; I thought I'd pushed a version of that branch without the "spoons" logger, which was for debugging purposes :)11:13
allenapgmb: I like it though. Let’s see if we can introduce it via acronym/bacronym.11:14
gmb:)11:16
gmbSynchronous-Procedural-Object-Oriented-Networking11:17
allenapgmb: That was a tricky one. I’m surprised we haven’t seen it before. http://paste.ubuntu.com/8308719/ fixes it.11:50
allenapgmb: I’ll write a test for that.11:50
allenapgmb: I’ll put it up for review.11:59
allenapgmb: https://code.launchpad.net/~allenap/maas/transactional-close-connections-on-outermost-exit-only/+merge/23409212:09
* allenap goes for lunch12:09
=== kickinz1|afk is now known as kickinz1
gmballenap: Many thanks!12:43
blake_rjtv: that dependency should be on python-provisioningserver not on maas-region-controller13:28
caribouallenap: I'm find with your suggestion, I'll fix the branch & push it back13:52
allenapcaribou: Cool, thanks.13:53
caribouallenap: out of curiosity, what's wrong with -exec on the find cmd ? it forks one proc for each one it finds ?13:54
roaksoaxjamespage: what dependency is this?13:57
caribouallenap: Done, just pushed the requested change14:08
jamespageroaksoax, ?14:11
roaksoaxjamespage: sorry :) wrong nick!14:24
=== jfarschman is now known as MilesDenver
jamespageroaksoax, np14:26
allenapcaribou: Ta!14:29
caribouallenap: thanks14:30
rvbaallenap: is the cluster supposed to be connected in a dev environment?  I mean, does a dev environment mimics what's happening in a package w.r.t. cluster<->region connection?14:53
allenaprvba: It should be, yes.15:06
rvbaallenap: hum, it doesn't seem to work (my code works fine from a package, I see the result of my method change when I start and stop pserv).  I'll investigate.15:07
allenaprvba: If it’s not working, bigjools filed bug 1361037 which might be relevant.15:07
ubot5bug 1361037 in MAAS "If pserv comes up before the region controller, it will never connect" [Critical,Triaged] https://launchpad.net/bugs/136103715:07
rvbaAh, that might be it…15:08
roaksoaxcaribou: have you ever seen find being used in postinst scripts?15:13
roaksoaxcaribou: i'm not comfortable on applying that fix15:13
roaksoaxto packaging15:13
roaksoaxcaribou: nevermind, found packaging that uses it15:16
=== kickinz1 is now known as kickinz1|afk
gmbBranch up for review, for them as has time: https://code.launchpad.net/~gmb/maas/port-add-seamicro-to-RPC/+merge/23414816:04
gmballenap: Any idea why http://paste.ubuntu.com/8310773/ would produce http://paste.ubuntu.com/8310796/?16:35
gmbIt succeeds… whilst talkign about a failure.16:35
gmbWhich is suboptimal16:36
allenapgmb: /me looks16:36
gmballenap: I'm guessing that I'm just missing something twistedy16:37
allenapgmb: Can you run with -v to see which test that’s being emitted from?16:39
gmbure16:42
gmbsure16:42
gmballenap: Oh, durr! found the problem. I had find_ip_via_arp() returning None in another test.16:44
gmballenap: Thanks for the hint :)16:44
=== julianwa_ is now known as julianwa
allenapgmb: Cool :)16:49
roadmrhello maas folks :) I have a custom image I'd like to deploy using maas (it's a tar.gz that should be "curtin-ready"). How do I make maas aware of it so I can have a node installed with it?16:50
caribouroaksoax: I had concerns about using find as well16:54
allenapgmb: Easy karma? https://code.launchpad.net/~allenap/maas/pserv-dhcp-removals/+merge/23415316:55
gmballenap: Karma acheived.16:59
* gmb -> out for the evening. Night folks; see you on the morrow.16:59
allenapgmb: Thanks, have a good evening.17:00
allenapblake_r: You landed something today (I probably reviewed it even…) re. boot images, iirc. How close are we to not needing the report_boot_images Celery task any more?17:07
=== roadmr is now known as roadmr_afk
roaksoaxcaribou: yeah, so provided that there's similar stuff in other packages, I'm happy to keep it18:14
roaksoaxblake_r: ^^18:14
roaksoaxblake_r: to allenap's query?18:14
=== roadmr_afk is now known as roadmr
blake_rallenap: almost there for not needing the celery task, all the api calls, and the boot image table completely19:20
blake_rallenap: i will remove them once its ready19:21
lamontERROR 2014-09-10 19:28:05,325 maasserver ################################ Exception: 'Expired timestamp: given 1410376478 and now 1410377285 has a greater difference than threshold 300' ################################19:29
lamontwhat usually causes that?19:29
blake_rlamont: the time on the node is 5minutes different than the server19:31
lamontfreshly provisioning node..  I would expect it to run ntpdate, no?19:33
roaksoaxlamont: cloud-init might have a race.. cloud-init is the one who takes care of ensure the clocks are the same19:33
blake_rroaksoax: https://code.launchpad.net/~blake-rouse/maas/fix-cluster-image-syncing/+merge/23419219:34
blake_rroaksoax: fixed ^19:34
lamontta19:35
roaksoaxblake_r: awesome! does that fix the eveyr 15 min import?19:38
blake_rroaksoax: yep19:38
roaksoaxblake_r: ok great! so multipart is also done?19:38
blake_rroaksoax: yep, both up for review19:38
roaksoaxblake_r: awesome! then the only thing left is psycopg?19:39
roaksoaxblake_r: has upstream said anything else?19:40
blake_rroaksoax: yes19:40
blake_rroaksoax: needs to be fixed, for if the client is 9.3 but the server is 9.219:40
blake_rroaksoax: needs to be fixed, for if the client is 9.3 but the server is <9.219:40
roaksoaxblake_r: ok, so, that would be the last blocker to support large images then19:40
blake_rroaksoax: yes19:41
roaksoaxblake_r: anychance you can take care of that today ?19:41
blake_rroaksoax: hopefully19:41
roaksoaxblake_r: awesome! thanks for the hard work19:44
roaksoaxthis is awesome19:44
blake_rroaksoax: np19:44
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
=== CyberJacob|Away is now known as CyberJacob
=== cmagina_ is now known as cmagina
=== CyberJacob is now known as CyberJacob|Away

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