Bug 1332620 - Upgrades: All the hosts appear unsubscribed and I can't attach subscription
Summary: Upgrades: All the hosts appear unsubscribed and I can't attach subscription
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1335807
TreeView+ depends on / blocked
 
Reported: 2016-05-03 15:07 UTC by Justin Sherrill
Modified: 2019-09-26 17:33 UTC (History)
5 users (show)

Fixed In Version: rubygem-katello-3.0.0.27-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:29:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
After upgrade subscriptions are attached to content-hosts those are created before upgrade (78.32 KB, image/png)
2016-06-09 09:54 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14738 0 High Closed All the hosts appear unsubscribe i can't attach subscription 2020-02-07 23:15:26 UTC

Description Justin Sherrill 2016-05-03 15:07:04 UTC
When i go to the content hosts tab all the hosts appear now unsubscribe after upgrade from 2.4 to 3.0 RC3
this is what i got when try to check one of the subsciptions 


2016-04-21 12:54:44,482 [thread=http-bio-8443-exec-1] [req=909431d7-7231-4ff4-8b1a-adb0a3645447, org=] INFO  org.candlepin.common.filter.LoggingFilter - Request: verb=GE                                                                    T, uri=/candlepin/owners/Verifone/info
2016-04-21 12:54:45,353 [thread=http-bio-8443-exec-1] [req=909431d7-7231-4ff4-8b1a-adb0a3645447, org=Verifone] INFO  org.candlepin.common.filter.LoggingFilter - Response                                                                    : status=200, content-type="application/json", time=888
2016-04-21 12:55:03,650 [thread=http-bio-8443-exec-3] [req=95410c8c-20d3-4048-87b3-989d051c0a46, org=] INFO  org.candlepin.common.filter.LoggingFilter - Request: verb=GE                                                                    T, uri=/candlepin/consumers//compliance
2016-04-21 12:55:03,660 [thread=http-bio-8443-exec-3] [req=95410c8c-20d3-4048-87b3-989d051c0a46, org=] ERROR org.candlepin.common.exceptions.mappers.CandlepinExceptionMa                                                                    pper - Runtime Error Could not find resource for relative : /consumers//compliance of full path: https://localhost:8443/candlepin/consumers//compliance at org.jboss.rest                                                                    easy.core.registry.PathParamSegment.matchPattern:209
org.jboss.resteasy.spi.NotFoundException: Could not find resource for relative : /consumers//compliance of full path: https://localhost:8443/candlepin/consumers//complia                                                                    nce
        at org.jboss.resteasy.core.registry.PathParamSegment.matchPattern(PathParamSegment.java:209) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:339) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:44) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:327) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:374) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:367) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:350) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:192) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125) ~[resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.7.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:na]
        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]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at org.candlepin.servlet.filter.ContentTypeHackFilter.doFilter(ContentTypeHackFilter.java:58) [ContentTypeHackFilter.class:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at org.candlepin.common.filter.LoggingFilter.doFilter(LoggingFilter.java:90) [candlepin-common-1.0.23.jar:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at org.candlepin.servlet.filter.CandlepinPersistFilter.doFilter(CandlepinPersistFilter.java:48) [CandlepinPersistFilter.class:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at org.candlepin.servlet.filter.CandlepinScopeFilter.doFilter(CandlepinScopeFilter.java:68) [CandlepinScopeFilter.class:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.54]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.54]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.54]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.54]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) [catalina.jar:7.0.54]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.54]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:7.0.54]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.54]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [catalina.jar:7.0.54]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) [tomcat-coyote.jar:7.0.54]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) [tomcat-coyote.jar:7.0.54]
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) [tomcat-coyote.jar:7.0.54]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_99]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_99]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.54]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_99]
2016-04-21 12:55:03,666 [thread=http-bio-8443-exec-3] [req=95410c8c-20d3-4048-87b3-989d051c0a46, org=] INFO  org.candlepin.common.filter.LoggingFilter - Response: status                                                                    =404, content-type="application/json", time=16

Attach foreman-debug

Comment 1 Justin Sherrill 2016-05-03 15:07:06 UTC
Created from redmine issue http://projects.theforeman.org/issues/14738

Comment 2 Justin Sherrill 2016-05-03 15:07:09 UTC
Upstream bug assigned to jsherril

Comment 5 Sachin Ghai 2016-06-03 11:21:09 UTC
Verified with upgrade from sat6.1.9 -> sat6.2 GA snap14.1 on rhel7.

Upgrade was successfully completed. And host are subscribed even after upgrade. I can install packages on hosts.


[root@mac001a4a3ea60f ~]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Default_Organization_RHEL6_RHEL67_x86_64                                                                                       | 2.5 kB     00:00     
repo id                                                                              repo name                                                  status
Default_Organization_RHEL6_RHEL67_x86_64                                             RHEL67_x86_64                                              3,819
repolist: 3,819
[root@mac001a4a3ea60f ~]# yum install zsh
Loaded plugins: product-id, security, subscription-manager
Setting up Install Process
Default_Organization_RHEL6_RHEL67_x86_64                                                                                       | 2.5 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package zsh.x86_64 0:4.3.11-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================
 Package                Arch                      Version                           Repository                                                   Size
======================================================================================================================================================
Installing:
 zsh                    x86_64                    4.3.11-4.el6                      Default_Organization_RHEL6_RHEL67_x86_64                    2.2 M

Transaction Summary
======================================================================================================================================================
Install       1 Package(s)

Total download size: 2.2 M
Installed size: 5.0 M
Is this ok [y/N]: y
Downloading Packages:
zsh-4.3.11-4.el6.x86_64.rpm                                                                                                    | 2.2 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : zsh-4.3.11-4.el6.x86_64                                                                                                            1/1 
Default_Organization_RHEL6_RHEL67_x86_64/productid                                                                             | 1.6 kB     00:00     
  Verifying  : zsh-4.3.11-4.el6.x86_64                                                                                                            1/1 

Installed:
  zsh.x86_64 0:4.3.11-4.el6                                                                                                                           

Complete!
[root@mac001a4a3ea60f ~]#

Comment 6 Sachin Ghai 2016-06-09 09:53:08 UTC
Verified with upgrade from sat6.1.9 -> sat6.2 snap15.0

I can see hosts are subscribed after upgrade. I can attach and remove subscriptions from the selected host after upgrade and don't get any exception in logs.

[root@precapsulerhel7 ~]# yum repolist
Loaded plugins: package_upload, product-id, search-disabled-repos, subscription-manager
Server error attempting a GET to /rhsm/ returned status 404
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
repo id                                          repo name                                                status
!rhel-7-server-rpms/7Server/x86_64               Red Hat Enterprise Linux 7 Server (RPMs)                 10,684
!rhel-7-server-satellite-capsule-6.1-rpms/x86_64 Red Hat Satellite Capsule 6.1 (for RHEL 7 Server) (RPMs)    271
!rhel-7-server-satellite-tools-6.1-rpms/x86_64   Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs)       83

Comment 7 Sachin Ghai 2016-06-09 09:54:14 UTC
Created attachment 1166227 [details]
After upgrade subscriptions are attached to content-hosts those are created before upgrade

Comment 8 Bryan Kearney 2016-07-27 11:29:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501


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