Closed HuijingHei closed 1 year ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: HuijingHei Once this PR has been reviewed and has the lgtm label, please assign dorileo for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Hi @HuijingHei. Thanks for your PR.
I'm waiting for a GoogleCloudPlatform member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
/holdon
The warning is harmless and I do not want it to delay the merge process of https://github.com/GoogleCloudPlatform/guest-configs/pull/49, but will rebase https://github.com/GoogleCloudPlatform/guest-configs/pull/49 when it is merged.
Do more testing:
]# nvme_json="$(/usr/sbin/nvme id-ns -b /dev/nvme0n1 | cut -b 384- | tr -d '\0')"
]# echo $nvme_json
{"device_name":"persistent-disk-0","disk_type":"PERSISTENT"}
]# device_name="$(echo "$nvme_json" | grep device_name | sed -e 's/.*"device_name":[ \t]*"\([a-zA-Z0-9_-]\+\)".*/\1/')"
]# echo $device_name
persistent-disk-0
@HuijingHei , as you mentioned, this warning
message is harmless. It doesn't affect a status code (which is still 0 when other conditions are fine). More over, there was this warning message a long time before.
From the other perspective, having one more external tool in a pipeline brings more challenges to support it existence in every distribution we officially support.
I don't see any reason for removing the warning at the moment, and especially, by introducing one more additional tool.
It could be removed, for example, using only Bash code with no external tools, like this:
read nvme_json < <(/usr/sbin/nvme id-ns -b /dev/nvme0n1 | cut -b 384-)
There is a code conflict anyway, I'll put on hold, until new circumstances come up.
/hold
@vorakl thanks for your detail info, I am OK to keep as it is. Feel free to close this.
This is to remove safe warning when running
google_nvme_id
:Refer to https://bugzilla.redhat.com/show_bug.cgi?id=1473642