From fc415f506786ea390d2c3a72d72ae3bc98f34184 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 7 May 2015 22:59:11 +0200 Subject: [PATCH] Add script to enable fake drivers for nova-compute Change-Id: Ide5cac229d5862a770ec9b4fb71a82cbe114365a --- ansible/controller.yaml | 3 +-- doc/source/usage.rst | 15 ++++++++++++++- files/scripts/nova_fake.sh | 6 ++++++ files/{ => scripts}/rally.sh | 0 files/{ => scripts}/setup.sh | 0 5 files changed, 21 insertions(+), 3 deletions(-) create mode 100755 files/scripts/nova_fake.sh rename files/{ => scripts}/rally.sh (100%) mode change 100644 => 100755 rename files/{ => scripts}/setup.sh (100%) mode change 100644 => 100755 diff --git a/ansible/controller.yaml b/ansible/controller.yaml index 476ef2b..d2d6683 100644 --- a/ansible/controller.yaml +++ b/ansible/controller.yaml @@ -17,8 +17,7 @@ when: not development - template: src=files/openrc.j2 dest=/home/vagrant/openrc owner=vagrant group=vagrant mode=0644 - lineinfile: dest=/home/vagrant/.bashrc line='source $HOME/openrc' -- copy: src=files/setup.sh dest=/home/vagrant/scripts/setup.sh owner=vagrant group=vagrant mode=0755 -- copy: src=files/rally.sh dest=/home/vagrant/scripts/rally.sh owner=vagrant group=vagrant mode=0755 +- copy: src=files/scripts/ dest=/home/vagrant/scripts/ owner=vagrant group=vagrant mode=0755 - filesystem: fstype=xfs dev=/dev/sdb force=yes - filesystem: fstype=xfs dev=/dev/sdc force=yes - template: src=files/packstack.answers.j2 dest=/home/vagrant/packstack.answers owner=vagrant group=vagrant diff --git a/doc/source/usage.rst b/doc/source/usage.rst index 3aa9466..835e69a 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -28,10 +28,23 @@ APIs All OpenStack API services are running on the controller node with the default IP address ``10.100.50.10``. +Helper scripts +-------------- + +All helper scripts can be found on the ``controller`` node in the +``/home/vagrant/scripts`` directory. + Rally ------ +~~~~~ Install `Rally `_, a framework for performance analysis and benchmarking of individual OpenStack components, with ``/home/vagrant/scripts/rally.sh`` to ``/opt/rally``. The directory is accessible through the webserver, by default at http://10.100.50.10/rally/. + +Fake Drivers +~~~~~~~~~~~~ + +To enable the `fake drivers `_ +for the ``nova-compute`` service on all compute nodes run the +script ``/home/vagrant/scripts/nova_fake.sh``. diff --git a/files/scripts/nova_fake.sh b/files/scripts/nova_fake.sh new file mode 100755 index 0000000..ca316ca --- /dev/null +++ b/files/scripts/nova_fake.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +for node in $(sed -n '/<<< Packstack >>>/{:a;n;/>>> Packstack <<