/srv/irclogs.ubuntu.com/2013/09/10/#juju.txt

=== defunctzombie is now known as defunctzombie_zz
=== CyberJacob is now known as CyberJacob|Away
=== freeflying is now known as freeflying_away
dalek49why does juju require a local charm to be under a "precise" directory?  I'm running raring, and when I put it under "raring" it complains that it can't find anything in "precise"02:23
sarnolddalek49: does your environment say to deploy on precise or raring?02:29
=== defunctzombie_zz is now known as defunctzombie
dalek49sarnold: it's not specified, does it default to precise?03:54
=== axw__ is now known as axw
=== freeflying_away is now known as freeflying
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
bladernr`davecheney: sorry...09:22
bladernr`davecheney: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html09:23
bladernr`I have two different keypairs… 1 is stored locally and allows me to ssh from my machine to an instance i created and associated with that key.09:24
bladernr`the other I use when creating other instances and allows me to ssh from my main ec2 instance that runs juju to the newly created instance…  IOW, key1 allws me to ssh from my workstation to ec2_instance_1.  I create a new instance manually and set it to use key2. Key 2 allows me to ssh from ec2 instance_1 to ec2_instance_209:26
bladernr`manually, it works fine… what I'm trying to find, now, is the key to set in environments.yaml to tell juju "When you create an instance, associate it with ec2 keypair 'key2'"09:27
bladernr`davecheney: you mentioned AWS environment variables earlier, and I can find ones to specify the aws API keys so juju can spawn instances, but I can't find one to specify those ec2 keypairs as described in the link I posted09:28
bladernr`davecheney: sorry, I'm really not trying to be obtuse or intentionally confusing...09:28
bladernr`it's just working out that way09:28
freeflyingdoes juju core support export whole deployed environment?09:34
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== freeflying is now known as freeflying_away
=== TheRealMue is now known as TheMue
=== gary_poster|away is now known as gary_poster
=== freeflying_away is now known as freeflying
aethelrickhi all, I've made a change to the postgresql charm that allows you to set a admin_ip configuration option which causes this ip to be added to the pg_hba.conf file... anyone want to check it out for sanity?12:32
aethelrickI'm not a python programmer... but it seems to work ok for me :)12:33
mthaddonaethelrick: do you have a merge proposal?12:35
aethelrickmthaddon, wastha? sorry, I'm new here... I started playing with juju yesterday for the first time12:36
marcoceppi_aethelrick: Do you have a launchpad account>12:36
aethelrickmarcoceppi_, not yet... I'm sure I can make one though...12:36
mthaddonaethelrick: if you want to get a change made to the upstream charm, you'll need to create a merge proposal on launchpad and it'll then show up on http://manage.jujucharms.com/review-queue12:37
marcoceppi_aethelrick: that'd be the first place to start. Once you have a (free) account, you can push your version of the code to launchpad and people can review it12:37
aethelrickmthaddon, ok, thanks... will figure that out and get back to you when merge proposal is submitted12:38
aethelrickmarcoceppi_, thanks :)12:38
mthaddonk12:38
kennHi guys, also just starting out with juju. Really like it so far, have experience with Chef on RightScale, this seems more ... sane12:57
kennhave a question though, I deployed a service which failed during install. I then ran destroy-service so I could deploy it to the machine again, but it's not going away. Is there a way to force the destruction of a service?12:58
aethelrickok, I have made a merge request for postgresql12:59
aethelrickthis is the branch I made... https://code.launchpad.net/~richard-asbridge/charms/precise/postgresql/postgresql-admin-ip13:00
marcoceppi_aethelrick: you were really close, you need to reverse the order13:01
marcoceppi_aethelrick: you want to merge lp:~richard-asbridge/charms/precise/postgresql/postgresql-admin-ip in to lp:charms/postgresql :)13:02
marcoceppi_kenn: welcome!13:02
kennah there we go, juju resolved did the trick13:02
marcoceppi_kenn: when a service is in an error state all future events (including destroy) are queued13:02
kennthanks marcoceppi_13:03
marcoceppi_kenn: you have to resolve the error before continuing13:03
marcoceppi_kenn: ah, you got it, cool13:03
=== marcoceppi_ is now known as marcoceppi
kennmarcoceppi, actually just watched the charm schools on Local/LXC Provider, thought your name looked familiar. Great video thanks for that, it really cleared up a lot of small random things for me13:04
marcoceppikenn: glad that worked out for you, there were a lot of odd things that popped up during that charm school, so I'm happy you found it helpful13:05
marcoceppiaethelrick: the merge looks good, I'd just change the default from 'None' to an empty string13:07
Kabhi im trying to deploy to a vps i have running ubunutu 12.0413:51
jcastrojamespage: ooh, tell me about this percona xtradb you've got going on13:52
Kabthe urls in juju init are wrong14:06
marcoceppiKab: what do you mean the URLs are wrong?14:08
Kabtype in juju init14:09
marcoceppiKab: right, I'm familiar with this, which provider are you trying to use?14:09
Kabthey all give https://juju.ubuntu.com/get-started/ url14:09
Kablocal14:09
marcoceppijcastro: ^14:09
marcoceppiKab: we just had a new website released, looks like they didn't properly 301 redirect the URLs14:10
marcoceppiKab: https://juju.ubuntu.com/docs/config-local.html14:10
jcastroYARGH14:11
jcastroKab: which URLs are you running into this?14:11
marcoceppiKab: make sure you add the ppa:juju/stable before installing mongodb-server14:11
marcoceppijcastro: they're in the juju init output14:11
marcoceppijcastro: and all over the internet14:11
jcastrooh14:11
jcastrojust the root get-started14:12
jcastrogot it14:12
marcoceppijcastro: yeah, going to make a tool to prevent this from happening ever again14:12
aethelrickmarcoceppi, hi, was away from desk, I will change the None to an empty string14:12
marcoceppiaethelrick: no worries, thanks. You'll also want to update the merge proposal, I sent instructions in your current merge request14:13
aethelrickmarcoceppi, thanks :)14:13
jcastromarcoceppi: make sure it spams the planet when we break urls14:13
marcoceppiaethelrick: otherwise, the merge looks good. I'm on review this week so I might not get to it today, but I'll be looked at sometime this week14:14
marcoceppijcastro: yeah, seriously14:14
kurt_marcoceppi: has that configuration for single provide been tested with maas?14:16
jcastromarcoceppi: they're already working on it14:16
marcoceppikurt_: what do you mean by single provide been tested with maas?14:16
jcastrobut still ... :-/14:16
kurt_marcoceppi: local rather14:17
jcastromarcoceppi: did you see the manual provisioning stuff on the list? I totally missed it until this morning14:17
jcastromarcoceppi: oh nm, I see you replied14:17
marcoceppijcastro: I did!14:17
marcoceppikurt_: you don't use the local provider with maas14:17
marcoceppimaas is it's own provider :)14:17
kurt_but what about the case of trying to consolidate services when deploying?14:18
kurt_ie. --to14:18
kurt_I'm wondering if this is a more elegant solution for that14:18
kurt_so far I have not had a lot of success trying to consolidate services with 1.1214:19
jamespagejcastro, active/active mysql :-)14:24
* jamespage disappears again14:24
jcastrowhoosh!14:24
gnuoyhazmat, hi there, I'm not sure if you're the right person to ask but I have a pretty small mp to lp:juju-deployer/darwin that would be great to get landed if  you get a moment ( https://code.launchpad.net/~gnuoy/juju-deployer/darwin-fix-force-machine/+merge/183613 )14:34
hazmatgnuoy, noted14:39
gnuoythanks14:39
hazmatgnuoy, at a conference today, but can tackle in this evening14:39
gnuoythat would be awesome, thank you14:39
arosaleshazmat, should evilnickveitch take pythonhosted.org/juju-deployer for instructions on juju deployer for the juju docs?14:41
hazmatarosales, there's not much there, src for that is lp:juju-deployer && cd docs14:42
jcastromarcoceppi: redirect fixed14:43
marcoceppijcastro: \o/14:44
arosaleshazmat, ok we'll start with the basics. From there we can get your feedback,14:47
arosaleshazmat, if you have an outline on what you would like the docs to look like evilnickveitch can also build from there.14:47
arosalesjcastro, were you still working on the django workflow for the docs14:48
jcastroI just mailed the guys14:49
jcastrobruno is full up on work, waiting to see what patrick says14:49
arosaleswedgwood, would you be interested in some getting some docs to evilnickveitch  for charm helpers?14:49
arosaleswedgwood, it can be a rough outline and evilnickveitch cand word smith14:49
wedgwoodI'm definitely interested...14:49
wedgwoodI'm afraid I won't have time to devote until tomorrow afternoon.14:50
evilnickveitchwedgwood, that would be cool14:52
arosaleswedgwood, thanks, even if you have a rough outline to evilnickveitch by end of week that would be helpful14:52
arosalesmarcoceppi, to confirm are you still working on how to upgrade a charm for the docs?14:53
wedgwoodI'll try my hardest14:53
arosaleswedgwood, thanks14:53
marcoceppiarosales: yes14:53
arosalesmarcoceppi, thanks and also the juju plugin bits too, correct?14:54
marcoceppiarosales: correct14:54
arosalesmarcoceppi, thanks14:56
Kabthe lxc install script is broken15:19
Kabit does not fully install15:20
marcoceppiKab: care to elaborate?15:37
kurt_marcoceppi: I'm picking up where I left off from about a week and a half ago.  I mentioned I was having problems destroying services after a failed deployment.  I believe you said I need to resolve the error prior to destroying service - is that correct?15:58
marcoceppikurt_: that's correct, You can run the destroy command at anytime - it's not until the unit is resolved of it's error that the next events will be processed15:59
kurt_macroceppi: and if I cannot actually resolve the problem? does it matter?15:59
kurt_will I still be able to successfully destroy the service?16:00
marcoceppikurt_: so you can run `juju resolved` and that just tells juju "pretend like I've resolved this issue"16:02
marcoceppikurt_: it doesn't actual validate if you've resolved the issue or not16:02
marcoceppiit just marks the error as fixed and moves on to the next event16:03
kurt_marcoceppi: ah ok, so the only requirement is to successfully mark the problem as resolved (assuming in the mongodb) and the service can be successfully destroyed.16:04
kurt_marcoceppi: a question related to this, when using the gui, does it take care of all of this in the background? or is there some similar manual intervention.16:05
marcoceppikurt_: right, by marking it resovled juju just continues execution of queued events, which in this case, is the destroy environment16:06
marcoceppikurt_: there is both a "resovled" and "retry" button on the unit screen in gui. The first just runs `juju resolved`, the second runs `juju resolved --retry`16:06
marcoceppino further manual intervention is required16:07
kurt_marcoceppi: ok, thank you.  This is a workflow change from previous versions of juju.  I think it should be documented, or perhaps commented in an error condition or something.  This was a source of confusion.16:08
marcoceppikurt_: it's psudeo documented. Previously you could destroy services in an error state16:09
kurt_it's not clear that you have to resolve the problem before a service can be destroyed16:09
kurt_yes, why can't that be supported?16:09
kurt_that would make life easier16:09
marcoceppikurt_: that's no longer the case as you see. However, there is this section https://juju.ubuntu.com/docs/charms-destroy.html which says to see the troubleshooting guide16:10
marcoceppikurt_: unfortunately that troubleshooting link is broken16:10
kurt_marcoceppi: it is broken :)16:12
marcoceppikurt_: when it shows up again, that'll be fixed16:12
* marcoceppi files a bug16:12
kurt_marcoceppi: is there a technical reason one should not be able to directly destroy service like before?16:12
marcoceppikurt_: it's the way events are processed by newer version of juju16:13
kurt_is it a problem with state tracking of the service and relations?16:13
kurt_yeah ok16:13
marcoceppikurt_: it's not a problem, but a fix to another issue16:13
marcoceppiin order to destroy a service you need to fire the stop hook16:13
marcoceppikurt_: in earlier versions of juju you destroyed a service it basically just removed it from the juju topology and that was that. No stop hook would fire therefore it didn't matter. To fix that there's a dying state now, which says this unit is to be removed after all queued events have completed16:14
marcoceppikurt_: So, if you're in an error state, all hook executions are stopped and queued, including the stop hook and the destroy event16:15
marcoceppikurt_: so this "problem" is actually the way juju is supposed to work16:15
marcoceppiit's just a fix to a long standing bug :)16:15
kurt_I see.16:15
kurt_its just an interesting condition to leave things in an un-ending state16:16
kurt_I guess in a particular use case16:17
marcoceppikurt_: no so much unending, everything just pauses when there's an error16:17
* kurt_ thinking16:18
kurt_marcoceppi: maybe its the terminology "dying" that is getting to me.  that implies action when the process is actually paused.16:19
marcoceppikurt_: well it is /dying/ just how long it takes to die is up to you :)16:19
kurt_marcoceppi: right.  Maybe I'm too caught up in my own confusion.  LOL16:19
kurt_marcoceppi:  do you have a cached copy of that troubleshooting guide somewhere?16:21
marcoceppikurt_: I don't think it ever existed. I'm looking through revision history now16:26
marcoceppievilnickveitch: ^16:27
kurt_thanks16:28
marcoceppievilnickveitch: also, where should the charm-tools documentation live? I don't know what section to put it under16:34
evilnickveitchmarcoceppi, I am adding a new section for it and other tools16:36
marcoceppievilnickveitch: \o/ cool. I'll just keep adding pages then to add to that section later16:37
evilnickveitchkurt_, the troubleshooting page isn't live, but marcoceppi  has given you a good summary of what it has to say on the subject16:38
jamespagejcastro, just answered http://askubuntu.com/questions/343349/installing-ceph-and-ceph-osd-charms-on-same-machine/34388316:45
jamespagewe really need a way to say - "don't do this" - in a way that juju can enforce16:45
kurt_evilnickveitch: thanks. I will look forward to that working.16:47
X-warriorIf I'm using postgresql charm with volume-ephemeral-storage as false and volume-map  as "{ postgresql/0:  S3 volume-id }". Do I need to attach the volume to instance? Or does the charm/juju will handle it form?16:51
marcoceppiX-warrior: juju can't do any volume attaching IIRC, you'll need to do it yourself16:52
marcoceppievilnickveitch: what would "juju plugins" go under?16:57
evilnickveitchmarcoceppi, I guess the same section as charm tools and amulet?16:58
marcoceppievilnickveitch: well this is "how to create plugins" as well as install plugins16:59
marcoceppievilnickveitch: not sure if that changes anything16:59
evilnickveitchmarcoceppi, I think for the time being we will group all those things together17:00
marcoceppievilnickveitch: cool, what should I prefix the files with? reference-* ?17:00
evilnickveitchI think "tools-", it will be a new section17:01
=== CyberJacob|Away is now known as CyberJacob
fwereade_marcoceppi, evilnickveitch, jcastro: https://code.launchpad.net/~fwereade/juju-core/docs-splurge/+merge/184833 has quite a lot of new stuff17:15
fwereade_marcoceppi, evilnickveitch, jcastro: sorry it took so long17:15
jcastrobetter late than never!17:16
evilnickveitchfwereade_, cool! thanks for that, i will look it over tomorrow17:16
X-warrioris it possible to use a persistent storage on mysql config? Similar to postgresql? I don't think so, but maybe I'm missing something17:35
marcoceppiX-warrior: not that I'm aware of17:36
X-warriormarcoceppi: last question for the day (hopefully), is it possible to use elastic ip with juju?17:53
marcoceppiX-warrior: you can assign an elastic ip to your instances, via the EC2 control panel. It won't affect juju at all. However, there is no way to do this from within juju at this time17:54
marcoceppi* that I'm aware of17:54
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
X-warriormarcoceppi: Does this elastic ip control fits in juju?18:13
X-warriorI mean, this type of feature is in juju 'scope'?18:13
marcoceppiX-warrior: I'm not sure if it's something on the road map or not. I know juju can kind of work with floating-ips using OpenStack, but I'm not sure if there are plans to manage elastic ips with ec218:14
X-warriormarcoceppi: well I'm willing to add it to juju, but before I start something I would like to check if it is something that could be used inside juju or not, because if it is not, I guess I can go with ec2 control panel18:15
marcoceppiX-warrior: check with #juju-dev that's where all the core developers hang out18:15
X-warrior ty18:15
X-warrior:D18:15
kurt_Is 1.13.3 tested against maas yet?  I was trying to figure out where to download18:38
=== defunctzombie_zz is now known as defunctzombie
marcoceppikurt_: 1.13.3 is in ppa:juju/devel18:51
kurt_thanks :)18:53
marcoceppikurt_: as it stands now all 1.EVEN releases are in juju/stable and all 1.ODD releases are in juju/devel - the versioning follows the linux kernel where odds are devel and evens are stable18:55
kurt_marcoceppi: thanks.  Don't particular app release levels follow the different ubuntu release levels too?  Like isn't 1.14 for raunchy rabbit or whatever its called?18:56
kurt_rearing rhinoceros or whatever18:57
sarnoldkurt_: that's only packages in the archive (it'd be juju 0.7-0ubuntu1 in the raring ringtail archive)18:57
sarnoldkurt_: ppas have no rules18:57
marcoceppikurt_: right now the only version of juju in raring, 13.04, is 1.10 and that's in backports18:58
marcoceppikurt_: we've got 1.14 in saucy, 13.10, but the PPA will move forward regardless of the version in the archives18:58
marcoceppiwell, we have 1.13.3 in saucy, but that is essentially 1.1418:58
kurt_ok, still learning the release level stuff18:58
sarnoldmarcoceppi: hrm, saucy still has pyjuju! https://launchpad.net/ubuntu/+source/juju18:58
marcoceppisarnold: don't look at me!18:59
sarnoldjcastro: hey can I give you the funny look? :) ^^^18:59
marcoceppisarnold: it looks like juju points to 1.13.3, there's a juju-0.7 in saucy18:59
marcoceppibut I think that's just for backwards compat?18:59
sarnoldmarcoceppi: hrm... I wonder what I'm missing here.19:00
jcastroyeah19:00
jcastro.7 iss there for people who want it19:00
jcastrobut apt-get install juju does the right thing19:00
sarnoldoh good :) crisis averted :D19:00
sarnoldthanks guys19:01
jcastrosarnold: jamespage has handled everything, it's lovely19:01
kurt_is there a problem with sync-tools in 1.13.3?19:20
kurt_http://pastebin.ubuntu.com/6089411/19:21
kurt_s/http://pastebin.ubuntu.com/6089411//19:21
kurt_http://pastebin.ubuntu.com/6089417/19:22
kurt_sync-tools don't appear to be downloading correctly19:23
=== cereal_bars is now known as _ob1
kurt_nevermind: glitch passed apparently19:36
kurt_Is there a later version (but somewhat stable version) of the juju-gui I could be testing with?20:07
kurt_currently working with charm: cs:precise/juju-gui-7620:08
kurt_or 0.9.020:08
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== CyberJacob is now known as CyberJacob|Away
=== kentb is now known as kentb-out
lamont2013-09-10 21:51:28 ERROR juju supercommand.go:235 command failed: no tools available22:55
lamontclearly, I misseed something simple.22:55
lamontjcastro: around? ^^22:55
* lamont tries the "juju sync-tools" route22:57
sarnoldlamont: while you're waiting for an expert to weigh in :) I believe I've read that the tools have to be in an s3/swift/etc bucket -- is that configured properly in the environments.yaml?22:58
lamontsarnold: well.22:58
lamontthis a new everything22:58
lamontso, "wrong" is a rather likely scenario22:58
sarnoldlamont: hehe :)22:59
lamontfound 0 tools in target; 8 tools to be copied22:59
sarnoldlamont: any luck with sync-tools?22:59
lamont2 down, 6 to go22:59
sarnoldpromising :)22:59
lamonterror: cannot start bootstrap instance: no "precise" images in co-01 with arches [amd64 i386]23:07
lamontnow to figure out what the magic names are that it looks for23:07
lamontpublic-bucket-url: <URL TO JUJU-DIST BUCKET> <-- I would love to know how to construct that URL23:25
thumperlamont: hey there23:30
thumperlamont: luckily wallyworld is spending his time making this better23:31
lamontthat will be wonderful later.23:31
lamontI'm hoping for "finally, it worked" tonight.23:31
thumperlamont: I think wallyworld may be able to help now if he is around23:31
lamontand afk for a goodly while, sadly.23:31
wallyworldlamont: you need to be given the public bucket by the cloud admin. but it is going away soon hopefully23:31
wallyworldlamont: you get the url by looking at the keystone endpoint23:32
lamontwallyworld: I am the cloud admin.  can you provide me with clue?23:44
* lamont has about 10 minutes before he disappears again23:44
wallyworldlamont: the url is the public endpoint url for the world readable container which has been created in order to hold the tools tarballs23:45
wallyworldlamont: eg for canonistack, it is https://swift.canonistack.canonical.com/v1/AUTH_526ad877f3e3464589dc1145dfeaac6023:46
wallyworlddoes that make sense?23:47
lamontalmost23:47
wallyworldis this for a new cloud?23:47
lamontthere's the origin of that token, and how to create a public bucket, that remain beyond my experience and understanding23:47
lamontyes23:47
lamontprivate cloud23:47
wallyworldyou can use the swift client to create a container23:48
wallyworldand then mark it as world readable23:48
wallyworldi'd have to look up the exact commands23:48
wallyworldonce you have the juju-dist container, you then do swift post -r .r:*,.rlistings juju-dist23:49
wallyworldis there juju doc somewhere for how to set up an openstack deployment? i'm not across what out tech writer has produced23:50
wallyworldbut basically you need to set up a swift account, create a juju-dist container, make it world readable, and then add tools tarballs to a tools sub contaner23:51
lamontI've found at least 2 docs claiming to describe at least bits of it, without actually working correctly for me.23:51
wallyworld:-(23:51
lamontswift stat juju-dist gives me the account AUTH_${string} and23:51
lamontContainer: juju-dist23:51
lamont  Objects: 323:51
lamont    Bytes: 113923:51
lamont Read ACL: .r:*,.rlistings23:51
wallyworldthat looks ok i think23:52
lamontif I am silly enough to think that https://swift.$mumble/v1/AUTH_$string should give me more than a 401 when I smack it with wget, well, I get the 40123:52
wallyworldif you do a keystone catalog you can see the full url23:52
wallyworldthat will give a 401 i think, you need to type the url of an object in the container23:53
wallyworldi think wget of the top level does give a 40123:53
wallyworldthere should be files in juju-dist called "tools/juju-blah.tar.gz"23:54
wallyworldwget on those should work23:54
wallyworldfor canonistack, this is wget able - https://swift.canonistack.canonical.com/v1/AUTH_526ad877f3e3464589dc1145dfeaac60/juju-dist23:55
wallyworldas are the tools therein23:55
hatchhey guys I'm getting an error with a newly installed juju-core from /stable when I try to `juju --version` it says `error: flag provided but not defined: --version`23:56
hatchit's on 12.0423:56
lamontso... if the account is AUTH_nnnnn and juju-dist is the container, and it has tools/juju-1.12.0-precise-amd64.tgz, then the url is?23:56
lamontassmuing https://swift.foo.com/v1/23:56
wallyworldlamont: the public-bucket-url would be https://swift.foo.com/v1/AUTH_nnnnn23:57
wallyworldsee the canonistack example above23:57
lamonterror: cannot start bootstrap instance: no "precise" images in co-01 with arches [amd64]23:58
wallyworldlamont: you now need to set up some image metadata so juju knows the image id to use23:58
wallyworldthere is a tool for that23:58
wallyworldjuju metadata generate-image i think23:59
wallyworldyou need to know the image id you wsnt to use for amd64 precise23:59
wallyworldand then you run the above tool. see the --help23:59

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