/srv/irclogs.ubuntu.com/2015/07/10/#juju-dev.txt

menn0woot! the logging-to-mongodb feature branch has landed01:07
anastasiamacmenn0: wow! congrats :D well done!01:08
menn0anastasiamac: cheers01:08
menn0I just checked the size of the diff to master: 3,500 additions and 852 deletions01:08
anastasiamacmenn0: would love to know of ur experiences in terms of wirtting ci tests for it as well as user-facing documentation01:08
anastasiamacmenn0: when did u create the branch? (for how long have u had it running?)01:09
menn0anastasiamac: there is no user facing documentation, b/c from the user's perspective nothing changes01:09
menn0anastasiamac: it's just a necessary change for JES ... and it's a little less fragile than all-machines.log01:10
menn0anastasiamac: not sure how old the branch is... around mid April01:11
wallyworldexcept we can't use a text editor when mongo dies :-(01:11
anastasiamacmenn0: so there r no changes to configuration01:11
anastasiamacme?01:11
menn0wallyworld: you still have a text log file of all received logs per state server01:11
wallyworldwhich we need to accumulate by hand and which are not interleaved01:12
menn0wallyworld: that's the fallback01:12
wallyworldyeah, i know, i'm just grumpy01:12
menn0wallyworld: yes, if there are multiple state servers01:12
wallyworldno i mean all machines log also contained logs from nodes01:12
wallyworldall interleaved01:12
wallyworldso you could easily see sequencing01:13
menn0wallyworld: yeah I understand01:13
wallyworldi often ssh into a state server and grep that file01:13
wallyworldfar easier than debug log01:13
menn0wallyworld: well the next thing is to expand debuglog's capabilities then01:13
wallyworldyeah01:13
wallyworldsorry for grumping, will just make my life harder now01:14
wallyworldi understand the reasons for it01:14
menn0wallyworld: for example, selecting time ranges is largely implemented on the server side but needs client side support01:14
wallyworldit's the lack of exploring which is the main thing01:14
wallyworldeasier to just flitter around in a text file01:14
anastasiamacmenn0: weren't u at one stage considering to make log output destination (file, db, etc) configurable?01:16
menn0anastasiamac: no I don't belive so. it's hard to effectively handle logs for multiple environments in a single file.01:17
menn0wallyworld, anastasiamac: with the way it's the feature is structured it wouldn't be too hard to generate a all-machines.log or even separate log files per env from the DB.01:18
wallyworldyay01:19
menn0wallyworld, anastasiamac: with the bonus that it doesn't involve rsyslogd01:19
wallyworldeven better :-D01:19
menn0we'd just need a worker which tails the DB like the debuglog API does and generates the file01:19
menn0all the pieces are decomposed in such a way that this wouldn't be hard at all01:20
wallyworldfriday labs :-)01:21
anastasiamacmenn0: this is great! and the feature (as well as its design) would b an awesome demo for team meeting - again tyvm for the feature :)01:22
menn0anastasiamac: yep good idea01:46
* menn0 is having lunch so sorry for the delay01:46
wallyworldwaigani: hey, did you see the maas output on that bug? looks like maas is doing the right thing?02:21
waiganiwallyworld: ah really? hmph. well there goes my theory. At least we can test with that as mock output - try to reproduce it in a test.02:22
wallyworldwaigani: well, i think it is correct, only took a quick look02:23
wallyworldbut we have the output02:23
waiganiwallyworld: I'll try to take a look today, but I need to finish off this branch - I'm on leave for the next 4 days02:23
waiganigreat that we've got the output though, should be helpful02:24
wallyworldwaigani: ok, see how you go, let me know where you get to02:32
waiganiwallyworld: will do, I'm not far off...02:32
waiganiwallyworld: looks like gomaasapi wan't reading the substatus. Here's a PR to fix that: https://code.launchpad.net/~waigani/gomaasapi/substatus/+merge/26437104:09
wallyworldwaigani: ty, looking04:09
waiganiwallyworld: I've also added that to the bug as a comment.04:09
wallyworldwaigani: so that's a fix for the test service in gomaasapi, we still need to fix juju as well right?04:10
waiganiwallyworld: once that gets signed off, it should just be a matter of bumping the dependancies.tsv04:11
waiganiwallyworld: and probably adding a test04:11
wallyworldwaigani: how? the pr above doesn't fix anything04:11
wallyworldit fixes a test server04:11
waiganiwallyworld: ugh, facepalm04:12
waiganiwallyworld: let me go back04:12
wallyworldok04:12
waiganiwallyworld: right, yeah sorry so the juju side is still to come04:13
wallyworldsure04:13
waiganibut it looks like that's the problem, as you can see from that test04:14
waiganiwallyworld: the one thing that makes me nervous is that we are flattening two dimensions into one04:14
wallyworldlet me look at the maas output04:14
waiganiwallyworld: as juju status doesn't have any concept of a 'substatus' so, we just need to be careful how we decide which status/substatus gets reported04:15
wallyworldwaigani: so the maas "deployment_status" api call returns a string doesn't it?04:19
wallyworld"Failed Deployment" or "Deployed" etc04:19
waiganiwallyworld: yeah04:19
wallyworldso we don't need to worry about interpretting status vs subststus04:19
wallyworldis it only older maas deployemnts without the new api call?04:20
waiganiwallyworld: let me look and I'll get back to you04:20
wallyworldok04:21
waiganiwallyworld: just seeing how we dial up that status from the juju side04:21
wallyworldjuju calls deployment_status04:21
wallyworldwell, it does while it waits for the node to come up04:22
waiganiwallyworld: add this to tip of 1.24: http://pastebin.ubuntu.com/11853823/04:31
waiganiwallyworld: it passes04:32
wallyworldlooking04:32
waiganiwallyworld: and yeah we call deployment_status in maas/environ.go deploymentStatusCall04:32
waiganiwallyworld: so it's reporting the correct error04:33
wallyworldwaigani: i'm not sure that's all correct - that test could pass if the status stays "pending"04:34
wallyworldi don't see how we're testing the maas status interpretation04:34
wallyworldand adding a test against a modified test server in gomaas doesn't really prove anything04:35
waiganiwallyworld: right, fair point.04:36
waiganiwallyworld: how about I checkout 1.24.1 (same as in bug), revert changes to gomaasapi and work on improving this test?04:36
wallyworldtry and reproduce a test failure (write a new failing test). then fix juju so the test passes04:37
wallyworldTDD and all that04:37
wallyworldtarget the test to the specific issue04:37
waiganiwallyworld: actually I did run that test on the unmodifed server - and if you comment out the "substatus" line, it's fails - as expected04:37
wallyworldother more general bootstrap tests could also later need changing, but there should be a targetted, specific test done first04:37
wallyworldyes, but that's because the test is relying on the behaviour of hte test server04:38
wallyworldand the test server reports "Deployed" - status 604:38
wallyworldin the absense of sub status 1104:38
waiganiwallyworld: I can't get it to fail, I've written a summary on the bug. I've asked to look at the logs.06:04
wallyworlddid you test with real maas?06:05
wallyworldor vmaas06:05
waiganiwallyworld: I was just about to say, that's the next step06:05
wallyworldit won't fail if you just test with the gomaas test server06:06
wallyworldunless the test server mimics the maas output06:06
wallyworldwhich it doesn't appear to06:06
waiganiwallyworld: yeah, that's what I did - as explained in the bug06:06
wallyworldok, i'll read the bug :-)06:07
wallyworldwaigani: thanks for looking into it, enjoy the time off. i'll see what we can make of it06:09
waiganiwallyworld: thanks. I'm keen to know the cause.06:11
wallyworldi'll update the bug06:11
wallyworldwhen we find it06:11
waiganiah I was just about to06:11
waiganiwallyworld: updated06:12
wallyworldwaigani: it could be that an old api call to get status is being made, and hence sub status is ignored - that would be my guess06:13
wallyworldanyways, we'll see06:13
=== liam_ is now known as Guest18768
TheMuefwereade: interested in a quick chat ;) we're alone today09:01
perrito666fwereade: hi, please dont forget my branch if you have the chance09:31
fwereadeperrito666, sorry, the diff looks mangled? would you update and try again please?11:53
perrito666fwereade: sure12:33
perrito666mm, says rbt it cannot reach reviewboard, odd12:35
perrito666fwereade: sorry rbt is playing dumb with me13:04
TheMuevoidspace: heya Michael, everything alright with your car?13:38
sinzuikatco: perrito666 : there is a new reression in master, bug 1473461 Maybe we want to backout a branch becaue the fix is to write a darwin-specific ./cmd/jujud/util/password/password_darwin.go14:02
mupBug #1473461: OSX/darwin builds fail: undefined: password.EnsureJujudPassword <ci> <osx> <regression> <juju-core:Triaged> <https://launchpad.net/bugs/1473461>14:02
mupBug #1473450 opened: upgrade-juju from 1.18 to 1.20.4 leaves some agents down <juju-core:New> <https://launchpad.net/bugs/1473450>14:03
mupBug #1473461 opened: OSX/darwin builds fail: undefined: password.EnsureJujudPassword <ci> <osx> <regression> <juju-core:Triaged> <https://launchpad.net/bugs/1473461>14:03
=== kadams54 is now known as kadams54-away
ericsnowTheMue: was my review of http://reviews.vapour.ws/r/2129/ helpful?14:10
TheMueericsnow: very, thanks. I'm working on it.14:10
ericsnowTheMue: cool :)14:10
perrito666bogdanteleaga: that password thing is yours :)14:11
ericsnowTheMue: I'll try and give you a quick turnaround as soon as you have any comments or updates to the patch14:11
TheMueericsnow: there has been a longer discussion about the EntityWatcher before. the first Addresser approach used the IP address values. but then Dimiter said it would make sense to use common.LifeGetter and common.Remover.14:12
mupBug #1473466 opened: When using openstack as provider lxc containers get a hardcoded ip <sts> <juju-core:New> <https://launchpad.net/bugs/1473466>14:12
TheMueericsnow: so we needed tags for ip addresses, an earlier chnage.14:12
TheMueericsnow: and this code is mostly based on http://paste.ubuntu.com/11803914/14:12
ericsnowTheMue: ah14:13
TheMueericsnow: should have written more into the description *lol*14:13
ericsnowTheMue: it just struck me as odd that the EntityWatcher was part of this patch :)14:13
ericsnowTheMue: yeah, how terrible of you <wink>14:14
TheMueericsnow: it rushed in as a side-effect. would have been worth an extra change, yes14:14
TheMuehehe14:14
ericsnowTheMue: not really a blocker, but putting multiple effectively distinct changes in a single patch can be a problem every long once in a while (in this case not a big deal)14:16
TheMueericsnow: what? you need more than one commit to implement <insert favourite complex feature here>? :D14:18
ericsnowTheMue: well, not me personally ;)  just this guy I know (okay it's me)14:19
TheMue:,)14:19
mupBug #1473470 opened: Windows cannot ensurePassword <ci> <regression> <windows> <juju-core:Triaged> <https://launchpad.net/bugs/1473470>14:42
alexisbhello akhavr welcome!14:54
akhavralexisb: :)14:54
perrito666ashipika: around?14:56
ashipikaperrito666: here14:57
perrito666just something I found and might bite you in the future14:58
ashipikaperrito666: do tell, please14:58
perrito666ashipika: priv14:58
=== kadams54 is now known as kadams54-away
perrito666sinzui: around?17:20
sinzuiperrito666: I am17:22
perrito666sinzui: I am trying to use boot_context in my CI test17:22
perrito666i feel a bit of a lack of clarity regarding what should the arguments be17:23
sinzuiperrito666 in deploy_stack.py deploy_job() -> deploy_job_parse_args(), _deploy_job() -> boot_context()17:26
sinzuiperrito666: the parse args will have descriptions17:27
perrito666ah, excelent, thank you17:27
sinzuiperrito666: I think we want to add a ricj docstring to boot_context() to encourage it's use17:27
sinzuiperrito666: I will take a stab at the docstring in a few minutes, and pass it for review for you and maybe abentley17:28
mupBug #1473517 opened: juju environment not usable after the upgrade <juju-core:New> <https://launchpad.net/bugs/1473517>17:54
perrito666sinzui:  back, sorry, 2 things, 1) what is bootstrap_host supposed to be and 2) job name can be set to something arbitrary or do I need to add it as an arg?18:37
sinzuijob_name is arbitrary yes, but it is alos unique so that the script and base env can be run in parallel18:38
perrito666and bootstrap_host?18:39
sinzuiperrito666: bootstrap_host is not required. it is a placement directive for bootstraping manual or maas18:39
perrito666None will suffice or you are expecting it to be a given type?18:40
sinzuiperrito666: yep18:40
perrito666ok this function is too long18:44
perrito666sinzui: ok, almost there:  agent_url and agent_stream?18:49
sinzuiperrito666: agent_stream == agent-stream in config. None means don't override18:51
sinzuiperrito666: agent_url == agent-metadata-url in config. None means don't override18:51
sinzuiperrito666: We use these often and will be required to run revision tests in parallel when we need concurent streams18:52
sinzuiwell we do, which is why the configs force the testing streams18:52
perrito666sinzui: so you are saying I should make these args18:53
sinzuiperrito666: all of those things need to be args becauee we may need to run the test with manual and we certainly will be running with streams created for the test18:55
perrito666sinzui: I find then odd that those are not part of add_basic_testing_arguments18:56
mbruzeksinzui: Do you know if anyone has an RPM to install juju client?18:57
sinzuiperrito666: the only arg from that may be dropped from (job_name, client, bootstrap_host, machines, series, agent_url, agent_stream, log_dir, keep_env, upload_tools) is upload_tools because we discovered this week that we cannot fallback to upload-tools with the new os and arch requirements18:57
sinzuimbruzek: I have not seen one. mbruzek Since client relies on ubuntu-ness I doubt anyone succeeded18:58
perrito666sinzui: ack18:58
sinzuimbruzek: the centos client will work for centos https://launchpad.net/juju-core/+milestone/1.24.218:59
sinzuimbruzek: only centos7 actually. I thnk an error is quickly raise of the host os/series is not recognised18:59
mbruzeksinzui: Marco and I just tried to alien the debian packages, it didn't work... yet19:00
sinzuimbruzek: I am sure the deps wont work becaue mongo is not packaged to meet Juju's needs19:01
mbruzekOK Thanks sinzui19:01
abentleysinzui or jog: Could you please review https://code.launchpad.net/~abentley/juju-ci-tools/s3-download/+merge/264450 ?19:15
sinzuiabentley: looking19:15
abentleysinzui: thanks.19:16
abentleysinzui, perrito666: I think that --upload-tools is nice to have for devs who are testing their self-built jujus.19:17
sinzuiabentley: I can and maybe should install s3cmd on all slaves19:17
sinzuiabentley: My one mac has it19:17
abentleysinzui: Oh.  Well, if we do that, we can rip out s3 support for the workspace runner.19:17
sinzuiabentley: then I wont because I like what you have written19:18
abentleysinzui: I do like the idea of isolating the resource retrival/publication from the testing step.19:19
sinzuiyeah, this is awkwardly coupled. Isn't this because we haven't updated the build job to also upload to s3 yet?19:20
abentleysinzui: It's because we haven't done download support for workspace-runner.19:21
abentleysinzui: We can scp files, which is useful, but the remote client can't download files from s3.19:21
sinzuiabentley: This command now works on the osx-slave19:32
sinzuis3cmd -c cloud-city/juju-qa.s3cfg ls s3://juju-qa-data/19:32
abentleysinzui: Okay, I can switch it over to use s3cmd.19:33
sinzuiabentley: I can add s3cmd to windows, but I don't want to give it credentials. I think I put myself in a corner19:34
abentleysinzui: If the plan is to ultimately have our windows jobs uploading everything directly to s3, that would be a problem.19:35
abentleysinzui: Obviously, we can have separate win credentials.19:36
sinzuiabentley: The win-client-deploy job need the installer built by build-win-client.The current rule is the ci job procurs the installer under test and delivers it to the win machine.19:43
abentleysinzui: Right.  Basically the same pattern I was following with run-osx-client.19:46
sinzuiyes. In egnlish, test this <client> using with <script>19:46
abentleysinzui: But then at the end, ci-director uploads the console log to s3.19:47
sinzuiyes, and that is also true for windows.19:48
abentleysinzui: I'm imagining that eventually, we'll want workspace-runner to be able to do that.19:48
sinzuir=me abentley19:51
abentleysinzui: I have updated the code so that s3cmd is run remotely.  Do you want that version instead?19:52
sinzuiabentley: I got scared.19:52
sinzuiabentley: I trust the osx machine but not the win machines. I think it is easier to maintain the idea that testing host cannot retrieve the things under test19:54
abentleysinzui: Okay.19:54
mbruzeksinzui: Those Juju binary files in the tar.gz worked on CentOS7.  Thank you!20:24
mbruzekmarcoceppi: ^20:24
sinzuimbruzek: I should hope so, we officially distribute them20:25
mbruzeksinzui: Is there a test process for installing Juju on CentOS7 ?20:25
mbruzekto verify they work?20:25
sinzuimbruzek: no. We are still tinkering with  what we recommend20:26
sinzuimbruzek: I verified them using a centos machine I provisiioned in aws. I could boostrap an aws env20:26
mbruzeksinzui: thanks.  I did not think they would not work, I was just letting you know I was able to get them to work.  Thanks.20:27
sinzuimbruzek: this will be tested automatiically later this month.20:27
* mbruzek regrets the double negative20:27
mbruzeksinzui: Do you know any work to get the tools build for centos7?  We could not deploy a centos7 charm because there were no tools20:29
sinzuimbruzek: you don't need to build them, they are officially published. The problem is that no one created a way to manually provision or bootstrap them. mgz and and I are still playing with a non-maas way to provision an aws machine with cloud-init20:31
sinzuimbruzek: https://streams.canonical.com/juju/tools/streams/v1/com.ubuntu.juju:released:tools.sjson lists the 1.24.0 and 1.24.2 agents20:31
sinzuimbruzek: This is the most recent centos7 agent https://streams.canonical.com/juju/tools/releases/juju-1.24.0-centos7-amd64.tgz20:32
mbruzeksinzui: marcoceppi downloaded a centos7 image from AWS that appeared to include cloud-init  https://aws.amazon.com/marketplace/pp/B00O7WM7QW/ref=srh_res_product_title?ie=UTF8&sr=0-2&qid=143656047561020:34
mbruzekStarting with CentOS-7 we now include cloud-init support in all CentOS AMI's,20:35
sinzuimbruzek: yep that is what mgz and I plan to use20:35
sinzuithat is also the machine I tested the client with20:35
mbruzekif I downloaded those tools could I use the --upload-tools flag in Juju?20:36
sinzuimbruzek: no you cannot. that simple and practical feature was not built first :(20:38
sinzuimbruzek: I think upload-tools or manual provisioning is the most sensible first level support, instread we got maas. The official way to write charm for centos is to get a maas with handmade centos images first :(20:39
mbruzeksinzui: OK well if you and mgz are working on this I would be interested in helping getting amazon working.20:40
sinzuimbruzek: we will give you an update next week.20:40
mbruzeksinzui: I spoke with a potential customer they like Ubuntu but have some CentOS that they can not work around and specifically asked if Juju would work with CentOS20:41
mbruzeksinzui: thanks for answering my questions20:42
sinzuimbruzek: maybe by 1.25. 1.24 is for cloud engineers who are willing cheat every step to make something work20:43
mbruzeksinzui: understood.  Consider me interested and I understand we actually want them using Ubuntu.  I would just like to demo CentOS without having to install maas20:44
sinzuimbruzek: me too. My last thought was to bootstrap an ubuntu env, bring up a centos machine, run a prep script to satisfy add-machine, then juju add-machine to let juju really add it. The prep script would provide fake commands or alternates to for the cloud-init to work. For example. Create the ubuntu user. create an lsb_release script that returns centos720:47
perrito666can I mark comments as addressed someway in launchpad?21:08
sinzuiperrito666: no, just comment that you are done21:37
abentleysinzui: I've successfully built osx client into (test) s3: https://console.aws.amazon.com/s3/home?region=us-east-1#&bucket=ws-runner-test&prefix=juju-ci/products/version-2873/build-osx-client%20%20/build-17/foo/21:40
sinzuiabentley: \o/21:40
xwwtabently: good news21:40
xwwtabentley: good news21:40
perrito666the fact that save produces something called "unsaved comment" in launchpad is a tad confusing22:58

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