From 88112654e35679358340742014e10af5b63b4331 Mon Sep 17 00:00:00 2001 From: Renu Date: Tue, 30 Nov 2021 15:10:04 +0000 Subject: [PATCH] [Centos Stream8]Devstack install with kubernetes Document fix for Devstack installation with kubernetes in CentOS Stream8. Closes-Bug: #1951420 Closes-Bug: #1951421 Change-Id: Iaae7a04fb87f54d7f9bd8fb3cc2ea49e6002d379 --- doc/source/install/devstack.rst | 15 ++++++++++ .../install/kubernetes_vim_installation.rst | 28 +++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/doc/source/install/devstack.rst b/doc/source/install/devstack.rst index a68eced0d..16e7ac31b 100644 --- a/doc/source/install/devstack.rst +++ b/doc/source/install/devstack.rst @@ -150,6 +150,21 @@ So the first step of installing tacker is to clone Devstack and prepare your .. literalinclude:: ../../../devstack/local.conf.standalone :language: ini +#. In CentOS environment install and start ovn services before executing + stack.sh. + + .. code-block:: console + + $ sudo yum install -y centos-release-openstack-victoria + $ sudo yum install -y openvswitch + $ sudo yum install -y openvswitch-ovn-common + $ sudo yum install -y openvswitch-ovn-central + $ sudo yum install -y openvswitch-ovn-host + $ sudo systemctl start ovn-northd.service + $ sudo systemctl start ovn-controller.service + $ sudo systemctl start ovs-vswitchd.service + $ sudo systemctl start ovsdb-server.service + #. Execute installation script After saving the ``local.conf``, we can run ``stack.sh`` in the terminal diff --git a/doc/source/install/kubernetes_vim_installation.rst b/doc/source/install/kubernetes_vim_installation.rst index d8c4d12da..f10fe4637 100644 --- a/doc/source/install/kubernetes_vim_installation.rst +++ b/doc/source/install/kubernetes_vim_installation.rst @@ -43,6 +43,34 @@ bring VMs and Pods (and other Kubernetes resources) on the same network. For more details, users also see the same examples in [#second]_ and [#third]_. +#. In CentOS environment install Kubernetes packages and start ovn services + before executing stack.sh. + + **Command:** + + .. code-block:: console + + $ sudo cat < /etc/yum.repos.d/kubernetes.repo + [kubernetes] + name=Kubernetes + baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 + enabled=1 + gpgcheck=1 + repo_gpgcheck=1 + gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg + EOF + $ sudo chmod 755 /etc/yum.repos.d/kubernetes.repo + $ sudo dnf install kubeadm -y + $ sudo yum install -y centos-release-openstack-victoria + $ sudo yum install -y openvswitch + $ sudo yum install -y openvswitch-ovn-common + $ sudo yum install -y openvswitch-ovn-central + $ sudo yum install -y openvswitch-ovn-host + $ sudo systemctl start ovn-northd.service + $ sudo systemctl start ovn-controller.service + $ sudo systemctl start ovs-vswitchd.service + $ sudo systemctl start ovsdb-server.service + #. Run stack.sh **Command:**