From 0b4617e2b8d77b4f6c0302b61745be775c80d982 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Fri, 12 Apr 2019 23:00:50 +0000 Subject: [PATCH] Fix an AttributeError on rebuild We changed requested_volumes to dict format in: https://review.openstack.org/#/c/638076/ , but the 'rebuild' code was not updated which causes this error. Change-Id: I7dbae54753b5d680d05b9d4b741bad87bd02dd3a Closes-Bug: #1824513 --- zun/compute/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zun/compute/manager.py b/zun/compute/manager.py index 97894d904..02f75fd1d 100644 --- a/zun/compute/manager.py +++ b/zun/compute/manager.py @@ -601,7 +601,7 @@ class Manager(periodic_task.PeriodicTasks): @wrap_container_event(prefix='compute') def _do_container_rebuild(self, context, container, run): LOG.info("start to rebuild container: %s", container.uuid) - vol_info = self._get_vol_info(context, container) + vol_info = {container.uuid: self._get_vol_info(context, container)} try: network_info = self._get_network_info(context, container) except Exception as e: