3570 Commits

Author SHA1 Message Date
Zuul
cb08cb1c11 Merge "Edit some post update tasks logic" 2018-08-18 20:00:48 +00:00
Martin Schuppert
444fc042dc Add role parameter for rx/tx virtio-net queue size
Introduce NovaLibvirtRxQueueSize and NovaLibvirtTxQueueSize to set
virtio-net queue sizes as a role parameter.

Change-Id: I7f252b38d4358fc815d98c522ca59a6adfd69a88
2018-08-17 08:17:19 +02:00
Zuul
33cc06fae1 Merge "Remove md5 checksum output from CA injection" 2018-08-16 11:00:50 +00:00
Zuul
69c0bd6a8b Merge "host_routes using get_attr (Composable Networks)" 2018-08-14 19:40:25 +00:00
Juan Antonio Osorio Robles
63a8f5529f Remove md5 checksum output from CA injection
This doesn't work with config download anymore, since the software
configs are overwritten. It was never a very useful output anyway, so
it's being removed.

Change-Id: I2c4fc26009fb6e031c6d7fe11401e85c995bd210
Closes-Bug: #1786954
2018-08-14 17:32:27 +03:00
Zuul
6f651a5273 Merge "Migrate tripleo-packages service to ansible package module" 2018-08-13 11:33:43 +00:00
Zuul
bf7a452de0 Merge "Set allow_action_execution_deletion to true in mistral api config" 2018-08-13 00:08:07 +00:00
Zuul
bd2c81b24a Merge "Skip Ceph packages when running tripleo-packages" 2018-08-11 01:49:45 +00:00
Giulio Fidente
fc2a5ae4ab Migrate tripleo-packages service to ansible package module
It is not necessary to exclude specific Ceph packages when running
yum update in Rocky so this change removes the --exclude argument.

Note that it also removes update_cache which is not supported by
the 'package' module.

Change-Id: I8465f16415e69b1932726cdc1644a53370364708
2018-08-10 12:39:24 +02:00
Zuul
39e360624e Merge "Break out image prepare into its own "service"" 2018-08-10 02:31:33 +00:00
Zuul
f403596657 Merge "DeployedServer support for cidr via get_attr" 2018-08-10 02:31:28 +00:00
Zuul
575c08eb4f Merge "Use fqdn for live_migration_inbound_addr" 2018-08-09 04:01:24 +00:00
Zuul
0c3dcf11d7 Merge "Fixed wrong when condition in mounting staging location" 2018-08-08 22:09:49 +00:00
Giulio Fidente
6a4dcca632 Skip Ceph packages when running tripleo-packages
Do not upgrade the Ceph packages when tripleo-packages runs. This
avoids that packages on baremetal are upgraded to the Luminous
level while the cluster is still running at the Jewel level during
FFU process.

Partial-Bug: #1785279
Change-Id: Ie17daa98109b0d51e2258bd6d360d6b2f0e1b0ae
2018-08-08 14:56:54 +00:00
Zuul
e7bde70073 Merge "Add NovaResumeGuestsStateOnHostBoot and NovaResumeGuestsShutdownTimeout" 2018-08-08 12:39:02 +00:00
Chandan Kumar
0948b1eea0 Set allow_action_execution_deletion to true in mistral api config
* By default in mistral api config allow_action_execution_deletion
  it is false by default. In order to run mistral tempest tests
  we need to enable it.

Change-Id: Iff052cd47ab34c6d3231cb024e17df56abd4b443
2018-08-08 17:03:46 +05:30
Jill Rouleau
6a1ac35275 DeployedServer support for cidr via get_attr
Change I92ee0f9a2107cdf1ca5903d3756a235a79c36c73 implemented a
conditional for ControlPlaneSubnetCidr to be resolved using get_attr
and a str_split. DeployedServer documentation specifies that this
value should be provided to DeployedServerPortMap as a numeric value
(ie; 24) rather than full cidr (ie; 192.168.24.0/24), which causes the
str_split to fail.

