pcfarrartt
Contributor
Contributor

VCSA Upgrade 6.5 to 6.7 Fails Stage 2 Pre Upgrade Checks

Jump to solution

I'm trying to upgrade my VCSA from 6.5 to 6.7 and it fails the Stage 2 Pre Upgrade Checks with a pretty unhelpful:

"Cannot validate target appliance configuration as not enough information from the source appliance can be collected. For more details check out the server logs"

I've attached the upgrade logs, can anyone assist with this? Thanks Smiley Happy

0 Kudos
1 Solution

Accepted Solutions
a_p_
Leadership
Leadership

Only a guess!

Maybe the issue is related to the error in /var/log/vmware/upgrade/upgrade-requirements.log

2018-12-03T10:44:33.250Z ERROR apply_networking Unrecognized network configuration flags 'STATICV4+NONEV6'.

2018-12-03T10:44:33.250Z ERROR upgrade_commands Unable to execute pre-upgrade checks on target machine

Traceback (most recent call last):

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 2750, in _executeTargetPreupgradeChecks

    if self._validateNetworking(preupgradeResult):

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 2652, in _validateNetworking

    self._hasAutov6ResolvableConflicts(sourceConfig, sourceFqdn, sourceDnsServers)

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 1930, in _hasAutov6ResolvableConflicts

    preservedFlags, _droppedFlags = getPreservedNetFlags(sourceNetworking['config_flags'])

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/apply_networking.py", line 410, in getPreservedNetFlags

    raise NetworkConfigError(error)

apply_networking.NetworkConfigError: Unrecognized network configuration flags 'STATICV4+NONEV6'.

Do you have IPv6 disabled on the source? Maybe it helps to enable it for the upgrade!?

As mentioned, this is only a guess, so make sure that you have a backup/snapshot.

André

View solution in original post

0 Kudos
10 Replies
msripada
Virtuoso
Virtuoso

can you check if there are any issues with VUM? also any unwanted iso's like 5.5 are uploaded to update manager?

Thanks,

MS

0 Kudos
pcfarrartt
Contributor
Contributor

No issues with VUM at all, and there are no 5.5 ISO's uploaded or anything like that.

0 Kudos
a_p_
Leadership
Leadership

Only a guess!

Maybe the issue is related to the error in /var/log/vmware/upgrade/upgrade-requirements.log

2018-12-03T10:44:33.250Z ERROR apply_networking Unrecognized network configuration flags 'STATICV4+NONEV6'.

2018-12-03T10:44:33.250Z ERROR upgrade_commands Unable to execute pre-upgrade checks on target machine

Traceback (most recent call last):

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 2750, in _executeTargetPreupgradeChecks

    if self._validateNetworking(preupgradeResult):

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 2652, in _validateNetworking

    self._hasAutov6ResolvableConflicts(sourceConfig, sourceFqdn, sourceDnsServers)

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 1930, in _hasAutov6ResolvableConflicts

    preservedFlags, _droppedFlags = getPreservedNetFlags(sourceNetworking['config_flags'])

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/apply_networking.py", line 410, in getPreservedNetFlags

    raise NetworkConfigError(error)

apply_networking.NetworkConfigError: Unrecognized network configuration flags 'STATICV4+NONEV6'.

Do you have IPv6 disabled on the source? Maybe it helps to enable it for the upgrade!?

As mentioned, this is only a guess, so make sure that you have a backup/snapshot.

André

View solution in original post

0 Kudos
pcfarrartt
Contributor
Contributor

I've got IPv6 disabled on the source and on the new appliance. I'll try enabling it on the source and see what happens..

Update - I enabled  IPv6 in DHCP mode on the source appliance and it no longer failed the pre-upgrade checks. Must be a bug?

0 Kudos
dufekjan
Contributor
Contributor

hello I try the same (to upgrade my VCSA from 6.5 to 6.7 and it fails the Stage 2 Pre Upgrade Checks).

"Cannot validate target appliance configuration as not enough information from the source appliance can be collected. For more details check out the server logs"

I do not understand all logs, but  someone may help please? log attached

Big Thanks

Jan

0 Kudos
Raudi
Expert
Expert

Jes, it must be a bug, had the same here a few day's ago, with a clean installed VCSA 6.5U2d when uprading this to 6.7U1, and foud in the logs the same:

2018-12-11T18:28:19.92Z INFO upgrade_commands Validating networking of the source and target.

2018-12-11T18:28:19.93Z INFO apply_networking Checking network adapter eth0 2018-12-11T18:28:19.93Z INFO apply_networking Extracting active network adapters on host 10.1.0.252 2018-12-11T18:28:21.850Z INFO apply_networking Active Network adapters found are ['eth0'] 2018-12-11T18:28:21.851Z INFO apply_networking Network adapter eth0 present in ['eth0']: True 2018-12-11T18:28:32.785Z INFO sdk_utils Appliance has version 6.5.0.0 2018-12-11T18:28:38.353Z INFO transfer_network Status of ntpd service on Photon OS is: enabled 2018-12-11T18:28:38.746Z INFO transfer_network IPv4 configuration -> source vCSA: ipv4=10.1.0.252 subnet=255.255.0.0 destination vCSA: ipv4=10.1.0.253 subnet=255.255.0.0 2018-12-11T18:28:38.747Z INFO transfer_network Source and destination vCSA are in the same subnet.

