openstack-ansible/releasenotes/notes/container_inventory_hostname-d51b794a3ab9c2b8.yaml
Dmitriy Rabotyagov d74d038032 Do not use underscores in container names
According to RFC1034 [1], underscores are not legitimate symbols for
hostnames. We have a naming convention that historically uses underscores
in names of containers which leads to a complications in some cases/logic
Moreover, container actual hostnames are always different from their
inventory_hostnames, which might break some logic of external dependencies.

To change this historical issue, all new containers will have different
naming convention, where only dash will be used as a separator.
This will not touch already existing in inventory containers and they will
preserve their names for the time being.

[1] http://www.faqs.org/rfcs/rfc1034.html

Change-Id: Iedebf9935059ecfe8370f2a84ad52516cc93320e
2024-03-05 09:17:37 +00:00

14 lines
607 B
YAML

---
prelude: >
Naming convention for containers has changed in Ansible inventory
to match requirements defined by RFC1034.
From now on, all newly added containers will not have underscore (``_``)
symbol neither in their ``inventory_hostname`` nor in ``container_name``
This change does not touch or alter already existing containers in the
inventory.
In order to apply new naming convention for an existing environment you
need to delete containers on the host and from the inventory. After that
new container name will be generated and container can be created again.