Skip to content

Commit

Permalink
Revert changing to FQDN for hostnames.
Browse files Browse the repository at this point in the history
5dd1553 moved to using a FQDN for
host names. This caused bug 1151012, but Russell and I also believe
the change will break the host column on the instances table. I can't
do a plain old git revert for this change because a lot of the code
has moved after this change.

Revert to using just the hostname (no domain), and we'll revisit the
intent of 5dd1553 separately.

Resolves bug 1151012.

Change-Id: I944f46d6eb2a6944a12833ec8de7afa2b18e66e7
  • Loading branch information
mikalstill committed Mar 11, 2013
1 parent f543f34 commit c8b240d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nova/compute/manager.py
Expand Up @@ -80,7 +80,7 @@

compute_opts = [
cfg.StrOpt('console_host',
default=socket.getfqdn(),
default=socket.gethostname(),
help='Console proxy host to use to connect '
'to instances on this host.'),
cfg.StrOpt('default_access_ip_network_name',
Expand Down
2 changes: 1 addition & 1 deletion nova/console/manager.py
Expand Up @@ -37,7 +37,7 @@
default=False,
help='Stub calls to compute worker for tests'),
cfg.StrOpt('console_public_hostname',
default=socket.getfqdn(),
default=socket.gethostname(),
help='Publicly visible name for this console host'),
]

Expand Down
2 changes: 1 addition & 1 deletion nova/netconf.py
Expand Up @@ -48,7 +48,7 @@ def _get_my_ip():
default=_get_my_ip(),
help='ip address of this host'),
cfg.StrOpt('host',
default=socket.getfqdn(),
default=socket.gethostname(),
help='Name of this node. This can be an opaque identifier. '
'It is not necessarily a hostname, FQDN, or IP address. '
'However, the node name must be valid within '
Expand Down

0 comments on commit c8b240d

Please sign in to comment.