Commit Graph

3987 Commits

Author SHA1 Message Date
Takashi Kajinami 399352dfdc Fix update of OS::Heat::UpdateWaitConditionHandle
The update method has incomplete arguments and causes error during
actual stack update operation.

Story: 2011068
Task: 49751
Change-Id: I7b141f8846005da8379b1c646b298088d27a66bc
2024-03-21 09:47:54 +09:00
Zuul 9da45ab44b Merge "Deprecate resources for inactive services" 2024-03-07 03:53:51 +00:00
Zuul 0676041be8 Merge "Bump hacking" 2024-01-26 12:59:35 +00:00
Takashi Kajinami 895d8645ad Deprecate resources for inactive services
Monasca, Sahara and Senlin were marked inactive during this cycle and
will not be part of the 2024.1 release. Because these projects are not
maintained in a consistent way, we deprecate resources for these
services.

We aim to remove these in the 2024.2 release.

Change-Id: Iab377ebc2569a4a5a81f736a1dfe9f406135f5d3
2024-01-22 21:03:39 +09:00
Takashi Kajinami 813f229a08 Bump hacking
hacking 3.0.x is too old.

Also fix failures detected by the new hacking version.

Change-Id: Ifccbbf2ff7b0824d2079937526d3eee1c536349b
2024-01-18 19:04:37 +09:00
Zuul 2df46d4c59 Merge "Clear implementations for neutron LBaaS v2" 2024-01-09 04:50:09 +00:00
Zuul 28334a3a2b Merge "Loadbalancer id is required in listener creation API" 2023-12-19 06:19:50 +00:00
Zuul a120c750c8 Merge "Hide OS::Glance::Image" 2023-12-15 05:56:36 +00:00
Takashi Kajinami 87a8cbe4ac Clear implementations for neutron LBaaS v2
LBaaS v2 was retired a while ago and now the related resources are all
hidden. Thus we can remove all implementation to reduce dependency on
python-neutronclient which is deprecated.

Story: 2010678
Task: 47761
Change-Id: I4de6cb353bc3699d124ea55666c87e4efd7e4350
2023-12-13 22:07:02 +09:00
Zuul 93700aa365 Merge "Clear implementations for neutron LBaaS v1" 2023-12-13 04:10:35 +00:00
Takashi Kajinami 01349f3793 Hide OS::Glance::Image
This resource requires Glance v1 API which was already removed[1][2].
It was deprecated some time ago so we can hide it now.

[1] 3dde3204d5c1b5323dba2d7b7607e69bcc58bbb2
[2] 30680961994b36ed12713c0f106b661535ce41c6

Change-Id: Ifbefdbc032c0b1ac538d68b41f13d0547b793ba5
2023-12-01 14:57:04 +09:00
liyi a749ed1e6b Loadbalancer id is required in listener creation API
The loadbalancer property of Octavia::Listener resource has been
optional but this is not aligned with Octavia's API and causes
a strange failure when a user creates a pool without the property.

This makes the property required to enforce the same requirements as
one made by Octavia's API.

Story: 1748389
Task: 17347
Change-Id: Ib8af29c3d45d5ffbbb21c216429ef38d0d273d05
2023-11-27 11:07:15 +09:00
Martin Mágr f8a44f4904 Add OS::Aodh::PrometheusAlarm resource
This patch adds support for Aodh alarms of type Prometheus.

Depends-On: I72e124cca4398b78f7ed12e1db3f66bdbfcb196e
Change-Id: I5bb7c4d9086715fc22c0f7abc36d9bbfc88a60c9
2023-10-03 11:25:27 +00:00
Takashi Kajinami ac2462a584 Clear implementations for neutron LBaaS v1
These resources were hidden some releases ago so we no longer need to
maintain the implementations.

Story: 2010678
Task: 47760
Change-Id: Id9684396e495f46890a915e7d05d9fd2ddc24b63
2023-04-10 14:16:40 +09:00
Zuul bbd0e94e07 Merge "Hide resource types for Neutron LBaaS v2" 2023-04-06 15:36:38 +00:00
Takashi Kajinami b5ccf5a307 Hide resource types for Neutron LBaaS v2
Neutron LBaaS v2 was retired a long ago and users are no longer able
to use these resource types.

Story: 2010678
Task: 47759
Change-Id: I9c9cdcbe6cb1019714dbb4cfc05c0c68ac2ff934
2023-04-03 09:20:39 +09:00
Bui Doan Dang cd2d8dcf08 fix wrong attribute in heat senlin client
Heat has been using the deprecated interfaces of openstacksdk for some
Senlin APIs but these interfaces were already removed. This fixes that
problem and replace the removed interfaces by the new ones.

story: 2010635
task: 47602

Change-Id: I3b18de721949f3c15c776f90720f3e994f7d6670
2023-03-09 12:55:31 +09:00
Zuul ac53891e85 Merge "fix heat update senlin cluster" 2023-03-06 08:03:28 +00:00
Bui Doan Dang c31eb4f5c7 fix heat update senlin cluster
story: 2010578
task: 47331

