Bug 1369261

Summary: Unable to register new content-hosts
Product: Red Hat Satellite Reporter: Mihir Lele <mlele>
Component: Hosts - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NEXTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: bkearney, dgross, fcami, greartes, jalviso, jsherril, mmccune, pcfe
Target Milestone: Unspecified   
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: 2017-06-01 19:39:31 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:

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.