Troubleshoot > Integration issues

Integration issues

HPE SA issues

Problem: run adapter_easy_install.sh exits during the copy agent phase.

Symptom

The run adapter_easy_install.sh command to install the HPE ITOC SA adapter exits during the copy agent phase with this error message:

/opt/hp/itoc/salt/srv/salt/minion_easy_install

...

/opt/hp/itoc/salt/srv/salt/Win64_minion-2015.5.5.exe: No such file or directory

Possible causes

  • The adapter and agent are already installed

    and/or

  • The following files were not deleted from the /tmp directory after the previous adapter or agent were uninstalled:
    • ITOC_SA_Lite-<version>
    • minion_easy_install
    • <platform>_minion--<version>

Solution

  1. From the SA Slice host, uninstall first the adapter and then the agent.
  2. From the SA Slice host, remove the above files from /tmp directory.

 

Problem: Run adapter_easy_install.sh exits during the agent install phase.

Symptom

The run adapter_easy_install.sh command to install the HPE ITOC SA adapter exits during the agent installation phase with an error similar to the following:

Uncompressing RHEL 5 x86_64 minion..............................

Looks like a failed install. Uninstall and try again.

Problem installing minion...

Possible causes

  • The previous adapter installation failed.
  • The user uninstalled the agent but did not remove the files from /tmp directory.

Solution

  1. From the SA Slice host, uninstall first the adapter and then the agent.
  2. From the SA Slice host, remove the following files from the /tmp directory:
    • ITOC_SA_Lite-<version>
    • minion_easy_install
    • <platform>_minion--<version>

 

Problem: Run adapter_easy_install.sh shows an error during the agent registration phase.

Symptom

Run adapter_easy_install.sh to install the HPE ITOC SA adapter shows the following error during the agent registration phase:

Registering minion...

The key glob 'itocserver.itoc.mysite.com' does not match any unaccepted keys.

Possible cause

The specified SA Slice host was already registered with another HPE ITOC server.

Solution

  1. From the HPE ITOC server, run <itoc_install_directory>/scripts/minion_reg.sh –d <agent_host> to unregister.
  2. From the SA Slice host, uninstall first the adapter and then the agent.
  3. From the SA Slice host, remove the following files from the /tmp directory:
    • ITOC_SA_Lite-<version>
    • minion_easy_install
    • <platform>_minion--<version>
  4. Retry adapter_easy_install.sh.

 

Problem : A Scan/Remediate job against Resource Access Through SA fails

The job fails with the following:

pytwist.com.opsware.job.JobIsScheduledException: JobIsScheduledException:ID: HPSA-005

Symptom

The Scan/Remediate job against Resource Access Through SA failed with the following exception:

Traceback (most recent call last):
File "/opt/hp/itocSAadapter/adapter.py", line 362, in <module>
main()
File "/opt/hp/itocSAadapter/adapter.py", line 358, in main
start_adapter()
File "/opt/hp/itocSAadapter/adapter.py", line 339, in start_adapter
job_ref = twist_execute(twist, sys.argv[5], payload) # server ref
File "/opt/hp/itocSAadapter/adapter.py", line 148, in twist_execute
wait_for_job(twist, job_ref)
File "/opt/hp/itocSAadapter/adapter.py", line 105, in wait_for_job
job_result = twist.job.JobService.getResult(job_ref)
File "build/pytwist/twistserver.py", line 323, in __call__
File "build/pytwist/twistserver.py", line 302, in _makeCall
File "build/pytwist/twistserver.py", line 276, in _makeCall
File "build/pytwist/twistserver.py", line 246, in _makeCall
pytwist.com.opsware.job.JobIsScheduledException: JobIsScheduledException:ID: HPSA-005
Code: com.opsware.common.MessageSpec.ILLEGAL_VALUE
Details: self is set to the illegal value Run Server Script (ScheduledJobRef:660001).

Possible cause

The Run Server Script job type is blocked in SA.

Solution

Perform the following steps to unblock the Run Server Script job type from SA:

  1. Log in to SA as Admin.
  2. Navigate to Administration > Job Blocking.

  3. Unblock the specified job.

 

Problem: A Scan/Remediate job against Resource Access Through SA failed with the Expected a character buffer object error.

Symptom

The Scan/Remediate job against Resource Access Through SA failed with an exception such as the following:

Traceback (most recent call last):
File "/opt/hp/itocSAadapter/adapter.py", line 362, in <module>
main()
File "/opt/hp/itocSAadapter/adapter.py", line 358, in main
start_adapter()
File "/opt/hp/itocSAadapter/adapter.py", line 340, in start_adapter
redirect_output_and_exit(get_job_output(twist, sys.argv[5], job_ref))
File "/opt/hp/itocSAadapter/adapter.py", line 140, in redirect_output_and_exit
sys.stdout.write(output.tailStdout)
TypeError: expected a character buffer object

Possible cause

While the HPE ITOC Scan/Remediate job is running on the SA managed resource, other SA jobs are running on the same SA managed server.

Solution

Wait for the SA jobs to complete. Then from ITOC, rerun the Scan/Remediate job against the SA managed resource.