Preparing the NetBackup for OpenStack container images
Warning:
All commands need to be run as user "stack".
NetBackup for OpenStack uses the local registry on the undercloud to house packages.
NetBackup for OpenStack provides a shell script, which pushes the containers to the undercloud and updates the nbos_env.yaml.
cd /home/stack/nbos-cfg-scripts/redhat-director-scripts/<RHOSP_RELEASE_DIRECTORY>//scripts
sudo ./prepare_nbos_images.sh <UNDERCLOUD_REGISTRY_HOSTNAME> <IMAGE_SOURCE_FOLDER>
Run following command to find UNDERCLOUD_REGISTRY_HOSTNAME.
In the following example nbos-undercloud is <UNDERCLOUD_REGISTRY_HOSTNAME>
$ openstack tripleo container image list | grep keystone | docker://nbos-undercloud:8787/rhosp-rhel8/openstack-keystone:16.0-82 | | docker://nbos-undercloud:8787/rhosp-rhel8/openstack-barbican-keystone-listener:16.0-84
CONTAINER_TAG format for RHOSP16.1: <NBOS_VERSION>-rhosp16.1
CONTAINER_TAG format for RHOSP16.2: <NBOS_VERSION>-rhosp16.2
Example,
sudo ./prepare_nbos_images.sh nbos-undercloud 9.0.1017-rhosp16.1 /home/stack/nbos/nbos-rhosp16.1-9.0.1017
The changes can be verified using the following commands.
(undercloud) [stack@nbos-undercloud scripts]$ sudo podman images | grep 9.0.1017-rhosp16.1 localhost/nbos-horizon-plugin 9.0.1017-rhosp16.1 8705f72da6d4 5 days ago 1.16 GB localhost/nbosdmapi 9.0.1017-rhosp16.1 2da0be5dcacb 5 days ago 1.46 GB localhost/nbosdm 9.0.1017-rhosp16.1 d6e1168faae2 5 days ago 2.97 GB ----------------------------------------------------------------------------------------------------- (undercloud) [stack@host scripts]$ grep 'Image' ../environments/nbos_env.yaml docker_nbosdm_image: nbos-undercloud:8787/nbosdm:9.0.1017-rhosp16.1 docker_nbosdmapi_image: nbos-undercloud:8787/nbosdmapi:9.0.1017-rhosp16.1 ContainerHorizonImage: nbos-undercloud:8787/nbos-horizon-plugin: 9.0.1017-rhosp16.1