10577 Commits

Author SHA1 Message Date
Mark Goddard
15591437f3 Workaround ironic inspector startup issue
If ironic inspector starts up before ironic-api is accessible, we see
the following error:

AttributeError: StrictVersion instance has no attribute 'version'

This actually prevents startup of ironic inspector.

Example: http://paste.openstack.org/show/756342/

The underlying issue is in python-ironicclient:
https://storyboard.openstack.org/#!/story/2006393.

The workaround employed here is to wait for ironic-api to become
available before starting ironic-inspector.

Change-Id: I674982eba5082fdc951cdcb8247d706278c64c1a
Closes-Bug: #1839866
2019-10-31 17:11:15 +00:00
Zuul
1932679987 Merge "Fail kolla-ansible early when not available in the PYTHONPATH" 2019-10-30 16:56:52 +00:00
Zuul
9852082724 Merge "Fix nova scheduler down after first docker restart" 2019-10-30 16:38:37 +00:00
Zuul
b492a62373 Merge "Fix kolla-bootstrap-servers with docker_storage_driver set" 2019-10-28 20:34:02 +00:00
Zuul
d55dac92dd Merge "Allow passing arguments to RabbitMQ server" 2019-10-28 09:55:25 +00:00
Zuul
d3173fdc89 Merge "Docs: Add IPv6 control plane (address families)" 2019-10-28 07:05:24 +00:00
Zuul
a654649be5 Merge "Update swift templates to support swift_extra_ring_files" 2019-10-26 14:30:12 +00:00
Radosław Piliszek
af7305f2aa Fail kolla-ansible early when not available in the PYTHONPATH
Starting with the Train release, kolla_ansible (the package) must be
available in the PYTHONPATH to run most playbooks.
It is documented.
This change makes the error message friendlier.

Change-Id: Icf0399d21b3fde8d530d73e6e7ee4a57665da276
Closes-bug: #1849943
2019-10-26 15:09:15 +02:00
Michal Nasiadka
df0c64ed32 Disable cinder-backup in cinder-lvm scenario
cinder-backup[1] does not include an lvm driver, we could use posix
filesystem driver - but it's not supported in kolla-ansible currently.

[1]: https://docs.openstack.org/cinder/rocky/drivers.html#backup-drivers

Change-Id: I847a55692a59c52990186332388f571a04c377b7
Closes-Bug: #1847049
2019-10-25 12:43:55 +00:00
Mark Goddard
6bdf202658 Fix nova scheduler down after first docker restart
Due to a Docker bug [1] we cannot use Docker to send
SIGHUP to the container because it will mark it as
stopped.
This patch sends the signal directly to the process,
bypassing Docker.

'changed_when: false' is also removed from the
relevant task as it definitely changes the state.
In the future we could do the refresh only if
there really is a need for another one.

[1] https://github.com/moby/moby/issues/11065

Change-Id: Ief73bbd24568d6941384ea3330ab45f11aa42d37
Co-authored-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Closes-Bug: #1845244
2019-10-25 12:32:48 +00:00
Jan Vondra
9137828b97 Allow passing arguments to RabbitMQ server
Adds rabbitmq_server_additional_erl_args variable which
is appended to RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS
environment variable to RabbitMQ server startup script.

This can be used to configure the schedulers.

Docs attached.

Change-Id: Id683c8cc6dac61354ffd94f3b460335b42136ba2
Co-authored-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Related-bug: #1846467
2019-10-25 11:38:45 +02:00
Zuul
ade4f4eeb4 Merge "Remove python clients from test-requirements.txt" 2019-10-25 06:27:41 +00:00
Zuul
4353f0a4dc Merge "Fix swift.conf custom configuration path collision" 2019-10-25 06:27:39 +00:00
Alexis Deberg
5f4c71ee0f Update swift templates to support swift_extra_ring_files
Change-Id: Ie594f6cdbe332d64d3461d84da730111d0db5cf1
Related-Bug: #1844752
2019-10-24 12:31:43 -04:00
Zuul
f83f67320b Merge "Add proper wsgi loglevel when openstack_logging_debug" 2019-10-24 15:34:09 +00:00
Mark Goddard
12987ca0fa Fix kolla-bootstrap-servers with docker_storage_driver set
If docker_storage_driver is set in globals.yml, then kolla-ansible
bootstrap-servers is run, it fails like so:

The conditional check 'docker_storage_driver' failed. The error was: error
while evaluating conditional (docker_storage_driver): 'devicemapper' is
undefined

Ansible does not like evaluating strings as conditionals. This change switches
to using the length filter.

Change-Id: Ib95cbdac2a659e7a0d5f113fe48046de3a39dcda
Closes-Bug: #1849691
2019-10-24 16:15:23 +01:00
Zuul
089efa3b2f Merge "Tidy up release notes for Train" 2019-10-24 12:45:10 +00:00
Zuul
8915d8a538 Merge "Limit open file descriptors for Neutron agent containers" 2019-10-24 11:16:39 +00:00
Mark Goddard
99f1096986 Tidy up release notes for Train
Change-Id: If72fd2c060c8ecd014a61338a3506d93578804b2
2019-10-24 11:08:35 +00:00
Zuul
8c01482bf6 Merge "Bump Sphinx lower constraints to 1.8.0" 2019-10-24 09:33:50 +00:00
Michal Nasiadka
0240763d7d Add proper wsgi loglevel when openstack_logging_debug
Change-Id: I51144d92f34ed51c499a4119c059e6475d02eb46
2019-10-24 09:33:05 +00:00
Mark Goddard
86ccefc623 Fix swift.conf custom configuration path collision
Both swift.conf and proxy-server.conf are affected be
/etc/kolla/config/swift/proxy-server.conf. However, some options in
proxy-server.conf are not valid in swift.conf.

This change keeps this path for proxy-server.conf, but modifies the path
for swift.conf to /etc/kolla/config/swift/proxy-server/swift.conf. The
same applies for other services, object-*, account-*, container-*.

Change-Id: I600891a15244ce705861f6ec93eec1d5ba83c1b8
Closes-Bug: #1849265
2019-10-24 09:44:31 +01:00
Zuul
0280b41a38 Merge "Zun: fix Cinder (volume) iSCSI support" 2019-10-24 08:42:08 +00:00
gujin
f8b3a63aea Bump Sphinx lower constraints to 1.8.0
We already bumped Sphinx to 1.8.0 in doc reqs

refer to https://review.opendev.org/#/c/688371/

Change-Id: Ifd46ab6b2043392aa7878a11b0fe186f5ee4c4ce
2019-10-24 07:16:47 +00:00
Zuul
d40bdf4005 Merge "Remove delegate_to from service-ks-register tasks" 2019-10-24 03:00:15 +00:00
Zuul
df52155b41 Merge "CI: run check-logs in post too" 2019-10-23 17:02:05 +00:00
Zuul
f235d7d09d Merge "tox: Keeping going with docs" 2019-10-23 16:10:18 +00:00
Radosław Piliszek
01135e0f4d Zun: fix Cinder (volume) iSCSI support
Fixes /dev volume, missed in the previous commit [1].
iscsid was installing the devices in /dev but zun-compute
could not see them due to the emulated /dev volume.

[1] I2c4aa666ff9f952e32c450347d31ddbf2e58209e

Change-Id: Ic72c910b92765b9a6f59224728e9c4ea2482bc5a
Related-bug: #1797448
Related-bug: #1848933
2019-10-23 17:27:34 +02:00
Zuul
5c9d492c20 Merge "Perform database migration in monasca upgrade" 2019-10-23 13:58:46 +00:00
Radosław Piliszek
22cea7f08c CI: run check-logs in post too
Also makes check-logs clear the aggregate files
to prevent duplicates due to upgrade and post.

Change-Id: I72377b6ac48e29dc5e24d1e3bd343e87b74a7a71
2019-10-23 12:58:36 +00:00
Mark Goddard
ef61c022ce Remove python clients from test-requirements.txt
These should not be necessary.

Change-Id: Ide02b7da2a2a2d528c171772f5552f4529ffe880
2019-10-23 13:27:45 +01:00
Zuul
c453d09bb0 Merge "Swift: compute the list of containers dynamically in the reconfigure task" 2019-10-23 11:22:03 +00:00
Radosław Piliszek
277675ede0 Docs: Add IPv6 control plane (address families)
IPv6 control plane implementation [1] follow-up.

