8218 Commits

Author SHA1 Message Date
Zuul
639a043f0d Merge "Allow performing Ceph update/upgrade separately" 2018-09-04 23:04:41 +00:00
Zuul
224383fa35 Merge "Add reflection of RpcPort to health checks" 2018-09-04 14:19:43 +00:00
Zuul
44a877fc2e Merge "Remove deprecated value used to set nova_metadata_ip" 2018-09-04 08:59:13 +00:00
Zuul
9c789587c3 Merge "Fix all-nodes.sh for python3" 2018-09-03 14:45:04 +00:00
Zuul
514b0a9efb Merge "Make redeploy idempotent" 2018-09-03 05:33:55 +00:00
Zuul
a23a6f04d9 Merge "python3ification of docker-puppet.py" 2018-09-02 22:16:22 +00:00
David J Peacock
7c2d544f3e python3ification of docker-puppet.py
modifications to docker/docker-puppet.py that provide support
/ compatibility for Python 3

Change-Id: Ibdb5697584161cedf8f76e5b78376076d0a95dc0
2018-08-31 10:09:34 -04:00
Zuul
0165b1c046 Merge "Always lowercase role name" 2018-08-31 08:43:45 +00:00
Zuul
2e92007709 Merge "Pass in rndc key to Designate deployment" 2018-08-30 21:12:38 +00:00
Zuul
509f75ec57 Merge "Open designate-mdns ports in firewall" 2018-08-30 21:12:36 +00:00
Zuul
35f28a2bef Merge "Run designate pool update only on bootstrap node" 2018-08-30 20:56:14 +00:00
Zuul
a8aacc8ef5 Merge "Remove uneececary conditionals in network-environment jinja" 2018-08-30 20:56:12 +00:00
Zuul
91f9e6fe1c Merge "Add OctaviaEventStreamerDriver and change default" 2018-08-30 17:11:54 +00:00
Zuul
e2a48eac57 Merge "Create missing directories before mounting them" 2018-08-30 17:11:44 +00:00
Michele Baldessari
42c3f18051 Make redeploy idempotent
Rerunning the overcloud deploy command with no changes restarts a
truckload of containers (first seen this via
https://bugzilla.redhat.com/show_bug.cgi?id=1612960).  So we really have
three separate issues here. Below is the list of all the containers that
may restart needlessly (at least what I have observed in my tests):
A) cron category:
ceilometer_agent_notification cinder_api cinder_api_cron cinder_scheduler
heat_api heat_api_cfn heat_api_cron heat_engine keystone keystone_cron
logrotate_crond nova_api nova_api_cron nova_conductor nova_consoleauth
nova_metadata nova_scheduler nova_vnc_proxy openstack-cinder-volume-docker-0
panko_api

These end up being restarted because in the config volume for the container there is
a cron file and cron files are generated with a timestamp inside:
$ cat /var/lib/config-data/puppet-generated/keystone/var/spool/cron/keystone
...
 # HEADER: This file was autogenerated at 2018-08-07 11:44:57 +0000 by puppet.
...

The timestamp is unfortunately hard coded into puppet in both the cron provider and the parsedfile
provider:
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/cron/crontab.rb#L127
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/parsedfile.rb#L104

We fix this by repiping tar into 'tar xO' and grepping away any line
that starts with # HEADER.

B) swift category:
swift_account_auditor swift_account_reaper swift_account_replicator
swift_account_server swift_container_auditor swift_container_replicator
swift_container_server swift_container_updater swift_object_auditor
swift_object_expirer swift_object_replicator swift_object_server
swift_object_updater swift_proxy swift_rsync

