Show Table of Contents
2.6. Upgrading Subscription Asset Manager
- Back up the Subscription Asset Manager instance before beginning the upgrade procedure. Backing up a Subscription Asset Manager instance is covered in Section 9.1, “Backing up Subscription Asset Manager”.
- Stop all Subscription Asset Manager services:
[root@server]# katello-service stop
If thekatello-servicecommand is not available, then stop the associated services manually:[root@server]# service katello stop [root@server]# service katello-jobs stop [root@server]# service httpd stop [root@server]# service tomcat6 stop [root@server]# service elasticsearch stop
Important
Do not turn off thepostgresqlservice. - Flush the indexes.
- Start the Elasticsearch service:
# service elasticsearch start
- Flush the indexes:
# curl localhost:9200/_flush
- Stop the Elasticsearch service:
# service elasticsearch stop
- Upgrade the Subscription Asset Manager packages with
yum:[root@server]# yum upgrade
yumavoids overwriting the current Subscription Asset Manager configuration by creating a set of.rpmnewand.rpmsavefiles. Check these files against the existing configuration for any new changes.For a list of configuration files, run the following command:[root@server]# rpm -ql katello-configure | grep erb | grep etc | sed 's/.*etc/\/etc/' | sed 's/\.erb//'
For a list of.rpmnewfiles, run the following command:[root@server]# find /etc -name *rpmnew
- Upgrade Subscription Asset Manager using the upgrade script.
[root@server]# katello-upgrade
The upgrade script prompts for confirmation for each part of the upgrade process. For example:1/1: Update Candlepin (0003_update_candlepin.sh) Updates Candlepin database schema to the latest version Do you want to proceed? (y/n): y Update Candlepin OK.
- Run
katello-configureto correct any configuration files and analyze log output for errors.[root@server]# katello-configure
Note
In some cases, the configuration process is not finished after runningkatello-configureonce. You will need to runkatello-configureagain to finish the configuration process. You can safely runkatello-configureas many times as required to finish the configuration process, but twice is usually sufficient. - Start the Subscription Asset Manager server:
[root@server]# katello-service start
- Test the Subscription Asset Manager server:
[root@server]# katello-service status [root@server]# katello -u admin -p admin password ping
- Update the port settings on every Subscription Asset Manager agent system.The QPIDD port changed from 5674 to 5671 after Subscription Asset Manager 1.1. All systems connecting to Subscription Asset Manager using katello-agent must be updated to use port 5671.
- Upgrade your system to the latest version of katello-agent and goferd.
- Open the Katello plug-in configuration file:
[root@server]# vim /etc/gofer/plugins/katelloplugin.conf
- Edit the
urlline to change port number.url=ssl://$(host):
5671 - Restart the katello-agent and goferd services.
- Open port 5671 on your Subscription Asset Manager firewall. For example, add the following rule to iptables:
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5671 -j ACCEPT

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.