home lab - dianaclarke/openstack-notes GitHub Wiki

  • Setting up devstack snapshots (pre-stack, post-stack, etc) for testing on my new machine

  • Each VM:

    • CPUs: 4
    • Memory: 8GB
    • Storage: 80GB
  • Snapshot clean-os after each install

  • Snapshot post-update after sudo dnf update

  • Snapshot devstack-<stable> after each stack

$ git clone https://git.openstack.org/openstack-dev/devstack
$ cd devstack
$ git checkout stable/kilo

-----> create local.conf

$ cat local.conf 
[[local|localrc]]
DEST=/opt/stack/
LOGDIR=$DEST/logs
LOGFILE=$LOGDIR/stack.sh.log
RABBIT_PASSWORD=123456
MYSQL_PASSWORD=123456
SERVICE_TOKEN=123456
SERVICE_PASSWORD=123456
ADMIN_PASSWORD=123456
DATABASE_QUERY_LOGGING=True

[[post-config|$NOVA_CONF]]
[database]
connection_debug=50

$ time ./stack.sh

  • Newton & Fedora 24
This is your host IP address: 192.168.122.172
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.122.172/dashboard
Keystone is serving at http://192.168.122.172/identity/
The default users are: admin and demo
The password: 123456

real	42m31.783s
user	22m31.882s
sys	3m50.860s
2016-09-28 20:16:44.921 | Obtaining file:///opt/stack/keystone
2016-09-28 20:16:46.515 | Could not satisfy constraints for 'keystone': installation from path or url cannot be constrained to a version
2016-09-28 20:16:46.619 | +inc/python:pip_install:1                  exit_trap
2016-09-28 20:16:46.634 | +./stack.sh:exit_trap:474                  local r=1
2016-09-28 20:16:46.643 | ++./stack.sh:exit_trap:475                  jobs -p
2016-09-28 20:16:46.662 | +./stack.sh:exit_trap:475                  jobs=
2016-09-28 20:16:46.670 | +./stack.sh:exit_trap:478                  [[ -n '' ]]
2016-09-28 20:16:46.680 | +./stack.sh:exit_trap:484                  kill_spinner
2016-09-28 20:16:46.690 | +./stack.sh:kill_spinner:370               '[' '!' -z '' ']'
2016-09-28 20:16:46.699 | +./stack.sh:exit_trap:486                  [[ 1 -ne 0 ]]
2016-09-28 20:16:46.712 | +./stack.sh:exit_trap:487                  echo 'Error on exit'
2016-09-28 20:16:46.712 | Error on exit
2016-09-28 20:16:46.722 | +./stack.sh:exit_trap:488                  generate-subunit 1475093303 503 fail
2016-09-28 20:16:47.073 | +./stack.sh:exit_trap:489                  [[ -z /opt/stack//logs ]]
2016-09-28 20:16:47.115 | +./stack.sh:exit_trap:492                  /home/diana/devstack/tools/worlddump.py -d /opt/stack//logs
2016-09-28 20:16:47.735 | +./stack.sh:exit_trap:498                  exit 1

real	8m24.367s
user	2m31.687s
sys	0m39.396s
This is your host IP address: 192.168.122.32
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.122.32/dashboard
Keystone is serving at http://192.168.122.32:5000/
The default users are: admin and demo
The password: 123456

real	36m26.273s
user	23m21.804s
sys	3m18.433s
[diana@localhost devstack]$ git status
On branch stable/mitaka
Your branch is up-to-date with 'origin/stable/mitaka'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   tools/cap-pip.txt

no changes added to commit (use "git add" and/or "git commit -a")
[diana@localhost devstack]$ git diff
diff --git a/tools/cap-pip.txt b/tools/cap-pip.txt
index c280267..1a6f80c 100644
--- a/tools/cap-pip.txt
+++ b/tools/cap-pip.txt
@@ -1 +1 @@
-pip!=8
+pip<8
  • Liberty & Fedora 22 devstack
This is your host IP address: 192.168.122.209
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.122.209/dashboard
Keystone is serving at http://192.168.122.209:5000/
The default users are: admin and demo
The password: 123456

real	34m48.446s
user	21m58.466s
sys	2m0.391s
  • Kilo & Fedora 21 (devstack failed)
2016-09-28 19:55:50.370 | + stack_install_service keystone
2016-09-28 19:55:50.370 | + local service=keystone
2016-09-28 19:55:50.370 | + type install_keystone
2016-09-28 19:55:50.370 | + [[ False = True ]]
2016-09-28 19:55:50.370 | + install_keystone
2016-09-28 19:55:50.370 | + is_service_enabled ldap
2016-09-28 19:55:50.374 | + return 1
2016-09-28 19:55:50.374 | + [[ sql = \m\e\m\c\a\c\h\e ]]
2016-09-28 19:55:50.374 | + git_clone git://git.openstack.org/openstack/keystone.git /opt/stack//keystone stable/kilo
2016-09-28 19:55:50.374 | + local git_remote=git://git.openstack.org/openstack/keystone.git
2016-09-28 19:55:50.374 | + local git_dest=/opt/stack//keystone
2016-09-28 19:55:50.374 | + local git_ref=stable/kilo
2016-09-28 19:55:50.375 | ++ pwd
2016-09-28 19:55:50.375 | + local orig_dir=/home/diana/devstack
2016-09-28 19:55:50.375 | + local git_clone_flags=
2016-09-28 19:55:50.376 | ++ trueorfalse False RECLONE
2016-09-28 19:55:50.381 | + RECLONE=False
2016-09-28 19:55:50.381 | + [[ 0 -gt 0 ]]
2016-09-28 19:55:50.381 | + [[ False = \T\r\u\e ]]
2016-09-28 19:55:50.382 | + echo stable/kilo
2016-09-28 19:55:50.382 | + egrep -q '^refs'
2016-09-28 19:55:50.386 | + [[ ! -d /opt/stack//keystone ]]
2016-09-28 19:55:50.386 | + [[ False = \T\r\u\e ]]
2016-09-28 19:55:50.386 | + git_timed clone git://git.openstack.org/openstack/keystone.git /opt/stack//keystone
2016-09-28 19:55:50.386 | + local count=0
2016-09-28 19:55:50.386 | + local timeout=0
2016-09-28 19:55:50.386 | + [[ -n 0 ]]
2016-09-28 19:55:50.386 | + timeout=0
2016-09-28 19:55:50.386 | + timeout -s SIGINT 0 git clone git://git.openstack.org/openstack/keystone.git /opt/stack//keystone
2016-09-28 19:55:50.389 | Cloning into '/opt/stack//keystone'...
2016-09-28 19:56:02.761 | + cd /opt/stack//keystone
2016-09-28 19:56:02.761 | + git checkout stable/kilo
2016-09-28 19:56:02.765 | error: pathspec 'stable/kilo' did not match any file(s) known to git.
2016-09-28 19:56:02.766 | + exit_trap
2016-09-28 19:56:02.766 | + local r=1
2016-09-28 19:56:02.766 | ++ jobs -p
2016-09-28 19:56:02.767 | + jobs=
2016-09-28 19:56:02.768 | + [[ -n '' ]]
2016-09-28 19:56:02.768 | + kill_spinner
2016-09-28 19:56:02.768 | + '[' '!' -z '' ']'
2016-09-28 19:56:02.768 | + [[ 1 -ne 0 ]]
2016-09-28 19:56:02.768 | + echo 'Error on exit'
2016-09-28 19:56:02.768 | Error on exit
2016-09-28 19:56:02.768 | + generate-subunit 1475092097 465 fail
2016-09-28 19:56:03.138 | + [[ -z /opt/stack//logs ]]
2016-09-28 19:56:03.139 | + /home/diana/devstack/tools/worlddump.py -d /opt/stack//logs
2016-09-28 19:56:03.248 | + exit 1

real	7m45.479s
user	3m26.121s
sys	0m29.450s
  • Host
[diana@localhost ~]$ cd /home/diana/images
[diana@localhost images]$ ls -lah
total 127G
drwxrwxr-x.  2 diana diana 4.0K Sep 22 21:26 .
drwx--x---+ 20 diana diana 4.0K Sep 22 21:13 ..
-rw-------.  1 qemu  qemu   95G Sep 28 17:59 fedora21.qcow2
-rw-------.  1 qemu  qemu  123G Sep 28 17:59 fedora22.qcow2
-rw-------.  1 qemu  qemu  106G Sep 28 17:59 fedora23.qcow2
-rw-------.  1 qemu  qemu  104G Sep 28 17:59 fedora24.qcow2
⚠️ **GitHub.com Fallback** ⚠️