Autodeploying VIM Overcloud with HPE 3PAR
To perform this procedure, you must be logged in to the NPS toolkit VM as a root user.
Before deploying the VIM Overcloud, ensure that the VIM Undercloud is in CONFIGURED state.
-
To upload and check the status of Overcloud images to Undercloud Glance, run the following commands.
- To upload the Overcloud images, run the following command:
nps deploy -s vim_overcloud -a create-images
- To check the status of the create-images operation, run the following command:
nps show --data vim --node overcloud
Wait until the status is displayed as
IMAGES_UPLOADED
orIMAGES_UPLOAD_FAILED
. - If the state is displayed as
IMAGES_UPLOADED
, log in to the Undercloud VM and view the list of Overcloud images that are uploaded by executing the following command:source stackrc openstack image list
- If the state is displayed as
IMAGES_UPLOAD_FAILED
, analyze thenps-rhosp-<topology_name>-ansible.log
and thenps-rhosp-cli-<topology_name>-date.log
files in the/var/nps/logs/<topology_name>/
directory of the NPS toolkit VM. Based on the log files, complete the corrective actions. - To perform the create-images operation again, run the following command:
nps deploy -s vim_undercloud -a create-images
- To upload the Overcloud images, run the following command:
-
To configure the Undercloud VM as a local repository for the container images, run the following command:
nps deploy -s vim_overcloud -a create-registry
-
To check the status of the create-registry operation, run the following command:
nps show --data vim --node overcloud
Wait until the status is displayed as
REGISTRY_CONFIGURED
orREGISTRY_CONFIGURATION_FAILED
.- If the state is displayed as
REGISTRY_CONFIGURATION_FAILED
, analyze thenps-rhosp-<topology_name>-ansible.log
and thenps-rhosp-cli-<topology_name>-date.log
files in the/var/nps/logs/<topology_name>/
directory of the NPS toolkit VM. Based on the log files, complete the corrective actions. - To perform the create-registry operation again, run the following command:
nps deploy -s vim_overcloud -a create-registry
- If the state is displayed as
-
To pull the custom HPE 3PAR container image, do the following:
- Log in to undercloud as a stack user and run the following command:
docker pull <localrepo ip>:8787/rhosp13/openstack-cinder-volume-hpe:latest
- To get the image ID, run the following command:
docker images
- To tag the image, run the following command:
docker tag <IMAGE ID> <undercloudvimpxeip>:8787/rhosp13/openstack-cinder-volume-hpe:latest
- To push the image to local repository, run the following command:
docker push <undercloudvimpxeip>:8787/rhosp13/openstack-cinder-volume-hpe:latest
- Replace the value of
DockerCinderVolumeImage
parameter value with <undercloudvimpxeip>:8787/rhosp13/openstack-cinder-volume-hpe:latestcd /home/stack/templates/env_files vi overcloud_images.yaml DockerCinderVolumeImage: <undercloudvimpxeip>:8787/rhosp13/openstack-cinder-volume-hpe:latest
- Log in to undercloud as a stack user and run the following command:
-
Run the following Overcloud autodeploy command on NPS toolkit VM:
nps deploy -s vim_overcloud -a autodeploy
When this command is run, the NPS toolkit creates a
nps-rhosp-cli
container and initiates thenps-rhosp overcloud autodeploy
command. -
To check the status of the installation, run the following command:
nps show --data vim --node overcloud
Wait until the status is displayed as OVERCLOUD_INSTALLED.
NOTE:If there is failure, rerun the auto deploy command after fixing the issue. For more details to run individual tasks, see Installing VIM Overcloud.
-
To access the Overcloud dashboard, log in as an Administrator user using the following URL:
http://<VIP IP address>/dashboard
The Administrator user login credentials are available in the Undercloud VM in the
/home/stack/overcloudrc
file. Retrieve the VIP IP address (OS_AUTH_URL=https://<VIP IP address>
) that is available in theovercloudrc
file.NOTE:If the Horizon dashboard is inaccessible (
500-Internal server error
), run the following commands in all the Overcloud controllers:sudo docker stop horizon sudo docker start horizon