Add script to enable fake drivers for nova-compute
Change-Id: Ide5cac229d5862a770ec9b4fb71a82cbe114365a
This commit is contained in:
parent
284f30fc4a
commit
fc415f5067
|
@ -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
|
||||
|
|
|
@ -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 <https://github.com/openstack/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 <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``.
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue