When you abandon and adopt a stack, the outputs aren't resolved correctly, even though it looks like the associated resource has the correct resource_data, not sure if this is a general problem or an issue specific to OS::Heat::RandomString yet:
$ sh -x reproducer.sh
+ heat stack-create r1 -f random.yaml
+--------------------------------------+------------+-----------------+----------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+------------+-----------------+----------------------+
| 7899b522-7a35-47fe-bbee-91d55a16eea5 | r1 | CREATE_COMPLETE | 2014-03-28T19:22:01Z |
+--------------------------------------+------------+-----------------+----------------------+
+ heat stack-show r1
+ grep value
| | "output_value": "FSnNpirfiUovg7l4LMDPE4xAJsG2TA1W", |
+ heat stack-abandon r1
+ tee abandon_data.json
{
"status": "COMPLETE",
"name": "r1",
"template": {
"outputs": {
"name": {
"description": "name",
"value": {
"get_attr": [
"random",
"value"
]
}
}
},
"heat_template_version": "2013-05-23",
"resources": {
"random": {
"type": "OS::Heat::RandomString"
}
}
},
"action": "CREATE",
"id": "7899b522-7a35-47fe-bbee-91d55a16eea5",
"resources": {
"random": {
"status": "COMPLETE",
"name": "random",
"resource_data": {
"value": "FSnNpirfiUovg7l4LMDPE4xAJsG2TA1W"
},
"resource_id": "FSnNpirfiUovg7l4LMDPE4xAJsG2TA1W",
"action": "CREATE",
"type": "OS::Heat::RandomString",
"metadata": {}
}
}
}
+ heat stack-adopt r2 -f random.yaml -a abandon_data.json
+--------------------------------------+------------+----------------+----------------------+
| id | stack_name | stack_status | creation_time |
+--------------------------------------+------------+----------------+----------------------+
| c6db9b44-b874-4c21-8344-c5d98e143015 | r2 | ADOPT_COMPLETE | 2014-03-28T19:22:03Z |
+--------------------------------------+------------+----------------+----------------------+
+ heat stack-show r2
+ grep value
| | "output_value": null, |
$ cat reproducer.sh
heat stack-create r1 -f random.yaml
heat stack-show r1 | grep value
heat stack-abandon r1 | tee abandon_data.json
heat stack-adopt r2 -f random.yaml -a abandon_data.json
heat stack-show r2 | grep value
-bash-4.2$ cat random.yaml version: 2013-05-23
heat_template_
resources: :RandomString
random:
type: OS::Heat:
outputs:
name:
description: name
value: { get_attr: ['random', 'value'] }