Merge ~raychan96/juju-lint:bug/1986773 into juju-lint:master

Proposed by Chi Wai CHAN
Status: Merged
Approved by: Eric Chen
Approved revision: a521614259f76e5b0c7c6b7d6c4d6ec03901b292
Merged at revision: 7622096e3fb4e1fdfdf3c9615b29927f7df71ee7
Proposed branch: ~raychan96/juju-lint:bug/1986773
Merge into: juju-lint:master
Diff against target: 35 lines (+13/-0)
2 files modified
contrib/canonical-rules.yaml (+6/-0)
contrib/includes/openstack.yaml (+7/-0)
Reviewer Review Type Date Requested Status
Eric Chen Approve
🤖 prod-jenkaas-bootstack continuous-integration Approve
Gabriel Cocenza Needs Fixing
Mert Kirpici (community) Approve
Review via email: mp+432534@code.launchpad.net

Commit message

Added custom warning message for sysconfig charm in the default lint rules.

Description of the change

The patch added a custom warning message in the `canonical-rules.yaml` and `openstack.yaml` default lint rule files when the sysconfig charm is configured with "isolcpus". The "isolcpus" boot parameter is considered deprecated in linux kernel documentation [0].

[0] https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html?highlight=isolcpus

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mert Kirpici (mertkirpici) wrote :

thanks Ray. I think there are a couple typos in the message that you might want to fix and I left a non-blocking suggestion inline. Once the typos are fixed, it is a +1 from me.

review: Approve
Revision history for this message
Gabriel Cocenza (gabrielcocenza) wrote :

Thanks for the patch. I've left some comments bellow.

review: Needs Fixing
Revision history for this message
Chi Wai CHAN (raychan96) :
Revision history for this message
Chi Wai CHAN (raychan96) wrote :

Thanks for the suggestions, I have left some replied in the previous comment.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Eric Chen (eric-chen) :
review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 7622096e3fb4e1fdfdf3c9615b29927f7df71ee7

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/contrib/canonical-rules.yaml b/contrib/canonical-rules.yaml
2index 8abd854..60726d0 100644
3--- a/contrib/canonical-rules.yaml
4+++ b/contrib/canonical-rules.yaml
5@@ -47,6 +47,12 @@ openstack config:
6 sysconfig:
7 governor:
8 eq: "performance"
9+ isolcpus:
10+ eq: ""
11+ custom-message:
12+ isolcpus is deprecated as mentioned in the linux kernel documentation.
13+ You are advised to use cpu-affinity-range to achieve similar feature.
14+ log-level: warning
15 ovn-central:
16 ovsdb-server-election-timer:
17 gte: 4
18diff --git a/contrib/includes/openstack.yaml b/contrib/includes/openstack.yaml
19index 86af4da..e0b0f8d 100644
20--- a/contrib/includes/openstack.yaml
21+++ b/contrib/includes/openstack.yaml
22@@ -30,6 +30,13 @@ openstack config base: &openstack-config-base
23 sysconfig:
24 governor:
25 eq: "performance"
26+ isolcpus:
27+ eq: ""
28+ custom-message:
29+ isolcpus is deprecated as mentioned in the linux kernel documentation.
30+ You are advised to use cpu-affinity-range to achieve similar feature.
31+ log-level: warning
32+
33
34 openstack config:
35 << : [ *openstack-config-base, *openstack-config-networking, *openstack-config-database ]

Subscribers

People subscribed via source and target branches