Commit Graph

11 Commits

Author SHA1 Message Date
Thomas Herve b9105a6534 Remove PackageUpdateManager
This is unused now that we use ansible to trigger updates.

Change-Id: I8a2cdac9070fded34683b85858e1fdcd95dfea6d
2018-01-22 15:38:58 +01:00
James Slagle 39c8616876 Prompt to clear breakpoints when using deployed-server
On a minor interactive update, we never prompoted to clear breakpoints
when using deployed-server since the code reads the server id's from
nova, of which there are none.

This modifies the behavior to read the server id's and names from Heat
when nova returns no servers.

Change-Id: I682f6dc66705c9d42b9c2d21f675491ea60c9c3c
Closes-Bug: #1708236
2017-08-02 18:05:32 -04:00
Brad P. Crochet b14c0f727e Remove update abort
The update abort is not reliable, and could mess up a TripleO stack
beyond repair. Since this has a potential for data loss, I would
suggest this be removed without a deprecation period.

Depends-On: Ieec4f01e38768eafb3df1f06340bdd3e220d30bd

Change-Id: I752e061979d667c1fb2b115c1a7339002e1824d5
2017-05-03 11:21:14 +00:00
Thomas Herve ba113ca188 Handle re-created resources in StackUpdateManager
Since Iaacc585b9806c08fd5a57c80c10eeb31cb0a8f71 got merged in Heat, we
can get into a state where a failed resource is recreated during update
after clearing a hook. That means that when we poll for events, we need
to check for that additional action and not limit to updates.

Change-Id: I2191a3f3df426eaa91fdd5b00299193a32efe366
Closes-Bug: #1677548
2017-03-30 10:30:09 +00:00
Zane Bitter 4daff816e4 Fix error message when failing to remove breakpoint
When removing a breakpoint fails because the resource name was not
found, the error would be reported using either the previous server_name
or the client would crash with the error "local variable 'server_name'
referenced before assignment".

Change-Id: I35eb2359dbfc9b678dcd26a33766d8c19a456539
2017-01-31 17:11:21 -05:00
Lucas Alvares Gomes 9f236cd9a2 Fix pep8 errors when running with python3
This patch is replacing raw_input() with six.moves.input() because
raw_input is not present in python3+.

Fixing this also makes "tox -epep8" happy when running with python3.

Change-Id: If28f97b479fa018079c7d180541ca29689398a68
2016-09-05 16:22:16 +01:00
Jiri Stransky e7ac8893f5 Fix interactive update race condition
We first need to wait for the stack to begin updating before we start
checking if it's complete/failed. If we don't do that we can hit a race
condition between the CLI and Heat where CLI thinks that the update has
finished, but in fact it hasn't even started yet.

Closes-Bug: #1589986
Change-Id: I755fe02155a37698f8c9c885d7b6bea984e21a75
2016-06-10 14:14:13 +02:00
Jenkins e4ba891af5 Merge "Replace deprecated LOG.warn with LOG.warning" 2016-04-20 05:20:47 +00:00
Swapnil Kulkarni (coolsvap) a90b78c931 Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places.
Updated to non-deprecated LOG.warning.

Change-Id: I897fc367da8a8d003cced2177aea680423ec561a
Closes-Bug:#1508442
2016-03-11 12:20:44 +05:30
Zane Bitter 272e7a82ad Catch NotFound when listing events during updates
Change-Id: Id7909431d75f77bbf1236d9836398143a4367b7f
Closes-Bug: #1537857
2016-01-25 18:10:21 -05:00
Dougal Matthews 852ded4e67 Rename stack_update to _stack_update
This clarifies the public API as stack_update was never intended
to be public.

Change-Id: I7f474e5afacb0f2a20095450fabf0cc0801d1b01
2015-12-17 09:49:53 +00:00