Search Engine: Elastic

Article ID: 133723, created on Feb 15, 2019, last review on Jun 11, 2019

  • Applies to:
  • Operations Automation
  • Odin Business Automation Standard 4.5

Symptoms

  1. Migration project for OBAS to Odin Automation failed:

    Unable to retrieve billing information from the source system Cause: The command "cd /opt/oam/agent/lib/obas-agent && /opt/oam/agent/lib/obas-agent/agent --extract=subscription --subscription-id=12345 --export-inactive" executed at source server 'obas' (hspc.domain.tld) returned a non-zero exit code.
    
  2. Following error appears in /opt/oa-migrator/logs/debug.log on OA core node:

    [2019-02-10 02:55:23,329] 139877923780416 [DBG] Attempting to run "cd /opt/oam/agent/lib/obas-agent && /opt/oam/agent/lib/obas-agent/agent --extract=subscription --subscription-id=12345 --export-inactive"
    [2019-02-10 02:55:23,329] 139877923780416 [DBG] Execute remote command: ssh hspc.domain.tld "cd /opt/oam/agent/lib/obas-agent && /opt/oam/agent/lib/obas-agent/agent --extract=subscription --subscription-id=12345 --export-inactive"
    [2019-02-10 03:11:16,261] 139877923780416 [DBG] Command stdout: ******
    [2019-02-10 03:11:16,262] 139877923780416 [DBG] Command stderr: <?xml version="1.0" encoding="UTF-8"?>
                <filters>
                    <objects_name>subscription</objects_name>
                    <filter>
                      <property_name>id</property_name>
                      <where><in>12345</in></where>
                    </filter>
                </filters>
                Traceback (most recent call last):
      File "/opt/oam/agent/lib/obas-agent/agent.py", line 326, in <module>
        sys.exit(main())
      File "/opt/oam/agent/lib/obas-agent/agent.py", line 284, in main
        invalidExtract)(options)
      File "/opt/oam/agent/lib/obas-agent/agent.py", line 142, in getSubscription
        return agent.getSubscriptionList(subscription_id_list, export_inactive)
      File "/opt/oam/agent/lib/obas-agent/AgentImpl.py", line 105, in getSubscriptionList
        generator = AccountGenerator(('-1',), subscriptionIdList, exportInactive)
      File "/opt/oam/agent/lib/obas-agent/AccountGenerator.py", line 31, in __init__
        self.subscriptionSource = SubscriptionDataSource(subscription_id_list, export_inactive_subscriptions)
      File "/opt/oam/agent/lib/obas-agent/DataSources.py", line 626, in __init__
        XmlSubscriptionDataSource.DB_NAME = self._export("subscription", "id", id_list)
      File "/opt/oam/agent/lib/obas-agent/DataSources.py", line 170, in _export
        raise Exception(error_message)
    Exception: Failed to export data from OBAS: unable to detect a filename of XML data report.
    Called command: perl ./hspc-export.pl -f /tmp/tmp_12XA_
    Exit code: 2
    Command output:
    Collecting data....
                            OK
    Exporting data....
    
    Command errors:
    Can't call method "faultcode" without a package or object reference at ./hspc-export.pl line 146.
    [2019-02-10 03:11:16,262] 139877923780416 [DBG] Command exit code: 1
    [2019-02-10 03:11:16,273] 139877923780416 [DBG] Exception:
    Traceback (most recent call last):
      File "/opt/oa-migrator/lib/python2.7/site-packages/migrator/core/workflow/runner/by_subscription.py", line 118, in _run_common_action_plain
        run()
      File "/opt/oa-migrator/lib/python2.7/site-packages/migrator/core/workflow/runner/by_subscription.py", line 111, in run
        action.run(self._context)
    
  3. Following error appears in /opt/oam/agent/lib/obas-agent/debug.log on source OBAS node:

    [2019-02-10 02:55:22,089] [INFO]: Agent was started: /opt/oam/agent/lib/obas-agent/agent.py '--extract=subscription' '--subscription-id=12345' '--export-inactive'
    [2019-02-10 02:55:22,618] [INFO]: Collect and return account XML document.
    [2019-02-10 02:55:22,619] [DEBUG]: Trying to detect an OBAS API version, attempt 1 of 5
    [2019-02-10 02:55:22,632] [DEBUG]: Detected the following OBAS API version: 8
    [2019-02-10 02:55:22,632] [DEBUG]: Getting subscriptions XML document for the following subscriptions (including inactive): 63012
    [2019-02-10 02:55:22,632] [DEBUG]: Export data from OBAS to XML file for object 'subscription' with filter by 'id' for 63012.
    [2019-02-10 02:55:22,638] [DEBUG]: Call local command: perl ./hspc-export.pl -f /tmp/tmp_12XA_
    [2019-02-10 03:11:14,775] [DEBUG]: Command stdout: Collecting data....
                            OK
    Exporting data....
    
    [2019-02-10 03:11:14,776] [DEBUG]: Command stderr: Can't call method "faultcode" without a package or object reference at ./hspc-export.pl line 146.
    
    [2019-02-10 03:11:14,776] [DEBUG]: Command exit code: 2
    [2019-02-10 03:11:14,777] [ERROR]: Failed to export data from OBAS: unable to detect a filename of XML data report.
    Called command: perl ./hspc-export.pl -f /tmp/tmp_12XA_
    Exit code: 2
    Command output:
    Collecting data....
                            OK
    Exporting data....
    
    Command errors:
    Can't call method "faultcode" without a package or object reference at ./hspc-export.pl line 146.
    

Cause

The issue is caused not-optimized export algorithm of exporting big amount of data from OBAS.

Resolution

Install OBAS import-export manager hotfix:

  • Installation, for 4.5.6 x32 version:

    1. rpm -Uvh hspc-ie-manager-4.5.6-66.swsoft.i386.rpm
    2. service hspcd restart
  • Installation, for 4.5.7:

    1. rpm -Uhv hspc-ie-manager-4.5.7-56.swsoft.x86_64.rpm
    2. service hspcd restart
  • Installation, for 4.5.8:

    1. rpm -Uhv hspc-ie-manager-4.5.8-24.swsoft.x86_64.rpm
    2. service hspcd restart

400e18f6ede9f8be5575a475d2d6b0a6 3ef1f5f998c0dc182718a7fe4376f875 624ca542e40215e6f1d39170d8e7ec75 70a5401e8b9354cd1d64d0346f2c4a3e 5356b422f65bdad1c3e9edca5d74a1ae 8fc71f07abe5b233fea1ae0377cd5e3d

Email subscription for changes to this article
Save as PDF