Provide a way to sanitize the generated name of a physical resource

Registered by Mathieu Velten

In our infra the Nova name is used as the registered hostname in our DNS. Since hostnames don't support underscore and we want coherency between the Nova name and the hostname to avoid confusing the user, Nova has been patched to reject request with _ at the API level.
However in Heat resource names like the server name are derived from the stack name and the heat resource name, which can include _.
My proposition is to add a configurable element (resource_name_strip_regex for example) that allow to specify a regex to filter the name. Any piece of the name matching the regex would be removed.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Mathieu Velten
Direction:
Needs approval
Assignee:
Mathieu Velten
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.