/srv/irclogs.ubuntu.com/2020/08/11/#juju.txt

thumperhttps://github.com/juju/juju/pull/11893 adds ability to introspect the leases on the controllers03:57
thumperwallyworld: ^^03:57
thumperor anyone really03:57
wallyworldthumper: sorry, ffs, missed ping, done05:31
jammorning all05:57
hpidcock@jam morning05:57
jamI like how mattermost characters leak into IRC :)05:58
hpidcockjam: haha yeah. I have blended everything into one client.06:19
jamI'm guilty of it as well. I start typing names in mattermost and wonder why they aren't completing06:20
manadart_stickupkid: This is the fix for AWS constraints/bindings: https://github.com/juju/juju/pull/1188609:39
stickupkidmanadart_, nice, will jump on that soon09:40
achilleasamanadart_: stickupkid quick poll. I am moving the IngressRule type to core/network and tweaking the code (e.g. use set.Strings for src CIDRS). When you get (or print) the src CIDRs do you think that I should list the _effective_ source CIDRs or the actual CIDRs?10:19
stickupkidactual10:20
manadart_achilleasa: Actual.10:20
achilleasain other words: if I have 192.168.0.0/24 and then add 192.168.0.0/16 does this yield the latter (as it is a superset)10:20
achilleasaor both?10:20
stickupkidachilleasa, for print, get, it should return actual10:21
stickupkidachilleasa, also you could make a new type that allow you to get both10:21
stickupkidachilleasa, also I wonder if we should specialise the CIDR, so the type isn't a string in core/network?10:22
achilleasacool. I am too lazy to implement it for printing only. There is some code that merges CIDRs to reduce the number of ingress rules so I might add this functionality via a method once I get there10:22
stickupkidachilleasa, manadart_ I worry about the overuse of strings and set.Strings10:23
achilleasaIdeally that should be a *net.IPNet but ... mongo10:23
achilleasasubnets, spaces... all those bits work with string CIDRs10:24
stickupkidachilleasa, fair, although `type CIDR *net.IPNet` and hang everything off CIDR10:24
stickupkidachilleasa, you can then implement SetBSON (*sick* inside!)10:25
achilleasayeah... but then you have to parse CIDRs early on (could be problematic for tests)10:25
stickupkidachilleasa, sure, sure, agree with you10:26
achilleasaha! can't override SetBSON for type aliases I think10:26
achilleasa(or other methods)10:26
stickupkidnot sure, maybe10:26
achilleasaor is that only for existing methods?10:26
stickupkidexisting ones I'm sure of it10:26
achilleasayeah... not sure if the restriction extends to other methods10:27
achilleasaI will check later :D10:27
stickupkidmanadart_, tick10:32
manadart_stickupkid: Cheers.10:32
manadart_stickupkid: Quick HO?10:46
stickupkidsure10:46
b1jujHi, I'm having problems setting up gnocchi and ceilometer with juju. Gnocchi has been in waiting state for >12hrs with messages "'shared-db' incomplete" and "'db-router' incomplete, Waiting for proxied DB creation from cluster". Ceilometer is in blocked state with message "Incomplete relations: database, Run the ceilometer-upgrade action on the leader to initialize ceilometer and gnocchi". I have tried running the10:59
b1jujceilometer-upgrade action but it fails with message "The identity-credentials and or metric-service relations are not complete.10:59
b1juj  ceilometer-upgrade cannot be run until they are ready."10:59
stickupkidachilleasa, HO?11:03
achilleasastickupkid: omw11:03
achilleasamanadart_: https://github.com/juju/juju/pull/1189613:41
stickupkidhml, also you left this as a comment and not approved :) https://github.com/juju/juju/pull/1188815:30
hmlstickupkid: i did… need to qa15:30
hmli’ll merge if qa is good15:31
stickupkidhml, ta15:37
hmlachilleasa:  the hook context read the charm state data, no the unit state data.  is that the context you were refering too?15:52
achilleasahml: the uniter has its own state plus a state for each relation (there is a thing in the relation package that reads that from disk). I thought the latter was read at context creation time but I could very possibly be wrong and it could get cached at start time15:54
hmlachilleasa:  I couldn’t find it15:54
achilleasait was that weird map struct15:54
achilleasaone sec15:54
achilleasahml: https://github.com/juju/juju/blob/2.7/worker/uniter/relation/relationer.go#L9215:55
achilleasait's the one from 2.7 which gets replaced in 2.8 with the stuff we added15:55
achilleasaI think L96 reads from disk15:56
achilleasaalso the CommitHook method just after that writes to disk15:56
hmlachilleasa:  i was thinking context, as in running hook contexts15:56
hmlyes, data is read at preparehook15:57
achilleasahml: ah... I meant the hook contest (runner/context/context.go)15:57
achilleasaso if we upgrade (+migrate), then a hook fires before the agent restarts... boom?15:57
hmlachilleasa:  okay, so same context then.  i guess i was thinking literally, not in prehook16:01
hmlachilleasa:  that could be it16:01
hmlachilleasa:  moving the upgrade step to the unit will take care of that16:01
hmlachilleasa:  PrepareHook  calls State() which makes a copy of what’s there already then Validate() is called.  Data is read when NewRelations is called.  And when NextHook is called, part of update().  so just different location.16:16

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