5 Commits

Author SHA1 Message Date
Martin Schuppert
bbd2d94483 Allow multiple same options in nova.conf
In python3 SafeConfigParser was renamed to ConfigParser and the default
for duplicate options default to true. In case of nova it is valid to
have duplicate option lines, e.g. pci_alias can be specified more then
once in nova.conf and results in an error like seen in
https://bugs.launchpad.net/tripleo/+bug/1827775

https://docs.python.org/3/library/configparser.html#configparser.ConfigParser

Closes-Bug: #1827775

Change-Id: I410af66d8dceb6dde84828c9bd1969aa623bf34c
2019-05-09 09:22:22 +02:00
Martin Schuppert
4d4263f4f1 Set debug level of nova container_config_scripts only when enabled
Right now all scripts log in DEBUG level. This change enables only
DEBUG level if debug is also enabled for the nova service.

Change-Id: Ie58a6630877a58bec8ce763ede166997bd41f882
2019-04-30 14:40:33 +02:00
Oliver Walsh
908e6b9810 Avoid concurrent nova cell_v2 discovery instances
The nova_cell_v2_discover_hosts.py was moved to run on compute
nodes instead of controllers to allow adding computes without
touching controllers and in case multiple stacks are used to
manage compute nodes. In case the nova-manage command, run by
nova_cell_v2_discover_hosts.py, gets triggered at the same time
on compute nodes races.

With this change if this is _not_ an additional cell:
* in docker_config step4, on every compute, we start the nova-compute
  container and then start a (detach=false) container to wait for
  it's service to appear in the service list.
* in docker_config step5, on the bootstrap node only, we run the
  discovery.

Change-Id: I1a159a7c2ac286373df2b7c566426b37b7734961
Closes-bug: 1824445
Co-authored-by: mschuppert@redhat.com
2019-04-18 16:23:15 +02:00
Gauvain Pocentek
8948eced73 Test the correct placement endpoint with multiple regions
In a multi-region setup (not yet supported but there are plans to
support it) the nova_wait_for_placement_service.py script might check
the wrong placement endpoint.

This change makes the script explicitly look for the endpoint in the
correct region.

Change-Id: I83e44e0d0cb104dbb10b3699469e00e15b320409
Closes-Bug: #1819174
2019-03-08 15:45:10 +01:00
Emilien Macchi
160cddda3f Rename docker_config_scripts to container_config_scripts
Change-Id: Iabd65560c2fc28b3aeca07a21efa861c4c583c01
2019-03-06 09:05:50 -05:00