Shares created in CG from CG-snapshot do not have share_server_id using DHSS=true driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Goutham Pacha Ravi |
Bug Description
Steps to reproduce:
1) Create share-type
2) Create share-network
3) Create CG
4) Add (1) and (2) to (3)
5) Create share with CG (3)
6) Create CG snapshot from CG (3)
7) Create CG from CG snapshot (6)
Expected results:
CG (7) from CG snapshot (6) has one share and it has correct values for share-network, share-server and share-type.
Actual result: "share_server_id" is absent for share (7). And such share has "available" status, but nothing can be done with it due to lost attribute.
How to reproduce in CI: disable "suppression of cleanup errors".
Using generic driver, two following tests will fail (+ other side-failures for impossibility to remove chain of resources):
1) manila_
2) manila_
These tests fail only in DHSS=True driver mode and "generic driver" is the only driver that runs in CI with these tests in that mode.
Changed in manila: | |
milestone: | none → newton-1 |
assignee: | nobody → Valeriy Ponomaryov (vponomaryov) |
importance: | Undecided → Medium |
status: | New → In Progress |
tags: | added: cg ci tempest |
description: | updated |
summary: |
- tempest tests with creation of populated CGs do not use share-network in + tempest tests with creation of populated CGs fail on cleanup in DHSS=True drivers |
description: | updated |
summary: |
- tempest tests with creation of populated CGs fail on cleanup in - DHSS=True drivers + Shares created in CG from CG-snapshot do not have share_server_id using + DHSS=true driver |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in manila: | |
assignee: | Valeriy Ponomaryov (vponomaryov) → nobody |
status: | In Progress → New |
tags: | added: mitaka-backport-potential |
Changed in manila: | |
assignee: | nobody → Goutham Pacha Ravi (gouthamr) |
Confirmed the bug, it exists in the CG API layer..
stack@openstack2:~$ manila cg-create --name my_cg --share-types my_share_type --share-network my_manila_network ------- ------- --+---- ------- ------- ------- ------- ------+ ------- ------- --+---- ------- ------- ------- ------- ------+ cgsnapshot_ id | None | 18T17:35: 58.161996 | 6996-45de- 8de4-7ef13dc3b8 73 | a9e91ebfb37d330 13 | 14a6-4dcf- bdf2-3a3d44994e 0e | 77d2-485e- b81d-1b4140f738 30 | ------- ------- --+---- ------- ------- ------- ------- ------+
+------
| Property | Value |
+------
| status | creating |
| description | None |
| source_
| created_at | 2016-04-
| share_network_id | 6a6b61d7-
| share_server_id | None |
| host | None |
| project_id | bf2cecec85d3497
| share_types | 3961c4dc-
| id | c7975d19-
| name | my_cg |
+------
stack@openstack2:~$ manila cg-list ------- ------- ------- ------- ----+-- -----+- ------- -----+- ------- --+ ------- ------- ------- ------- ----+-- -----+- ------- -----+- ------- --+ 77d2-485e- b81d-1b4140f738 30 | my_cg | None | creating | ------- ------- ------- ------- ----+-- -----+- ------- -----+- ------- --+
+------
| id | name | description | status |
+------
| c7975d19-
+------
stack@openstack2:~$ manila create NFS 1 --cg c7975d19- 77d2-485e- b81d-1b4140f738 30 --share-network my_manila_network --share-type my_share_type ------- ------- ------- --+---- ------- ------- ------- ------- ------+ ------- ------- ------- --+---- ------- ------- ------- ------- ------+ 6996-45de- 8de4-7ef13dc3b8 73 | 2f98-41ac- a0fa-1bffb86132 da | 14a6-4dcf- bdf2-3a3d44994e 0e |
+------
| Property | Value |
+------
| status | creating |
| share_type_name | my_share_type |
| description | None |
| availability_zone | None |
| share_network_id | 6a6b61d7-
| share_server_id | None |
| host | |
| access_rules_status | active |
| snapshot_id | None |
| is_public | False |
| task_state | None |
| snapshot_support | True |
| id | 15b9232f-
| size | 1 |
| name | None |
| share_type | 3961c4dc-
| has_replicas | False |
| replication_type | None |
| created_at ...