Hello,
I did a mistake, I changed the hostname of my cluster without thinking it will destroy so many things..
I changed the hostname from ansible with
Then I changed the hosts file with this template
Well, it's not working anymore now and I would like to recover nodes.
I saw some tutorials, tried so many things, I think I do need some helps
Dunno what i still need to fix to make it up again, if you have any clues
I did a mistake, I changed the hostname of my cluster without thinking it will destroy so many things..
I changed the hostname from ansible with
Code:
- name: Set a hostname
become: true
ansible.builtin.hostname:
name: "{{ local_dns }}" # changing mox01.ether-source.fr to cyclops-alpha.ether-source.fr
Code:
root@cyclops-alpha:~# pvecm add cyclops-alpha.ether-source.fr
ipcc_send_rec[1] failed: Connection refused
ipcc_send_rec[2] failed: Connection refused
ipcc_send_rec[3] failed: Connection refused
Unable to load access control list: Connection refused
Then I changed the hosts file with this template
Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
{% for host in groups['init'] %}
{{ hostvars[host]['ansible_default_ipv4']['address'] }} {{ hostvars[host]['local_dns']}}
{% endfor %}
Well, it's not working anymore now and I would like to recover nodes.
I saw some tutorials, tried so many things, I think I do need some helps
Code:
● pveproxy.service - PVE API Proxy Server
Loaded: loaded (/lib/systemd/system/pveproxy.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-12-15 23:06:49 CET; 18min ago
Process: 1210 ExecStartPre=/usr/bin/pvecm updatecerts --silent (code=exited, status=111)
Process: 1211 ExecStart=/usr/bin/pveproxy start (code=exited, status=0/SUCCESS)
Main PID: 1212 (pveproxy)
Tasks: 4 (limit: 76987)
Memory: 133.9M
CPU: 15.954s
CGroup: /system.slice/pveproxy.service
├─1212 pveproxy
├─2080 pveproxy worker
├─2081 pveproxy worker
└─2082 pveproxy worker
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[1212]: starting 2 worker(s)
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[1212]: worker 2080 started
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[1212]: worker 2081 started
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[2080]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key)>
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[2081]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key)>
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[2079]: worker exit
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[1212]: worker 2079 finished
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[1212]: starting 1 worker(s)
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[1212]: worker 2082 started
Dec 15 23:24:59 cyclops-alpha.ether-source.fr pveproxy[2082]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key)
Code:
root@cyclops-alpha:~# hostname
cyclops-alpha.ether-source.fr
root@cyclops-alpha:~# cat /etc/hostname
cyclops-alpha.ether-source.fr
root@cyclops-alpha:~# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.15 cyclops-alpha cyclops-alpha.ether-source.fr
192.168.1.23 cerberus-alpha.ether-source.fr
192.168.1.189 cerberus-beta.ether-source.fr
192.168.1.161 cerberus-gamma.ether-source.fr
192.168.1.3 mermaid-alpha.ether-source.fr
192.168.1.106 minotor-alpha.ether-source.fr
192.168.1.43 basilisk.ether-source.fr
192.168.1.144 cyclops-beta.ether-source.fr
192.168.1.42 cyclops-gamma.ether-source.fr
192.168.1.138 cyclops-epsilon.ether-source.fr
192.168.1.172 cyclops-zeta.ether-source.fr
192.168.1.198 cyclops-eta.ether-source.fr
192.168.1.113 cyclops-theta.ether-source.fr
192.168.1.41 centaurs-alpha.ether-source.fr