/srv/irclogs.ubuntu.com/2020/01/28/#juju.txt

nammn_demanadart: I was trying to use your newly added deltaops for controllersettings (juju-ha-space ..) and realized those are in their own collection. With this, I changed the `deltaops` function. Does that make sense? https://github.com/nammn/juju/blob/48c527fba46e0c5057e1feda909ba635c957449c/state/settings.go#L536  Or did I overlook something and the09:55
nammn_de`settings` collection is still the right collection for this?09:55
manadartnammn_de: Sorry, I meant to reply to your question. You want something more like this: https://pastebin.canonical.com/p/H5mmbX6WKM/10:06
nammn_demanadart: ahhh makes sense. Thanksss10:06
stickupkidmanadart, looking at the integration test - I thought we fixed the issue with missing relation scope?10:35
stickupkidmanadart, https://paste.ubuntu.com/p/BbZfwgqtdT/10:35
stickupkidalso "yeah boi" - I'm laughing so hard - haha10:36
=== skay is now known as Guest49404
manadartstickupkid: Sorry, was just OTP. Is that with develop?11:04
stickupkidmanadart, well your branch11:04
manadartstickupkid: You updated the dep and installed it?11:08
stickupkidmake install'ed it11:08
manadartSo was that migrating the offering model, or the consuming one?11:11
stickupkidoffering11:14
stickupkidcan ho once you're free manadart11:17
manadartstickupkid: Daily11:34
nammn_demanadart: To change the spaces for constraints I see the following options: get constraints for each type (applications, machine, units..) and change these OR just get all constraints as collection and edit these. What do you think makes the most sense? Im thinking about the latter because of implementation ease11:35
nammn_demanadart: hmm but if I think about it, this could potentially be a lot of docs constraints to at least check and then change..11:43
nammn_deahhh no it might make the most sense to just query for the space and then to change that subset =D11:45
manadartnammn_de: Yes.11:46
achilleasamanadart: populating modelUUID/DocID did the trick!11:53
manadartachilleasa: Nice.11:53
nammn_demanadart: another thing.  I realized because I query  the constraints collection itself and need to write them back again I need the "_id". As I don't know whether the doc is a machine, application ect.12:12
nammn_deI see the following options:12:12
nammn_de1: add _id to constraintsDoc <-- I would prefer this12:12
nammn_de2: use own constraintsDoc struct . What do you think? Or another suggestion in mind?12:12
manadartnammn_de: Just add `DocID string `bson:"_id"` like we do elsewhere.12:21
nammn_demanadart: great, will do12:21
achilleasaanyone up for a CR for https://github.com/juju/juju/pull/11156 ?13:02
manadartachilleasa: I can look.13:06
stickupkidmanadart, if you have a relation to another CMR model, if you try and destroy the controller, it fails, is this something you ran into?15:10
manadartstickupkid: Yes, this is known and will not be changed (there is an LP bug). That is why the migration integration tests force-destroy the offer before teardown.15:14
stickupkidmanadart, this is annoying as we can't tear down a controller if an integration test fails15:14
stickupkidmanadart, i.e. the integration test doesn't know about the relation15:15
manadartstickupkid: Ah, yes.15:15
stickupkidmanadart, this is why the integration jujus are hanging around, even if you told them to be destroyed15:15
manadartstickupkid: I wonder if the bash-based suites would allow us to register extra tear-down...15:15
stickupkidmanadart, i'm unsure15:16
stickupkidmanadart, defer but in shell15:16
stickupkidhaha15:16
manadartstickupkid: Exactly :)15:17
stickupkidall i want is closures15:25
stickupkidmanadart, i wonder if we can ask for all relations?15:25
stickupkidmanadart, and just kill them all off15:26
manadartstickupkid: Could work I guess.15:27
stickupkidmanadart, got it to work with the check, but need to work on the destroying issue15:38
stickupkidi'll update your pr15:38
stickupkidhttps://github.com/juju/juju/pull/1115515:52
stickupkidmanadart, got it working, not the defer thing, but cleaning up the offers17:03
stickupkidget in there17:03
stickupkidCR https://github.com/juju/juju/pull/1115717:11

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