Project

General

Profile

Actions

Bug #30234

closed

Upgrade from 6.3 to 6.4, PostgreSQL is removed during the upgrade process.

Added by Kavita Gaikwad almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1669498

Description of problem:

Upgrading from 6.3 to 6.4, PostgreSQL is removed by foreman-maitain if the 'clean_requirements_on_remove' is enabled on yum.conf

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

6.3.5

How reproducible:

Upgrade Satellite 6.3.5 to 6.4.x

Steps to Reproduce:

1. On the /etc/yum.conf add the option 'clean_requirements_on_remove=1'
2. Try to upgrade the Satellite using the foreman-maintain
3. It will fail as PostgreSQL is removed

Actual results:

The PostgreSQL is removed and the upgrade fails.

Expected results:

The PostgreSQL would not be removed during the upgrade.

Additional info:

Below an output from a reproducer.
Note: The PostgreSQL is removed during the 'yum upgrade step'
~~~
[root@sat632 ~]# foreman-maintain upgrade run --target-version 6.4 --whitelist="disk-performance"
Running Checks before upgrading to Satellite 6.4 ================================================================================
Check for verifying syntax for ISP DHCP configurations: [SKIPPED]
DHCP feature is not enabled
--------------------------------------------------------------------------------
Check whether all services are running: [OK]
--------------------------------------------------------------------------------
Check whether all services are running using hammer ping: [OK]
--------------------------------------------------------------------------------
Check for paused tasks: [OK]
--------------------------------------------------------------------------------
Check to validate candlepin database: [OK]
--------------------------------------------------------------------------------
Check if EPEL repository enabled on system: | Checking for presence of EPEL repository [OK]
--------------------------------------------------------------------------------
Check for running tasks: [OK]
--------------------------------------------------------------------------------
Check for old tasks in paused/stopped state: [OK]
--------------------------------------------------------------------------------
Check for pending tasks which are safe to delete: [OK]
--------------------------------------------------------------------------------
Check for tasks in planning state: [OK]
--------------------------------------------------------------------------------
Check for recommended disk speed of pulp, mongodb, pgsql dir.: [SKIPPED]
--------------------------------------------------------------------------------
Check whether reports have correct associations: [OK]
--------------------------------------------------------------------------------
Verify puppet and provide upgrade guide for it:
- current puppet version: [OK]
--------------------------------------------------------------------------------
Validate availability of repositories:
- Validating availability of repositories for 6.4 [OK]
--------------------------------------------------------------------------------

The pre-upgrade checks indicate that the system is ready for upgrade.
It's recommended to perform a backup at this stage.
Confirm to continue with the modification part of the upgrade, [y(yes), n(no), q(quit)] y
Running Procedures before migrating to Satellite 6.4 ================================================================================
Turn on maintenance mode: [OK]
--------------------------------------------------------------------------------
disable active sync plans: | Total 0 sync plans are now disabled. [OK]
--------------------------------------------------------------------------------
Stop applicable services:
Stopping the following service(s):

mongod, postgresql, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, smart_proxy_dynflow_core, tomcat, foreman-tasks, httpd, puppetserver, foreman-proxy | stopping foreman-proxy
Redirecting to /bin/systemctl stop foreman-proxy.service
/ stopping puppetserver
Redirecting to /bin/systemctl stop puppetserver.service
- stopping httpd
Redirecting to /bin/systemctl stop httpd.service
/ stopping foreman-tasks
Redirecting to /bin/systemctl stop foreman-tasks.service
\ stopping tomcat
Redirecting to /bin/systemctl stop tomcat.service | stopping smart_proxy_dynflow_core
Redirecting to /bin/systemctl stop smart_proxy_dynflow_core.service
/ stopping pulp_workers
Redirecting to /bin/systemctl stop pulp_workers.service
- stopping pulp_streamer
Redirecting to /bin/systemctl stop pulp_streamer.service | stopping pulp_resource_manager
Redirecting to /bin/systemctl stop pulp_resource_manager.service | stopping pulp_celerybeat
Redirecting to /bin/systemctl stop pulp_celerybeat.service
- stopping squid
Redirecting to /bin/systemctl stop squid.service | stopping qpidd
Redirecting to /bin/systemctl stop qpidd.service
/ stopping qdrouterd
Redirecting to /bin/systemctl stop qdrouterd.service | stopping postgresql
Redirecting to /bin/systemctl stop postgresql.service | stopping mongod
Redirecting to /bin/systemctl stop mongod.service
/ All services stopped [OK]
--------------------------------------------------------------------------------

