Add script to enable fake drivers for nova-compute
Change-Id: Ide5cac229d5862a770ec9b4fb71a82cbe114365a
This commit is contained in:
@@ -17,8 +17,7 @@
|
|||||||
when: not development
|
when: not development
|
||||||
- template: src=files/openrc.j2 dest=/home/vagrant/openrc owner=vagrant group=vagrant mode=0644
|
- template: src=files/openrc.j2 dest=/home/vagrant/openrc owner=vagrant group=vagrant mode=0644
|
||||||
- lineinfile: dest=/home/vagrant/.bashrc line='source $HOME/openrc'
|
- 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/scripts/ dest=/home/vagrant/scripts/ owner=vagrant group=vagrant mode=0755
|
||||||
- copy: src=files/rally.sh dest=/home/vagrant/scripts/rally.sh owner=vagrant group=vagrant mode=0755
|
|
||||||
- filesystem: fstype=xfs dev=/dev/sdb force=yes
|
- filesystem: fstype=xfs dev=/dev/sdb force=yes
|
||||||
- filesystem: fstype=xfs dev=/dev/sdc 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
|
- template: src=files/packstack.answers.j2 dest=/home/vagrant/packstack.answers owner=vagrant group=vagrant
|
||||||
|
@@ -28,10 +28,23 @@ APIs
|
|||||||
All OpenStack API services are running on the controller node with the
|
All OpenStack API services are running on the controller node with the
|
||||||
default IP address ``10.100.50.10``.
|
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
|
Rally
|
||||||
-----
|
~~~~~
|
||||||
|
|
||||||
Install `Rally <https://github.com/openstack/rally>`_, a framework for
|
Install `Rally <https://github.com/openstack/rally>`_, a framework for
|
||||||
performance analysis and benchmarking of individual OpenStack components,
|
performance analysis and benchmarking of individual OpenStack components,
|
||||||
with ``/home/vagrant/scripts/rally.sh`` to ``/opt/rally``. The directory
|
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/.
|
is accessible through the webserver, by default at http://10.100.50.10/rally/.
|
||||||
|
|
||||||
|
Fake Drivers
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
To enable the `fake drivers <http://docs.openstack.org/developer/nova/devref/fakes.html>`_
|
||||||
|
for the ``nova-compute`` service on all compute nodes run the
|
||||||
|
script ``/home/vagrant/scripts/nova_fake.sh``.
|
||||||
|
6
files/scripts/nova_fake.sh
Executable file
6
files/scripts/nova_fake.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for node in $(sed -n '/<<< Packstack >>>/{:a;n;/>>> Packstack <<</b;p;ba}' /etc/hosts | grep compute | awk '{ print $2 }'); do
|
||||||
|
ssh $node 'sudo crudini --set /etc/nova/nova.conf DEFAULT compute_driver fake.FakeDriver'
|
||||||
|
ssh $node 'sudo systemctl restart openstack-nova-compute.service'
|
||||||
|
done
|
0
files/rally.sh → files/scripts/rally.sh
Normal file → Executable file
0
files/rally.sh → files/scripts/rally.sh
Normal file → Executable file
0
files/setup.sh → files/scripts/setup.sh
Normal file → Executable file
0
files/setup.sh → files/scripts/setup.sh
Normal file → Executable file
Reference in New Issue
Block a user