Skip to content

Commit

Permalink
manila share type: do not fail if share exists
Browse files Browse the repository at this point in the history
When cifmw deployment/reproducer is rerun (e.g. for scale-out),
it always fails in manila-create-default-resources hook since
the default share already exists.

OSPRH-8983
  • Loading branch information
queria committed Jul 29, 2024
1 parent 1772ae6 commit 5c0d22e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hooks/playbooks/manila_create_default_resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
oc -n {{ namespace }} exec -it pod/openstackclient \
-- openstack share type create default false \
--snapshot-support True --create-share-from-snapshot-support True
register: _manila_share_creation
failed_when: >-
( ( _manila_share_creation.rc | int ) != 0 )
and not ( "HTTP 409" in _manila_share_creation.stderr )

0 comments on commit 5c0d22e

Please sign in to comment.