/srv/irclogs.ubuntu.com/2014/09/05/#juju.txt

hatchcan I deploy a precise charm to a trusty host somehow in the CLI? a --force option or the like?01:38
rick_h_hatch: no, I don't think it's allowed. I know we added logic to block that in the GUI.02:25
marcoceppihatch: you can branch it locally.03:52
hatchmarcoceppi: yeah that's what I ended up doing04:12
lazyPowermkdir ~/charms/trusty && cd ~/charms/trust && charm get cs:precise/charm04:13
lazyPowerdeploy and cross fingers04:13
lazyPower4/5 of the time, it 'just works' - unless its got apache2 embedded in the charm. With the files being moved around as of the trusty release, some charms just plain go supernova on deploy04:13
hatchhaha nah I was playing around with different providers seeing how much I could run on a single machine04:14
hatchdigital ocean is leagues ahead of ec2 in terms of performance04:14
lazyPowerThose SSD backed SAN's they use make all teh difference04:14
lazyPowera lot of the latency you see on AWS is the EBS IO latency04:14
hatchidentical setups and the digital ocean was anywhere from 50-100ms faster per request at 20 concurrent requests04:15
lazyPowerless infrastructure to manage at present too :)  But I agree, I <3 DigitalOcean04:15
hatchheh yeah true04:15
lazyPowerMy entire personal infrastructure is up on there, the remnants of my business, and pet projects all go on DO04:15
hatchI recently found out about a Canadian host https://www.clouda.ca/04:15
lazyPowerOh I've looked at them for a client project. They were super nice.04:15
hatchmore expensive but 100% Canadian and running openstack :)04:15
hatchI'm too tired, tomorrow I'll do the same tests as I did on ec2 and DO today04:16
hatchsee how they stack up for that extra $ :)04:16
lazyPowerYeah, i'm wrapping up today's todo list that got a bit hairy. I spent an obscene amount of time cycling over something silly04:17
hatchyeah, that happens hah04:17
hatchI was loadtesting the built in sqlite setup as well04:18
lazyPowerI'm one of those crazy peeps that runs his ghost setup on the sqlite db04:18
hatchhonestly it didn't seem like it was having any trouble at 20concurrent requests04:18
lazyPowerhatch: you using loader.io to test?04:18
hatchatm I was just doing ab on a fast connection04:18
hatchso it wasn't 'true' load testing04:19
hatchbut gave a reasonable idea watching the cpu on the vm and the reporting from ab04:19
hatchon DO the requests are highly CPU bound04:19
hatch20 concurrent puts it at high 80's04:20
hatchso using something like mod_cache would be recommended to get good hardware utilization04:21
hatchanyways I think I'll get the apache2 charm set up for my url redirects then fire apache2 and ghost up on something small and see how it pans out without mysql04:22
hatchwill have to set something up to do backups04:22
hatchthough04:22
hatchanyways I'm outa-here, have a good night lazyPower04:23
=== urulama_afk is now known as urulama
=== liam_ is now known as Guest22638
=== CyberJacob|Away is now known as CyberJacob
=== Tribaal_ is now known as Tribaal
=== jaywink_ is now known as jaywink
=== CyberJacob is now known as CyberJacob|Away
JoshStroblMorning everyone10:57
JoshStrobljcastro, I got the t-shirt man, it is awesome (you were right) and it is now the softest one I own. Gonna take some pics of it (and me wearing it, of course).10:58
mbruzekHey guys I just created a pull request to link the new charm-review-process document that JoshStrobl created in our docs. https://github.com/juju/docs/pull/15814:33
rcj[Question] Having a problem with a relation_set(...) which is failing silently http://paste.ubuntu.com/8260194/14:34
mbruzeklazyPower, marcoceppi, evilnickveitch, arosales ^14:34
rcjI'm running a hook via juju-run from a cron job and in there is a relation_set to change a variable in a peer relationship.  That isn't happening but I'm not getting errors.14:35
rcjLarger context is @ https://bazaar.launchpad.net/~rcj/charms/trusty/ubuntu-repository-cache/trunk/view/head:/hooks/hooks.py#L16714:35
marcoceppircj: you don't sepcify a remote unit14:45
marcoceppiyou have to loop through all the units in that relationship_id14:46
marcoceppiusing relation_list (I believe)14:46
evilnickveitchmbruzek, done14:48
mbruzekThanks Nick.14:48
rcjmarcoceppi, thanks.  I'll try that.14:49
rcjmarcoceppi, on that same line of questioning. Can I set a configuration value where the key isn't in the config.yaml?  http://paste.ubuntu.com/8260290 This changes the 'rsync-mintues' on each invocation.14:52
rcjmarcoceppi, for the relation_set I don't see how you'd specify unit in charmhelpers.core.hookenv.relation_set().  What am I missing?14:56
arosalesmbruzek: thanks for working on getting pull 158 linked into the docs.  I think it would be valuable to have that in the side bar under "Charm Store Policy" with the name of "Charm Review Process"15:03
tvansteenburghanyone know what might cause this, considering that i can manually bootstrap this environment just fine: http://pastebin.ubuntu.com/8260380/15:04
mbruzekarosales, that is what I did.15:04
arosalesmbruzek:15:04
mbruzekarosales, are you seeing something different ?15:04
arosalesmbruzek: no, just behind :-)15:05
arosalesmbruzek: thanks for working on that15:05
marcoceppitvansteenburgh: it's trying to conecct to the internal IP15:06
marcoceppitvansteenburgh: do you have sshuttle running?15:06
tvansteenburghmarcoceppi: it tries the public dns name first though15:07
tvansteenburghmarcoceppi: no sshuttle running15:07
marcoceppitvansteenburgh: I wonder if this is new in 1.20.615:07
rcjmarcoceppi, looking at relation_set() I don't know what you mean by looping through all the units.  I don't see a way to set a unit and I thought that I would set for the local unit and that would fire the X-relation-changed hook for the relation?15:14
marcoceppircj: I'm trying to figure out now, it was in here15:17
marcoceppiit exists for relation_get15:17
rcjmarcoceppi, that would make sense for relation_get because I would want to get the dictionary for that unit, but you can't set things on remote units, only the local unit's relation, right?15:18
marcoceppircj: you can set relation data for remote units15:19
rcjNow this is running via juju-run, so it's not in a relation hook with any of the environment that would bring.15:19
marcoceppiat least15:19
marcoceppiit should be15:19
marcoceppiif you can get info for a unit but can't set info for a unit15:20
marcoceppiit's like an unmatched side, or so it seams15:20
marcoceppiseems*15:20
* marcoceppi experiments15:20
marcoceppiokay, maybe not15:22
marcoceppiwhat makes you think it's silently failing?15:22
rcjI can drop into debug-hooks and run the same thing and not see the relation change.  Then the other peers in the relation aren't seeing cluster-relation-changed hooks firing.15:23
rcjand the return code from 'relaation-set' on the cmdline is 0 while it doesn't show up in 'relation-get' output15:23
marcoceppirelation settings aren't sent until that hook context closes15:23
rcjI understand, so after that experiment I exit hook and none of the peers see the change hooks fired15:24
rcjBut relation-get after relation-set in the same hook should see the new value, right?15:24
marcoceppilet me spin up a peer, my juju run example worked15:24
marcoceppihttp://paste.ubuntu.com/8260557/15:25
rcjis "juju run --unit <unitID <cmd>" the same as "juju-run <unitID> <cmd>"?15:26
marcoceppircj: one is from the unit the other is from the client15:26
marcoceppijuju run --unit is from the client side15:26
rcjAnd does it need to run as root on the client or can it be another use I created?15:27
marcoceppiso, client being your desktop15:27
marcoceppifrom the unit you can run it unprivildged15:28
rcjgreat15:28
rcjmarcoceppi, I can't recreate15:43
marcoceppircj: can't recreate which?15:44
rcjmarcoceppi, the relation-set issue at present.  It's not that it's working, I just am having other issues that prevent me from getting that far with the charm.15:47
marcoceppircj: ah, well let me know what happens either way15:47
rcjmarcoceppi, how about the config setting question though.... http://paste.ubuntu.com/8260290/15:48
rcj'rsync-minutes' isn't part of config.yaml, can I set something in the config that isn't in that file?15:48
rcjWhen that hook is run it set's a new value each time.15:48
marcoceppircj: I guess not, I'm not very familiar with the config stuff, I think cory_fu wrote it actually15:49
marcoceppircj: it seems you can, > Store arbitrary data for use in a later hook.15:50
rcjI din't know if there was an obvious bug in that code15:50
cory_fumarcoceppi, rcj: Actually, tvansteenburgh wrote it, but yes, you can set arbitrary values into the config dict and they will persist as long as you call config.save()15:50
cory_furcj: That seems like it should work and only generate a value once.15:52
marcoceppircj: is this being run via juju-run as well, or hook context?15:52
tvansteenburghcory_fu, rcj: you don't even have to call save if you using @hook or Services Framework15:52
rcjmarcoceppi, that's beeing run in hook context15:52
cory_futvansteenburgh: Did you add config.save() to the services framework when I wasn't looking?  :)15:52
tvansteenburghcory_fu yes15:52
rcjtvansteenburgh, https://bazaar.launchpad.net/~rcj/charms/trusty/ubuntu-repository-cache/trunk/view/head:/lib/ubuntu_repository_cache/util.py#L16515:52
cory_futvansteenburgh: Awesome!15:52
rcjit's always called from hook context15:53
rcjtvansteenburgh, calling function is https://bazaar.launchpad.net/~rcj/charms/trusty/ubuntu-repository-cache/trunk/view/head:/hooks/hooks.py#L11815:53
cory_furcj: I think he meant from a @hook decorated function.  But, you're manually saving it anyway, so it shouldn't matter15:53
tvansteenburghrcj: yeah, so you don't actually need the save(), it'll happen for you15:54
tvansteenburghrcj: as long as you have the latest charmhelpers15:54
cory_futvansteenburgh: Any idea why that config.get() would end up being false, then, if it's already been generated?15:54
rcjtvansteenburgh, the problem I'm having is that each time that code is called it sets a new value15:54
rcjand charmhelpers in my charm is very fresh15:55
marcoceppircj: do you see the .juju-presistent file in the charm?15:56
rcjmarcoceppi, yes, .juju-persistent-config is present and has the latest value15:57
tvansteenburghrcj: yeah, i think i need to override __getitem__ to make it work the way you expect15:58
tvansteenburghrcj: but for now you could do `if not config.previous(var)`15:58
cory_futvansteenburgh: So, if you persist an arbitrary value, it will not show up in the current config but only in the previous?16:00
cory_fuThat does seem like a bug, since storing arbitrary values is explicitly listed as a feature16:00
tvansteenburghi'm gonna post a MP with a fix momentarily16:02
rcjtvansteenburgh, so I need to get the value as config['rsync-minutes'] on the first invocation and then as config.previous('rsync-minutes') for all future runs?16:02
rcjtvansteenburgh, ah, I'll wait for the MP and merge it into my tree instead16:02
tvansteenburghk16:02
rcjtvansteenburgh, can you ping me with a patch when it's ready?16:02
tvansteenburghrcj: certainly16:03
rcjtvansteenburgh, thanks16:03
tvansteenburghrcj: https://code.launchpad.net/~tvansteenburgh/charm-helpers/fix-config-lookups/+merge/23355816:36
tvansteenburghmarcoceppi: got time for a quick review/merge of that? ^16:36
marcoceppitvansteenburgh: yeah16:37
* marcoceppi loks16:37
tvansteenburghmarcoceppi:  hang on16:39
tvansteenburghmarcoceppi: i want to change something16:39
marcoceppigo on16:39
tvansteenburghmarcoceppi: ok i'm done for real now16:44
marcoceppitvansteenburgh: you're lucky I'm lazy ;)16:44
tvansteenburghhaha16:44
natefincharg, how can open port not be idempotent by default? :/16:51
natefinchmarcoceppi: ^^   I reran a failed install and got "cannot open ports 80-80/tcp on machine 5 due to conflict"  how am I supposed to handle that?16:53
rcjmarcoceppi, I can't recreate the issue with the relation_set() not propagating.  The problem, if there still is one, must be on my side.  Thanks for your help.17:29
rcjtvansteenburgh, thanks17:29
=== sebas538_ is now known as sebas5384
=== roadmr is now known as roadmr_afk
rick_h_marcoceppi: got a sec to chat an idea out loud?18:08
marcoceppircj: I will in about 20 mins, otp18:09
marcoceppirick_h_: * ^18:09
rick_h_marcoceppi: rgr ty18:09
=== CyberJacob|Away is now known as CyberJacob
marcoceppirick_h_: back18:33
rick_h_marcoceppi: cool18:34
rick_h_marcoceppi: invite otw18:34
allomovhey, I have a problem with running juju on Openstack18:54
=== roadmr_afk is now known as roadmr
allomovit seems that floating IPs are not set to instances18:56
allomovI have set use-floating-ip to true in env yml18:56
allomovthe question for me now: what network uuid I need to pass to network option in env yml (private or public)18:58
marcoceppiallomov: that's a good question, you'll want to pass the public one IIRC19:10
allomovmarcoceppi: thank you for answer.19:33
allomovmarcoceppi: unfortunately I still get this error https://gist.githubusercontent.com/allomov/188131c84fdbcbab5ea8/raw/4bdabe95471797c0d6aad4829557a23d43d4e30d/fail-juju.log19:35
allomovhere is my env file https://gist.githubusercontent.com/allomov/188131c84fdbcbab5ea8/raw/f4068e094ce52db43008e825b111645f28854381/juju.yml19:35
marcoceppiallomov: 1.20.6 ?19:35
allomovmarcoceppi: how did you know )19:36
marcoceppilucky guess :)19:36
allomovmarcoceppi: yes, it is19:36
marcoceppi(and my goldfish memory from yesterday hasn't worn off, glad you got the imagestream stuff sorted)19:36
allomovhah19:37
allomovyes, it's me19:37
allomovI generated image metadata to ~/.juju/metadata with `juju generate-image` command.19:37
marcoceppiwhew, that would have been really embarassing if it wasn't you19:37
marcoceppiallomov: well the bootstrap error I don't t hink is related to networking19:38
allomovI even got it running, at least it started to bootstrap environment and cerated a node19:39
allomovbut since I pointed to the private network it couldn't ssh to bootstrap node19:40
marcoceppiallomov: well that log shows a failure to bootstrap / find the tools/image data19:40
allomovafter that I removed jenv file (to apply new configuration)19:40
=== hatch__ is now known as hatch
allomovmarcoceppi: so I need to point a tools url I guess ?19:41
marcoceppiallomov: yeah, so after you generate teh metadata you need to host the images metadata and the tools somewhere (usually in the object store with a publically accessible bucket)19:41
marcoceppithen set image-metadata-url and tools-metadata-url in your environments.yaml to that public location19:42
allomovcould it be a local file system ?19:42
marcoceppiit needs to be accessible by the bootstrap node19:42
allomovok, will try to go this way19:42
allomovthank you19:42
allomovmarcoceppi: thank you19:42
marcoceppiallomov: sure, sorry you're hvaing such a rough go at it. If you get it running let me know where we can improve our documentation / workflow (or email the mailing list juju@lists.ubuntu.com)19:43
marcoceppiyou're certainly not the only one running a private openstack cloud19:43
marcoceppiI'll also be around most of tomorrow/Sunday too if you need more help19:43
=== CyberJacob is now known as CyberJacob|Away
allomovmarcoceppi: bad news, still can't make it run.21:50
allomovmarcoceppi: bootstrap node is created, but I can't get access to it.21:51
marcoceppiallomov: can you re-bootstrap with --debug flag?21:52
allomovmarcoceppi: sure21:52
marcoceppiand paste the output (careful, some credentials might leak at the topofthe log21:52
allomovmarcoceppi: the point is I can't get access to created instance21:52
marcoceppisure, running --debug will give a very verbose output client side21:53
allomovmarcoceppi: here it is https://gist.githubusercontent.com/allomov/188131c84fdbcbab5ea8/raw/24a64a47a6cde78e66db830c57a2dfd57534289e/gistfile1.txt21:58
allomovmarcoceppi: deployment is stucked on ssh21:59
allomovI can create node in the same network and with the same image (the image I pointed creating metadata) there and ssh to it22:01
allomovmarcoceppi: machine logs from openstack web console are different by the way for this two cases22:04
marcoceppiallomov: I'm guessing 172.16.0.84 is not public ip22:04
allomovit's a public network for me22:05
marcoceppiso it looks like the floating ip is getting added?22:05
marcoceppithat SSH prompt might go on for a while22:05
marcoceppiallomov: it's basically a loop until the instance registers22:05
marcoceppi> Attempting to connect to 172.16.0.84:2222:06
allomovmarcoceppi: it can't ssh for 10 m22:06
marcoceppishows that it's assigned that IP22:06
marcoceppior at least that's what it thinks the IP is22:06
marcoceppican you reach that IP now? is the instance up in horizon?22:06
allomovmarcoceppi: no, I can't22:06
allomovmarcoceppi: I tried to create new node with openstack web console with the same network and image, and I can ssh to it22:07
marcoceppiallomov: bleh, that's lame22:07
marcoceppiis the IP actually allocated and added to that instance in horizon?22:07
allomovmarcoceppi: I have different outputs for juju machine and for machine created manually22:07
marcoceppiallomov: different how?22:08
allomovmarcoceppi: I mean logs in openstack web console22:09
allomovmarcoceppi: here is log for machine created with juju https://gist.githubusercontent.com/allomov/188131c84fdbcbab5ea8/raw/34140f9c803ff71a466c73e36b536bdc45fa95b9/machine-log-122:09
allomovmarcoceppi: here is a log for machine created manually with the same image https://gist.githubusercontent.com/allomov/188131c84fdbcbab5ea8/raw/1efaaa681fd2a31fef4e12d23b8e40fcf1d758f5/machine-log-222:09
marcoceppiso, cloud init isn't running on the juju machine22:10
marcoceppiallomov: are you using Ubuntu Server or Ubuntu Cloud images? I'm guessing the later?22:10
marcoceppilatter*22:10
allomovmarcoceppi: I used ubuntu image that was already in openstack22:11
allomovmarcoceppi: could you tell how can I check it ?22:11
marcoceppiNot entirely sure22:12
allomovmarcoceppi: do I need download and install other image ?22:13
marcoceppiallomov: I'm nto sure, and I don't want to lead you in the wrong direction22:14
marcoceppiI'm reaching the end of my knowledge with troubleshooting openstack clouds22:14
allomovmarcoceppi: ok, will stay on this stage for now. thank you for your help. see you.22:15
marcoceppiYou could try to add a new image, then you'd have to update the image-metadata, etc, but http://cloud-images.ubuntu.com/trusty/current/ is where we house all our cloud images which is the basis for all our cloud provided images (ec2, hp, azure, etc)22:15
marcoceppiYou should be able to add the amd64.root.tar.gz to openstack and try that if you exhaust other options22:16
marcoceppiI really wish I had more to offer or insights22:19
=== viperZ28_ is now known as viperZ28
dpb1Trying to install the juju-gui charm: http://paste.ubuntu.com/8264500/22:40
dpb1:(22:40
marcoceppidpb1: wat. What version Ubuntu is this?22:42
dpb1trusty, up to date22:42
dpb1I was just going to try it here22:42
dpb1worked fine on an lxc here.. who knows23:01
=== scuttlemonkey is now known as scuttle|afk

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