Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Preparation


Code Block
languagebash
themeRDark
sysadmin@controller-1:~$ source /etc/platform/openrc

...


[sysadmin@controller-1 ~(keystone_admin)]$ system storage-backend-list

...


+--------------------------------------+------------+---------+------------+-------------------+----------+---------------+

...


| uuid                                 | name       | backend | state      | task              | services | capabilities  |

...


+--------------------------------------+------------+---------+------------+-------------------+----------+---------------+

...


| da70e0b7-34c8-488a-9e1f-08e057d6a4be | ceph-store | ceph    | configured | provision-storage | None     | replication:  |

...


|                                      |            |         |            |                   |          | 2 min_replica |

...


|                                      |            |         |            |                   |          | tion: 1       |

...


|                                      |            |         |            |                   |          |               |

...


+--------------------------------------+------------+---------+------------+-------------------+----------+---------------+

...




[sysadmin@controller-1 ~(keystone_admin)]$ ceph -s

...


  cluster:

...


    id:     c5663990-249a-4b71-988f-19b402784429

...


    health: HEALTH_OK

...



  services:

...


    mon: 1 daemons, quorum controller (age 8h)

...


    mgr: controller-1(active, since 8h), standbys: controller-0

...


    mds: kube-cephfs:1 {0=controller-1=up:active} 1 up:standby

...


    osd: 2 osds: 2 up (since 8h), 2 in (since 8h)

...



  data:

...


    pools:   3 pools, 192 pgs

...


    objects: 181 objects, 258 MiB

...


    usage:   2.4 GiB used, 269 GiB / 271 GiB avail

...


    pgs:     192 active+clean



    • Prepare a Linux environment in which the network is reachable to the INF AIO-SX with Bash CLI. And, install the required packages.

      $ sudo apt-get install git make patch jq
      # Make sure your CLI has the 'kubectl', 'openstack' and 'helm' installed
    • Clone openstack-helm and openstack-helm-infra code on your Linux.

      # The commit id is 82a6aa8ce96b1669af0b9e8da85b537d02fc5fd3 that used in this demo.
      $ git clone --depth 1 --branch master https://opendev.org/openstack/openstack-helm.git
      # The commit id is 07c735f632147378c4af8e7b4ce6f390d38e3d69 that used in this demo.

      $ git clone --depth 1 --branch master https://opendev.org/openstack/openstack-helm-infra.git
    • Copy the "/etc/kubernetes/admin.conf" from the INF controller node to your local Linux.

      $ scp <INF-controller-0>:/etc/kubernetes/admin.conf ~/.kube/config
      # Change the IP address in the ~/.kube/config
      # server: https://<INF-OAM-IP>:6443
      # You can get the OAM IP through this command on controller node
      # system addrpool-show `system addrpool-list | grep oam | awk '{print $2}'` | grep floating
    • Add labels to controller-0 node.

      $ kubectl label node controller-0 openstack-control-plane=enabled
    • Create namespaces.

      $ kubectl create namespace openstack

...