Article ID: 129457, created on Sep 16, 2016, last review on Sep 16, 2016

  • Applies to:
  • Operations Automation 6.0

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.

Search Words

ImportError: No module named etree.ElementTree

upgrade OSA

ImportError: No module named etree.ElementTree

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF