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

=== markthomas_zz is now known as markthomas
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
=== markthomas is now known as markthomas_away
=== thumper is now known as thumper-afk
=== markthomas_away is now known as markthomas
=== thumper-afk is now known as thumper
=== markthomas is now known as markthomas_away
=== thumper is now known as thumper-afk
=== markthomas_away is now known as markthomas
=== Daviey_ is now known as Daviey
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
=== thumper-afk is now known as thumper
teleyinexhi there09:01
teleyinexI'm trying to learn juju and to connect it to my rackspace cloud09:01
teleyinexI'm generating the environments.yaml09:01
teleyinexand I think I've everything fine, but I'm getting this error:09:02
teleyinexERROR required environment variable not set for credentials attribute: Secrets09:02
=== rogpeppe1 is now known as rogpeppe
teleyinexthe Secrets variable is not even in the environments.yaml file09:03
teleyinexso I don't know how to fix it09:03
teleyinexany idea why is asking for that variable=09:03
teleyinexany idea why is asking for that variable?09:03
aquariusI'm told by jcastro that I can set a backup dir with the postgres charm using some of the backup variables at https://jujucharms.com/fullscreen/search/precise/postgresql-52/?text=postgresql#bws-configuration. How do I set them?09:27
ashipikaERROR juju.state.open.go:92 TLS handshake failed: x509 certificate has expired or is not yet valid09:51
ashipikaany clues where to start looking?09:52
=== Tribaal_ is now known as Tribaal
ashipikaanybody?10:02
mgzashipika: are you using a self signed cert?10:05
ashipikathis is what i get when i run juju bootstrap..10:06
mgzsure, but against *what*10:06
ashipikabut i see now that it might be a "user" problem.. since it appears that juju bootstrap was ran as another user10:06
mgzjuju has multiple providers, and we know that say, ec2, has a valid cert10:06
ashipikanull environemnt10:06
ashipikaenvironment10:06
mgzashipika: and can you say, curl something from bootstrap-host without it complaining about the cert?10:08
ashipikacurl to boostrap-host from another host?10:09
mgzashipika: or ssh, probably more appropriate10:14
mgzcheck the host you're actually conecting to at any rate10:14
marcoceppiaquarius: It'll automatically backup to /var/lib/postgresql/backups, but you can `juju set postgresql backup_dir=/path/` to change configuration12:45
aquariusmarcoceppi, oh, that's already happening? sweet!12:46
aquariusso I don't need to change anything12:46
marcoceppiaquarius: nope! Charms should always do the right thing(tm) by default12:46
aquariusthat's excellent.12:46
marcoceppiaquarius: in this case it'll have the last 5 days of backups in that directory12:46
aquariusI should probably have a separate thing to send the backups elsewhere, mind :)12:47
marcoceppiaquarius: a great case for a suborindate charm12:47
aquariusnot sure that's a charm; it's a one-liner in my crontab ;)12:47
marcoceppiaquarius: sure, I was just trying to slyly convince you to write a subordinate charm for backups ;)12:48
aquariusyeah, that's not happening ;)12:48
aquariusI barely understand how to do it myself12:48
aquariustrying to write a thing which keeps every sysadmin in the world happy is nowhere near my priority list :P12:49
marcoceppieh, worth a shot12:49
aquarius:)12:57
=== gary_pos` is now known as gary_poster
=== morty_ is now known as morty
X-warriorHow does a subordinate charm works? I have an logstash-agent charm, then I deployed it... later I add a relation logstash-agent service2, now logstash is subordinated to service2. If I add a relation to logstash-agent (let's say redis). Will it update de service2 logstash-agent?14:40
marcoceppiX-warrior: yes, it will14:46
=== jose- is now known as jose
=== jose is now known as 64MAA3JWF
=== 64MAA3JWF is now known as jose-
=== wedgwood_ is now known as wedgwood
=== smoser` is now known as smoser
=== freeflying is now known as freeflying_away
X-warriormarcoceppi: ty still trying to get this logstash to work15:47
X-warrior:D15:47
X-warriorbtw, why when I use upgrade-charm I get an "already running latest charm", but I just updated one of the files...15:47
X-warrioroh forgot, just found my error15:51
sinzuibac, gary_poster staging.jujucharms.com is sending connection refused messages about mongo. I am going to investigate15:52
bacthanks sinzui.  let me know if i can help15:52
gary_posterty sinzui15:53
sinzuibac, gary_poster mongodb filled the disk with logs. I deleted some and restarted mongo. I see staging is happy16:02
bacyay16:03
bacsinzui: can we turn down the log level?  logrotate?16:03
sinzuibac, I think we need to update the charm to handle rotation. Te log-level also seem to be permanently on spew16:04
bacsinzui: ok, i'll make a card for us16:05
=== jose- is now known as jose
=== freeflying_away is now known as freeflying
mxcgood morning17:29
mxcgetting this error on Azure when bootstrapping:17:29
mxc2013-12-07 04:23:00 ERROR juju supercommand.go:282 POST request failed: BadRequest - The affinity group name is empty or was not specified. (http code 400: Bad Request)17:29
mxcjuju bootstrap --show-log --upload-tools  6.01s user 5.05s system 12% cpu 1:28.15 total17:29
mxci'm running everything out of west us but trying to run the juju command from a non-azure machine.17:29
mxcback17:58
sarnoldhey mxc, sorry, no responses while you were away18:06
mxcsarnold: thanks for the heads up18:06
=== mhall119 is now known as mhall119|afk
=== mhall119|afk is now known as mhall119
=== CyberJacob|Away is now known as CyberJacob
mxchttp://askubuntu.com/questions/388419/juju-bootstrap-fails-in-azure-badrequest-the-affinity-group-name-is-empty-or  <- would appreciate if anyone could take a look20:00
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
jcastromxc, natefinch is who you should keep an eye out, he's the azure guy afaict22:51
mxcjcastro: thanks!22:52
arosalesmxc,  did you have the mail to the list on juju bootstrap failing?22:56
jcastrohttp://askubuntu.com/questions/388419/juju-bootstrap-fails-in-azure-badrequest-the-affinity-group-name-is-empty-or22:58
arosalesmxc if you run "apt-get update && apt-get install juju-core" on your stand along machines does that give you 1.16.4?22:59
mxcwas that a bad use of the list?23:00
mxcif so, apologies23:00
arosalesmxc, no it was a great use23:01
mxcarosales: 1.16.4-saucy-amd6423:01
arosalesmxc, just wante to confirm mxc and the list  mail was the same subject23:01
mxcoh, yeah, that was me23:01
arosalescool, so an apt-get update gets you the latest juju23:02
arosalesmxc which reagion is your ubuntu stand alone instance?23:02
mxcall west us23:02
arosalesmxc sounds like you are using an azure instance as the juju client (ie to issues juju deploys from)23:02
mxcbut also trying to get this working from a non-azure, plain old windows machine23:03
mxcarosales: so, yes, that would be ok23:04
arosalesmxc, I was able to bootstrap from my ubuntu client outside of azure23:07
mxcdoes the machine that I am running juju bootstrap from need to have certain ports open?23:07
arosalesI will see if I can reproduce your environment but bootstraping from within azure.23:07
mxci get this from inside and outside of azure23:07
mxcis it possible to get even more debug output than just --show-log?23:08
arosales--debug23:08
mxcty23:09
mxcdoesn't help much in this case23:09
mxcooh, a bit more23:10
mxc}: mirror data for "com.ubuntu.juju:released:tools" not found23:10
arosalesmxc, can you pastebin your full --debug output?23:11
arosalesmxc, it should retry if a local mirror isn't found.23:12
arosalesmxc, hmm . . .  I don't know what port juju client23:13
mxchttp://pastebin.ubuntu.com/6548362/23:13
arosalesmxc, can you drop the --upload-tools23:13
mxcsec23:14
arosalesmxc, it also looks like jujustorewestdocmunch may not be fully configured23:15
arosales2013-12-09 19:45:38 ERROR juju supercommand.go:282 cannot obtain storage account keys: GET request failed: ResourceNotFound - The storage account 'jujustorewestdocmunch' was not found. (http code 404: Not Found)23:15
mxcoops, i accidentally copied way too much23:17
mxcsorry23:17
arosalesah I see you last attempt is at the bottom23:17
mxchttp://pastebin.ubuntu.com/6548391/23:18
mxcsorry, here's the fixed on23:18
arosalesmxc, also be interesting to see what "juju bootstrap  --debug" returns23:20
mxcsame23:24
winaelHi every one23:24
winaelutlemming: I just tried your tuto about quick start with Juju and I found a little "bug"23:25
utlemmingwinael: k....23:25
arosaleswinael, hello23:26
winaelhi arosales23:26
arosalesmxc, what metadata index does it read prior to the affinity error23:26
mxchttps://jujustorewestusdocmunch.blob.core.windows.net/juju-azure-private/tools%2Fstreams%2Fv1%2Findex.json?se=2023-12-09T23%3A25%3A35Z&sig=AYXhLWBbLAfaigM%2B%2BHq2OueWOCi7SU6o56l1JnOgejg%3D&sp=r&sr=b&sv=2012-02-1223:27
winaelutlemming: let's me explain, as i read your post, I undestand that it is a way to easly test Juju... but in the practice, ip forwarding doesn't work. So when you expose a service like Mediawiki, you can't access to it out of the vagrant box, unlike the Juju GUI23:28
utlemmingwinael: that is correct....you need to follow the SSHuttle instructions23:29
winaelI think it could be a little confusing for people who want just give it a try but don't know linux very well and specially iptables rules23:29
arosalesmxc, can you paste bin this attempt (ie without --upload-tools).  I want to see if you are trying to hit "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson"23:29
utlemmingwinael: I wouldn't do IP tables. Just use SShuttle, which forwards everything for you.23:29
winaelOh ok... that's not clear in fact. I think about none Ubuntu user, it a little bit confusing23:31
utlemmingwinael: the big problem here is that every OS has some convoluted method of forwarding ports, and looking at it made my head nearly explode for Windows.23:33
winaelbut the idea to use a vagrant image to easly deploy a Juju server I love it23:33
winaelyeah I can understand that. In fact, I think it will be more easly to just add a note into your post (if you want to test a charm you've just deployed, use sshuttle)23:35
winaeland make the sshuttle part non optional23:35
mxcarosales: http://pastebin.com/AQArivJz23:36
mxcubuntu paste bin is super slow at the moment23:36
utlemmingwinael: I'll take a look.23:36
utlemmingwinael: thanks for the feedback23:36
winaelI said that because I talk about this at work, but if they tried and fail for that, they just think Juju doesn't work23:36
winaelAnd I imagine lot's of people can think the same23:36
winaelyou're welcome :)23:36
mxcis there a way to turn on HTTP request logging so that I can see every http request going out?23:38
utlemmingwinael: updated, hopefully that helps23:40
winaelIn fact this project inspire me. I am thinking about how I can try to bring Juju for my client which use VM on ESX, and I said to my self, wooooooooooh if I can have a QuickStart MaaS+Juju vagrant image as master, it'll fixe all my problems (it's just a fantasy, but...)23:40
arosalesmxc, taking a look23:42
arosalesmxc, thanks for the info23:42
mxcty23:42
mxcoh, i've been using an ubuntu 13.10 machine to run juju from.  could that be part of the problem?23:49
jcastrowinael, the vagrant images are more for supporting local development, not so much for serving things in an environment23:49
jcastrofor your idea you're going to just use manual provisioning, which will be finished in january23:50
arosalesmxc, no running the juju client from 13.10 should be fine23:57
arosalesmxc I am still working on reproducing your error23:57
arosalesmxc I did confirm that if storage and instance were in different regions you would get a different error along the lines of23:57
arosalesThe source image must reside in a storage account that has the same affinity group or location as the cloud service East US. (http code 400: Bad Request)23:57
winaeljcastro: I have to take a look on the Manuel Provisioning doc in deed23:58
arosalesand in those cases you should still hit cloud-images.ubuntu.com23:58
winaelI try very hard to push Ubuntu/Juju in my company but it's not easy23:59
winaelthey prefere to try to re invent the wheel23:59

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