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

Cloned VMs in VMware have all the same uuid #223

Closed
GER-Space opened this issue Apr 27, 2023 · 2 comments
Closed

Cloned VMs in VMware have all the same uuid #223

GER-Space opened this issue Apr 27, 2023 · 2 comments

Comments

@GER-Space
Copy link

the UUID is not dynamically generated at the first startup of the agents. --> All agents on cloned VMs under vmware share the same uuid and mess up trento

setting the undocumented force-agent-id: <some-new-id> in /etc/trento/agent.yaml can solve the problem, but either it needs to be documented or a workaround needs to be found.

@GER-Space GER-Space changed the title Cloned VMs in VMware have shared uuid Cloned VMs in VMware have all the same uuid Apr 27, 2023
@stefanotorresi
Copy link
Member

@GER-Space thanks for pointing out your use case.

The flag you're mentioning is in fact documented in the readme but it already states that it should not be used in production environments, where relying on automatic generation of the system identifier by systemd is way safer.

We rely on /etc/machine-id to be unique to generate the Trento Agent UUID so, as you're cloning VMs, you need to ensure you're not violating a fundamental assumption Trento and other system tools might rely upon, which is that that file contains an actually unique host identifier.
You can refer to upstream systemd documentation for further insights on how to achieve this: https://www.freedesktop.org/software/systemd/man/machine-id.html

@stefanotorresi
Copy link
Member

We'll consider adding a pre-flight check to prevent registration from happening in the first place in the case we find and existing agent id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants