HDS_HNAS: logging inconsistent IDs for managed shares
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Low
|
Rodrigo Barbieri |
Bug Description
When performing operations over managed shares, Manila HNAS driver shows inconsistent IDs, sometimes referring to the share_instance_id, sometimes referring to the hnas_id retrieved from private storage.
See below log output displayed when performing a share shrink operation.
2016-05-19 17:22:51.442 DEBUG manila.
2016-05-19 17:22:51.950 DEBUG manila.
2016-05-19 17:22:52.0 INFO manila.
Changed in manila: | |
importance: | Undecided → Low |
Changed in manila: | |
assignee: | nobody → Rodrigo Barbieri (rodrigo-barbieri2010) |
status: | New → In Progress |
tags: | added: mitaka-backport-potential |
Reviewed: https:/ /review. openstack. org/316113 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=081fc4860b7 ba3a87020d2ddae 006f667616fed0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 081fc4860b7ba3a 87020d2ddae006f 667616fed0
Author: Rodrigo Barbieri <email address hidden>
Date: Fri May 13 10:23:46 2016 -0300
Fix HDS HNAS errors caused by incorrect IDs
When attempting to allow_access on a managed share, it fails
because the proper share ID is not retrieved from private storage
prior to attempting to validate that the share exists in the
backend. The same happens when trying to create a share from a
snapshot created from a managed share, the proper share ID is
not retrieved from private storage. While we are dealing with
two possible different IDs it is important to properly display
the API share ID in log messages so it can be matched to the
share instances ID, and not all log messages are accurately doing
so.
This change addresses this by retrieving the ID from share_from_ snapshot operations. The proper unit test changes
private storage first for update_access and
create_
included in this patch required a refactor of several IDs to ensure
this problem is addressed in unit tests, thus it made sense to
address several bugs caused by the same problem, having the same fix
and requiring modifications to the same lines of code.
Closes-bug: #1581541 7e710f57e3c288d 48cd2adf0dd
Closes-bug: #1584179
Closes-bug: #1583785
Change-Id: I8cdb1a8a72a4ac