Symptoms

The following error occurs when running update/precheck for update/hotfix:

ExecFailed: <__main__._SingleStringCommandLineBuilder instance at 0x20e2830> exited with non-zero status 1

The following message can be found in /var/log/poa-update.log:

2014-10-07 05:54:26.303  INFO [prepare] -> updating deployment binaries and scripts
Loaded plugins: fastestmirror
Determining fastest mirrors
Determining fastest mirrors
Metadata Cache Created
Loaded plugins: fastestmirror
Determining fastest mirrors
Error: Cannot retrieve repository metadata (repomd.xml) for repository: cfengine-repository. Please verify its path and try again
2014-10-07 05:54:31.839 ERROR ExecFailed ("['yum', '-y', '-e', '0', 'install', 'poaupdater'] exited with non-zero status 1",) while updating deployment binaries and scripts
2014-10-07 05:54:31.839 ERROR poaupdater.uUtil.ExecFailed
['yum', '-y', '-e', '0', 'install', 'poaupdater'] exited with non-zero status 1
2014-10-07 05:54:31.885 ERROR
  at execCommand (/usr/local/pem/var/updates/poa-5.5-5562_update07_KB122905/poaupdater/uUtil.py :88) in raise ExecFailed(command, status)
  at __performSelfUpdate (./update :40) in uUtil.execCommand(["yum", "-y", "-e", "0", "install", "poaupdater"])
  at doPrepare (./update :1232) in __performSelfUpdate(uAction.progress)
  at main (./update :1782) in binfo = doPrepare(build_directories)

Cause

One of the installed repositories is not accessible, cfengine-repository in this particular example.

Resolution

If this is custom repository added manually - it should be disabled by changing enabled=1 to enabled=0 in the file /etc/yum.repos.d/repo_name. If this a system-enabled repository this communication issue should be fixed. Re-run the update/precheck procedure after applying the changes.

Internal content