2018-05-28

The agent installer detected an existing device record 'Server ID 188440001 (skttp1ftp01.int.skat.dk)' in the core that has the same chassis ID

For the past few days, I struggled with a problem on deploying 5 servers via HP Server Automation (HPSA) tool.

Checked the following together with our data center guy:

  1. VLAN has properly been identified and configured.
  2. Can ping both directions (servers and jumphosts) and can access/download updates from Red Hat, so I know the VLAN is indeed working as expected.

Then I found out some errors by looking at the logs (/var/log/opsware/agent/*)

[10/Jan/2010 00:49:29 +0200] INFO "SSLError: ('error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', 336134278, 'Hint: 1. User is not root, permission denied to open port.', 'Hint: 2. System time far away in the future or past might be the root cause of this error.')

I just noticed that the date is quite old and when I check, the server I am deploying don't have the correct system date/time.  So I just did a

# systemctl stop ntpd
# ntpdate time.csn.local
# systemctl start ntpd

And another one (on other server after even after correcting the system date/time).

# tailf agent.err
  method:  updateDevice
  module:  spinmethods.py
  params:  {'msg': "The agent installer detected an existing device record 'Server ID 188440001 (sktp1fftp0ma02.ccta.dk)' in the core that has the same chassis ID; the installer attempted to reclaim this device record but failed to because the device record is not configured to accept a request to issue a certificate.\n\nTo solve this problem, please refer to knowledge base article: http://support.openview.hp.com/selfsolve/document/KM546387\n"}
  request:  UNKNOWN
  tb_chain:  [[{'function': '_call', 'line': 178, 'file': './shadrpc.py'}, {'function': 'call', 'line': 74, 'file': './spinrpc.py'}, {'function': '__call__', 'line': 384, 'file': './spinmethods.py'}, {'function': 'handle', 'line': 720, 'file': './spinmethods.py'}, {'function': 'inner', 'line': 7210, 'file': './spinmethods.py'}, {'function': 'updateDevice', 'line': 9753, 'file': './spinmethods.py'}, {'function': 'updateDevice', 'line': 7522, 'file': './spinmethods.py'}]]
  timestamp:  26/May/2018 200334
  timeticks:  None

So I needed to:
  1. Deactivate and unregister the SA Agent in HPSA
  2. Uninstall the agent on the server
  3. And re-register it using "--force_new_device"
# /opt/opsware/agent/bin/agent_uninstall.sh
./opsware-agent-60.0.62732.1-linux-7SERVER-X86_64 --opsw_gw_addr 152.103.214.100:3001 --force_new_device

No comments:

Post a Comment