Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 691200

Summary: Convert fence-virt to use QMFv2
Product: Red Hat Enterprise Linux 6 Reporter: Perry Myers <pmyers>
Component: fence-virtAssignee: Zane Bitter <zbitter>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: apevec, cluster-maint, djansa, lhh, matahari-maint, mgrac
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fence-virt-0.2.3-3.el6 Doc Type: Bug Fix
Doc Text:
Do not document.
Story Points: ---
Clone Of: 688200 Environment:
Last Closed: 2011-12-06 11:37:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 571805    
Attachments:
Description Flags
Configuration file for fence_virtd none

Description Perry Myers 2011-03-27 14:39:43 UTC
Description of problem:
fence-virt currently uses QMFv1.  It needs to be updated to QMFv2

Comment 5 Lon Hohberger 2011-08-11 01:11:45 UTC
Patches look good; do we want to update the config file stuff (I'll do it), or will it just work as-is ?

Comment 6 Lon Hohberger 2011-08-11 01:41:43 UTC
Nevermind, looks like the config is compatible so we'll leave it alone.

Comment 11 Lon Hohberger 2011-10-26 22:17:19 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Do not document.

Comment 12 Lon Hohberger 2011-11-15 00:55:37 UTC
Created attachment 533656 [details]
Configuration file for fence_virtd

I used the attached configuration when attempting to run.  Without specifically setting the host and/or port, fence_virtd crashed, which will be a bug we need to address later.

I started qpidd with the following options:

  --auth no -m yes

I started libvirt-qmf with the following options:

  --broker localhost -p 5672 -d

Starting fence_virtd in the foreground allowed me to watch the following occur:

ipv4_recv_sk: success, fd = 5
Request 2 seqno 955657 domain f16-1
Plain TCP request
ipv4_connect: Connecting to client
ipv4_connect: Success; fd = 6
tcp_response: no-op (AUTH_NONE)
tcp_challenge: no-op (AUTH_NONE)
Request 2 seqno 955657 src 127.0.0.1 target f16-1
[libvirt-qpid] REBOOT operation on f16-1
[libvirt-qpid] OFF operation on f16-1
f16-1 running
2011-11-14 19:51:12 warning Connection [127.0.0.1:59733-127.0.0.1:5672] closed
[libvirt-qpid] ON operation on f16-1
f16-1 shutoff
2011-11-14 19:51:15 warning Connection [127.0.0.1:59734-127.0.0.1:5672] closed
Sending response to caller...

On the caller side:
[root@zealand lhh]# fence_xvm -o reboot -H f16-1
Could not read /etc/cluster/fence_xvm.key; trying without authentication
[root@zealand lhh]# echo $?
0

On the VM side, I observed the virtual machine move to the powered-off state then restart itself.

Comment 13 Lon Hohberger 2011-11-15 01:13:16 UTC
I tracked down the crash to a port not being specified; it is possible a simple port change will cause things to work as expected (though it is likely libvirt-qpid.cpp should handle the exception being thrown by the QMF API)

https://bugzilla.redhat.com/show_bug.cgi?id=753974

Comment 15 errata-xmlrpc 2011-12-06 11:37:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1566.html