Force Lock a Host Using the CLIΒΆ

Force locking an unlocked host takes it out of service immediately for configuration and maintenance purposes.

Note

A force lock operation on a worker host causes an immediate service outage on all containers and causes the host to reboot.

Procedure

  1. Try to lock the host normally.

    For more information, see Lock a Host Using the CLI.

  2. If the host-lock attempt fails for a worker host, manually relocate containers running on the host, and then try locking the host again.

  3. Use a force lock only if the above steps fail to lock the host.

    ~(keystone_admin)$ system host-lock --force <hostname>