Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1227937 - Automate - Fix service dialog_parser issue.
Automate - Fix service dialog_parser issue.
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.5.0
Unspecified Unspecified
unspecified Severity unspecified
: GA
: 5.5.0
Assigned To: Tina Fitzgerald
Milan Falešník
: ZStream
Depends On: 1282949 1289641
Blocks: 1228399
  Show dependency treegraph
 
Reported: 2015-06-03 17:16 EDT by Tina Fitzgerald
Modified: 2015-12-08 11:05 EST (History)
8 users (show)

See Also:
Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1228399 (view as bug list)
Environment:
Last Closed: 2015-12-03 17:03:09 EST
Type: Bug
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-2015:2551 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 12:58:09 EST

  None (edit)
Description Tina Fitzgerald 2015-06-03 17:16:47 EDT
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 2 Greg McCullough 2015-06-04 10:09:20 EDT
Tina - This ticket needs details about the issue so it can be tested and validated.
Comment 3 Tina Fitzgerald 2015-06-04 11:41:25 EDT
Internal testing uncovered an issue where the dialog_parser automate method was creating an incorrect value for tag_control dialog entries which would result in incorrect values be passed to provisioning.

Validation steps:
1. Create a service dialog:
   Name: tag_0_test
   Type: tag_control
   Category: department
2. Create a single service item specifying the dialog created in step 1.
3. Provision service, selecting 2 department entries.
4. Check automation.log for "parsed_dialog_tags".

Note - before applying the fix, you should see the values of "true" as shown 

parsed_dialog_tags: "---\n0:test:\n - true\n - true\n2:\n :stuff: tag 2\n3:\n :stuff: tag_3_stuff\n"

Note - after applying the fix, you should see the values you selected. I selected accounting and automotive as shown below: 

parsed_dialog_tags: "---\n0:\n :tagcontrol:\n - qa\n :test:\n - accounting\n - automotive\n - communication\n2:\n :stuff: tag 2\n3:\n :stuff: tag_3_stuff\n"
Comment 4 CFME Bot 2015-06-04 16:21:02 EDT
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/c93124df26310cea59af389644b9c4f4a7a166e0

commit c93124df26310cea59af389644b9c4f4a7a166e0
Author:     Tina Fitzgerald <tfitzger@redhat.com>
AuthorDate: Wed Jun 3 17:36:00 2015 -0400
Commit:     Tina Fitzgerald <tfitzger@redhat.com>
CommitDate: Wed Jun 3 17:36:00 2015 -0400

    Fix automate service dialog_parsing issue.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1227937

 .../StateMachines/Methods.class/__methods__/dialog_parser.rb            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 5 CFME Bot 2015-06-16 11:56:27 EDT
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=6c5930fce2b20f4d7a5d3f472b94b660262bfd2d

commit 6c5930fce2b20f4d7a5d3f472b94b660262bfd2d
Author:     Tina Fitzgerald <tfitzger@redhat.com>
AuthorDate: Wed Jun 3 17:36:00 2015 -0400
Commit:     Tina Fitzgerald <tfitzger@redhat.com>
CommitDate: Thu Jun 4 16:56:36 2015 -0400

    Fix automate service dialog_parsing issue.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1227937

 .../StateMachines/Methods.class/__methods__/dialog_parser.rb            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 CFME Bot 2015-06-16 11:56:35 EDT
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=a2ba25cfa312d876eca57b44ac4368ff6e593b84

commit a2ba25cfa312d876eca57b44ac4368ff6e593b84
Merge: 950098c 6c5930f
Author:     Madhu Kanoor <mkanoor@redhat.com>
AuthorDate: Tue Jun 16 11:53:08 2015 -0400
Commit:     Madhu Kanoor <mkanoor@redhat.com>
CommitDate: Tue Jun 16 11:53:08 2015 -0400

    Merge branch 'bz_1228399' into '5.4.z'
    
    Fix automate service dialog_parsing issue.
    
    Clean cherry-pick.
    
    PR
    https://github.com/ManageIQ/manageiq/pull/3053
    
    BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1228399
    
    Cloned from:
    https://bugzilla.redhat.com/show_bug.cgi?id=1227937
    
    See merge request !102

 .../StateMachines/Methods.class/__methods__/dialog_parser.rb            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 Jeff Teehan 2015-11-17 12:50:44 EST
There is still some sort of problem.  I can't even get the field to display correctly on the order.  I see the label ok, but the select box never appears.  I checked 5509 and 550ten.  Finally went back to a 5.4.3 instance just to make sure I wasn't doing something stupid and it worked fine.

Please take a minute to check my work.  The bother look the same.  Everything is called tab_something

This is 5.4.3 https://10.8.59.221
This is 5.5.0.10 https://10.16.7.101/catalog/explorer
Comment 8 Tina Fitzgerald 2015-11-17 15:14:05 EST
Hi Jeff,

Yes, I see the issue you're experiencing in 5.5. 
Could you open a ticket on it?

You could try importing the service dialog from the 5.4.3 environment, but I suspect it won't help. We might have to wait for that issue to be resolved before validating this fix.

Thanks,
Tina
Comment 9 Jeff Teehan 2015-11-17 16:26:44 EST
Verification Block by https://bugzilla.redhat.com/show_bug.cgi?id=1282949

We can leave this here for a while.  I'll keep an eye on both.
Comment 11 Dave Johnson 2015-12-03 17:03:09 EST
Closing this out for now, we will make sure a test case is in place and verify once the blocker is fixed.

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