Bug 1398725
Summary: | Can't add provider specific catalog items to global region | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | luke couzens <lcouzens> | |
Component: | Provisioning | Assignee: | Brandon Dunne <bdunne> | |
Status: | CLOSED ERRATA | QA Contact: | luke couzens <lcouzens> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.7.0 | CC: | bdunne, cpelland, dajohnso, dscott, gmccullo, hkataria, jhardy, lcouzens, mpovolny, ncarboni, obarenbo, simaishi | |
Target Milestone: | GA | Keywords: | ZStream | |
Target Release: | 5.8.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | distributed:service | |||
Fixed In Version: | 5.8.0.8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1436236 (view as bug list) | Environment: | ||
Last Closed: | 2017-05-31 14:24:35 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1436236 |
Description
luke couzens
2016-11-25 17:04:11 UTC
Luke, Is there a backtrace that comes with that message in the log? Could you post it if there is? Thanks Nick, I don't think there is any relevant backtrace that I can see. I ran through this again on the latest build and I see the same error in the logs as before http://pastebin.test.redhat.com/440728 However after enabling central admin there is no errors shown in the logs but the same issue persists in the ui, no item added and no error shown. I was able to reproduce this. I can see that nothing happens when you try to create the catalog item. The thing that concerns me more though is that when central admin is configured, attempting to save the catalog item actually starts the provision request in the remote region. The provision runs because MiqRequest.class_from_request_data is returning MiqProvisionRequest rather than MiqProvisionRequestTemplate when called from the API with the options we pass. This type of thing is not supported; we intended the catalog, dialog, and item to be created in the remote region prior to ordering an item. Because of this I would think we would want to stop something like this from happening somewhere else in the workflow (maybe by not showing templates from remote regions?) rather than attempt to "fix" it by creating the request template in the remote region. Thoughts? Hasn't been any movement on this in quite some time so I'm going to re-assign it to the provisioning component as they will probably be better able to fix this. Hi Greg, Do we want a separate bz for the MiqProvisionRequest X MiqProvisionRequestTemplate stuff in Nicks comment. I only ask as I am reproducing a similar issue on 5.8.0.4, the difference I see is the items are actually added on the global region now and at the same time they fire off a provision request to the remote region. Thoughts? New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/548d782f7a71e381e7aad940fd79201375062bbf commit 548d782f7a71e381e7aad940fd79201375062bbf Author: Brandon Dunne <bdunne> AuthorDate: Wed Mar 22 18:09:33 2017 -0400 Commit: Brandon Dunne <bdunne> CommitDate: Wed Mar 22 18:13:17 2017 -0400 Add test for MiqProvisionVirtWorkflow#allowed_templates https://bugzilla.redhat.com/show_bug.cgi?id=1398725 spec/models/miq_provision_virt_workflow_spec.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/7853c6fe4ba9547df440630df97dcf47fcefa917 commit 7853c6fe4ba9547df440630df97dcf47fcefa917 Author: Brandon Dunne <bdunne> AuthorDate: Wed Mar 22 18:11:01 2017 -0400 Commit: Brandon Dunne <bdunne> CommitDate: Wed Mar 22 18:13:17 2017 -0400 Limit selectable template to the local region https://bugzilla.redhat.com/show_bug.cgi?id=1398725 app/models/miq_provision_virt_workflow.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) *** Bug 1432237 has been marked as a duplicate of this bug. *** Verified in 5.8.0.8 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/RHSA-2017:1367 |