IBM Support

PowerVC backup fails with ValueError: max() arg is an empty sequence

Troubleshooting


Problem

Command powervc-opsmgr backup -c <clustername> may fail with:

Traceback (most recent call last):
  File "/usr/bin/powervc-opsmgr", line 17, in <module>
    sys.exit(main())
  File "/usr/lib/python3.9/site-packages/powervc_opsmgr/cmd/opsmgr.py", line 91, in main
    OpsManager()
  File "/usr/lib/python3.9/site-packages/powervc_opsmgr/cmd/opsmgr.py", line 41, in __init__
    ext[args.command](sys.argv)
  File "/usr/lib/python3.9/site-packages/powervc_opsmgr/flows/backup.py", line 57, in __init__
    self.backup(cluster_name, 'backup.yml', args.verbose, backup_path)
  File "/usr/lib/python3.9/site-packages/powervc_opsmgr/flows/backup.py", line 102, in backup
    backup_tar = max(glob.glob(os.path.
ValueError: max() arg is an empty sequence

Resolving The Problem

This is usually due to a mismatch between hostname -f and hostname in inventory file.
This can be verified by running:
powervc-opsmgr inventory -l
hostname -f

Both should match. In case of difference, please use below command and set hostname to match the one from your inventory file:

hostnamectl set-hostname <hostname of inventory file here>


Document Location

Worldwide


[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSVSPA","label":"IBM PowerVC for Private Cloud"},"ARM Category":[{"code":"a8m50000000L0jDAAS","label":"PowerVC"}],"ARM Case Number":"TS013395630","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

More support for:
IBM PowerVC for Private Cloud

Component:
PowerVC

Software version:
All Versions

Document number:
7006493

Modified date:
23 June 2023

UID

ibm17006493

Manage My Notification Subscriptions