/srv/irclogs.ubuntu.com/2016/10/21/#juju.txt

=== junaidali is now known as details
=== details is now known as help
=== help is now known as Guest51665
devops /query junaidali01:45
=== test is now known as Guest70724
stokachuguessing there isa  problem with the charmstore?02:19
stokachuhttp://paste.ubuntu.com/23357102/02:19
=== scuttlemonkey is now known as scuttle|afk
bdxhttps://github.com/juju/charmstore/issues/68604:23
kjackal_Good morning Juju world06:21
cargillwhen following the getting started document from docs, are you supposed to end up with ~/.juju/environments.yaml configured? 'charm test' is confused that it doesn't exist09:16
cargillyet juju (2.0) is fine with everything09:17
magicaltroutcargill: where did you read that?09:18
magicaltroutthats 1.2.x stuff09:19
magicaltrouta) the location these days is ~/.local/share/juju09:19
magicaltroutb) environments.yaml doesn't exist any more09:19
cargill$ charm test09:20
cargilljuju-test INFO    : Starting test run on None using Juju 2.0.009:20
cargilljuju-test CRITICAL: /home/oku/.juju/environments.yaml file does not exist09:20
cargillthis is what I get09:20
* magicaltrout defers to kjackal_ 09:21
magicaltroutit may not have been revamped for 2.x I dunno09:21
kjackal_hello!09:21
cargillI'll check for updates just in case09:21
cargillkjackal_: hi!09:21
kjackal_hi cargill, magicaltrout09:22
kjackal_hm... charm test I thought this is not anailable on the recent juju+charm tools09:23
magicaltrouthammer and nailable?09:23
kjackal_cargill: where did you read about "charm test"09:24
cargilloh, it's meant to be bundletester now?09:25
cargilljust tried it, thinking charm build, charm proof, charm test would be the sequence :)09:25
kjackal_https://jujucharms.com/docs/2.0/tools-charm-tools look at this it is here!!09:25
magicaltroutseems to suggest charm test is indeed valid terminology09:26
cargillso do I use charm test or bundletester? and is bundletester in the repos/ppa?09:30
kjackal_cargill: I would suggest you use bundletester, at least this is what i am using here09:32
kjackal_bundle tester should be installable by pip09:32
kjackal_sudo pip install bundletester09:32
cargillhmm, pip means you don't get updates unless you remember to ask for them...09:33
cargill(the joys of system package managers :))09:33
neiljerramMorning all!10:16
neiljerramIn my tests, I sometimes see 'juju ssh ...' failing with "Permission denied (publickey)." for just one or two units in the deployment; it's fine for all the other machines.10:17
neiljerramThere are google hits for this ("juju ssh permission denied (publickey)"), but they're quite old.10:18
neiljerramSo it looks like Juju is failing to copy my public key onto those machines...10:19
neiljerramDoes anyone else see this, and is there a workaround?10:20
junaidalineiljerram, are you able to manually ssh to those nodes?10:23
junaidalissh ubuntu@<node-ip>10:23
junaidalifrom maas10:23
neiljerramjunaidali, I'm not sure, because this happens in the middle of an automated test.  I can try modifying the script to add that in, if you think it will help.10:24
neiljerramjunaidali, I'm trying that now, let's see...10:45
neiljerramjunaidali, Unfortunately I am still seeing 'Permission denied (publickey)' with one of the units, even when I do 'ssh ubuntu@<ip>' first.  I get 'Permission denied (publickey)' for 'ssh ubuntu@<ip> ls', and then also for 'juju ssh <unit> ls'.11:02
SDB_Stefanohi Hjackal12:14
iceyis it possible for a juju action to take a large JSON blob as a value?12:58
magicaltrouticey: its a pain in the balls13:00
magicaltroutyou can, but you need to escape it all13:00
iceywtf -_-13:01
iceyescape it even though it's wrapped in single quotes ?13:02
magicaltroutyeah, I found for a charm where the save format is json, I couldn't get it to ingest the stuff unless it was escaped13:02
magicaltroutthis was a while ago, but I doubt its changed13:02
iceymagicaltrout: yeah, giving errors like: ERROR json: unsupported type: map[interface {}]interface {}13:02
magicaltroutyeah it tries to parse it.....13:02
* icey cries13:04
SDB_StefanoHi, I'm creating a charm for our product ScaleDB UDE, I have some questions, could I propose them ?13:04
magicaltroutgo wild SDB_Stefano13:05
SDB_Stefanook, I have to create a plain/easy charm that the only thing we need is to execute a install/hook to install our software, so :13:06
SDB_StefanoI started using https://github.com/juju-solutions/layer-basic as template13:06
SDB_Stefanoabout the  layer.yaml  :13:07
SDB_Stefanoshould it contains ' includes: ['layer:basic']'  ? or it's not mandatory, I don't need it13:07
iceySDB_Stefano: it should13:08
magicaltroutwhen you said "use layer basic as a template" you mean you git cloned it?13:08
magicaltroutor did `charm build` ?13:08
SDB_Stefanoyes git clone13:08
magicaltroutwrong answer13:08
SDB_StefanoI :13:08
marcoceppiSDB_Stefano: the better way to start, is to run `charm create`13:08
magicaltroutsorry yeah create13:08
marcoceppiSDB_Stefano: charms incur a compilation process, which means things like layer basic will be included in the final, compiled product13:09
magicaltrouthttps://jujucharms.com/docs/stable/authors-charm-writing <- SDB_Stefano13:09
SDB_Stefanothe current charm is working, I think that I have only to refine, it's need that I restart using ' charm create'13:12
marcoceppiSDB_Stefano: I'd behappy to help shape your charm into a layer if it's available somewhere13:13
SDB_Stefanook, great , I'm going to deploy the current version in github, just a moment13:14
magicaltroutmarcoceppi is like a charm rewriting ninja13:14
kjackal_Hello SDB_Stefano, what's up?13:14
SDB_StefanoHi kjackal, I have some questione about the charm13:15
SDB_Stefanocould we have a short skype call, maybe it could be easier ?13:16
kjackal_Sure13:16
junaidalineiljerram, looks like your node is not up13:16
cargillhmm, great, using bundletester complains about python linting issues in the pgsql layer and that makes it fail13:17
cargillnot that I have control over that layer in the first place...13:18
neiljerramjunaidali, I'm sure that the node was up; juju status had given a successful report for it.13:18
neiljerramjunaidali, you can see this in the transcript of the bug that I just reported, at https://bugs.launchpad.net/juju-core/+bug/163562213:20
mupBug #1635622: 'juju ssh <unit> ...' fails with Permission denied (publickey), for only one or two machines in a deployment <juju-core:New> <https://launchpad.net/bugs/1635622>13:20
kjackal_cargill: if you run bundletester with -F it will run all the tests and not stop on the first error13:33
cargillhow is that handled when I submit the charm for review?13:39
kjackal_cargill: we usualy ping the author of the other layer to fix the problems, but that might block you as well since we might not be able to verify the correctness of your charm either.13:42
cargillif it's just python linting issues?13:43
kjackal_cargill: linting errors will most likely not block you13:43
BlackDexIf i want to set config-flags for nova-compute i can't set nfs_mount_options=nfsvers=314:05
BlackDexbecause there are 2 = signs14:05
marcoceppiBlackDex: quote the value14:12
marcoceppiBlackDex: furthermore, I don't see nfs_mount_options as config on the charm https://jujucharms.com/nova-compute/14:13
BlackDexmarcoceppi: tried that not working14:17
marcoceppiBlackDex: lwhat's the error you're getting, exactly?14:17
BlackDexits juju set nova-compute config-flags='nfs_mount_options="nfsvers=3"'14:17
BlackDexthat is what needs to be done14:18
BlackDexthat the config-flag value is not correct14:18
marcoceppiBlackDex: taking a look14:35
marcoceppiBlackDex: you may want to ask in #openstack-charms this might be a bug with how commands are being parsed14:36
cargillhow do I propose a charm to the store again?15:01
BlackDexmarcoceppi: thx i will go there :)15:02
marcoceppicargill: http://review.jujucharms.com/15:02
cargillmarcoceppi: thanks15:49
=== freyes__ is now known as freyes
cory_fumbruzek: Your wish is my command: https://github.com/juju-solutions/charms.reactive/pull/8616:25
cory_fu(And thank you for keeping me honest)16:25
mbruzekSorry to be so pedantic16:25
mbruzekcory_fu: merged16:27
mbruzekCynerva: ping16:35
Cynervambruzek: pong16:35
mbruzekCynerva: or ryebot: I am getting this error with a defined action ERROR invalid params schema for action schema restore-snapshot: bool is not a valid type16:35
mbruzektype: bool16:35
Cynervambruzek: i believe the correct type is boolean16:36
ryebotmbruzek: hmm I think the type needs to be 'boolean'16:36
mbruzekI knew you guys would know.16:36
mbruzekThank you16:36
Cynervambruzek: cool, glad to help!16:37
mbruzekI should have tried that before asking but I gave up after I searched the documentation and found no boolean options16:37
Cynervambruzek: I've found it useful to refer to json-schema docs for action stuff. The primitive types (including boolean) are here for example: http://json-schema.org/latest/json-schema-core.html#anchor816:39
mbruzekThanks Cynerva16:40
=== ubuntu is now known as Guest33397
suchvenuHi17:38
suchvenuI am trying to deploy Openstack charm from the store : https://jujucharms.com/openstack-base/17:38
suchvenuI have a KVM and MAAS is configured in one guest from that box. Juju is installed and could deploy a sample charm as well.17:38
suchvenuHowever when i deploy Openstack charm from store I get "Failed deployment" as the status17:38
suchvenuThe MAAS log ahows as :17:38
suchvenuOct 20 15:38:32 maascontroller maas.node: [INFO] vm3: Status transition from DEPLOYING to FAILED_DEPLOYMENT Oct 20 15:38:32 maascontroller maas.node: [ERROR] vm3: Marking node failed: Node operation 'Deploying' timed out after 0:40:00. Oct 20 15:38:37 maascontroller maas.node: [INFO] vm4: Status transition from DEPLOYING to FAILED_DEPLOYMENT17:38
suchvenuAny idea on this error ? Will increasing the timeout fix the issue ?17:39
gaurangtHi, for the storage support in MAAS for juju version 1.25.. the documentation says -  This storage provider is static-only; it is currently only possible to deploy charms requiring block storage to a new machine in MAAS, and not to an existing machine.17:47
gaurangtWhat exactly new machines mean here?17:49
deanmanTrying to learn Juju 2 by setting up a local cloud (lxd). Controller gets created just fine and i can see it with `lxc list` but when i try to deploy a charm it just hangs. Any hints?17:57
rick_h_deanman: check out juju status --format=yaml and see if there's anything fishy17:58
rick_h_deanman: or juju debug-log17:58
deanmanok it seems its downloading a trusty image to deploy the charm by default where i would have expected that it would use a xenial image, same as with controller.18:00
deanmanthanks rick_h_18:00
rick_h_deanman: hmm, something in the config set trusty as the default?18:01
deanmanjust following getting started guide from stable docs18:01
rick_h_deanman: you on xenial?18:01
deanmanxenial 64 VM on MacOS host18:02
deanmanthe deployed charm was mysql18:02
rick_h_deanman: oic, ok so that's probably because mysql charm isn't xenial ready it looks like18:03
* rick_h_ notes it's less crazy then18:03
deanmanok rick_h_ fair enough, so in general having a xenial64 VM and then using local as a cloud controller to deploy consequent charms in LXD is OK for dev. workflow?18:04
rick_h_yep18:04
skayjust when I want to create a charm, github is down. charm-create fails due to trying to get templates from there18:08
skay:(18:08
skayis that mirrored anywhere else?18:09
deanmanrick_h_: is juju gui deployed with controller by default?18:10
kwmonroecory_fu: this world wide dns problem just got real!  "unit-namenode-0: 18:05:54 INFO unit.namenode/0.install Error: Could not connect to https://forgeapi.puppetlabs.com".  i didn't care before, but now i'm inclined to write a letter to congress.18:13
kwmonroe(and hope al gore sees it)18:13
rick_h_deanman: yes18:15
rick_h_deanman: just run 'juju gui'18:15
cory_fukwmonroe: lol18:17
cory_fuBut yeah, it's a pretty significant attack.  I think python.org is being affected as well18:18
kwmonroegood news is that the ddos people failed to remember never to release on a friday.  we can all just go home.  if they really wanted havoc, they would have waiting till monday.18:20
suchvenuCan anyone please tell me on how to get charm-tools 2.1.4 ? Mine is in 2.1.318:34
suchvenuI already did sudo apt update && sudo apt upgrade18:34
brad_nokiaanyone can help with charm storage? using a cinder volume and the charm hangs in a pending mode awaiting attachment19:05
mbruzeksuchvenu: you can sudo pip install charm-tools20:03
mbruzekto get the latest verison20:03
cory_fusuchvenu: Best I can tell, from https://github.com/juju/charm-tools/blob/master/setup.py#L11, a version newer than 2.1.2 doesn't exist20:23
cory_fupypi would disagree with me https://pypi.python.org/pypi/charm-tools20:25
lutostagquestion... so with reactive how many reactive functions can trigger in a file for a single hook?20:52
cory_fulutostag: As many as match20:52
cory_fuAs long as their preconditions match, they will be triggered.  There's no limit otherwise.20:52
lutostagcory_fu: ok, that's what I thought, if I'm in debug-hook I assume I can list the states, so I'll try that, must not have a state I should20:52
cory_fulutostag: Easy way to see the states from the CLI: charms.reactive -y get_states20:53
lutostagcory_fu: that was easy, thanks20:55
lutostagcharm publish -> charm release... that was recent I'm not crazy right?21:24
kwmonroeyeah lutostag, you're not crazy.  it was right around the beta->rc timeframe21:27
=== rcj is now known as Guest57444

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