Update nova certificates

Update nova certificatesΒΆ

This section describes how to update the Nova NoVNCProxy certificates managed by salt-minion.

To update the Nova NoVNCProxy certificates managed by salt-minion:

  1. Log in to the Salt Master node.

  2. Create certificate backups for all compute nodes:

    salt '*ctl*' cmd.run 'cp -pr /etc/pki/nova-novncproxy/client-cert.pem /etc/pki/nova-novncproxy/client-cert.pem_$(date +"%Y_%m_%d").bak'
    salt '*ctl*' cmd.run 'cp -pr /etc/pki/nova-novncproxy/server-cert.pem /etc/pki/nova-novncproxy/server-cert.pem_$(date +"%Y_%m_%d").bak'
    
  3. Remove your current certificates from each compute node:

    salt '*ctl*' cmd.run 'rm -rf /etc/pki/nova-novncproxy/client-cert.pem /etc/pki/nova-novncproxy/server-cert.pem'
    
  4. Apply the salt.minion.grains state for all compute nodes to retrieve the CA certificate from Salt Master:

    salt '*ctl*' state.sls salt.minion.grains test=true -b 1
    salt '*ctl*' state.sls salt.minion.grains -b 1
    
  5. Apply the salt.minion.cert state on all compute nodes:

    salt '*ctl*' state.sls salt.minion.cert test=true -b 2
    salt '*ctl*' state.sls salt.minion.cert -b 2
    
  6. Restart the nova-novncproxy service:

    salt '*ctl*' cmd.run 'service nova-novncproxy restart' -b 1