Fixes for Sydney. Removed re-stacking instructions. Gitreview set up.

Change-Id: Idb90f9a7cf79a0cd16622a00b3c02279b4638801
This commit is contained in:
Mark Korondi 2017-10-31 14:07:15 +01:00 committed by Ildiko Vancsa
parent db420899e2
commit 4ec42ceff3
10 changed files with 21 additions and 28 deletions

5
.gitreview Normal file
View File

@ -0,0 +1,5 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/upstream-institute-virtual-environment.git

View File

@ -1,7 +1,7 @@
OpenStack Upstream Institute Virtual Environment
================================================
<h2 align=center>bit.ly/<a href=http://bit.ly/training-vm>training-vm</a></h2>
<h2 align=center>bit.ly/<a href=http://bit.ly/upstream-institute-vm>upstream-institute-vm</a></h2>
Instructions
------------
@ -38,13 +38,7 @@ Instructions
Getting around in the VM
------------------------
1. Open a terminal and start devstack
``` bash
/opt/devstack/stack.sh && optimize-memory
```
This step takes about 10 minutes.
2. Explore the environment. The four main software you will be using from the
1. Explore the environment. The four main software you will be using from the
desktop during the training are:
* **Firefox** web browser
* **Xfce4-terminal** terminal emulator
@ -53,19 +47,19 @@ Getting around in the VM
> please make sure that you replace the default user `ubuntu` upon first
> start before logging in to Freenode channels.
3. When `stack.sh` finished running, you can open your [Horizon Dashboard]
2. When `stack.sh` has finished running, you can open your [Horizon Dashboard]
(http://localhost/) or on VirtualBox using the **DevStack** bookmark
* **Login**: `demo`
* **Password**: `openstack`
4. Select the `demo` project
3. Select the `demo` project
5. Start a VM. Use a tiny flavor. A CirrOS image is already set up by devstack
4. Start a VM. Use a tiny flavor. A CirrOS image is already set up by devstack
6. Assign a floating IP
5. Assign a floating IP
7. Enable SSH and ICMP ports on the security groups
6. Enable SSH and ICMP ports on the security groups
[Horizon Dashboard]: http://localhost/

View File

@ -26,15 +26,6 @@ sudo apt autoremove --purge -y humanity-icon-theme snapd lxc.* lxd.*
# Empty packages cache
sudo apt clean
sudo apt autoclean
sudo rm -rf /var/lib/apt/lists/*
# Remove mysql databases (will be recreated by stack.sh
for db in cinder glance keystone neutron nova nova_api nova_cell0; do
echo "drop database $db;" | mysql -uroot -popenstack
done
# Remove log files
sudo rm -rf /var/log/*
# Zero out unused space
dd if=/dev/zero of=~/ZERO bs=1M status=progress

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
VDISKMANAGER_DOWNLOAD='https://kb.vmware.com/selfservice/viewAttachment.do?attachID=1023856-vdiskmanager-linux.7.0.1.zip&documentID=1023856'
vagrant up

View File

@ -39,7 +39,7 @@ user_pref("browser.search.region", "CH");
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20160919213721");
user_pref("browser.slowStartup.averageTime", 2435);
user_pref("browser.slowStartup.samples", 2);
user_pref("browser.startup.homepage", "https://github.com/kmARC/openstack-training-virtual-environment/blob/master/README.md#getting-around-in-the-vm");
user_pref("browser.startup.homepage", "http://bit.ly/upstream-institute-vm");
user_pref("browser.startup.homepage_override.buildID", "20160919213721");
user_pref("browser.startup.homepage_override.mstone", "49.0");
user_pref("browser.tabs.remote.autostart.2", true);

View File

@ -4,6 +4,6 @@ StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=yncyd31n.default
Path=profile
Default=1

View File

@ -7,13 +7,14 @@ export DEBIAN_FRONTEND=noninteractive
REPO=$(dirname "$(readlink -f "$0")")/
# Copy configs
sudo cp -ar "$REPO/files/etc" /
sudo cp -ar "$REPO/files/home" /
sudo cp -r "$REPO/files/etc" /
sudo cp -r "$REPO/files/home" /
sudo chown -R "$USER:$GROUP" /home/
# Copy scripts
sudo cp -ar "$REPO/files/usr" /
sudo cp -r "$REPO/files/usr" /
# Update and upgrade
sudo sed -i "s@http://archive.ubuntu.com@$APT_MIRROR@g" /etc/apt/sources.list
sudo apt update
sudo apt dist-upgrade -y

View File

@ -8,7 +8,7 @@ sudo chown -R "$USER:$GROUP" /opt/devstack
git clone --depth=1 https://git.openstack.org/openstack-dev/devstack \
/opt/devstack
cp -ar "$REPO/files/opt" /
cp -r "$REPO/files/opt" /
/opt/devstack/stack.sh