Description of problem: I enabled monitoring for system and created monitoring probe. I tried migrate this system to other organization and I got Internal Server Error. Version-Release number of selected component (if applicable): spacewalk-java-2.0.2-39.el6sat.noarch How reproducible: always Steps to Reproduce: 1. enable monitoring 2. set monitoring entitlement 3. create new organization 4. create monitoring probe for this system 5. migrate this system to new organization Actual results: ISE, system wasn't migrated Expected results: without ISE and migration works Additional info: # tail /var/log/tomcat6/catalina.out 2013-09-19 07:33:57,250 [TP-Processor8] ERROR com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction. Rolling back javax.servlet.ServletException: org.hibernate.UnresolvableObjectException: No row with the given identifier exists: [com.redhat.rhn.domain.server.MonitoredServer#1000010006] at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:102) < ... > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:738) Caused by: org.hibernate.UnresolvableObjectException: No row with the given identifier exists: [com.redhat.rhn.domain.server.MonitoredServer#1000010006] at org.hibernate.UnresolvableObjectException.throwIfNull(UnresolvableObjectException.java:65) at org.hibernate.event.def.DefaultRefreshEventListener.onRefresh(DefaultRefreshEventListener.java:148) at org.hibernate.event.def.DefaultRefreshEventListener.onRefresh(DefaultRefreshEventListener.java:62) at org.hibernate.impl.SessionImpl.fireRefresh(SessionImpl.java:932) at org.hibernate.impl.SessionImpl.refresh(SessionImpl.java:916) at com.redhat.rhn.manager.system.SystemManager.unsubscribeServerFromChannel(SystemManager.java:1459) at com.redhat.rhn.manager.system.SystemManager.unsubscribeServerFromChannel(SystemManager.java:1418) at com.redhat.rhn.manager.org.MigrationManager.removeOrgRelationships(MigrationManager.java:181) at com.redhat.rhn.manager.org.MigrationManager.migrateServers(MigrationManager.java:77) at com.redhat.rhn.frontend.action.systems.sdc.SystemMigrateAction.processSubmission(SystemMigrateAction.java:168) at com.redhat.rhn.frontend.action.systems.sdc.SystemMigrateAction.execute(SystemMigrateAction.java:125) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) ... 40 more
This is regression caused by bz976136. com.redhat.rhn.manager.system.SystemManager.unsubscribeServerFromChannel(SystemManager.java:1418) at com.redhat.rhn.manager.org.MigrationManager.removeOrgRelationships(MigrationManager.java:181) This call wasn't there before.
fixed in spacewalk master: 085e6b0eb88ea827f59f2dee44cbf433f93a09e4
Verified with spacewalk-java-2.3.8-52.el6sat.noarch
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is being moved to a Closed Current Release state. The Satellite 5.7 GA Errata: - https://rhn.redhat.com/errata/RHSA-2015-0033.html Satellite 5.7 Release Notes: - https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html Satellite Customer Portal Blog announcement for release: - https://access.redhat.com/blogs/1169563/posts/1315743 Cliff