/srv/irclogs.ubuntu.com/2015/09/03/#juju.txt

skylerbergSo I have a change pending review to merge into nova-compute to add an interface for my charm, but the review is awaiting my charm being available.00:33
skylerbergHowever, I have a test in my charm that depends on the change in nova-compute.00:33
skylerbergWould it be preferable to publish with a failing test for the interface or upload without the interface having any test?00:34
beisnerhi skylerberg - can you point us at the test you're referring to?00:50
skylerbergbeisner: I decided to just upload as is. I was working on a test in my charm that would use the tintri-nova interface, but I think I will wait to finish writing that test until after that interface is added to nova-compute.00:52
beisnerskylerberg, it may be worth looking at one of the existing openstack charm test dirs to see how we define and exercise the spectrum of release combos.  there are a lot of existing test helpers too, which may come in handy.00:55
beisnerex.  http://bazaar.launchpad.net/~openstack-charmers/charms/trusty/cinder-ceph/next/files/head:/tests/00:55
beisnerhttp://bazaar.launchpad.net/~openstack-charmers/charms/trusty/cinder/next/files/head:/tests/00:55
beisnerskylerberg, fwiw - ppl have work-in-progress branches in lp all the time, i don't think that's an issue.00:58
skylerbergbeisner: Good to know and thanks for the pointers.00:59
skylerbergI went ahead on pushed mine https://code.launchpad.net/~sberg-l/charms/trusty/cinder-tintri/trunk.01:00
=== scuttlemonkey is now known as scuttle|afk
beisnerskylerberg, cool - oh, probably an easier example is the Makefile and tests/ dir of the lp:charms/trusty/ubuntu charm01:14
jamespagegnuoy, I think we're at the point where we can start testing liberty again; can we do a charm-helpers sync to ensure all charms have the new version detection code?08:17
jamespageI can run that - but I know you have a process08:17
gnuoyjamespage, sure, I'll do it, it'll help kick me to automate it :-)08:18
jamespagegnuoy, +108:18
jamespagethanks08:18
jamespagegnuoy, hold a sec08:31
jamespageI think there is something up with my regex and unit tests08:31
gnuoyack08:31
jamespagegnuoy, yeah my regex for digits is not greedy enough08:34
jamespageI don't know why the unit test is actually passing08:34
* jamespage looks08:34
jamespagegnuoy, https://code.launchpad.net/~james-page/charm-helpers/fixup-detection/+merge/27001608:43
jamespagegnuoy, basically the code only worked with single digit versions, and the dict for testing had multiple entries for nova-common08:44
jamespagedohy08:44
gnuoyjamespage, merged08:48
jamespagegnuoy, ta - ok I think we can resync now then08:49
gnuoyjamespage, I'll just let the mojo job run through with the previous version of charmhelpers then I'll sync08:50
gnuoyjamespage, charm helpers sync'd09:45
jamespagegnuoy, awesome - thanks09:49
jamespagegnuoy, I have a few trivial updates to fixup other things - an number of charms where not using -common packages for version detection09:50
gnuoyok, sounds good09:50
gnuoyjamespage, do you have a sec for a second opinion on https://code.launchpad.net/~thedac/charm-helpers/legacy_leadership_peer_retrieve_fix/+merge/26940009:50
gnuoynot sure if I'm being paranoid09:50
sparkiegeekhmm09:51
jamespagegnuoy, hmm - I thought that a unit should always rely on what it set on the peer relation09:51
sparkiegeekgnuoy: http://bazaar.launchpad.net/~openstack-charmers/charms/trusty/swift-storage/next/revision/78 worries me09:51
sparkiegeekin https://code.launchpad.net/~adam-collard/charms/trusty/swift-storage/fix-unconditional-service-restart/+merge/269744 there were failures with the fixed charm-helpers09:52
sparkiegeek(see explanation on the MP)09:52
gnuoyjamespage, that's what I thought. I need to understand why that change fixes rabbit09:52
gnuoysparkiegeek, I'm probably being slow but I don't quite follow what you are saying. The latest charm helper sync which isn't in your branch yet is causing a problem?09:57
sparkiegeekgnuoy: nope :)09:58
sparkiegeeklemme try and explain a bit better09:58
sparkiegeekhttps://bugs.launchpad.net/charms/+source/swift-storage/+bug/148977009:58
mupBug #1489770: openstack_upgrade_available incorrectly always returns True for swift charms <backport-potential> <landscape> <Charm Helpers:Fix Committed by adam-collard> <swift-storage (Juju Charms Collection):In Progress by adam-collard> <https://launchpad.net/bugs/1489770>09:58
sparkiegeek^ this got fixed in charm-helpers first, and then I made a branch for swift-storage09:59
sparkiegeekthe change to charm-helpers inadvertently caused amulet tests to fail in swift-storage (further digging shows that they were incorrect all along, and were essentially asserting that that bug exists)09:59
sparkiegeekso I am worried that mojo passed those tests with the charmhelpers synced, because when I ran them, they failed10:00
sparkiegeek(my MP for swift-storage fixes them)10:00
sparkiegeekgnuoy: ^^ any clearer? :)10:01
gnuoysparkiegeek, the mojo charmhelper sync job doesn't run the amulet tests10:01
sparkiegeekgnuoy: ah ha!10:01
gnuoysparkiegeek, although it should really10:02
sparkiegeekok, so I expect we'll now see OSCI throwing up when it runs the amulet tests10:02
sparkiegeekunless some kind, generous sole in ~openstack-charmers reviews/merges my branch?10:02
gnuoykk10:02
sparkiegeek*soul10:02
sparkiegeekI mean, you might have nice feet too10:02
gnuoysparkiegeek, I shall don my review trousers10:02
sparkiegeekthen we can talk about backporting to stable :)10:04
sparkiegeekza boog seems pretty important to me10:04
sparkiegeekI expect other swift-* charms are broken too10:08
sparkiegeekgnuoy: ^^ my focus is on swift-storage at the moment10:09
gnuoysparkiegeek, do you have time to propose it to stable? fwiw stable uses lp:~openstack-charmers/charm-helpers/stable10:09
sparkiegeekgnuoy: the idea would be to cherry-pick the necessary change in to stable for both c-h and the charm?10:09
gnuoysparkiegeek, yep10:09
sparkiegeekgnuoy: sure, will do10:09
gnuoyta10:10
apuimedolate morning!10:11
sparkiegeekgnuoy: https://code.launchpad.net/~adam-collard/charm-helpers/openstack-upgrade-available-swift-stable/+merge/27002810:17
sparkiegeekgnuoy: and .. https://code.launchpad.net/~adam-collard/charms/trusty/swift-storage/conditional-service-restart-stable/+merge/27003010:38
gnuoysparkiegeek, ta10:39
=== apuimedo is now known as apuimedo|lunch
coreycbjamespage, I see you and gnuoy were looking at some liberty c-h bits.  I have this mp if you haven't already fixed things up.  https://code.launchpad.net/~corey.bryant/charm-helpers/liberty/+merge/26997912:37
coreycbI should merge tip12:38
coreycbtip merged12:39
pmatuliswhat are these juju "tools" i keep reading about?13:33
lazyPowerpmatulis: charm tools maybe?13:52
lazyPowerpmatulis: or are you referring to the juju tools that are fetched from streams / built on bootstrap and live on the state server?13:53
pmatulislazyPower: the latter i think. i see it mentioned for bootstrap and for upgrade-juju14:06
pmatulisi downloaded something [1] and there was a single file: 'jujud'14:06
pmatulis[1]: https://streams.canonical.com/juju/tools/14:06
lazyPowerpmatulis: yep, those are the actual bins that empower juju14:07
lazyPowerthe juju daemon, agent, et-al14:07
pmatulislazyPower: so each machine and unit have a jujud or is it just something that stays on the state server?14:08
lazyPowerAs I understand it, yes. That's the agent component for every service14:09
hazmatdimitern: did the network vpc support get merged?14:11
dimiternhazmat, not yet, it turned out a bigger rat hole I imagined14:12
hazmatdimitern: ack, bummer14:12
dimiternhazmat, I have a working fix, but it will take some refactoring to merge it without breaking other stuff14:12
marcoceppihey rbasak, I've got another packaging question for you. So I've got a .install file that has this line "usr/lib/python2.*/dist-packages/stuf*/" because this python project, when built puts a tests directory in the dist-packages. However when I run the build I get  "dh_install: python-stuf missing files (usr/lib/python2.*/dist-packages/stuf*/), aborting"14:26
marcoceppinot sure how to go about removing the tests directory14:26
=== scuttle|afk is now known as scuttlemonkey
natefinchlazyPower, marcoceppi:  I'm deploying wordpress in a juju environment, like, for production.  I noticed that the max media upload size is 2 MB, and googling says the only way to modify that is to edit some .ini file manually...15:05
natefinchlazyPower, marcoceppi: so, two questions:  1.) why is the default 2 MB?  That seems tiny.  2.) it seems like this is something we could help people adjust without having to go find some file to twiddle... e.g. juju set wordpress maxuploadsize=12mb15:07
lazyPowernatefinch: iirc that file is already under cheeta template control and that should be a pretty simple patch15:07
lazyPowernatefinch: can you file a bug and we'll try to circle back on it? thats a good point.15:07
lazyPowerI know we haven't taken a serious look at the wordpress charm in some time, there's probably some room for improvement there15:08
natefinchlazyPower: cool15:08
mbruzek1Someone wants to use relations to share files between charms in Juju. Can you help me brainstorm a solution?  It appears Juju only puts the public keys on the units so they can not scp with each other.  Is there another way?15:13
mbruzek1I wrote a charm that serves the files via http.15:14
mbruzek1but I am looking for other options.  Ideas?15:14
marcoceppimbruzek1: you could exchange directories and ssh-keys15:20
mbruzek1via the relation data?15:20
marcoceppiand use rsync/scp15:20
marcoceppirsync ftw, if you do go that route15:20
marcoceppimbruzek1: is this peer or provides/requires scenario?15:21
mbruzek1relation-set private-key="binaryhexdatahere"15:21
marcoceppimbruzek1: basically, so you could do the exchange one of two ways15:21
mbruzek1marcoceppi: provides/requires scenario.15:21
marcoceppimbruzek1: you could have the end that wants to connect send public-key it's safer that way, then the one serving the files simply adds taht key to authorized_users for the user that has the files on the system and sends back a path15:22
mbruzek1Oh yeah15:22
marcoceppimbruzek1: or you could have the charm serving the files generate private-keys and send them out15:22
marcoceppithat way it's a one-way communication, but it's a little more...hinky that way15:22
marcoceppieither way I'd definitely make sure teh charm serving the files creates a non-priviledged user on the system to house the files and have all the other services use that user whena ccessing the server to minimize security risks15:23
=== xwwt_ is now known as xwwt
Odd_BlokeIf someone has a minute to review https://code.launchpad.net/~daniel-thewatkins/charms/trusty/ubuntu-repository-cache/fix-cron-template/+merge/270083 it would be much appreciated.16:15
Odd_BlokeWe're trying to roll-out in-cloud mirrors in a few places and this is (hopefully) the one remaining blocker. :)16:16
lazyPower@Odd_Bloke white space fix on a template?16:18
lazyPowerah i see i the commit message the intention here16:18
lazyPower@Odd_Bloke - I see a inked issue which currently has no resolution. Is this MP going to resolve the problem if you're still rendering w/ jinja2 from charm-helpers?16:20
Odd_BlokelazyPower: Yep, jinja2 essentially does "\n".join(rendered_template.split('\n')), and so only strips the _last_ newline (not all trailing newlines).16:22
lazyPoweri'm deploying now to verify, should have this merged shortly16:23
Odd_BlokelazyPower: Great, thanks!16:23
lazyPower@Odd_Bloke merged.16:27
Odd_BlokelazyPower: Thanks!16:29
g3narojoooooojooooooooooo16:29
ntpttrHi, I was here with this issue yesterday, but I'm still having some trouble today and I'm not getting the same error. I have the juju-gui charm deployed and exposed with16:55
ntpttra public address of node0vm0.maas, but when I go there in a browser it hangs on "connecting to the juju environment"16:55
ntpttrI do have a proxy set up, but to my knowledge it's configured correctly16:55
lazyPowerntpttr: which browser are you using?16:56
ntpttrlazyPower: I've tried firefox and chrome - on firefox going to https://node0vm0.maas hangs on the connecting screen and on chrome it says ERR_CONNECTION_CLOSED16:57
lazyPowerrick_h_: ^16:57
lazyPowerntpttr: I've seen some strange issues out of browsers like safari and self signed certificiates, it accepts for the http session but not the websocket connection. But w/ chrome you should be g2g16:58
ntpttrlazyPower: If I curl the address here's what it gives me. Does it matter that it's 'moved permanently'? http://pastebin.com/wHwSkPR316:59
rick_h_ntpttr: it's redireceting port 80 to port 443 for ssl16:59
rick_h_ntpttr: so both ports need to be open and reacahable via the proxy16:59
ntpttrlazyPower: Because in chrome the details on the error say that it might have moved permanently, but not sure where17:00
rick_h_ntpttr: if you open chrome dev toolbar there's a network tab where you can see the GUI reaching out (the spinning wheel part) to the juju state server17:00
rick_h_ntpttr: and the proxy needs to be allowing a secure websocket17:00
rick_h_ntpttr: wss://17:00
rick_h_ntpttr: it sounds like there's a proxy issue.17:00
ntpttrrick_h_: Hmm I thought I had my proxy configured this same way a few days ago when it was working...17:01
rick_h_ntpttr: are there any details in the network tools?17:01
rick_h_frankban: is there a way to 'curl' a wss connection to test it out from the cli or the like?17:02
ntpttrrick_h_: The only thing in the network tab in chrome is saying failed to load resource: connection closed17:02
rick_h_ntpttr: for what url?17:02
frankbanrick_h_: reading backscroll17:02
rick_h_ntpttr: I'm guessing the proxy is closing things on your as 'not allowed'17:02
rick_h_ntpttr: but it is a guess, apologies17:03
ntpttrrick_h_: The URL is node0vm0.maas, it's what the orange box example bootstrap script sets up17:03
rick_h_ntpttr: ok, so that's the url of the state server juju is running?17:04
ntpttrrick_h_: I have '.maas' in my no_proxy list17:04
rick_h_ntpttr: but the connection should be to the domain that the juju-gui charm is on?17:04
frankbanrick_h_: the easiest way is using the python websocket client, e.g. create_connectiion(url) and check that it works17:04
rick_h_ntpttr: are they colocated on the same machine/network?17:04
frankbanrick_h_: url being wss://{GUI-ADDRESS}/ws17:04
ntpttrrick_h_: the service is being run on a VM in the machine I'm trying to access the URL on17:05
rick_h_ntpttr: right, but are they on the same DNS name then?17:05
rick_h_ntpttr: e.g. are both http://node0vm0.maas/ ?17:05
ntpttrrick_h_: Hmm I think so, I'm sorry I'm a little confused17:06
rick_h_ntpttr: so 10.14.100.1 is the GUI, and it redirects to 10.14.100.1:443 and then it'll try to build a wss to 10.14.100.1.17:06
rick_h_ntpttr: I'm wondering if there's a collision on that IP address from your point of view17:06
rick_h_ntpttr: e.g. we think connecting to 10.14.100.1 is the GUI but really it's juju itself? or something else deployed?17:06
ntpttrrick_h_: Oh I'm not sure, no other services are deployed17:07
rick_h_ntpttr: how did you deploy the juju-gui?17:07
ntpttr'juju deploy --to 0 --repository=/srv/charmstore/ local:trusty/juju-gui' after bootstrapping node0vm017:08
ntpttrand then 'juju expose juju-gui'17:08
=== rogpeppe2 is now known as rogpeppe
rick_h_ntpttr: right, you deployed it to the same server juju itself is running on. Try changing the juju-gui port to something non-stnadard.17:09
rick_h_ntpttr: https://jujucharms.com/juju-gui/#charm-config-port17:09
ntpttrrick_h_: Okay I'll give that a shot17:10
rick_h_frankban: what's the wss port by default? We don't normally collide with juju when colocated right?17:10
* rick_h_ is having sprint mental fatigue. 17:10
frankbanrick_h_: 443 by default17:10
ntpttrrick_h_: The odd thing though is that it worked before with this setup, and this is the default way orange box does it17:10
frankbanrick_h_: or based on a gui charm option17:10
rick_h_ntpttr: yea, sorry. I'm brain farting at the moment trying to think.17:11
frankbanntpttr: does it work using incognito mode?17:11
ntpttrfrankban: No17:11
rick_h_ntpttr: ok, so if you hit "ctrl-shift-j" you get the chrome dev tools. In there you get a nav and click "Network"17:12
rick_h_ntpttr: then reload the page, and click the 'filter' icon that looks like a funnel and pick "WebSockets" from the list17:12
rick_h_ntpttr: and can you screenshot what that looks like please?17:13
ntpttrrick_h_: how should I share the screenshot? The screen is blank when I pick websockets17:14
rick_h_ntpttr: after reload?17:14
rick_h_ntpttr: I guess then it'd be interesting to see the list unfiltered then. The websocket should be there really early in the page load17:15
ntpttrrick_h_: the only things showing up are data:image/png and 'node0vm0.maas     (failed)'17:16
rick_h_ntpttr: on a fresh reload?17:16
ntpttrrick_h_: yeah17:17
ntpttrrick_h_: one second I'm uploading a screenshot17:17
ntpttrrick_h_: http://postimg.org/image/sseqzhpy917:19
rick_h_ntpttr: so looking at that, there's something taking https://node0vm0.mas to https://node0vm0/:1 ?17:20
ntpttrrick_h_: hmm I don't know what that would be about...17:21
rick_h_ntpttr: me either :/17:21
lazyPowerrick_h_: i've not had the gui collide with the bootstrap server in my experience (late i know, but confirmation)17:22
rick_h_lazyPower: yea17:22
rick_h_lazyPower: but if there was a 'proxy' setup then I was wondering if things are nested/etc17:22
lazyPowerah, yeah17:22
rick_h_lazyPower: ntpttr I've got to run for a sec. Sorry, but just not sure what's up. ntpttr I'd like to see if you can curl the main index.html page and get that back as I can't tell the actual urls from your netowrk tab. It's cut off. But it looks like you're not getting a spinning circle, but no files are able to come through17:25
rick_h_ntpttr: the one thing that you might check is that the gui is running (maybe it died?) by ssh'ing to the unit and checking of guiserver is in the ps output17:25
ntpttrrick_h_: Okay I'll try that out thanks for the help17:26
skylerbergIs there a way to retrigger uosci-testing-bot?18:13
pmatulisfor 'juju upgrade-juju', is the new software d/l'd to the client which then sends it to the state server which then distributes it to instances? or what?18:16
ntpttrAre there logs for this IRC channel?18:27
wolsenskylerberg, beisner can help you with that - or you can move the merge proposal into WIP for ~40 minutes then back to Ready for Review - OSCI bot runs on a timer for now and won't re-run against unchanged merge proposals18:30
skylerbergntpttr: Yes, http://irclogs.ubuntu.com/18:30
skylerbergwolsen: Thanks. Going with the WIP solution.18:33
wolsenskylerberg, ack18:33
natefinchlazyPower: juju's wordpress seems to have a fairly critical bug - you can't upload pictures for your posts etc.   Is there some configuration I need to set up to enable that?18:49
marcoceppinatefinch: what's tuning set to?19:27
natefinchmarcoceppi: the default, uh... single19:33
marcoceppiyou should be able to upload, what error are you getting?19:33
natefinchmarcoceppi: there's a panel on the right that says UPLOADING  and under it "foo.jpg    HTTP error"19:34
natefinchmarcoceppi: btw, can repro easily on local provider, but saw it first on a manually provisioned digital ocean machine19:35
natefinchmarcoceppi: I'm happy to look for log messages, but I couldn't figure out where WP was keeping logs (if it does)19:35
marcoceppinatefinch: if you're using nginx as the engine, there's a php-fpm log either in /mnt or /var/log19:36
marcoceppithe wordpress charm is...crufty19:36
natefinchmarcoceppi: lol... I'm figuring that out.19:38
natefinchmarcoceppi: ahh, nginx log has it in /var/log/nginx/error.log:19:40
natefinch2015/09/03 14:24:00 [error] 31196#0: *161 client intended to send too large body: 1326272 bytes, client: 10.0.3.1, server: _, request: "POST /wp-admin/async19:40
natefinch-upload.php HTTP/1.1", host: "10.0.3.202", referrer: "http://10.0.3.202/wp-admin/customize.php?return=%2Fwp-admin%2F"19:40
natefinchmarcoceppi: so, some nginx configuration problem, given that wordpress says 2megs is ok, and I'm only sending 1.3megs19:40
natefinchmarcoceppi: https://bugs.launchpad.net/charms/+source/wordpress/+bug/149199519:43
mupBug #1491995: Can't upload files to wordpress <wordpress (Juju Charms Collection):New> <https://launchpad.net/bugs/1491995>19:43
aisraelDatabase relation question (using postgresql): I'm testing a charm, destroying and re-deploying it occasionally. What's the proper way to cleanup the database when the relation is broken, so that tables aren't left behind owned by the previous user? IOW, I have tables owned by db_1_foo so a new deploy assigned the user db_2_foo can't change said tables.21:16
aisraelstub: ^^ might be a question for you21:20

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