Pass empty stack_fields to update manager
There is an additional stack_fields param that needs to be passed to the update manager. Change-Id: Ic5cd462879ed1b8ab84144157d8f3d5f67f262b2 Closes-Bug: #1663698
This commit is contained in:
parent
7a8cad1e56
commit
a137b490c9
|
@ -84,11 +84,12 @@ class UpdateOvercloud(command.Command):
|
||||||
self.log, clients, stack, stack_name,
|
self.log, clients, stack, stack_name,
|
||||||
self.app_args.verbose_level, timeout)
|
self.app_args.verbose_level, timeout)
|
||||||
if status not in ['COMPLETE']:
|
if status not in ['COMPLETE']:
|
||||||
raise exceptions.DeploymentError("Stack update failed.")
|
raise exceptions.DeploymentError("Package update failed.")
|
||||||
else:
|
else:
|
||||||
status = package_update.update(clients, container=stack_name,
|
package_update.update(clients, container=stack_name,
|
||||||
queue_name=str(uuid.uuid4()))
|
queue_name=str(uuid.uuid4()))
|
||||||
print("stack {0} status: {1}".format(parsed_args.stack, status))
|
print("Package update on stack {0} initiated.".format(
|
||||||
|
parsed_args.stack))
|
||||||
|
|
||||||
|
|
||||||
class AbortUpdateOvercloud(command.Command):
|
class AbortUpdateOvercloud(command.Command):
|
||||||
|
|
|
@ -16,6 +16,7 @@ import uuid
|
||||||
|
|
||||||
from tripleo_common import update as update_common
|
from tripleo_common import update as update_common
|
||||||
|
|
||||||
|
from tripleoclient import utils as oooutils
|
||||||
from tripleoclient.workflows import base
|
from tripleoclient.workflows import base
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,10 +56,16 @@ def update_and_wait(log, clients, stack, plan_name, verbose_level,
|
||||||
update_manager = update_common.PackageUpdateManager(
|
update_manager = update_common.PackageUpdateManager(
|
||||||
heatclient=clients.orchestration,
|
heatclient=clients.orchestration,
|
||||||
novaclient=clients.compute,
|
novaclient=clients.compute,
|
||||||
stack_id=stack)
|
stack_id=plan_name,
|
||||||
|
stack_fields={})
|
||||||
|
|
||||||
update_manager.do_interactive_update()
|
update_manager.do_interactive_update()
|
||||||
|
|
||||||
|
stack = oooutils.get_stack(clients.orchestration,
|
||||||
|
plan_name)
|
||||||
|
|
||||||
|
return stack.status
|
||||||
|
|
||||||
|
|
||||||
def abort_update(clients, **workflow_input):
|
def abort_update(clients, **workflow_input):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue