Commit Graph

19 Commits

Author SHA1 Message Date
Vincent Untz fe84d75954 NovaCompute: Support parsing host option from /etc/nova/nova.conf.d
Change-Id: Ic08f05d217e1321ee7d3feec4d12bf32593e7982
2017-01-30 18:12:32 +01:00
Vincent Untz 7a01081e73 NovaCompute: Use variable to avoid calling crudini a second time
We don't need to run crudini twice to get the same config item; instead,
just remember the result of the first time.

Change-Id: I7591f5c7d1474447e29861e499d04b4b5bdb2a27
2017-01-30 18:09:49 +01:00
Dirk Mueller 3d724a29a9 Relicense to Apache-2.0
Apache-2.0 is the recommended license for OpenStack Big Tent
projects (see https://governance.openstack.org/reference/licensing.html)
and this simplifies the licensing of the overall git repo
quite a bit by removing an exception clause.

Change-Id: I827eb91fd18ced1848439d573cfe6df16ed27748
Closes-Bug: #1564844
2016-05-09 13:46:21 +02:00
Adam Spiers 75dcff3b9d Clarify risks of not using shared storage
Make it clearer what the risks of not using shared storage are.
Information is based on:

  http://docs.openstack.org/user-guide-admin/cli_nova_evacuate.html

which says "The command rebuilds the instance from the original image or
volume" but later says that "To preserve the user disk data on the
evacuated server, deploy Compute with a shared file system" and then use
--on-shared-storage.

Change-Id: I09600414eb0d7fff1cf301b11b3fa9a76fc08c77
2016-03-28 22:44:31 +01:00
Norbert Illes 98a54ad759 Fix bashate E006 violations
This commit fixes bashate E006 (lines longer than 79 columns) violations
in the OCF scripts.

Partial-Bug: #1550203
Change-Id: Ic208477b2299697a03b641f8272a0946c897fb3e
Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
2016-03-02 19:45:07 +01:00
Norbert Illes 4397355193 Fix bashate E002 violations
This commit fixes bashate E002 (indents are only spaces, and not hard
tabs) violations

Partial-Bug: #1550203
Change-Id: I7d156d47023781be74e6fa8daef6ffc311b55d9d
Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
2016-02-26 16:15:05 +01:00
Vincent Untz 25c306755f NovaCompute: Clarify comment when there's no evacuate attribute
Change-Id: I3bbe9114a2c1b0e7aec7c1118f24b711c44ad52e
2016-02-17 21:08:01 +01:00
Vincent Untz 9df293dcb1 Add insecure and region_name parameters to NovaCompute and NovaEvacuate
These can be quite useful in some setups.

This depends on https://github.com/ClusterLabs/fence-agents/pull/37

Change-Id: I2cfef0a4bf7f94f74041c8fee236788c7a110cc5
Signed-off-by: Vincent Untz <vuntz@suse.com>
2016-02-15 15:50:46 +01:00
Jenkins f178723d40 Merge "NovaCompute: Call "fence_compute -o on" after evacuation" 2016-02-15 14:37:45 +00:00
Jenkins 312fd78942 Merge "NovaCompute: Fix loop on start checking for evacuate attribute" 2016-02-15 14:02:40 +00:00
Jenkins a756a909a1 Merge "NovaCompute, NovaEvacuate: Add missing content in username description" 2016-02-11 11:25:28 +00:00
Norbert Illes 64be08fac8 Remove trailing whitespaces
This commit removes hopefully all trailing whitespaces from all files in
the repository.

Change-Id: I248160ee767e13c34c1cd19745c5496a4bcbba0b
Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
2016-02-11 10:24:32 +01:00
Vincent Untz 463694288e NovaCompute, NovaEvacuate: Add missing content in username description
The tag is required.

Change-Id: Id37a07fad6cc0f5351a95678e854b430aa4a99ab
2016-02-03 23:24:18 +01:00
Vincent Untz 92314ac4c4 NovaCompute: Call "fence_compute -o on" after evacuation
This reenables the service for that node (by removing the force_down
attribute); without this, the compute node will stay marked as down.

This replaces the code that was commented out to re-enable the service.

Change-Id: Id981dc1b80bbbac7b294ab7fd9e24b3757765826
2016-02-03 22:55:20 +01:00
Vincent Untz 2fffcca228 NovaCompute: Fix loop on start checking for evacuate attribute
The loop only waits for the evacuate attribute to be changed to no, but
we should also check if the evacuate attribute is gone (in case the user
does this manually).

Change-Id: I8d5c5830da07864ee748209be55fda506b1be585
2016-02-03 13:57:15 +01:00
Adam Spiers c3eee85228 Use crudini instead of openstack-config
openstack-config has been superseded by crudini, e.g.

  https://github.com/redhat-openstack/openstack-utils/commit/5f55639cd5

Change-Id: I19302403d9d9bc8caea7fb3869ce668ff5c40919
Signed-off-by: Adam Spiers <aspiers@suse.com>
2015-11-21 02:09:00 +00:00
Adam Spiers 2a0a39feb1 Remove executable permissions from Nova{Compute,Evacuate}
OCF RAs are not meant to be run directly, so for consistency with the
other RAs in this repo, remove the executable bits from these two files.

Change-Id: I35955089cbff0a73f3cd48fb1febfc05bc479dc1
Signed-off-by: Adam Spiers <aspiers@suse.com>
2015-11-19 12:19:35 +00:00
Adam Spiers bb71d6f7d3 fix 'evacute' typo
This requires the same fix to be applied to fence_compute:

  https://github.com/ClusterLabs/fence-agents/pull/27

and is a more complete version of

  33154a6680

which only patched NovaEvacuate and not NovaCompute.

Signed-off-by: Adam Spiers <aspiers@suse.com>

Change-Id: Iea778d6455341275303e592a09bca7d6db120950
2015-11-18 17:13:33 +00:00
Adam Spiers ebe80c5830 Import Nova{Compute,Evacuate} from osp-ha-deploy
These resource agents help provide high availability for
compute nodes, when used in conjuction with:

  https://github.com/ClusterLabs/fence-agents/blob/master/fence/agents/compute/fence_compute.py

They come from:

  https://github.com/beekhof/osp-ha-deploy/tree/master/pcmk

However as agreed with Andrew and Fabio in Tokyo, let's get them into
this vendor-neutral repository so that the community at large can
collaborate on them.

Corresponding documentation will hopefully come soon.

Signed-off-by: Adam Spiers <aspiers@suse.com>

Change-Id: I73b35ac33f4252b47dfe4ffda08166b178febbb4
2015-11-18 17:00:08 +00:00