Bug 1500486 - Changing cloud volumes in a service provisioning dialog still runs with original value.
Summary: Changing cloud volumes in a service provisioning dialog still runs with origi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: cfme-future
Assignee: Sam Lucidi
QA Contact: Omri Hochman
URL:
Whiteboard: cloud:volume
Depends On:
Blocks: 1514570 1514572
TreeView+ depends on / blocked
 
Reported: 2017-10-10 17:41 UTC by William Fitzgerald
Modified: 2019-01-24 14:32 UTC (History)
12 users (show)

Fixed In Version: 5.9.0.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1514570 1514572 (view as bug list)
Environment:
Last Closed: 2019-01-24 14:32:44 UTC
Category: ---
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Original cloud volume (243.52 KB, image/png)
2017-10-10 17:41 UTC, William Fitzgerald
no flags Details
Changed cloud volume (243.40 KB, image/png)
2017-10-10 17:42 UTC, William Fitzgerald
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1481870 0 high CLOSED Quota not using cloud volumes in requested resource calculation. 2022-07-09 08:57:59 UTC

Internal Links: 1481870

Description William Fitzgerald 2017-10-10 17:41:45 UTC
Created attachment 1336837 [details]
Original cloud volume

Description of problem:
When you try to change a cloud volume in a service catalog it allows the change in the UI but the service catalog runs with the original cloud volume value.


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


How reproducible:

100%

Steps to Reproduce:
1.  Create a service item using Openstack with a cloud volume of 1 gig.
2.  Order the service and notice that the 1 gig is the value used.
3.  Modify/edit service provisioning dialog and change Cloud volume name to 'changed' with a value of 10 gig.
4. Save and order the updated service.
5. Notice the cloud volume is using the original (1 gig) and not the changed (10 gig)

Actual results:


Expected results:


Additional info:
You can look for this in the automation.log:
Adding volume to storage:  {:name=>"original_volume", :size=>"1"} 

Including screenshot of original and then changed ...

Comment 2 William Fitzgerald 2017-10-10 17:42:40 UTC
Created attachment 1336838 [details]
Changed cloud volume

Comment 3 Dave Johnson 2017-10-10 17:44:41 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 4 Greg McCullough 2017-10-11 14:29:59 UTC
Sending to Openstack team to review:

The logic that sets up the :volumes hash [1] only runs when the request is created but would also need to run when it is updated [2].

Having said that, is there a reason we are parsing this data upfront?  It seems the data should be collected but the dialog and parsed when the task is running and about to use the data.  This would allow for automate method to update the fields and would also avoid the issue being reported here.


[1] https://github.com/ManageIQ/manageiq-providers-openstack/blob/master/app/models/manageiq/providers/openstack/cloud_manager/provision_workflow.rb#L23

[2] https://github.com/ManageIQ/manageiq/blob/master/app/models/miq_request_workflow.rb#L89

Comment 5 Sam Lucidi 2017-10-12 19:11:54 UTC
Automate scripts should be able to update the :volumes field directly. The volume form parser only has to populate that value when that information is being changed in the UI, since the volume form is dealing with certain limitations in the provisioning system.

https://github.com/ManageIQ/manageiq/pull/16189 should fix the problem by causing set_request_values to happen on updates.

Comment 10 Jad Haj Yahya 2018-02-22 12:46:57 UTC
tested 3 times on RHOS 12, 5.9.0.21
BTW, works on 5.8.3.2: https://bugzilla.redhat.com/show_bug.cgi?id=1514570

Comment 11 Sam Lucidi 2018-02-22 20:22:36 UTC
Jad, I haven't been able to reproduce the failure you are seeing. Can you please provide more details on exactly what symptoms you are seeing on 5.9.0.21?

Comment 12 Jad Haj Yahya 2018-02-23 08:22:51 UTC
Sam,

I just followed the Steps to Reproduce above.

Before submitting provisioning request, I ordered a 1 GB volume
After submitting, edited the request and changed volume size form 1 to 10 GB and click submit. I got a flash message stating the my request was resubmitted with required changes. 

What happened actually is that volume was created with original size (1 GB)

You can take a look at 10.35.64.32: APP: 10.0.0.23

Comment 13 Sam Lucidi 2018-03-14 15:30:21 UTC
Jad,

The steps to reproduce involve ordering an instance, then editing the catalog item, and then ordering a new instance to see whether the changes to the catalog took place. Your comment says that you ordered an instance, and while the request was being processed you edited the request itself. That's not the same set of steps. If you have auto-approval turned on (which is the default), then you might have edited the request only after it was already being processed by Openstack.

I have tried it both ways, as described in the original comment (creating and then editing the catalog item), as well as creating and editing the request (with autoapproval turned off so that there is no risk of a race condition). In both cases, it works correctly.

Can you please confirm whether you still see the problem when following the steps in the original report?

Thanks!

Comment 14 Jad Haj Yahya 2018-03-16 07:13:57 UTC
Sam,

I remember that I managed to verify this on 5.83 by following samesteps:
https://bugzilla.redhat.com/show_bug.cgi?id=1514570

According to my understanding, the scenario is not talking creating new instance.
During instance creation process, there a period of time were the user can edit the request and modify volume size among other parameters and them resubmitting.

I followed this these steps on 5.8.3.2 over RHOS 12 and worked for me.

Maybe the reporter o bug can shed some light on what he exactly meab on steps to reproduce

Thanks!

Comment 16 Jad Haj Yahya 2018-04-20 10:36:01 UTC
HI William,

Did you disable auto approve mode while provisioning the instance ?

Comment 17 William Fitzgerald 2018-04-23 17:48:15 UTC
Jadh,

I don't think I needed to disable the auto-approval.  I modified the dialog and then ordered the Catalog item again.

Billy

Comment 18 Sam Lucidi 2018-08-09 17:04:40 UTC
Circling back on this, Jad, were you creating an instance and then editing the request, or were you ordering an instance, editing the service dialog, and then ordering again? This bug seems to be about the latter case. In any case, as far as I can tell the bug is fixed.

Comment 19 Jad Haj Yahya 2018-08-28 08:31:20 UTC
Sam,

I will follow the second scenario when reproducing, but looks like i need to disable auto approval


How could auto approval be disabled ?

Comment 20 Jad Haj Yahya 2018-08-29 12:43:32 UTC
Need help on creating Service dialog for provisioning instance via service catalog

May you have a datastore with already configured Service dialog that can be imported to my env ?

Comment 21 Jad Haj Yahya 2018-09-06 07:58:07 UTC
Thanks Sam, very helpful instructions.

According to your instructions, it is working now
The bug can be moved to ON_QA to be verified

Comment 22 Jad Haj Yahya 2018-09-10 10:57:42 UTC
Verified on 5.9.4.7


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