Github user ProjectMoon commented on the pull request:
https://github.com/apache/cloudstack/pull/988#issuecomment-152513166
While I haven't pushed new work to this PR yet, I do have a prototype of
what I intend to do, and am looking for thoughts on it here.
My plan:
* Move MachineNameService and UUID manager into one interface. Remove the
methods from VirtualMachineNameService which are not used. Call this interface
ResourceNamingPolicy.
* Create a ResourceNamingPolicy extension registry, and a new module for
the default naming policy (which is the UUIDs ACS generates at the moment).
* When using methods from ResourceNamingPolicy, iterate through all
registered policies until one returns a name that is not null. This is in line
with other things like API authenticators, host planners, etc.
* Expand the use of the ResourceNamingPolicy beyond virtual machines and
volumes (which is what VirtualMachineName/UUIDManager touch currently). The
plan is to make use of this for these entities to begin with: VMs, volumes,
templates, security groups.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---