Bug 1221333 - Service request to "Reconfigure this service" fails with error
Summary: Service request to "Reconfigure this service" fails with error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.6.0
Assignee: Harpreet Kataria
QA Contact: Aziza Karol
URL:
Whiteboard: service:catalog
: 1226850 (view as bug list)
Depends On:
Blocks: 1223892 1291707
TreeView+ depends on / blocked
 
Reported: 2015-05-13 18:32 UTC by Shveta
Modified: 2016-06-29 14:55 UTC (History)
8 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1223892 1291707 (view as bug list)
Environment:
Last Closed: 2016-06-29 14:55:04 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
read only page (55.02 KB, image/png)
2015-05-13 18:32 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Shveta 2015-05-13 18:32:50 UTC
Created attachment 1025134 [details]
read only page

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Create an orchestration service
2. Go to My service , select that service and "reconfigure this service"
3. The form is read only, no inputs can be given . 
4. Submit the request .Request fails
5. Click on the request : error 

Actual results:
1. No inputs can be given to reconfigure service
2. Once submitted, page do not navigate to request page
2. Request raised is not automatically approved
3. Request fails

Expected results:
1. Should be able to provide inputs to reconfigure
2. Page should naviagte to request page after request submitted
3. Request should be auto approved

Additional info:

[----] I, [2015-05-13T14:31:27.664797 #2357:62fea8]  INFO -- : Invoking [inline] method [/Default/System/Process/parse_provider_category] with inputs [{}]
[----] I, [2015-05-13T14:31:27.665726 #2357:62fea8]  INFO -- : <AEMethod [/Default/System/Process/parse_provider_category]> Starting 
[----] I, [2015-05-13T14:31:28.027195 #2354:7b17eb4]  INFO -- : Q-task_id([service_reconfigure_request_23]) <AEMethod get_request_type> Request Type:<ServiceReconfigureRequest>
[----] I, [2015-05-13T14:31:28.037633 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) <AEMethod [/Default/System/Policy/get_request_type]> Ending
[----] I, [2015-05-13T14:31:28.037755 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Method exited with rc=MIQ_OK
[----] I, [2015-05-13T14:31:28.038344 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Following Relationship [miqaedb:/System/Process/parse_provider_category#create]
[----] I, [2015-05-13T14:31:28.040146 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Updated namespace [miqaedb:/System/Process/parse_provider_category#create  Default/System]
[----] I, [2015-05-13T14:31:28.046168 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Updated namespace [System/Process/parse_provider_category  Default/System]
[----] I, [2015-05-13T14:31:28.049889 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Invoking [inline] method [/Default/System/Process/parse_provider_category] with inputs [{}]
[----] I, [2015-05-13T14:31:28.050504 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) <AEMethod [/Default/System/Process/parse_provider_category]> Starting 
[----] I, [2015-05-13T14:31:28.098969 #2357:72dd280]  INFO -- : <AEMethod parse_provider_category> Parse Provider Category Key: nil  Value: unknown
[----] I, [2015-05-13T14:31:28.107982 #2357:62fea8]  INFO -- : <AEMethod [/Default/System/Process/parse_provider_category]> Ending
[----] I, [2015-05-13T14:31:28.108077 #2357:62fea8]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2015-05-13T14:31:28.108647 #2357:62fea8]  INFO -- : Followed  Relationship [miqaedb:/System/Process/parse_provider_category#create]
[----] I, [2015-05-13T14:31:28.109508 #2357:62fea8]  INFO -- : Following Relationship [miqaedb:/System/Policy/ServiceReconfigureRequest_Approved#create]
[----] I, [2015-05-13T14:31:28.119255 #2357:62fea8]  INFO -- : Updated namespace [miqaedb:/System/Policy/ServiceReconfigureRequest_Approved#create  Default/System]
[----] I, [2015-05-13T14:31:28.119767 #2357:62fea8]  INFO -- : Instance [/Default/System/Policy/ServiceReconfigureRequest_Approved] not found in MiqAeDatastore - trying [.missing]
[----] I, [2015-05-13T14:31:28.124973 #2357:62fea8]  INFO -- : Followed  Relationship [miqaedb:/System/Policy/ServiceReconfigureRequest_Approved#create]
[----] I, [2015-05-13T14:31:28.125305 #2357:62fea8]  INFO -- : Followed  Relationship [miqaedb:/System/Policy/request_approved#create]
[----] I, [2015-05-13T14:31:28.125650 #2357:62fea8]  INFO -- : Followed  Relationship [miqaedb:/System/Event/request_approved#create]
[----] I, [2015-05-13T14:31:28.427906 #2354:7c09f5c]  INFO -- : Q-task_id([service_reconfigure_request_23]) <AEMethod parse_provider_category> Parse Provider Category Key: nil  Value: unknown
[----] I, [2015-05-13T14:31:28.435991 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) <AEMethod [/Default/System/Process/parse_provider_category]> Ending
[----] I, [2015-05-13T14:31:28.436103 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Method exited with rc=MIQ_OK
[----] I, [2015-05-13T14:31:28.436605 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Followed  Relationship [miqaedb:/System/Process/parse_provider_category#create]
[----] I, [2015-05-13T14:31:28.436902 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Following Relationship [miqaedb:/System/Policy/ServiceReconfigureRequest_starting#create]
[----] I, [2015-05-13T14:31:28.685129 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Updated namespace [miqaedb:/System/Policy/ServiceReconfigureRequest_starting#create  Default/System]
[----] I, [2015-05-13T14:31:28.685637 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Instance [/Default/System/Policy/ServiceReconfigureRequest_starting] not found in MiqAeDatastore - trying [.missing]
[----] I, [2015-05-13T14:31:28.689756 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Followed  Relationship [miqaedb:/System/Policy/ServiceReconfigureRequest_starting#create]
[----] I, [2015-05-13T14:31:28.689992 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Followed  Relationship [miqaedb:/System/Policy/request_starting#create]
[----] I, [2015-05-13T14:31:28.690221 #2354:711eac]  INFO -- : Q-task_id([service_reconfigure_request_23]) Followed  Relationship [miqaedb:/System/Event/request_starting#create]
[----] I, [2015-05-13T14:31:34.224582 #2357:62fea8]  INFO -- : Q-task_id([service_reconfigure_task_38]) Instantiating [//Process/AUTOMATION?MiqServer%3A%3Amiq_server=1&ServiceReconfigureTask%3A%3Aservice_reconfigure_task=38&User%3A%3Auser=1&dialog_param_DBName=MyDatabase&dialog_param_InstanceType=m1.small&dialog_param_KeyName=dave&dialog_param_SSHLocation=0.0.0.0%2F0&dialog_stack_name=orchitemstack&dialog_stack_onfailure=ROLLBACK&object_name=AUTOMATION&password%3A%3Adialog_param_DBPassword=v2%3A%7BRNZC9%2F49XqS1gicyW9Jdxw%3D%3D%7D&password%3A%3Adialog_param_DBRootPassword=v2%3A%7BRNZC9%2F49XqS1gicyW9Jdxw%3D%3D%7D&password%3A%3Adialog_param_DBUser=v2%3A%7BRNZC9%2F49XqS1gicyW9Jdxw%3D%3D%7D&request=service_reconfigure&vmdb_object_type=service_reconfigure_task#create]
[----] E, [2015-05-13T14:31:34.225379 #2357:62fea8] ERROR -- : Q-task_id([service_reconfigure_task_38]) Class [/] not found in MiqAeDatastore

Comment 3 Shveta 2015-05-13 21:55:01 UTC
Dan , yes .. no fields are marked reconfigurable .
So , may be the option to Reconfigure should be greyed out .

Comment 7 CFME Bot 2015-05-21 14:16:25 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/f194cbdeed4173aef3dfe612e34cdb3412e56c80

commit f194cbdeed4173aef3dfe612e34cdb3412e56c80
Author:     Harpreet Kataria <hkataria>
AuthorDate: Wed May 20 13:16:36 2015 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu May 21 09:34:37 2015 -0400

    Made changes to code to not save blank resource action
    
    - Dont add a blank resource action when saving catalog item.
    - Delete empty/blank resource action when user has removed entry point while editing Catalog Item. Changed code that sets entry points to nil when displaying a Catalog Item, it was displaying incorrect values even after entry point was removed.
    - Added spec test to verify blank resource action does not get saved.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333

 vmdb/app/controllers/catalog_controller.rb       | 23 +++++++++-------
 vmdb/spec/controllers/catalog_controller_spec.rb | 34 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 9 deletions(-)

Comment 8 CFME Bot 2015-05-22 14:00:59 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=034a6907c1b6c040bc695461059ef508cb4f9329

commit 034a6907c1b6c040bc695461059ef508cb4f9329
Author:     Harpreet Kataria <hkataria>
AuthorDate: Wed May 20 13:16:36 2015 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu May 21 15:33:04 2015 -0400

    Made changes to code to not save blank resource action
    
    - Dont add a blank resource action when saving catalog item.
    - Delete empty/blank resource action when user has removed entry point while editing Catalog Item. Changed code that sets entry points to nil when displaying a Catalog Item, it was displaying incorrect values even after entry point was removed.
    - Added spec test to verify blank resource action does not get saved.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333
    (cherry picked from commit f194cbd)
    https://bugzilla.redhat.com/show_bug.cgi?id=1223892

 vmdb/app/controllers/catalog_controller.rb       | 23 +++++++++-------
 vmdb/spec/controllers/catalog_controller_spec.rb | 34 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 9 deletions(-)

Comment 9 CFME Bot 2015-05-22 14:01:06 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=b833e50b0db529310b1acddc28045cbbd09bff7e

commit b833e50b0db529310b1acddc28045cbbd09bff7e
Merge: e04ce1a 034a690
Author:     Greg McCullough <gmccullo>
AuthorDate: Fri May 22 09:56:33 2015 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Fri May 22 09:56:33 2015 -0400

    Merge branch 'bz_53z_1221333' into '5.3.z'
    
    Made changes to code to not save blank resource action
    
    - Dont add a blank resource action when saving catalog item.
    - Delete empty/blank resource action when user has removed entry point while editing Catalog Item. Changed code that sets entry points to nil when displaying a Catalog Item, it was displaying incorrect values even after entry point was removed.
    - Added spec test to verify blank resource action does not get saved.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333
    (cherry picked from commit f194cbd)
    https://bugzilla.redhat.com/show_bug.cgi?id=1223892
    
    @gmccullough please review. https://github.com/ManageIQ/manageiq/pull/2961
    
    See merge request !81

 vmdb/app/controllers/catalog_controller.rb       | 23 +++++++++-------
 vmdb/spec/controllers/catalog_controller_spec.rb | 34 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 9 deletions(-)

Comment 10 CFME Bot 2015-05-22 15:50:45 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=4f8339b0e2a56e90323622e5077ae43030f9afb7

commit 4f8339b0e2a56e90323622e5077ae43030f9afb7
Author:     Harpreet Kataria <hkataria>
AuthorDate: Wed May 20 13:16:36 2015 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu May 21 11:47:37 2015 -0400

    Made changes to code to not save blank resource action
    
    - Dont add a blank resource action when saving catalog item.
    - Delete empty/blank resource action when user has removed entry point while editing Catalog Item. Changed code that sets entry points to nil when displaying a Catalog Item, it was displaying incorrect values even after entry point was removed.
    - Added spec test to verify blank resource action does not get saved.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333
    (cherry picked from commit f194cbd)

 vmdb/app/controllers/catalog_controller.rb       | 23 +++++++++-------
 vmdb/spec/controllers/catalog_controller_spec.rb | 34 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 9 deletions(-)

Comment 11 CFME Bot 2015-05-22 15:50:49 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=d68e48d45b11cc96fa7225b592d543cd45a3cc1f

commit d68e48d45b11cc96fa7225b592d543cd45a3cc1f
Merge: 673f996 4f8339b
Author:     Greg McCullough <gmccullo>
AuthorDate: Fri May 22 11:46:02 2015 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Fri May 22 11:46:02 2015 -0400

    Merge branch '54z_1221333' into '5.4.z'
    
    Made changes to code to not save blank resource action
    
    - Dont add a blank resource action when saving catalog item.
    - Delete empty/blank resource action when user has removed entry point while editing Catalog Item. Changed code that sets entry points to nil when displaying a Catalog Item, it was displaying incorrect values even after entry point was removed.
    - Added spec test to verify blank resource action does not get saved.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333
    (cherry picked from commit f194cbd)
    
    @gmccullough please review.
    https://github.com/ManageIQ/manageiq/pull/2961
    
    See merge request !77

 vmdb/app/controllers/catalog_controller.rb       | 23 +++++++++-------
 vmdb/spec/controllers/catalog_controller_spec.rb | 34 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 9 deletions(-)

Comment 12 Shveta 2015-06-02 21:21:33 UTC
*** Bug 1226850 has been marked as a duplicate of this bug. ***

Comment 17 CFME Bot 2015-12-16 02:31:23 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/dbdae8478162b96f0d761b8e3810d5a1f36ce2ea

commit dbdae8478162b96f0d761b8e3810d5a1f36ce2ea
Author:     Harpreet Kataria <hkataria>
AuthorDate: Mon Dec 14 14:27:24 2015 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Mon Dec 14 14:51:29 2015 -0500

    Fixed code to redirect to Requests list after dialog is submitted.
    
    - Added spec test to verify redirect.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333

 .../application_controller/dialog_runner.rb        | 14 +++++--------
 .../application_controller/dialog_runner_spec.rb   | 24 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 9 deletions(-)

Comment 18 CFME Bot 2015-12-17 21:24:25 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=1c638030576e15614031f0560c1823fdcf57f614

commit 1c638030576e15614031f0560c1823fdcf57f614
Merge: 0754121 ee9bb23
Author:     Dan Clarizio <dclarizi>
AuthorDate: Thu Dec 17 15:58:50 2015 -0500
Commit:     Dan Clarizio <dclarizi>
CommitDate: Thu Dec 17 15:58:50 2015 -0500

    Merge branch '55z_pr_5838' into '5.5.z'
    
    Fixed code to redirect to Requests list after dialog is submitted.
    
    - Added spec test to verify redirect.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333
    https://bugzilla.redhat.com/show_bug.cgi?id=1291707
    (cherry picked from commit dbdae84)
    
    @dclarizi please review, this is clean cherry-pick for https://github.com/ManageIQ/manageiq/pull/5838
    
    See merge request !635

 .../application_controller/dialog_runner.rb        | 14 +++++--------
 .../application_controller/dialog_runner_spec.rb   | 24 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 9 deletions(-)

Comment 19 CFME Bot 2015-12-17 21:24:41 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=ee9bb232c141f040aea772d0623ab0f7768c36d8

commit ee9bb232c141f040aea772d0623ab0f7768c36d8
Author:     Harpreet Kataria <hkataria>
AuthorDate: Mon Dec 14 14:27:24 2015 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu Dec 17 10:06:01 2015 -0500

    Fixed code to redirect to Requests list after dialog is submitted.
    
    - Added spec test to verify redirect.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1221333
    https://bugzilla.redhat.com/show_bug.cgi?id=1291707
    (cherry picked from commit dbdae84)

 .../application_controller/dialog_runner.rb        | 14 +++++--------
 .../application_controller/dialog_runner_spec.rb   | 24 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 9 deletions(-)

Comment 20 Shveta 2016-04-20 18:34:55 UTC
Verification Blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1328967

Comment 21 Shveta 2016-04-29 22:32:08 UTC
Works fine in 

5.6.0.4-beta2.3.20160421172650_719e256

Aziza. you can move it to Verified.

Comment 22 Aziza Karol 2016-05-02 05:16:41 UTC
Moving it to verified base on comment 21.

Comment 24 errata-xmlrpc 2016-06-29 14:55:04 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.

https://access.redhat.com/errata/RHBA-2016:1348


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