Copy third party orchestration product's certificate into VIO manager.
Symptoms:
2023-09-11 06:50:35.610 8 WARNING glance.common.scripts.image_import.main [-] Task ########-####-####-####-############ failed with exception HTTPSConnectionPool(host='xyx.vio.local', port=443): Max retries exceeded with url: /test/images/download/########-####-####-####-############(Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))): requests.exceptions.SSLError: HTTPSConnectionPool(host='xyz.vio.local', port=443): Max retries exceeded with url: /test/images/download/########-####-####-####-############ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
Uploading Images to Glance repository fail with SSL error.
7.1, 7.2
Addressed in 7.3
vim /tmp/glance_cert.pem
osctl create secret generic glance-cert-secret --from-file=/tmp/glance_cert.pem
osctl edit deployment glance-api
==================================================================================
apiVersion: apps/v1
kind: Deployment
metadata:
name: glance
spec:
replicas: 2
template:
...
spec:
containers:
- name: glance-api
....
volumeMounts:
- name: glance-cert-volume
mountPath: /etc/ssl/certs/glance-cert.pem
readOnly: true
subPath: glance-cert.pem
volumes:
- name: glance-cert-volume
secret:
secretName: glance-cert-secret
==================================================================================
osctl exec -it glance-api-xxx bash
osctl edit configmap glance-bin
if [ -f /etc/ssl/certs/vcenter.pem ] || [ -f /etc/ssl/certs/<your_pem_file_name_in_glance_api_pod>.pem ]; then
sudo /bin/rehash_ca_certificates.sh
fi