Change-Id: I3706d662ec56e3548eb991556be7bd0f82f49e05
2023-03-06 04:45:02 +00:00
Pavlo Shchelokovskyy c6094856a3 Fix parsing of live data from OS::Nova::Server
depending on compute API version, flavor in the instance representation
may not have "id" field, but "original_name" instead.

Story: 2009753
Task: 44211
Change-Id: Ieeae2f36f5e59e01f57a2f8e66a983ec3d99ec63
2023-03-06 04:44:52 +00:00
Zuul 8b14ff2f34 Merge "Explicitly pass error kwarg in nested StackValidationFailed" 2023-01-25 19:43:16 +00:00
Zane Bitter a0ff4b98b7 Decode UTF-8 body data in SwiftSignal
Change-Id: Ie12c2df93f846629a7c8b7c6415cebc31eaba1bc
Story: #2010485
Task: 47053
2023-01-19 13:38:59 +13:00
Tobias Urdin 53fa8c3749 Explicitly pass error kwarg in nested StackValidationFailed
This fixes the issue when a nested stack is serialized in
oslo.messaging and deserialization fails because we pass
a kwarg as an arg when we generate the exception remotely.

Story: #2010115
Task: #45695
Change-Id: Id75398d2ed2d4fab467df51057c4167cd77bb32f
2022-12-19 06:42:52 +00:00
Mitya_Eremeev 0ea1ee087a Retry to detach volume if nova returned error 409
During volume detachment an instance can be in error state or locked.
Nova returns error 409.
Instance can be unlocked or fixed a bit later, but heat doesn't retry to detach volume.
The patch makes heat to retry detachments untill stack update timeout.

story: 2010355
Change-Id: I9a08b938401cd71eddd0eb80782d10392f92bf45
2022-10-12 15:46:13 +03:00
Takashi Kajinami 87bdbfdcab Drop implementation for OS::Magnum::Bay/BayModel
Magnum has deprecated it's Bay API and BayModel API a long ago and
these resource types were deprecated and are hidden in Heat now.

Magnum has removed the old API during Zed cycle and the resources are
no longer supported, so we should remove the implementation now.

Change-Id: If4c6a83a83f9eb29407eb632f47c7229b5492ffd
2022-09-21 16:40:03 +09:00
Zuul f98d164be9 Merge "Floating IP port forwarding resource" 2022-08-17 06:14:33 +00:00
Zuul 3d228d0449 Merge "Remove remaining implementation for Heat CloudWatch API" 2022-08-17 05:49:39 +00:00
Brendan Shephard 79f5868e04 Floating IP port forwarding resource
Add a new heat resource for Floating IP port
forwarding extension.

Story: 2009321
Task: 43742
Change-Id: I729f11873940a83e77038c5ba8e8eb50965623f6
2022-08-16 13:50:52 +10:00
Takashi Kajinami f8426b0f0b OS::Nova::KeyPair: Require public_key when api version >= 2.92
... because Nova requires the public_key property when creating
a keypair since api microversion 2.92.

Story: 2010201
Task: 45920
Change-Id: Iec6f1c570ec3bb19ca58b336e6e3401cc11c4c33
2022-08-01 14:18:29 +09:00
Zuul a8fce1d09d Merge "Followup to I7736373d03c23884158e4a1d41defafb4e2b8a4c" 2022-07-14 05:37:31 +00:00
Pavlo Shchelokovskyy 65a68d97d0 Followup to I7736373d03c23884158e4a1d41defafb4e2b8a4c
that patch erroneously replaced dict.values() with dict.items(),
and now ExtraRouteSet can not be created due to AttributeError
('tuple' has no attribute 'has_interface').

Story: 2010142
Task: 45778
Change-Id: I2643b319f3a91f98097b96639f7298b25724aa62
2022-07-13 13:27:59 +00:00
Rabi Mishra a0e072b320 Don't always replace FAILED ServerGroup resources
ServerGroup resources work as scheduler hints for server
resources and replacement of it replaces the servers which
is undesirable in many circumstances.

- We don't allow update of ServerGroup resource properties
- If not created (CREATE_FAILED) without resource_id they will
  be replaced
- If does not exist in nova they would be created
- If exist in nova, FAILED resource status would be just
  changed to COMPLETE

Task: 45748

Change-Id: I096dff2b541a5aa8afbbbcea5161e7ca1c244039
2022-07-13 09:30:42 +00:00
Zuul c37ea72a6b Merge "Add REBUILD option to user_data_update_policy" 2022-06-23 06:37:35 +00:00
Zuul 0778bd3422 Merge "Add OS::Neutron::QoSMinimumPacketRateRule resource" 2022-06-22 11:17:06 +00:00
Przemyslaw Szczerbik 0e70383d08 Add OS::Neutron::QoSMinimumPacketRateRule resource
This patch adds a new resource to support ``minimum_packet_rate_rule``
QoS rule in Neutron.

