Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionJitendra Yejare
2017-01-06 13:36:08 UTC
Created attachment 1237966[details]
Satellite Foreman Debug
Description of problem:
**Satellite upgrade from 6.1.11 to 6.2.7 is failed in below step:
Upgrade Step: remove_gutterball...
**And with error:
dropdb: database removal failed: ERROR: database "gutterball" is being accessed by other users
DETAIL: There are 5 other sessions using the database.
Version-Release number of selected component (if applicable):
Satellite: 6.2 Snap 7
OS: redhat
RELEASE: Red Hat Enterprise Linux Server release 7.3 (Maipo)
FOREMAN: 1.11.0.64
RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
PUPPET: 3.8.6
DENIALS: 471
How reproducible:
Steps to Reproduce:
1. Satellite installed with 6.1.11
2. yum update the OS
3. Enable/set 6.2 snap 7 repo on satellite and other required repos
4. Disable not required repos
5. yum update again with sat repo set in step 3
6. Run upgrade command on satellite
Actual results:
The upgrade command(or whole upgrade) is failing in step 'remove gutterball' and with error 'dropdb: database removal failed: ERROR: database "gutterball" is being accessed by other users, DETAIL: There are 5 other sessions using the database.'
Expected results:
The SAtellite Upgrade command and upgrade should be successful.
Additional info:
OS: RHEL7 (Didnt try on RHEL6)
When upgrade from satellite6.1.11 to satellite6.2.7 has the same problem on rhel6.8, the error info as the following:
"dropdb: database removal failed: ERROR: database "gutterball" is being accessed by other users
DETAIL: There are 5 other sessions using the database.
Upgrade step remove_gutterball failed. Check logs for more information.
"
It still failed to upgrade from satellite6.1.11 to satellite6.2.7-sp2. but the error info is different from it as bug description. please see satellite detail log in attachment satellite.log:
[root@hp-dl2x170g6-01 yum.repos.d]# satellite-installer --scenario satellite --upgrade
Upgrading...
Upgrade Step: stop_services...
.............................
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
== 20150930183738 MigrateContentHosts: migrating ==============================
false
Upgrade Step: remove_nodes_distributors...
MongoDB shell version: 2.6.11
connecting to: pulp_database
WriteResult({ "nRemoved" : 0 })
Upgrade Step: Running installer...
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
Installing Done [100%] [........................................................]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/satellite.log
Upgrade failed during the installation phase. Fix the error and re-run the upgrade.
[root@hp-dl2x170g6-01 yum.repos.d]# rpm -q satellite
satellite-6.2.7-1.0.el7sat.noarch
[root@hp-dl2x170g6-01 yum.repos.d]# rpm -q katello-installer-base
katello-installer-base-3.0.0.70-1.el7sat.noarch
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-2017:0197
Created attachment 1237966 [details] Satellite Foreman Debug Description of problem: **Satellite upgrade from 6.1.11 to 6.2.7 is failed in below step: Upgrade Step: remove_gutterball... **And with error: dropdb: database removal failed: ERROR: database "gutterball" is being accessed by other users DETAIL: There are 5 other sessions using the database. Version-Release number of selected component (if applicable): Satellite: 6.2 Snap 7 OS: redhat RELEASE: Red Hat Enterprise Linux Server release 7.3 (Maipo) FOREMAN: 1.11.0.64 RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux] PUPPET: 3.8.6 DENIALS: 471 How reproducible: Steps to Reproduce: 1. Satellite installed with 6.1.11 2. yum update the OS 3. Enable/set 6.2 snap 7 repo on satellite and other required repos 4. Disable not required repos 5. yum update again with sat repo set in step 3 6. Run upgrade command on satellite Actual results: The upgrade command(or whole upgrade) is failing in step 'remove gutterball' and with error 'dropdb: database removal failed: ERROR: database "gutterball" is being accessed by other users, DETAIL: There are 5 other sessions using the database.' Expected results: The SAtellite Upgrade command and upgrade should be successful. Additional info: OS: RHEL7 (Didnt try on RHEL6)