Access rules concurrency in share migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Rodrigo Barbieri |
Bug Description
Following error pops up in CI sometimes during Share Migration test:
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.648 12352 ERROR manila.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
2016-09-05 02:57:10.732 12352 ERROR oslo_messaging.
Changed in manila: | |
assignee: | nobody → Rodrigo Barbieri (rodrigo-barbieri2010) |
status: | New → In Progress |
Changed in manila: | |
importance: | Undecided → Medium |
Reviewed: https:/ /review. openstack. org/365136 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=10487a14a36 73d4a28a4ea85a6 2619e69d5c669b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 10487a14a3673d4 a28a4ea85a62619 e69d5c669b
Author: Rodrigo Barbieri <email address hidden>
Date: Mon Sep 12 16:22:34 2016 -0300
Fix allow/deny error message and race in migration
Share migration code [1] merged in newton intending to allow admins
to mount the share between phase1 and phase2, but API code for
allow_access and deny_access was set incorrectly, blocking it.
After discussing this feature's purpose further, we decided we do
not want this feature at this moment, so we are just fixing the
allow_access and deny_access error messages.
Also, addressed a small case of concurrency that was happening MULTIPLE" , ignoring the migration access rule change
once in a while in CI. Update_access was being invoked while
other rules were being applied, thus setting the access_rule_state
to "UPDATING_
RPC request completely, failing migration. By refreshing the
model we are able to assign the proper access_rule_state at the
time the function is invoked, setting the access_rule_state
correctly.
[1] If4bfaf7e9d963b 83c13a6fea241c2 eda14f7f409
APIImpact
Closes-bug: #1623051
Closes-bug: #1623052
Change-Id: I76a7d8c3bdd597 b951e700350f8f3 f82bfb21e03