apex-puppet-tripleo.git
8 years agoFix style nits in contrail manifests
Carlos Camacho [Wed, 1 Feb 2017 20:10:21 +0000 (21:10 +0100)]
Fix style nits in contrail manifests

There are some style nits in the recently merged contrail puppet manifests.

Change-Id: Ice5935105e0323cb55e0d018190e6471ade7324a

8 years agoMerge "Re-organizes Contrail services to the correct roles"
Jenkins [Tue, 31 Jan 2017 22:45:13 +0000 (22:45 +0000)]
Merge "Re-organizes Contrail services to the correct roles"

8 years agoFix test failure caused by change to puppet-octavia
Brent Eagles [Tue, 31 Jan 2017 19:28:53 +0000 (15:58 -0330)]
Fix test failure caused by change to puppet-octavia

Fixes a test failure caused by Ic38d4f9f9a8e69ffcee6ccc4bba9a9ab0f161d0e
which pulls in a class with a required parameter.

Change-Id: I0740290bff0ea7c4af6e3420775ac3e72871d372

8 years agoMerge "Fix MySQL service name parameter"
Jenkins [Fri, 27 Jan 2017 23:49:58 +0000 (23:49 +0000)]
Merge "Fix MySQL service name parameter"

8 years agoMerge "Add a default rule for dhcpv6 traffic"
Jenkins [Fri, 27 Jan 2017 20:32:03 +0000 (20:32 +0000)]
Merge "Add a default rule for dhcpv6 traffic"

8 years agoMerge "Clean TLS proxy-related setup for neutron-server profile"
Jenkins [Fri, 27 Jan 2017 19:23:24 +0000 (19:23 +0000)]
Merge "Clean TLS proxy-related setup for neutron-server profile"

8 years agoFix MySQL service name parameter
Juan Antonio Osorio Robles [Fri, 27 Jan 2017 19:03:20 +0000 (21:03 +0200)]
Fix MySQL service name parameter

This was wrongly set to service_name while it should have been
server_service_name.

Change-Id: Ia802857cc585bb9b057a02f6a13c16981baa5b76

8 years agoMerge "Rename controller_admin_vip to controller_admin_host"
Jenkins [Fri, 27 Jan 2017 18:59:25 +0000 (18:59 +0000)]
Merge "Rename controller_admin_vip to controller_admin_host"

8 years agoMerge "Add AuditD Profile"
Jenkins [Fri, 27 Jan 2017 16:37:38 +0000 (16:37 +0000)]
Merge "Add AuditD Profile"

8 years agoClean TLS proxy-related setup for neutron-server profile
Juan Antonio Osorio Robles [Wed, 25 Jan 2017 17:47:19 +0000 (19:47 +0200)]
Clean TLS proxy-related setup for neutron-server profile

Since the commit this depends on sets it up via hieradata, the
conditionals here are no longer needed.

bp tls-via-certmonger
Depends-On: I9252512dbf9cf2e3eec50c41bf10629d36070bbd

Change-Id: I37275e42763e103b81878b6af07c750a524c5697

8 years agonova: deploy basic setup for cells
Emilien Macchi [Thu, 26 Jan 2017 19:13:20 +0000 (14:13 -0500)]
nova: deploy basic setup for cells

it's not required in Ocata, let's configure the basic setup for cells.

note: it also cleanup old code that is not valid anymore.

Change-Id: Iac5b2fbe1b03ec7ad4cb8cab2c7694547be6957d

8 years agoRe-organizes Contrail services to the correct roles
Michael Henkel [Thu, 26 Jan 2017 23:36:54 +0000 (00:36 +0100)]
Re-organizes Contrail services to the correct roles

In current setup some Contrail services belong to the wrong roles.
The Contrail control plane can be impacted if the Analytics database has problems.
Furthermore contrail tripleo puppet modules are being refactored to conform to the
new interface of the puppet-contrail modules.

Closes-Bug: 1659560

Change-Id: Id0dd35b95c5fe9d0fcc1e16c4b7d6cc601f10818

8 years agoAdd AuditD Profile
Steven Hardy [Wed, 18 Jan 2017 12:25:25 +0000 (12:25 +0000)]
Add AuditD Profile

This patch allows the management of the AuditD service and its associated
files (such as `audit.rules`)

This is achieved by means of the `puppet-auditd` puppet module.

Closes-Bug: #1640302
Co-Authored-By: Luke Hinds (lhinds@redhat.com)
Change-Id: Ie31c063b674075e35e1bfa28d1fc07f3f897407b

8 years agoAdd a default rule for dhcpv6 traffic
Michele Baldessari [Fri, 27 Jan 2017 09:54:28 +0000 (10:54 +0100)]
Add a default rule for dhcpv6 traffic

