####-##-#####:##:##Z INFO prepare-vcha *** START: Vcha pre-setup ***
####-##-#####:##:##Z INFO prepare-vcha embedded DB Type can be vcha enabled.
####-##-#####:##:##Z INFO prepare-vcha Found Eth1 interface with IP ##.###.##.##.###/##
####-##-#####:##:##Z INFO prepare-vcha Completed Vcha Network config saved to vchaeth.cfg.
####-##-#####:##:##Z INFO prepare-vcha vcha.aware file created
####-##-#####:##:##Z INFO prepare-vcha Opening firewall ports for VCHA...
####-##-#####:##:##Z INFO prepare-vcha Reloading firewall...
####-##-#####:##:##Z INFO prepare-vcha Saving clean pg_hba.conf...
####-##-#####:##:##Z INFO prepare-vcha Saving clean pg-firewall..
####-##-#####:##:##Z INFO prepare-vcha Completed setup of firewall for vcha.
####-##-#####:##:##Z INFO prepare-vcha Installing the vcha-hacheck boot script...
####-##-#####:##:##Z INFO prepare-vcha Setting interface eth0 to manual mode...
####-##-#####:##:##Z INFO prepare-vcha Completed updating /etc/systemd/network/10-eth0.network to manual
####-##-#####:##:##Z INFO prepare-vcha Successfully set interface eth0 to manual mode.
####-##-#####:##:##Z ERROR prepare-vcha Failed to create vcha user, stderr: You are required to change your password immediately (root enforced)
useradd: PAM: Authentication token is no longer valid; new one required
code: 1
root@hostname [ ~ ]# chage -l root
You are required to change your password immediately (root enforced)
chage: PAM: Authentication token is no longer valid; new one required
Logs present in /var/log/vmware/vpxd/vpxd.log
matches the below snippet
vpxd.log####-##-#####:##:##
Z info vpxd[07076] [Originator@6876 sub=vpxLro opId=150309f8-ccf3-439d-b107-8279c396faf3] com.vmware.vcenter.vcha.cluster.deploy: taskId task-######:######-####-####-####-################-##-#####:##:##
Z info vpxd[06741] [Originator@6876 sub=vpxLro opId=150309f8-ccf3-439d-b107-8279c396faf3] [VpxLRO] -- BEGIN task-######-- Datacenters -- com.vmware.vcenter.vcha.cluster.deploy --####-##-#####:##:##
Z error vpxd[06741] [Originator@6876 sub=vpxUtil opId=150309f8-ccf3-439d-b107-8279c396faf3] /usr/bin/python failed with error [1] and output []####-##-#####:##:##
Z error vpxd[06741] [Originator@6876 sub=vpxUtil opId=150309f8-ccf3-439d-b107-8279c396faf3] /usr/bin/python failed with error [1] and output [Traceback (most recent call last):--> File "/usr/lib/vmware-vcha/scripts/ipSubnet.py", line 62, in <module>
--> main()
--> File "/usr/lib/vmware-vcha/scripts/ipSubnet.py", line 57, in main
--> if matchSubnet(ip1, ip2):
--> File "/usr/lib/vmware-vcha/scripts/ipSubnet.py", line 33, in matchSubnet
--> sameSubnet = checkSameSubnet(ip1, ip2)
--> File "/usr/lib/vmware-vcha/scripts/ipSubnet.py", line 22, in checkSameSubnet
--> ipnet2 = IPNetwork(ip2, strict=False)
--> File "/usr/lib/python3.7/ipaddress.py", line 84, in ip_network
--> address)
--> ValueError: '##.###.###.### / ###.###..###.#' does not appear to be an IPv4 or IPv6 network
--> ]
####-##-#####:##:##
Z info vpxd[06741] [Originator@6876 sub=FailoverClusterConfigurator opId=######:######-####-####-####-############] Pre-setup: vcha.aware, SSH keys and PG####-##-#####:##:##
Z error vpxd[06741] [Originator@6876 sub=vpxUtil opId=150309f8-ccf3-439d-b107-8279c396faf3] /usr/bin/python failed with error [1] and output [logs available at: /var/log/vmware/vcha--> Traceback (most recent call last):
--> File "/usr/lib/vmware-vcha/scripts/preSetup.py", line 479, in setupVchaEthCfg
--> witnessIp, selfGatewayIp, peerGatewayIp, checkIps)
--> File "/usr/lib/vmware-vcha/scripts/createVchaEthCfg.py", line 185, in createVchaEthCfg
--> wtnsIp, node1GwIp, node2GwIp)
--> File "/usr/lib/vmware-vcha/scripts/createVchaEthCfg.py", line 99, in checkAllIPFormat
--> raise ValueError('node2Ip - %s: %s' % (err, IP_ERRS.get(err)))
--> ValueError: node2Ip - 6: Expected valid Netmask or CIDR prefix.
--> During handling of the above exception, another exception occurred:####-##-#####:##:##
Z info vpxd[06741] [Originator@6876 sub=FailoverClusterOperator opId=150309f8-ccf3-439d-b107-8279c396faf3] com.vmware.vcenter.vcha.cluster.deploy Request:
--> },
--> "deployment": "AUTO",
--> "passive": {
--> "failover_ip": null,
--> "ha_ip": {
--> "default_gateway": null,
--> "dns_servers": null,
--> "ip_family": "IPV4",
--> "ipv4": {
--> "address": "'##.###.###.###",
--> "prefix": null,
--> "subnet_mask": "###.###..###.#"
--> }
VMware vCenter Server Appliance 6.x
VMware vCenter Server Appliance 7.x
"passive": {
"ha_ip": {
...
"ipv4": {
"address": "##.###.###.###",
"prefix": null,
"subnet_mask": "###.###..###.#"
}
}
}
Resolution 1: Authentication Issue Observed in prepare-vcha.log
If an authentication error is encountered during VCHA deployment and the log indicates the root password needs to be changed, follow the steps below:
Resolution 2: Invalid or Malformed IP Address Observed in vpxd.log
If the vpxd.log
indicates an invalid IP address (e.g., extra dots or incorrect value in IP or Subnet), restart the required services:
service-control --restart --vsphere-ui
service-control --restart --vmware-vpxd