2018-12-11T18:28:38.832Z INFO upgrade_commands Validating if source fqdn is only resolved by Autov6 address and if it will be dropped.

2018-12-11T18:28:38.833Z ERROR apply_networking Unrecognized network configuration flags 'STATICV4+NONEV6'.

2018-12-11T18:28:38.834Z ERROR upgrade_commands Unable to execute pre-upgrade checks on target machine Traceback (most recent call last):

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 2750, in _executeTargetPreupgradeChecks

    if self._validateNetworking(preupgradeResult):

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 2652, in _validateNetworking

self._hasAutov6ResolvableConflicts(sourceConfig, sourceFqdn, sourceDnsServers)

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/upgrade_commands.py", line 1930, in _hasAutov6ResolvableConflicts

    preservedFlags, _droppedFlags = getPreservedNetFlags(sourceNetworking['config_flags'])

  File "/usr/lib/vmware/cis_upgrade_runner/bootstrap_scripts/apply_networking.py", line 410, in getPreservedNetFlags

    raise NetworkConfigError(error)

apply_networking.NetworkConfigError: Unrecognized network configuration flags 'STATICV4+NONEV6'.

So i opened the apply_networking.py and looked to line 410, this is the end of this if query:

   @raise NetworkConfigError: If the given flags are invalid.

    '''

    if flags in ("DHCPV4", "DHCPV6", "AUTOV6", "STATICV4", "STATICV6", "STATICV4+STATICV6"):

        return (flags, "")

    elif flags in ("DHCPV4+DHCPV6", "DHCPV4+AUTOV6"):

        return ("DHCPV4", flags[len("DHCPV4") + 1:])

    elif flags in ("STATICV4+DHCPV6", "STATICV4+AUTOV6"):

        return ("STATICV4", flags[len("STATICV4") + 1:])

    elif flags == "DHCPV4+STATICV6":

        return ("STATICV6", "DHCPV4")

    elif flags == "DHCPV6+AUTOV6":

        return ("DHCPV6", "AUTOV6")

    error = "Unrecognized network configuration flags '%s'." % flags

    logger.error(error)

    raise NetworkConfigError(error)

There is no "NONEV6", so all installations with disabled IPv6 will be fail. This must be a bug...

I enabled DHCP for IPv6 and the upgrade was successful. But got this warning:

The source appliance is operating in mixed networking mode STATICV4+DHCPV6. Network settings for DHCPV6 will not be preserved.

No problem for the upgrade in this case...

0 Kudos
palonso
VMware Employee
VMware Employee

Hi Raudi,

You've shown your skills; that's impressive Smiley Wink. For a home lab or for testing could be a go-try, but for a production environment is not recommended as per the below reason.

Looking closely to the builds and checking in the article https://kb.vmware.com/s/article/2143838 we can see that going from build 10964411 (released on 2018-11-29) to 10244745 (released on 2018-10-16) is considered back in time, and thus, I'm afraid that unsupported, as per the VMware Product Interoperability Matrices (https://www.vmware.com/resources/compatibility/sim/interop_matrix.php#upgrade&solution=2)

From: VCSA 6.5 U2d P03 | 2018-11-29 | 10964411

To: VCSA 6.7 U1 | 2018-10-16 | 10244745

pastedImage_0.png

pastedImage_1.png

Note: 23/12/2018

vCenter Appliance 6.7 U1a has been just released earlier this week, which means that now is a supported path to upgrade from  VCSA 6.5 U2d P03, as the release date, 20/12/2018 is later than the 6.5 U2d P03 (29/11/2018)

The details are: vCenter Appliance 6.7.0 U1a | Release date 2018-12-20 | build 11338176. Please see release notes at: https://docs.vmware.com/en/VMware-vSphere/6.7/rn/vcenter-server-appliance-photonos-security-patches....

Best regards,

Pablo

0 Kudos
palonso
VMware Employee
VMware Employee

Hi, Could you please confirm which exact build are you going from and to?

According to https://www.vmware.com/resources/compatibility/sim/interop_matrix.php#upgrade&solution=2 , depending on the builds origin and destination, not all the builds can be upgraded, and can be unsupported as it is considered "back-in time". Please check the information tooltip (red arrow)

pastedImage_5.png

pastedImage_3.png

0 Kudos
dufekjan
Contributor
Contributor

Thanks Pablo,

so in other words I should update VCSA (present Version 6.5.0.10000 Build 6816762) to ver 6.5 upd2 and than migrate to 6.7, correct?

BR

Jan

0 Kudos
palonso
VMware Employee
VMware Employee

Hi Jan,

You could go directly to 6.7U1a that has just been released earlier this week: vCenter Appliance 6.7 U1a | 2018-12-20 | 11338176 (https://kb.vmware.com/s/article/2143838​)

as you're at: vCenter Server 6.5 Update 1b : 2017-10-26 : 6816762

There are a pair of fantastic online tool with info for upgrades here: https://vspherecentral.vmware.com/path-finder/  and here: https://vspherecentral.vmware.com/t/vsphere-upgrade/

Please always check the VMware Compatibility Guide before: https://www.vmware.com/resources/compatibility/search.php

Best regards,

Pablo

0 Kudos