Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1546122

Summary: UI does not notify on failed plan update
Product: Red Hat OpenStack Reporter: Julie Pichon <jpichon>
Component: openstack-tripleo-uiAssignee: Jiri Tomasek <jtomasek>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: apannu, augol, jjoyce, jrist, jschluet, jtomasek, slinaber, tvignaud
Target Milestone: Upstream M3Keywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-ui-9.3.1-0.20180921180341.df30b55.el7ost.noarch.rpm Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:48:46 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: 1560579    
Bug Blocks:    

Description Julie Pichon 2018-02-16 11:50:04 UTC
Description of problem:
Updating the plan with a new tarball has no effect, the plan/swift container isn't updated with the new files.

Version-Release number of selected component (if applicable):
openstack-tripleo-ui-8.1.1-0.20180122135122.aef02d8.el7ost.noarch
openstack-tripleo-common-8.3.1-0.20180123050218.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. In the UI, create a plan with the default templates
2. Locally, prepare a tarball with the same plan but two changes: edit the description in plan-environment.yaml and add a new file (e.g. random-new-file.yaml).
3. On the plans page in the UI, select "Edit" the plan create in step 1, and upload the tarball with the new files created in step 2
4. Plan updated successfully message shows up after a while

Actual results:
5. If I click on edit, plan still has only 889 files and doesn't show my new file in the list
6. When I download the files from Swift, the new file isn't present and plan-environment.yaml doesn't contain my modification

Expected results:
5. When I click on the plan 'Edit' files tab, I see 890 files
6. When I download the files from swift, I get my new and updated files

Additional info:
I tried with both 'selecting' the plan I wanted to update first, or leaving another default plan selected, but it didn't work in either case.

Comment 1 Julie Pichon 2018-02-16 13:21:21 UTC
Appears to occur with both Firefox and Chrome.

Comment 4 Ana Krivokapic 2018-02-20 11:30:00 UTC
After some team effort debugging, we discovered that the original tarballs used in this bug were faulty and that was the reason the plan update didn't work. When attempting a plan update with a correct tarball, it works fine. However, the issue of UI not displaying a failure message on failed plan update is still relevant. So this bug should be about fixing the UI so that it properly displays a failure message when a plan update fails.

Comment 11 Ana Krivokapic 2018-03-26 13:25:54 UTC
After some more investigation, this is down to the Swift API not returning the correct status code. See bz 1560579 for more detail.

Comment 19 Udi Kalifon 2018-11-12 08:10:13 UTC
I wasn't able to make it fail. Verified: openstack-tripleo-ui-9.3.1-0.20180921180341.df30b55.el7ost.noarch

Comment 21 errata-xmlrpc 2019-01-11 11:48:46 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/RHEA-2019:0045