[ovirt-users] Failed to check for available updates on host * with message 'Command returned failure code 1 during SSH session 'root@*

aleksey.maksimov at it-kb.ru aleksey.maksimov at it-kb.ru
Mon Sep 12 12:08:39 UTC 2016


Excuse me. I do not understand. What I should do?
The directory /var/log/ovirt-engine/host-deploy many different log files

12.09.2016, 14:59, "Yedidyah Bar David" <didi at redhat.com>:
> On Mon, Sep 12, 2016 at 11:17 AM, <aleksey.maksimov at it-kb.ru> wrote:
>>  # yum install iproute
>>
>>  Loaded plugins: fastestmirror
>>  Loading mirror speeds from cached hostfile
>>   * base: mirror.awanti.com
>>   * elrepo: dfw.mirror.rackspace.com
>>   * epel: epel.besthosting.ua
>>   * extras: centos-mirror.rbc.ru
>>   * ovirt-4.0: ftp.nluug.nl
>>   * ovirt-4.0-epel: epel.besthosting.ua
>>   * updates: centos-mirror.rbc.ru
>>  Package iproute-3.10.0-54.el7_2.1.x86_64 already installed and latest version
>>  Nothing to do
>>
>>  # ls -la /etc/yum.repos.d/
>>
>>  total 76
>>  drwxr-xr-x. 2 root root 4096 Jul 26 14:08 .
>>  drwxr-xr-x. 102 root root 12288 Sep 12 11:00 ..
>>  -rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
>>  -rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
>>  -rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
>>  -rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
>>  -rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
>>  -rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
>>  -rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo
>>  -rw-r--r--. 1 root root 2150 May 21 2014 elrepo.repo
>>  -rw-r--r--. 1 root root 957 Jun 3 16:52 epel.repo
>>  -rw-r--r--. 1 root root 1056 Jun 3 16:52 epel-testing.repo
>>  -rw-r--r--. 1 root root 383 Jul 21 10:44 HP-MCP.repo
>>  -rw-r--r--. 1 root root 446 Jul 21 10:45 HP-SPP-2014-06.repo
>>  -rw-r--r--. 1 root root 417 Jul 21 10:44 HP-SPP-Current.repo
>>  -rw-r--r--. 1 root root 1678 Jul 26 14:08 ovirt-4.0-dependencies.repo
>>  -rw-r--r--. 1 root root 289 Jul 26 14:08 ovirt-4.0.repo
>>
>>  Which repo file you are interested in?
>
> The one(s) that has in it '[base]'. Also, you might find more
> details in the host-deploy log, in /var/log/ovirt-engine/host-deploy .
>
>>  12.09.2016, 11:14, "Yedidyah Bar David" <didi at redhat.com>:
>>>  On Mon, Sep 12, 2016 at 10:59 AM, <aleksey.maksimov at it-kb.ru> wrote:
>>>>   Hi, Martin.
>>>>
>>>>   The command is executed successfully:
>>>>
>>>>   Updated:
>>>>     vdsm.x86_64 0:4.18.12-1.el7 vdsm-cli.noarch 0:4.18.12-1.el7
>>>>   Dependency Updated:
>>>>     vdsm-api.noarch 0:4.18.12-1.el7 vdsm-hook-vmfex-dev.noarch 0:4.18.12-1.el7 vdsm-infra.noarch 0:4.18.12-1.el7
>>>>     vdsm-jsonrpc.noarch 0:4.18.12-1.el7 vdsm-python.noarch 0:4.18.12-1.el7 vdsm-xmlrpc.noarch 0:4.18.12-1.el7
>>>>     vdsm-yajsonrpc.noarch 0:4.18.12-1.el7
>>>>   Complete!
>>>>
>>>>   12.09.2016, 10:47, "Martin Perina" <mperina at redhat.com>:
>>>>>   Hi Aleksey,
>>>>>
>>>>>   the error message is raised by Host upgrade manager (more info at [1]) which checks for available package upgrades on the host.
>>>>>
>>>>>   It seems that you have somehow corrupted repository configuration of the host 'kom-ad01-vm31.holding.com':
>>>>>
>>>>>   2016-09-12 02:00:13,300 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Yum Cannot queue package iproute: Cannot find a valid baseurl for repo: base/7/x86_64
>>>>>   2016-09-12 02:00:13,304 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Failed to execute stage 'Environment packages setup': Cannot find a valid baseurl for repo: base/7/x86_64
>>>>>
>>>>>   Could you please verify that you are able to successfully execute following commands on the host?
>>>>>
>>>>>     yum check-update
>>>>>     yum update vdsm vdsm-cli
>>>
>>>  Can you please try also:
>>>
>>>  yum install iproute
>>>
>>>  And also share your /etc/yum.repos.d/* ?
>>>
>>>  Thanks.
>>>
>>>>>   Thanks
>>>>>
>>>>>   Martin Perina
>>>>>
>>>>>   [1] http://www.ovirt.org/develop/release-management/features/engine/upgrademanager/
>>>>>
>>>>>   On Mon, Sep 12, 2016 at 9:20 AM, <aleksey.maksimov at it-kb.ru> wrote:
>>>>>>   Hello oVirt guru`s!
>>>>>>
>>>>>>   oVirt Engine Version: 4.0.1.1-1.el7.centos
>>>>>>
>>>>>>   Every day there is a message in web UI for one of my two hosts:
>>>>>>
>>>>>>   "Failed to check for available updates on host KOM-AD01-VM31 with message 'Command returned failure code 1 during SSH session 'root@
>>>>>>
>>>>>>   kom-ad01-vm31.holding.com''.
>>>>>>
>>>>>>   In /var/log/ovirt-engine/engine.log at this time:
>>>>>>
>>>>>>   ...
>>>>>>   2016-09-12 01:59:45,045 INFO [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Stage: Initializing
>>>>>>   2016-09-12 01:59:45,055 INFO [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Stage: Environment setup
>>>>>>   2016-09-12 01:59:45,070 INFO [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Stage: Environment packages setup
>>>>>>
>>>>>>   2016-09-12 02:00:13,300 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Yum Cannot queue package iproute: Cannot find a valid baseurl for repo: base/7/x86_64
>>>>>>   2016-09-12 02:00:13,304 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Failed to execute stage 'Environment packages setup': Cannot find a valid baseurl for repo: base/7/x86_64
>>>>>>   2016-09-12 02:00:13,304 INFO [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Yum Performing yum transaction rollback
>>>>>>   2016-09-12 02:00:13,368 INFO [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Stage: Pre-termination
>>>>>>   2016-09-12 02:00:13,388 INFO [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Retrieving installation logs to: '/var/log/ovirt-engine/host-deploy/ovirt-host-mgmt-20160912020013-kom-ad01-vm31.holding.com-null.l$
>>>>>>   2016-09-12 02:00:13,459 INFO [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [] Stage: Termination
>>>>>>   2016-09-12 02:00:13,506 ERROR [org.ovirt.engine.core.uutils.ssh.SSHDialog] (DefaultQuartzScheduler5) [] SSH error running command root at kom-ad01-vm31.holding.com:'umask 0077; MYTMP="$(TMPDIR="${OVIRT_TMPDIR}" mktemp -d -t ovirt-XXXXXXXXXX)"; trap "chmod -R u+rwX \"${MYTMP}\" > /dev/null 2>&1; rm -fr \"${MYTMP}\" > /dev/null 2>&1" 0; tar --warning=no-timestamp -C "${MYTMP}" -x && "${MYTMP}"/ovirt-host-mgmt DIALOG/dialect=str:machine DIALOG/customization=bool:True': Command returned failure code 1 during SSH session 'root at kom-ad01-vm31.holding.com'
>>>>>>
>>>>>>   2016-09-12 02:00:13,506 ERROR [org.ovirt.engine.core.uutils.ssh.SSHDialog] (DefaultQuartzScheduler5) [] Exception: java.io.IOException: Command returned failure code 1 during SSH session 'root at kom-ad01-vm31.holding.com'
>>>>>>           at org.ovirt.engine.core.uutils.ssh.SSHClient.executeCommand(SSHClient.java:526) [uutils.jar:]
>>>>>>           at org.ovirt.engine.core.uutils.ssh.SSHDialog.executeCommand(SSHDialog.java:317) [uutils.jar:]
>>>>>>           at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.execute(VdsDeployBase.java:563) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.host.HostUpgradeManager.isUpdateAvailable(HostUpgradeManager.java:44) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.host.AvailableUpdatesFinder.isUpdateAvailable(AvailableUpdatesFinder.java:26) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.VdsEventListener.isUpdateAvailable(VdsEventListener.java:553) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.vdsbroker.ResourceManager.isUpdateAvailable(ResourceManager.java:510) [vdsbroker.jar:]
>>>>>>           at org.ovirt.engine.core.vdsbroker.VdsManager.availableUpdates(VdsManager.java:306) [vdsbroker.jar:]
>>>>>>           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_101]
>>>>>>           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_101]
>>>>>>           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_101]
>>>>>>           at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_101]
>>>>>>           at org.ovirt.engine.core.utils.timer.JobWrapper.invokeMethod(JobWrapper.java:77) [scheduler.jar:]
>>>>>>           at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:51) [scheduler.jar:]
>>>>>>           at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
>>>>>>           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_101]
>>>>>>           at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]
>>>>>>
>>>>>>   2016-09-12 02:00:13,507 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (DefaultQuartzScheduler5) [] Error during host kom-ad01-vm31.holding.com install: java.io.IOException: Command returned failure code 1 during SSH session 'root at kom-ad01-vm31.holding.com'
>>>>>>           at org.ovirt.engine.core.uutils.ssh.SSHClient.executeCommand(SSHClient.java:526) [uutils.jar:]
>>>>>>           at org.ovirt.engine.core.uutils.ssh.SSHDialog.executeCommand(SSHDialog.java:317) [uutils.jar:]
>>>>>>           at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.execute(VdsDeployBase.java:563) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.host.HostUpgradeManager.isUpdateAvailable(HostUpgradeManager.java:44) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.host.AvailableUpdatesFinder.isUpdateAvailable(AvailableUpdatesFinder.java:26) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.VdsEventListener.isUpdateAvailable(VdsEventListener.java:553) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.vdsbroker.ResourceManager.isUpdateAvailable(ResourceManager.java:510) [vdsbroker.jar:]
>>>>>>           at org.ovirt.engine.core.vdsbroker.VdsManager.availableUpdates(VdsManager.java:306) [vdsbroker.jar:]
>>>>>>           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_101]
>>>>>>           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_101]
>>>>>>           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_101]
>>>>>>           at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_101]
>>>>>>           at org.ovirt.engine.core.utils.timer.JobWrapper.invokeMethod(JobWrapper.java:77) [scheduler.jar:]
>>>>>>           at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:51) [scheduler.jar:]
>>>>>>           at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
>>>>>>           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_101]
>>>>>>           at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]
>>>>>>
>>>>>>   2016-09-12 02:00:13,512 ERROR [org.ovirt.engine.core.bll.host.HostUpgradeManager] (DefaultQuartzScheduler5) [] Failed to refresh host 'KOM-AD01-VM31' packages 'vdsm-cli, vdsm' availability.
>>>>>>   2016-09-12 02:00:13,512 ERROR [org.ovirt.engine.core.bll.host.HostUpgradeManager] (DefaultQuartzScheduler5) [] Exception: java.io.IOException: Command returned failure code 1 during SSH session 'root at kom-ad01-vm31.holding.com'
>>>>>>           at org.ovirt.engine.core.uutils.ssh.SSHClient.executeCommand(SSHClient.java:526) [uutils.jar:]
>>>>>>           at org.ovirt.engine.core.uutils.ssh.SSHDialog.executeCommand(SSHDialog.java:317) [uutils.jar:]
>>>>>>           at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.execute(VdsDeployBase.java:563) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.host.HostUpgradeManager.isUpdateAvailable(HostUpgradeManager.java:44) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.host.AvailableUpdatesFinder.isUpdateAvailable(AvailableUpdatesFinder.java:26) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.bll.VdsEventListener.isUpdateAvailable(VdsEventListener.java:553) [bll.jar:]
>>>>>>           at org.ovirt.engine.core.vdsbroker.ResourceManager.isUpdateAvailable(ResourceManager.java:510) [vdsbroker.jar:]
>>>>>>           at org.ovirt.engine.core.vdsbroker.VdsManager.availableUpdates(VdsManager.java:306) [vdsbroker.jar:]
>>>>>>           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_101]
>>>>>>           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_101]
>>>>>>           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_101]
>>>>>>           at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_101]
>>>>>>           at org.ovirt.engine.core.utils.timer.JobWrapper.invokeMethod(JobWrapper.java:77) [scheduler.jar:]
>>>>>>           at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:51) [scheduler.jar:]
>>>>>>           at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
>>>>>>           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_101]
>>>>>>           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_101]
>>>>>>           at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]
>>>>>>
>>>>>>   2016-09-12 02:00:13,513 ERROR [org.ovirt.engine.core.vdsbroker.VdsManager] (DefaultQuartzScheduler5) [] Failed to check if updates are available for host 'KOM-AD01-VM31'
>>>>>>   2016-09-12 02:00:13,518 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (DefaultQuartzScheduler5) [] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: Failed to check for available updates on host KOM-AD01-VM31 with message 'Command returned failure code 1 during SSH session 'root at kom-ad01-vm31.holding.com''.
>>>>>>
>>>>>>   ...
>>>>>>
>>>>>>   What could be the problem?
>>>>>>   _______________________________________________
>>>>>>   Users mailing list
>>>>>>   Users at ovirt.org
>>>>>>   http://lists.ovirt.org/mailman/listinfo/users
>>>>   _______________________________________________
>>>>   Users mailing list
>>>>   Users at ovirt.org
>>>>   http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>  --
>>>  Didi
>
> --
> Didi



More information about the Users mailing list