Dzahn has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/348197 )

Change subject: base::kernel: add mod blacklist specific to R320, blacklist 
acpi_pad
......................................................................

base::kernel: add mod blacklist specific to R320, blacklist acpi_pad

The acpi_pad kernel module has caused us lots of problems:
(T123924, T141675, T137647, T110202, T159870..)
And the solution was usually to rmmod.

We found a pattern that all the affected servers were Dell PowerEdege R320 
models.

So we want to blacklist this module but not globally, just specifically
for this model.

Add a kernel module blacklist file specific to just Dell R320 servers,
by looking at the "productname" facter value.

Given the existing code this seemed the more straight forward approach vs.
templates and iterating over values.

Using a case statement (with required default) deliberately to add more
models in the future where needed.

Bug: T162850
Change-Id: Iccf5bc967fa7832f2f7a8a9d8faafbe569957c05
---
A modules/base/files/kernel/blacklist-r320.conf
M modules/base/manifests/kernel.pp
2 files changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/97/348197/1

diff --git a/modules/base/files/kernel/blacklist-r320.conf 
b/modules/base/files/kernel/blacklist-r320.conf
new file mode 100644
index 0000000..da8f184
--- /dev/null
+++ b/modules/base/files/kernel/blacklist-r320.conf
@@ -0,0 +1,2 @@
+blacklist acpi_pad
+
diff --git a/modules/base/manifests/kernel.pp b/modules/base/manifests/kernel.pp
index 4a8fec4..28cf97e 100644
--- a/modules/base/manifests/kernel.pp
+++ b/modules/base/manifests/kernel.pp
@@ -23,6 +23,22 @@
         }
     }
 
+    # This section is for blacklisting modules per server model.
+    # It was originally started for acpi_pad issues on R320 (T162850)
+    # but is meant to be extended as needed.
+    case $::productname {
+      'PowerEdge R320': {
+        file { '/etc/modprobe.d/blacklist-r320.conf':
+            ensure => present,
+            owner  => 'root',
+            group  => 'root',
+            mode   => '0444',
+            source => 'puppet:///modules/base/kernel/blacklist-linux320.conf',
+        }
+      }
+      default: {}
+    }
+
     # By default trusty allows the creation of user namespaces by unprivileged 
users
     # (Debian defaulted to disallowing these since the feature was introduced 
for security reasons)
     # Unprivileged user namespaces are not something we need in general (and 
especially

-- 
To view, visit https://gerrit.wikimedia.org/r/348197
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iccf5bc967fa7832f2f7a8a9d8faafbe569957c05
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to