Related-Bug: #1922237
Story: 2009686
Task: 43997
See-Also: https://review.opendev.org/785236
Change-Id: I29e205979b40e3e0d0746e1c22fa679736c853b7
2022-06-13 14:39:57 +02:00
Takashi Kajinami ba15d70e19 Remove remaining implementation for Heat CloudWatch API
The CloudWatch API was removed during Queens cycle[1]. This change
removes the remaining parameters because these have been kept for
enough cycles to let users aware of the removal.

Change-Id: I4f57f02332cb1b61a0681794e519dd5ecfbec6c3
2022-05-06 19:43:56 +09:00
Alejandro García 77c6681278 Supports 'availability_zone_hints' for Neutron networks and routers
This patch adds the property 'availability_zone_hints' for OS::Neutron::Router,
OS::Neutron::Net and OS::Neutron::ProviderNet resources.

Story: 1644974
Task: 17156
Signed-off-by: Alejandro <agarcia@whitestack.com>
Change-Id: I71caefae01560dc106badbefd3859813d8417b2a
2022-04-14 20:30:35 +00:00
apetrich 06071f5e9b Add REBUILD option to user_data_update_policy
OS::Nova::Server supports it so here we add the heat support for it.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1802602

Change-Id: Ieb05ba6d6b670aff31f9f8c8debb86a6dd3b0245
2021-12-07 04:06:07 +00:00
rabi c63a2cbbad Fix Pool resource update for session_persistence
Pool session_persistence property should be update
allowed.

Task: 43952
Change-Id: Idee8893844bfd776a81c9e3ac45aa6804092a440
2021-11-17 12:13:10 +05:30
Zuul ef187fc65b Merge "Fix timeout calc of nested resource groups" 2021-11-01 17:40:47 +00:00
rabi e70ff2e153 Allow for creating server_group with max_nova_api_microversion
When users set max_nova_api_microversion in heat.conf, we should
use that to create the client.

Change-Id: If74f3f869fc696c87540357d96b039b68c456539
Task: 43661
2021-10-18 15:21:54 +05:30
rabi 9aedaa6d8a Fix ServerGroup create
Nova api has a different signature from microversion
2.64 onwards[1].

Also adds support_status for 'rules' property missed
earlier in I8e77f54303298da00cbe719afccb449f10fe387c.

[1] https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/server_groups.py#L103-L104

Task: 43168
Change-Id: If7138c71044adadaf7de255a2fac463b57ff3c47
2021-10-12 09:48:54 +05:30
Brendan Shephard 9131940ebb Drop six library
The six library was introduced to bridge the gap
between Python2 and 3. This is no longer necessary
on branches where we are not supporting Python2.

Change-Id: I7736373d03c23884158e4a1d41defafb4e2b8a4c
2021-10-05 02:50:03 +00:00
Balazs Gibizer ef731bca05 Fix timeout calc of nested resource groups
The timeout calculation of nested resource groups are using seconds but
then it passing the value in seconds to the stack resource that is
expected it in minutes. This leads to a rapidly increasing timeout value
in each nesting levels.

This patch converts the seconds to minutes before passing it forward.

Story: 2009237
Task: 43372
Change-Id: I3f132d4889723f7b4a3a416779ac5ee7663249b8
2021-09-21 14:21:16 +02:00
Zane Bitter 0f0508821f Use correct argument name for setting Nova KeyPair key type
The argument in novaclient is, and always has been, 'key_type' not
'type'. So using an x509 key instead of an ssh one has never worked
since it was introduced in d4307b5d2b.

Change-Id: Id38f489396e5b2dfce2e529737ecbaff3ffddc2d
Story: 2008575
Task: 41727
2021-08-31 09:36:10 -04:00
Zuul b461754e8a Merge "Add "rule" property for anti-affinity" 2021-08-30 12:24:11 +00:00
Brendan Shephard 3eaeda68ba Allow arbitrary image properties
In some circumstances, it is necessary to have
arbitrary image properties on Glance images.
An example is described here:
https://storyboard.openstack.org/#!/story/2008951

This patch adds the ability to specify those
properties using the WebImage resource.

Story: 2008951
Task: 42575
Change-Id: I23475185671c52b02eb57f1aa537f206b51c384a
2021-08-04 23:43:42 +00:00
David Hill 07810f6c9a Add "rule" property for anti-affinity
Add "rule" property for anti-affinity in order to set rules for
max_server_per_host on a ServerGroup as this was implemented in
nova microversion 2.64.    In this patch, we allow an operator
to set add a rule on an anti-affinity policy if the nova micro
version is 2.64 or greater.

Change-Id: I8e77f54303298da00cbe719afccb449f10fe387c
2021-07-19 10:49:48 -04:00
Jake Yip ba0b6676c0 Add availability_zone to OS::Octavia::LoadBalancer
Change-Id: I63369b92b77b4f84bc2646ab35632006ee6b841b
2021-06-16 22:41:32 +10:00
Zuul d7aee60eec Merge "Check ready status volume before extend volume" 2021-04-07 14:12:35 +00:00