/srv/irclogs.ubuntu.com/2015/09/07/#juju.txt

=== freyes_ is now known as freyes
=== tris- is now known as tris
=== beisner- is now known as beisner
=== zz_CyberJacob is now known as CyberJacob
stubaisrael: users are just roles in PostgreSQL. When the PG charm generates the new user/role, we grant it the old user/role so it gets all the old permissions.06:55
stubaisrael: So we don't need to introspect the database and change all the ownership, which is good as it is a) non trivial and b) quite invasive.06:55
ParsectiXHi jujuers. IS there a way to run a sandbox of juju on my laptop ?07:50
=== Guest19391 is now known as frobware
=== CyberJacob is now known as zz_CyberJacob
sparkiegeekgnuoy: dosaboy: wolsen: can I get some review ♥ for https://code.launchpad.net/~adam-collard/charms/trusty/swift-storage/guard-paused-unit-service-restarts/+merge/269860 please?09:10
gnuoysparkiegeek, isn't pause_aware_restart_on_change going to be applicable to lots of your maintenance actions?09:12
sparkiegeekgnuoy: yes, I assume your next question is "why not charm-helpers?"09:12
gnuoysparkiegeek, it is, but maybe that's the layout change09:13
sparkiegeekgnuoy: to which the response is - thought about it, but the is_paused() semantics could be different for each charm09:13
gnuoysparkiegeek, merged09:17
sparkiegeekgnuoy: thank you!09:17
gnuoynp09:17
stubIs it still possible for juju to be running 2 hooks simultaneously in the case where you have two units smooshed onto one machine? Or are hooks serialized per machine now?10:40
stubI think they are serialized now, as my primary and my subordinate hooks no longer clash.10:40
stubAnd if so, anyone know what version this changed in?10:41
stubThinking that apt failing to grab a lock may indicate a real failure now, rather than something intermittent requiring retries10:42
=== perrito667 is now known as perrito666
elmostub: there's a broken assumption there .. brb12:37
sparkiegeekbroken assumption?12:37
stubBut the assumption is too large  for this margin13:16
elmohaha13:17
elmostub: the broken assumption is that only juju is invoking apt on a system13:18
elmostub: the classic counterexample is landscape13:18
sparkiegeekelmo: stub: right! I'm wondering if aptdaemon has a role to play here13:19
sparkiegeekof course it's not a complete answer because there will always be something else invoking APT and taking locks13:20
stubI think we need a synchronous apt-get update that keeps retrying until it works or fails hard (screwed apt, timeout). And an apt-get install that just tries and fails (eg. trying to install an unsigned package)13:22
stubI know nothing about aptdaemon or if it can help.13:22
stubI've looked at the code and can adjust retries or add my own timeout easily enough, so I can work around for a particularly problematic charm like Cassandra13:23
sparkiegeekstub: well the idea of aptdaemon is that it's one process that talks to APT and clients just make requests of it to do things13:23
sparkiegeekstub: I'm curious, what is it about Cassandra charm that makes the current logic problematic?13:24
stubSounds good if you can wait for it to report success, rather than fire and forget and hope the job is done before you need it13:24
stubThe Cassandra charm can install DataStax Enterprise, which exists in a password protected apt archive. Remembering to add the URL in the first place, getting it right - it doesn't sound like much, but so far everybody has screwed up some part of the configuration.13:25
sparkiegeekso the issue is that it takes 5mins to report the screw up?13:28
stubWith archive.ubuntu.com, a ppa, the us datastax.com - apt-get update takes a minute or two to run and fail. 30 times that is not 5 minutes.13:29
stubNow I realize it is retrying a fixed number of times, I can lower that number. I'd assumed it was retrying forever, because that is what it felt like :)13:31
sparkiegeek:)13:31
stubaptdaemon looks nice. I'm also drawn to a few nice features like partial updates (update only the sources in a given sources.list).13:35
stubI have a feeling some of this will need work for wily. aptdaemon may simplify things.13:37
sparkiegeeki'm not sure whether we ship policykit in cloud images, do you know?13:37
stubNo idea. Does it matter for root?13:39
sparkiegeekwell it seems that aptdaemon depends on PolicyKit, *shrug*13:42
sparkiegeekI mean depending on aptdaemon just gives you a bootstrap issue - how do we get aptdaemon in the first place :)13:43
=== verterok` is now known as verterok
stubsparkiegeek: The bootstrap packages aren't as hard, as we know there is a working primary archive or we would not have gotten as far as an install hook.14:03
stubsparkiegeek: but yeah, it would need to retry there.14:03
sparkiegeekstub: right, that's what I meant - two units racing to install aptdaemon14:03
stubsparkiegeek: Until juju sticks charmhelpers on the units for us and the charm dependency bootstrap problem goes away.14:04
sparkiegeekstub: I Want To Believe14:04
stubOr we make aptdaemon a snap.14:05
=== wendar_ is now known as wendar
=== l6unchpad is now known as l6unchpad|away
=== lukasa is now known as lukasa_away
=== lukasa_away is now known as lukasa

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