So the swift containers restart because when recalculating the md5 over the
/var/lib/config-data/puppet-generated/swift folder we also include:
B.1) /etc/swift/backups/... which is a folder which over time collects backup of the ringfiles
B.2) /etc/swift/*.gz it seems that the *.gz files seem to change over time

We just add a parameter to the tar command to exclude those files as
we do not need to trigger a restart if those files change.
--exclude='*/etc/swift/backups/*' --exclude='*/etc/swift/*.gz'

C) libvirt category:
nova_compute nova_libvirt nova_migration_target nova_virtlogd

This one seems to be due to the fact that the /etc/libvirt/passwd.db file contains a timestamp and
even when we disable a user and passwd.db does not exist, it gets
created:
[root@compute-1 nova_libvirt]# git diff cb2441bb1caf7572ccfd870561dcc29d7819ba04..0c7441f30926b111603ce4d4b60c6000fe49d290 .

passwd.db changes do not need to trigger a restart of the container se
we can safely exclude this file from any md5 calculation.

Part C) was: Co-Authored-By: Martin Schupper <mschuppe@redhat.com>

We only partial-bug this one because we want a cleaner fix where
exceptions to the files being checksummed will be specified in the tht
service files.

Partial-Bug: #1786065

Tested as follows:
./overcloud_deploy.sh
tripleo-ansible-inventory --static-yaml-inventory inv.yaml
ansible -f1 -i inv.yaml  -m shell --become -a "docker ps --format=\"{{ '{{' }}.Names{{ '}}' }}: {{ '{{' }}.CreatedAt{{ '}}' }}\" | sort" overcloud > before
./overcloud_deploy.sh
ansible -f1 -i inv.yaml  -m shell --become -a "docker ps --format=\"{{ '{{' }}.Names{{ '}}' }}: {{ '{{' }}.CreatedAt{{ '}}' }}\" | sort" overcloud > after
diff -u before after | wc -l
0

Change-Id: I10f5cacd9fee94d804ebcdffd0125676f5a209c4
2018-08-30 12:16:43 +02:00
Zuul
83a21f3563 Merge "Configure rndc to listen on internal_api network" 2018-08-30 03:42:51 +00:00
Zuul
c3788f4ba9 Merge "Enable configuration of Designate's pools.yaml" 2018-08-30 02:07:21 +00:00
Zuul
f1ae44fe0c Merge "Include ssh known_hosts entries for non-default port" 2018-08-30 02:07:19 +00:00
Sergii Golovatiuk
0cf4bff9e6 Always lowercase role name
Due to [1] ansible always access servers lowcase. Also, in respect to [2], this
patch lowercase name which is use in fqdn, hostname, ssh_known_hosts and other
places.

[1] aa4278e5f3
[2] https://tools.ietf.org/html/rfc4343

Change-Id: Ib25832496d6504def436414b9c2903cbfe5854d4
Resolves: rhbz#1619556
2018-08-30 00:21:05 +02:00
Zuul
356bef7da5 Merge "Enable neutron-sriov-agent health check" 2018-08-29 21:14:32 +00:00
Zuul
a99ca3a6e3 Merge "Define keepalived service in environments/docker.yaml" 2018-08-29 19:12:49 +00:00
Emilien Macchi
24f5a255c9 Create missing directories before mounting them
When deploying with podman, we need to create directories if they don't
exist before trying to mount them later when containers are starting.
Otherwise, podman fails with this kind of error:
error checking path \"/etc/iscsi\": stat /etc/iscsi: no such file or directory"

Change-Id: I7dbdc7f3646dda99c8014b4c8ca2edd48778b392
2018-08-29 18:29:32 +00:00
Martin Mágr
9473817a09 Enable neutron-sriov-agent health check
This patch enables health check execution for neutron-sriov-agent docker container.

Change-Id: I96e93c2eade261f3a3f44f5b8ffd4c1d75274c15
Depends-On: Ief543580e6b717bb9dba62b19ffe12aff5395ff9
Depends-On: Id5dc7d169301e45cb0abab7cecae67457db9fd96
2018-08-29 16:25:02 +02:00
Martin Mágr
7351b3cc20 Add reflection of RpcPort to health checks
This patch passes RpcPort parameter value to container health check
scripts, which are based on verifying if service is connected to RabbitMQ.

Change-Id: If63f136b5173bb9a94572ea5062a188469c2c782
Closes-Bug: #1782369
2018-08-29 13:33:32 +02:00
Kamil Sambor
5c4983fd24 Remove unused config file when start ovs agent
ml2_conf.ini shoudn't be used in neutron-ovs-agent
Some parameters can be in conflict and overwrite
each other eg firewall_driver. Using openvswitch_agent
is enought to configure correct agent.

Change-Id: I815cb67fd4ea9ad98347d6d6bbcc9bcf01113649
Closes-Bug: 1789549
2018-08-29 08:33:51 +02:00
Zuul
81b2f888a1 Merge "Ceph update and upgrade in config-download era" 2018-08-28 21:06:35 +00:00
Zuul
f7c2f167d6 Merge "Stop hardcoding baremetal API version in stackrc" 2018-08-28 20:43:46 +00:00
Zuul
6c47a40648 Merge "Do not enable Ram/Disk Filter with filter_scheduler" 2018-08-28 17:51:27 +00:00
Oliver Walsh
876683f317 Include ssh known_hosts entries for non-default port
The ssh client no longer appears to accept the regular known hosts entry when
the target is running on a non-default port.
Adding '[host]:*' should fix this, regardless of the port.
However this does not work for the default port so we must include both.

Change-Id: I519ff6053676870dff1bdff60fb1f6b2aa5ee8c9
Closes-bug: #1789452
2018-08-28 16:38:14 +01:00
Zuul
854e6f5fda Merge "Added NovaOVSDBConnection parameter" 2018-08-28 13:31:26 +00:00
Dmitry Tantsur
9729870745 Stop hardcoding baremetal API version in stackrc
Long time ago it was required because ironicclient defaulted to
an ancient version. It was changed back in Queens (ironicclient 2.0),
so we can drop it now to avoid confusion.

Change-Id: Icea0bdf6d5dcdd81ce9c34be7af8a241da0861bc
Closes-Bug: #1789392
2018-08-28 12:03:32 +02:00
Zuul
a885599770 Merge "Always enable image prepare service for docker clouds" 2018-08-28 04:38:50 +00:00
04b235652b Do not enable Ram/Disk Filter with filter_scheduler
Core/Ram/Disk Filters are not required when using filter_scheduler.

After https://review.openstack.org/#/c/565841 when using these
Filters nova is not scheduling to the ironic nodes and overcloud
deployment fails.
For now just testing the undercloud, good to see what scheduler/filters
are being enabled in overcloud and reflect there as well.

Related-Bug: #1787910
Depends-On: Ia82f1c6be0d5504498e77a90268cad8abecdeae2
Change-Id: I0e376d99adeaa318118833018be81491c6b14095
2018-08-28 02:01:13 +00:00
Alex Schultz
aa1b108760 Fix all-nodes.sh for python3
The unicode function no longer exists in python3 so let's just designate
the string as unicode since we're doing replacement in bash anyway.

Change-Id: I3226a3a16eec711097c30929946cb2d36646c4cc
Related-Blueprint: python3-support
2018-08-27 16:38:38 -06:00
Zuul
c7aeb8f7c8 Merge "neutron-api: remove /usr/share/neutron mount" 2018-08-25 17:32:04 +00:00
Zuul
9fed83a130 Merge "Fix incorrect network name "ctrlplane" to "ctlplane" for SNMPd." 2018-08-25 11:25:35 +00:00
Zuul
63f708acad Merge "Decoupling number of API and RPC workers for neutron-api" 2018-08-25 05:34:19 +00:00
Zuul
9ae9b5445d Merge "import zuul job settings from project-config" 2018-08-25 02:48:44 +00:00
Zuul
4e997b4b52 Merge "Update reno for stable/rocky" 2018-08-25 02:48:43 +00:00
Dan Sneddon
41721e692f Fix incorrect network name "ctrlplane" to "ctlplane" for SNMPd.
The ServiceNetMap contains an incorrect entry for the SnmpdNetwork.
The entry "ctrlplane" should be "ctlplane".

Change-Id: I6c8ab952e364e8fc643e291388b7f13615a1df3e
2018-08-24 13:57:58 -07:00
Zuul
472e394cc1 Merge "Update rsyslog existence check" 2018-08-24 20:01:49 +00:00
Emilien Macchi
191841339b neutron-api: remove /usr/share/neutron mount
We don't need to mount /usr/share/neutron, the directory is provided in
openstack-neutron rpm, so we don't need to manage this directory. It
should be in all neutron containers, including the neutron_db_sync.

Change-Id: I6f71ce62b1c5f3de175d7a50ee7229d3047a379a
2018-08-24 17:29:36 +00:00
0a2a89791d Update reno for stable/rocky
Change-Id: Ia233f53d80064ba09070f8e1dd8c45a76a1e9158
2018-08-24 14:44:49 +00:00
Zuul
b1d9e7e217 Merge "avoid unnecessary failure to delete a list of empty workflows" 2018-08-24 12:57:49 +00:00
qingszhao
81b065a157 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Idb328be9749bb0aa1d8e8ac748fefce962829928
Story: #2002586
Task: #24341
2018-08-24 04:59:29 +00:00
Sorin Sbarnea
66ae4e94eb avoid unnecessary failure to delete a list of empty workflows
Improved execution output by avoiding confusing errors.

Change-Id: I2b6b03b6ff0178564a21f6b3c8578ac2d5f19023
2018-08-23 19:30:33 +01:00
Michele Baldessari
1bdefbe59d IHA Default the compute endpoint check script to internal
Currently we instantiate a novaclient.client Client object without explicitely
passing any endpoint_type in kwargs. The Client object defaults to using
'publicURL': https://github.com/openstack/python-novaclient/blob/stable/queens/novaclient/client.py#L116

In some environments the access to publicURL is not desired and likely the wrong default.
So this needs to be a) configureable and b) default to internalURL when nothing is specified.

We make this configurable by leveraging the os_interface key in the
placement section of nova.conf as that is what specifies the endpoint
type since ocata: https://docs.openstack.org/releasenotes/nova/ocata.html#other-notes

We also check for the existance of the [placement]/valid_interface key
and will use that instead if it is present as it is the proper
recommended way to get this information as of queens (see
https://review.openstack.org/#/c/492247/). Since it is a list
of preferred endpoint URLs, we take the first one.

Tested by making sure via tcpdump that the internal_url was being hit
after restarting the nova_compute container with the patched code:
(overcloud) [stack@undercloud-0 ~]$ openstack endpoint list |grep comput
| 8ad225f34170467a84513c5b447662dc | regionOne | nova         | compute        | True    | admin     | http://172.17.1.16:8774/v2.1                   |
| 9a15e824601f43629b03ec99589c3d83 | regionOne | nova         | compute        | True    | internal  | http://172.17.1.16:8774/v2.1                   |
| c5b964700daf4abfac5060432debdbe3 | regionOne | nova         | compute        | True    | public    | https://10.0.0.101:13774/v2.1                  |

[root@compute-0 ~]# tcpdump -i any -nn host 172.17.1.16 and port 8774
09:29:57.824687 IP 172.17.1.10.37254 > 172.17.1.16.8774: Flags [S], seq 3520534439, win 29200, options [mss 1460,sackOK,TS val 564789919 ecr 0,nop,wscale 7], length 0
09:29:57.824946 ethertype IPv4, IP 172.17.1.16.8774 > 172.17.1.10.37254: Flags [S.], seq 3844540290, ack 3520534440, win 28960, options [mss 1460,sackOK,TS val 564810385 ecr 564789919,nop,wscale 7], length 0
09:29:57.824946 IP 172.17.1.16.8774 > 172.17.1.10.37254: Flags [S.], seq 3844540290, ack 3520534440, win 28960, options [mss 1460,sackOK,TS val 564810385 ecr 564789919,nop,wscale 7], length 0

Change-Id: Ifbb40e2a2222c229fd71eca2c4c36daa448e492d
Closes-Bug: #1788584
2018-08-23 12:14:40 +02:00
Zuul
792c26e28a Merge "Fix standalone home dir variable" 2018-08-23 00:57:20 +00:00
Zuul
1c1b6649e3 Merge "Assert container's ssl cert exists before upgrade." 2018-08-22 14:18:16 +00:00
Zuul
cd3ff51730 Merge "Clarify ironic classic driver removal reno" 2018-08-22 14:06:41 +00:00