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

=== CyberJacob is now known as CyberJacob|Away
=== gary_poster is now known as gary_poster|away
=== mwhudson is now known as zz_mwhudson
=== zz_mwhudson is now known as mwhudson
=== mwhudson is now known as zz_mwhudson
=== freeflying_away is now known as freeflying
=== CyberJacz is now known as CyberJacob
=== zz_mwhudson is now known as mwhudson
=== timrc is now known as timrc-afk
=== _thumper_ is now known as thumper
=== timrc-afk is now known as timrc
=== zz_frobware is now known as frobware
=== CyberJacob is now known as CyberJacob|Away
jcverdieHi all, does anyone know how/if I can deploy a juju framework on a pre-existing amazon instance? I have reserved instances which I'd like to use for this09:52
jcverdiee.g. instead of adding machines which are created by juju, using my own machines...09:52
axw__jcverdie: yes, using manual provisioning. it works well in the latest dev release, it's a bit flakey in the stable release10:15
axw__jcverdie: I have to run, but the docs are here: https://juju.ubuntu.com/docs/config-manual.html10:16
axw__(a little out of date, but mostly still true)10:16
jcverdiethanks Im gonna look10:17
=== mwhudson is now known as zz_mwhudson
=== freeflying is now known as freeflying_away
=== gary_poster|away is now known as gary_poster
=== freeflying_away is now known as freeflying
tomixxxhi, when i try to assign multiple charms to the same machine, i get an error in agent-state-info. it seems that the machine cannot download some things from http://cloud-images.ubuntu.com. Please have a look on the output of the terminal when i call "juju status": http://pastebin.ubuntu.com/6873041/ As u can see in the output, i have tried it now several times but every time the lxc container failed to create13:36
tomixxxcan i install "juju" if i have installed "juju-core"?14:09
=== rektide_ is now known as rektide
lazyPowertomixxx: juju is a metapackage, It won't harm anything.14:20
tomixxxlazyPower: i still have the problem that i cannot assign multiple charms to the same machine14:21
lazyPowerdo you have the juju-local package installed?14:21
tomixxxlazyPower: no i have not installed this package14:23
lazyPowertomixxx: you will need to destroy your environment, install the juju-local package, then rebootstrap your local environment14:23
lazyPowertomixxx: https://juju.ubuntu.com/docs/config-LXC.html14:24
tomixxxlazyPower: ok i will do this14:25
lazyPowerBest of luck. Ping me if you get stuck14:25
tomixxxty14:25
tomixxxlazyPower: i have followed your guide and then i have called "juju deploy mysql --to lxc:0" again but i got the same error15:03
lazyPowertomixxx:  shoot me a pastebin of your juju-status output again please15:04
tomixxxlazyPower: http://pastebin.ubuntu.com/6873459/15:05
jcverdieHi I'd like to deploy to a EC2 instance which I already have, but as it's a regular EC2 i have to use PEM to connect to it, and I can't find how to do it with juju ?15:06
lazyPowertomixxx: does the machine you're bootstrapping juju on have internet connectivity?15:07
tomixxxlazyPower: no15:07
lazyPowerjcverdie: what you're attempting to do is manual provisioning15:07
lazyPowerjcverdie: thats still very much in beta phases at this point15:07
jcverdielazyPower: I did it (juju switch null)15:07
jcverdiebut juju bootstrap fails : ERROR failed to enable bootstrap storage: failed to create storage dir: exit status 255 (Permission denied (publickey).)15:07
lazyPowertomixxx: you will need to get that machine to have connectivity before creating the containers will work. Its dependent on the cloud-tools to bootstrap the node.15:07
jcverdiebecause when i ssh it i have to do ssh -i mykey.pem15:08
tomixxxlazyPower: My architecture is as follow: my maas-server is connected to two nodes via switch. the maas-server has to network interfaces: one interface is connected to the switch and the other interface connects me to the internet15:08
lazyPowerjcverdie: ok, so its an ssh auth error. Can you add your sshkey to the authorized_keys on the host?15:08
jcverdieand I don't know how to tell juju to do it15:08
jcverdiei'll try15:09
lazyPowertomixxx: The only resolution here is to get internet connectivity to the host that is bootstrapping those lxc containers, i'm sorry.15:09
lazyPowerjcverdie: ssh-copy-id -i $PATH_TO_KEY ubuntu@host15:10
tomixxxlazyPower: lazyPower: ok15:10
jcverdielazyPower: i have the public .pem and my own public rsa in the authorized keys on the server15:11
lazyPowerOk that should be good. When you ssh to that host, you no longer have to specify the key, correct?15:12
jcverdielazyPower: right, but juju bootstrap still fails :(15:12
lazyPowerjcverdie: still on object storage?15:13
jcverdieyep, exactly the same error15:13
lazyPowerhmm.. is juju using a different keypair than what you have provided to the host?15:13
jcverdieno, i've put my 3 keys on the server15:14
jcverdiecould it be somethign wrong in my environments.yaml ?15:14
lazyPowerwell, one second15:14
lazyPoweris juju trying to use your personal user and not ubuntu? there's a config flag for the user15:14
lazyPower    # bootstrap-user:15:14
jcverdiei've set bootstrap-host, bootstrap-user15:15
lazyPowerI'm not sure then :| that should have been a green light to juju15:15
jcverdieand there's a storage-auth-key which I haven't set but it's there15:16
lazyPoweryeah, you should be fine without that. I haven't used the configuration field in my trial tests of the manual provider15:16
jcverdie:(15:16
lazyPowerjcverdie: i'll keep brain bending on this, but i'm not sure why that's not working. can you pastebin me all the non-sensitive stuff relating to the null provider from your environments.yaml?15:18
jcverdiesure15:18
jcverdiedid you get it ?15:19
lazyPowertomixxx: another thing, make sure your lxc bridge device is pointed at the proper ethernet port to get internet connectivity too. The bootstrap process will be downloading bits from the itnernet as well.15:19
lazyPoweri did15:19
jcverdiebrb15:20
tomixxxlazyPower: how do i check this?15:20
lazyPowertomixxx: lxcbr0 (the default bridge device created by juju) is by default attached to eth0 ( i'm pretty sure ) and if you need to change that15:21
lazyPowerthe configuration of the bridge interface is found in /etc/lxc/default.conf - but it doesn't look like it has the bridged interface there...15:22
tomixxxlazyPower: ok, in my case, eth0 has no internet, but eth1 has15:23
lazyPowertomixxx: ah its in /etc/default/lxc15:23
lazyPoweryou can configure the LXC virtual bridge device / vnet in that file. it will require a restart to take hold however. I don't believe that sudo service networking restart will affect the LXC bridge device.15:24
tomixxxlazyPower: hmm, LXC_ADDR="10.0.3.1"15:25
lazyPowerif you don't want to reach the containers that LXC is spinning up on your network thats fine. Juju's local provider occupies that ip range by default15:26
lazyPowerif do you DO however want to reach your LXC containers, you will need to do some configuration magic15:26
tomixxxlazyPower: i have to use lxc-containers because i have only 2 nodes15:27
lazyPowertomixxx: I understand. I have an intranet deployed in my house using juju and lxc containers.15:28
lazyPowerit works really well, but I don't know that its something I would want to use in production. It does get a bit wonky here and there.15:28
=== freeflying is now known as freeflying_away
tomixxxlazyPower: do i need to change my "interfaces" file in order to enable the cloud-nodes to access the internet?15:57
lazyPowerI don't believe so15:57
tomixxxlazyPower: Ok, so there is no need to configure a "bridge" or sth like that?15:58
lazyPowerthats what i pointed you at, the LXC bridge configuration15:58
=== dames is now known as thedac
tomixxxlazyPower: k, but what do i have to change there?15:59
lazyPowertomixxx: not knowing how your network is configured, or the host machine, thats difficult to say.16:01
tomixxxlazyPower: my network is configured as follow: http://pastebin.ubuntu.com/6873735/16:02
tomixxxlazyPower: eth1 connects me to the internet and eth0 connects me to the cloud-nodes16:03
lazyPowertomixxx: there's a discussion on this in the forums, read through this - http://ubuntuforums.org/showthread.php?t=213744616:03
tomixxxlazyPower k, ty16:05
=== gary_poster is now known as gary_poster|away
=== gary_poster|away is now known as gary_poster
tomixxx3i have tried to NAT the traffic from the LXC bridge to the internet-capable network interface eth1: http://pastebin.ubuntu.com/687410217:24
tomixxx3the problem is it does not work17:24
tomixxx3i get the same error when i call "juju status" -> "failed to get https://cloud-images.ubunt.com/..."17:25
tomixxx3lazyPower: do i have to rebootstrap juju if i have changed lxc bridge settings?=17:33
marcoceppi_tomixxx3: possibly17:34
tomixxx3marcoceppi: i have only modified the "interfaces" file, in detail. i added some port-forwarding lines17:34
tomixxx3marcoceppi: i have already restarted the maas-server but it seems still not work because i cannot create lxc containers17:35
marcoceppi_tomixxx3: didn't realize you were driving lxc with maas17:35
tomixxx3marcoceppi: i have deployed juju on top of maas because i want to use openstack17:36
tomixxx3marcoceppi: in order to deploy juju charms, i need to have multiple charms on a single machine17:36
tomixxx3marcoceppi: and therefore, i need lxc containers17:36
marcoceppi_tomixxx3: right, but are the LXC containers in maas, or are you using juju deploy --to lxc:# ?17:37
tomixxx3i use "juju deploy XXX --to lxc:x"17:37
marcoceppi_tomixxx3: you won't need to re-bootstrap17:37
marcoceppi_but I'm not sure if anything else is required17:38
tomixxx3k, the problem is, when i try to deploy sth i call "juju status" after it and then i can see that the creation of the lxc container failed because the container was not able to download sth17:39
marcoceppi_right, so some networking issue17:39
marcoceppi_what version of juju are you using?17:39
tomixxx3if its "agent-version" it is 1.16.5.117:40
tomixxx3marcoceppi: the output of "juju status" looks like the following: http://pastebin.ubuntu.com/687417617:41
marcoceppi_tomixxx3: yeah, I think lxc bridge stuff was patched in 1.17.2, but the person who would know that is not online right now17:41
tomixxx3marcoceppi: as u can see, i have tried it multiple times17:41
tomixxx3marcoceppi: 0/lxc/4 was last try ;)17:42
tomixxx3maroceppi: so, do you mean it make sense to go to version 1.17.2?17:43
tomixxx3marcoceppi: i mean latest, not last17:45
marcoceppi_tomixxx3: for LXC stuff, yes17:49
marcoceppi_it's something thats actively beinig worked on in juju at the moment17:49
tomixxx3marcoceppi: i fear that the main problem is that i have made some mistake when configuriering or installing sth17:54
cjohnstonIs there a way to get juju to automatically clean up the security group spam it creates?18:08
marcoceppi_cjohnston: no, but there is a tool you can compile with go to do it18:17
marcoceppi_cjohnston: though it's a bit...over zealous18:18
=== wendar_ is now known as wendar
=== CyberJacob|Away is now known as CyberJacob
=== seelama`` is now known as seelaman
=== zz_mwhudson is now known as mwhudson
=== timrc is now known as timrc-afk
=== gary_poster is now known as gary_poster|away
=== timrc-afk is now known as timrc
=== CyberJacob is now known as CyberJacob|Away

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