Bug 1386677 - Sat 6.2 ISO needs correction for installing Satellite from offline repositories
Summary: Sat 6.2 ISO needs correction for installing Satellite from offline repositories
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1377274
TreeView+ depends on / blocked
 
Reported: 2016-10-19 12:36 UTC by Lucie Jirakova
Modified: 2020-02-14 18:02 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1377274
Environment:
Last Closed: 2016-12-08 15:16:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Lucie Jirakova 2016-10-19 12:36:20 UTC
+++ This bug was initially created as a clone of Bug #1377274 +++

Description of problem:

Installation of Satellite from the Offline Repositories throws errors/invalid usage help.
Customer reported to have the below error:
1- After downloading, copying & mounting the rhel7-server & satellite6 binary iso images to the server while executing the "./install_packages" script,  it complained about the following packages:
"selinux-policy-3.13.1-60.el7_2.3.noarch.rpm"
"selinux-policy-targeted-3.13.1-60.el7_2.3.noarch.rpm"

These could not be installed as a requirement because, these version do not exists on the rhel 7.2 iso.

Customer downloaded the required packages and installed them, then executed the "./install_packages" script, which executed without issues this time.

2- However when we(in our test environment) tried to replicate the above(#1) we got another error-

[root@dhcp4-11 sat6]# ./install_packages 
This script will install the satellite packages on the current machine.
   - Ensuring we are in an expected directory.
   - Copying installation files.
   - Creating a Repository File
   - Creating RHSCL Repository File
   - Checking to see if Katello is already installed.
   - Importing the gpg key.
Error: Package: glibc-2.17-105.el7.i686 (InstallMedia)
           Requires: glibc-common = 2.17-105.el7
           Installed: glibc-common-2.17-106.el7_2.6.x86_64 (@anaconda/7.2)
               glibc-common = 2.17-106.el7_2.6
           Available: glibc-common-2.17-105.el7.x86_64 (InstallMedia)
               glibc-common = 2.17-105.el7
Error: Package: cyrus-sasl-2.1.26-19.2.el7.x86_64 (InstallMedia)
           Requires: cyrus-sasl-lib(x86-64) = 2.1.26-19.2.el7
           Installed: cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 (@anaconda/7.2)
               cyrus-sasl-lib(x86-64) = 2.1.26-20.el7_2
           Available: cyrus-sasl-lib-2.1.26-19.2.el7.x86_64 (InstallMedia)
               cyrus-sasl-lib(x86-64) = 2.1.26-19.2.el7
Error: Package: cyrus-sasl-md5-2.1.26-19.2.el7.x86_64 (InstallMedia)
           Requires: cyrus-sasl-lib(x86-64) = 2.1.26-19.2.el7
           Installed: cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 (@anaconda/7.2)
               cyrus-sasl-lib(x86-64) = 2.1.26-20.el7_2
           Available: cyrus-sasl-lib-2.1.26-19.2.el7.x86_64 (InstallMedia)
               cyrus-sasl-lib(x86-64) = 2.1.26-19.2.el7
Error: Package: gnutls-utils-3.3.8-12.el7_1.1.x86_64 (InstallMedia)
           Requires: gnutls(x86-64) = 3.3.8-12.el7_1.1
           Installed: gnutls-3.3.8-14.el7_2.x86_64 (@anaconda/7.2)
               gnutls(x86-64) = 3.3.8-14.el7_2
           Available: gnutls-3.3.8-12.el7_1.1.x86_64 (InstallMedia)
               gnutls(x86-64) = 3.3.8-12.el7_1.1
Error: Package: cyrus-sasl-plain-2.1.26-19.2.el7.x86_64 (InstallMedia)
           Requires: cyrus-sasl-lib(x86-64) = 2.1.26-19.2.el7
           Installed: cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 (@anaconda/7.2)
               cyrus-sasl-lib(x86-64) = 2.1.26-20.el7_2
           Available: cyrus-sasl-lib-2.1.26-19.2.el7.x86_64 (InstallMedia)
               cyrus-sasl-lib(x86-64) = 2.1.26-19.2.el7
Error: Package: gnutls-dane-3.3.8-12.el7_1.1.x86_64 (InstallMedia)
           Requires: gnutls(x86-64) = 3.3.8-12.el7_1.1
           Installed: gnutls-3.3.8-14.el7_2.x86_64 (@anaconda/7.2)
               gnutls(x86-64) = 3.3.8-14.el7_2
           Available: gnutls-3.3.8-12.el7_1.1.x86_64 (InstallMedia)
               gnutls(x86-64) = 3.3.8-12.el7_1.1
Error while executing command: 'yum install -y satellite'

3- not applicable to Installer (only Docs), leaving out of this bug

4- 
Then customer unmounted the iso files according to step 5(of https://access.redhat.com/documentation/en/red-hat-satellite/6.2/single/installation-guide#configuring_the_base_system_with_offline_repositories):

"# unmount /media/sat6"
"# unmount /media/rhelX-server"

and executed the following command to install satellite:
"foreman-installer --scenario satellite  -v \
--foreman-initial-organization "belastingdienst" \
--foreman-initial-location "bilab" \
--foreman-admin-password password \
--foreman-proxy-tftp true"

This fails because for the option "foreman-proxy-tftp true" requires package "tftp-server" to be available, but because the iso is not mounted, it cannot install the package.

The problem related to the Installer here is that not only docs, but also the "./install_packages" script upon its completion explicitly advises customers that they can now safely unmount. This note should be removed from the installation script.



Additional info:

Issue related to: https://access.redhat.com/documentation/en/red-hat-satellite/6.2/paged/installation-guide/chapter-3-installing-satellite-server#comment-1102851

Additional comment explaining why the original bug was cloned: https://bugzilla.redhat.com/show_bug.cgi?id=1377274#c5

Comment 2 Stephen Benjamin 2016-10-19 20:37:48 UTC
> The problem related to the Installer here is that not only docs, but also the "./install_packages" script upon its completion explicitly advises customers that they can now safely unmount. This note should be removed from the installation script.

That seems to make sense to me, it sounds like the installer should say "if you need to run foreman installer again, please remount the cd" or something similar, not that users shouldn't ever unmount the iso.

Comment 7 Sachin Ghai 2016-12-07 08:39:49 UTC
Installed satellite version 6.2.2 using iso w/ rhel7.2 and issue is reproducible. But it doesn't appear with rhel7.3 as pointed in comment6

[root@cloud-qe-3 ~]# mount -o loop satellite-6.2.2-rhel-7-x86_64-dvd.iso /media/sat6/
mount: /root/satellite-6.2.2-rhel-7-x86_64-dvd.iso is already mounted
[root@cloud-qe-3 ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                                                         repo name                                                                       status
InstallMedia                                                    Red Hat Enterprise Linux 7.2                                                    4,620
repolist: 4,620
[root@cloud-qe-3 ~]# cd /media/sat6/
[root@cloud-qe-3 sat6]# ll
total 69
-r-xr-xr-x. 1 root root  5629 Sep 21 09:14 install_packages
-r--r--r--. 1 root root   140 Sep 21 09:29 media.repo
dr-xr-xr-x. 2 root root 57344 Sep 21 09:32 Packages
dr-xr-xr-x. 2 root root  4096 Sep 21 09:32 repodata
dr-xr-xr-x. 4 root root  2048 Sep 21 09:32 RHSCL
-r--r--r--. 1 root root   892 Sep 21 09:32 TRANS.TBL
[root@cloud-qe-3 sat6]# ./install_packages 
This script will install the satellite packages on the current machine.
   - Ensuring we are in an expected directory.
   - Copying installation files.
   - Creating a Repository File
   - Creating RHSCL Repository File
   - Checking to see if Satellite is already installed.
   - Importing the gpg key.
Error: Package: candlepin-selinux-0.9.54.7-1.el7.noarch (satellite-local)
           Requires: selinux-policy >= 3.13.1-60.el7_2.3
           Installed: selinux-policy-3.13.1-60.el7.noarch (@beaker-Server/7.2)
               selinux-policy = 3.13.1-60.el7
Error while executing command: 'yum install -y satellite'
[

Comment 8 Bryan Kearney 2016-12-08 15:16:56 UTC
We will not be refreshig the ISOs for this case. There is a documentation update (see below) to address how to handle this case, but we will not be adding base packages to the satellite ISO.

https://bugzilla.redhat.com/show_bug.cgi?id=1377274#c14


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