Hi
I’ve needed to change the domain suffix on the LXD cluster members, so done:
- the host via
hostnamectl set-hostname
- and
lxc cluster rename
These have successfully handled the NAME
component of the cluster members but there are still components that are using the old name, e.g. URL
in this list:
lxc cluster list
+-------------------------------+--------------------------------------------+------------------+--------------+----------------+-------------+--------+-------------------+
| NAME | URL | ROLES | ARCHITECTURE | FAILURE DOMAIN | DESCRIPTION | STATE | MESSAGE |
+-------------------------------+--------------------------------------------+------------------+--------------+----------------+-------------+--------+-------------------+
| clustermember1.new-domain.net | https://clustermember1.old-domain.net:8443 | database-standby | x86_64 | default | | ONLINE | Fully operational |
+-------------------------------+--------------------------------------------+------------------+--------------+----------------+-------------+--------+-------------------+
| clustermember2.new-domain.net | https://clustermember2.old-domain.net:8443 | database-leader | x86_64 | default | | ONLINE | Fully operational |
| | | database | | | | | |
+-------------------------------+--------------------------------------------+------------------+--------------+----------------+-------------+--------+-------------------+
and the member’s self-signed certificate CN that was generated during lxd init
.
The old domain will not be resolvable in the future so I need to get rid of these references. Is there an in-place method of renaming these references (and others that I’m not aware of), and if so what is the procedure? I see that Stephane answered this question back in 2019 but wondered whether things have changed since then?
Thanks