RHEV Host installation fails, "Installation failed. Command returned failure code 1 during ssh session"

Solution Verified - Updated -

Issue

  • RHEV host installation failed with Installation Failed. Command returned failure code 1 during SSH session. error message in the event logs and in the engine logs.

  • Sample `/var/log/ovirt-engine/engine.log' sequence;

2014-09-18 10:54:32,276 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation x.x.x.x: Stage: Termination
2014-09-18 10:54:32,288 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID: 3dd5d76a, Call Stack: null, Custom Event ID: -1, Message: Installing Host rhev-h. Stage: Termination.
2014-09-18 10:54:32,340 ERROR [org.ovirt.engine.core.utils.ssh.SSHDialog] (org.ovirt.thread.pool-4-thread-11) SSH error running command root@10.18.33.25:'umask 0077; MYTMP="$(mktemp -t ovirt-XXXXXXXXXX)"; trap "chmod -R u+rwX \"${MYTMP}\" > /dev/null 2>&1; rm -fr \"${MYTMP}\" > /dev/null 2>&1" 0; rm -fr "${MYTMP}" && mkdir "${MYTMP}" && tar --warning=no-timestamp -C "${MYTMP}" -x &&  "${MYTMP}"/setup DIALOG/dialect=str:machine DIALOG/customization=bool:True': java.io.IOException: Command returned failure code 1 during SSH session 'root@x.x.x.x'
    at org.ovirt.engine.core.utils.ssh.SSHClient.executeCommand(SSHClient.java:527) [utils.jar:]
    at org.ovirt.engine.core.utils.ssh.SSHDialog.executeCommand(SSHDialog.java:318) [utils.jar:]
    at org.ovirt.engine.core.bll.VdsDeploy.execute(VdsDeploy.java:1046) [bll.jar:]
        ................................. etc, etc, .........................................
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

2014-09-18 10:54:32,343 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (org.ovirt.thread.pool-4-thread-11) [3dd5d76a] Error during host x.x.x.x install: java.io.IOException: Command returned failure code 1 during SSH session 'root@x.x.x.x'
    at org.ovirt.engine.core.utils.ssh.SSHClient.executeCommand(SSHClient.java:527) [utils.jar:]
    at org.ovirt.engine.core.utils.ssh.SSHDialog.executeCommand(SSHDialog.java:318) [utils.jar:]
    at org.ovirt.engine.core.bll.VdsDeploy.execute(VdsDeploy.java:1046) [bll.jar:]
        ................................. etc, etc, .........................................
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

2014-09-18 10:54:32,348 ERROR [org.ovirt.engine.core.bll.InstallVdsCommand] (org.ovirt.thread.pool-4-thread-11) [3dd5d76a] Host installation failed for host 6ac2d3c6-12ec-41a1-8c3f-51d3d78f65c5, rhev-h.: java.io.IOException: Command returned failure code 1 during SSH session 'root@x.x.x.x'
    at org.ovirt.engine.core.utils.ssh.SSHClient.executeCommand(SSHClient.java:527) [utils.jar:]
    at org.ovirt.engine.core.utils.ssh.SSHDialog.executeCommand(SSHDialog.java:318) [utils.jar:]
    at org.ovirt.engine.core.bll.VdsDeploy.execute(VdsDeploy.java:1046) [bll.jar:]
        ................................. etc, etc, .........................................

Environment

  • Red Hat Enterprise Virtualization (RHEV) 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content