/srv/irclogs.ubuntu.com/2014/11/03/#juju.txt

=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
blahdeblahHi folks, I'm running "charm proof" against a charm I've been writing trying to learn it, and it's complaining "I: all charms should provide at least one thing"04:32
blahdeblahWhy is this so?  If the charm is basically just a single client-facing service does it really need any relations?04:32
=== kadams54 is now known as kadams54-away
lazyWeekendblahdeblah: you can ignore I: prefixed warnings04:43
lazyWeekendblahdeblah: the only warnings you *need* to fix are Warns and Errors. Info is just FYI - and no, its completely acceptable for a charm to be 100% stand alone.04:44
blahdeblahlazyWeekend: OK - thanks04:44
bradmI'm running some charm tests and its failing, but I can't reproduce it outside of the tests - how do I tell it to not tear down the env after running the tests?06:47
bradmoh, cleanup=False, fine.06:51
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== lazyWeekend is now known as lazyPower
=== tvansteenburgh1 is now known as tvansteenburgh
jcastrojose, ping14:37
=== fabrice is now known as fabrice|family
lazyPowermarcoceppi, mbruzek, Tribaal, dpb1, niedbalski -   I'm in the hot seat for a demo fix - can i get a quick review on https://code.launchpad.net/~lazypower/charms/trusty/hdp-hadoop/amir_hpcloud/+merge/240483?17:34
dpb1lazyPower: why all the unrelated changes in there?  'start_NM' -> 'start_nm', etc?17:35
dpb1'start_datanode' -> 'start_dn' ??17:35
lazyPowerdpb1: This was a fix by asanjar that lives in his personal namespace - i think he's normalizing his method signatures as combining camel case with underscores was "obnoxious" as put by 3rd party reviewers.17:36
lazyPoweri pulled this in and verified it works on hpcloud, testing amazon now17:36
dpb1lazyPower: well... in the case of datanode, it's actually decreasing readability... and in any case, for an emergency fix seems like those should be stripped out?17:43
lazyPowerdpb1: ack, i'll cherrypick changes and give this another go17:43
lazyPowerthanks for taking a look dpb117:44
dpb1lazyPower: yes, if you get a reduced version, I'll peek again17:44
=== kadams54 is now known as kadams54-away
lazyPowerdpb1: https://code.launchpad.net/~lazypower/charms/trusty/hdp-hadoop/asanjar_hpcloud_cleanup/+merge/24048717:58
lazyPowerdpb1: looks like my editor had fun reformatting :( cant win for losing today18:01
dpb1yowzer18:01
dpb1:)18:02
sarnoldremoving trailing spaces is almost always a good thing :)18:02
sarnold.. never letting them sneak in is the better thing, of course18:02
lazyPowerATOM's python language lint/bindings is pretty stellar I have to admit.18:03
lazyPowerand its consistent18:03
ayr-tonhttp://askubuntu.com/questions/540209/ip-domainname-of-juju-master-or-slaves-changes ;x18:05
=== tvansteenburgh is now known as tvan|lunch
aisraellazyPower: +1 to that.18:15
lazyPoweraisrael: review or ATOM comment?18:16
aisraellazyPower: ATOM, sorry.18:17
lazyPowerall good - just beating the drum :)18:17
=== tvan|lunch is now known as tvansteenburgh
jrwrencan anyone point me to docs for how to use the storage charm with mongodb charm?19:30
=== roadmr is now known as roadmr_afk
tvansteenburghjrwren: i just happened to glance at https://code.launchpad.net/~evarlast/charms/trusty/mongodb/trunk/+merge/240376 and noticed there are merge markers in the diff19:47
jrwrentvansteenburgh: no idea where that came from. I didn't commit that code.19:48
jrwrenor I did, and I didn't mean to. Its been 5yrs since I used bzr much.19:48
lazyPowerjrwren: i'd charm get cs:trusty/mongodb - reapply your patches to it, and resubmit.  somewhere along the lines a dirty merge happened on your local branch.19:49
jrwrenis this some known launchpad thing?19:51
jrwrenfwiw, I just confirmed that some of that code is not in my branch or the charm in charmstore.19:52
jrwrencan anyone suggest how I may use bzr correctly so taht this doesn't happen again?19:58
jrwrendoes bzr have equivalent of git push -f ?20:03
jrwrenon github, I'd simply git push -f and the PR would be updated. How do I do this with LP and this MR?20:07
mgzjrwren: you just push... there's no need for --force, lp updates20:08
mgzjrwren: you probably just need to merge trunk into your branch and resolve the conflicts20:09
jrwreni don't want to merge. I want to push force.20:10
jrwrenthe whole point is that I have my tree exactly how I want, and I own the remote true. How do I get the remote to be exactly what I have local?20:10
jrwrenor is there a magic merge option that says "ignore all remote" ?20:11
rick_h_jrwren: no, I don't think you can do that20:11
mgzthere's nothing wrong with your branch20:12
rick_h_jrwren: bzr is safe safe safe20:12
mgzlaunchpad is just telling you your branhc conflicts with later changes on trunk20:12
mgzin order to land your branch, you need to resolve them20:12
mgzjrwren: to be clear - your branhc does not have merge markers in it. it's just diverged from trunk of what you're merging into.20:15
=== kadams54 is now known as kadams54-away
jrwrenmgz: I don't know what that means. Pretend I've never used bzr and I only know git words, because that is how fried my brain is right now ;)20:16
jrwreni'm just going to push to a new branch.20:17
tvansteenburghjrwren: in your local charm dir do `bzr merge https://code.launchpad.net/~charmers/charms/trusty/mongodb/trunk`, resolve any conflicts, then commit and push back to https://code.launchpad.net/~evarlast/charms/trusty/mongodb/trunk20:18
jrwrenthat "resolve any conflicts" step is too much friction for me.20:18
tvansteenburghgah, thhose links were supposed to be lp: links20:18
mgzwhat you said still works though :)20:18
jrwreni did figure out how to update the MR with the new branch.  YAY!20:20
jrwrenhttps://code.launchpad.net/~evarlast/charms/trusty/mongodb/i-do-not-know-how-to-use-bzr-so-i-pushed-here/+merge/240499   oh, it doesn't really update it.  new url and everything.20:21
josejcastro: pong20:27
lazyPowerjrwren: heh, nice branch name20:27
lazyPowerjrwren: much cleaner, thanks for the cleanup20:28
jcastrojose, heya, is there a reason you didn't push owncloud to trusty? Was just wondering20:28
josejcastro: yeah, as I said some tests were giving a weird error and I need to take a look. and the apache2 file structure has changed20:29
josejcastro: minor changes and I'll open a bug. will deal with them tonight as I have classes in 30m20:29
* jcastro nods20:29
jcastroI was just wondering, not implying that you needed to fix it!20:29
joseI'm fully back to charming, sorry if I've been absent but exams + flu20:29
josehey, it needs to be on trusty asap!20:29
jcastroI think it's a point release behind too?20:30
josenot actually, you can specify and install any release.20:30
jcastrooh ok, woo!20:30
joseneed to check the default again to make sure it's updated to the latest rev20:30
josebut expect something today20:30
=== kadams54-away is now known as kadams54
=== roadmr_afk is now known as roadmr
* skay waves to roadmr21:10
roadmrskay: hows the jujuing going?21:10
skayroadmr: am trying to figure out why the charm I am working on is using a fork of python-django instead of python-django21:11
skayroadmr: and so on. okay I guess21:11
roadmrskay: oh! yes, I remember it using a fork...21:11
skayroadmr: I haven't looked through everything yet, but perhaps when someone made the fork python-django didn't support installing tarballs? maybe?21:12
skayroadmr: if I get good at this I think I'll reuse my knowledge to make a juju charm for pyvideo.org21:13
roadmrthat'd kick ass :)21:13
skayroadmr: I have run through fabric on it, experimented with ansible, ... and might as well see how this goes21:14
skaylooks like the python-django maintainers are experimenting with supporting ansible and fabric (perhaps other things)21:15
lazyPowerskay: the python-django charm maintainer is actually in progress of moving it to a python only charm using charmhelpers21:36
skaylazyPower: yes, I think I saw that. and the fork my project is using is from before that.21:37
lazyPowerskay: as it stands today they are still deploying the ansible charm as thats whats in teh store - but the pure python branch should be landing soon21:37
lazyPowerlast time i looked at it was a little over 3 weeks ago - but its in the queue21:38
themonklazyPower, hi21:54
lazyPowero/ themonk21:54
themonkI am facing a problem21:54
themonki deployed my charm in amazon21:54
themonkbut in charm when i get unit puclic address it gives me aws instamce private address21:55
lazyPowerthemonk: you're looking for the IP Address of the unit correct?21:56
themonkyes and i use this "unit-get public-address"21:57
lazyPowerthemonk: there's a few ways you can work around this behavior - there have been bugs filed against this in the past, but this is apparently expected behavior from juju - favor the FQDN of the unit vs the ip address.  one method is to dig +short the hostname but this fails gloriously in some environments.21:58
lazyPowermarcoceppi: do you recall the helper we came up with to resolve EC2 ips?21:58
lazyPowerthemonk: wait, i think i just glossed over something. you got the private address back from unit-get public-address?21:59
ezobnHi All. Do any methods exist to retry juju upgrade-juju to the environment, in case of some nodes have not upgraded their juju agents. So I have now some agents previous version21:59
lazyPowerthemonk: have a look at this paste - try running a similar juju-run command for me and pastebin the output: http://paste.ubuntu.com/8808757/22:00
themonklazyPower, bacicaly 'unit-get public-address' and 'unit-get private-address' gives same ip22:00
ezobnMay be I can manually try to upgrade somehow those agents ? If any methods exist  ...22:05
themonklazyPower, http://paste.ubuntu.com/8808837/22:07
lazyPowerthemonk: what juju version?22:07
themonklazyPower, 1.20.11-trusty-amd6422:08
lazyPowerinteresting, i'm running the same juju version and I get FQDN not IP's22:11
lazyPowerinteresting22:11
lazyPowerthemonk: i'm not sure what to say to that... what AZ are you in?22:11
themonklazyPower, US East (N. Virginia)22:12
lazyPowerthemonk: do you have a floating ip attached to the instance? an EIP?22:13
themonklazyPower, what is floating ip? where do i look in ec2 dashboard?22:15
lazyPowerthemonk: ElasticIP's are typically attached to a unit in the EC2 dashboard under "elastic ip" - you'll see the IP and an instance ID next to it if it's assigned.22:15
lazyPowerthats teh last thought I had is if you attached an EIP and it was somehow overriding the networking on the machine to point @ that EIP22:15
lazyPowerezobn: hey there sorry about the delay, the only thing i've found is upgrade-juju - which upgrades the tools in the env.  The units themselves should upgrade (i think) at some point during the agents lifecycle checkins.22:16
lazyPowerworking on getting a definitive answer for you22:16
themonklazyPower, no i do not have EIP, its showing blank22:17
lazyPowerthemonk: i haven't seen that behavior out of amazon before, it seems really strange to me that a) its returning the IP, and b) its the same IP on both pub and private addressing.22:18
lazyPower*out of juju on amazon22:18
lazyPowerthemonk: i would recommend a ping to the juju@lists.ubuntu.com or a question on ask ubuntu tagged juju - and crowd source a possible answer.22:18
ezobnlazyPower: Hi, not a problem. Thanks for the answer. But they are in this state already more then a day ... so I think something wrong happened ...22:20
themonklazyPower, if juju is written in python, may be i can look into the source now :)22:21
lazyPowerthemonk: old juju was, after 1.14 it was ported to go22:21
themonklazyPower, yes22:22
lazyPower if you juju upgrade-juju --version 1.20.11, does that have any effect over the straggler agents?22:22
lazyPowerezobn: ^22:22
lazyPowerezobn: and feel free to substitute --version with the point release you were trying to build and upgrade your environment to22:26
themonklazyPower, what do you think is this a bug?22:31
lazyPowerthemonk: seems like it might be, or a corner case. Do all you runits deployed in AWS exhibit the same behavior?22:32
ezobnlazyPower: no - says "no upgrade available"22:32
ezobnlazyPower: even when --version22:33
lazyPowerezobn: thats unfortunate - can you file a bug against juju-core for the units not upgrading? Be as detailed as you acn and it would probably help during triage to attach logs during the timeframe that you sent the upgrade command and ~ 20 minutes afterwords.22:34
lazyPowerthemonk: I'm going to recommend you do the same, along with debug output of the juju-run commands i had you run earlier, instance constraints, and anything pertinent about your environment.22:34
themonklazyPower, yes its same for all instances22:35
=== kadams54 is now known as kadams54-away
lazyPowerthemonk: Most definately a bug then. I'd file a bug https://launchpad.net/juju-core/+bugs22:36
themonklazyPower, will I file a bug or you?22:37
lazyPowerthemonk: i dont have insight into your network - id' prefer you create it so you can track it and populate it with all the right info for your environment22:38
themonklazyPower, ok thanks :)22:38
lazyPowerthemonk: ezobn: sorry you two ran into trouble, let me know if there's anything else i can potentially help with22:39
themonklazyPower, do you know anyone using juju with aws in production?22:40
lazyPowerthemonk: our very own marcoceppi does, and i believe that omg ubuntu! is run on aws with juju as well - or was at one time. I'd need to follow up on that one22:42
ezobnlazyPower: NP, will reinstall everything ;-) Thanks for make me sure that no yet any means to force the update.22:49
=== kadams54-away is now known as kadams54
themonklazyPower, https://bugs.launchpad.net/juju-core/+bug/138901423:32
mupBug #1389014: juju AWS EC2 "unit-get public-address" gives private address  <juju-core:New> <https://launchpad.net/bugs/1389014>23:32
themonklazyPower, take a look23:33
lazyPowerthemonk: thanks, i'll ping in the dev channel with this and someone should update the bug soon23:33
lazyPowerthemonk: anotehr thought - was your EC2 instance perhaps provisioned in a VPC?23:42
themonklazyPower, what is 'provisioned in a VPC' ?23:44
lazyPowerthemonk: VPC networks are virtual private clusters - subnetted units out of the AWS public cloud space to add another layer of isolation on your services running on top of EC223:45
themonklazyPower, all i do is give juju my access secret and using it23:45
lazyPowerack.23:45
themonklazyPower, i dont think so23:46
themonklazyPower, i mean no VPC23:46
lazyPowerOk, Just another possible reason it might be doing that23:46
=== kadams54 is now known as kadams54-away
lazyPowerthemonk: what i'm getting back from core - executing this on the unit is basically how juju determines the unit ip23:46
lazyPowercurl http://169.254.169.254/latest/public-ipv423:46
lazyPowerit polls the AWS metadata url to return the public address, AWS meta is responsible for all of the assignment23:47
davecheneythemonk: can you run curl http://169.254.169.254/latest/public-ipv423:47
davecheneyon that machien that thinks it's private IP is it's public23:47
themonkdavecheney, i run it but getting a xml with 40423:52
themonkdavecheney, <title>404 - Not Found</title>23:52
davecheneyhmm23:53
davecheneylet me check again23:53
davecheneyi was reading that from the aws domcunebt23:53
davecheneydocumentation23:53
lazyPowercurl http://169.254.169.254/latest/meta-data/23:58
lazyPowerdavecheney: ^ i think thats what we were looking for right? http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html23:59

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