File: Do_not_attempt_to_write_in_etc_init.patch

package info (click to toggle)
puppet-module-cinder 21.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,108 kB
  • sloc: ruby: 6,330; python: 38; makefile: 10; sh: 10
file content (29 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: Do not attempt to write in /etc/init
 manifests/backend/rbd.pp attempts to write in /etc/init, when
 upstart has long gone. The result is that it just fails to run.
 So let's remove this, as it's broken.
From: Thomas Goirand <zigo@debian.org>
Date: Sat, 13 Apr 2019 21:34:37 +0200
Change-Id: I7666c775f4d269f214d3f853e56d0eb076834164
Forwarded: https://review.openstack.org/#/c/652209/
Last-Update: 2019-04-13

diff --git a/manifests/backend/rbd.pp b/manifests/backend/rbd.pp
index dc40c24..9c76db4 100644
--- a/manifests/backend/rbd.pp
+++ b/manifests/backend/rbd.pp
@@ -162,14 +162,4 @@
       fail("unsupported osfamily ${::osfamily}, currently Debian and Redhat are the only supported platforms")
     }
   }
-
-  # Creates an empty file if it doesn't yet exist
-  ensure_resource('file', $::cinder::params::ceph_init_override, {'ensure' => 'present'})
-
-  file_line { "set initscript env ${name}":
-    line   => $override_line,
-    path   => $::cinder::params::ceph_init_override,
-    notify => Anchor['cinder::service::begin'],
-  }
-
 }