New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 2012838: fix override storage options from storage.conf #5423
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5423 +/- ##
==========================================
+ Coverage 43.48% 43.52% +0.04%
==========================================
Files 118 118
Lines 11848 11864 +16
==========================================
+ Hits 5152 5164 +12
- Misses 6204 6207 +3
- Partials 492 493 +1 |
I like this, nice and clean I have two general questions: if there are duplicate entries in the storage options, what happens? Then, if the duplicate entries are handled by choosing the last one (as I assume it does), do you think we should have storage options first, then the crio specific ones? that way, the crio ones will override the default ones, but if they're not defined in crio's config, we'll inherit the storage ones |
we could also add a simple test in |
de6bad3
to
7e2f19f
Compare
LGTM |
7e2f19f
to
cdb1a92
Compare
// keeps the storage options from storage.conf and merge it to crio config | ||
var storageOpts []string | ||
storageOpts = append(storageOpts, c.StorageOptions...) | ||
|
||
data, err := ioutil.ReadFile(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
G304: Potential file inclusion via variable
(at-me in a reply with help
or ignore
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sonatype-lift help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m LiftBot and I automatically analyze new code in code review, and comment when I find potential bugs. I also accept comments as commands. Just @sonatype-lift
followed by the command: ignore to mark as false positive, unignore to undo, and help to see this message. Click here to add LiftBot to another repo.
dfc897d
to
4ec7adc
Compare
/test critest_fedora |
@cri-o/cri-o-maintainers PTAL |
/approve LGTM |
@cri-o/cri-o-maintainers PTAL |
one issue with this approach is when we run |
(by that I don't mean checking each key, but each key=value option pair) my intuition would be the resulting list should be |
4ec7adc
to
d4a599d
Compare
/test kata-containers |
Removed the duplicates and keeps the last appearance in the list. |
@cri-o/cri-o-maintainers PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haircommander, QiWang19, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
10 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@QiWang19: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
5 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/cherry-pick release-1.21 |
@QiWang19: new pull request created: #5436 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cherry-pick release-1.22 |
@haircommander: new pull request created: #5437 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fix https://bugzilla.redhat.com/show_bug.cgi?id=2012838
Merge in the storage_option from drop-in crio.conf to the storage.conf, do not override the configs from storage.conf.
The override leads to configuration of containerruntimeconfig not working.
Signed-off-by: Qi Wang qiwan@redhat.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2012838
The storage_option from /etc/crio/crio.conf.d/00-default overrides the configurations from /etc/containers/storage.conf.
Special notes for your reviewer:
Does this PR introduce a user-facing change?