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 802389 - event handlers for 'close' event doesn't work in remote mode
Summary: event handlers for 'close' event doesn't work in remote mode
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libguestfs
Version: 6.2
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-12 12:58 UTC by Qixiang Wan
Modified: 2012-09-27 15:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-27 15:50:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qixiang Wan 2012-03-12 12:58:05 UTC
Description of problem:
When guestfish works in remote mode, register an event handler for 'close' event, it doesn't work as expected.

Version-Release number of selected component (if applicable):
libguestfs-1.16.8-1.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.

$ eval `guestfish --listen`
$ guestfish --remote -- event "evt" close "echo GoodBye"
$ guestfish --remote -- list-events
"evt" (0): close: echo GoodBye
$ guestfish --remote -- quit
$ 

  
Actual results:
The event handler doesn't work.

Expected results:
The event handler should work.

Additional info:

[1] $ guestfish
><fs> event "evt" close "echo GoodBye"
><fs> list-events
"evt" (1): close: echo GoodBye
><fs> quit

GoodBye

[2]
$ eval `guestfish --listen`
$ guestfish --remote -- event "evt" close "echo GoodBye"
$ guestfish --remote -- list-events
"evt" (0): close: echo GoodBye
$ guestfish --remote -- badcmd
badcmd: unknown command
GoodBye

Comment 2 Richard W.M. Jones 2012-03-12 14:28:57 UTC
The fix would be quite intrusive, so this isn't 6.3 material.
However I'll post an upstream patch shortly.

Comment 5 RHEL Program Management 2012-07-10 05:51:38 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 6 RHEL Program Management 2012-07-11 00:01:34 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 7 Richard W.M. Jones 2012-09-27 15:50:41 UTC
After looking at this again:

The code in guestfish remote has changed considerably, so I'm
not confident that my backport of this code won't break things.

Since this is not a serious bug, I'm closing it, and suggesting
that if anyone hits the bug they either work around it, or
upgrade to RHEL 7 where this bug will be fixed properly and
the fix tested.


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