-
Notifications
You must be signed in to change notification settings - Fork 26
Replace livemigration user with libvirtadmin user #851
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
Conversation
663bd63 to
4bef92f
Compare
|
This still needs to be tested on Yocto cluster |
ba41c6f to
1c5db38
Compare
cf3f3c8 to
84bdc9b
Compare
|
I'm rebasing on newer version of main, since ansible2.16 changed a lot of things and the debian CI should now be debian13. |
84bdc9b to
bd6b540
Compare
This role copies the root ssh key between the cluster machines. It was previously used for the console_vm script (now vm-mgr console command) Administration access should not be given from one cluster machine to another. If a machine is compromised, then they all are. The livemigration user is configured to - have SSH access to all the hypervisor in the cluster - have access to the libvirt socket. It should be used to access the console This commit then removes the configure_admin_user role. Note: The livemigration user is renamed to libvirtadmin in the next commits. Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
This user is not used. Also remove associated tests Also remove admin user from the libvirt group Only the livemigration user should have access to the libvirt socket. If necessary, an additional user could be added to the group later for debug only. In any case, it should not be the default SEAPATH behavior. Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
Force the creation of a libvirtadmin user that will be used for livemigration by default /!\ Important notice /!\ The creation of this user is not conditionnal anymore It is assumed that for each SEAPATH cluster, the user will be created. The tests mimics this behavior This was done to harmonize Debian flavor with Yocto Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
bd6b540 to
9f733e9
Compare
Thanks for notifying me. But that's better to let me do the rebase in that case, because I will push changes to correct your comments. ( Just for information, the CI did pass on Debian 13 the first time. The rebase problem was only the commit of #855 ) |
|
ok, weird because I had the impression that the CI ran on debian12. |
Ok, may be I missed something |
|
ok ci is fine. |
Includes the use of libvirtadmin as default user for VM console access. Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
The default state should be for all users in the libvirt group to have access to the Libvirt socket, as stated in the documentation. Also correct a bug in the associated playbook: the distro detection needs to be called before the role. Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
9f733e9 to
e5801f2
Compare
|
@insatomcat can you approve that ? |
livemigrationuser tolibvirtadminlibvirtadminuser (not conditional anymore)libvirtuser on DebianCloses #846
API break:
libvirtadminuser is always created and always calledlibvirtadminlivemigration_usercan still be chosen when deploying VMs (default tolibvirtadmin)