/var/log/vmware/vcha/prepare-vcha.log matches the below snippetYYYY-MM-DDTHH:MM:SSZ 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: 1YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha *** START: Vcha pre-setup ***YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha embedded DB Type can be vcha enabled.YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Found Eth1 interface with IP ##.###.##.##.###/##YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Completed Vcha Network config saved to vchaeth.cfg.YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha vcha.aware file createdYYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Opening firewall ports for VCHA...YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Reloading firewall...YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Saving clean pg_hba.conf...YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Saving clean pg-firewall..YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Completed setup of firewall for vcha.YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Installing the vcha-hacheck boot script...YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Setting interface eth0 to manual mode...YYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Completed updating /etc/systemd/network/10-eth0.network to manualYYYY-MM-DDTHH:MM:SSZ INFO prepare-vcha Successfully set interface eth0 to manual mode.YYYY-MM-DDTHH:MM:SSZ 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
chage -l root returns - Authentication token is no longer validroot@hostname [ ~ ]# chage -l rootYou are required to change your password immediately (root enforced)chage: PAM: Authentication token is no longer valid; new one requiredLogs present in /var/log/vmware/vpxd/vpxd.log matches the below snippet
YYYY-MM-DDTHH:MM:SSZ info vpxd[07076] [Originator@6876 sub=vpxLro opId=########-####-####-####-############] com.vmware.vcenter.vcha.cluster.deploy: taskId task-######:######-####-####-####-############YYYY-MM-DDTHH:MM:SSZ info vpxd[06741] [Originator@6876 sub=vpxLro opId=########-####-####-####-############] [VpxLRO] -- BEGIN task-######-- Datacenters -- com.vmware.vcenter.vcha.cluster.deploy --YYYY-MM-DDTHH:MM:SSZ error vpxd[06741] [Originator@6876 sub=vpxUtil opId=########-####-####-####-############] /usr/bin/python failed with error [1] and output []YYYY-MM-DDTHH:MM:SSZ error vpxd[06741] [Originator@6876 sub=vpxUtil opId=########-####-####-####-############] /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--> ]YYYY-MM-DDTHH:MM:SSZ info vpxd[06741] [Originator@6876 sub=FailoverClusterConfigurator opId=######:######-####-####-####-############] Pre-setup: vcha.aware, SSH keys and PGYYYY-MM-DDTHH:MM:SSZ error vpxd[06741] [Originator@6876 sub=vpxUtil opId=########-####-####-####-############] /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:
YYYY-MM-DDTHH:MM:SSZ info vpxd[06741] [Originator@6876 sub=FailoverClusterOperator opId=########-####-####-####-############] 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
/usr/lib/vmware-vcha/scripts/createVchaEthCfg.py The value passed (###.###..###.#) contains an extra dot, which causes the script to raise a ValueError: 99 raise ValueError('node2Ip - %s: %s' % (err, IP_ERRS.get(err)))"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:
chage -l rootpasswdchage -l rootResolution 2: Invalid or Malformed IP Address Observed in /var/log/vmware/vpxd/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-uiservice-control --restart --vmware-vpxd