Skip to content

Commit e970c25

Browse files
MoteHuemarkgoddard
andauthored
AUFN-Ceph fixes and Rocky9 support (#502)
* Fix AUFN-Ceph environment docs & storage hosts Corrects the AUFN-Ceph guide to have the correct commands. (Variables, etc. from the script needed to be redefined or not used.) Adds ``[storage:children] storage-ceph`` to ``inventory/hosts``, as otherwise the storage nodes are not picked up by Kayobe. * Add Rocky9 support to AUFN-Ceph * AUFN Ceph - move storage definiton to groups and update docs for venv * AUFN Ceph: bootstrap user on seed and storage too * AUFN Ceph: correct references to python3 * Actually correct bootstrap users * Update etc/kayobe/environments/aufn-ceph/controllers.yml Co-authored-by: Mark Goddard <[email protected]> * Revert change in user on seed hypervisor --------- Co-authored-by: Mark Goddard <[email protected]>
1 parent 651bc7f commit e970c25

File tree

7 files changed

+24
-14
lines changed

7 files changed

+24
-14
lines changed

doc/source/contributor/environments/aufn-ceph.rst

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ Setup
2424

2525
To begin the manual setup, access the baremetal node via SSH and install some basic dependencies.
2626

27-
CentOS:
27+
CentOS or Rocky:
2828

2929
.. parsed-literal::
3030
31-
sudo dnf install -y gcc python3-dev python3-virtualenv
31+
sudo dnf install -y gcc python3-devel
3232
3333
Ubuntu:
3434

3535
.. parsed-literal::
3636
3737
sudo apt update
38-
sudo apt -y install gcc libffi-dev python3-dev python-is-python3 python3-virtualenv
38+
sudo apt -y install gcc libffi-dev python3-dev python-is-python3
3939
4040
4141
As a workaround for SMS lab's lack of DNS, add the following lines to ``/etc/hosts`` of the baremetal node:
@@ -82,7 +82,7 @@ Create a virtual environment and install Kayobe:
8282
cd
8383
mkdir -p venvs
8484
pushd venvs
85-
virtualenv kayobe
85+
python3 -m venv kayobe
8686
source kayobe/bin/activate
8787
pip install -U pip
8888
pip install ../src/kayobe
@@ -98,6 +98,7 @@ The following commands activate the correct kayobe environment and prepare the A
9898
9999
pushd ~/src/kayobe-config
100100
source kayobe-env --environment aufn-ceph
101+
$KAYOBE_CONFIG_PATH/environments/aufn-ceph/configure-local-networking.sh
101102
kayobe control host bootstrap
102103
103104
Deployment
@@ -122,9 +123,9 @@ Once the local pulp server is deployed, we need to add the address of SMS lab te
122123

123124
.. parsed-literal::
124125
125-
SEED_IP=192.168.33.5
126-
REMOTE_COMMAND="docker exec pulp sh -c 'echo $PULP_HOST | tee -a /etc/hosts'"
127-
ssh stack@$SEED_IP $REMOTE_COMMAND
126+
ssh stack@192.168.33.5
127+
docker exec pulp sh -c 'echo "10.205.3.187 pulp-server pulp-server.internal.sms-cloud" | tee -a /etc/hosts'
128+
exit
128129
129130
We can now sync the contents of the local pulp server with that of SMS test pulp and then complete the seed VM setup:
130131

@@ -169,7 +170,7 @@ Finally, we create the bare minimum cloud infrastructure (networks, images, flav
169170

170171
.. parsed-literal::
171172
172-
$KAYOBE_CONFIG_PATH/environments/$KAYOBE_ENVIRONMENT/configure-openstack.sh ~
173+
$KAYOBE_CONFIG_PATH/environments/aufn-ceph/configure-openstack.sh ~
173174
174175
This completes the deployment process.
175176

@@ -181,9 +182,8 @@ We can deploy a test VM to ensure that our 'universe' is up and running by first
181182

182183
.. parsed-literal::
183184
184-
VENV_DIR=~/openstack-env
185-
python -m venv $VENV_DIR
186-
source $VENV_DIR/bin/activate
185+
python3 -m venv ~/openstack-env
186+
source ~/openstack-env/bin/activate
187187
pip install -U pip
188188
pip install python-openstackclient
189189
@@ -192,10 +192,9 @@ We then use the CLI to create a keypair, floating IP and test VM:
192192
.. parsed-literal::
193193
194194
openstack keypair create --public-key ~/.ssh/id_rsa.pub mykey
195-
openstack server create --key-name mykey --flavor m1.tiny \
196-
--image cirros --network admin-tenant test-vm-1
195+
openstack server create --key-name mykey --flavor m1.tiny --image cirros --network admin-tenant test-vm-1
197196
openstack floating ip create external
198197
openstack server add floating ip test-vm-1 `openstack floating ip list -c ID -f value`
199198
openstack server list
200199
201-
which will create a VM named ``test-vm-1`` with a Cirros OS iamge and a default login password of 'gocubsgo'.
200+
which will create a VM named ``test-vm-1`` with a Cirros OS image and a default login password of 'gocubsgo'.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
compute_bootstrap_user: "{{ 'cloud-user' if os_distribution == 'centos' else os_distribution }}"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
controller_bootstrap_user: "{{ 'cloud-user' if os_distribution == 'centos' else os_distribution }}"

etc/kayobe/environments/aufn-ceph/inventory/groups

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ storage-ceph
1919
[rgws:children]
2020
storage-ceph
2121

22+
[storage:children]
23+
storage-ceph
2224

2325
###############################################################################
2426
# Monitoring groups

etc/kayobe/environments/aufn-ceph/kolla/config/bifrost/bifrost.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ download_ipa: true
88
use_cirros: true
99
{% if os_distribution == 'ubuntu' %}
1010
cirros_deploy_image_upstream_url: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
11+
{% elif os_distribution == 'rocky' and os_release == '9' %}
12+
cirros_deploy_image_upstream_url: "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2"
1113
{% else %}
1214
cirros_deploy_image_upstream_url: "https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20220913.0.x86_64.qcow2"
1315
{% endif %}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
seed_bootstrap_user: "{{ 'cloud-user' if os_distribution == 'centos' else os_distribution }}"

etc/kayobe/environments/aufn-ceph/storage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
storage_bootstrap_user: "{{ 'cloud-user' if os_distribution == 'centos' else os_distribution }}"
23

34
###############################################################################
45
# Storage node LVM configuration.

0 commit comments

Comments
 (0)