-
Notifications
You must be signed in to change notification settings - Fork 373
cli: Error out if initrd/rootfs not define in config file #588
Conversation
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
nice find :-)
I look forward to a healthy English debate on the use of 'nor' vs 'or' here ;-)
PSS Measurement: Memory inside container: |
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
Build succeeded (third-party-check pipeline).
|
@nitkon |
I agree with Graham. I think you have a double negative; s/nor/or? |
I agree with Garham. I think you have a double negative; s/nor/or? |
Oh my god, why not make life easier? "either image or initrd must be specified in configuration file" I can't understand your error message as a non-native English speaker 😢 |
Agreed - could you update please @nitkon? |
@jodh-intel : Sure. |
@jodh-intel : Done. |
PSS Measurement: Memory inside container: |
Build succeeded (third-party-check pipeline).
|
@nitkon please fix the unit tests
|
Build failed (third-party-check pipeline) integration testing with
|
Tests still failing... |
@jodh-intel : Yes realized that. I am unsure about how do I overcome it. If I return initrd other test cases fail and If I do not set initrd or rootfs, it errors out as expected but test case fails as |
PSS Measurement: Memory inside container: |
Build failed (third-party-check pipeline) integration testing with
|
Hi @nitkon - could you re-push? The CI logs seems to have expired :) |
PSS Measurement: Memory inside container: |
Build failed (third-party-check pipeline) integration testing with
|
@nitkon please rebase and repush, the CI should pass, and I'll merge once this happens! |
@nitkon Looks like you need to fix this failing test as well:
|
Build failed (third-party-check pipeline) integration testing with
|
PSS Measurement: Memory inside container: |
Ah - good catch @nitkon! I think you can merge the commits though as otherwise the previous commit will fail the tests. |
Build failed (third-party-check pipeline) integration testing with
|
PSS Measurement: Memory inside container: |
@jodh-intel : Thanks for the input! 😃 Updated my PR. Couple of failures I guess not related to my PR. Re-push? |
Hi @nitkon - yep - this error seems unrelated. @grahamwhaley, @chavafg - the error though is similar to #727 (comment):
|
PSS Measurement: Memory inside container: |
Build succeeded (third-party-check pipeline).
|
If neither initrd nor rootfs path is mentioned in the configuration.toml file, then error out stating the same Fixes: kata-containers#587 Signed-off-by: Nitesh Konkar [email protected]
PSS Measurement: Memory inside container: |
Codecov Report
@@ Coverage Diff @@
## master #588 +/- ##
==========================================
- Coverage 65.25% 65.23% -0.02%
==========================================
Files 85 85
Lines 9960 9959 -1
==========================================
- Hits 6499 6497 -2
Misses 2809 2809
- Partials 652 653 +1 |
Build succeeded (third-party-check pipeline).
|
Since we have lots of approvals and All CI pass, merge this. |
vendor: update dependency opencontainers/runc
If neither initrd nor rootfs path is mentioned in
the configuration.toml file, then error out stating
the same
Fixes: #587
Signed-off-by: Nitesh Konkar [email protected]