-
Notifications
You must be signed in to change notification settings - Fork 90
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
aa-kbc-params is not customized in agent-config.toml for libvirt provider in fedora #1852
Comments
Fixes: confidential-containers#1852 Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
Fixes: confidential-containers#1852 Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
Fixes: confidential-containers#1852 Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
Fixes: confidential-containers#1852 Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
Hey @huoqifeng - for the cdh configuration we also need |
CDH configure is OK on Fedora. |
Right, maybe we should handle agent-config.toml similar as cdh.toml and remove the algorithm for its |
Fixes: confidential-containers#1852 Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
@stevenhorsman @mkulke @bpradipt @liudalibj We can handle agent-config.toml just like cdh.toml here https://github.com/confidential-containers/cloud-api-adaptor/blob/main/src/cloud-api-adaptor/pkg/adaptor/cloud/cloud.go#L258-L282 via |
in principle yes, if we assume the agent-config will be static and the same for all cases, we can generate it in code and don't attempt to update the file, that would be the cleaner approach. |
it will also be useful if we want to provision a registry auth file via user-data, we could set the required kata-agent config option in the same file. |
When creating libvirt PeerPod based on the fedora image on a s390x machine, which is built from mkosi.
The field "aa-kbc-params" in agent-config.toml under /run/peerpod was not customized correctly.
Which should be caused by the process-user-data. Logs looks like:
After disable the "ExecStartPre" https://github.com/confidential-containers/cloud-api-adaptor/blob/main/src/cloud-api-adaptor/podvm/files/etc/systemd/system/process-user-data.service#L12
Error like this:
The problem is on fedora, the failure in
ExecStartPre
inprocess-user-data
causesExecStart
skipped because libvirt provider does not implement the provision API.Option 1
I tried and broken it into 2 services.
process-user-data-provision
andprocess-user-data-update
whileprocess-user-data-update
depends oncloud-final.service
because libvirt and other providers like ibmcloud usescloud-init
to provision user-data.It works for libvirt provider on ubuntu because:
ExecStartPre
inprocess-user-data
won't causeExecStart
skip on ubuntu/etc/agent-config.toml
rather than/run/peerpod/ agent-config.toml
on ubuntuOption 2:
We can handle agent-config.toml just like cdh.toml here https://github.com/confidential-containers/cloud-api-adaptor/blob/main/src/cloud-api-adaptor/pkg/adaptor/cloud/cloud.go#L258-L282 via cloudConfig rather than update it in
process-user-data
The text was updated successfully, but these errors were encountered: