-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
Description of problem: when create a http_proxy by API or by CLI, the http_proxy can list by the api and cli, but it can not display on satellite web UI Version-Release number of selected component (if applicable): Satellite6.15 snapshot 4.0 katello-4.11.0-1.el8sat.noarch How reproducible: 100% Steps to Reproduce: 1.Create http proxy by api # curl --insecure -H "accept:application/json,version=2" -H "content-type:application/json" -X POST -d '{"name":"testapi","url":"https://testapi.com:3434","username":null,"locations":[],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization"}]}' -k -u admin:admin https://satellite.example.com:443/api/v2/http_proxies/ {"id":4,"name":"testapi","url":"https://testapi.com:3434","username":null,"password":null,"cacert":null} 2.List the http proxy by API and hammer CLI, can list it [root@dell-per740-68-vm-07 ~]# curl -X GET -k -u admin:admin https://satellite.example.com:443/api/v2/http_proxies/4 {"id":4,"name":"testapi","url":"https://testapi.com:3434","username":null,"locations":[],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization"}]} # hammer http-proxy info --name testapi Id: 4 Name: testapi Username: URL: https://testapi.com:3434 Organizations: Default Organization 3. search it by Satellite http proxy UI , go to Infrastructure->HTTP Proxies search the http proxy, there is no http proxy for "testapi" 4. Create http proxy by hammer CLI # hammer http-proxy create --name test --url https://test.com:3434 --organization-id 1 Http proxy created. 5.list the http proxy by API and Hammer CLI # hammer http-proxy info --name test Id: 3 Name: test Username: URL: https://test.com:3434 Organizations: Default Organization # curl -X GET -k -u admin:admin https://satellite.example.com:443/api/v2/http_proxies/3 {"id":3,"name":"test","url":"https://test.com:3434","username":null,"locations":[],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization"}]} 6. search it by Satellite http proxy UI , go to Infrastructure->HTTP Proxies search the http proxy, there is no http proxy for "testapi" Actual results: Expected results: Additional info:
DEV Tracker for https://issues.redhat.com/browse/SAT-22164
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2256068