Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I do have a service with a unit pending because theres no machines to add that unit.

After I add a machine, how to assign the pending unit to that machine?

I've searched under google and in the official documentations, but with no success.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

It sounds like you're using a manual registration process.

It might be easier to add the machine first, THEN add the service with --to <machine>. I don't know how to connect the pending service to the existing machine.

The other thing you can do is to deploy a service to a new LXC container on the machine, like this:

juju deploy charm --to lxc:<machine>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.