Running Migration scripts to Satellite 6.4 ================================================================================
Setup repositories: | Configuring repositories for 6.4 [OK]
--------------------------------------------------------------------------------
Update package(s) :
Loaded plugins: product-id, search-disabled-repos, subscription-manager
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: [Errno 12] Timeout on https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: [Errno 12] Timeout on https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: [Errno 12] Timeout on https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ansible/2.6/os/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
rhel-7-server-ansible-2.6-rpms | 4.1 kB 00:00:00
rhel-7-server-rpms | 3.5 kB 00:00:00
rhel-7-server-satellite-6.4-rpms | 4.0 kB 00:00:00
rhel-7-server-satellite-maintenance-6-rpms | 3.8 kB 00:00:00
rhel-7-server-satellite-tools-6.4-rpms | 3.8 kB 00:00:00
rhel-server-rhscl-7-rpms | 3.5 kB 00:00:00
(1/18): rhel-7-server-ansible-2.6-rpms/x86_64/updateinfo | 12 kB 00:00:00
(2/18): rhel-7-server-rpms/7Server/x86_64/group | 856 kB 00:00:00
(3/18): rhel-7-server-ansible-2.6-rpms/x86_64/primary_db | 15 kB 00:00:01
(4/18): rhel-7-server-satellite-6.4-rpms/x86_64/group | 5.5 kB 00:00:00
(5/18): rhel-7-server-rpms/7Server/x86_64/updateinfo | 3.1 MB 00:00:02
(6/18): rhel-7-server-satellite-6.4-rpms/x86_64/updateinfo | 36 kB 00:00:01
(7/18): rhel-7-server-satellite-6.4-rpms/x86_64/primary_db | 202 kB 00:00:00
(8/18): rhel-7-server-satellite-maintenance-6-rpms/x86_64/group | 104 B 00:00:00
(9/18): rhel-7-server-satellite-maintenance-6-rpms/x86_64/updateinfo | 7.9 kB 00:00:00

=== ommited output ===

tfm-rubygem-polyglot                                            noarch               0.3.5-2.el7sat                           rhel-7-server-satellite-6.4-rpms                         6.9 k
tfm-rubygem-record_tag_helper noarch 1.0.0-1.el7sat rhel-7-server-satellite-6.4-rpms 7.3 k
tfm-rubygem-unicode x86_64 0.4.4.1-5.el7sat rhel-7-server-satellite-6.4-rpms 85 k
Updating for dependencies:
python-pulp-rpm-common noarch 2.16.4.1-5.el7sat rhel-7-server-satellite-6.4-rpms 74 k
tfm-rubygem-net-scp noarch 1.2.1-2.el7sat rhel-7-server-satellite-6.4-rpms 18 k
Removing for dependencies:
postgresql-server x86_64 9.2.24-1.el7_5 @rhel-7-server-rpms 16 M

Transaction Summary ==============================================================================================================================================================================================
Install 12 Packages (114 Dependent packages)
Upgrade 243 Packages (
2 Dependent packages)
Remove ( 1 Dependent package)

Total download size: 411 M
Downloading packages:
No Presto metadata available for rhel-7-server-rpms
No Presto metadata available for rhel-7-server-satellite-maintenance-6-rpms
No Presto metadata available for rhel-7-server-satellite-6.4-rpms
^C

Exiting on user cancel
[FAIL]
Failed executing yum y update , exit status 1
-------------------------------------------------------------------------------

Scenario [Migration scripts to Satellite 6.4] failed.

The following steps ended up in failing state:

[packages-update]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="packages-update"
~~~

Actions #1

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/366 added
Actions #2

Updated by Kavita Gaikwad almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF