Comment 5 for bug 1807289

Tim Penhey (thumper) wrote :

All I'm going to say on this bug at the moment is that this is the hairy part of guessing the user's intent.

@Drew, when you remove the application foo and redeploy, all juju is determining for foo is that you want it in lxd containers. It doesn't infer anything from bar's placement directives of wanting to be next to foo.

When you are using unit placement directives, I can imagine that juju is getting confused with logical vs. actual unit numbers.

I can't think of a definitive approach just now that won't cause more problems than it attempts to save.

@Dmitrii, you comment is somewhat without other context and it is hard to work out the flow that has got you into the position you are explaining.