update volume failed if enable observe
Bug #1712041 reported by
huangtianhua
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
huangtianhua |
Bug Description
1. create a stack with a cinder volume:
resources:
test_vol:
type: OS::Cinder::Volume
properties:
size: {get_param: size}
volume_type: lvmdriver-1
read_only: false
2. update the stack without change anything, stack create failed: NotFound: resources.v1: The resource could not be found.
Changed in heat: | |
assignee: | nobody → huangtianhua (huangtianhua) |
importance: | Undecided → Medium |
Changed in heat: | |
milestone: | none → queens-1 |
To post a comment you must log in.
For this bug I found two problems: resource_ data(), but in all_metadata( ) when handle_update(), there is a bug in cinder, all metadata api can be used since the microversion 3.15, and I found a bug of cinder: https:/ /bugs.launchpad .net/cinder/ +bug/1712192
1. Heat updates the volume_reality with property 'read_only' from the live data when parse_live_
fact cinder returns the key 'readonly' in volume details info, not the key 'read_only'
2. because the reason above, heat will call update_
So, we fix the first problem in heat.