Set capsule.host once it is running

If the host is not set, zun-api won't know the location of the
capsule which leads to failure to delete the capsule in multi-node
environment.

Change-Id: Ie131236bb4426e12c5b8424e8eac07677dcb820a
This commit is contained in:
Hongbin Lu 2018-11-04 01:59:21 +00:00
parent 280b09b7c2
commit d7026ab16e
1 changed files with 1 additions and 0 deletions

View File

@ -1222,6 +1222,7 @@ class Manager(periodic_task.PeriodicTasks):
requested_volumes,
requested_networks)
capsule.host = self.host
capsule.status = consts.RUNNING
capsule.save(context)