1) Create a stack using template bug.yaml (put your own flavor, image and network_id)
heat_template_version: 2013-05-23
description: Sample Stack
resources:
instance-port:
type: OS::Neutron::Port
properties:
network_id: dca58aa6-caeb-469f-8200-c5f85b07e106
instance:
type: OS::Nova::Server
properties:
flavor: m1.nano
image: TestVM
networks:
- port : { get_resource : instance-port }
2) Wait for stack to go to CREATE_COMPLETE
3) Update the stack with bug2.yaml
heat_template_version: 2013-05-23
description: Sample Stack
resources:
instance-port:
type: OS::Neutron::Port
properties:
network_id: dca58aa6-caeb-469f-8200-c5f85b07e106
instance:
type: OS::Nova::Server
properties:
flavor: m1.nano
image: TestVM
networks:
- port : { get_resource : instance-port }
instance2-port:
type: OS::Neutron::Port
properties:
network_id: dca58aa6-caeb-469f-8200-c5f85b07e106
instance2:
type: OS::Nova::Server
properties:
flavor: m1.nano
image: TestVM
networks:
- port : { get_resource : instance2-port }
4) Wait for stack to go to UPDATE_COMPLETE
Expected:
Stack has 2 instances with fixed IPs
Observed:
First instance lost the port attachment (and thus the fixed IP), although the port is still there.
Might be related:
I see the following in heat-engine logs:
2014-11-17 12:15:39.585 DEBUG heat.engine.scheduler [-] Task Stack "bug" [446854a3-84c8-458e-894e-ceed62784095] Update complete from (pid=8275) step /opt/stack/heat/heat
/engine/scheduler.py:224
2014-11-17 12:15:39.585 DEBUG heat.engine.stack [-] Deleting backup stack from (pid=8275) update_task /opt/stack/heat/heat/engine/stack.py:810
2014-11-17 12:15:39.602 INFO heat.engine.stack [-] Stack DELETE IN_PROGRESS (bug): Stack DELETE started
2014-11-17 12:15:39.607 DEBUG heat.engine.scheduler [-] Task DependencyTaskGroup((destroy) {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83
b3ad-d470-4fff-aec7-fa3629b9a983]: {}, Server "instance" Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8]
Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]}}) starting from (pid=8275) start /opt/stack/heat/heat/engine/scheduler.py:190
2014-11-17 12:15:39.607 DEBUG heat.engine.scheduler [-] Task DependencyTaskGroup((destroy) {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83
b3ad-d470-4fff-aec7-fa3629b9a983]: {}, Server "instance" Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]}}) running from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:218
2014-11-17 12:15:39.607 DEBUG heat.engine.scheduler [-] Task destroy from None starting from (pid=8275) start /opt/stack/heat/heat/engine/scheduler.py:190
2014-11-17 12:15:39.607 DEBUG heat.engine.scheduler [-] Task destroy from None running from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:218
2014-11-17 12:15:39.607 DEBUG heat.engine.scheduler [-] Task destroy from None complete from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:224
2014-11-17 12:15:39.607 DEBUG heat.engine.scheduler [-] Task DependencyTaskGroup((destroy) {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {}, Server "instance" Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]}}) sleeping from (pid=8275) _sleep /opt/stack/heat/heat/engine/scheduler.py:163
/usr/local/lib/python2.7/dist-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed
from py-amqp v1.5.0.
warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
/usr/local/lib/python2.7/dist-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed
from py-amqp v1.5.0.
warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
2014-11-17 12:15:40.608 DEBUG heat.engine.scheduler [-] Task DependencyTaskGroup((destroy) {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {}, Server "instance" Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]}}) running from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:218
2014-11-17 12:15:40.608 DEBUG heat.engine.scheduler [-] Task destroy from None starting from (pid=8275) start /opt/stack/heat/heat/engine/scheduler.py:190
2014-11-17 12:15:40.608 DEBUG heat.engine.scheduler [-] Task destroy from None running from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:218
2014-11-17 12:15:40.608 DEBUG heat.engine.scheduler [-] Task destroy from None complete from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:224
2014-11-17 12:15:40.608 DEBUG heat.engine.scheduler [-] Task DependencyTaskGroup((destroy) {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {}, Server "instance" Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]}}) sleeping from (pid=8275) _sleep /opt/stack/heat/heat/engine/scheduler.py:163
/usr/local/lib/python2.7/dist-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed
from py-amqp v1.5.0.
warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
/usr/local/lib/python2.7/dist-packages/amqp/channel.py:616: VDeprecationWarning: The auto_delete flag for exchanges has been deprecated and will be removed
from py-amqp v1.5.0.
warn(VDeprecationWarning(EXCHANGE_AUTODELETE_DEPRECATED))
2014-11-17 12:15:41.608 DEBUG heat.engine.scheduler [-] Task DependencyTaskGroup((destroy) {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {}, Server "instance" Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]}}) running from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:218
2014-11-17 12:15:41.609 DEBUG heat.engine.scheduler [-] Task DependencyTaskGroup((destroy) {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {}, Server "instance" Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]: {Port "instance-port" [c1e4bed7-7de9-4082-8199-36efef41f9c8] Stack "bug" [3a83b3ad-d470-4fff-aec7-fa3629b9a983]}}) complete from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:224
2014-11-17 12:15:41.627 INFO heat.engine.stack [-] Stack DELETE COMPLETE (bug): Stack DELETE completed successfully
2014-11-17 12:15:41.717 DEBUG heat.engine.scheduler [-] Task update_task from Stack "bug" [446854a3-84c8-458e-894e-ceed62784095] complete from (pid=8275) step /opt/stack/heat/heat/engine/scheduler.py:224
2014-11-17 12:15:41.727 DEBUG heat.engine.stack_lock [-] Engine 73829574-b712-4ff9-a12f-11db2baabb7d released lock on stack 446854a3-84c8-458e-894e-ceed62784095 from (pid=8275) release /opt/stack/heat/heat/engine/stack_lock.py:123
This issues happens in stable/juno but not in stable/icehouse