/srv/irclogs.ubuntu.com/2014/02/13/#juju.txt

=== freeflying_away is now known as freeflying
=== thumper-lunch is now known as thumper
=== arosales_ is now known as arosales
=== cmagina_ is now known as cmagina
=== xnox_ is now known as xnox
=== markthomas_ is now known as markthomas
=== JoseeAntonioR is now known as jose
=== _mup__ is now known as _mup_
=== CyberJacob|Away is now known as CyberJacob
=== wgrant is now known as Guest34733
=== _thumper_ is now known as thumper
=== thumper is now known as thumper-afk
keshava$JUJU_HOME/bin/juju bootstrap -v --debug --upload-tools would return 2014-02-13 00:35:41 ERROR juju.cmd supercommand.go:294 failed to enable bootstrap storage: failed to create storage dir: exit status 255 (Permission denied (publickey,password).)05:20
keshavaanyone knows reasons/solution for this ?05:21
keshavaERROR juju.cmd supercommand.go:294 failed to enable bootstrap storage: failed to create storage dir: exit status 255 (Permission denied (publickey,password).) - how to workaround this?05:24
bradmkeshava: sounsd like you're using the wrong public key?05:29
=== meebey_ is now known as meebey
=== timrc is now known as timrc-afk
=== stub` is now known as stub
=== Guest34733 is now known as wgrant
stubCan anyone point me to a charm which streams data (in my case, a log file) to another service? netcat would work but doesn't have the security I'd want.06:42
sarnoldstub: there are rsyslog charms06:42
sarnoldstub: http://manage.jujucharms.com/charms/precise/rsyslog06:43
stubTa.06:44
* stub wonders about serializing his logs and using syslog as the transport06:44
=== mwhudson is now known as zz_mwhudson
=== zz_mwhudson is now known as mwhudson
vilamarcoceppi: hi there, I'm trying to understand what https://pypi.python.org/pypi/amulet/1.2.1 is lp:amulet where there is no 1.2.1 tag, can you help ?09:03
stubGah, I've got logging backwards10:12
stubMy charm needs to 'require' syslog in order to emit log messages to a receiver that 'provides' syslog10:13
stubI think the rsyslog charm was written from the POV of syslog being a service, when I'm thinking of it as a protocol10:15
stubBut I guess that way makes sense if we start running hooks in a better defined order, provider side hooks first10:17
=== mwhudson is now known as zz_mwhudson
=== rbasak_ is now known as rbasak
=== jacekn_ is now known as jacekn
marcoceppivila: amulet is mirrored on launchpad, but hosted on github11:30
marcoceppivila: https://github.com/marcoceppi/amulet/releases11:30
vilamarcoceppi: but https://github.com/marcoceppi/amulet.git/ doesn't have the 1.2.1 tag either ... what am I doing wrong >-/11:40
marcoceppivila: it's there, hard refresh?11:40
vilamarcoceppi: that made it, glitch since yesterday evening I suppose... Anyway,11:43
vilamarcoceppi: thsnks11:43
marcoceppivila: np11:43
vilahehe, thanks (damn fingers)11:43
vilamarcoceppi: I'm also trying to find where I can get an ubuntu packaged version for that, I'm using ppa:juju/devel but amulet is not there (and I need support for precise, saucy, trusty, /me sighs, life is complicated sometimes... ;)11:46
marcoceppivila: tools are in juju:ppa/stable :)11:46
marcoceppiand it's built for precise, saucy and trusty11:46
vila\o/11:46
vilamarcoceppi: can I mix ppa/stable with juju 1.17.2 ?11:47
marcoceppivila: yes, so if you have devel ppa, you'll always get the lastest juju as juju 1.17.2 > 1.16.611:47
marcoceppibut when the next stable release comes out, 1.18.0 it'll get installed over 1.17.211:48
marcoceppisince we do devel and stable releases differently11:48
marcoceppievens are stable, odds are devel11:48
vilamarcoceppi: cool, thanks for the tip about juju/stable, I could find it on lp from lp:amulet :-/11:48
marcoceppias such, having both ppa won't break anything11:48
marcoceppivila: I'll update the project page, thanks for the feedback!11:48
vilamarcoceppi: oh, ok, good to know (I hope I will remember that odd/even in this context...)11:48
cargillwhen joining the db-admin relation with postgres, the user does not get the right to create new databases?12:00
marcoceppicargill: uh, the user /should/12:05
cargillwhen I do "SELECT rolcreatedb from pg_roles where rolname like 'db_admin%';", all are flase12:06
cargill*false12:06
marcoceppicargill: give me a few mins to spin up the latest postgres charm and check12:07
cargillsure, mine says 'cs:precise/postgresql-61'12:08
cargilljust in case it matters12:08
marcoceppicargill: that appears to be the latest12:09
cargillok, that's interesting, it might be the pg_hba.conf interaction with the local environment again, as trying to create it in psql works now12:14
cargilland he does have rolsuper, that should give the user right to do anything?12:16
marcoceppicargill: yeah, db-admin gives you superuser permissions12:23
marcoceppiso you should be able to romp around and create a database, etc12:23
cargillmarcoceppi: thanks, and sorry for the false alarm, it was caused by postgresql restoring my changes to pg_hba.conf after a while12:24
cargillif doing deployment from local: and I've fixed bugs in the charm, how do I get them to be picked up? do I have to update revision? just removing the service and redeploying it again still uses the old version and there is nothing in .juju/charmcache12:27
marcoceppicargill: yeah, from local, run juju deploy -u --repository... local:...12:58
marcoceppithe -u will update the cache12:59
rick_h_marcoceppi: doc your way with working dual local lxc environments13:34
marcoceppirick_h_: \o/13:34
rick_h_now that I've got this I want cross env relations :P13:35
cargillmarcoceppi: so the proper way is changing the revision, thanks13:38
marcoceppirick_h_: dont' we all :)13:40
=== timrc-afk is now known as timrc
=== freeflying is now known as freeflying_away
cargillwhen generating default passwords, is there a way to communicate them to the user?14:44
=== rogpeppe2 is now known as rogpeppe
marcoceppicargill: no, we strongly recommend you not auto-generate passwords and have users set it via config.yaml15:00
marcoceppicargill: you can juju-log it, or place it in a file on the server and tell the user to ssh + cat that file though, again not recommended15:01
cargillbut what if they do not set it?15:01
marcoceppicargill: you can have the config-changed hook exit 1, to alert the user of an error, or have it exit 0 while it waits for the user to change/set the password15:02
jcastro_marcoceppi, so at the sprint people were making fun of me because I had to keep blowing away .jenv files15:25
jcastro_http://joshstrobl.blogspot.com/2014/02/developing-ubuntu-juju-charm.html15:25
jcastro_I feel vindicated knowing I wasn't the only one with broken local provider15:25
JoshStroblThanks jcastro_, I'll go ahead and sign up in the juju mailing list and take part in the discussion!15:26
marcoceppiJoshStrobl: its not local either15:26
marcoceppierr jcastro_^15:26
jcastro_we should name this script thumper.sh: http://pastebin.com/UMeZdH0Y15:26
marcoceppijcastro_: ha!15:26
jcastro_JoshStrobl, this is sweet feedback dude15:26
marcoceppijcastro_: HOLY CRAP DUDE15:27
lazyPower_niceeee15:27
JoshStrobljcastro_: Just figured I'd share my experience writing a charm =)15:27
marcoceppijcastro_: please don't recommend that script15:27
marcoceppijcastro_: great way to loose your entire environments.yaml15:27
lazyPower_its pretty destructive without any kind of warning15:27
JoshStroblBut yea, it was a bit of a pain setting up the environment, destroying it, etc.15:27
JoshStroblmarcoceppi and lazyPower_ that is the point15:27
=== lazyPower_ is now known as lazyPower
lazyPowerJoshStrobl: oh i'm aware of that, but some people just run scripts blindly15:28
marcoceppiJoshStrobl: some of us have more than one environment in environments.yaml :)15:28
lazyPower^15:28
JoshStroblI did it because whenever my charm failed to be installed properly and I went to kill the service, it would just put the state as "dying" the entire time, I couldn't kill it without destroying the environment.15:28
jcastro_my point was mostly "we suck at cleanup so badly someone had to write a script."15:28
marcoceppijcastro_: yeah, I agree15:28
jcastro_lazyPower, actually, weren't you writing a "nuke it from orbit" plugin?15:28
* marcoceppi makes a cleanup plugin15:28
lazyPowerjcastro_: i dubbed it "The Atom Bomb"15:28
timrcAre there best practices for accessing private bzr branches from LP from a service node?  The most obvious strategy seems to be to create a bot user and copy around a private ssh key but that thought alone I suspect makes kittens cry15:29
JoshStroblI couldn't even use destroy-machine because the charm was stuck as dying.15:29
lazyPowerand yeah - Its still in my slack task listing15:29
marcoceppiJoshStrobl: there's a force flag for that15:29
marcoceppiJoshStrobl: juju terminate-machine --force #15:29
JoshStroblmarcoceppi: I'd trying that out, but thanks to you being so helpful (bad marcoceppi, bad!), my charm works.15:30
JoshStroblSo I'll need to intentionally break the charm to test if that works :P15:30
JoshStroblmarcoceppi and jcastro_ I'll update my blog with the update you provided, provide some warnings about the script, and join the juju mailing list. My fiancee and I are going to a dance however, so I'll be afk!15:30
JoshStrobl*with the update, as in the quickstart stuff.15:31
=== JoshStrobl is now known as JoshStrobl[afk]
marcoceppiJoshStrobl[afk]: enjoy!15:34
marcoceppijcastro_: here's pretty much all you need for a clean up: https://gist.github.com/marcoceppi/897734415:39
lazyPowermarcoceppi: not sure about recent revisions of juju as i haven't had any issues, but with 1.17.0 i had to nuke ~/.juju/$env in the case of local as well. just removing the .jenv wasn't enough.15:40
marcoceppilazyPower: OHH, yeah, good point15:41
marcoceppilazyPower: https://gist.github.com/marcoceppi/897734415:41
lazyPowermarcoceppi: and then there's the case where it wasn't destorying the lxc containers...15:41
marcoceppilazyPower: well, that's been fixed in 1.1715:41
lazyPoweryou've basically just written the nuke plugin once you've done that. parse the env name out of the lxc-ls --fancy and bam.15:41
lazyPoweryeah, i agree, its no longer really required.15:41
lazyPowersomeone was dilligent in getting that patched, and i send them all the <3 in the world for that.15:42
marcoceppilazyPower: probably thumper, at least that's who I always blame the lxc stuff on ;)15:42
=== roaksoax_ is now known as roaksoax
=== makyo_ is now known as Makyo
marcoceppiSo, I'm about to make a juju-plugin plugin which downloads...plugins15:53
marcoceppimuch like npm, but for juju, because that seems the sanest way to package plugins15:53
lazyPower+115:55
lazyPowerAre you going to be hosting the API that powers this?15:56
lazyPoweror just parse launchpad data?15:56
marcoceppilazyPower: free for all15:56
marcoceppilazyPower: so you can host it on github, gist, lp, where ever15:57
marcoceppilazyPower: hosted15:57
lazyPowerbrilliant15:57
marcoceppiopen source, etc15:57
marcoceppijust going to have the plugin create a $JUJU_HOME/plugins directory, and have it added to the users path15:58
jcastro_marcoceppi, do you know if we still support firing off a specific AMI for the AWS provider?16:11
jcastro_we used to iirc.16:11
marcoceppijcastro_: I don't think we've supported that since the goland rewrite, let me check the source doe16:12
marcoceppicode*16:12
marcoceppijcastro_: so you /could/ if you created simplestream data and overwrote the canonical stream data16:21
marcoceppithen you could have it use another AMI16:21
mbruzekmarcoceppi, Are the machine logs for hp cloud stored on my local machine?16:21
marcoceppimbruzek: no, they're in the bootstrap node16:21
marcoceppimbruzek: the only reason machine logs are stored on your machine is if you're using the local provider because your laptop/desktop becomes the bootstrap node16:22
mbruzekOK16:22
mbruzekall-machines.log?16:23
tomixxx4hi, when i try to deploy a service on a machine with "juju deploy mysql --to lxc:0" it says "container creation template for juju-machine-0-lxc-0 failed"16:24
mbruzekin /var/log/juju/ ?16:24
tomixxx4the output, of "juju status" in detail is: http://pastebin.ubuntu.com/692624716:24
jcastro_marcoceppi, excellent16:25
marcoceppijcastro_: haven't tested that, but it shoudl work16:26
marcoceppitomixxx4: which provider?16:26
jcastro_ok so not impossible16:26
marcoceppimbruzek: machine-# is where the machine logs are16:26
marcoceppitomixxx4: nvm, I see you're on maas16:27
tomixxx4marcoceppi: what do you mean "which provider" please have a look at the output of "juju status":  http://pastebin.ubuntu.com/692624716:27
marcoceppitomixxx4: does this machine have outside network accecss?16:27
marcoceppimachine being cloud1.master16:28
tomixxx4marcoceppi: yes16:28
marcoceppitomixxx4: well, the error states "failed to get https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt"16:28
tomixxx4marcoceppi: that should be fixed with help from #maas because the nodes were able to resolve all packages while booting after i executed a bash script to do some NAT16:29
marcoceppitomixxx4: so, ssh in to that machine and try to wget that URL16:29
tomixxx4so i should enter this command on the bootstrap node?16:29
marcoceppitomixxx4: yup16:29
tomixxx4or any other url?16:30
marcoceppitomixxx4: that cloud-images url16:30
tomixxx4it answers with "password:"16:32
marcoceppitomixxx4: that's...what?16:32
tomixxx4i have to type this command on the console of the juju bootstrap node, right?16:33
tomixxx4so, i typed this command in and the response of the console is "Password: "16:33
marcoceppitomixxx4: so, you should just be able to type juju ssh 0 from wherever you ran juju bootstrap16:33
marcoceppithat should SSH you into the node16:33
marcoceppithen you should just type `wget  https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt`16:33
tomixxx4aha16:33
tomixxx4ok16:33
tomixxx4because i have the physcial node beside me, so i typed this command with node's keyboard ;)16:35
marcoceppitomixxx4: right, and maas removes the passwords, so you can't just log in16:37
tomixxx4ok, i have tried ssh now it prints "thomas@cloud1.master's password: " on maas-server console16:37
marcoceppitomixxx4: did you add your ssh key to maas?16:37
tomixxx4yes16:37
tomixxx4so i have to add sth to "ssh cloud1.master" ?16:38
marcoceppitomixxx4: well `juju ssh 0` should try to ssh ubuntu@cloud1.master16:38
marcoceppinot sure why it says thomas@cloud1.master16:38
tomixxx4it says master because i use DNS resolving16:38
tomixxx4provided by maas server16:38
marcoceppitomixxx4: not sure why it says thomas instead of ubuntu16:39
tomixxx4OK16:39
marcoceppiit should be using the ubuntu user to ssh you in when you run `juju ssh 0`, could you run `juju ssh --show-log --debug 0` ?16:39
marcoceppiand paste the output16:39
tomixxx4kk16:39
tomixxx4k, i tried "juju ssh 0" it says "permission denied (publickey, password)16:40
marcoceppitomixxx4: yeah, so it doesn't have your ssh keys on there16:40
tomixxx4i have followed the installation guide... i have created an ssh key16:41
tomixxx4andd added with "+ add ssh key" to preferences of root16:41
marcoceppitomixxx4: can you run `ssh -vvv ubuntu@cloud1.master` and pastebin the output16:41
marcoceppitomixxx4: and the ssh key is on the machine you're running the juju command from, correct?16:42
tomixxx4yes, its on the maas-server-node16:42
marcoceppitomixxx4: cool, so you're running these commands from the maas-master16:42
tomixxx4yes16:43
tomixxx4output: http://pastebin.ubuntu.com/692634916:43
tomixxx4oh16:44
tomixxx4this id_rsa.pub... is this the ssh key which should come into maas-dashboard?16:44
tomixxx4because i have another ssh key created some time ago, and its file name is different and its location too...16:45
marcoceppitomixxx4: so, yeah, the ssh id_rsa.pub file that's on this machine in the thomas user should be the one in the dashboard16:45
tomixxx4ok, s***16:46
marcoceppiadd it, juju destroy-environment maas, rebootstrap, then try to deploy --to lxc:0 again16:46
marcoceppitomixxx4: if it fails, again, then do the ssh and check to make sure you can get that url16:46
tomixxx4ok16:46
marcoceppitomixxx4: no worries man! you would have hit this issue sooner or later ;)16:46
tomixxx4iam such an idiot, if this is the cause of the issue, i have wasted lots of hours. xP16:48
tomixxx4but Thank You so far !!!16:48
marcoceppitomixxx4: np, feel free to ping me when you get going again. I don't think that's why the lxc container failed, but it's hard to troubleshoot if you can't get to the node16:51
tomixxx4marcoceppi: ok ty16:51
tomixxx4marcoceppi: hmm, i have changed that ssh, destroyed juju and rebootstrapped but there is still sth wrong: http://pastebin.ubuntu.com/692651917:16
tomixxx4ok, last try for today, i have deleted all keys in .ssh and created a new one with the command "ssh-keygen -t rsa", rebootstraping now...17:45
=== JoshStrobl[afk] is now known as JoshStrobl
=== FunnyLookinHat_ is now known as FunnyLookinHat
tomixxx4marcoceppi: ok, i could login now to the node and i tried wget but i get "failed: no route ho host"18:07
marcoceppitomixxx4: ah, I know this issue!18:07
marcoceppitomixxx4: you need to configure your DNS server to foward requests18:07
marcoceppiquick fix, on the maas-master18:07
marcoceppitomixxx4: open /etc/bind/named.conf.options on maas-master18:08
tomixxx4kk!18:08
marcoceppiand add the following bit18:08
marcoceppihttp://paste.ubuntu.com/6926815/18:09
marcoceppitomixxx4: you should see it commented out currently18:09
marcoceppijust uncomment and set the dns server to something, lik 8.8.8.818:09
tomixxx4marcoceppi: no its not uncommented, its 143.205.140.2118:09
tomixxx4i told u from a bashscript to NAT right?18:09
tomixxx4i guess the NAT script has caused to set this IP as DNS18:09
marcoceppitomixxx4: you're using the micro-cluster scripts?18:09
tomixxx4gimme a sec plz18:10
tomixxx4i have executed this script on maas-server: http://pastebin.ubuntu.com/6926827/18:10
tomixxx4there is a line: dnsserver="143.205.140.21"18:11
marcoceppitomixxx4: yeah, that's from the micro-cluster scripts18:12
marcoceppitomixxx4: can you actually dig @ that address?18:12
marcoceppitomixxx4: ie, `dig @143.205.140.21 google.com` from the maas-master18:12
tomixxx4yes, i guess, "query time: 1022 msec"18:13
tomixxx41 server found18:13
tomixxx4but a question: is the dns-server of the node not simply the maas-dns-server?18:14
tomixxx4so 10.0.0.9 ?18:14
tomixxx4because i have set "manage dhcp + dns"18:14
tomixxx4instead of 143.205.140.21, which is dns-server from the maas-server18:14
marcoceppitomixxx4: right, so basically the nodes will use your maas-master as DNS, but that DNS server needs to forward requests that it dosn't know about to an outside DNS server18:15
marcoceppiotherwise you'll get no route to host18:15
tomixxx4hmm ok , what does this mean? do i have to edit resolvconf on ssh node and add 10.0.0.9 (maas-server) as dns-nameserver=18:16
tomixxx4?18:16
tomixxx4aaaahhh 10.0.0.9 is already written in resolv.conf of the node18:18
tomixxx4hmm18:19
tomixxx4this is, what my "interfaces" file on the maas-server looks like: http://pastebin.ubuntu.com/692686618:20
tomixxx4dns-nameservers: 10.0.0.9 seems wrong, not?18:20
tomixxx4(eth0 connects the server to the nodes, eth1 connects the server to the i-net)18:20
marcoceppitomixxx4: yeah, that dns-server should be the outward facing dns-server18:21
marcoceppidns-nameserver*18:21
tomixxx4kk18:22
marcoceppitomixxx4: then you'll have to restart networking18:22
tomixxx4k18:22
tomixxx4hmm still no route to host18:25
tomixxx4whe i start bootstrapping, i have to manually power on the node which is allocated in maas18:41
tomixxx4so, when i power off the node, and power on it again, does juju still work on that node?18:41
tomixxx4(i have also rebooted maas-server in meantime xP)18:41
marcoceppitomixxx4: it should, unless the node has been set to stopped in maas18:42
tomixxx4kk18:42
tomixxx4but now, i see on the nodes console "cloud1 login:" but it seems it is not finishing...18:43
tomixxx4u know what i mean?18:43
tomixxx4normally, after this line, the node goes on and at the end it prints "cloud init" or sth like that18:43
marcoceppitomixxx4: is this after a bootstrap or just a powercycle post bootstrap?18:43
tomixxx4just powerxycle18:44
marcoceppitomixxx4: that's noraml18:44
tomixxx4ok, but when i hit "juju status" i get no answer in maas-server...18:44
tomixxx4it seems to stuck some way18:44
tomixxx4i cant even login too18:44
marcoceppitomixxx4: so, you see cloudinit the first time because it's provisioning juju and installing a bunch of stuff, however, it's already done that so it just boots up and runs18:44
marcoceppitomixxx4: can you ssh ubuntu@cloud1.master ?18:45
* JoshStrobl thinks he may have been a bit overkill in the length of his response on the Juju mailing list :S18:45
tomixxx4no it says "could not resolve hostname cloud1.master: Name or service not known"18:45
* marcoceppi goes to review the overkill18:45
marcoceppitomixxx4: so, can you run ssh -vvv ubuntu@cloud1.master and pastebin the output?18:46
tomixxx4"interfaces" on master: http://pastebin.ubuntu.com/692700518:46
tomixxx4maybe i have to add "master" in search line?18:46
tomixxx4ah...18:47
marcoceppiJoshStrobl: fantastic feedback!18:47
JoshStroblThanks18:48
marcoceppithank you!18:48
tomixxx4it should spelled "dns-search" and "dns-nameservers" and not "search" and "nameserver" ... xP18:50
JoshStroblmarcoceppi: In case you didn't get the notice on G+, I went ahead and updated the blog post to suggest your script as well. I described mine as an atom bomb to a problem that can be solved with a screwdriver :P18:50
marcoceppiJoshStrobl: cool, I'm taking a few mins to work on making installing plugins for juju a lot easier too, as well as addressing some of the documentation concerns you brought up18:51
marcoceppiUnfortuantely our copywriter is out, so things like quickstart which are relatively new haven't been documented yet18:51
JoshStroblmarcoceppi: That's understandable. Better to know now then never I suppose! :P18:52
tomixxx4marcoceppi: http://pastebin.ubuntu.com/692705018:56
marcoceppitomixxx4: what does dig cloud1.master present?18:57
tomixxx4marcoceppi: http://pastebin.ubuntu.com/692706418:57
marcoceppitomixxx4: what does /etc/resolve.conf look like on maas-master?18:59
tomixxx4marcoceppi: http://pastebin.ubuntu.com/6927078 and "interfaces": http://pastebin.ubuntu.com/692708219:00
marcoceppitomixxx4: move 10.0.0.9 to the first line19:01
marcoceppialso, which DNS server is the one you actually use?19:01
marcoceppi140.21 or 176.16 ?19:01
tomixxx4dont know19:02
marcoceppiwhichever it is, that's the one that needs to be in /etc/bind/named.local.options19:02
marcoceppias it'll be the one that forwards requests, I'm guessing 143.205.140.21 considering the output of dig19:02
tomixxx4ok its 143.205.140.21 , i did "dig www.google.com | grep SERVER"19:04
tomixxx4can i simply edit resolv.conf?19:04
marcoceppitomixxx4: you can, but it'll eventually get re-generated19:05
tomixxx4re-generated, but only after reboot?19:05
marcoceppitomixxx4: and other certain times19:06
tomixxx4oh ok...19:06
marcoceppitomixxx4: the best way is to edit /etc/resolvconf/...19:06
marcoceppiuh, I forget the file name, one second19:06
tomixxx4head?19:06
marcoceppitomixxx4: yeah, /etc/resolvconf/resolv.conf.d/head19:06
marcoceppithat's a good one to start with19:07
tomixxx4and then reboot :-)19:09
tomixxx4yep19:11
tomixxx4working19:11
tomixxx4can login again :-)19:12
tomixxx4but no route to host :(19:12
marcoceppitomixxx4: yeah, so you'll need to update the forwarders rule in the /etc/bind/named.local.optoins to the right dns server19:15
marcoceppirestart bind, then try again19:15
tomixxx4good point, but the ip is already correct19:16
tomixxx4143.205.140.2119:16
marcoceppiwell, something's messed up along the line there19:16
tomixxx4u meand named.conf.options?19:17
marcoceppitomixxx4: for the sake of, something or another, from maas-master run `dig @8.8.8.8 google.com`19:17
tomixxx4btw, i have to run the bash script again it seems, because nat table iptables is empty ^^19:17
tomixxx4i always have to run it, if i reboot the maas-server tbh19:18
tomixxx4has sth to do with my old server version i guess19:18
tomixxx4when i execute this bash script, do i have to reboot, restart network service or sth like that?19:19
marcoceppitomixxx4: nope, it should do all that for you19:19
tomixxx4kk19:19
marcoceppitomixxx4: so, dig @8.8.8.8 google.com; did that work?19:19
tomixxx4"dig @8.8.8.8 google.com" > connection timed out; no servers could be reached19:20
marcoceppidarn, okay19:20
tomixxx4?19:21
marcoceppitomixxx4: well I was going to say you could just use another DNS server, but you can't because of your network location19:21
tomixxx4but i can connect to i-net on my maas-server19:22
marcoceppitomixxx4: right, but some networks block exterior nameserver lookups19:23
marcoceppiwhich is happening in your case19:23
tomixxx4interesting: when i try "ping 143.205.140.21" on my node, it says "destination host unreachable"19:23
marcoceppitomixxx4: it might not be listening to pings19:23
tomixxx4but "ping 10.0.0.9" works19:24
tomixxx4and "ping 143.205.140.21" works also from maas-server19:24
marcoceppitomixxx4: right, because your bind instance isn't configured to not respond to pings19:24
marcoceppiOH, on your node19:24
tomixxx4yes, on the maas-server, i can ping 143.205.140.21 and 10.0.0.919:25
tomixxx4from the juju-bootstrap-node, i can only ping 10.0.0.919:25
tomixxx4so it seems there is some NAT problem?19:25
tomixxx4in the bash-script, eth0 and eth1 are not confused or sth like that? iam not that familiar with iptables-statements19:27
tomixxx4eth0 = connects the server to the nodes via switch, eth1 = connects the server with internet19:27
marcoceppitomixxx4: oh, maybe that's what's up19:32
marcoceppithe script assumes something else19:32
tomixxx4kk19:33
=== zz_mwhudson is now known as mwhudson
tomixxx4so, i guess i need other NAT- and forwarding statements?19:40
marcoceppitomixxx4: one sec, link the script you're using again?19:41
tomixxx4marcoceppi: kk, link is: http://pastebin.ubuntu.com/6922731119:42
tomixxx4marcoceppi: sorry, wrong address.... correct: http://pastebin.ubuntu.com/692731119:43
marcoceppitomixxx4: you should uncomment sysctl --system19:44
marcoceppialso, you should install iptables-persist19:44
marcoceppiand write the rules to it, so they survite restarts19:44
marcoceppiso, install iptables-persist, then run the nat script, then run `iptables-save > /etc/iptables/rules.v4`19:46
tomixxx4marcoceppi: but sysctl --system does not work with my ubuntu server edition19:47
marcoceppitomixxx4: what...version are you running?19:47
tomixxx4ubuntu server 12.04.3 LTS19:48
thumperrick_h_: if I have an environment running, with a gui installed, will 'juju quickstart' just log me in to it?19:53
rick_h_thumper: yes19:54
thumperok19:54
rick_h_thumper: it's a much faster way thank finding your admin secret19:54
rick_h_thank/than19:54
thumpertrue that19:54
marcoceppican we just make juju quickstart juju deploy?19:55
marcoceppierr boostrap19:55
rick_h_not a fan, in this case it's not bootstrapping. It's using the existing env19:55
rick_h_and it's used for: juju quickstart bundle:xxxx19:55
rick_h_which can reuse an env, that's not 'bootstrap' really.19:56
marcoceppirick_h_: it will bootstrap if the env doesn't exist already19:56
marcoceppiatleast, I'm pretty sure it will19:56
tomixxx4marcoceppi: so, the content of the bash script is ok?19:58
marcoceppitomixxx4: seems about right20:00
tomixxx4marcoceppi: but dns resolving works20:02
tomixxx4marcoceppi: see the output of the wget command: http://pastebin.ubuntu.com/692743220:02
tomixxx4marcoceppi: so, do u have any other idea what the reason for the problem could be ? :(20:19
=== mwhudson is now known as zz_mwhudson
=== timrc is now known as timrc-afk
tomixxx4marcoceppi: ok, i have to go now. but i will be here next week, maybe there is a chance to get things work on another day ;)20:43
marcoceppitomixxx4: cheers, sorry we couldnt' get this figured out today!20:44
tomixxx4marcoceppi: np! thank you for all your help and hints so far ;-) All these things helped me to get stepwise closer to openstack!20:46
tomixxx4gn820:46
marcoceppijcastro: https://github.com/juju/plugins20:53
jcastroI saw, I am subbed to the juju org20:53
jcastro<320:53
marcoceppiI'll add more as I clean up plugins20:54
marcoceppijcastro: could you test my install instructions when you get a chance?20:54
marcoceppilazyPower: you probably wrote a few plugins too ^^20:55
jcastrosure20:55
jcastromarcoceppi, git is in `git` now, not `git-core`20:56
lazyPowerjcastro: so git is no longer a metapackage?20:56
jcastrono it's a package package20:58
jcastrobut it's git, not git-core20:58
jcastromarcoceppi, the rest of the instructions work20:58
marcoceppijcastro: cool, thanks20:58
marcoceppidocs updated20:58
jcastromarcoceppi, http://paste.ubuntu.com/6927700/20:59
jcastrosomething is wrong with the backup one I think?20:59
marcoceppijcastro: backup isn't a plugin in the plugin repo20:59
jcastromarcoceppi, also it's Verify not Veify20:59
marcoceppijcastro: that's something in your path20:59
jcastrooh!20:59
lazyPowermarcoceppi: the only juju plugin i wrote you replaced with clean21:00
lazyPower+1 on instructions working21:00
jcastromarcoceppi, all you need is an "updating" section and you should be good21:00
marcoceppijcastro: something I just realized, it'd be nice if in () after the description juju showed you the path to the plugin21:00
jcastrojust cd'ing in there and git pull should do it right?21:00
marcoceppijcastro: ah, good catch21:00
marcoceppijcastro: ack21:00
jcastroo/21:00
marcoceppithumper: you up?21:01
thumpermarcoceppi: yeah man21:01
thumperpfft21:01
thumperbeen up for hours21:01
marcoceppithumper: hey, how hard would it be to display the path of a plugin in the juju help plugins output?21:01
marcoceppilike `PLUGIN      --description output    PATH`21:02
jcastroman, I really want the docs on github21:02
thumperyou mean where we found th eplugin?21:02
jcastrobut I don't want to go down that rabbit hole21:02
marcoceppijcastro: oh, you mean with like markdown ;)21:02
thumperjcastro: do it :-)21:02
marcoceppi+1 from me ;)21:02
jcastromarcoceppi, yeah, then you could inline edit docs ON THE FLY21:02
thumperjcastro: ask for forgiveness21:02
marcoceppithumper: yeah, where the plugin is located21:02
jcastrothumper, yeah but we build the docs out of bzr, so like, we'd need to update cron jobs etc.21:03
marcoceppilike /usr/bin or is it ~/.juju-plugins, etc21:03
thumpermarcoceppi: pretty easy21:03
jcastrohmmmm21:03
marcoceppithumper: cool, I'll file a bug for it then try to hack it myself for the next 10 mins, then leave it to the experts21:03
jcastrohey rick_h_, how did you import the gui history into github and so on?21:03
thumpermarcoceppi: heh, ok21:03
thumperrick_h_: also, re: github, do you squash the commits when merging?21:04
jcastrohttps://github.com/kfish/git-bzr21:05
jcastroseems useful21:05
marcoceppijcastro: there's like a million git-bzr plugins out there21:05
jcastroyeah I just want to know which one works21:05
marcoceppithey all kind of suck, are you talking about just moving the docs branch to github?21:06
marcoceppiI can do a one time export -> import to github21:06
marcoceppi#thingstodowhennickisaway21:06
jcastroyeah21:07
marcoceppiwas that yeah do that, or...?21:08
marcoceppiI mean, we should make sure no other merges exist against the docs branch, then once we move it we'll need to basically not accept merges to the docs branch anymore on lp21:08
marcoceppithen setup lp to import from gh so that we don't break auto-doc generation21:09
jcastroI was thinking of filing to make the auto-doc scripts update to pull from gh instead21:10
jcastromarcoceppi, I don't see any active MPs for docs.21:12
marcoceppijcastro: we could do that too, file to use gh, not sure how much IS will like that, but I can do an initial import to gh21:13
jcastro-core is moving to github21:13
jcastrolet's go all in!21:13
marcoceppijcastro: cool, will set up in a few seconds21:13
=== zz_mwhudson is now known as mwhudson
rick_h_thumper: notes, scripts, and docs in here: https://bazaar.launchpad.net/~rharding/juju-gui-lander/trunk/files21:16
rick_h_thumper: hazmat says that to squash commits from bzr over to the new git repo it's a one line change to bzr-fastimport21:16
marcoceppijcastro: https://github.com/juju/docs21:16
jcastromarcoceppi, nice, I'll send the mail to nick21:17
rick_h_thumper: yes, we squash when marging currently. https://github.com/juju/juju-gui/blob/develop/HACKING.rst#typical-github-workflow is what we're doing atm with some warts21:17
lazyPowermarcoceppi: can i get an invite to the juju group?21:17
marcoceppiI don't think I'm an admin?21:18
rick_h_lazyPower: github username?21:18
lazyPowerrick_h_: chuckbutler21:18
marcoceppiI do have the power21:19
rick_h_lazyPower: added as charmer like marco/jcastro21:19
lazyPowerty rick_h_21:19
rick_h_hmm, and did owners as well. looks like everyone is an owner21:19
marcoceppilazyPower: we should make sure that we don't ever push master, but use merge proposals instead21:19
marcoceppipsa21:19
lazyPowermarcoceppi: i'll follow the fork-repository pattern.21:20
marcoceppilazyPower: <321:20
lazyPower:)21:20
rick_h_marcoceppi: lazyPower yea, we make everyone fork off of juju owned repo into their own space and use pull requests21:20
marcoceppiI guess it's about time I moved amulet from my namespace21:20
hatchthere might be a better way to do the merging so we don't need people to rebase before merging into the develop branch....but untested21:21
hatchpr's accepted.....right rick_h_ ? :)21:21
rick_h_hatch: yea, hopefully I can hack at it some this weekend.21:21
hatchoh that would be awesome21:21
rick_h_hatch: well I missed the no rebasing bit21:21
hatchthere is git merge --squash21:22
rick_h_some of those ways just always end up as one commit which I'm not a fan of21:22
hatchand git merge --squash --ff21:22
* marcoceppi stops pushing master to plugins now21:22
rick_h_hatch: oh hmm, well we just use the github api for the merge bit21:22
rick_h_hatch: so I don't have a way to tell it how to do it like that. I guess we could have the script try to do it and then close the pull request as a follow up step21:23
rick_h_I want to see how we get into these merge conflict issues. I don't run into them but seems everyone else does so I must be missing something in my workflow.21:23
hatchI don't....it only happens when you merge develop into your current workflow then modify it and another branch lands21:23
hatchit's pretty rare21:24
hatchbut the conflicts make sense21:24
rick_h_I think the trick is to fix the way we merge develop in mid-branch21:24
rick_h_just git merge develop isn't good. I think a git rebase develop will work21:24
rick_h_but need to setup branches in the right state and try it out this weekend21:24
marcoceppirick_h_: so is juju-core on gh or should I be using bzr still?21:30
rick_h_marcoceppi: I'm not up on what core is up to. They're moving at some point but don't know timing/state of that.21:31
rick_h_marcoceppi: I'm assuming since thumper asked for info they're still working on it21:31
marcoceppimakes sense, ta21:31
thumpermarcoceppi: core moving soon21:31
thumperFSVO soon21:31
rick_h_hah21:32
marcoceppijcastro: are you going to announce plugins to the list or should I?21:33
jcastroI can if you'd like!21:33
jcastroI am at your service21:33
marcoceppijcastro: you're more...wordsmity than I, I can't seem to get veify right ;)21:34
jcastroon it21:34
marcoceppita!21:34
jcastromarcoceppi, is juju clean the only one we have right now?21:39
marcoceppiit's the only one I've put in there, I'm trolling through my gists to find others21:40
jcastroack21:40
marcoceppiI've created a ton of them, but they're pretty hyper specific21:40
jcastrowouldn't hurt to have them in there21:41
jcastroif anything as examples21:41
hatchjcastro quickstart is a plugin..no?21:42
jcastrohatch, yessir it is!21:42
hatchor is that leveled up too much? :)21:42
jcastrothough tbh I think it should just be reimplemented in core21:43
jcastrothat should just be the way to use juju IMO21:43
marcoceppihatch: well, is juju-quickstart just a single file? IMO plugins should graduate to packages, like deployer charm-tools and quickstart21:44
marcoceppibut a ton of them, like juju-clean, address gaps in juju released versions21:44
hatchmarcoceppi no it's quite a bit of work :)21:45
marcoceppior one off simplifications, like juju-setall21:45
marcoceppiwhich just runs juju set key=val on all services wether it exists or not as a valid config21:45
hatchhttps://code.launchpad.net/~juju-gui/juju-quickstart/trunk21:45
hatchit seems like there should be a juju-plugins org and then each plugin has it's own repo21:47
hatchelse you have to pull down everything to patch one plugin21:47
hatchbut I mean, unless there are quite a few it's probably not a problem :)21:47
marcoceppihatch: that was my plan, but jorge was like "start small"21:47
hatchI hate to say it.....but he is probably right ;)21:48
marcoceppiyeah, I registered jujuplugins.com but unless get a cascade of plugins I think this will suffice21:48
hatchyup yup21:51
=== timrc-afk is now known as timrc
* marcoceppi shames jcastro for cowboying on the docs branch22:10
dannfhe shalt be punished by eating only beans from a can and dark coffee for a week!22:15
thomiHi - I wonder who I should talk to about issues I'm having in juju-quickstart? Specifically: https://bugs.launchpad.net/juju-quickstart/+bug/128000522:20
_mup_Bug #1280005: juju-quickstart cannot bootstrap local environemtn with sudo <juju-quickstart:New> <https://launchpad.net/bugs/1280005>22:20
=== wallyworld___ is now known as wallyworld
marcoceppithomi: as of 1.17.2 you no longer need sudo to bootstrap (it'll instead prompt for password) so when 1.18.0 is released that bug won't be relevant anymore22:45
thomimarcoceppi: in the mean time, what can I do?22:45
marcoceppithomi: run sudo juju quickstart ?22:45
* thomi tries22:45
rick_h_thomi: howdy, yea for now I cheat and bootstrap with juju and then run quickstart to get the Gui and bundles deployed22:48
thomirick_h_: ok, I'll try that22:48
rick_h_thomi: we're in between releases. Right now it checks if the version is < 1.18 and if so it throws the message22:48
rick_h_thomi: once 1.18 hits it'll 'just work' and it's a pain point during the dev 1.17 cycle22:48
thomirick_h_: perhaps on trusty it shouldn't install the PPA?22:48
thomirick_h_:  any idea when the 1.18 release is happening?22:49
rick_h_thomi: I think the aim is within 2wk?22:49
thomiawesome, thanks22:49
rick_h_thomi: no promises, but soon so should get over this bump22:49
thomi:)22:49
JoshStrobl@marcoceppi - I don't think individual repositories are necessarily for juju plugins. I've contibuted to DefinitelyTyped (a repository of definitions and tests for Typescript stuff - https://github.com/borisyankov/DefinitelyTyped) and having each "definition" (in the case of Juju plugins it'd be a folder for each plugin) works out pretty well.22:57
marcoceppiJoshStrobl: well, this is one repository, that has a file per plugin22:57
marcoceppisame concept22:57
marcoceppiJoshStrobl: I'm about to add more, I just put the one in there, but others are welcome22:58
thomirick_h_: probably a dumb question, but 'juju generate-config' does not set 'admin-secret' in the local environemnt config stanza, which then causes other things to fail. Any ideas what I'm missing?22:58
JoshStroblmarcoceppi: Essentially, although you could easily divide each plugin into it's own folder and accompany each plugin with it's own Markdown page that'd be similar to man pages so people could easily understand (in a human readable fashion) the plugin's use-case, flags/ args, etc.22:58
marcoceppiJoshStrobl: since plugins work by path, we'd have to add /each/ folder to path, which is tedious22:58
JoshStrobltrue22:59
marcoceppiJoshStrobl: yeah, that's why I enforce all plugins accepting a --help flag22:59
marcoceppisince juju will automatically run the -help flag if you do `juju help <plugin>`22:59
marcoceppimuch like the other juju help topics23:00
rick_h_thomi: I think they changed that it's in the jenv file now. The gui mentions it when you install it and load it now23:00
JoshStroblmarcoceppi: Awesome.23:00
rick_h_thomi: so check the .juju/environments/xxxx.jenv23:00
thomirick_h_: yes, I see it there, but after doing a manual bootstrap, 'juju-quickstart -e local' complains about it being missing from the environments.yaml file - should I copy it over, or is there a better way?23:01
rick_h_thomi: if you juju quickstart it should find it and load the gui and auto log you in23:01
rick_h_thomi: juju-quickstart --version23:02
thomijuju-quickstart 1.0.023:02
rick_h_hmm, can you file a bug then that lists the error you get from quickstart with it complaining. Note that you generated the config via generate-config23:03
rick_h_thomi: ^23:03
thomirick_h_: sure thing23:03
rick_h_thomi: for the moment yes, you can copy it over23:03
marcoceppilazyPower: you around?23:03
rick_h_thomi: but I thought it should *just work* in either location23:03
marcoceppilazyPower: could you review and merge this plz https://github.com/juju/plugins/pull/223:04
thomirick_h_: https://bugs.launchpad.net/juju-quickstart/+bug/128001923:09
_mup_Bug #1280019: juju-quickstart does not find admin-secret <juju-quickstart:New> <https://launchpad.net/bugs/1280019>23:09
rick_h_thomi: thanks, will put this on the radar to check into23:10
rick_h_thomi: I'm wondering if this is another case where "juju < 1.18 look in environments.yaml" and otherwise look in .jenc23:11
rick_h_.jenv23:11
thomisounds like it23:11
rick_h_thomi: I'll verify tomorrow and update the bug.23:12
=== CyberJacob is now known as CyberJacob|Away

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