OSTF heat tests fail if there are images not in active state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Sergey Murashov | ||
4.1.x |
Fix Committed
|
Medium
|
Sergey Murashov | ||
5.0.x |
Fix Released
|
Medium
|
Sergey Murashov |
Bug Description
Steps to reproduce:
1. Create an empty image in glance ("glance image-create" with no parameters)
2. Run any Heat test in OSTF
3. Observe this traceback
Traceback (most recent call last):
File "/opt/fuel_
testMethod()
File "/opt/fuel_
self.
File "/opt/fuel_
self.
File "/opt/fuel_
if im.name.
AttributeError: 'NoneType' object has no attribute 'strip'
Here is the list of images gathered: [<Image: F17-x86_
The <Image: None> is the blank image stuck in the SAVING state.
Changed in fuel: | |
status: | Invalid → Incomplete |
assignee: | nobody → Ryan Moe (rmoe) |
Changed in fuel: | |
assignee: | Ryan Moe (rmoe) → Sergey Murashov (smurashov) |
Changed in fuel: | |
status: | Incomplete → In Progress |
Changed in fuel: | |
milestone: | none → 5.0.1 |
tags: | added: backports-4.1.1 |
Changed in fuel: | |
milestone: | 5.0.1 → 5.1 |
Changed in fuel: | |
status: | Fix Committed → Fix Released |
So, of course, user should download image and only after that run OSTF tests to verify the cloud.
We can add check to verify that required image has 'Active' state for all OSTF tests with images.