Server UpdateReplace with existing port resource fails first time

Bug #1455297 reported by Rabi Mishra
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Sergey Kraynev

Bug Description

A Server resource with reference to Port resource always fails during UpdateReplace. Subsequent update completes successfully.

server_port.yaml:

heat_template_version: 2013-05-23

parameters:
  image:
    type: string
    default: cirros-0.3.1-x86_64-uec
  flavor:
    type: string
    default: m1.nano
  key_name:
    type: string
    default: heat_key
  private_net:
    type: string
    default: private
  private_subnet:
    type: string
    default: private-subnet

resources:
  port1:
    type: OS::Neutron::Port
    properties:
      network: {get_param: private_net}
      fixed_ips:
      - subnet: {get_param: private_subnet}

  server1:
    type: OS::Nova::Server
    properties:
      image: {get_param: image}
      flavor: {get_param: flavor}
      flavor_update_policy: REPLACE
      key_name: {get_param: key_name}
      networks:
      - port: {get_resource: port1}

#heat stack-create test_stack -f server_port.yaml
#heat stack-update test_stack -P server_port.yaml -P flavor=m1.tiny

| resource_status | CREATE_FAILED |
| resource_status_reason | Conflict: Port 6c5b73a4-6155-4885-9781-9c0873114006 is still in use. (HTTP 409) (Request-ID: req-7a03ff9c-8c61-44c9-b335-2ecfaa6d3781) |

If you update again it goes through.

Rabi Mishra (rabi)
Changed in heat:
assignee: nobody → Rabi Mishra (rabi)
summary: - Server UpdateReplace with existing port resource always fails
+ Server UpdateReplace with existing port resource fails first time
Angus Salkeld (asalkeld)
Changed in heat:
importance: Undecided → Medium
status: New → Triaged
milestone: none → liberty-1
tags: added: fixed-by-convergence
Changed in heat:
milestone: liberty-1 → liberty-2
Changed in heat:
milestone: liberty-2 → liberty-3
Changed in heat:
milestone: liberty-3 → liberty-rc1
Rabi Mishra (rabi)
Changed in heat:
assignee: Rabi Mishra (rabi) → nobody
Revision history for this message
Sergey Kraynev (skraynev) wrote :

Probably we may handle this case in this series https://review.openstack.org/#/c/220502/

Changed in heat:
assignee: nobody → Sergey Kraynev (skraynev)
status: Triaged → In Progress
Revision history for this message
Steven Hardy (shardy) wrote :

Can this be marked as fix committed now that https://review.openstack.org/#/c/220502/ has merged?

Or, should this be marked as a duplicate of bug #1455100?

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-rc1 → 5.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.