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 (community) 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
diff --git a/contrib/canonical-rules.yaml b/contrib/canonical-rules.yaml
index 8abd854..60726d0 100644
--- a/contrib/canonical-rules.yaml
+++ b/contrib/canonical-rules.yaml
@@ -47,6 +47,12 @@ openstack config:
47 sysconfig:47 sysconfig:
48 governor:48 governor:
49 eq: "performance"49 eq: "performance"
50 isolcpus:
51 eq: ""
52 custom-message:
53 isolcpus is deprecated as mentioned in the linux kernel documentation.
54 You are advised to use cpu-affinity-range to achieve similar feature.
55 log-level: warning
50 ovn-central:56 ovn-central:
51 ovsdb-server-election-timer:57 ovsdb-server-election-timer:
52 gte: 458 gte: 4
diff --git a/contrib/includes/openstack.yaml b/contrib/includes/openstack.yaml
index 86af4da..e0b0f8d 100644
--- a/contrib/includes/openstack.yaml
+++ b/contrib/includes/openstack.yaml
@@ -30,6 +30,13 @@ openstack config base: &openstack-config-base
30 sysconfig:30 sysconfig:
31 governor:31 governor:
32 eq: "performance"32 eq: "performance"
33 isolcpus:
34 eq: ""
35 custom-message:
36 isolcpus is deprecated as mentioned in the linux kernel documentation.
37 You are advised to use cpu-affinity-range to achieve similar feature.
38 log-level: warning
39
3340
34openstack config:41openstack config:
35 << : [ *openstack-config-base, *openstack-config-networking, *openstack-config-database ]42 << : [ *openstack-config-base, *openstack-config-networking, *openstack-config-database ]

Subscribers

People subscribed via source and target branches