Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1370568 - METHOD:: does not accept a full path to a method
METHOD:: does not accept a full path to a method
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.6.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.6.2
Assigned To: Tina Fitzgerald
Milan Falešník
automate
: ZStream
Depends On: 1359813
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-26 11:39 EDT by Satoe Imaishi
Modified: 2016-10-04 10:32 EDT (History)
8 users (show)

See Also:
Fixed In Version: 5.6.2.0
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1359813
Environment:
Last Closed: 2016-10-04 10:32:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1996 normal SHIPPED_LIVE Important: CFME 4.1 bug fixes and enhancement update 2016-10-04 14:26:13 EDT

  None (edit)
Comment 2 Greg McCullough 2016-09-06 09:36:29 EDT
Back-ported in https://github.com/ManageIQ/manageiq/pull/10089
Comment 3 Milan Falešník 2016-09-15 05:25:33 EDT
Checked in 5.6.2.0

The Pull Request says:
"The new METHOD:: functionality is available to Automate state machine entries and can be used to call a method from a state relationship. METHOD:: can be used to call methods residing in the same class, and can access methods in other classes by using the class method notation."

I copied the Request class to my domain, created an instance "test" whose rel1 points to "METHOD::testmeth" where testmeth is a local method ($evm.log(:info, "TEST TEST")). That does not work (Invalid URI).

When I created a dummy instance in the request class and made the relationship field point to it, I have put a method names in the on entry and on exit fields. Both with and without METHOD:: prefix. That did work either, I could not see any mention of invocation of such method in the log nor what the method was supposed to log.

I used Simulation on /System/Request/test with method executing enabled.
Comment 4 Tina Fitzgerald 2016-09-15 11:57:52 EDT
Hi Milan,

I think part of your problem is that the "METHOD::" functionality is implemented for state machine relationships and /System/Request is not a state machine.

Can you test it in a state relationship?

Thanks,
Tina
Comment 5 Milan Falešník 2016-09-15 12:15:04 EDT
Eek, seems like the blindness has attacked. Thanks for pointing that out, I am on it now :)
Comment 6 Milan Falešník 2016-09-15 12:29:28 EDT
Verified in 5.6.2.0

METHOD::/ns/Class.methodname works in the states
/ns/Class.methodname works in the on_*
Comment 8 errata-xmlrpc 2016-10-04 10:32:50 EDT
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.

https://rhn.redhat.com/errata/RHSA-2016-1996.html

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