test_consistencygroups should wait for consistencygroup status to be available before creating volume.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder-tempest-plugin |
Fix Released
|
Low
|
Sam Wan |
Bug Description
test_consistenc
The current case logic in test_consistenc
Take test_consistenc
======
69 def test_consistenc
70 # Create volume type
71 name = data_utils.
72 volume_type = self.os_
73 name=name)
74
75 # Create CG
76 cg_name = data_utils.
77 create_
78 self.consistenc
79 cg = create_
80 name=cg_
81 vol_name = data_utils.
82 params = {'name': vol_name,
83 'volume_type': volume_type['id'],
84 'consistencygro
85 'size': CONF.volume.
86
87 # Create volume
88 volume = self.admin_
89
90 waiters.
91 volume['id'], 'available')
92 self.consistenc
93 cg['id'], 'available')
94 self.assertEqua
95
======
line#79 send the request to create a consistency group, however it does not wait for the cg to be available.
line#88 create a volume of the cg. at this time, the cg might still not be available yet.
we should move line#92-94 to line#81, otherwise the test may fail with 'CG not found.'
Here's an example log: http://
1. The CG fc5a72a0-
2. The volume creation with group_id fc5a72a0-
3. The volume created successfully at 05:59:29.789641.
4. The CG is still not found at 05:59:30.646441
5. The CG creation completed successfully at 05:59:31.086518
So the logic is wrong.
Changed in cinder-tempest-plugin: | |
assignee: | nobody → Sam Wan (sam-wan) |
Changed in cinder-tempest-plugin: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in cinder-tempest-plugin: | |
milestone: | none → 1.3.0 |
This issue was fixed in the openstack/ cinder- tempest- plugin 1.4.0 release.