/srv/irclogs.ubuntu.com/2015/07/10/#juju.txt

=== liam_ is now known as Guest18768
coreycbgnuoy, jamespage: I need a review on this if one of you have a moment. https://code.launchpad.net/~corey.bryant/charm-helpers/install-warning/+merge/26434012:42
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
jamespagethedac, hey - I did take a look through your service status MP - looks like a good start15:47
thedacjamespage: great, thanks15:47
jamespageone comment - I think we need to differentiate between BLOCKED - relations not made, and PENDING - relation made, pending presentation of data15:47
thedacok15:48
jamespagewe may not quite have that with the current context model - its a bit black and white complete/incomplete15:48
jamespageso we may need to add some helpers to context to determine that information15:48
thedacyeah, I'll have to dig a bit more to get to that15:48
jamespagethedac, awesome15:49
thedacthanks for the feedback15:49
marcoceppithere's also "waiting" which is like "I know you've connected me, but I don't have data from the relation yet"15:49
thedacyeah, that would make sense as the status. It is getting at that information in the charm that will be the work.15:50
pmatulisif i want to change settings for an environment can anything be done programmatically? if so, would it be better to edit environments.yaml anyway?16:38
jrwrenpmatulis: juju set-env16:45
pmatulisjrwren: looking, thanks16:46
suchvenuHi All, After cleaning the environment using juju bootstrap, juju status command is hanging. How to resolve this ?17:41
marcoceppisuchvenu: what do you mean, cleaning?17:51
marcoceppiyou mean you destroyed-environment, ran bootstrap and now status doesn't work?17:51
suchvenui ran juju destroy-environment local and then ran bootstrap17:53
suchvenujuju status and juju debug-log not working now17:54
marcoceppisuchvenu: can you run `juju status --debug` ?17:54
suchvenu2015-07-10 17:55:23 INFO juju.api apiclient.go:261 dialing "wss://localhost:17070/environment/e4301ecd-0e2c-4656-8fc1-758ce461f350/api" 2015-07-10 17:55:23 DEBUG juju.api apiclient.go:267 error dialing "wss://localhost:17070/environment/e4301ecd-0e2c-4656-8fc1-758ce461f350/api", will retry: websocket.Dial wss://localhost:17070/environment/e4301ecd-0e2c-4656-8fc1-758ce461f350/api: dial tcp 127.0.0.1:17070: connection refused 2015-07-1017:55
marcoceppisuchvenu: can you paste teh output of `sudo initctl list | grep juju` ?17:56
suchvenuok17:56
suchvenuCcharm1@islrpbeixv666:~/charms/trusty$ sudo initctl list | grep juju [sudo] password for charm1: charm1@islrpbeixv666:~/charms/trusty$17:56
suchvenunothing there17:56
marcoceppisuchvenu: what version of ubuntu are you on?17:57
suchvenutrusty17:58
marcoceppisuchvenu: run `juju destroy-environment --force local` then bootstrap again17:59
suchvenuok18:00
suchvenuyes, working now18:03
suchvenuyes, working now :-)18:03
suchvenuThanks marcoceppi18:05
marcoceppisuchvenu: no worries!18:05
pmatulisi'm using the local provider with 'container: kvm' . doing 'juju add-machine' gets me a machine (as seen with 'juju status') but not with 'virsh list --all'. possible that libvirt is not being used?18:12
pmatulis(output to 'juju status' here: http://paste.ubuntu.com/11857271/)18:14
lazyPowerpmatulis: if you run sudo lxc-ls --fancy do you see the ubuntu-local-machine-1 listed?18:18
pmatulislazyPower: no18:19
pmatulislazyPower: to be clear, i don't want LXC at all18:19
pmatulislazyPower: i thought i could just get some kvm-based machines18:20
lazyPoweryou can, and virsh should have listed that machine..18:20
pmatulisok18:20
marcoceppinot sure if should is appropriate18:20
marcoceppijuju keeps containers in different paths18:20
marcoceppiand it may not be registered in virsh18:20
pmatulishm, that is plausible18:22
pmatulisanyway, i'm logged into this machine fwiw. still digging18:23
pmatulisthe machine's log file: http://paste.ubuntu.com/11857329/18:29
pmatulislazyPower: i don't get it. this machine is indeed an LXC container18:37
lazyPowerI suspected that might be the case looking at the IP of the machine and its name.18:37
pmatulisi created a new file under /etc while logged into it and the host shows it (sudo ls -l /var/lib/lxc/ubuntu-local-machine-1/rootfs/etc)18:38
pmatulislazyPower: gah, using sudo with 'lxc-ls' shows it18:38
lazyPowerah, i had sudo up above :) i guess i should have called it out18:39
pmatulismy bad18:42
pmatulislazyPower: so question remains: how do i get myself a kvm guest?18:44
lazyPowerdo you have the juju-local-kvm package installed? (i'm not sure if this is still required, but it was at one point)18:48
pmatulislazyPower: just 'juju-local' but i see the other package is available for install18:50
lazyPowerthe container: kvm - should make it use kvm, and that package should get you all the prerequisits.18:50
pmatulislazyPower: installed it but i see it only contains /usr/share/doc*18:52
suchvenuhi19:36
suchvenuI see the following error in the isntall hook of my charm19:37
suchvenuunit-db2-0[933]: 2015-07-10 19:32:06 INFO unit.db2/0.install logger.go:40 Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main binutils amd64 2.24-5ubuntu13 unit-db2-0[933]: 2015-07-10 19:32:06 INFO unit.db2/0.install logger.go:40   Could not resolve 'archive.ubuntu.com'19:37
suchvenuI am trying to do some sudo apt-get isntall commands19:37
suchvenuI am trying using juju version 1.24.2 where I am getting the above issue19:51
suchvenuI have another environment in which juju version 1.23.2 is running and I dont see this error there with the same code base19:55
tvansteenburghsuchvenu: seems like a dns issue20:09
tvansteenburghi would `juju ssh db2/0` and try to apt-get install something20:10
suchvenugetting same error from the juju machine also20:17
suchvenuThe following NEW packages will be installed:   binutils 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 2,076 kB of archives. After this operation, 11.7 MB of additional disk space will be used. Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main binutils amd64 2.24-5ubuntu13   Could not resolve 'archive.ubuntu.com' E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/binutils/binutils_2.2420:17
pmatulislazyPower: my problem was that i neglected to destroy and bootstrap after having changed my yaml file23:28
lazyPowerpmatulis: that'll do it! thanks for circling back23:31
lazyPoweri had not thought of that23:31

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