Disable IPV6 On Airctl Management Cluster
Problem
ETCD fails to start as it looks for IPV6, while the underlying node has IPV6 disabled.
- ETCD fails with the below errors
"level":"warn","ts":"2023-05-07T09:41:51.525Z","caller":"etcdmain/etcd.go:176","msg":"failed to start etcd","error":"listen tcp [::1]:2379: socket: address family not supported by protocol"}
{"level":"fatal","ts":"2023-05-07T09:41:51.525Z","caller":"etcdmain/etcd.go:271","msg":"discovery failed","error":"listen tcp [::1]:2379: socket: address family not supported by protocol","stacktrace":"go.etcd.io/etcd/etcdmain.startEtcdOrProxyV2\n\t/tmp/etcd-release-3.4.14/etcd/release/etcd/etcdmain/etcd.go:271\ngo.etcd.io/etcd/etcdmain.Main\n\t/tmp/etcd-release-3.4.14/etcd/release/etcd/etcdmain/main.go:46\nmain.main\n\t/tmp/etcd-release-3.4.14/etcd/release/etcd/main.go:28\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200"}
Environment
- Platform9 Edge Cloud - 5.6.7 and higher.
Cause
- IPV6 is disabled on the underlying nodes but the management cluster still points to the IPV6 address.
Procedure
To disable IPV6 on the management cluster1, we need to delete the management cluster, disable IPV6 and recreate the cluster again.
- Delete the management cluster using
$ airctl advanced-ddu delete-mgmt
. - Disable IPV6 by adding
**ipv6: false**
value in_clusterSpec.yml_
located at_/root_
- Recreate the management cluster using
$ airctl advanced-ddu create-mgmt
this should take latest_clusterSpec.yml_
which has IPV6 disabled. - Verify if IPV6 address for ETCD is not reflected at "
_/etc/pf9/nodelet/config_sunpike.yaml_
" .
Was this page helpful?