This change provides support for both via a yaql expression, and adds
a deprecation note to switch to the full cidr format.

Change-Id: I6d4422b4f1aa52aee2954eb447008d3d24fe8736
2018-08-07 09:53:06 -07:00
Oliver Walsh
ffe6345e35 Use fqdn for live_migration_inbound_addr
Nova currently doesn't handle this correctly if it's an IPv6 address.

Change-Id: I9e4ef1fef98bf22d54ce962b889585bcb3e7508a
2018-08-07 17:13:30 +01:00
Zuul
bea76b04a8 Merge "Set default number of rabbitmq queues to CEIL(N/2)" 2018-08-06 19:40:38 +00:00
Zuul
8230a305e2 Merge "Add support to set cors config in gnocchi templates" 2018-08-06 17:40:44 +00:00
Zuul
0f77e609d8 Merge "Fluentd: Set cinder-backup log path" 2018-08-06 17:40:40 +00:00
Pranali Deore
22645d3856 Fixed wrong when condition in mounting staging location
Just a string(when: glance_staging_nfs_share) as done in [1] without
any comparison in when condition is not working.

Adding comparision to non empty string to fix this.

[1] https://review.openstack.org/#/c/569970/1..2/puppet/services/glance-api.yaml@377

Change-Id: Ie6dc460e3853bc4ecce50e5294903a837d38b546
2018-08-06 15:34:08 +05:30
Zuul
21dadd4ef3 Merge "Disable recursion in Designate-managed BIND" 2018-08-03 00:08:27 +00:00
Zuul
f451975b84 Merge "Expose dnsmasq_local_resolv option" 2018-08-03 00:08:25 +00:00
Steve Baker
1bda1fd9a7 Break out image prepare into its own "service"
This makes the docker-registry service focused on installing the
registry, as it should be. Also this makes it possible to invoke this
service during overcloud deploy too.

This change also switches to calling the tripleo-common script
tripleo-container-image-prepare instead of the full openstack command.
This will allow a mistral image to do a prepare without depending on
the python-tripleoclient package.

The {{role}}Services and {{role}}Count are propagated to
tripleo-container-image-prepare so that images are filtered correctly.

sudo is used instead of become:true so that the tripleo-common mistral
sudoers pattern matches.

Depends-On: Ic1648e43f45bb7604d4c0f9abf247a475fb23707
Change-Id: Ibc16bed673de7b22cd8eef3f6fb0d45871083873
Blueprint: container-prepare-workflow
2018-08-02 11:29:39 +12:00
Zuul
12e037e1eb Merge "Correct Cinder NetApp backend name parameter mapping" 2018-08-01 18:19:16 +00:00
Pradeep Kilambi
b021c4efdf Add support to set cors config in gnocchi templates
Depends-On: I4f750863ba1bde478efff026f9bc64bac13030ec
Change-Id: Ibedf37e70746486a16366a87888a8963c7fb9cc7
2018-07-31 17:49:36 +00:00
Martin Schuppert
9654393f24 Add NovaResumeGuestsStateOnHostBoot and NovaResumeGuestsShutdownTimeout
NovaResumeGuestsStateOnHostBoot (true/false) parameter which
configures whether or not to start again instances which were running at
the time of a compute reboot.
This will set the resume_guests_state_on_host_boot parameter in nova.conf
and configures and enables libvirt-guests with a dependency to the
docker service to shutdown instances before the libvirt container gets
stopped.
NovaResumeGuestsShutdownTimeout specifies the number in seconds for an
instance to allow to shutdown.

Change-Id: I946600ebbc3afd88385ca89015e8f6a6c46f46ef
Closes-Bug: 1778216
Depends-On: I2766cdd66ff17756daaf1a75ad516a7af6eebddc
Depends-On: Id1cc2e75af316b864cebf601395f1111b7fb049a
2018-07-31 12:24:08 +02:00
Zuul
bef70cb6de Merge "NUMA aware vswitches" 2018-07-30 19:54:05 +00:00
Harald Jensås
d27ec26e56 host_routes using get_attr (Composable Networks)
Uses get_attr on the port resource to resolve attribute
value from neutron subnet 'host_routes' attribute and
pass it to the parameter '{{network.name}}InterfaceRoutes'
in network configuration templates.

