The hostname of the VMs spawned through openstack are always in lower cases regardless of the name given through nova.
Issue
-
The hostname of the VMs spawned through openstack are always in lower cases regardless of the name given through nova.
-
How to set instance hostname with combination of uppercase and lowercase?
-
When creating instance in uppercase, instance host name is set in lowercase in instance OS side.
-
In the following example, we see the name of the VM is
AbCd
:
(overcloud) [stack@undercloud-0 ~]$ openstack server list
+--------------------------------------+---------+--------+--------------+-------+---------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+---------+--------+--------------+-------+---------+
| e6ad7ccc-df50-4b5a-8b8d-b0e1df9a30c8 | 'AbCd' | ACTIVE | n1=10.1.1.6 | | m1.nano |
| 5a7cdf7d-6500-401f-85e5-8e29a437eefc | AbCd | ACTIVE | n1=10.1.1.16 | | m1.nano |
+--------------------------------------+---------+--------+--------------+-------+---------+
- When logging on the VM, the hostname is all lowercase:
abcd login: root
Password:
[root@abcd ~]#
- Is it possible setting instance hostname in combination of uppercase and lowercase automatically?
Environment
- Red Hat OpenStack Platform 13 (RHOSP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.