Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

support for dynamic domain names on server boot #63

Open
bodenr opened this issue Mar 20, 2014 · 2 comments
Open

support for dynamic domain names on server boot #63

bodenr opened this issue Mar 20, 2014 · 2 comments

Comments

@bodenr
Copy link
Contributor

bodenr commented Mar 20, 2014

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#L200

Clearly 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:

  • IMHO there should be a conf option to specify the default domain name to use. For example in jumpgate.conf
[DEFAULT]
default_domain_name = provider.com

This value should be used as the domain name when non is specified on the boot server call.

  • In the jumpgate handling for boot server call we could:
    • Accept a server name which is in FQDN format. If the 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>)
    • Optionally consider supporting obtaining the host/domain name from user_data (http://docs.openstack.org/user-guide/content/user-data.html).. Based on the nova user_data it appears the way this is done for openstack proper is to pass down as user data. Thus we "could" check for user data in the server request body, base64 decode it and use as host/domain name.... On the fence about this one, but wanted to present it for completeness.
@sudorandom
Copy link
Contributor

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.

@jimlindeman
Copy link
Contributor

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.

@jimlindeman jimlindeman modified the milestones: R3 2014Q2, R4 2014Q3 Jul 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants