AWS AMI/Azure VM PTA upgrade failure

AWS AMI/Azure VM PTA upgrade failure

125
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:52 PM


Symptom


PTA upgrade failed mainly due to some dependencies on the OS packages that needs to be downloaded from the online centos repository specially for PTA server deployed via AWS AMI/Azure VM.





Environment


12.2

PTA Azure/AWS Upgrade



Cause


PTA deployed via AMI/VM to AWS/Azure cloud may encounter the following OS package upgrade issues when performing PTA upgrade.


Error stack seen (/tmp/pta_upgrade.log):

---------------------------------------------

Task createRepos ended with code 0

Starting task installPackages

Installing packages...

LOG | [2022-01-10|13:02:57|UTC] | Uninstalling urllib3 using pip.

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Upgrading OS packages (using yum upgrade)...

Upgrading packages...

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Cannot find a valid baseurl for repo: base/7/x86_64

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=genclo error was

14: curl#7 - "Failed to connect to xxxx:xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx: Network is unreachable"

Starting packages installation from repo...

Cannot find a valid baseurl for repo: base/7/x86_64

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=genclo error was

14: curl#7 - "Failed to connect to xxxx:xxxx:xx:xxxx:xxxx:xxxx:xxxx:xxxx: Network is unreachable"

ERROR: An error has occurred while installing libcgroup!

Failed to upgrade repo packages.

Task installPackages ended with code 7

--------------------------------------



Resolution


To resolve this, ensure that PTA server NIC is able to access the internet (centos repository online) during the upgrade where missing package dependencies are required to be downloaded from online repositories during the PTA OS upgrade.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000oT7CAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail