Re: set_state not setting the state immediately

2017-10-03 Thread Mike Wilson
So the best practice here is to touch a file and test for the existence of that file before running must_be_called_exactly_once()? I think part of the issue here is that without knowing the extent of the hook it is hard to enforce idempotency as a charm writer. It's easy to look at the code above

Re: set_state not setting the state immediately

2017-10-04 Thread Mike Wilson
, Oct 4, 2017 at 6:34 AM Stuart Bishop wrote: > On 4 October 2017 at 00:51, Mike Wilson wrote: > > So the best practice here is to touch a file and test for the existence > of > > that file before running must_be_called_exactly_once()? > > > > I think part of the issu

Re: set_state not setting the state immediately

2017-10-04 Thread Mike Wilson
juju hooks system. In this > case each successive loop of the reactive runtime could better snapshot > state and make failures more granular. > > * state is being renamed to flag in the next major version of reactive. > > On Wed, Oct 4, 2017 at 8:52 AM Mike Wilson > wrote: >

NFS charm replacement

2018-07-23 Thread Mike Wilson
I tried to use the existing promulgated NFS charm and it didn't work. The NFS server has been changed to require an export before starting and the charm relies on using exportfs to manually create run-time exports. This also has the unfortunate issue of not surviving reboots. I rewrote the charm[1