1. create a stack with a nova server and software_config_transport=POLL_SERVER_HEAT
***************
resources:
my_server:
type: OS::Nova::Server
properties:
user_data_format: SOFTWARE_CONFIG
software_config_transport: {get_param: transport}
********************
2. stack create success, and we can get the resource metadata:
{
"os-collect-config": {
"heat": {
"password": "cf28968a97e145eaa3ea4de3cdcaa390",
"user_id": "728bd79a64e94c6f96ed9376dd06612e",
"stack_id": "s1/9dee60ee-5a19-46d8-abe5-545267372545",
"resource_name": "th_server",
"auth_url": "http://10.3.150.21/identity/v3/",
"project_id": "aa72a55cf11e4549a18572f5ae81576e"
},
"collectors": [
"ec2",
"heat",
"local"
]
},
"deployments": []
}
3. update the stack to change software_config_transport=ZAQAR_MESSAGE, then we get the resource metadata:
{
"deployments": [],
"os-collect-config": {
"zaqar": {
"project_id": "aa72a55cf11e4549a18572f5ae81576e",
"auth_url": "http://10.3.150.21/identity/v3/",
"password": "3c447e63a5e9403daa50922bb93abf43",
"user_id": "728bd79a64e94c6f96ed9376dd06612e",
"queue_id": "s1-th_server-42qyz6i2rhqv"
},
"heat": {
"password": null,
"user_id": null,
"stack_id": null,
"resource_name": null,
"auth_url": null,
"project_id": null
},
"collectors": [
"ec2",
"zaqar",
"local"
]
}
}
4. we can see that only the password is changed, but the user_id is unchanged. Although the stack is set to UPDATE_COMPLETE, but we can see heat-enging logs and there is an exception (Unauthorized) while updating software config transport, we just log it and ignore it: http://paste.openstack.org/show/612373/
5. the stack can not be deleted due the same reason: http://paste.openstack.org/show/612374/
Fix proposed to branch: master /review. openstack. org/473765
Review: https:/