Symptoms

Installation of OA 6.0 Update 9 gets stuck and shows the error in /usr/local/pem/var/log/pa_updates_installer/pa_updates_installer.log:

Sep 15 20:57:13 linmn01 : INF [openapi:127.0.0.1:13 1:7303:f2f1db90 OpenAPI ]: ', 'extype_id' => 3110, 'module_id' => 'PPM', 'properties' => { 'command' => '/bin/sh -c /usr/local/pem/bin/modify-vps-config update 6.0.66', 'exit_code' => '
1', 'stderr' => 'Traceback (most recent call last):
Sep 15 20:57:13 linmn01 : INF [openapi:127.0.0.1:13 1:7303:f2f1db90 OpenAPI ]:   File "/usr/local/pem/bin/modify-vps-config", line 2, in ?
Sep 15 20:57:13 linmn01 : INF [openapi:127.0.0.1:13 1:7303:f2f1db90 OpenAPI ]:     import xml.etree.ElementTree as ET
Sep 15 20:57:13 linmn01 : INF [openapi:127.0.0.1:13 1:7303:f2f1db90 OpenAPI ]: ImportError: No module named etree.ElementTree
Sep 15 20:57:13 linmn01 : INF [openapi:127.0.0.1:13 1:7303:f2f1db90 OpenAPI ]: ', }, 'status' => -1, }

OA Management Node is hosted on a CentOS 5 server and installed Python version is 2.4.

Cause

Missing Python modules prevent the successful update. The issue will get addressed in scope of CCU-13346.

Resolution

  1. Make sure that elementtree python module is installed or install it otherwise:

    # yum install python-elementtree
    
  2. Change the line in /usr/local/pem/bin/modify-vps-config:

    was:

    [root@linmn01 ~]# grep ElementTree /usr/local/pem/bin/modify-vps-config 
    import xml.etree.ElementTree as ET
    

    after correction:

    [root@linmn01 ~]# grep ElementTree /usr/local/pem/bin/modify-vps-config 
    import cElementTree as ET
    
  3. Make the file immutable, as it gets rewritten upon each retry attempt:

    # chattr +i /usr/local/pem/bin/modify-vps-config
    
  4. Proceed with the update installation.

Internal content