/srv/irclogs.ubuntu.com/2014/12/10/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
rsynnestHi guys, I'm wondering if someone can help me figure out why my service is stuck in "agent-state: pending"01:00
rsynnestright now it is just the juju-gui01:01
rsynnestjust not sure where to look01:01
marcoceppirsynnest: sure, happy to help01:15
marcoceppirsynnest: which environment is it? amazon, local, joyent, azure, etc?01:15
rsynnestcool thanks01:15
rsynnestit's onlinelabs01:15
rsynnesthttps://github.com/online-labs/juju-onlinelabs01:15
rsynnestnot one of the big ones unfortunately01:16
rsynnestthey are ARM servers which may be something to do with it01:16
marcoceppirsynnest: it's fine, I'm somewhat familar actually01:16
rsynnestoh cool01:16
marcoceppiso this is using the manual provider01:16
rsynnestyeeah01:16
marcoceppican you pastebin using http://paste.ubuntu.com the output of juju status?01:16
rsynnesthttp://paste.ubuntu.com/9449401/01:17
marcoceppirsynnest: ah, I think i know the issue01:18
marcoceppiwhat command did you issue to deploy the gui?01:18
rsynnestjuju deploy juju-gui01:19
marcoceppiyeah, so 99% of the time, that works great01:19
marcoceppiunless you're using the manual proider (so onlinelabs and digital-ocean atm)01:19
rsynnestah ok01:19
marcoceppiTypically, juju uses the cloud provider like amazon, openstack, blah blah to requisition you a machine and it then puts the service on that machine01:20
marcoceppisince this is manual provider and juju doesn't know the API look ups for those two clouds01:20
marcoceppiyou have to use a slightly different command01:20
marcoceppiwhat you'll want to do is juju destroy-service juju-gui01:20
marcoceppithen, to save space (juju gui is actually designed to run on node 0, it's kind of special)01:21
marcoceppirsynnest: you can just type `juju deploy --to 0 juju-gui`01:21
marcoceppihowever, for all other services01:21
marcoceppiyou'll want to do the following01:21
marcoceppijuju onlinelabs add-machine01:22
rsynnestohhh that's right, I actually thought I did deploy it on the bootstrap node now that I think about it01:22
marcoceppithis will provision a new machine for juju to use and enlist it in the pool of available machines01:22
rsynnestbut that does appear to have done the trick01:22
rsynnestthanks!01:22
marcoceppirsynnest: no worries01:23
marcoceppiyou'll still need to provision more machines using `juju onlinelabs add-machine` (`-n #`, like -n 3 to add three machines)01:23
marcoceppibefore using gui or juju deploy01:23
rsynnestright01:23
marcoceppithe onlinelabs add-machine will provision machines with onlinelabs, add the to juju's pool of machines for usage, and everything works from there01:24
marcoceppiawesome, cheers rsynnest01:24
wgrantCan I convince the local LXC provider to use my local Ubuntu archive mirror?01:52
marcoceppiwgrant: you can02:03
marcoceppiwgrant: what version of juju do you have?02:03
wgrant1.20.10 on vivid02:04
marcoceppiwgrant: you should just be able to set APT_PROXY environemtn variable and on bootstrap it'll use it02:04
marcoceppiwgrant: there's also an environment variable you can set02:04
marcoceppibut I need to find it02:04
wgrantmarcoceppi: Ah, I can set that to a mirror rather than a proxy?02:04
marcoceppiwgrant:oh, wait02:06
marcoceppiwgrant: what doy ou mean by mirror?02:06
wgrantThe containers always use archive.ubuntu.com, which is very slow from here.02:06
wgrantI have a local mirror of archive.ubuntu.com.02:07
marcoceppiwgrant: right, if you serve that up on a transport02:07
marcoceppithen you can use APT_PROXY02:07
marcoceppinot sure how that would look exactly02:10
wgrantmarcoceppi: That didn't seem to change anything. How does archive.ubuntu.com normally get overridden on public clouds? Through cloud-init?02:17
marcoceppiwgrant: I'm not 100% sure, I'd suggest emailing the list with the queries. I'll make sure to find someone who can help answer it tomorrow02:18
wgrantmarcoceppi: Thanks.02:25
=== menn0_ is now known as menn0
=== kadams54 is now known as kadams54-away
=== scuttlemonkey is now known as scuttle|afk
=== jam1 is now known as jam
=== frankban__ is now known as frankban
=== kadams54 is now known as kadams54-away
=== roadmr is now known as roadmr_afk
=== kadams54-away is now known as kadams54
=== roadmr_afk is now known as roadmr
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
rsynnestIs it possible to run a precise charm on a trusty machine?18:31
marcoceppirsynnest: yes, but you first have to fork the charm18:32
rsynnestcool, would I then need to change the config?18:36
rsynnestI'm still pretty new, I'd like to try writing a basic charm just to have a better idea about whats going on  in there18:37
=== sebas5384 is now known as _sEBAs_
lazyPowerrsynnest: depends on the charm, but no just forking it into the trusty series in your local charm repo would be enough18:53
lazyPowerrsynnest: if you want to get your hands dirty in a template, install charm-tools and charm create -h will give you an overview of whats available to you for exploration18:54
rsynnestnice18:58
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== CyberJacob|Away is now known as CyberJacob
=== erkules_ is now known as erkules
rsynnestare there any plans to have juju run on non-ubuntu machines?20:07
mwhudsonrsynnest: which bits?20:08
mwhudsonthe client is available for several platforms20:09
rsynnestcharms20:09
mwhudsonah20:09
mwhudsonthere is some support for centos and windows iirc20:09
rsynnestdebian seems like it wouldnt be too far off20:09
jcastrosomeone needs to just do the work20:10
jcastrothe store supports series20:10
jcastroso doing jujucharms.com/wheezy/blah or whatever is doable20:10
rsynnestinteresting20:11
rsynnestI wonder if an ubuntu docker container is too many layers20:12
rsynnestsince that could theoretically run on any distro20:12
marcoceppijcastro: I've gotten juju to bootstrap once on debian20:16
marcoceppibut it was super hacky20:16
=== roadmr is now known as roadmr_afk
=== menn0_ is now known as menn0
rsynnestI guess it doesn't make a difference what distro is used now that I think about it20:34
rsynnestwindows would be interesting20:34
rsynnestbut also sounds like a hellish nightmare20:35
marcoceppirsynnest: well the goal of Juju is to eliminate that nightmare :)20:40
=== kadams54 is now known as kadams54-away
=== roadmr_afk is now known as roadmr
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
mbruzekmarcoceppi: this is the problem that Yael was seeing when trying to run the amulet test on its own. http://pastebin.ubuntu.com/9467254/21:06
mbruzekI recognize this as juju-deployer version on the system being old/out of sync, is that a correct assesment?21:07
mbruzekmarcoceppi or tvansteenburgh or hazmat Could you tell me how to update deployer on the system to avoid this error?21:08
tvansteenburghapt-get install juju-deployer21:09
mbruzektvansteenburgh: sudo apt-get install juju-deployer21:09
mbruzekjuju-deployer is already the newest version.21:09
tvansteenburghthen pip install21:10
* marcoceppi burns hearing this21:10
marcoceppimbruzek: add ppa:juju/stable21:11
tvansteenburghor that21:11
marcoceppithere's a more updated version of deployer and jujuclient in there21:11
tvansteenburghon pypi too!21:12
marcoceppiwe can't recommend customers just pip install stuff because it makes troubleshooting and updating near impossible21:12
mbruzekmarcoceppi: juju/stable is already installed.21:12
marcoceppimbruzek: then something is wrong21:12
marcoceppi0.4.1 is latest in ppa21:12
mbruzekmarcoceppi: This is ppc64le, I remember there being a dependency issue.21:12
marcoceppifuuuuuuuuuuuuuuu21:12
marcoceppithere's no ppa builders for ppc64le21:12
mbruzekmarcoceppi: is there a 0.4.1 for ppc64le?21:13
mbruzekmarcoceppi: thus why the ISV/partner was having this problem.21:13
marcoceppioh there21:13
marcoceppiis21:13
mbruzekmarcoceppi: link?21:13
marcoceppimbruzek: https://launchpad.net/~juju/+archive/ubuntu/stable/+packages21:13
mbruzekWhen I expand juju-deployer-04.1-1  I do not see a ppc64le deb21:15
marcoceppibecause ppc64el and le are the same thing21:16
marcoceppibleh21:16
marcoceppisorry21:16
marcoceppiI was looking at juju-core21:16
marcoceppilet me see if I can get a build for ppc64le21:17
=== fuzzy_ is now known as Ponyo
marcoceppimbruzek: I re-uploaded juju-deployer21:32
marcoceppilets see if that builds ppc64le21:33
mbruzekOK thank you marcoceppi21:33
mbruzekI found a bug on this very topic already, so I added myself the the list:21:33
mbruzekhttps://bugs.launchpad.net/juju-deployer/+bug/138975521:33
mupBug #1389755: juju-deployer is not working on ppc64le <juju-deployer:New> <https://launchpad.net/bugs/1389755>21:33
marcoceppimbruzek: it doesn't appear that ppas have access to ppc64el21:37
mbruzek*sigh*21:38
mbruzekHow does a python code care about that?  Can't the builders spit out debs in any architecture?21:39
rick_h_marcoceppi: you have to request them special I'm told21:39
rick_h_marcoceppi: because they run on limited hardware and such21:39
rick_h_marcoceppi: but I'm told it can happen21:39
marcoceppirick_h_: any idea who I need to talk to?21:39
rick_h_marcoceppi: launchpad folks/webops?21:39
marcoceppimbruzek: I didn't build the package, so I cant' say why it's arch aware21:39
marcoceppitypically you just get an _all arch21:40
=== kadams54 is now known as kadams54-away
mbruzekmarcoceppi: I am happy to chase this down if you let me know who to talk with on webpos21:40
rick_h_mbruzek: start with asking vanguard or mthaddon and they should help get you pointed from there21:41
mbruzekrick_h_: in #is?21:41
rick_h_mbruzek: #webops21:41
* mbruzek adds #webops to his channel listing21:42
marcoceppithanks rick_h_21:42
rick_h_marcoceppi: np, hopefully kicks things off for you21:42
* rick_h_ checks out for the day21:42
mbruzekThanks rick_h_ have a nice day21:43
rsynnestsoo, I git cloned precise/meteor and tried to deploy it as trusty/meteor, and the install hook failed21:44
rsynnestnot sure how to debug, I don't see anything in juju debug-log21:45
rsynnesthttp://paste.ubuntu.com/9467597/21:47
rsynnestthe service is up and relations appear to be working, but the unit itself is down21:48
marcoceppirsynnest: you can do `juju debug-hooks meteor/0` then in a seperate terminal, run `juju resolved --retry meteor/0` this will allow you to re-run the install hook on the unit and watch the output21:49
rsynnestah awesome, thanks21:49
marcoceppirsynnest: https://jujucharms.com/docs/authors-hook-debug21:49
noodles775I'm trying to get the private IPs for units of a service. I can do this with `juju run --service myservice "hostname -i"`, which works, but I'm assuming I shoud be using unit-get private-address instead? (which gives me a private dns, which I then need to convert in python, on the unit, using socket.gethostbyname - so much simpler with hostname -i).22:12
noodles775Any reasons not to use hostname -i?22:12
thumpernoodles775: sorry, but I have no idea...22:13
noodles775np, thanks. I'll just use hostname -i for now :)22:15
=== menn0_ is now known as menn0

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