Hide Forgot
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
The fix would be quite intrusive, so this isn't 6.3 material. However I'll post an upstream patch shortly.
Fixed upstream: https://github.com/libguestfs/libguestfs/commit/17182af3a6de8e3e94e0a914416c54f09bb74007
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.
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.
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.