access rules hanging in queued_to_apply after replica create

Bug #2000253 reported by Maurice Escher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Maurice Escher

Bug Description

Hi,

I'm running xena with dhss=true and the netapp driver.

I have a share with an active access rule.

Now I create a replica of type DR.

Expected result: access rule stays active
Actual result: access rule is queued_to_apply

The only way to get out of this is to create any dummy access rule (and delete it).

I had a look into the database:
share_instance_access_map for the active replica shows state 'active'
share_instance_access_map for the non-active replica shows state 'queued_to_apply'

get_aggregated_access_rules_state() of manila/db/sqlalchemy/models.py is always looking at all rules, even in the replication type DR case, where the rules are not in use, yet.

Not even the startup ensure loop is correcting this situation since the access_rule_state of the non-active share instance is set to 'active' (and not 'syncing')

I'm unsure about the way out: should the get_aggregated_access_rules_state() method conditionally check? Or should the rules be active right at replica create time?

Best,
Maurice

P.S.: the state is only 'cosmetically' wrong, that means the rules stay correctly applied on the backend. But any client relying on the state will be misled.

description: updated
Revision history for this message
Maurice Escher (maurice-escher) wrote :

Additional thoughts: even promoting a non-active replica does not help

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to manila-tempest-plugin (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila-tempest-plugin/+/868340

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/868341

Changed in manila:
status: New → In Progress
Changed in manila:
assignee: nobody → Maurice Escher (maurice-escher)
importance: Undecided → Low
importance: Low → Medium
Changed in manila:
milestone: none → antelope-rc1
Changed in manila:
milestone: antelope-rc1 → bobcat-1
Changed in manila:
milestone: bobcat-1 → bobcat-2
Changed in manila:
milestone: bobcat-2 → bobcat-3
Changed in manila:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 17.0.0.0rc1

This issue was fixed in the openstack/manila 17.0.0.0rc1 release candidate.

Changed in manila:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.