Remove global openstack-core resource
authorGiulio Fidente <gfidente@redhat.com>
Tue, 26 Jul 2016 16:16:26 +0000 (18:16 +0200)
committerMichele Baldessari <michele@acksyn.org>
Wed, 27 Jul 2016 20:49:05 +0000 (22:49 +0200)
The openstack-core resource is not needed by the NG Pacemaker
architecture. It was moved into an isolated role by [1] so that
it could optionally be enabled when wanting the older architecture.

This submission removes the old openstack-core global resource.

1. I74a62973146c0261385ecf5fd3d06db51e079caa

Change-Id: I16a786ce167c57848551c7245f4344c382c55b3d

manifests/profile/base/pacemaker.pp
manifests/profile/pacemaker/database/mysql.pp

index 1785656..de3de3c 100644 (file)
@@ -81,12 +81,6 @@ class tripleo::profile::base::pacemaker (
   if $step >= 2 {
     if $pacemaker_master {
       include ::pacemaker::resource_defaults
-
-      # Create an openstack-core dummy resource. See RHBZ 1290121
-      pacemaker::resource::ocf { 'openstack-core':
-        ocf_agent_name => 'heartbeat:Dummy',
-        clone_params   => 'interleave=true',
-      }
     }
   }
 
index 80015d0..cc95092 100644 (file)
@@ -168,17 +168,6 @@ MYSQL_HOST=localhost\n",
   password=\"${mysql_root_password}\"",
       require => Exec['galera-set-root-password'],
     }
-    if $pacemaker_master {
-      pacemaker::constraint::base { 'galera-then-openstack-core-constraint':
-        constraint_type => 'order',
-        first_resource  => 'galera-master',
-        second_resource => 'openstack-core-clone',
-        first_action    => 'promote',
-        second_action   => 'start',
-        require         => [Pacemaker::Resource::Ocf['galera'],
-                            Pacemaker::Resource::Ocf['openstack-core']],
-      }
-    }
   }
 
 }