Bug 1434769
| Summary: | Script install.pl does not print out error message when there is a problem in satellite activation phase | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Michal Dekan <mdekan> |
| Component: | Upgrades | Assignee: | Jan Dobes <jdobes> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ales Dujicek <adujicek> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 580 | CC: | adujicek, galtukho, mdekan, mkorbel, tkasparek, tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-setup-2.5.1-19 spacewalk-backend-2.5.3-121 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-06-21 12:17:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1340444 | ||
The output in comment#0 does not like output of ./install.pl --upgrade there is e.g. ** Database: /var/log/rhn/install_db.log *** Progress: ## ** Database: Installation complete. ** Database: Populating database. *** Progress: ########################### There are things like setting up new database and populating it which does not happen during upgrade and we're not also asking for a manifest during upgrade. look at the contets of satellite-upgrade-postgresql.txt ... 3. Perform the command-line portion of the Red Hat Satellite Server 5.8 beta upgrade. 4. Upgrade the database schema. 5. Activate the Red Hat Satellite with the new Red Hat Satellite manifest. ... Output of install.pl --upgrade ./install.pl --upgrade * Starting Red Hat Satellite installer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation. * RHSM Registration. ** Registration: System is already registered with RHSM. Not re-registering. * RHSM Subscriptions. Successfully attached a subscription for: Red Hat Satellite Employee Subscription ** Subscriptions: Subscription providing 'Red Hat Satellite Beta' successfully attached. ** Subscriptions: Subscription providing 'Red Hat Enterprise Linux Server' already attached. ** Subscriptions: Disabling all RHSM repositories (rhel-ha-for-rhel-6-server-rpms, rhel-lb-for-rhel-6-server-rpms, rhel-6-server-rpms). ** Subscriptions: All repositories disabled. ** Subscriptions: Enabling RHEL repository. ** Subscriptions: RHEL repository enabled. * Upgrade flag passed. Stopping necessary services. * Purging conflicting packages. * Checking for uninstalled prerequisites. ** Checking if yum is available ... There are some packages from Red Hat Enterprise Linux that are not part of the @base group that Satellite will require to be installed on this system. The installer will try resolve the dependencies automatically. However, you may want to install these prerequisites manually. Do you want the installer to resolve dependencies [y/N]? y * Installing Satellite packages. * Now running spacewalk-setup. * Setting up SELinux.. ** Database: Setting up database connection for PostgreSQL backend. *** Upgrading embedded database. ** Database: Populating database. ** Database: Skipping database population. * Configuring tomcat. * Setting up users and groups. ** GPG: Initializing GPG and importing key. * Performing initial configuration. * Activating Red Hat Satellite. ** Manifest not activated. ** Upgrade process requires the manifest to be activated after the schema is upgraded. * Configuring apache SSL virtual host. Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]? y * Configuring jabberd. * Creating SSL certificates. ** Skipping SSL certificate generation. * Deploying configuration files. * Update configuration in database. * Setting up Cobbler.. Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]? y This portion of the Red Hat Satellite upgrade process has successfully completed. Please refer to appropriate upgrade document in /etc/sysconfig/rhn/satellite-upgrade for any remaining steps in the process. You have new mail in /var/spool/mail/root removing some unsupported return codes from comment in rhn_satellite_activate.py, sw master: 1aa98bc3b7e14749351ad8a558bb80179f6e960d |
Description of problem: When trying to upgrade Satellite 5.7 with internal postgres to Satellite 5.8 Version-Release number of selected component (if applicable): Satellite 5.8 How reproducible: 100% Steps to Reproduce: # ./install.pl --upgrade * Starting Red Hat Satellite installer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation. * RHSM Registration. RHSM Username? rhn-support-mdekan RHSM Password? HTTP Proxy Hostname? RHSM Profile Name [vm-175.gsslab.brq.redhat.com]? * RHSM Subscriptions. Successfully attached a subscription for: Red Hat Satellite Employee Subscription ** Subscriptions: Subscription providing 'Red Hat Satellite Beta' successfully attached. ** Subscriptions: Subscription providing 'Red Hat Enterprise Linux Server' already attached. ** Subscriptions: Disabling all RHSM repositories (rhel-ha-for-rhel-6-server-rpms, rhel-lb-for-rhel-6-server-rpms, rhel-6-server-rpms). ** Subscriptions: All repositories disabled. ** Subscriptions: Enabling RHEL repository. ** Subscriptions: RHEL repository enabled. * Checking for uninstalled prerequisites. ** Checking if yum is available ... There are some packages from Red Hat Enterprise Linux that are not part of the @base group that Satellite will require to be installed on this system. The installer will try resolve the dependencies automatically. However, you may want to install these prerequisites manually. Do you want the installer to resolve dependencies [y/N]? y * Installing Satellite packages. * Now running spacewalk-setup. * Setting up SELinux.. ** Database: Setting up database connection for PostgreSQL backend. ** Database: Installing the database: ** Database: This is a long process that is logged in: ** Database: /var/log/rhn/install_db.log *** Progress: ## ** Database: Installation complete. ** Database: Populating database. *** Progress: ########################### * Configuring tomcat. * Setting up users and groups. ** GPG: Initializing GPG and importing key. * Performing initial configuration. * Activating Red Hat Satellite. Where is your satellite manifest file? /root/manifest_1f9456f5-1755-45fc-b508-7ac290883021_satellite5.8.zip ** Loading Red Hat Satellite Manifest. ** Verifying manifest locally. ** Activating Red Hat Satellite. There was a problem activating satellite: 1 Actual results: ** Activating Red Hat Satellite. There was a problem activating satellite: 1 Expected results: ** Activating Red Hat Satellite. Should print out where the problem was, instead of saying "1" Additional info: /var/log/rhn/rhn_installation.log.3 ------------------------------------ ... ... ERROR: Channel family 'rhn-tools-rhel-everything-7-beta' was not found in mapping ERROR: Channel family 'rhn-tools-rhel-everything-7-beta-debug' was not found in mapping Updating certificates... Updating manifest repositories... ERROR: unhandled exception occurred: Traceback (most recent call last): File "/usr/bin/rhn-satellite-activate", line 38, in <module> sys.exit(abs(mod.main() or 0)) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 476, in main localUpdateChannels(cdn_activate.manifest.get_satellite_certificate()) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 283, in localUpdateChannels sync_handlers.populate_channel_family_permissions(sat_cert) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/sync_handlers.py", line 706, in populate_channel_family_permissions importer.run() File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/importLib.py", line 668, in run self.submit() File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/channelImport.py", line 302, in submit self.backend.processChannelFamilyPermissions(self.batch) File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 1119, in processChannelFamilyPermissions cfp['channel_family'], cfp['max_members'], cfp['max_flex']) File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 116, in __call__ result = Function.__call__(self, *args) File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 92, in __call__ raise sql_base.SQLSchemaError(error_code, e.pgerror, e) spacewalk.common.rhnException.rhnFault: (23, 'ERROR: -20290 : (not_enough_entitlements_in_base_org) - You do not have enough entitlements in the base org.: org_id [1] family [jb-coreservices-debug] max [-475]', 'Could not update database entry.')