Repository navigation
test: kernel name in base-host-check (COMPOSER-2498) - #1419
achilleas-k wants to merge 2 commits into
Conversation
| [[ "$(hostname)" == "$(jq -r '.blueprint.customizations.hostname' "${config}")" ]] | ||
| fi | ||
|
|
||
| if jq -e '.blueprint.customizations.kernel.name' "${config}"; then |
There was a problem hiding this comment.
(super nitpick) maybe a small comment that the kernel-rt,debug customization sets this (its not part of all-configs) but maybe/probably overkill
There was a problem hiding this comment.
Not sure what you mean. Yeah, we don't set any alt kernels in all-customizations. Maybe we should make it kernel-debug though?
We have a kernel-debug config for iot-commit. Maybe we should add ami to that config too to cover it.
There was a problem hiding this comment.
I added kernel-debug as the kernel name in all-customizations, making the name of the test a little more accurate.
7678a38 to
3654817
Compare
|
There's some really interesting (and inconsistent) failures in the tests. But that's Monday's problem |
thozza
left a comment
There was a problem hiding this comment.
Thanks for adding these tests.
The kernel name test is IMO not correct.
In addition, I would prefer not to use shortcuts to make the test script fail, but instead print a message indicating which check failed. This information is currently lost, and the script just "exits with 1"...
| fi | ||
|
|
||
| if jq -e '.blueprint.customizations.kernel.name' "${config}"; then | ||
| [[ "$(uname -s)" == "$(jq -r '.blueprint.customizations.kernel.name' "${config}")" ]] |
There was a problem hiding this comment.
This is probably not the correct approach.
[root@vm-10-0-184-196 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.7 Beta (Plow)
[root@vm-10-0-184-196 ~]# uname -s
LinuxThere was a problem hiding this comment.
yeah I don't know what I was thinking. It turns out this is pretty tricky to check. I gave it a shot though.
3654817 to
43c9a46
Compare
|
Ideally, a failed check would not |
|
Ok, now we're seeing a failure that I was sort of expecting. The hostname doesn't match because cloud-init (I think it's cloud-init?) sets it again on boot. I think this is a good opportunity to re-examine this. Either find the best way to stop this from happening if and when a user sets a hostname on an AMI build, or inform users (through docs) that hostnames are overridden when launching on EC2 with default settings and how to disable it on the platform. (Note: there's a bit of speculation about the inner workings here on my part; I'd like to dig deeper at some point) |
@lucasgarfield and I discussed this in our chat; because I found out the same in #1432 where I do print the values if things failed :) |
|
Obsoleted by #1432. If you can drop the hostname check from this one then we can merge the kernel-change. |
|
Haven't forgotten about this but I'll get back to it when I have time, unless someone finds some time to clean it up and only do the kernel name test. |
43c9a46 to
a538ba0
Compare
achilleas-k
left a comment
There was a problem hiding this comment.
Thanks for fixing this up, @mvo5. Sadly, I can't approve :)
a538ba0 to
5967f06
Compare
|
Rebased and fixed conflicts. |
4327400 to
d5e6463
Compare
|
Some tests are failing rather consistently on the boot check. I don't think it's an issue with this change, unless |
|
This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days. |
d5e6463 to
f193c70
Compare
|
This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days. |
4439844 to
8772059
Compare
|
This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days. |
|
This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days. |
This enables the kernel name customization test since we run base-host-check on AMI builds and all-customizations is used with AMIs.
8772059 to
2a8631a
Compare
|
This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days. |
|
This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days. |
|
This PR was closed because it has been stalled for 30+7 days with no activity. |
Pull request was closed
test: kernel name in base-host-check
test: add the kernel.name customization to all-customizations
This enables the kernel name customization test since we run
base-host-check on AMI builds and all-customizations is used with AMIs.