Open bodenr opened 10 years ago
I like all of these solutions. The only one I'm uneasy about is having the server.name be the FQDN because it changes what name actually means from the point of view of the OpenStack API.
The current code is a solution for a single-tenant jumpgate environment as the default domain-name is now settable in the etc/jumpate.conf. However, it is not suitable for multi-tenant environment when two different tenants (or the same tenant) want to use a different domain name. Will transfer this to the next milestone so that can be tracked.
In the current jumpgate impl, the domain name is always
jumpgate.com
as per: https://github.com/softlayer/jumpgate/blob/master/jumpgate/compute/drivers/sl/servers.py#L200Clearly this is something that is slated to be updated given the 'TODO' in the code.
This task is to track such work.
A few ideas on how we might consider more dynamic fqdn on boot server:
This value should be used as the domain name when non is specified on the boot server call.
body['server']['name']
is in FQDN format, we split the hostname from the domain name and use the 1st portion for the hostname and the later for the domain name (i.e.<hostname>.<domain_name_may_include_dots>
)