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

Sync varstore certificates in XAPI with those on disks #4659

Merged

Commits on Apr 7, 2022

  1. Sync varstore certificates in XAPI with those on disks

    - `Pool.set_uefi_certificates` is implemented and writes the certificates
    on all its hosts' disks
    
    - `Host.set_uefi_certificates` is now deprecated and transmit the call to the pool method
    - `Host.uefi_certificates` is deprecated as well as it's getter, the value is not updated.
    
    - On XAPI startup certificates stored in XAPI's `Pool.uefi_certificates`
    are written on disks
    
    - When a host joins the pool's certificates are written on its disk.
    
    This means:
    	- At every XAPI startup the certificates in host disks are synced with
    XAPI's `Pool.uefi_certificates`
    
    	- When `Pool.set_uefi_certificates` is called all hosts are synced on their disks
    with XAPI's `Pool.uefi_certificates`.
    
    Also: `Host.set_uefi_certificates` calls should be replaced by `Pool.set_uefi_certificates`, this requires changes
    in external libs (varstored, uefistored, etc) to set the pool's certificates: call `Pool.set_uefi_certificates`.
    
    See: xapi-project#4647
    
    Signed-off-by: BenjiReis <benjamin.reis@vates.fr>
    benjamreis committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    53d656b View commit details
    Browse the repository at this point in the history