
During the Berlin summit, 2018 November, we used an updated version of the training VM, with always-latest devstack running on Ubuntu 18.04 LTS. This patch fixes issues coming with installing devstack on the new operating system, and also introduces some bug fixes. For a full list of changes, refer to CHANGELOG.md Change-Id: I822f68d5aba5721d6eb7dd9066e10dff81bcd736
32 lines
853 B
Bash
Executable File
32 lines
853 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DIST=/tmp/training-vm-preinstall-diffs
|
|
mkdir -p "$DIST"
|
|
|
|
apt-mark showmanual > "$DIST"/aptmark_showmanual.orig.txt
|
|
sudo -H pip freeze | sort > "$DIST"/pipfreeze.orig.txt
|
|
|
|
/opt/devstack/stack.sh
|
|
|
|
apt-mark showmanual | sort > "$DIST"/aptmark_showmanual.after.txt
|
|
sudo -H pip freeze > "$DIST"/pipfreeze.after.txt
|
|
|
|
# Generate packages.yaml
|
|
comm -13 "$DIST"/aptmark_showmanual.{orig,after}.txt | sed 's/$/:/' > "$DIST"/packages.yaml
|
|
|
|
# Generate requirements.txt
|
|
comm -13 "$DIST"/pipfreeze.{orig,after}.txt \
|
|
| grep -v 'git+http' \
|
|
> "$DIST"/requirements.txt
|
|
|
|
# Generate openstack_git_repos.txt
|
|
pushd /opt/stack
|
|
find . -mindepth 1 -maxdepth 1 -type d | while read -r repo; do
|
|
pushd "$repo"
|
|
git remote show origin -n \
|
|
| awk '/Fetch URL/{ print $3 }' \
|
|
>> "$DIST"/openstack_git_repos.txt
|
|
popd
|
|
done
|
|
popd
|