Via bug https://bugs.launchpad.net/tripleo/+bug/1657108 we need
to zero out the default rules in /etc/sysconfig/ip{6}tables in
the image.
We have done this for ipv4, but when we will do it for ipv6 we
will also need to make sure we add a rule for dhcpv6 traffic
as it is shipped in the iptables rpm. (See
https://bugzilla.redhat.com/show_bug.cgi?id=1169036 for more info)

With this change we correctly get the rule present (aka the first
ACCEPT line. The second line is due to the stock ip6tables rule
I had in my testing):
[root@overcloud-controller-0 ~]# iptables -nvL |grep 546
[root@overcloud-controller-0 ~]# ip6tables -nvL |grep 546
    0     0 ACCEPT     udp      *      *       ::/0 fe80::/64 multiport dports 546 /* 004 accept ipv6 dhcpv6 ipv6 */ state NEW
    0     0 ACCEPT     udp      *      *       ::/0 fe80::/64 udp dpt:546 state NEW

Change-Id: If22080054b2b1fa7acfd101e8c34d2707e8e7864
Partial-Bug: #1657108

8 years agoMerge "horizon: be more flexible in hiera neutron"
Jenkins [Fri, 27 Jan 2017 04:51:38 +0000 (04:51 +0000)]
Merge "horizon: be more flexible in hiera neutron"

8 years agoMerge "Use TLS proxy for neutron server's internal TLS"
Jenkins [Fri, 27 Jan 2017 01:07:11 +0000 (01:07 +0000)]
Merge "Use TLS proxy for neutron server's internal TLS"

8 years agoMerge "Support composable HA for the Ceph rbdmirror daemon"
Jenkins [Thu, 26 Jan 2017 23:09:55 +0000 (23:09 +0000)]
Merge "Support composable HA for the Ceph rbdmirror daemon"

8 years agoMerge "Adding congress service"
Jenkins [Thu, 26 Jan 2017 22:25:47 +0000 (22:25 +0000)]
Merge "Adding congress service"

8 years agohorizon: be more flexible in hiera neutron
Emilien Macchi [Thu, 26 Jan 2017 21:45:55 +0000 (16:45 -0500)]
horizon: be more flexible in hiera neutron

Requiring the neutron mechanism driver from hiera is too rigid, if
Neutron is not deployed in the catalog.
Be more flexible so catalog won't fail if the value is not set in Hiera.

Change-Id: I1475687c4dc53c77e763f42a440355a7c8d014bc
Partial-Bug: #1659662

8 years agoSupport composable HA for the Ceph rbdmirror daemon
Giulio Fidente [Tue, 24 Jan 2017 10:39:40 +0000 (11:39 +0100)]
Support composable HA for the Ceph rbdmirror daemon

Follow up patch for I63da4f48da14534fd76265764569e76300534472
to support composable HA for the Ceph rbdmirror daemon.

Change-Id: I3767bee4b1c7849fa85e71bcc57534b393d2d415

8 years agoUse TLS proxy for neutron server's internal TLS
Juan Antonio Osorio Robles [Wed, 25 Jan 2017 16:22:16 +0000 (18:22 +0200)]
Use TLS proxy for neutron server's internal TLS

This uses the tls_proxy resource added in a previous commit [1] in
front of the neutron server when internal TLS is enabled. Right
now values are passed quite manually, but a subsequent commit will use
t-h-t to pass the appropriate hieradata, and then we'll be able to
clean it up from here.

Note that the proxy is only deployed when internal TLS is enabled.

[1] I82243fd3acfe4f23aab373116b78e1daf9d08467

bp tls-via-certmonger

Change-Id: I6dfbf49f45aef9f47e58b5c0dbedd2b4e239979e

8 years agoMerge "Ensure basic Ceph configuration is performed by RBD mirror"
Jenkins [Thu, 26 Jan 2017 13:42:23 +0000 (13:42 +0000)]
Merge "Ensure basic Ceph configuration is performed by RBD mirror"

8 years agoMerge "[keepalived] fix netmask for vip"
Jenkins [Thu, 26 Jan 2017 13:33:45 +0000 (13:33 +0000)]
Merge "[keepalived] fix netmask for vip"

8 years agoAdding congress service
Dan Radez [Thu, 22 Dec 2016 03:13:11 +0000 (22:13 -0500)]
Adding congress service

Change-Id: Ic74ccd5fa7b3b04ca810416e5160463252f17474
Signed-off-by: Dan Radez <dradez@redhat.com>
8 years agoRename controller_admin_vip to controller_admin_host
Martin André [Wed, 25 Jan 2017 17:12:23 +0000 (18:12 +0100)]
Rename controller_admin_vip to controller_admin_host

Bring change of I53151d4f555d5d161a3e53ce5f022e3bf3b2ffbd into
puppet-tripleo.

Change-Id: I1227956a0389497eedc00e4ec817f52be608dc75
Related-Bug: #1643655

8 years agoMerge "Adding tacker service"
Jenkins [Wed, 25 Jan 2017 23:13:15 +0000 (23:13 +0000)]
Merge "Adding tacker service"

8 years agoMerge "Composable HA"
Jenkins [Wed, 25 Jan 2017 23:04:41 +0000 (23:04 +0000)]
Merge "Composable HA"

8 years agoMerge "Remove double include of neutron::server class"
Jenkins [Wed, 25 Jan 2017 22:58:01 +0000 (22:58 +0000)]
Merge "Remove double include of neutron::server class"

8 years agoComposable HA
Michele Baldessari [Mon, 29 Aug 2016 20:07:55 +0000 (22:07 +0200)]
Composable HA

This commit implements composable HA for the pacemaker profiles.
- Everytime a pacemaker resource gets included on a node,
  that node will add a node cluster property with the name of the resource
  (e.g. galera-role=true)
- Add a location rule constraint to force running the resource only
  on the nodes that have that property
- We also make sure that any pacemaker resource/property creation has a
  predefined number of tries (20 by default). The reason for this is
  that within composable HA, it might be possible to get "older CIB"
  errors when another node changed the CIB while we were doing an
  operation on it. Simply retrying fixes this.
- Also make sure that we use the newly introduced
  pacemaker::constraint::order class instead of the older
  pacemaker::constraint::base class. The former uses the push_cib()
  function and hence behaves correctly in case multiple nodes try
  to modify the CIB at the same time.

Change-Id: I63da4f48da14534fd76265764569e76300534472
Depends-On: Ib931adaff43dbc16220a90fb509845178d696402
Depends-On: I8d78cc1b14f0e18e034b979a826bf3cdb0878bae
Depends-On: Iba1017c33b1cd4d56a3ee8824d851b38cfdbc2d3

8 years agoAdding tacker service
Dan Radez [Tue, 10 Jan 2017 17:52:37 +0000 (12:52 -0500)]
Adding tacker service

Change-Id: I3d6bbc05644e840395f87333ec80e3b844f69903

8 years agoRemove double include of neutron::server class
Juan Antonio Osorio Robles [Wed, 25 Jan 2017 15:57:45 +0000 (17:57 +0200)]
Remove double include of neutron::server class

This class was being included in the same way in two different branches
of the code which could be joined in the initial branch (or if
statement).

Change-Id: Iee3c1663a2fe929b21a9c089d89b721600af66bd

8 years agoEnsure basic Ceph configuration is performed by RBD mirror
Giulio Fidente [Wed, 25 Jan 2017 15:25:14 +0000 (16:25 +0100)]
Ensure basic Ceph configuration is performed by RBD mirror

Previously we missed to perform the basic Ceph client configuration
on a node where only the RBD mirror service was deployed.

Change-Id: Ie6a4284a88714bcee964a38636e12aa88bb95c9d
Co-Authored-By: Michele Baldessari <michele@acksyn.org>
Related-Bug: #1652177

8 years ago[keepalived] fix netmask for vip
Lukas Bezdicka [Tue, 10 Jan 2017 21:27:10 +0000 (22:27 +0100)]
[keepalived] fix netmask for vip

For pacemaker we ensure netmask of virtual IP to 64bit for IPv6 and
32bit for IPv4. We should have feature parity in keepalived setup.[1]
The issue is that puppet picks first IP orf ifconfig output as and
interface IP. In case of IPv6 keepalived would add new IP to
interface with netmask 128 causing interface_for_ip to fail on
second puppet run.

[1] - https://github.com/openstack/puppet-tripleo/blob/master/manifests/pacemaker/haproxy_with_vip.pp

Closes-Bug: #1659309

Change-Id: Icb0c9a8d51a9bfcdc4b2caef9e52fdeb6f634cba

8 years agoFix wrong hiera key in ceph_rbdmirror
Michele Baldessari [Wed, 25 Jan 2017 13:49:31 +0000 (14:49 +0100)]
Fix wrong hiera key in ceph_rbdmirror

There is a typo in the bootstrap check which will lead to:
Could not find data item ceph_rbdmirror_bootstrap_short_node_name in any
Hiera data file and no default supplied at
/etc/puppet/modules/tripleo/manifests/profile/pacemaker/ceph/rbdmirror.pp

We need to be using the correct one:
$ hiera ceph_rbdmirror_short_bootstrap_node_name
overcloud-remote-0

Change-Id: Ic343e5f99e48360bdd2d2989781a4b6ca484e8fc

8 years agoMerge "Clean TLS proxy-related setup for glance api profile"
Jenkins [Wed, 25 Jan 2017 03:36:42 +0000 (03:36 +0000)]
Merge "Clean TLS proxy-related setup for glance api profile"

8 years agoMerge "Make sure we bind the rabbit inter-cluster to a specific interface"
Jenkins [Wed, 25 Jan 2017 02:29:17 +0000 (02:29 +0000)]
Merge "Make sure we bind the rabbit inter-cluster to a specific interface"

8 years agoMerge "pacemaker remote profile support"
Jenkins [Wed, 25 Jan 2017 02:28:56 +0000 (02:28 +0000)]
Merge "pacemaker remote profile support"

8 years agoClean TLS proxy-related setup for glance api profile
Juan Antonio Osorio Robles [Thu, 8 Dec 2016 11:15:03 +0000 (13:15 +0200)]
Clean TLS proxy-related setup for glance api profile

Since the commit this depends on sets it up via hieradata, the
conditions here are no longer needed.

bp tls-via-certmonger
Change-Id: I66956f0b85e8e3bf1ab9562221d51d51c230b88e
Depends-On: I693213a1f35021b540202240e512d121cc1cd0eb

8 years agoMerge "Use TLS proxy for Glance API's internal TLS"
Jenkins [Tue, 24 Jan 2017 17:46:53 +0000 (17:46 +0000)]
Merge "Use TLS proxy for Glance API's internal TLS"

8 years agoMerge "updates to collectd support"
Jenkins [Tue, 24 Jan 2017 16:45:38 +0000 (16:45 +0000)]
Merge "updates to collectd support"

8 years agopacemaker remote profile support
Michele Baldessari [Tue, 22 Nov 2016 21:03:03 +0000 (22:03 +0100)]
pacemaker remote profile support

This support enables a base profile called pacemaker_remote which will
allow the operator to automatically configure the pacemaker_remote
service on such nodes. This manifest also automatically adds any
pacemaker_remote nodes to the pacemaker cluster.

Depends-On: I0c01ecb7df1a0f9856fdc866b9d06acf0283fa4f
Depends-On: Ic0488f4fc63e35b9aede60fae1e2cab34b1fbdd5
Change-Id: I92953afcc7d536d387381f08164cae8b52f41605

8 years agoMerge "Add retries to the ::pacemaker::stonith property"
Jenkins [Tue, 24 Jan 2017 14:40:22 +0000 (14:40 +0000)]
Merge "Add retries to the ::pacemaker::stonith property"

8 years agoMerge "Implement Nova ec2api profile"
Jenkins [Mon, 23 Jan 2017 19:28:39 +0000 (19:28 +0000)]
Merge "Implement Nova ec2api profile"

8 years agoMerge "Remove last bits of Glance Registry"
Jenkins [Mon, 23 Jan 2017 19:27:29 +0000 (19:27 +0000)]
Merge "Remove last bits of Glance Registry"

8 years agoMerge "Add Ceph RBD mirror Pacemaker profile"
Jenkins [Mon, 23 Jan 2017 18:52:47 +0000 (18:52 +0000)]
Merge "Add Ceph RBD mirror Pacemaker profile"

8 years agoUse TLS proxy for Glance API's internal TLS
Juan Antonio Osorio Robles [Thu, 8 Dec 2016 10:02:57 +0000 (12:02 +0200)]
Use TLS proxy for Glance API's internal TLS

This uses the tls_proxy resource added in the previous commit [1] in
front of the Glance API server when internal TLS is enabled. Right
now values are passed quite manually, but a subsequent commit will use
t-h-t to pass the appropriate hieradata, and then we'll be able to clean
it up from here.

Note that the proxy is only deployed when internal TLS is enabled.

[1] I82243fd3acfe4f23aab373116b78e1daf9d08467

bp tls-via-certmonger
Depends-On: Id5dfb38852cf2420f4195a3c1cb98d5c47bbd45e

Change-Id: Id35a846d43ecae8903a0d58306d9803d5ea00bee

8 years agoRemove last bits of Glance Registry
Emilien Macchi [Mon, 23 Jan 2017 13:01:37 +0000 (08:01 -0500)]
Remove last bits of Glance Registry

Glance Registry has been removed in TripleO. So we can clean
puppet-tripleo and remove last bits that used to deploy this service.

Change-Id: Iea8f6340349ab366606205305a3ec9a6e4f11ba6

8 years agoMerge "Add haproxy firewall rules for galera and redis"
Jenkins [Mon, 23 Jan 2017 12:28:41 +0000 (12:28 +0000)]
Merge "Add haproxy firewall rules for galera and redis"

8 years agoMerge "Add a noop_resource function"
Jenkins [Mon, 23 Jan 2017 11:13:14 +0000 (11:13 +0000)]
Merge "Add a noop_resource function"

8 years agoAdd a noop_resource function
Dan Prince [Sat, 21 Jan 2017 01:14:32 +0000 (20:14 -0500)]
Add a noop_resource function

A function to create noop providers (set as the default) for the named
resource. This works alongside of 'puppet apply --tags' to disable
some custom resource types that still attempt to run commands during
prefetch, etc.

Change-Id: Icabdb30369c8ca15e77d169dc441bee8cfd3631f

8 years agoMerge "Add support for fence_ironic fencing agent."
Jenkins [Sat, 21 Jan 2017 01:04:57 +0000 (01:04 +0000)]
Merge "Add support for fence_ironic fencing agent."

8 years agoMerge "cinder: move glance params into common"
Jenkins [Fri, 20 Jan 2017 19:33:32 +0000 (19:33 +0000)]
Merge "cinder: move glance params into common"

8 years agoMerge "Fix typo in endpoint.pp"
Jenkins [Fri, 20 Jan 2017 14:49:59 +0000 (14:49 +0000)]
Merge "Fix typo in endpoint.pp"

8 years agoMerge "Move nova::placement to common nova manifest"
Jenkins [Fri, 20 Jan 2017 13:38:18 +0000 (13:38 +0000)]
Merge "Move nova::placement to common nova manifest"

8 years agoImplement Nova ec2api profile
Sven Anderson [Fri, 1 Jul 2016 13:14:21 +0000 (15:14 +0200)]
Implement Nova ec2api profile

Change-Id: If4b091e1ca02f43aa9c65392baf8ceea007b7cfb

8 years agoMerge "Add base profile for Octavia services"
Jenkins [Fri, 20 Jan 2017 10:51:58 +0000 (10:51 +0000)]
Merge "Add base profile for Octavia services"

8 years agoMerge "Remove unused variable in certmonger/mysql manifest"
Jenkins [Fri, 20 Jan 2017 10:40:12 +0000 (10:40 +0000)]
Merge "Remove unused variable in certmonger/mysql manifest"

8 years agoMake sure we bind the rabbit inter-cluster to a specific interface
Michele Baldessari [Thu, 29 Dec 2016 20:48:55 +0000 (21:48 +0100)]
Make sure we bind the rabbit inter-cluster to a specific interface

Currently the inter-cluster communication port listens to all ip
addresses:
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 25631/beam.smp

In order to limit it to listen only to the network assigned to rabbitmq
we need to add the following:
{kernel, [
    ...
    {inet_dist_use_interface, {172,17,0,16}},
    ...
  ]}

In order to do the conversion from an ip address to the Erlang
representation we add a function that takes a string and returns a
converted output. The (~400 randomly generated) IPv6/4 addresses at [1]
have been parsed both via erl's built-in inet:parse_address() function
and our ruby implementation. All converted ip addresses resulted in the
same output [2], [3]. The only difference is that Erlang's parse_address()
considers network ip addresses (e.g. 10.0.0.0) invalid whereas the ruby
function does not. This should not be a problem as the use case here is
to bind a service to a specific ip address on an interface and if
anything we likely prefer the less strict behaviour, given that at least
in theory it is perfectly valid for an interface to have a network
address assigned to it.

[1] http://acksyn.org/files/tripleo/ip-addresses.txt
[2] http://acksyn.org/files/tripleo/ip-addresses-ruby.txt
[3] http://acksyn.org/files/tripleo/ip-addresses-erl.txt
Change-Id: I211c75b9bab25c545bcc7f90f34edebc92bba788
Partial-Bug: #1645898

8 years agoFix typo in endpoint.pp
zhangyanxian [Fri, 20 Jan 2017 07:25:38 +0000 (07:25 +0000)]
Fix typo in endpoint.pp

TrivialFix

Change-Id: I8ea2f108d6f98167217b31284c84dbdf23f55f36

8 years agocinder: move glance params into common
Emilien Macchi [Thu, 19 Jan 2017 23:40:44 +0000 (18:40 -0500)]
cinder: move glance params into common

glance params are also used by cinder-volume. This patch aims to use
cinder::glance in common roles for cinder, so we can split cinder api
and cinder volume.

Depends-On: Id81c029318016068481dd614ed62cc4bfaf0f3e8
Change-Id: I9703efb38c2a3166c7f21c5c1b942f33abb9e76c

8 years agoMove nova::placement to common nova manifest
Emilien Macchi [Thu, 19 Jan 2017 16:30:35 +0000 (11:30 -0500)]
Move nova::placement to common nova manifest

nova::placement needs to be declared on more than placement api node,
because credentials are used by different services (at least
nova-compute now).
This patch moves the class to base/nova.pp, at the same step.
So compute nodes will have the credentials and will be able to use
Placement API on multinode environments.

Change-Id: Iada8e9fcccec7dbfe7ac0ec0f9ec6eac1581290e

8 years agoMerge "Adds etcd"
Jenkins [Thu, 19 Jan 2017 21:08:34 +0000 (21:08 +0000)]
Merge "Adds etcd"

8 years agoMerge "Implement NTP profile"
Jenkins [Thu, 19 Jan 2017 20:08:02 +0000 (20:08 +0000)]
Merge "Implement NTP profile"

8 years agoAdd base profile for Octavia services
beagles [Fri, 5 Aug 2016 20:04:20 +0000 (17:34 -0230)]
Add base profile for Octavia services

Adds initial base profile and profile for API service.

Partially-implements: blueprint octavia-service-integration
Change-Id: I77783029797be4fb488c6e743c51d228eba9c474

8 years agoImplement NTP profile
Carlos Camacho [Thu, 28 Apr 2016 10:06:46 +0000 (12:06 +0200)]
Implement NTP profile

This puppet manifest will install and configure by default
the NTP service. It will also make sure chrony is purged, because it's
present on the EL7 images.

Change-Id: If3cf7d9690001b051465ea25cf8a8c3bc6f7c33a

8 years agoAdd retries to the ::pacemaker::stonith property
Michele Baldessari [Thu, 19 Jan 2017 09:07:52 +0000 (10:07 +0100)]
Add retries to the ::pacemaker::stonith property

Let's set a default number of retries also for the stonith
property creation. Just like we do for most of the composable
HA resource creation.

Change-Id: Ie6e19cc838a3f45100f6c98a350bdf6a37d40590
Depends-On: I20098c5d69cde356fe79f6d8dbdc03ae42ecb3ef

8 years agoAdds etcd
Feng Pan [Wed, 14 Dec 2016 03:36:10 +0000 (22:36 -0500)]
Adds etcd

etcd is used by networking-vpp ML2 driver as the messaging mechanism. This
patch adds etcd service which can be used by other services.

Implements: blueprint fdio-integration-tripleo

Change-Id: Idaa3e3deddf9be3d278e90b569466c2717e2d517
Signed-off-by: Feng Pan <fpan@redhat.com>
8 years agoUse network entries for nova placement
Juan Antonio Osorio Robles [Wed, 18 Jan 2017 22:26:55 +0000 (00:26 +0200)]
Use network entries for nova placement

Having these available from t-h-t, we should be able to use these now.

Change-Id: I7272df25c4fdba152fe15d40444311bc35ace4d9
Depends-On: Id0d34c7c3939ee81126ffd26d0658c0a87805a44

8 years agoMerge "Remove legacy flag and use composable interface"
Jenkins [Wed, 18 Jan 2017 20:00:35 +0000 (20:00 +0000)]
Merge "Remove legacy flag and use composable interface"

8 years agoAdd Ceph RBD mirror Pacemaker profile
Giulio Fidente [Mon, 5 Dec 2016 15:43:23 +0000 (16:43 +0100)]
Add Ceph RBD mirror Pacemaker profile

This change adds a profile for the Ceph RBD mirror service, which
should be managed by Pacemaker to make sure there is always a single
instance running.

Change-Id: Ic63dc5cffece38942d305f538f71dd58a5d50789
Partial-Bug: #1652177

8 years agoRemove legacy flag and use composable interface
Pradeep Kilambi [Fri, 13 Jan 2017 17:13:07 +0000 (12:13 -0500)]
Remove legacy flag and use composable interface

We dont need this flag anymore as we will disable api
using composable interface instead.

See I67900f7e6816212831aea8ed18f323652857fbd3

Closes-bug: #1656364

Change-Id: Ib6aea02bde6ad7e5223336579f0a99d6cd3ee98f

8 years agoupdates to collectd support
Lars Kellogg-Stedman [Thu, 15 Dec 2016 03:07:26 +0000 (22:07 -0500)]
updates to collectd support

Based on Steve Hardy's comments in
https://review.openstack.org/#/c/413748/, we need to move handling of
the list of plugins out of the heat templates and into puppet.  This
module now uses the service_names variable to look up information on
per-service collectd plugins.

Change-Id: Ie5fba01e1f91ffdc39eb0eb1be9b1464c797b04f

8 years agoDo not depend on bootstrap_nodeid for any pacemaker profile
Michele Baldessari [Tue, 17 Jan 2017 17:17:38 +0000 (18:17 +0100)]
Do not depend on bootstrap_nodeid for any pacemaker profile

When we create a pacemaker resource it must happen from a single node.
If it happens from multiple nodes an immediate error will be returned by
pcs.

For the pacemaker roles we enforce this by leveraging the recently
introduced <SERVICE_NAME_bootstrap_short_node_name> which gives us
the first hostname per-service, regardless of the role.
(introduced via I03e8685f939e8ae1fcd8b16883b559615042505d)

With this approach if a pacemaker service belongs to two different
roles (say role Controller on node A and role galera on node B), it
will only create the resource from one of the two and not both (which
would return an error).

Only setting Partial-Bug for this one, because it addresses the issue
from the pacemaker resource creation POV (which is always affected). But
the issue itself is a race that we're theoretically affected by since
the composable roles work landed. While I have tried to fix the more
general case in previous attempts, I think it is best if we start a
discussion on how to fix it, because each approach has a bunch of
potential drawbacks and is quite invasive on how we do things. A
discussion slot for this has been proposed for the Atlanta PTG.

Change-Id: I662398cab60d523d204b57a5674ca8f5c0f2e68a
Partial-Bug: #1615983

8 years agoMerge "Set ceph key when using manila ceph backend"
Jenkins [Wed, 18 Jan 2017 10:20:40 +0000 (10:20 +0000)]
Merge "Set ceph key when using manila ceph backend"

8 years agoMerge "Call VF configuration from udev rules"
Jenkins [Tue, 17 Jan 2017 00:07:15 +0000 (00:07 +0000)]
Merge "Call VF configuration from udev rules"

8 years agoMerge "Add missing Swift base class"
Jenkins [Tue, 17 Jan 2017 00:04:56 +0000 (00:04 +0000)]
Merge "Add missing Swift base class"

8 years agoMerge "Include swift::storage::loopbacks class"
Jenkins [Mon, 16 Jan 2017 23:59:52 +0000 (23:59 +0000)]
Merge "Include swift::storage::loopbacks class"

8 years agoMerge "Set memcache_servers in /etc/swift/object-expirer.conf"
Jenkins [Mon, 16 Jan 2017 23:59:46 +0000 (23:59 +0000)]
Merge "Set memcache_servers in /etc/swift/object-expirer.conf"

8 years agoMerge "Enable object-expirer on Swift proxy profile"
Jenkins [Mon, 16 Jan 2017 23:59:34 +0000 (23:59 +0000)]
Merge "Enable object-expirer on Swift proxy profile"

8 years agoMerge "Implement Nova Placement API profile"
Jenkins [Mon, 16 Jan 2017 18:16:38 +0000 (18:16 +0000)]
Merge "Implement Nova Placement API profile"

8 years agoMerge "Include ::heat at step 3"
Jenkins [Mon, 16 Jan 2017 17:08:35 +0000 (17:08 +0000)]
Merge "Include ::heat at step 3"

8 years agonova: disable ::nova::db::sync_cell_v2
Emilien Macchi [Sat, 14 Jan 2017 15:21:19 +0000 (10:21 -0500)]
nova: disable ::nova::db::sync_cell_v2

This feature is broken for us now and there is work in progress in Nova
to improve nova cell deployment.
Until it's fixed upstream, we need to disable cells deployment for now,
so we can promote our CI.

Change-Id: I379ba9e94a92ed225a03a67fc975b542447a9c8b
Related-Bug: #1649341

8 years agoInclude ::heat at step 3
James Slagle [Fri, 13 Jan 2017 20:41:59 +0000 (15:41 -0500)]
Include ::heat at step 3

Since we include ::heat::keystone::domain at step 3, and that class
requires heat.conf since it uses the heat_config resource, we need to
also include ::heat at step 3. The ::heat class will take care of
installing openstack-heat-common that provides heat.conf.

Closes-Bug: #165389
Partially-implements: blueprint split-stack-software-configuration
Change-Id: I5ba34ca96ca84d3f1cf3785ed8bbef6720f7bd42

8 years agoSet ceph key when using manila ceph backend
Jan Provaznik [Wed, 14 Dec 2016 12:04:17 +0000 (12:04 +0000)]
Set ceph key when using manila ceph backend

Manila ceph driver reads ceph's client configuration
(keyring is the most important) from ceph.conf file
(or any other file set by cephfs_conf_path). ceph.conf
should be updated with keyring location.

If ceph is deployed by tripleo then also manila ceph key
is added into ceph and ceph filesystem is created.

Depends-On: I18436a64fc991b9e697a1d79e369ac110cf8fe20
Change-Id: Iac4a260af6738ed6afd4bcb107221a736d07c1b5
Partial-Bug: #1644784
Closes-Bug: #1646147

8 years agoAdd support for fence_ironic fencing agent.
Chris Jones [Mon, 24 Oct 2016 20:04:11 +0000 (21:04 +0100)]
Add support for fence_ironic fencing agent.

We now support creating Pacemaker stonith fencing using the fence_ironic
fencing agent.

Partial-Bug: #1649695

Depends-On: I315f9bb78a1296f691dadaeb39fb0a48df1d5f06
Change-Id: I596eef68820f16516feeda147d3689f0da85d7ac

8 years agoImplement Nova Placement API profile
Emilien Macchi [Fri, 2 Dec 2016 19:02:43 +0000 (14:02 -0500)]
Implement Nova Placement API profile

Allow TripleO to deploy Nova Placement API with a new profile.

Change-Id: I5e25a50f3d7a9b39f4146a61cb528963ee09e90c

8 years agoMerge "Rspec tests for nova profiles"
Jenkins [Tue, 10 Jan 2017 22:40:45 +0000 (22:40 +0000)]
Merge "Rspec tests for nova profiles"

8 years agoMerge "Add Docker Registry profile"
Jenkins [Tue, 10 Jan 2017 17:33:29 +0000 (17:33 +0000)]
Merge "Add Docker Registry profile"

8 years agoMerge "Move nova cells db sync into nova-api profile"
Jenkins [Tue, 10 Jan 2017 16:12:52 +0000 (16:12 +0000)]
Merge "Move nova cells db sync into nova-api profile"

8 years agoMerge "Add support for not using admin_token in Ceph/RGW"
Jenkins [Tue, 10 Jan 2017 04:14:03 +0000 (04:14 +0000)]
Merge "Add support for not using admin_token in Ceph/RGW"

8 years agoRspec tests for nova profiles
Alex Schultz [Mon, 9 Jan 2017 20:31:37 +0000 (13:31 -0700)]
Rspec tests for nova profiles

This change fixes the hiera calls in the base nova profile to use the
parameter rather than continue to call hiera. Additionally this change
includes basic test coverage for the various nova profiles.

Change-Id: If393606eeb3c39ed3a2655bd89c5c276a9cf106e

8 years agoMove nova cells db sync into nova-api profile
Dan Prince [Mon, 9 Jan 2017 15:17:35 +0000 (10:17 -0500)]
Move nova cells db sync into nova-api profile

Having the db_sync code live in the mysql profile causes
coupling that doesn't work unless your MySQL server has the
latest Nova packages installed. This may not work for some
baremetal setups (where an isolated database exists) or
with containers where the MySQL container definately doesn't
have nova packages installed.

Moving this code into the nova-api role also matches where we
were already db syncing the normal API database so it should be
fine and safe.

Change-Id: Ib625e2ac9c8d6bd1d335c58e291facc4ea5839ae
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
8 years agoAdd support for not using admin_token in Ceph/RGW
Keith Schincke [Thu, 1 Dec 2016 18:37:12 +0000 (13:37 -0500)]
Add support for not using admin_token in Ceph/RGW

This patch add the option for using Keyston V3 authention with
the Ceph/RGW service instead of using the admin_token

Change-Id: I42861afcac221478dcb68be13b6dbc2533a7f158

8 years agoUse THT to define cell0 creation
Alex Schultz [Tue, 3 Jan 2017 21:19:45 +0000 (14:19 -0700)]
Use THT to define cell0 creation

As part of the initial implementation, we hard coded the cell0 setup in
puppet. This change switches it to leverage the defined value in the
tripleo-heat-templates

Change-Id: I896a124d91d06ca85b77c9fbe24fd252815a2d28
Depends-On: I08119d781ef60750cc19753bc03190e413159925
Related-Bug: #1649341

8 years agoAdd Docker Registry profile
Martin André [Fri, 6 Jan 2017 16:14:22 +0000 (17:14 +0100)]
Add Docker Registry profile

The profile was moved out of instack-undercloud puppet manifest and
changed to install a v2 Docker registry rather than the old, deprecated
v1 registry.

Change-Id: Iecf7a4c7e86349e6ecaa0a8ee6d37223e3af7862

8 years agoAdd haproxy firewall rules for galera and redis
Michele Baldessari [Thu, 5 Jan 2017 19:27:46 +0000 (20:27 +0100)]
Add haproxy firewall rules for galera and redis

This change adds haproxy rules for galera and redis.  They are not there
because these haproxy entries do not use the ::tripleo::haproxy::endpoint
function which does this automatically.

Rabbit does not need them because it does not go through haproxy.

Closes-Bug: #1654280
Change-Id: If995d5c36341f3c089cbda9a0827ea28c19c796b

8 years agoMerge "Ensure panko::db class is initialized"
Jenkins [Sat, 7 Jan 2017 04:02:55 +0000 (04:02 +0000)]
Merge "Ensure panko::db class is initialized"

8 years agoMerge "Fix puppet warning for empty value"
Jenkins [Sat, 7 Jan 2017 01:41:02 +0000 (01:41 +0000)]
Merge "Fix puppet warning for empty value"

8 years agoEnsure panko::db class is initialized
Pradeep Kilambi [Fri, 6 Jan 2017 17:51:43 +0000 (12:51 -0500)]
Ensure panko::db class is initialized

Change-Id: If2f6559a7d76b26fa9b0a3ecfa2e2101aae93e3c

8 years agoMerge "glance/api: cleanup on dbsync"
Jenkins [Fri, 6 Jan 2017 16:25:44 +0000 (16:25 +0000)]
Merge "glance/api: cleanup on dbsync"