PNID change operation from the VAMI fails due to incorrect DNS resolution
search cancel

PNID change operation from the VAMI fails due to incorrect DNS resolution

book

Article ID: 402189

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Attempting to change the PNID from the VAMI fails with the following error:

    pnid_change.log
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-validate_hostname_change():1989 - ERROR - Failed to resolve IP using the specified DNS servers
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-determine_and_validate_changes():2203 - INFO - Old IPv4 address : <ip_address>
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-validate_hostname_change():1956 - INFO - IPv4 address from spec: <ip_address>
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-validate_ipv6_change():2128 - INFO - IPv6 is already disabled
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-determine_and_validate_changes():2240 - INFO - New IPv4 address : <ip_address>
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-create_task():1408 - INFO - Create task id: <task_id>:com.vmware.appliance.networking
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-update_task_status():1441 - INFO - Task : Modifying Network Configuration
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-update_network_config():1711 - INFO - updating network config with spec ChangeSpec(hostname='<vcenter_fqdn>', sso_user='<local_sso_administrator_account>', 
    sso_password='CENSORED', dns=DNSServerConfig(mode=DNSServerMode(string='is_static'), servers=['<dns_server>', '<dns_server>']), ipv4=Config(mode=Mode(string='STATIC'), 
    address='<ip_address>', prefix=24, default_gateway='<default_gateway>'), ipv6=Config(dhcp=False, autoconf=False, addresses=[], default_gateway=''))
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-update_network_config():1726 - INFO - Changing ipv4 config
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-run_command():81 - INFO - Running command: /opt/vmware/share/vami/vami_set_hostname <vcenter_fqdn>
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-run_command():99 - INFO - Command exited with exitcode : 0
    xxxx-xx-xx xx:xx:xx,zzz - pnid_utils-run_command():109 - INFO - Done running command
    xxxx-xx-xx xx:xx:xx,zzz - vpxd-update_vcdb():108 - INFO - Updating VCDB details.
    xxxx-xx-xx xx:xx:xx,zzz - vpxd-update_vcdb():135 - ERROR - Failed to get some PNID conf details.{'old_ipv4': '<ip_address>', 'new_ipv4': '<ip_address>', 'old_ipv6': None, 'new_ipv6': '', 'old_pnid': '<vcenter_fqdn>', 'new_pnid': None}

Environment

VMware vCenter Server

Cause

The workflow fails because the vCenter IP/Hostname does not have a correct name resolution

Resolution

  • Revert to snapshot/backup
  • Check DNS configuration