此内容没有您所选择的语言版本。

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

  1. Log on to the undercloud node.
  2. Run the script:

    $ source ~/stackrc
  3. Install the following packages:

    $ sudo yum -y install libguestfs-tools libvirt rhosp-director-images
  4. Start the libvirtd service:

    $ sudo systemctl start libvirtd
  5. Create the directory where you will store the images:

    $ mkdir ~/images
  6. Enter the directory:

    $ cd ~/images
  7. Extract the overcloud-full.tar file:

    $ tar xvf /usr/share/rhosp-director-images/overcloud-full.tar
  8. Extract the ironic-python-agent.tar file:

    $ tar xvf  /usr/share/rhosp-director-images/ironic-python-agent.tar

Install the OpenDaylight packages

  1. 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>’
  2. Attach the Red Hat Enterprise Linux subscription:

    $ virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager attach --pool <pool id>'
  3. 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'
  4. Install the OpenDaylight package and its dependencies:

    $ virt-customize -a overcloud-full.qcow2 --install opendaylight --selinux-relabel --update
  5. 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'
  6. 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/
  7. If you have skipped Step 6, upload the new overcloud image to glance:

    $ openstack overcloud image upload

More information

  • If you need to update the images on the undercloud before you start the procedure, use:

    $ sudo openstack overcloud image upload --update
  • To get the Pool ID (Step 10), you can run:

    subscription-manager list --available
  • See the Red Hat Subscription Management guide for more details.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.