[00:04] After adding storage to a running k8s charm, is it necessary to perform some manual action, (e.g. cycle the units)? I have a set of "storages" in pending after having added storage, but can't see any corresponding activity and I'm unsure how to make it go. [00:11] evhan: how did you add the storage? juju attach-storage isn't supported for k8s units as all units need to be homogeneous. did you use kubectl patch on a specific pod? [00:13] No, introduced to metadata.yaml and upgrad-charm'ed. [00:13] Sorry, should have mentioned that. [00:14] I suppose with the CLI tools it would normally be `juju add-storage` followed by `attach-storage`, in which case I would have gotten the message that it was unsupported. [00:14] in metadata it declares it can support storage but you need a --storage argument to allocate storage against the declaration. did you use --storage when upgrading? [00:18] Yeah, sorry, the command was: `juju upgrade-charm --path . fluent-bit-k8s --storage varlog=20M` [00:26] evhan: it may well be that's not something we've proprtly tested and there's a bug to fix, we'll have to look at it [00:27] OK, I'll try to collect some more info. Playing around a bit more I think I may have taken the side door and avoided all the "you can't do that" signs. [04:38] wallyworld, babbageclunk: what is the best method to work out the current controller hostname/ip:port in workers ? [04:41] tlm: hmm, not totally sure - maybe from the agent worker? Although that's machine level - would need to check. wallyworld? [04:41] the api port is a controller config setting [04:43] there's typically no hostname, only ip. there's a controller nodes collection, and also machines. you get the machine if from the controller tag [04:44] yeah ip is fine [04:44] what do we report when the controller is inside k8s [04:44] api server really wants a service in that case but I am tossing up if I should try and do that kung fu [04:47] tlm: if we know the controller is in the same cluster, maybe we use the service directly, if the controller is external, we can create a service and publish endpoints [04:47] we record the service ip address in state [04:48] for the controller, there's a cloudService collection [04:48] hpidcock: yep thats fine but still need to get the ip [04:48] i can't recall off hand what the doc id is for the controller [04:48] we use cloudService for the service address for all deployed apps [04:48] does the data already exist in the machine manifolds ? [04:49] just need ip and a bool of current controller if it's inside of k8s [04:49] you need to query state in the manifold start func where the statepool / state object is passed in [04:49] use have the controller tag, so can get the key of the controllerService doc to query [04:49] ok will take a look. Going to hard code an ip in and get this finished then swing back to it [04:50] righto [04:50] kelvinliu might remember off the top of his head what the cloudService doc id for the controller is [04:50] to allow the service ip to get retrieved [04:53] wallyworld: cloudService containers the svc info but not container info [04:53] that's what we want [04:53] the service ip address [04:53] are we talking kube service ? [04:53] of the controller [04:54] we talk via the service ip always [04:54] if so do we make a service even if the controller is not in k8's ? [04:54] right, cloudService .Addresses() [04:54] what's the doc key though?I can't recall offhand [04:56] wallyworld: when your free next https://github.com/juju/juju/pull/11214 no rush, I'm working on the next PR and will assume this is "done done" [04:56] https://github.com/juju/juju/blob/develop/state/state.go#L1135 [04:56] it's controller UUID for k8s controller [04:57] ah yeah, thanks [04:58] thats k8's specific [04:58] doesn't apply when we are not running the controller in k8's [04:59] right, but non k8s deployments do not write anything to the cloudService collection [04:59] the cloudContainer collection is also k8s specific [05:00] no what hpidcock and I are thinking is, for every controller in juju we make a service in each k8's cluster we have. This service either points to the internal controller or an external one. We can then just piggy back off of this known point for things like admission/sidecars etc etc [05:00] and this is a k8s only worker right? [05:01] yep [05:02] depending on where the controller is running, i think we'll need to get it's ip address from either the machine collection or the cloudService collection [05:04] we'll only need ip for outside of k8s. Maybe we HO this at some stage to make sure it's a good idea and not cup holders [05:08] i'm free whenever [05:08] ok joining :) [05:09] hpidcock: want to join ? [05:09] sure why not [05:56] https://github.com/juju/juju/pull/11226 merge 2.7 to develop, anyone free to take a look? thanks! [06:05] kelvinliu: thanks for getting that all merged. only one issue [06:06] thx, just found the problem, fixed [06:54] wallyworld: only reason to move up the merge of that PR is an intermittent test failure fix for ActionSuite.TestFindActionTagsByLegacyId [06:55] ok, i'll look [06:56] merge on https://github.com/juju/juju/pull/11224 failed due to it [07:46] hpidcock: didn't quite get done reviewing, have to EOD, will finish tomorrow [08:56] manadart: I opened a initial move-to-space apiserver patch. I do have some unclear things which I mentioned in the patch as well as in the network cli spec. Could you take a look please? https://github.com/juju/juju/pull/11213 [08:57] manadart achilleasa: this is the command part patch of the remove-command. I have linked the spec as well https://github.com/juju/juju/pull/11183 If someone wants to take a look at the spec instead/with [08:59] nammn_de: I'll take a look when I can. [09:10] jam: did you have a chance to take a look at my replies in 11204? Wdyt about renaming the call to "CommitHookChanges"? [09:11] achilleasa: offhand that sounds pretty good. I'm in a bit of a crunch right now, but I'll try to get to it this afternoon [13:01] jam do you have the rights to merge this? https://github.com/go-goose/goose/pull/77 [13:01] or rick_h [13:06] stickupkid: I think I do [13:07] stickupkid: merged [13:07] hml, tyvm [13:08] yay unblocked myself [13:08] win win [14:28] nammn_de: I think the sections should be "Setting units to track a branch", "Changing application config on a branch" etc, rather than "Units are made to track the branch", "Changes are made to the branched application" and so on. [14:29] manadart: rgr [14:35] manadart: Need some input on `6. Aborting a branch`. After trying out it seems that we can only abort a branch when no units are following it. The error message indicates that resetting the settings is working as well. Did not work for me [14:47] nammn_de: Not sure what you mean. If units tracking the branch are set to track "master", then we should be able to abort it. [14:48] If the branch has no config changes, then committing the branch is an effective abort. [14:50] manadart: ahh making them track master. Somehow this slipped me :D. Will add that to the post. [14:50] But the abort message returns "ERROR branch is in progress. Either reset values on tracking units or remove them to abort." Which indicate if I reset the values I can run `juju abort ` again, which is not the case [14:52] nammn_de: I would have to read the code. [14:52] manadart: ahh I am just meaning this independant of code. Just from an user perspective [14:53] was more of a concern [14:53] quick backport review pls: https://github.com/juju/juju/pull/11228 [14:55] another quick backport review pls: https://github.com/juju/juju/pull/11229 [14:56] a third is coming once 11229 lands [14:56] just wanted to point out, that aborting `juju abort` a branch seems to not work that easily. Tried different possibilites. https://paste.ubuntu.com/p/Rsf5XDPrWZ/ [14:58] hml: Approved the first one. [14:59] nammn_de: I remember now. Since we are going to be doing charm upgrade rollout using branches, you have to see them through. [15:00] nammn_de: Have you read the spec? I'll dig it up. [15:01] manadart: No only the doc. If you have the spec I can read it up. [15:01] My point is mostly that the returning error message is confusing . As it indicates that resetting helps [15:01] manadart: ty [15:08] manadart, you got 5-10 minutes to pair this openstack port changes, want to make sure I'm getting it right? [15:11] stickupkid: Yep. [15:20] hml: you worked on this before afaict. Does this patch make sense to you? https://github.com/juju/juju/pull/11230 [15:22] nammn_de: looking [15:27] nammn_de: approved [15:29] hml: thanks! [15:32] achilleasa: hml was just going to ping that anything we can backport into 2.7.3 that we want folks to have charm-wise would be great. I saw hml had a couple of them going so <3 [16:17] stickupkid: so... remember that interesting test with leadership? [16:18] achilleasa, yeah [16:18] better be good [16:18] merge conflicts fixed for pr, rebase review please: https://github.com/juju/juju/pull/11229 [16:18] looking for a book type story out of this achilleasa [16:18] looks like LeadershipClaimer hits the one in state/leadership.go but LeadershipChecker doesn't :D [16:18] HA [16:18] all I need to do is find out why this is set up like that... [16:19] that'll be why it couldn't find it then [16:19] I verified that the checks use the same model UUID [16:19] BECAUSE IT'S CRAP [16:19] haha [16:19] hello, I was taking a look to the function AllSpaces() which should return the spaces in a model, but I'm not seeing any filtering by model uuid, am I missing some context set somewhere? - https://github.com/juju/juju/blob/2.7/state/spaces.go#L288 [16:19] if achilleasRunsTests { leadershipChecker = makeRandomChecker() } [16:19] achilleasa, hahaha yeah [16:22] freyes: you would normally run that on a state instance obtained for a particular model; it will filter by uuid behind the scenes for you [16:23] achilleasa, ok, so I should go back on call stack to figure out where the state object is being built, right? [16:24] achilleasa, what happens if there is state instance defined? should be failing with error? [16:24] freyes: if you are debugging an API call you will normally find this call in the facade code (apiserver/facade/{agent, client}) [16:24] *there is no state [16:24] achilleasa, I'm looking into the upgrades steps [16:25] if you want more context, I'm troubleshooting this error: https://bugs.launchpad.net/juju/+bug/1863777 [16:25] Bug #1863777: getting machine upgrade ops: space with name: not found [16:29] freyes: hmmm... I guess this is the one you are looking for: https://github.com/juju/juju/blob/develop/upgrades/steps_27.go#L28-L33 [16:30] and https://github.com/juju/juju/blob/develop/upgrades/steps_27.go#L42-L48 (most probably) [16:32] right, it's where I started from, I should probably keep reading that code and probably study it with a debugger, it will probably be easier [16:33] achilleasa, appreciated, and congratulations on your book :-) [16:33] freyes: try searching in the machines collection. I think the error might be refering to the addresses array in the machine docs [16:33] freyes: thanks ;-) [16:34] achilleasa, ah, interesting what you just mentioned .... it was recently mentioned to me they manually added new nics to the controller machines, so probably the ip addresser registered them and it's expected to have that space [16:42] freyes: What has happened here is that the space name has been supplied with machine addresses by MAAS, but reload-spaces has not consumed MAAS' space topology into the collection. [16:43] manadart, but probably because maas is not aware that the controllers machines have nics in the maas-mgmt space since they were hotplugged [16:44] https://bugs.launchpad.net/juju/+bug/1863777/comments/1 [16:44] Bug #1863777: getting machine upgrade ops: space with name: not found [16:45] so this apparent inconsistent state is the one triggering the issue [16:45] freyes: I think MAAS and Juju are aware, given that addresses in the machines collection are decorated with the name. But without running juju reload-spaces on the (controller) model, it is not in Juju's spaces collection, so when we try to look up an ID for it, it is not found. [16:47] I see, I think I have what's needed to come up with a reproducer, I will post my progress in the bug [16:47] thanks, manadart [16:48] Sure thing freyes. [16:51] stickupkid: so the checker is from the apiserver package.... [16:52] achilleasa, is it the raft one? [16:54] stickupkid: I can't figure out where it gets initialized. So I took a shortcut by patching the suite state and creating a new uniter API.... looks like it gets the state ones now... [16:54] ha [16:55] yeah... you normally get back a "uniter state" instance from these calls which seems to be a shim but I can't really tell... [17:00] hml, done [17:00] stickupkid: ty! [17:01] stickupkid: turns out my 3 backports have overlap enough for them needing to be done in serial. :-( [22:27] question for the audience - which juju plugins do you use? (did you know that plugins were a thing?) [23:54] As of yesterday. :)