A conditional is used in puppet/role.role.j2.yaml. The
user provided parameter value is used whenever it is
not the default: []. This allow advanced user's to
override the routes in neutron.

Co-Authored-By: Dan Sneddon <dsneddon@redhat.com>
Partial: blueprint tripleo-routed-networks-templates
Change-Id: Ie44b211c4aeab9ca79d7994f31961e34aa3517e6
2018-07-30 10:03:34 +02:00
Emilien Macchi
0b5efadbf7 nova: add parameters to configure nova::cron::archive_deleted_rows
This patch adds new parameter to configure the crontab in charge of
archiving the deleted rows in Nova database.
The defaults were hard coded but now our operators can override it.
New parameters:
  NovaCronDBArchivedMinute
  NovaCronDBArchivedHour
  NovaCronDBArchivedMonthday
  NovaCronDBArchivedMonth
  NovaCronDBArchivedWeekday

Note: the default didn't change for backward compatibility.

Closes-Bug: #1783155
Change-Id: I786179e1604ccf192826b012992cc88dacdd2b87
2018-07-29 03:42:16 +00:00
Zuul
fac21c7ed1 Merge "Allow setting physical network MTU via heat template" 2018-07-26 18:16:14 +00:00
Zuul
5fefd0bd08 Merge "Do undercloud container prepare in external_deploy_tasks" 2018-07-26 09:23:44 +00:00
Michele Baldessari
ab7c43a34b Set default number of rabbitmq queues to CEIL(N/2)
The default used to be -1 which translated to 'ha-mode: all'.
That means that every queue is mirrored on all controllers.

By setting this to zero we are moving to 'ha-mode: exactly' with
the number of queues to be set to CEIL(N/2):
$nr_ha_queues = CEIL(nr_of_rabbit_nodes/2)
set_policy='ha-all ^(?!amq\\.).* {\"ha-mode\":\"exactly\",\"ha-params\":${nr_ha_queues}}'

This way the queues will not be copied around all servers,
but just to a subset of them. This still provides the necessary
resilience in case of a controller crash, but is less demanding
in terms of performance (and likely triggers fewer bugs in rabbit)

Co-Authored-By: John Eckersberg <jeckersb@redhat.com>

Change-Id: If04a7bf24a5c94ec15726843a8a4d2504b656cb7
2018-07-26 09:22:06 +02:00
Rajesh Tailor
1b8e78af03 NUMA aware vswitches
Expose configuration parameteres for NUMA
aware vswitches.
The related nova changes are done in change:
https://review.openstack.org/#/c/564440/

Depends-On: Ia8fd65a75bc732087128e9e32ba72b2491423898
Change-Id: I318ba9c262f64c0d416a017ed836ae0729acedb4
2018-07-25 16:32:47 +05:30
Zuul
3e875145cd Merge "DnsServers using get_attr" 2018-07-25 00:53:28 +00:00
Zuul
7ce066eba3 Merge "EC2MetadatIp using get_attr" 2018-07-25 00:36:06 +00:00
Janki Chhatbar
989a36faf1 Edit some post update tasks logic
1. Spelling mismatch in ODL net mapping doesnot generate
its endpoitn clearly.
2. Rectified another small syntax correction for string
replace.
3. Delete upgrade flag and then set it to false. ODL
doesnot allow it to be set without deleting.
4. Other changes in accordance with ODL update process.

Change-Id: Ib549e29f50bbbb434183ac9423bcf776807ff1a4
Closes-Bug: 1779410
2018-07-24 05:29:23 +00:00
Zuul
d75fca71ed Merge "ansible: replace yum module by package module when possible" 2018-07-24 04:54:04 +00:00
Zuul
ad5d4d1db1 Merge "ControlPlaneDefaultRoute using get_attr" 2018-07-24 01:34:22 +00:00
Zuul
dfc09b6ff1 Merge "ControlPlaneSubnetCidr using get_attr" 2018-07-24 01:34:20 +00:00
Steve Baker
e2148a5167 Do undercloud container prepare in external_deploy_tasks
This change moves docker and docker-distribution installation from
step 1 to host_prep_tasks, then runs container prepare as
external_deploy_tasks.

