[ PCA 2.3.1 ] Running ovmm_tuning.py fails with " return 0 if v1 == v2 else -1 if v1 < v2 else 1 ^ SyntaxError: invalid syntax"

(Doc ID 2315436.1)

Last updated on OCTOBER 10, 2017

Applies to:

Private Cloud Appliance - Version 2.3.1 and later
Linux x86-64

Symptoms

 On Oracle Private Cloud appliance, release 2.3.1, when attempting to run the ovmm_tuning.py script e.g. when following a restore procedure, the script fails with :

[root@ovcamn05r1 ~]# ovm_shell.sh -u admin -p Welcome1 -i /var/lib/ovca/ovm_scripts/ovmm_tuning.py
Script Exception:
Traceback (most recent call last):
File "/u01/ovs_server_build_3.4.2/manager/build/mgmt_core_201706151808_1398/management/MgmtInstall/ovm_shell/ovm_shell_v.py", line 0, in executeScript
File "/var/lib/ovca/ovm_scripts/ovmm_tuning.py", line 5, in ?
import ovmws_utils
File "/var/lib/ovca/ovm_scripts/ovmws_utils.py", line 54
return 0 if v1 == v2 else -1 if v1 < v2 else 1
^
SyntaxError: invalid syntax

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms