-
Notifications
You must be signed in to change notification settings - Fork 285
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
Inconsistent generation of stunnel certificates on upgrade #5865
Comments
If I understand correctly, the second case is a direct upgrade from 7.5 to 8.3. This was never tested, so I'm not surprised it's broken in strange ways. |
right |
It likely that in above tests the host that got OTOH I got several cases of a 8.2.1 install not getting any of those dirs created after update to 8.3. What component should be responsible for getting this straight when upgrading from 8.2? |
gencert.service should generate them, if they don't exist. This is done on host startup, through the systemd dependency chain xapi -> stunnel -> gencert |
I have noticed that
|
This looks like a bug in the distribution code, which should rename the certificate at the end:
let distribute_new_host_cert ~__context ~host ~content =
let hosts = Db.Host.get_all ~__context in
let uuid = Db.Host.get_uuid ~__context ~self:host in
let file =
WireProtocol.{filename= Printf.sprintf "%s.new.pem" uuid; content}
in
let job rpc session_id host =
Worker.remote_write_certs_fs HostPoolCertificate Merge [file] host rpc
session_id
in
Helpers.call_api_functions ~__context @@ fun rpc session_id ->
List.iter (fun host -> job rpc session_id host) hosts ;
List.iter (fun host -> Worker.remote_regen_bundle host rpc session_id) hosts |
Even if there is a bug there, that does not explain (even more so, in fact) how such certs are in fact generated without that |
It also seems the As long as those bundles are not created, |
Upgrading to XCP-ng 8.3.0-rc1 (i.e. not far from current XS8, featuring XAPI 24.16.0) from various older versions show various behaviours, which result in missing stunnel certificates, which in turn cause at least
pool-join
to a pool missing such certsTested combinations:
/etc/stunnel/certs/
and/etc/stunnel/certs-pool/
are generated/etc/stunnel/certs/
is generated, but/etc/stunnel/certs-pool/
is notThe text was updated successfully, but these errors were encountered: