Bug 2070615

Summary: Saving changes of Host edit returns page not found error
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: Host FormAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: tstrych
Severity: high Docs Contact:
Priority: medium    
Version: 6.11.0CC: mhulan, rabajaj
Target Milestone: 6.11.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-18 17:01:58 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:

Description Pavel Moravec 2022-03-31 14:31:50 UTC
Description of problem:
This is related to New Hosts page and routing among new/old Hosts.

Registering a Content Host to 6.11 (well, 7.0 beta/dogfood) and attempting to edit it, then clicking to Submit button leads to "The page you were looking for doesn't exist." error.


Version-Release number of selected component (if applicable):
satellite-7.0.0-0.5.beta
katello-4.3.0-1


How reproducible:
100%


Steps to Reproduce:
1. Register a (Content) Host to Satellite
2. Open it in the new Hosts
3. Edit the host
4a. Regardless of a change done or not, click to Submit
4b. .. or click to Cancel


Actual results:
4a.:
- "The page you were looking for doesn't exist." error pops up in WebUI
- 'No route matches [GET] "/new/hosts"' error printed to production.log
4b.: Cancelling the edit, I get to the old Hosts page, despite the new Hosts is configured as the default.


Expected results:
4a/b. proper host page is displayed in either case


Additional info:
The edit itself does work well, a change is stored. Just resulting URI is wrong in either Submit/Cancel case.

Comment 1 tstrych 2022-03-31 23:02:24 UTC
I just tested this with sat 6.11 snap 14.

satellite-7.0.0-0.7.beta
katello-4.3.0-1

4a) I can't reproduce what you are described. 
I can see only the issue mentioned in BZ 2054011, my path after submit is https://<hostname>.<domain>/new/hosts/<hostname>.<domain>.<domain>#/Overview
No error pop up in WebUI.
I believe more precise steps on how you created and registered the host can help.


4b) cancel navigation to the new page was verified within BZ 2053884