/srv/irclogs.ubuntu.com/2019/10/04/#juju.txt

thumpersimple review for someone... https://github.com/juju/juju/pull/1068104:08
SouHey all, I am pretty new to the entire juju thing. We used juju charms to setup openstack04:18
SouIs there anyway to regenrate a configuration file for a unit using juju?04:19
Souany help would be great04:20
thumperSou: I'm not sure I understand what you are asking for04:21
thumperwhat sort of configuration file are you expecting or wanting?04:22
* thumper needs to head off for the week04:24
thumperSou: you might want to consider asking the question on our discourse (link in topic)04:25
thumperhttps://discourse.jujucharms.com04:25
SouOhh. Lemme elaborate what I meant. I had setup a unit vault (number of containers : 3). For vault HA to work, I had to add etcd (count 3 ) and easyrsa (count 1). I had to reOS the host machine which was running easyRSA container. But that broke the etcd cluster. It was throwing bad tls error. So I removed all etcd units, and readded them. But the04:26
Souvault configuration file (which uses etcd) has old details about  etcd. So I was finding out if there is a way to regenerate the configuration files of a container via juju. Another option is to edit it manually. But then I am not sure if juju will create any issues04:26
thumperSou: if vault didn't update the config for the new etcd it smells like a bug in the vault charm04:28
Souohh04:28
thumperTo get the right eyes on it, either file a bug in launchpad against the vault charm, or ask in discourse and I can tag the openstack charmers04:29
Souokay thanks04:29
thumperjuju doesn't hold the config of apps04:29
thumperthat is the responsibility of the charms themselves04:29
thumperhave a good weekend folks04:30
* thumper out04:30
SouOhh okay. Please correct me if I am understanding it wrong. Juju charms are used to setup the application in containers. And post that does the charms still keep an eye on the changes being made?04:31
Soualso does it we shouldn't manage anything inside the containers created by juju?04:33
babbageclunkSou: yes, the charm also manages the running application and lets you configure it using juju commands04:43
babbageclunkSou: In general, you shouldn't be changing things in the container  directly because then the charm might be out of sync with what you've changed.04:44
SouOkay. Thanks a lot babbageclunk. Wrt openstack nova-compute charm, there are many nova related configuration options which I can't see when I do a "juju config <app_name>"04:48
SouIs there anyway to add such configuration options to the containers which run the unit04:48
babbageclunkSou: it might be that some of those are managed by the charm in response to other units being related to the application.04:50
babbageclunkWhat kinds of options do you mean? (I'm not an openstack expert though)04:51
Sou$ sudo juju config nova-compute  | grep instance_name_template~$04:53
SouMy apologies for the typo04:53
Souone variable name is instance_name_template04:53
SouI can't modify that variable via charms04:55
Souin a big setup if I want to make sure such a variable is managed, I might have to integrate the containers (or units) created  by juju with ansible or puppet04:56
SouBut then it would make the setup complex04:56
SouIs that a suggested way of doing things?04:57
babbageclunkSou: I don't think I understand what you're trying to do - you want to have Juju-created machines be managed with ansible or puppet? I'm not sure how that would work.04:59
SouManaging juju created machines with ansible or puppet came to my thought when I was not able to manage a config parameter of an application via juju.05:02
babbageclunkSou: I think people in #openstack-charmers would be able to help you with your instance_name_template question05:02
SouThanks @babbageclunk I will post the same in that conf05:02
babbageclunkSou: I think I see what you mean - use ansible to make post-deployment changes to a unit to tweak that setting? I think it would be better to change the charm to expose the config you need.05:06
SouYeah, I think making changes in charm will make things easier05:08
nammn_destickupkid: currently looking into the bug when a user calls "juju /foo" our code tries to create a fork and fails. You worked on the "similiar" cmds last time. I could either return a proper error "file does not exist" or we could run your "similiar" code again. What would you prefer?09:02
stickupkiddon't remember what I did, any pointers?09:09
nammn_dehttps://github.com/juju/juju/blob/develop/cmd/juju/commands/plugin.go#L7709:13
nammn_destickupkid:09:13
nammn_destickupkid: ^ the code where if a command is not found you try to find the most similiar command and return it something like "foo does not exist, did you mean gui"09:14
stickupkidnammn_de, yeah, that imo, but best to ask rick_h09:15
nammn_deokey makes sense, rick_h: ^ above, but I will update launchpad to have it written down09:16
achilleasamanadart: I have finished reviewing your bridge policy PR and will start the QA steps next09:32
manadartachilleasa: Great; ta.09:32
stickupkidachilleasa, thumper pointed out an issue with the introspection stuff https://github.com/juju/juju/pull/1068209:37
achilleasastickupkid: I have a question (see comment)09:42
stickupkidachilleasa, responded09:45
=== exsdev0 is now known as exsdev
achilleasastickupkid: are you sure that the command is interpreted as 'xargs "CMD" > out' instead of 'xargs "CMD > out"'?09:51
stickupkidachilleasa, tested it locally :D09:51
achilleasabash or zsh?09:52
stickupkidjuju bootstrap lxd test09:52
stickupkidjuju enable-ha09:52
stickupkidwell "sh"09:52
stickupkidlet me tripple check09:52
achilleasaNo you are actually right, you have to explicitly quote the commands to get the redirect bit for each command09:54
achilleasawait. let me doublecheck this :D09:54
achilleasayes, it works as you expect. Sorry for the confusion09:56
stickupkidachilleasa, yeah don't worry, I also had to check09:59
stickupkidnammn_de, updated per your comments https://github.com/juju/juju/pull/1067510:03
nammn_destickupkid: ensure will create a model in the bootstrapped controller as well, if it does not exist, right?10:07
stickupkidsort of, it'll name the default model something else10:07
stickupkidi'll add that10:08
nammn_destickupkid: 🦸‍♂️10:08
stickupkidnammn_de, done10:12
nammn_destickupkid: approved10:13
stickupkidachilleasa, regarding the series stuff, you can't use head as that's for 2.7, I believe you'll need to make a 2.6 branch and add the new macOS version there10:14
stickupkidunless we back port what we did to 2.7 to 2.6, which i don't think is wise10:15
achilleasastickupkid: I think 2.6.10 will be the last release and the sha is already out. We can fix it for 2.7 though...10:15
stickupkidachilleasa, sure sure10:15
achilleasathey did merge the PR btw10:16
stickupkidah, that's fine then10:16
achilleasayeah, I saw the response this morn. Yest I was thinking that they would say we cannot accept this as the tests don't pass :D10:16
stickupkidprobably don't care for betas10:17
rick_hnammn_de:  what's the link to the bug number again? I want to see the use case in the bug that cause dfolks to file it11:24
nammn_derick_h: https://bugs.launchpad.net/juju/+bug/174704011:25
mupBug #1747040: Invoking juju with no verb but a path results in confusing error messages <bitesize> <cli> <ui> <juju:Triaged by nammn> <https://launchpad.net/bugs/1747040>11:25
nammn_derick_h: added the PR for more description. Can always update the PR. Just open for discussion11:25
rick_hnammn_de:  that works for me, ty11:26
nammn_deIf thats the case, would love to get a review from someone. Pretty small one, fast to test rick_h stickupkid https://github.com/juju/juju/pull/1068311:30
manadartI think we may have a problem here.14:29
manadartIf we need to run an upgrade to a version that causes a break in the allwatcher/modelcache code without upgrade steps having been run, we get into a deadlock.14:30
manadartmodelcache error-cycles getting a new watcher, API can't come up, machine agent can't connect to API. Upgrade does not run.14:31
gQuigsdoes anyone have any tricks for referencing the machine_name in a juju_run command?18:35
* gQuigs wants to do juju run --all "command --batch "machine_name"18:36
pmatulisgQuigs, i guess you would need to translate machine name to machine ID prior to 'juju run'18:44
gQuigspmatulis: hoping to make it more like a one liner, so we don't have to give a script to customers..   command in question is sosreport :)18:46
gQuigsI guess I could just hope the machine name has the id consistantly in it..18:48
pmatulisgQuigs, and i guess a "support charm" on all machines is too heavy right?18:51
pmatulisbut such a thing could be useful in other imaginative ways i suppose18:51
fallenourhey when watching juju status, what color settings shoudl I use in order to ensure the colors stay the same with watch as they do with juju status18:55
fallenourit all comes back grey when I do: watch -c color=auto juju status18:55
gQuigspmatulis: yea19:00
pmatulisgQuigs, then you could have various actions ('sos-all', 'sos-maas', 'misc-support')19:14
gQuigssos already determines what plugins to run automatically :)19:14
pmatulisbah :)19:14
gQuigsI think I'll just use run and ask them to provide a list of names and machine ids19:14
Fallenourhey guys, I keep getting this message from juju: failed to start machine 1/lxd/3 (acquiring LXD image: no matching image found), retrying in 10s (10 more attempts)19:47
FallenourIm using maas, and I have all of the 18.04LTS images downloaded. Does anyoen have any idea what causes this issue? One machine already built out 3 lxd containers, so I dont know why its giving this error.19:47
FallenourIm currently using juju version 2.6.919:49
FallenourI foudn the issue. its a dns error with juju. where can I got or what can I do to fix...I think I fixed it.20:02
FallenourI updated the mAAS DNS addresses, and it ... nope, not fixed. How do I update juju dns info for lxd containers?20:03
FallenourWARNING juju.provisioner incomplete DNS config found, discovering host's DNS config20:17
Fallenour  is the error I keep seeing in juju debug-log. I keep finding a lot of complaints about this, but no solution. Does anyone have an idea about a work around?20:17
Fallenour  is the error I keep seeing in juju debug-log. I keep finding a lot of complaints about this, but no solution. Does anyone have an idea about a work around?20:57
FallenourDoes conjure-up allow me to manage the systems built via juju, or do I need to manage those somewhere else?21:31
davecoreFallenour: Once you deployed using conjure-up, the rest of the management is done with juju21:50

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