/srv/irclogs.ubuntu.com/2015/08/10/#juju.txt

=== scuttle|afk is now known as scuttlemonkey
=== blahdeblah_ is now known as blahdeblah
=== dooferlad_ is now known as dooferlad
beisnerhi jamespage, can you review c-h mp? @ https://code.launchpad.net/~1chb1n/charm-helpers/charm-helpers.liberty-fetch-init/+merge/267515 - fixes invalid install source re: liberty, also adds a couple of amulet helpers for updated test WIPs.13:37
jcastrojose: ah nuts I missed sebas13:42
jcastrojose: the talk looks awesome, though, I suck at Spanish!13:42
josejcastro: hey, it's good that we have it recorded! you can always try using the automatic spanish CC on youtube and then the English translation14:26
mbruzekjose:  How did your conference go?15:00
=== scuttlemonkey is now known as scuttle|afk
josembruzek: it was super awesome! I didn't get to catch much of the sessions as I was running around, but it was great15:01
josepeople left the auditorium with a big smile :)15:01
mbruzekjose:  awesome15:01
mbruzekjose: Yeah you really can't enjoy the events you are organizing, I know that too15:01
mbruzekJose link to vids?15:01
josembruzek: youtube.com/ubuntuonair, scroll down a bit and there's an ubuconla+ playlist15:02
mbruzekok15:02
joseoh, and seb's talk is there too!15:03
mbruzekI see that, how did you say to translate?15:03
beisnerwolsen, can you confirm an observation?:   enabling ssl in the rmq charm is a one-way deal.  ie. hooks aren't present for disabling ssl once enabled.15:04
lazyPowerouch15:23
lazyPowerthat seems like we broke a cardinal rule there beisner15:24
beisnerlazyPower, yeah, ran into this while test writing.  tests want to flip ssl on and off and run some of the same checks with it enabled and disabled.  i can turn it on ok ;-)15:25
lazyPoweryou do good work my man15:26
beisnersame @ ya, lazyPower15:27
beisnerwolsen, lazyPower - actually, turn-it-off logic is there, but it leaves the key files behind.  probably should clean those up when disabling.15:28
beisnerso, error in my test logic .. it sees key files and says "fail, ssl isn't disabled dood"15:29
lazyPowerwell, thats tricky. are they self signed certs?15:29
lazyPoweror are they provided base64 encoded certs?15:29
lazyPoweri guess either way you would want to not keep them on disk15:31
beisnerlazyPower, functionally, the charm seems fine.  just that lil bit about leaving old news behind that may or may not be of concern.15:40
joseOdd_Bloke: ping, still around?15:50
Odd_Blokejose: Yo.15:50
joseOdd_Bloke: you have a min to talk about the ubuntu-repository-cache charm? got some thingies after using it for production the past weekend :)15:50
Odd_Blokercj: Around?15:51
josemr. Jennings has been idle for over 140 hours15:52
=== arosales_ is now known as arosales
Odd_BlokeHe's been active more recently in internal IRC. :p15:55
joseoh cool15:55
Odd_Blokejose: Do you want to brain-dump?  rcj can catch up when he's around.15:56
josesure15:56
josembruzek: enable automatic CCs on the video, then choose 'translate' to english, and it should do good15:59
joseOdd_Bloke: so, I installed the charm and started working alright. however, when I did the DNS redirect to archive.ubuntu.com, I needed to make sure the redirect didn't point to the same machine, otherwise I would end up in a loop16:00
josealso, jjox helped me find a bug, bug #148309316:01
mupBug #1483093: .archive.ubuntu.com is non inclusive <squid-deb-proxy (Ubuntu):Incomplete> <https://launchpad.net/bugs/1483093>16:01
joseso, that means I had a problem right away. when users connected from archive.ubuntu.com it would give a 403. solution was to remove the . in front16:01
josehowever, what happens if I want to mirror something else? or have the mirror use another domain name? it also needs to be specified on the file, otherwise users will end up with a 403 and won't know what to do16:02
josethat's... basically it :)16:02
joseapart from that, it did a great job16:02
Odd_BlokeSo we haven't hit the redirect loop problem before because all of the cloud images are built to use <cloud_name>.clouds.archive.ubuntu.com (or something along those lines).16:03
Odd_BlokeSo we don't have to do any DNS magic.16:03
Odd_Blokejose: "specified on the file" <-- What needs to be specified, and which file?16:04
joseyeah, but happened to me when I was using the manual provider :)16:05
Odd_BlokeThanks for the feedback, glad to hear it was useful!16:05
josecheck the bug, the mirror-dstdomain.acl file needs to have the domain name that's gonna be used, so I'd suggest a config option to have any domain names you want in there16:05
Odd_BlokeAh, OK, I see what you mean.16:05
joseif it's not there squid-deb-proxy will throw a 403 error, and it's a bit hard to spot16:06
joseneed to navigate between several files16:06
Odd_BlokeYeah, I run squid-deb-proxy at home, so I've hit that problem before.16:06
Odd_Blokejose: So I suspect that we won't find time to fix the 'extra domains' thing any time soon; we're using this as a mirror of archive.u.c, and that's unlikely to change.16:08
Odd_Blokejose: But I would certainly be happy to review a patch.16:08
joseI'd love to give a hand, I'd have to find my way around python charms as I'm not experienced, but definitely willing to take a look16:09
Odd_Blokejose: As for the DNS loop, I'm not sure what to suggest, unless perhaps the charm didn't try to hit archive.u.c but tried to hit a subdomain of it?16:09
josefor the DNS loop, a quick note on the readme could do :)16:09
josesomething like 'make sure you don't end in a DNS loop when you are using the manual provider, otherwise your repository will not update!'16:10
Odd_Blokejose: So what exactly did you do to fix it?16:10
joseput a custom entry on /etc/hosts, since the firewall was somehow blocking 8.8.8.8, reason why I didn't edit resolv.conf16:11
Odd_BlokeSo hard-coded an IP address that you knew was archive.u.c?16:13
joseyep, directly from canonical16:15
Odd_BlokeHmm, that's probably fine for a temporary deployment but you could end up with it breaking if that IP address ever stopped being an archive mirror.16:16
Odd_Bloke(Or, worse, continued to be an archive mirror but was taken out of the DNS rotation because it wasn't updating properly)16:16
joseright. maybe a resolv.conf entry edit or making sure it doesn't use the custom dns but google's, for example, should be good16:17
josejust that in my case it wasn't enough16:17
Odd_BlokeWell, I'm wondering if we should mirror from 'urc.archive.ubuntu.com' or somesuch.16:18
Odd_BlokeProvided people don't advertise their mirror as a wildcard, that should work.16:18
joseyeah, mine was a wildcard too :D16:22
joseso I could've hit it from different dns records16:22
Odd_BlokeI feel like my lack of experience with configuring DNS servers is letting me down here. :p16:22
jamespagebeisner, how do you normally do the switch helpers/tests to stable thing?16:47
beisnerjamespage, i believe in the past, coreycb has done both and pushed into stable as the first commit after the release.16:48
beisnerjamespage, i have a batch, which would result in 1 MP per charm, as i (thankfully) can't push straight into the charms  ;-)16:49
coreycbbeisner, thanks, lemme know if you need a review16:49
wesleymasonI have charm related conundrum..I'm revisiting an earlier attempt to get one of our internally used subordinates into the store, proper, and trying to add some basic amulet tests per review feedback..however there aren't any public charms which currently have a rel for this subordinate (although part of getting it promulgated is to encourage more charms to16:49
wesleymasonsupport it)...so do I either a) try and spend some time adding support to a charm like the wordpress one (which would be nice eventually anyway, but a fair bit of work to undertake properly), or b) can I add a "dummy" charm with minimal amount of mcok data fed back over the relationship to the subordinate to make it testable in the amulet test?16:49
marcoceppiwesleymason: what does the charm do exactly? A lot of people have used an Ubuntu charm as the base of a subordinate and will modify it (with the amulet test) so it will mimic a potential client charm16:52
beisnerjamespage, coreycb - so shall i do the charm-helpers yaml + stable test bit flipping MPs?16:52
jamespagebeisner, pls16:53
jamespagebeisner, lemme push the big button and publish the stable charms16:53
beisnerjamespage, coreycb - curious, does stable charm-helpers branch also get a push from dev in tandem with our release?16:53
jamespagebeisner, it does16:53
wesleymasonmarcoceppi: it installs a utitliy (conn-check), and takes either a filepath to a config file or the config itself as a string and creates the file from the relation (but this is deprecated in the charm), and if related to nrpe sets up a regular nagios check16:54
beisnerjamespage, ok good.  lmk when the charms are pushed, i'll update my batch o matic thing and do those flips.16:54
marcoceppiwesleymason: doing route (a) sounds best either by using an existing charm in your personal namespace as an example or by forking the ubuntu charm as a "vanilla" implementation. Having that will go a long way to helping people grok how to implement the bits required to make their charms compat with yours16:56
wesleymasonmarcoceppi: :+1+, ta will do that16:57
ddellavcoreycb, can you take a look at this amulet output? I'm not sure why it failed http://paste.ubuntu.com/12049127/17:04
jamespagebeisner, apparently I'm done17:06
beisnerjamespage, ok, c-h.yaml + amulet flip batch underway.  will ping when ready for review.17:10
coreycbddellav, I've not seen that error.  for many charm errors you can look in the jenkins artifacts and find logs from the run, typically you'd want to look in /var/log/juju/unit*.log.  but I dont' think that'll help here17:19
coreycbddellav, could be related to this?  https://bugs.launchpad.net/juju-core/+bug/146858617:20
mupBug #1468586: juju 1.24.0 bootstrap failure - Waiting for API to become available - Error connection is shutdown <oil> <juju-core:New> <https://launchpad.net/bugs/1468586>17:20
stubmarcoceppi: Is there any particular reason that the storage subordinate has not been promulgated to trusty?17:20
jamespagecoreycb, beisner: you guys ok to handle landing those branches for the stable switch?17:21
beisnerjamespage, yep we've got it17:21
coreycbjamespage, sure17:21
marcoceppistub: no one's asked?17:23
stubmarcoceppi: ok, asking now :)17:25
stubmarcoceppi: ok, asking now :)17:25
marcoceppistub: just open a bug like you would a new charm asking to promulgate storage charm to trusty and it'll go iunto the review queeu17:25
stubbut laaazy17:26
marcoceppistub: me tooo17:26
lazyPowerstub: you rang?17:30
beisnercoreycb, pile o' openstack charm merge proposals for c-h/amulet stable flips @ http://paste.ubuntu.com/12049694/17:58
coreycbbeisner, k, queued!17:59
beisnercoreycb, woot, thank you18:01
beisnermeanwhile...   bots gone wild!18:07
=== scuttle|afk is now known as scuttlemonkey
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
josembruzek: ping19:08
beisnercoreycb, oh fyi, only expect lint + unit results on that batch, as amulet was green on all of them.  though, as soon as those land, i plan to release a full run of stable charm tests for new baslines.19:13
beisnerbaselines even19:13
coreycbbeisner, ok19:17
wolsenbeisner, coreycb ... release day - I can feel it... literally - the cell phone buzzes with each email sent for merge lol19:27
coreycblol19:28
beisnerbzzzt bzt!19:28
wolsenlol19:28
lazyPowermarcoceppi: do we have charm helper wrappers that gracefully degrade to determine is_leader? My current strategy for approaching this is to panic and halt execution - https://github.com/whitmo/etcd-charm/pull/1619:56
marcoceppilazyPower: not that I'm aware of, the openstack charmers implemented the code. I'd have to look to see19:57
lazyPowerok, i think where i'm at today satisfies the bug, but I'll circle back and look into making the charm gracefully degrade19:58
marcoceppihatch: it also runs the config-changed hook20:02
hatchmarcoceppi sorry?20:02
marcoceppiand potentially the install hook (if upgrade-charm isn't present)20:02
hatchI must have missed a previous message20:03
lazyPowermarcoceppi: thats what you get for trying to ninja20:03
marcoceppihatch: I'm just really good at predicting the question you're about to ask20:03
hatchlol20:03
* lazyPower plays sadtrombone.wav20:03
hatchmarcoceppi so when upgrading a charm, it overwrites everything? or just matching files in the charm path?20:03
marcoceppihatch: it just unpacks the zip file ontop of the charm_dir20:04
lazyPoweronly the files contained in the charm itself. if the charm creates for example .foo - .foo will persist so long as it does not exist in the charm package.20:04
marcoceppiit won't delete anything20:04
hatchmm ok - the root of this question is that I need somewhere to write keys supplied via config20:04
hatchso I wasn't sure if the charm directory was stable enough to do so20:04
lazyPowerhatch: are you using charm helpers? if so, there's a storage module to do this, and it has a handy side effect of letting you know if the value has changed which helps with idempotency20:05
hatchno I'm writing it in bash20:05
lazyPowerwelp, nothing to do here then *whistles*20:05
marcoceppihatch: you acn use charm_dir, or you can always just use /etc :)20:05
hatchlol - I was surprised that there was no 'common charm actions' section in the docs with code examples20:05
marcoceppilazyPower hatch the kv stuff is available through the chlp bash interface :)20:05
hatchthanks for the information marcoceppi lazyPower20:07
* lazyPower hattips20:08
hatchIs the $CHARM_DIR environment variable always defined? Or only during hook execution? I'm wondering if I can use it in an upstart script20:50
marcoceppihatch: only during hook execution20:51
hatchmarcoceppi is there any way to know where the charm path is from the upstart script?20:53
marcoceppihatch: have the charm write it to the init script?20:53
hatchOr should I copy everything to usr/local/bin or something20:53
marcoceppihatch: it's best to use the linux filesystem, either usr/local/bin or /opt or something like that20:54
marcoceppiI typically go with /opt/<thing>20:54
marcoceppibut that's just a convention I grew up with20:54
hatchalright I'll do that  , I need a place to put the bin and keys and whatnot20:54
hatchso I'll just have to make sure the upgrade script properly replaces those20:54
* marcoceppi nods20:54
hatchthanks again :)20:55
coreycbbeisner, those are all merged except rmq which I don't have upload rights for21:00
coreycbbeisner, however, precise and trusty charms are now different, so can you propose all of them against precise too?21:01
lazyPowerthumper: ping21:25
thumperlazyPower: with you shortly21:25
lazyPowerthumper: its a quickie. you were hacking on django and used features that only exist in newer juju, i used the proposed semver approach we riffed in about a month ago - and it got nacked in peer review, you may want to take a look here at this cleaner block update that you can recycle - (reason why is inline) https://github.com/whitmo/etcd-charm/pull/1621:26
thumperlazyPower: ok, will look21:35
thumperlazyPower: btw, I support the min-version idea21:35
thumperwill raise again21:36
thumperlazyPower: however, it does raise the interesting point of "how to fall back"21:36
thumperlazyPower: if I have, say, the django charm that now uses leadership, and has min-version of 1.2421:36
thumperlazyPower: what would the expected behaviour be of someone using 1.22 going 'juju deploy python-django'21:37
lazyPowerthumper: i think thats on a case by case basis21:37
thumperI believe this is the main sticking point w.r.t implementation21:37
lazyPowerif you can probe if you have it available, you're already leaps and bounds ahead21:37
lazyPoweryou can either chose to work around it, or raise an error with a meaningul output with regard to "Yo, your version of juju is crusty, please update if you want to use this charm"21:38
marcoceppilazyPower thumper it seems that leader election is the only hard sticking point atm. status and storage have feasable workaround to degrade nicely21:45
* thumper nods21:47
=== blahdeblah_ is now known as blahdeblah
wesleymasonPSA: !juju now works on duckduckgo.com to redirect searches to the charm store 😉22:30
=== zz_CyberJacob is now known as CyberJacob
=== CyberJacob is now known as zz_CyberJacob

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