HomeClusterLabs Projects

Fix AMT fence agent

Description

Fix AMT fence agent

The 'amttool' command takes the AMT_PASSWORD environment variable.
When amttool prompts for a confirmation the variable is read only
by the left side of the pipe command:

  • Broken:

$ AMT_PASSWORD='foobar' echo 'y' | /usr/bin/amttool nuc2 powerdown
401 Unauthorized at /usr/bin/amttool line 129.

  • Working:

$ AMT_PASSWORD='foobar' sh -c "(echo 'y' | /usr/bin/amttool nuc2 # powerdown)"
execute: powerdown
result: pt_status: success

A longer-term fix is to remove the amttool dependency and implement the
calls directly via the python-openwsman package

Details

Provenance
Michele Baldessari <michele@acksyn.org>Authored on Aug 9 2015, 10:54 AM
Parents
rF35077dddc2cb: Merge pull request #13 from GamerSource/united_fixes
Branches
Unknown
Tags
Unknown

Event Timeline