Bug 1369261 - Unable to register new content-hosts
Summary: Unable to register new content-hosts
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.2.0
Hardware: x86_64
OS: Linux
high
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
: 1417030 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-22 21:24 UTC by Mihir Lele
Modified: 2020-07-16 08:52 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-01 19:39:31 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Mihir Lele 2016-08-22 21:24:33 UTC
Created attachment 1193088 [details]
sosreport

Description of problem:

Whenever the Customer is trying to register a new content-host, he is getting an error "RestClient::InternalServerError: 500 Internal Server Error"


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


How reproducible: NA


Additional info:

#Hammer ping and #katello-service status shows no errors.

Candlepin error logs:


    2016-08-16 09:47:46,770 [thread=http-bio-8443-exec-9] [req=151d7450-bb95-40f9-bb56-c9f037a5a38c, org=] ERROR org.ca
    ndlepin.common.exceptions.mappers.CandlepinExceptionMapper - Runtime Error RESTEASY001185: Could not find resource
    for relative : /consumers//entitlements of full path: https://localhost:8443/candlepin/consumers//entitlements at o
    rg.jboss.resteasy.core.registry.PathParamSegment.matchPattern:209
    org.jboss.resteasy.spi.NotFoundException: RESTEASY001185: Could not find resource for relative : /consumers//entitl
    ements of full path: https://localhost:8443/candlepin/consumers//entitlements
            at org.jboss.resteasy.core.registry.PathParamSegment.matchPattern(PathParamSegment.java:209) ~[resteasy-jax
    rs-2.3.10.Final.jar:na]
            at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:340) ~[resteasy-jaxrs-2.3.10
    .Final.jar:na]
            at org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:45) ~[resteasy-jaxrs-2.3.1
    0.Final.jar:na]
            at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:328) ~[resteasy-jaxrs-2.3.10
    .Final.jar:na]
            at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:375) ~[resteasy-jaxrs-2.3.10.Fin
    al.jar:na]
            at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:368) ~[resteasy-jaxrs-2.3.10.Fin
    al.jar:na]
            at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:349) ~[res
    teasy-jaxrs-2.3.10.Final.jar:na]
            at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:191) ~[resteasy-jaxr
    s-2.3.10.Final.jar:na]
            at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:124) ~[resteasy-jaxrs-2.
    3.10.Final.jar:na]
            at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.
    java:208) [resteasy-jaxrs-2.3.10.Final.jar:na]
            at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [
    resteasy-jaxrs-2.3.10.Final.jar:na]
            at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [
    resteasy-jaxrs-2.3.10.Final.jar:na]
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [tomcat-servlet-3.0-api.jar:na]
            at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar
    :na]
            at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:n
    a]
            at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-
    3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3
    .0.jar:na]
            at org.candlepin.servlet.filter.EventFilter.doFilter(EventFilter.java:63) [EventFilter.class:na]

Comment 2 Justin Sherrill 2016-12-19 19:39:20 UTC
I believe this is resolved upstream in future 6.3 by http://projects.theforeman.org/issues/12556

If there are any reproducer steps, that would be helpful.  I'm guessing the original cause of the error was that some issue occured between candlepin consumer creation and saving of the consumer uuid.

Comment 4 Mike McCune 2017-01-30 20:29:57 UTC
This bug is most likely caused by:

https://bugzilla.redhat.com/show_bug.cgi?id=1417689

The candlepin error is a symptom of the failed registration in Pulp's consumer create.

Comment 5 Stephen Benjamin 2017-02-10 17:49:31 UTC
*** Bug 1417030 has been marked as a duplicate of this bug. ***

Comment 6 Bryan Kearney 2017-06-01 19:39:31 UTC
This will be fixed in 6.3. I am closing this as NEXTRELEASE. If you are still seeing this issue post 6.3 please feel free to re-open with additional information.


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