Skip to content
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

agent: Retrieve system-uuid #89

Merged
merged 1 commit into from
Nov 29, 2024
Merged

agent: Retrieve system-uuid #89

merged 1 commit into from
Nov 29, 2024

Conversation

tupyy
Copy link
Collaborator

@tupyy tupyy commented Nov 28, 2024

This PR adds a service to agent image that is retrieving the system-uuid and write it into /var/home/core/agent_id. Agent reads this file at start up.

Signed-off-by: Cosmin Tupangiu [email protected]

@tupyy tupyy requested a review from machacekondra November 28, 2024 16:18
@tupyy
Copy link
Collaborator Author

tupyy commented Nov 28, 2024

@machacekondra, I haven't verified it on a real image yet. I put this for visibility for now.

}

// look for the file in $HOME
homedir, err := os.UserHomeDir()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are in container here, so we don't have the file there.

@machacekondra
Copy link
Collaborator

@machacekondra, I haven't verified it on a real image yet. I put this for visibility for now.

Yep, for some reason the file is not created as palnner-service won't start.

2024-11-28T16:30:11.5957856Z   Nov 28 16:28:36 localhost.localdomain systemd[1223]: planner-agent.service: start-pre operation timed out. Terminating.

I don't see any log relevant to agent_id service

@tupyy
Copy link
Collaborator Author

tupyy commented Nov 29, 2024

@machacekondra, I haven't verified it on a real image yet. I put this for visibility for now.

Yep, for some reason the file is not created as palnner-service won't start.

2024-11-28T16:30:11.5957856Z   Nov 28 16:28:36 localhost.localdomain systemd[1223]: planner-agent.service: start-pre operation timed out. Terminating.

I don't see any log relevant to agent_id service

dmidecode needs to be installed first.

This commit adds a service to agent image that is retrieving the
system-uuid and write it into `/var/home/core/agent_id`.
Agent reads this file at start up.

Signed-off-by: Cosmin Tupangiu <[email protected]>
@machacekondra machacekondra merged commit 7cebd75 into kubev2v:main Nov 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants