Skip to content

Commit 4dd592e

Browse files
authored
Merge pull request #602 from stackhpc/aio-script-lvm
AIO script improvements
2 parents c79f9d5 + d97da57 commit 4dd592e

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

doc/source/contributor/environments/ci-aio.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ Run the setup script:
4444
4545
The script will pull the current version of Kayobe and this repository, and
4646
then run the manual setup steps below. The script can be easily edited to use
47-
a different branch of Kayobe or this repository.
47+
a different branch of Kayobe or this repository. The script will automatically
48+
determine whether your image is LVM based, if so, it will expand the volume sizes
49+
to allow ansible dependencies to install correctly.
4850

4951
Manual Setup
5052
============

etc/kayobe/environments/ci-aio/automated-setup.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ cat << EOF | sudo tee -a /etc/hosts
66
10.205.3.187 pulp-server pulp-server.internal.sms-cloud
77
EOF
88

9+
if [ sudo vgdisplay | grep -q lvm2 ]; then
10+
sudo lvextend -L 4G /dev/rootvg/lv_home -r || true
11+
sudo lvextend -L 4G /dev/rootvg/lv_tmp -r || true
12+
fi
13+
914
BASE_PATH=~
1015
KAYOBE_BRANCH=stackhpc/yoga
1116
KAYOBE_CONFIG_BRANCH=stackhpc/yoga
@@ -16,10 +21,10 @@ if [[ ! -f $BASE_PATH/vault-pw ]]; then
1621
fi
1722

1823
if type dnf; then
19-
sudo dnf -y install git python3-virtualenv
24+
sudo dnf -y install git
2025
else
2126
sudo apt update
22-
sudo apt -y install gcc git libffi-dev python3-dev python-is-python3 python3-virtualenv
27+
sudo apt -y install gcc git libffi-dev python3-dev python-is-python3
2328
fi
2429

2530
cd $BASE_PATH
@@ -32,7 +37,7 @@ popd
3237
mkdir -p venvs
3338
pushd venvs
3439
if [[ ! -d kayobe ]]; then
35-
virtualenv kayobe
40+
python3 -m venv kayobe
3641
fi
3742
# NOTE: Virtualenv's activate and deactivate scripts reference an
3843
# unbound variable.
@@ -62,6 +67,8 @@ source kayobe-env --environment ci-aio
6267

6368
kayobe control host bootstrap
6469

70+
kayobe playbook run etc/kayobe/ansible/growroot.yml
71+
6572
kayobe overcloud host configure
6673

6774
kayobe overcloud service deploy
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
Improvements to the ci-aio automated deployment script
5+
to allow the script to successfully run on LVM-based
6+
images.

0 commit comments

Comments
 (0)