-
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
Bug: fix the aa-kbc-params error in fedora #1853
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Distribution=fedora | |
|
||
[Distribution] | ||
Distribution=fedora | ||
Release=38 | ||
Release=39 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we want to bump fedora, can we do this in a separate PR? |
||
|
||
[Content] | ||
CleanPackageMetadata=true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[Unit] | ||
Description=Kata Agent | ||
BindsTo=netns@podns.service | ||
Wants=process-user-data.service | ||
After=netns@podns.service process-user-data.service | ||
Wants=process-user-data-update.service | ||
After=netns@podns.service process-user-data-update.service | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. regarding the idea discussed in #1852 (comment), could we instead change the logic to provision the |
||
|
||
[Service] | ||
Environment=CDH_CONFIG_PATH=/run/confidential-containers/cdh.toml | ||
ExecStartPre=mkdir -p /run/kata-containers | ||
ExecStart=/usr/local/bin/kata-agent --config /etc/agent-config.toml | ||
ExecStart=/usr/local/bin/kata-agent --config /run/peerpod/agent-config.toml | ||
ExecStartPre=-umount /sys/fs/cgroup/misc | ||
ExecStopPost=/usr/local/bin/kata-agent-clean --config /etc/agent-config.toml | ||
ExecStopPost=/usr/local/bin/kata-agent-clean --config /run/peerpod/agent-config.toml | ||
# Now specified in the agent-config.toml Environment="KATA_AGENT_SERVER_ADDR=unix:///run/kata-containers/agent.sock" | ||
SyslogIdentifier=kata-agent | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../process-user-data-provision.service |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../process-user-data-update.service |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# One-shot systemd service for running the process-user-data binary | ||
# It must run before kata-agent.service | ||
|
||
[Unit] | ||
Description=Process user data and provision | ||
After=network.target | ||
DefaultDependencies=no | ||
|
||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/local/bin/process-user-data provision-files | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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.
the defaultAgentConfigPath is changed here but
src/cloud-api-adaptor/podvm/files/etc/systemd/system/kata-agent.service
didn't use the new changed 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.
@liudalibj thanks for finding it, I think that's another reason why it works on ubuntu but not on fedora, fedora altered the path to
/run/peerpod/agent-config.toml
here https://github.com/confidential-containers/cloud-api-adaptor/blob/main/src/cloud-api-adaptor/podvm-mkosi/mkosi.skeleton/usr/lib/systemd/system/kata-agent.service.d/10-override.confThere 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 guess we should change to use
/run/peerpod/agent-config.toml
on ubuntu also.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'll give a try after update the 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.
Agree, so for ubuntu this file need be updated in this pr,
https://github.com/confidential-containers/cloud-api-adaptor/pull/1853/files#diff-7a67c51609d012acb98c931da3f33e5494e6d5722e99cd4d9e294ebcaf15b8faL10