Commit Graph

12 Commits

Author SHA1 Message Date
Andreas Jaeger 57eb87149f Fix hacking warnings
Fix some warnings found by hacking and enable them again.

Change-Id: Ia09de4d0fda752a009b9246b4e6d485601cd9562
2020-04-16 06:43:27 +00:00
ricolin 3aeaefc29f Non-destructive upgrade for deprecated resources
If you attempt to update a stack containing
OS::Heat::SoftwareDeployments resources, so it uses the new
non-deprecated OS::Heat::SoftwareDeploymentGroup type instead, it
deletes the group, and all of the deployments.

This means that any deployment "actions" property will be
misinterpreted, e.g if you have actions: CREATE, all the deployments
will re-run on the update, even though it's an update, not a create.

This issue exists on all deprecated resoruces, when we trying to upgrade
to new version of it by update.

This patch fix above update issue by check if resoruce was deprecated
and been update by replacing resource (which is the parent class of
existing resource).

Change-Id: Ib7880120a90c4497a7ceea53eee55c220a28d14e
Closes-Bug: #1528958
2016-09-02 13:09:11 +08:00
Kanagaraj Manickam 719a043854 Validate support_status while searching resource registry
Validates the resource_type's support_status when it is
searched from global ResourceRegistry. This saves user from
searching for invalid support status.

implements blueprint heat-resource-type-search

Change-Id: I620ead91b024b369e4f2d8971f1190da61cfc0b2
2015-08-31 10:01:04 +05:30
Peter Razumovsky 6735bece13 Add HIDDEN status to SupportStatus
Add HIDDEN status to SupportStatus and it's supporting
in code: hiding objects with HIDDEN status in docs and
resousce-type-list.

bp deprecating-improvements

Change-Id: Iebd77d769966bab321aeaf3e23b7f54e9456ad13
2015-07-08 12:18:49 +03:00
Jenkins 8fd13650ee Merge "Remove PROTOTYPE support status" 2015-06-25 00:05:01 +00:00
Sirushti Murugesan 2b1707fe6b Remove PROTOTYPE support status
It's not used anywhere and is superseded by the UNSUPPORTED
status

Closes-Bug: #1467382

Change-Id: Ice5450761f52e7a2aeb873ceb7df49ed9bbe4a52
2015-06-22 05:34:54 +00:00
Peter Razumovsky 5684f47af0 Add previous_status to SupportStatus
Add previous_status parameter to SupportStatus for
better understanding of objects life cycles.

bp deprecating-improvements

Change-Id: I447d001ada9b0a0297de79704d91e263934a185f
2015-06-16 18:05:01 +03:00
Peter Razumovsky c31166a11c Add version to support_status where it omitted
This improve doc notes about deprecated objects
and adds option 'version' to all objects with
support_status parameter.

blueprint deprecating-improvements

Change-Id: I82f9f4514142a3a66c872722b265fee365eb5de2
2015-04-10 13:44:24 +03:00
Ethan Lynn 11c1b62052 Remove deprecated function i18n.install('heat')
Since i18n.install() is deprecated, remove it from heat codes and
import i18n._() to where it needed.

blueprint oslo-i18n
Change-Id: Icefada18b5a33112b425cd90d31d3a6a5f06188a
2014-10-13 10:31:28 +08:00
Jason Dunsmore af464c9afc Make the first line of every file consistent.
Change-Id: I2e1a809cfca8e88693551d58d33e747f54ee5eb1
2014-03-04 09:03:04 -06:00
Jason Dunsmore 97135cbfc0 Remove vim header from files.
Change-Id: Ia6131f8fcac6902c80c80aa805c8cd7a2a41f280
Closes-Bug: #1229324
2014-03-04 08:51:56 -06:00
Steve Baker 7c6bf662c6 Refactor SupportStatus into its own module
This will allow a properties to also use SupportStatus

Change-Id: I66783eaefcb7c773120c0f1e5cb7eeacbd483cf7
2014-02-20 10:21:32 +13:00