[1] Ia34e6916ea4f99e9522cd2ddde03a0a4776f7e2c

Change-Id: Icc25463320c23fd510073bff0a8144437a3607a6
2019-10-23 10:10:38 +00:00
Zuul
6cba845846 Merge "Extract cephx keys from vault encrypted files" 2019-10-23 10:04:01 +00:00
Zuul
a2c7be1dc9 Merge "Add prelude for Train release" 2019-10-23 03:04:22 +00:00
Zuul
b432431b24 Merge "Typo fix in docs" 2019-10-22 15:12:26 +00:00
Zuul
96663e2c0f Merge "Zun: add Cinder (volume) iSCSI support" 2019-10-22 12:56:44 +00:00
Zuul
41c20eaca8 Merge "Update documentation on overriding config files" 2019-10-22 11:16:22 +00:00
Doug Szumski
25dd068834 Typo fix in docs
Change-Id: I80b4fb4addf4c633172f1c1a99cdf6a6feac3145
2019-10-22 11:00:42 +00:00
Zuul
111adf3bc4 Merge "[nova][train] Remove deprecated RetryFilter" 2019-10-22 09:23:54 +00:00
Alexis Deberg
9622ab9693 Swift: compute the list of containers dynamically in the reconfigure task
If swift_has_replication_network is false some containers do not exist on the
target node.
This commit adds steps to compute the final list of containers to act on.

Change-Id: I12f8de53724c3f24832df83597f36f9614af8e75
Closes-Bug: #1849189
2019-10-21 17:46:35 -04:00
Mark Goddard
c6392ed1aa Perform database migration in monasca upgrade
Currently the database is only synced during deployment. This change
performs the sync during upgrade as well.

Change-Id: Ia45fc733a1ab69de9d4762f5d9c8767041eeaed3
Closes-Bug: #1832020
2019-10-21 16:26:08 +01:00
Zuul
44d998e506 Merge "Add unit tests for Nova Cells filters" 2019-10-21 14:48:32 +00:00
Jan Horstmann
44709f4132 Extract cephx keys from vault encrypted files
Cephx keys are not picked up by "local_action: shell cat [...]"
when using ansible-vault encrypted keyrings.
This commit changes the logic to use the file lookup plugin and
extracts the key using jinja2 regex filters. The raw keys are then
set as ansible facts.

Closes-Bug: 1849127

Change-Id: Iacb1e42307c4de6a7a379e8cf279e073995fd5d3
2019-10-21 16:14:26 +02:00
Mark Goddard
4a06551a93 Add prelude for Train release
Change-Id: Ifd96a8127b9f2e398b8e853fb1de08eaf22eb696
2019-10-21 14:47:28 +01:00
Will Szumski
ae5acc7f3c Limit open file descriptors for Neutron agent containers
See https://bugs.launchpad.net/oslo.rootwrap/+bug/1760471, in particular
comment #1 for an explanation of why inheriting the defaults of the
docker daemon can cause poor performance:

The performance difference likely comes from close_fds=True of subprocess.
Popen. On Python 2, Popen calls close(fd) on all file descriptors from 3 to
SC_OPEN_MAX. On my Fedora 27 "host", SC_OPEN_MAX is 1,024. But in docker,
SC_OPEN_MAX is... 1,048,576: 1,000x larger. On Python 3, Popen is smarter. On
Linux, it lists the content of /proc/self/fd/ to only close open file
descriptors. It doesn't depend on SC_OPEN_MAX value.

Change-Id: Iefef6039644192420abbd3bf614329cbc0d9a62a
Closes-Bug: #1848737
Related-Bug: #1760471
Related-Bug: #1757556
Related-Bug: #1824020
2019-10-21 13:36:11 +00:00
Zuul
160af32c2c Merge "[train] Add required Tacker Conductor config and docs" 2019-10-21 13:17:00 +00:00
Zuul
486aa8c212 Merge "Fix Python3 compatibility for kolla-genpwd" 2019-10-21 10:39:19 +00:00
Zuul
45aff323b9 Merge "Docs: add nova cells" 2019-10-21 09:22:34 +00:00
Zuul
b71068c3e6 Merge "Do not disable IPv6 in Tempest" 2019-10-21 09:22:32 +00:00