Este conteúdo não está disponível no idioma selecionado.
Chapter 3. Install OpenDaylight on the overcloud
Red Hat OpenStack Platform director 10 provides an overcloud image that contains all of the necessary software for OpenStack services that run on overcloud nodes. However, the OpenDaylight software and dependencies are not included in the image by default. To install OpenDaylight, use the virt-customize
command on the undercloud to upload the OpenDaylight RPM and install it:
Prepare the installation of OpenDaylight
- Log on to the undercloud node.
Run the script:
source ~/stackrc
$ source ~/stackrc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the following packages:
sudo yum -y install libguestfs-tools libvirt rhosp-director-images
$ sudo yum -y install libguestfs-tools libvirt rhosp-director-images
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Start the
libvirtd
service:sudo systemctl start libvirtd
$ sudo systemctl start libvirtd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the directory where you will store the images:
mkdir ~/images
$ mkdir ~/images
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the directory:
cd ~/images
$ cd ~/images
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Extract the
overcloud-full.tar
file:tar xvf /usr/share/rhosp-director-images/overcloud-full.tar
$ tar xvf /usr/share/rhosp-director-images/overcloud-full.tar
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Extract the
ironic-python-agent.tar
file:tar xvf /usr/share/rhosp-director-images/ironic-python-agent.tar
$ tar xvf /usr/share/rhosp-director-images/ironic-python-agent.tar
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Install the OpenDaylight packages
Register the image with your RHN user:
virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager register --username <your RHN user> --password <RHN password>’
$ virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager register --username <your RHN user> --password <RHN password>’
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Attach the Red Hat Enterprise Linux subscription:
virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager attach --pool <pool id>'
$ virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager attach --pool <pool id>'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the necessary repositories in your image:
virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-openstack-10-rpms'
$ virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-openstack-10-rpms'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the OpenDaylight package and its dependencies:
virt-customize -a overcloud-full.qcow2 --install opendaylight --selinux-relabel --update
$ virt-customize -a overcloud-full.qcow2 --install opendaylight --selinux-relabel --update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Detach the subscription and unregister the image:
virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager remove --all && subscription-manager unregister && subscription-manager clean'
$ virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager remove --all && subscription-manager unregister && subscription-manager clean'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you do not have an overcloud image installed, skip this and proceed to next step. Otherwise update the image:
openstack overcloud image upload --update-existing --image-path ~/images/
$ openstack overcloud image upload --update-existing --image-path ~/images/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you have skipped Step 6, upload the new overcloud image to glance:
openstack overcloud image upload
$ openstack overcloud image upload
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
More information
If you need to update the images on the undercloud before you start the procedure, use:
sudo openstack overcloud image upload --update
$ sudo openstack overcloud image upload --update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To get the Pool ID (Step 10), you can run:
subscription-manager list --available
subscription-manager list --available
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - See the Red Hat Subscription Management guide for more details.