nova_flavor not idempotent with project name

Bug #1790795 reported by Tobias Urdin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-nova
Fix Released
High
Takashi Kajinami

Bug Description

When creating a flavor using nova_flavor and specifying the project by name it's not idempotent
as the resource loads the flavors with the project set as the project'd uuid.

Nova_flavor[amphora]/project (notice): project changed 'fa91b828e98148639a750a0147ac8b9f' to 'octavia'

zhongshengping (chdzsp)
Changed in puppet-nova:
assignee: nobody → zhongshengping (chdzsp)
Changed in puppet-nova:
status: New → Confirmed
Changed in puppet-nova:
assignee: zhongshengping (chdzsp) → Takashi Kajinami (kajinamit)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-nova (master)
Changed in puppet-nova:
status: Confirmed → In Progress
Changed in puppet-nova:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-nova (master)

Reviewed: https://review.opendev.org/c/openstack/puppet-nova/+/829512
Committed: https://opendev.org/openstack/puppet-nova/commit/77138476e03534da6de378f8e9576be84e370c75
Submitter: "Zuul (22348)"
Branch: master

commit 77138476e03534da6de378f8e9576be84e370c75
Author: Takashi Kajinami <email address hidden>
Date: Wed Feb 16 18:50:07 2022 +0900

    nova_flavor: Add the new project_name property

    The nova_flavor resource has been providing the project property which
    accepts both project name and id. However this implementation results
    in broken idempotency with project name used.

    This change introduces a separate project_name property, so that users
    can use project name with proper idempotency.

    Closes-Bug: #1790795
    Change-Id: Idee4af6931b8cf4a21d88f4cd38fe83468ec8efa

Changed in puppet-nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-nova (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/puppet-nova/+/830359

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-nova (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/puppet-nova/+/830359
Committed: https://opendev.org/openstack/puppet-nova/commit/bdf1413f75c4c491c9256c6f0157e8c9e1ea971f
Submitter: "Zuul (22348)"
Branch: stable/xena

commit bdf1413f75c4c491c9256c6f0157e8c9e1ea971f
Author: Takashi Kajinami <email address hidden>
Date: Wed Feb 16 18:50:07 2022 +0900

    nova_flavor: Add the new project_name property

    The nova_flavor resource has been providing the project property which
    accepts both project name and id. However this implementation results
    in broken idempotency with project name used.

    This change introduces a separate project_name property, so that users
    can use project name with proper idempotency.

    Closes-Bug: #1790795
    Change-Id: Idee4af6931b8cf4a21d88f4cd38fe83468ec8efa
    (cherry picked from commit 77138476e03534da6de378f8e9576be84e370c75)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-nova 20.2.0

This issue was fixed in the openstack/puppet-nova 20.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-nova 19.5.0

This issue was fixed in the openstack/puppet-nova 19.5.0 release.

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.