Bug 796510 - Unhelpful error message
Summary: Unhelpful error message
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents
Version: 6.2
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: David Vossel
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-23 03:32 UTC by Madison Kelly
Modified: 2013-07-18 23:11 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-17 19:39:36 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Madison Kelly 2012-02-23 03:32:17 UTC
Description of problem:

When you ask clusvcadm to start a VM that does not have a corresponding foo.xml file in the 'path="/..."' attribute, it reports:

=====
Feb 22 22:20:54 an-node02 rgmanager[19481]: [vm] Could not find vm02-win or vm02-win.xml in search path /shared/definitions/
Feb 22 22:20:55 an-node02 rgmanager[19528]: [vm] Cannot find 'xm'; is it installed?
Feb 22 22:20:55 an-node02 rgmanager[19567]: [vm] Could not find vm02-win or vm02-win.xml in search path /shared/definitions/
Feb 22 22:20:55 an-node02 rgmanager[19614]: [vm] Cannot find 'xm'; is it installed?
Feb 22 22:20:55 an-node02 rgmanager[14505]: start on vm "vm02-win" returned 2 (invalid argument(s))
Feb 22 22:20:55 an-node02 rgmanager[14505]: #68: Failed to start vm:vm02-win; return value: 1
Feb 22 22:20:55 an-node02 rgmanager[14505]: Stopping service vm:vm02-win
=====

This provides all the needed info, "Could not find vm02-win or vm02-win.xml in search path /shared/definitions/", but it also shows "Cannot find 'xm'; is it installed?" which seems quite unrelated.

Version-Release number of selected component (if applicable):

rgmanager-3.0.12.1-5.el6.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Use clusvcadm to start a VM without an XML definition file defined
2. Read /var/log/messages
3. ...
4. Profit?
  
Actual results:

unhelpful log messages.

Expected results:

Only helpful log messages.

Additional info:

Lowest priority bug ever.

Comment 2 Fabio Massimo Di Nitto 2012-02-23 05:20:54 UTC
The extra "Cannot find 'xm'; is it installed?" comes from vm.sh resource agent.

Reassigning.

Comment 3 Fabio Massimo Di Nitto 2012-02-23 05:23:20 UTC
If this is a KVM cluster, I also believe that you need to specify:

use_virsh=1

to set the management tools for VM to virsh.

xm is checkd in case it is a xen VM you are managing.

Comment 6 RHEL Program Management 2012-07-10 08:45:26 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 7 RHEL Program Management 2012-07-11 01:48:56 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 8 Chris Feist 2012-10-15 17:42:06 UTC
Bumping to 6.5 since this fix didn't make the devel freeze.  (Feel free to move back to 6.4 with an exception or blocker flag if it's needed for the release).

Comment 11 David Vossel 2013-05-29 20:40:27 UTC
(In reply to Fabio Massimo Di Nitto from comment #3)
> If this is a KVM cluster, I also believe that you need to specify:
> 
> use_virsh=1
> 
> to set the management tools for VM to virsh.
> 
> xm is checkd in case it is a xen VM you are managing.

The log messages actually are related.  The domain's xml file can't be found because it doesn't exist. During the validate function after the xml file isn't found it thinks you are trying to use xen's xm configuration tool and takes that approach.  That's why you see the message about 'xm' not being found.

The agent is telling us something we need to know about its behavior. Set use_virsh=1 and this goes away.

I would like to close this issue if no one has any objections.

-- Vossel


Note You need to log in before you can comment on or make changes to this bug.