[Satellite 6] On Red Hat Satellite GUI host delete fails with error 'Runtime Error RESTEASY001185: Could not find resource for relative'
Environment
- Red Hat Satellite 6.2.x
Issue
- On
Red Hat SatelliteGUI host delete fails with following error:
Error: Katello::Resources::Candlepin::CandlepinResource: 404 Resource Not Found {"displayMessage":"Runtime Error RESTEASY001185: Could not find resource for relative : /consumers//entitlements of full path: https://localhost:8443/candlepin/consumers//entitlements at org.jboss.resteasy.core.registry.PathParamSegment.matchPattern:209","requestUuid":"6230ef80-cfc6-3745-9450-d6895f9b857h"} (GET /candlepin/consumers//entitlements)
Resolution
- The
clean_backend_objectsrake task does a check against foreman/katello and candlepin to match up hosts and clean out data that doesn't match entirely:
# foreman-rake katello:clean_backend_objects
System 1011 system1 is partially missing. Cleaning.
System 1013 system2 is partially missing. Cleaning.
Note: After run clean_backend_objects if you are still getting same error during remove the content-host then only go with below steps:
- Remove the system consumer using the following command:
Note: Before run below command replace your content-host name with client.example.com.
# foreman-rake console
Loading production environment (Rails 3.2.8)
irb(main):001:0>Host.find_by_name("client.example.com").content_facet.destroy
irb(main):001:0>Host.find_by_name("client.example.com").subscription_facet.destroy
irb(main):001:0>Host.find_by_name("client.example.com").destroy
Diagnostic Steps
- When delete a host from
Red Hat SatelliteGUI it fails with following error:
Error: Katello::Resources::Candlepin::CandlepinResource: 404 Resource Not Found {"displayMessage":"Runtime Error RESTEASY001185: Could not find resource for relative : /consumers//entitlements of full path: https://localhost:8443/candlepin/consumers//entitlements at org.jboss.resteasy.core.registry.PathParamSegment.matchPattern:209","requestUuid":"6230ef80-cfc6-3745-9450-d6895f9b857h"} (GET /candlepin/consumers//entitlements)
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
