Updating Control Center to release 2.1.0
This section includes procedures for updating Control Center release 1.11.0 or release 2.0.2 to release 2.1.0.
The following list outlines recommended best practices for updating Control Center deployments:
- Review the release notes for this release and relevant prior releases. The latest information is provided there.
- On delegate hosts, most of the update steps are identical. Use screen, tmux, or a similar program to establish sessions on each delegate host and perform the steps at the same time.
- Review and verify the settings in delegate host configuration files (
/etc/default/serviced) before starting the update. Ideally, the settings on all delegate hosts are identical, except on ZooKeeper nodes and delegate hosts that don't mount the DFS. - Review the update procedures before performing them. Every effort is made to avoid mistakes and anticipate needs; nevertheless, the instructions may be incorrect or inadequate for some requirements or environments.
Note
The supported update paths are from Control Center 1.11.0 and from Control Center 2.0.2 to Control Center 2.1.0. Releases 2.0.3, 2.0.4, and 2.0.5 were not released to on-premises customers, so this guide doesn't include an update path from them. If you're running a Control Center version older than 1.11.0, update to 1.11.0 first.
Updates to release 2.1.0 from 1.11.0 include three steps that earlier Control Center updates didn't require:
- Backing up the deployment: There's no way to return to release 1.11.0 after the update starts. Take a backup first.
- Clearing the internal services HBase data: The update clears the embedded HBase data that stores Control Center internal metrics.
- Configuring Docker registry authentication: The internal Docker registry now requires authentication. You create a registry password file on the master host, and you log in to the registry on every host in the deployment.
Hosts that already run release 2.0.2 have these in place. They already use HBase 2.6.4, so they skip the HBase clear, and they already completed the registry authentication steps for release 2.0.2, so they skip those steps too. Each of these procedures says when to skip it.
Zenoss Service Dynamics deployments install the serviced-zsd package.
Release 2.1.0 also changes the following behavior. Review these items before you update.
- Internal services images: Release 2.1.0 runs
zenoss/serviced-isvcs:v79andzenoss/isvcs-zookeeper:v18, and the first start after the update recreates the internal services containers on them. The update procedure loads both images from self-installing image files before that start. The image compiled intoservicedisv77, so the procedure setsSERVICED_ISVCS_IMAGEtov79on the master host. - Exhibitor port: Port 12181 is no longer published, because the ZooKeeper image doesn't include Exhibitor. The
SERVICED_ISVC_ZOOKEEPER_PORT_12181_HOSTIPvariable is no longer read. Remove any monitoring or firewall rule that expects Exhibitor on that port. - Health check exit code: The exit code of
serviced healthcheckignores the per-member ZooKeeper checks. A degraded ZooKeeper ensemble shows in theredundancyrow of the output, not in the exit code. A script or update gate that must notice a degraded ensemble has to read that row. - Image settings: The new optional
SERVICED_ISVCS_*_IMAGEvariables set the internal services images. Remove any that you set before, and then setSERVICED_ISVCS_IMAGEon the master host as the procedure describes. See Updating the serviced binary for release 2.1.0.
You can't return to release 1.11.0 after the update starts
When you update from release 1.11.0, release 2.1.0 migrates the internal Docker registry forward and records it as migrated, and the internal data stores move forward with it. There's no downgrade path. If you have to return to release 1.11.0, the only route is to restore a backup that you took before the update. See Backing up the deployment.
Updating from 1.11.0 deletes Control Center metric history
HBase in the internal services image can't open the data that HBase 0.99.2, the version in release 1.11.0, left, so OpenTSDB doesn't start and every Control Center graph is empty. To recover, you clear the embedded HBase data before the first start of release 2.1.0, which deletes the metrics that Control Center collected about its own internal services. Graphs for internal services start from an empty data set after the update, and metrics collected before the update can't be recovered. Application data isn't affected. Hosts that already run release 2.0.2 use HBase 2.6.4 and don't need this step. See Clearing the internal services HBase data.
Updating 1.11.0 and 2.0.2 to 2.1.0
The update has seven phases. Complete them in order.
- Back up the deployment
- Download the required files
- Stage Docker image files on the master host
- Update the master host
- Update the delegate hosts
- Start Control Center
- Perform post-update procedures
Backing up the deployment
Take a backup before you begin. This step is required, not optional. Once the update starts, there's no way to return to release 1.11.0 except by restoring a backup taken beforehand.
-
Log in to the master host as a user with
servicedCLI privileges. -
Confirm that enough space is available in the backup file system. For sizing guidance, see Back up and restore.
-
Create the backup.
serviced backup /opt/serviced/var/backups -
Confirm that the backup completed and note its name. You need the name if you have to restore.
serviced backup ls
If you need to return to release 1.11.0 after a failed update, reinstall release 1.11.0 and then restore this backup. For the restore procedure, see Restoring.
Downloading Control Center files for release 2.1.0
Use this procedure to download required files to a workstation, and then copy the files to the hosts that need them.
To perform this procedure, you need:
- Internet access: A workstation that can reach the download site.
- Permission: Access to download files from delivery.zenoss.io. Customers can request permission by filing a ticket at the Zenoss Support site.
- A secure network copy program: Used to copy files to Control Center hosts.
Follow these steps:
-
In a web browser, navigate to delivery.zenoss.io, and then log in.
-
Download the self-installing Docker image files.
install-zenoss-serviced-isvcs_v79.runinstall-zenoss-isvcs-zookeeper_v18.run
-
Download the Control Center RPM file.
serviced-zsd-2.1.0-1.x86_64.rpm
-
Identify the operating system release on Control Center hosts. All Control Center hosts should be running the same operating system release and kernel.
cat /etc/redhat-release -
Download the repository mirror file that matches the operating system of the hosts. The mirror contains the packages that Control Center requires. Release 2.1.0 provides one mirror file for Rocky Linux 9 and one for AlmaLinux 9. Hosts that run a later minor release, such as Rocky Linux 9.5, use the same file.
- Rocky Linux 9 and RHEL 9:
yum-mirror-rocky9.4-serviced-2.1.0.x86_64.rpm - AlmaLinux 9:
yum-mirror-alma9.4-serviced-2.1.0.x86_64.rpm
RHEL 8 and CentOS 7 are not supported. Move the hosts to Rocky Linux 9, AlmaLinux 9, or RHEL 9 before you update Control Center.
- Rocky Linux 9 and RHEL 9:
-
Optional: Download the Zenoss Pretty Good Privacy (PGP) key. You can use the key to verify RPM files and the
yummetadata of the repository mirror.-
Download the key.
curl --location -o /tmp/tmp.html 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xED0A5FD2AA5A1AD7' -
Determine whether the download succeeded. If the result is
0, repeat the previous substep. If the result is1, continue.grep -Ec '^\-\-\-\-\-BEGIN PGP' /tmp/tmp.html -
Extract the key.
awk '/^-----BEGIN PGP.*$/,/^-----END PGP.*$/' /tmp/tmp.html > ./RPM-PGP-KEY-Zenoss
-
-
Use a secure copy program to copy the files to Control Center hosts. Copy all files to the master host. Copy the repository mirror file, the Control Center RPM file, and the PGP key file to all delegate hosts. Copy the
install-zenoss-isvcs-zookeeper_v18.runfile to each delegate host that is a ZooKeeper ensemble node.The image file names can contain a colon instead of the underscore before the tag, for example
install-zenoss-isvcs-zookeeper:v18.run, depending on where you download them. The procedures in this guide accept either name. Withscp, start a local file name that contains a colon with./, becausescpreads the text before the colon as a host name.scp ./install-zenoss-isvcs-zookeeper*.run root@<delegate-host>:/root/
Staging Docker image files on the master host
Before performing this procedure, verify that sufficient temporary space is available on the file system where /root is located. The install-zenoss-serviced-isvcs_v79.run file is approximately 2.0 GB, and the image takes approximately 6.0 GB on disk after Docker loads it. The install-zenoss-isvcs-zookeeper_v18.run file is approximately 180 MB, and the image takes approximately 690 MB on disk.
Use this procedure to copy Docker image files to the Control Center master host.
-
Log in to the master host as root or as a user with superuser privileges.
-
Copy or move the archive files to
/root. -
Add execute permission to the files.
chmod +x /root/*.run
Staging a Docker image file on ZooKeeper ensemble nodes
Before performing this procedure, verify that approximately 900 MB of temporary space is available on the file system where /root is located. The install-zenoss-isvcs-zookeeper_v18.run file is approximately 180 MB, and the image takes approximately 690 MB on disk after Docker loads it.
Use this procedure to add a Docker image file to the Control Center delegate hosts that are ZooKeeper ensemble nodes. The master host is always a node in the ensemble, and it already has the file from the previous procedure. Delegate hosts that aren't ZooKeeper ensemble nodes don't need the file.
-
Log in to a delegate host as root or as a user with superuser privileges.
-
Copy or move the
install-zenoss-isvcs-zookeeper_v18.runfile to/root. -
Add execute permission to the file.
chmod +x /root/*.run
Update the master host
Perform the following procedures on the master host of a multi-host deployment, or on the single host in a single-host deployment. Procedures for delegate hosts are in Update the delegate hosts.
Installing the repository mirror
Use this procedure to install the Zenoss repository mirror on a Control Center host. The mirror contains packages that all Control Center hosts require. Repeat this procedure on each host in your deployment.
-
Log in to the target host as root or as a user with superuser privileges.
-
Move the RPM files and the PGP key file to
/tmp. -
Updates only: Remove the existing repository mirror, if necessary.
-
Search for the mirror.
yum list --disablerepo=* | awk '/^yum-mirror/ { print $1}' -
Remove the mirror. Replace
Old-Mirrorwith the name that the previous substep returned.yum remove Old-Mirror
-
-
Install the repository mirror. The
yumcommand copies the contents of the RPM file to/opt/zenoss-repo-mirror.yum install /tmp/yum-mirror-*.rpm -
Optional: Install the PGP key, and then test the package files.
-
Move the key to the mirror directory.
mv /tmp/RPM-PGP-KEY-Zenoss /opt/zenoss-repo-mirror -
Install the key.
rpm --import /opt/zenoss-repo-mirror/RPM-PGP-KEY-Zenoss -
Test the repository mirror package file. On success, the result includes the file name and
(sha1) dsa sha1 md5 gpg OK.rpm -K /tmp/yum-mirror-*.rpm -
Test the Control Center package file.
rpm -K /tmp/serviced-zsd-2.1.0-1.x86_64.rpm
-
-
Move the Control Center package file to the mirror directory.
mv /tmp/serviced-zsd-2.1.0-1.x86_64.rpm /opt/zenoss-repo-mirror
Stopping Control Center on the master host
Use this procedure to stop the Control Center service (serviced) on the master host.
-
Log in to the master host as root or as a user with superuser privileges.
-
Stop the top-level service that
servicedmanages, if necessary.-
Show the status of running services. The top-level service is listed immediately below the headings line. If the top-level service and all child services are stopped, go to step 3.
serviced service status -
Stop the top-level service.
serviced service stop Zenoss.resmgr -
Monitor the stop. When the top-level service and all child services are stopped, go to the next step.
serviced service status
-
-
Stop the Control Center service.
systemctl stop serviced -
Confirm that the service is stopped. The result is
inactive.systemctl is-active serviced -
Ensure that no containers remain in the local repository.
-
Display the identifiers of all containers, running and exited. If the command returns no result, this procedure is complete.
docker ps -qa -
Remove all remaining containers.
docker ps -qa | xargs --no-run-if-empty docker rm -fv -
Display the identifiers of all containers again. If the command returns no result, this procedure is complete. Otherwise, disable automatic startup of
serviced, reboot the host, log in again, and re-enable automatic startup.docker ps -qa
-
Loading image files
Use this procedure to load images into the local Docker registry on a host.
-
Log in to the host as root or as a user with superuser privileges.
-
Change directory to
/root.cd /root -
Load the images.
for image in install-zenoss-*.run do /bin/echo -en "\nLoading $image..." yes | ./$image done -
List the images in the registry. The result shows one image for each archive file.
docker images
Updating the serviced binary for release 2.1.0
Use this procedure to update the serviced binary on a Control Center host. Perform this procedure on each host in your Control Center deployment. In multi-host deployments, stop serviced on the master host first.
-
Log in to the host as root or as a user with superuser privileges.
-
Start the
dockerservice, if necessary.systemctl is-active docker || systemctl start docker -
Disable SELinux temporarily, if necessary.
-
Determine the current mode. If the result isn't
enforcing, go to step 4.sestatus | awk '/Current mode:/ { print $3 }' -
Disable SELinux temporarily.
setenforce 0
-
-
Save the current
servicedconfiguration file as a reference and set permissions to read-only.mv /etc/default/serviced /etc/default/serviced-pre-2.1.0 chmod 0440 /etc/default/serviced-pre-2.1.0 -
Install the new Control Center package. If
yumreturns a dependency error, see Resolving package dependency conflicts.yum install --enablerepo=zenoss-mirror /opt/zenoss-repo-mirror/serviced-zsd-2.1.0-1.x86_64.rpm -
Enable SELinux, if you disabled it in step 3.
setenforce 1 -
Make a backup copy of the new configuration file and set permissions to read-only.
cp /etc/default/serviced /etc/default/serviced-2.1.0-orig chmod 0440 /etc/default/serviced-2.1.0-orig -
Compare the new configuration file with the original configuration file of the release that the host runs now. On a host that runs release 2.0.2, which the 2.0.2 update guide created, compare with
/etc/default/serviced-2.0.2-orig. On a host that runs release 1.11.0, compare with/etc/default/serviced-1.11.0-orig. A host that went from 1.11.0 to 2.0.2 and is now updating to 2.1.0 has both files. Use the 2.0.2 file.diff /etc/default/serviced-2.0.2-orig /etc/default/serviced-2.1.0-origOn a host that runs release 1.11.0, use this command instead.
diff /etc/default/serviced-1.11.0-orig /etc/default/serviced-2.1.0-origThe differences document the following new settings, which are commented out in the shipped file.
- New in release 2.0.2:
SERVICED_DOCKER_CERT_FILE,SERVICED_DOCKER_KEY_FILE, andSERVICED_DOCKER_CA_FILE(TLS files for the local Docker registry),SERVICED_DFS_NFS_NETWORK(the network scope of the DFS NFS exports), andSERVICED_READONLY_GROUP(the group whose members can log in with read-only access). - New in release 2.1.0:
SERVICED_ISVCS_IMAGE,SERVICED_ISVCS_ZOOKEEPER_IMAGE,SERVICED_ISVCS_OPENTSDB_BIGTABLE_IMAGE, andSERVICED_ISVCS_API_KEY_PROXY_IMAGE(internal services images), andSERVICED_OTELCOL_PROXY,SERVICED_OTELCOL_NO_PROXY, andSERVICED_OTELCOL_CA_FILE(settings for the OpenTelemetry Collector). The comment forSERVICED_READONLY_GROUPalso changed, because read-only logins now work when Auth0 is configured.
A host that runs release 1.11.0 sees the settings of both lists.
- New in release 2.0.2:
-
Restore the backup of the previous configuration file. If the previous command returned differences, use them to edit the restored file. For more information, see Configuration variables.
cp /etc/default/serviced-pre-2.1.0 /etc/default/serviced && chmod 0644 /etc/default/servicedIn the restored file, find the
SERVICED_ISVCS_IMAGE,SERVICED_ISVCS_ZOOKEEPER_IMAGE,SERVICED_ISVCS_OPENTSDB_BIGTABLE_IMAGE, andSERVICED_ISVCS_API_KEY_PROXY_IMAGEvariables. These optional variables override the internal services images that are compiled intoserviced. If any of them is set, remove it or comment it out. RemoveSERVICED_ISVC_ZOOKEEPER_PORT_12181_HOSTIPtoo, becauseservicedno longer reads it.On the master host only, add the following line to the restored file, so that the master runs the
v79internal services image instead of thev77image that is compiled intoserviced. Delegate hosts don't need it.SERVICED_ISVCS_IMAGE=zenoss/serviced-isvcs:v79 -
Reload the
systemdmanager configuration.systemctl daemon-reload
Restart after you change image settings
A change to a SERVICED_ISVCS_*_IMAGE variable takes effect when serviced starts. An override that you removed or commented out stays in effect until serviced restarts. You start serviced for the first time after the update in Start Control Center.
Configuring Docker registry authentication on the master host
Beginning with release 2.0.2, the internal Docker registry requires a user name and password. Earlier releases exposed the Docker Registry HTTP API v2 without authentication.
TLS is optional
Authentication is required, but encryption isn't. By default the registry accepts basic authentication over plain HTTP, and you don't need a certificate to complete this update. To encrypt registry traffic, set the SERVICED_DOCKER_CERT_FILE and SERVICED_DOCKER_KEY_FILE variables in /etc/default/serviced.
Use this procedure to create the registry password file on the master host. Perform it while serviced is stopped, after you update the Control Center binary and before you start Control Center.
Hosts that run release 2.0.2 skip this procedure
The 2.0.2 update already created the registry password file and logged in every host. Skip this procedure and the login procedures that follow it, unless a host isn't logged in. Running the htpasswd command below again with the -c option creates the file anew.
-
Log in to the master host as root or as a user with superuser privileges.
-
Confirm that
servicedis stopped. The result isinactive.systemctl is-active serviced -
Install the
htpasswdtool, if it isn't already installed.dnf install -y httpd-tools -
Create the registry password file. Replace
<registry-user>with a user name of your choice and<password>with a password of your choice.htpasswd -bcBC 10 /opt/serviced/isvcs/resources/.htpasswd <registry-user> <password> -
Set the permissions of the password file.
chmod 644 /opt/serviced/isvcs/resources/.htpasswd -
Verify that the file exists and is readable.
ls -l /opt/serviced/isvcs/resources/.htpasswd
Note
Record the credentials in your organization's secret store. You need them on every host in the deployment, and again when you verify the update.
Delegate hosts don't need a copy of this file. The registry runs on the master host, so the password file is required there only. Delegate hosts need a login, which is the next procedure.
Logging in to the Docker registry
Control Center reads registry credentials from the credential file that belongs to the root user on the host where Control Center is running. Docker writes that file when you run docker login, and it doesn't copy the file to other hosts. Every host in the deployment therefore needs its own login.
A host that isn't logged in fails silently
Control Center doesn't check for credentials before it tries to download an image, and it doesn't report a missing login. The registry refuses the request, and the operator sees only an image download that fails without a stated reason. If images fail to download after you enable authentication, confirm that the affected host has been logged in.
Perform this procedure on the master host and on every delegate host.
-
Log in to the host as root. Run
docker loginas root rather than throughsudofrom another account, because Control Center reads the credential file belonging to root. -
Identify the registry endpoint.
grep -E '^[[:space:]]*SERVICED_DOCKER_REGISTRY=' /etc/default/serviced -
Log in to the registry, using the address exactly as the previous step returned it. Replace
<registry-user>with the user name you set on the master host, and enter the password when prompted. The result isLogin Succeeded.docker login -u <registry-user> <registry-address>The address has to match exactly
Docker matches a saved login to a registry by the exact text of the address, so a login saved under one form of the address doesn't apply to another. Use the value of
SERVICED_DOCKER_REGISTRYas written on that host. On a delegate, that value points at the master host. Don't substitutelocalhost, which on a delegate refers to the delegate itself, where no registry is running. -
Confirm that the credential file was written.
ls -l /root/.docker/config.json
Clearing the internal services HBase data
HBase in the serviced-isvcs image can't open the data that an older HBase version leaves behind, so OpenTSDB doesn't start and every Control Center graph is empty. Release 1.11.0 uses HBase 0.99.2, and releases 2.0.2 and 2.1.0 use HBase 2.6.4. The new version can't read the data of the old one, and nothing migrates it. Clear the data only when the HBase version changes in this way, that is, when you update from release 1.11.0. Use this procedure on the master host.
If the host already runs release 2.0.2, it already uses HBase 2.6.4. Skip this procedure, because clearing the data would delete metric history that the new release can read.
Updating from 1.11.0 deletes Control Center metric history
Removing the HBase data directory deletes the metrics that Control Center collected about its own internal services. After the update, graphs for internal services start from an empty data set, and earlier metrics can't be recovered. Application data isn't affected.
The internal services path is the value of the SERVICED_ISVCS_PATH variable, which is /opt/serviced/var/isvcs by default. The HBase data is in the opentsdb/hbase/ directory below it. The commands in this procedure use the default path. If your deployment sets SERVICED_ISVCS_PATH, use that path instead.
Hosts that use Bigtable for OpenTSDB keep no local HBase data, and they don't need this procedure.
-
Log in to the master host as root or as a user with superuser privileges.
-
Confirm that
servicedis stopped. The result isinactive. Don't continue until it is.systemctl is-active serviced -
Remove the embedded HBase data.
rm -rf /opt/serviced/var/isvcs/opentsdb/hbase/* -
Confirm that the directory is empty.
ls -la /opt/serviced/var/isvcs/opentsdb/hbase/
Setting the internal services OpenTSDB credentials
Control Center requires a user name and password to run the internal services OpenTSDB database. If these credentials are already set on this host, skip this procedure.
-
Log in to the master host as root or as a user with superuser privileges.
-
Edit the Control Center configuration file.
- Open
/etc/default/servicedin a text editor. - Locate the line for the SERVICED_ISVCS_OPENTSDB_USERNAME variable, and then copy the line immediately below the original.
- Remove the number sign character (
#) from the beginning of the copied line. - Enter a user name for the OpenTSDB server. You can choose any user name.
- Locate the line for the SERVICED_ISVCS_OPENTSDB_PASSWD variable, and then copy the line immediately below the original.
- Remove the number sign character (
#) from the beginning of the copied line. - Enter a password for the OpenTSDB server. You can choose any password.
- Save the file, and then close the editor.
- Open
-
Verify the credentials in the configuration file.
grep -E '^[[:space:]]*SERVICED_ISVCS_OPENTSDB' /etc/default/serviced
Optional: Installing a security certificate
The default certificate that Control Center uses for TLS-encrypted communications is compiled into serviced. Use this procedure to replace the default certificate files with your own files.
If you use virtual host public endpoints, you need a wildcard certificate or a subject alternative name (SAN) certificate. If your users reach the browser interface through a reverse proxy, the proxy may present its own certificate; contact Support for assistance.
Perform this procedure on the master host and on each delegate host.
-
Log in to the host as root or as a user with superuser privileges.
-
Use a secure copy program to copy the key and certificate files to
/tmp. -
Move the key file to the
/etc/pki/tls/privatedirectory. Replace<KEY_FILE>with the name of your key file.mv /tmp/<KEY_FILE>.key /etc/pki/tls/private -
Move the certificate file to the
/etc/pki/tls/certsdirectory. Replace<CERT_FILE>with the name of your certificate file.mv /tmp/<CERT_FILE>.crt /etc/pki/tls/certs -
Create a backup copy of the Control Center configuration file.
cp /etc/default/serviced /etc/default/serviced.before-cert-files -
Edit the Control Center configuration file to set SERVICED_KEY_FILE and SERVICED_CERT_FILE to the full path names of your files. Uncomment each line by removing the number sign character (
#). -
Verify the settings in the configuration file.
grep -E '^[[:space:]]*[A-Z_]+' /etc/default/serviced -
Reload the
systemdmanager configuration.systemctl daemon-reload
Update the delegate hosts
Perform the following procedures on each delegate host in a multi-host deployment. Before you begin, stop Control Center on the master host.
Installing the repository mirror on a delegate host
Follow Installing the repository mirror. The procedure is identical on delegate hosts.
Stopping Control Center on a delegate host
Use this procedure to stop the Control Center service on a delegate host. Repeat it on each delegate host. Stop Control Center on the master host first.
-
Log in to the delegate host as root or as a user with superuser privileges.
-
Stop the Control Center service.
systemctl stop serviced -
Ensure that no containers remain in the local repository.
-
Display the identifiers of all containers, running and exited. If the command returns no result, go to step 4.
docker ps -qa -
Remove all remaining containers.
docker ps -qa | xargs --no-run-if-empty docker rm -fv -
If the remove command doesn't complete, the most likely cause is an NFS conflict. Restart the NFS and Docker services, and then repeat the previous substep.
systemctl stop nfs && systemctl stop docker systemctl start nfs && systemctl start docker
-
-
Dismount all file systems mounted from the master host. This step ensures that no stale mounts remain.
-
Identify file systems mounted from the master host. If the command returns no result, this procedure is complete.
awk '/serviced/ { print $1, $2 }' < /proc/mounts | grep -v '/opt/serviced/var/isvcs' -
Force the file systems to dismount.
for FS in $(awk '/serviced/ { print $2 }' < /proc/mounts | grep -v '/opt/serviced/var/isvcs') do umount -f $FS done -
If file systems remain mounted, perform a lazy dismount and restart NFS.
for FS in $(awk '/serviced/ { print $2 }' < /proc/mounts | grep -v '/opt/serviced/var/isvcs') do umount -f -l $FS done systemctl restart nfs
-
Updating the serviced binary on a delegate host
Follow Updating the serviced binary for release 2.1.0. The procedure is identical on delegate hosts.
Logging in to the Docker registry on a delegate host
Follow Logging in to the Docker registry on each delegate host, using the registry endpoint rather than localhost. Don't skip this step. A delegate that isn't logged in can't download images, and the failure doesn't identify itself as an authentication problem.
Delegate hosts don't need their own copy of the registry password file. The file is required only on the master host, where the registry runs.
Loading the ZooKeeper image on ensemble nodes
Use this procedure to load the zenoss/isvcs-zookeeper:v18 image on the delegate hosts that are ZooKeeper ensemble nodes. The master host loaded the image in Loading image files.
-
Log in to the master host as root or as a user with superuser privileges.
-
Identify the hosts in the ZooKeeper ensemble. The result is a list of 3 or 5 hosts, separated by commas. The master host is always a node in the ensemble.
grep -E '^[[:space:]]*SERVICED_ZK=' /etc/default/serviced -
Log in to a delegate host that's a ZooKeeper ensemble node as root or as a user with superuser privileges.
-
Change directory to
/root.cd /root -
Load the ZooKeeper image.
yes | ./install-zenoss-isvcs-zookeeper*.run -
Confirm that the image is present. The result includes
zenoss/isvcs-zookeeperwith the tagv18.docker images zenoss/isvcs-zookeeper -
Repeat steps 3 through 6 on each delegate host that's a node in the ZooKeeper ensemble.
Start Control Center
Use the start procedure that matches your deployment. For a multi-host deployment, follow Starting Control Center (multi-host deployment) in the 1.11.0 update instructions; the procedure is unchanged for release 2.1.0.
Starting Control Center (single-host deployment)
-
Log in to the master host as root or as a user with superuser privileges.
-
Enable
serviced, if necessary.systemctl is-enabled serviced || systemctl enable serviced -
Start the Control Center service.
systemctl start serviced -
Check the service status.
systemctl status serviced -
Optional: Monitor the startup.
journalctl -u serviced -f -o cat
The internal services need time to start. OpenTSDB typically takes 2 to 5 minutes. A full deployment on a busy host can take 10 to 15 minutes.
Verifying the update
Use this procedure to confirm that the registry, the internal services, and the metrics pipeline are working after the update.
-
Confirm that the master host is logged in to the registry. The result is
Login Succeeded. Replace<registry-user>with the user name you set in Configuring Docker registry authentication on the master host.docker login -u <registry-user> localhost:5000 -
Confirm that the registry requires and accepts authentication.
curl -u <registry-user> http://127.0.0.1:5000/v2/ -
Confirm that the internal services containers are running.
docker ps | grep serviced-isvcs -
Confirm that OpenTSDB responds. Replace
<opentsdb-user>with the value ofSERVICED_ISVCS_OPENTSDB_USERNAME.curl -m 10 -u <opentsdb-user> http://localhost:4242/api/version -
Confirm that HBase isn't restarting repeatedly. No recent output means HBase is stable.
docker logs --tail 20 serviced-isvcs_opentsdb 2>&1 | grep "exited: hbase" -
In the browser interface, select a running service, and then select Internal Metrics. Graphs can remain empty for 5 to 10 minutes while Control Center collects new data. Refresh the page after that.
-
Confirm that per-service memory statistics report real values rather than
0B.serviced service status -
In a multi-host deployment, check the health of the deployment. If a ZooKeeper member is down, the command can still exit with 0. Read the
redundancyrow, which reports how many ZooKeeper members are serving.serviced healthcheck -
On each delegate host, confirm that images download. If an image download fails without a stated reason, the most likely cause is that the host isn't logged in to the registry. See Logging in to the Docker registry.
Note
If the RAM columns in step 7 still report 0B after the internal services have fully started, contact Support.
Post-update procedures
Removing unused images
Use this procedure to identify and remove unused Control Center images.
-
Log in to the master host as root or as a user with superuser privileges.
-
Identify the images associated with the installed version of
serviced. The result is similar toIsvcsImages: [zenoss/serviced-isvcs:v79 zenoss/isvcs-zookeeper:v18].serviced version | grep Images -
Display the
servicedimages in the local repository.docker images | awk '/REPO|isvcs/' -
Remove unused images. Replace
Image-IDwith the image ID of an image for a previous version, and repeat for each unused image.docker rmi Image-ID
Note
Keep the zenoss/serviced-isvcs:v79 and zenoss/isvcs-zookeeper:v18 images. The master host runs them.