physical_resource_name of Nova server should not be overriden

Bug #1324499 reported by Qiming Teng
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Qiming Teng

Bug Description

When physical_resource_name of a Nova server is overridden, and the Nova server carries SOFTWARE_CONFIG as its user_data_format, we have to make sure the 'name' property of the server is unique across stack user domain. This is because Keystone will use the (stack_user_domain, resource_name) pair as a unique key for the user table. This would be a burden for users, and it cannot be safely guaranteed.

We need a fix to the physical_resource_name of a Nova server so that it can be 'automatically unique' across a stack_user_domain.

Qiming Teng (tengqim)
Changed in heat:
assignee: nobody → Qiming Teng (tengqim)
Changed in heat:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

I think having the resource name in the created user is only a convenience to indicate what that user belongs to. I'm fairly certain that these users are only ever accessed via their UUID, not their username.

Either Server shouldn't override physical_resource_name, or StackUser should call the actual Resource.physical_resource_name

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/96669

Changed in heat:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/96669
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=d85bbc9a4d12d7534ae8c19c7afded34f434c9c9
Submitter: Jenkins
Branch: master

commit d85bbc9a4d12d7534ae8c19c7afded34f434c9c9
Author: tengqim <email address hidden>
Date: Fri May 30 13:03:56 2014 +0800

    Fix physical_resource_name for Nova server

    This patch fixes the problem caused by the overridden
    physical_resource_name() in OS::Nova::Server resource. If the name
    assigned to the Server resource is used for Keystone user creation,
    there is a higher possibility of name conflicts.

    Change-Id: I5eff496aef8949db9c1f9865e8de33d2b58c7a7f
    Closes-Bug: #1324499

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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