Skip to content

Force delete share type extra specs - #351

Open
kpawar-sap wants to merge 2 commits into
stable/2025.1-m3from
force_delete_share_type_extra_spec
Open

kpawar-sap wants to merge 2 commits into
stable/2025.1-m3from
force_delete_share_type_extra_spec

Conversation

@kpawar-sap

Copy link
Copy Markdown

The force delete in upstream is done using share type extra spec while sapcc is using config option. Remove CONF.force_delete_time and move the logic to share type extra specs.

Change-Id: I32aa98a75663f61bde9cb5b3385cc35cde59100b

@kpawar-sap

Copy link
Copy Markdown
Author

seems this change is causing regression new PR https://review.opendev.org/c/openstack/manila/+/1000930. onc emerged upstram i will merge here too. till hold this PR

@kpawar-sap

Copy link
Copy Markdown
Author

ready to review

@Carthaca

Copy link
Copy Markdown
Collaborator

We need to modify our share types with extra spec netapp:force_delete_time_minutes now before we can merge this, right?

kpawar-sap and others added 2 commits September 10, 2026 12:53
The force delete in upstream is done using share type extra spec while
sapcc is using config option. Remove CONF.force_delete_time and move
the logic to share type extra specs.

Change-Id: I32aa98a75663f61bde9cb5b3385cc35cde59100b
The force-delete extra-spec feature added an unconditional
share_types.get_extra_specs_from_share(share) call in _delete_share(),
which needs share['share_type_id']. The synthetic share dict used to
track the temporary source clone during cross-AZ/cross-backend
create-from-snapshot never carried a share_type_id, causing:

  manila.exception.InvalidShareType: Invalid share type: id cannot be
  None.

Fix:
* Populate 'share_type_id' in the synthetic share dict.
* Skip the extra specs lookup in _delete_share() when share_type_id is
  missing, instead of raising.

Closes-Bug: #2163563
Signed-off-by: Medha Choudhary <medhac@netapp.com>
Assisted-By: GitHub Copilot
Co-authored-by: Copilot <copilot@github.com>
Change-Id: Id7f303d3b07c4efb5d345d115069c3f393d33695
(cherry picked from commit 3be932e)
@kpawar-sap
kpawar-sap force-pushed the force_delete_share_type_extra_spec branch from 04a8153 to 310801d Compare September 10, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants