Because of quotas, there are times when creating a resource and then
deleting another resource may fail where doing it in the reverse order
would work, even though the resources are independent of one another.
When enqueueing 'check_resource' messages, send those for cleanup nodes
prior to those for update nodes. This means that all things being equal
(i.e. no dependency relationship), deletions will be started first. It
doesn't guarantee success when quotas allow, since only a dependency
relationship will cause Heat to wait for the deletion to complete before
starting creation, but it is a risk-free way to give us a better chance of
succeeding.
Change-Id: I9727d906cd0ad8c4bf9c5e632a47af6d7aad0c72
Partial-Bug: #1713900
Direct import of barbicanclient is being deprecated for
`barbicanclient.containers`, we should use
`barbicanclient.v1.containers` instead.
Change-Id: I340099ecf6649e7a443712a448a1504ec2e6d8ea
The queens release of python-openstacksdk breaks the sdk and senlin code
that's in heat right now. This shifts us to the new world order.
python-senlinclient is actually just a thin wrapper around
python-openstacksdk. Instead of reworking the constructor in the Senlin
plugin, just remove use of python-senlinclient and use the openstacksdk
client plugin instead.
Change-Id: Idf0acebf7b3774db26e335b3f3229227bfe68502
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.
Change-Id: I43b8a36e6ba8457c9594dc4ad579167f95d91d39
New python-openstacksdk has broken the client plugins.
This also change to use `status_code` instead of `http_status`
of HttpException when checking for bad request.
Closes-Bug: #1746956
Change-Id: Ib1f295a6dea014df3237acf0efd6b84464eac9c1
Heat engine tries to create client object using token, but the token
in Monsca client will be reauthenticated. It can't be reauthenticated,
because it doesn't have base_url in kwargs (Monasca client), so it
raises an error "AttributeError: 'NoneType' object has no attribute
'find'".
Using session instead of token fixes the issue.
Change-Id: I154c0360946043f6dbb12ef756aa01d674f6de8f
Closes-Bug: #1713050
New senlinclient release have broken the plugin.
Depends-On: Idf9ada2da132092c579f2aa432b5d128531b2737
Change-Id: I7eb100b0eab75f239c75f1bd015536b24b50ca44
Closes-Bug: #1746156