Container image prepare needs to run before any steps which require
container images, and it always needs to run on the undercloud because
it only ever populates the undercloud registry. Docker needs to be
installed in host_prep_tasks, since it is just before
external_deploy_tasks step 1.

The aim is to move these prepare tasks into their own service file so
they can be run during undercloud install and overcloud deploy, as an
alternative to having a dedicated mistral action for the overcloud
prepare.

Change-Id: I2c82b6829e574424067130d1a369ff30030fb4bc
Blueprint: container-prepare-workflow
2018-07-24 12:21:49 +12:00
Kamil Sambor
29bd1a9d87 Allow setting physical network MTU via heat template
Add 'neutron::plugins::ml2::physical_network_mtus' as a
NeutronML2PhysicalNetworkMtus in heat template to allow
set MTU in ml2 plugin

Change-Id: I2f9666a5422a1272d53c869e4dad8581ab605b37
Closes-Bug: 1782123
2018-07-23 15:31:29 +02:00
Emilien Macchi
b3a7cfc43f ansible: replace yum module by package module when possible
Problem: RHEL and CentOS8 will deprecate the usage of Yum.

From DNF release note:
DNF is the next upcoming major version of yum, a package
manager for RPM-based Linux distributions.
It roughly maintains CLI compatibility with YUM and defines a strict API for
extensions.

Solution: Use "package" Ansible module instead of "yum".

"package" module is smarter when it comes to detect with package manager
runs on the system. The goal of this patch is to support both yum/dnf
(dnf will be the default in rhel/centos 8) from a single ansible module.

Change-Id: I8e67d6f053e8790fdd0eb52a42035dca3051999e
2018-07-21 00:17:25 +00:00
Zuul
959e1d7f75 Merge "Enable deep_compare of pcmk resources by default" 2018-07-20 15:38:20 +00:00
Zuul
ce2aa5b4dc Merge "Add AllNodesExtraMapData parameter" 2018-07-20 13:28:09 +00:00
Zuul
a9fda38818 Merge "Fix HostnameMap lookup - replace str_replace with yaql" 2018-07-20 04:31:45 +00:00
Zuul
e4c85a7336 Merge "Give neutron ports names: $HOSTNAME_$NETWORKNAME" 2018-07-20 04:31:44 +00:00
Michele Baldessari
60d75f19e5 Enable deep_compare of pcmk resources by default
By settings these hiera keys we will actually do a deep comparison
of all pacemaker resources and update them accordingly.

This means that rerunning a deploy against an existing overcloud
will actually detect if a pacemaker resource needs updating and
will update the definition and restart of said resource. The code
will wait for the resource to be up (aka the cluster to settle
after an update).

Depends-On: I62d5662327333e17e1c32a029695b3d3a904ca10
Change-Id: I0b9ed429e6b1bd4a62b4462bf6312782f29b7d6b
2018-07-19 15:52:36 +02:00
Harald Jensås
aeb783fdcf Fix HostnameMap lookup - replace str_replace with yaql
Using str_replace when looking up hostnames in
HostnameMap may return unpredictable results.
For example if the map contain:

HostnameMap:
  overcloud-compute-12: cmp-12-london
  overcloud-compute-123: cmp-123-berlin

When we do string replace for a hostname that is
not in the map (example: 'overcloud-compute-124')
it will match on the substring. The result would
be 'cmp-12-london4'.

This change replaces the str_replace with a yaql
expression that will return the value of they key
matching the hostname provided. If the key is not
in the map, the hostname is returned.

Closes-Bug: #1781560
Change-Id: Ia3a6a3539cd566131cd81b4d755190aa5b61a573
2018-07-19 07:24:29 +00:00