/srv/irclogs.ubuntu.com/2014/11/25/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
hatchHas anyone asked for a config field in which there are a select few options which users could choose from? Which could be represented in the GUI as a select/dropdown?01:50
rick_h_hatch: yea, enums basically01:52
rick_h_hatch: it's part of the discussion around using jsonschema to represent config options01:52
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
hatchok - atm I am just going to give them the possible options in the description but that just feels ripe for issues01:52
hatchtypos and whatnot01:52
rick_h_hatch: yea01:55
hatchit would be even better if those enum options could enable/disable subsequent config options :)01:55
hatchwhen running debug-hooks on a unit the tmux session that opens is in the home directory of the unit not the charm as shown in the docs - where can I find the actual hooks?02:33
hatch$CHARM_DIR is blank02:34
hatchahah I need to actually trigger the hook externally02:37
hatchlooks like we need to update these docs :)02:37
=== _thumper_ is now known as thumper
=== scuttlemonkey is now known as scuttle|afk
noodles775hatch: Yeah - it could be clearer that none of the juju env is available until you're in a hook context (ie. config-get and other juju binaries)04:04
=== erkules_ is now known as erkules
hatchyeah just a small wording change will help with that - I'll try and remember to submit a PR for that this week04:17
=== kadams54 is now known as kadams54-away
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== psivaa-holiday is now known as psivaa
gnuoyAm I missing something or is charmhelpers now broken on trusty since the py3 support mp?13:38
* gnuoy goes to investigate further13:41
marcoceppignuoy: there's a bug already14:14
marcoceppignuoy: https://bugs.launchpad.net/charm-helpers/+bug/139537814:14
gnuoymarcoceppi, ah, ok. thanks14:14
mupBug #1395378: latest python3 additions seem to break with trusty python-six <Charm Helpers:In Progress by stub> <https://launchpad.net/bugs/1395378>14:14
stubgnuoy: If you want, check out if lp:~stub/charmhelpers/py3-2 sorts things for you14:15
gnuoystub, thanks14:16
stubI can't get the venvs built in a precise VM :-(14:18
mhall119marcoceppi: does juju work against Canonistack? I was told it did, I can bootstrap on it but `juju status` never returns14:22
marcoceppimhall119: it does14:22
marcoceppilazyPower may have some insight on this14:23
marcoceppimhall119: you have do to like proxies and shuttle and stuff14:23
lazyPowermhall119: do you have your VPN setup?14:23
lazyPoweryou wont get anything back from juju status util you've activated your VPN or canonistack-sshuttle - i highly recommend the VPN route14:23
mhall119lazyPower: no, I don't14:25
stubgnuoy: did that work btw? I'd like to know what series you deployed too.14:32
gnuoystub, I haven't tried as yet tbh14:33
gnuoyjamespage, got a sec for https://code.launchpad.net/~gnuoy/charm-helpers/haproxy-singlenode-mode/+merge/242790 ?15:09
jamespagegnuoy, looks reasonable15:11
jamespageis this for the 'run haproxy always' stuff?15:11
gnuoyjamespage, it is15:12
stubtvansteenburgh: yes, apt-get as an import side effect is disgusting. There are some others hiding in charm-helpers too...15:17
jamespagegnuoy, +115:20
gnuoyjamespage, thanks15:35
jamespagegnuoy, https://code.launchpad.net/~james-page/charms/trusty/quantum-gateway/stable-vlan-flat-support15:36
jamespageI'd like to get that landed asap15:36
gnuoyjamespage, err, I thought  I already had. sorry about that15:37
jamespagegnuoy, you acked and I landed next15:37
jamespagethats for stable15:37
gnuoyjamespage, +115:37
jamespagegnuoy, thanks15:38
=== scuttle|afk is now known as scuttlemonkey
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
=== kadams54 is now known as kadams54-away
sayonhey there, i am wondering if i can upgrade from juju 0.7 to the newer juju-core, without having to re-bootstrap the whole environment again?16:42
marcoceppisayon: that's a great question16:45
marcoceppisayon: as you may be aware a lot has changed in the latest releases of juju, let me find out if there is a migration path16:47
sayonmarcoceppi: i know, right :)16:47
lazyPoweroh wow 0.7 to 1.20.x? woo thats a huge update.16:47
sayonlazyPower: yea, i tried to upgrade once juju-gui was introduced but i could not figure out how to do it without rebootstrapping16:48
marcoceppisayon: so we've since introduced a "juju upgrade-juju" command but I don't think that will work on an environment that's as old as 0.716:49
hazmatsayon, there's isn't anything supported from pyjuju/zookeeper to juju-core/mongodb16:49
sayonmarcoceppi: it won't i already tried, there is no upgrade-juju command :(16:50
sayonhazmat: i thought so16:50
hazmatsayon, capturing the topology from juju status > and capturing the data in env and then rebootstrapping and restoring by hand .. its a pretty manual process.. juju-core does support in place upgrades.16:51
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
sayoni am running  in alot of trouble since i upgraded my maas installation on ubuntu 12.0416:51
hazmatsayon, doh..16:52
hazmatsayon, was that recently?16:52
sayonhazmat: it has been some month i guess, everything worked just fine till i wanted to add another machine16:53
hazmatsayon, there was a security fix that got pushed for maas in the last few weeks that broke pyjuju .. pyjuju has been eol'd for a few years.16:53
sayonhazmat i guess thats what i am facing right now16:53
hazmatsayon, if you want to keep the env, i'd recommending apt-pinning maas to the older version16:53
hazmatthe security fix was around the object storage capabilities of maas, and is only relevant if maas was exposed directly to untrusted users which is not common.16:54
sayonhazmat, tried that already but i am running into problem since the database structure seems to have changed alot16:54
hazmatugh16:55
sayonwhen downgrading it fails to convert from the newer to the older database version16:55
* hazmat tries to dig up details 16:56
hazmatsayon, do you have the error when adding a new machine to the environment?17:00
hazmatie from log17:00
hazmatit looks like the change was specifically around how charm urls are handed to units17:00
hazmatsayon, also what version of maas is the newer one?17:01
sayonwell when i add a new machine it gets commisioned in maas and is the ready17:01
sayonbut "juju status" won't list the new machine and may not acuire it for charm installations17:01
sayonhazmat: its maas 1.2+bzr1373+dfsg-0ubuntu1~12.04.517:02
hazmatsayon, interesting.. thats a different issue.. the commit i was referencing hasn't landed in 1.2 series yet... do you know what the other version of maas was.. apt-cache policy maas should have it17:06
sayonhazmat: wow, seems like it was 0.1+bzr482+dfsg-0ubuntu117:07
hazmatsayon, hmmm.. so nutshell i'd recommend a bootstrapping that env again using the juju stable ppa on precise https://launchpad.net/~juju/+archive/ubuntu/stable?field.series_filter=precise17:11
hazmatjuju-core can  self-update itself..17:11
hazmati'm asking on #maas re best version/ppa for precise17:12
sayonhazmat: that means reinstallation of all machines used with juju charms, right?17:12
hazmatsayon, sadly yes17:13
hazmatthat version of maas was ancient, and pyjuju has been eol'd for a while17:14
sayonhazmat: ok, i think i will then do a complete reinstallation with the new LTS version of ubuntu17:15
sayonand not stick with precise for any longer17:15
sayonbut thanks alot for your help and support hazmat and marcoceppi!17:16
hazmatnp17:18
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
skayavoine: I'd like to be able to run collectstatic, any objection to the idea of having it happen during install and upgrade?19:03
skayavoine: also, there is the ansible branch you have, and I'm wondering if most all of hte python code in hooks.py is going away and it will turn in to a lightweight shim around ansible calls?19:04
avoineskay: The idea was to use a subordinate for that: http://bazaar.launchpad.net/~patrick-hetu/+junk/django-contrib-staticfiles/files19:05
avoineskay: also Simon proposed to use dj-static: https://code.launchpad.net/~bloodearnest/charms/precise/python-django/trunk/+merge/23543019:07
avoineskay: yes, migrating to Ansible is the long term plan19:07
skayfor that dj-static branch -- I would leave whether or not someone uses dj-static up to the project19:09
skaybut the dollectstatic command still needs to be called, and if it should be handled as a subordinate, maybe document it in the readme?19:09
skayI happen to be using dj-static right now, and I handle the dependencies in my project's requirements file19:10
skayso python-django installs it for me accordingly19:10
skayon another note, when find_django_admin_cmd fails to find the admin, would you want sys.exit(1) there?19:11
skayI'm not clear on when things should fail silently or not, but that one seems like maybe it shouldn't fail silently19:12
avoineskay: can you give me the line number?19:14
avoineskay: Simon's patch would be better since it is not recommended to use django.contrib.staticfiles in production19:15
skayavoine: http://bazaar.launchpad.net/~patrick-hetu/charms/precise/python-django/pure-python/view/head:/hooks/hooks.py#L20619:18
=== rcj is now known as Guest93149
avoineI think I did that to catch the cases where django is not installed19:22
avoineskay: do you have a case where this should not append?19:22
skayavoine: I'll try to dig up what was happening to me. somehow the method was returning None and then the charm was attemping to call None syncdb etc.19:23
avoineouch19:24
skayavoine: I'm not sure how much you want to dig in to it. I was working on a branch of this to allow for pip extra args and was doing --no-index --file-files and had hte wrong version of something, if memory serves19:24
skayavoine: so it didn't install django properly? I thought perhaps that should put the unit in to an error state earlier than it did19:24
skayit ended up looking like an error with the pgsql relation rather than earlier19:24
skayso, the method allows for the django-admin command not to be found, and doesn't fail. perhaps it should19:25
avoineskay: no because you could have installed django from a debian package so I'm not checking if it exist earlier19:25
skayavoine: oh that makes sense.19:26
skayI figured there was a reason19:26
avoineskay: yeah the pgsql will also fail if django is not installed19:26
avoine*relation19:26
=== roadmr is now known as roadmr_afk
=== rcj is now known as Guest31019
=== roadmr_afk is now known as roadmr
=== scuttlemonkey is now known as scuttle|afk
=== fuzzy_ is now known as Fuzai
=== Guest31019 is now known as rcj
=== rcj is now known as Guest68049

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