-
Notifications
You must be signed in to change notification settings - Fork 82
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
Glance DCN: Remove unnecessary configuration and default to az0 #427
Glance DCN: Remove unnecessary configuration and default to az0 #427
Conversation
- Remove the `customServiceConfig` from the Glance template since it's different for each Glance API pod. - Remove undefined backends from `enabled_backends` in az1 and az2 - Call the glance backend at AZ0 `az0` instead of `default`. Signed-off-by: John Fulton <[email protected]>
Before this change the Glance section of the OpenStackControlPlane looked like this: glance:
apiOverrides:
default:
route:
haproxy.router.openshift.io/timeout: 60s
template:
customServiceConfig: |
[DEFAULT]
enabled_backends = default_backend:rbd
[glance_store]
default_backend = default_backend
[default_backend]
rbd_store_ceph_conf = /etc/ceph/az0.conf
store_description = "RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
databaseInstance: openstack
glanceAPIs:
az1:
customServiceConfig: |
[DEFAULT]
enabled_import_methods = [web-download,copy-image,glance-direct]
enabled_backends = az0:rbd,az1:rbd,az2:rbd
[glance_store]
default_backend = az1
[az1]
rbd_store_ceph_conf = /etc/ceph/az1.conf
store_description = "az1 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az0]
rbd_store_ceph_conf = /etc/ceph/az0.conf
store_description = "az0 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
networkAttachments:
- storage
override:
service:
internal:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.81
spec:
type: LoadBalancer
replicas: 3
type: edge
az2:
customServiceConfig: |
[DEFAULT]
enabled_import_methods = [web-download,copy-image,glance-direct]
enabled_backends = az0:rbd,az1:rbd,az2:rbd
[glance_store]
default_backend = az2
[az2]
rbd_store_ceph_conf = /etc/ceph/az2.conf
store_description = "az2 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az0]
rbd_store_ceph_conf = /etc/ceph/az0.conf
store_description = "az0 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
networkAttachments:
- storage
override:
service:
internal:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.82
spec:
type: LoadBalancer
replicas: 3
type: edge
default:
customServiceConfig: |
[DEFAULT]
enabled_import_methods = [web-download,copy-image,glance-direct]
enabled_backends = az0:rbd,az1:rbd,az2:rbd
[glance_store]
default_backend = az0
[az0]
rbd_store_ceph_conf = /etc/ceph/az0.conf
store_description = "az0 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az1]
rbd_store_ceph_conf = /etc/ceph/az1.conf
store_description = "az1 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az2]
rbd_store_ceph_conf = /etc/ceph/az2.conf
store_description = "az2 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
networkAttachments:
- storage
override:
service:
internal:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.80
spec:
type: LoadBalancer
replicas: 3
type: split
preserveJobs: false
storage:
storageClass: lvms-local-storage
storageRequest: 10G
uniquePodNames: true Now it looks like this: glance:
apiOverrides:
default:
route:
haproxy.router.openshift.io/timeout: 60s
template:
databaseInstance: openstack
glanceAPIs:
az0:
customServiceConfig: |
[DEFAULT]
enabled_import_methods = [web-download,copy-image,glance-direct]
enabled_backends = az0:rbd,az1:rbd,az2:rbd
[glance_store]
default_backend = az0
[az0]
rbd_store_ceph_conf = /etc/ceph/az0.conf
store_description = "az0 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az1]
rbd_store_ceph_conf = /etc/ceph/az1.conf
store_description = "az1 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az2]
rbd_store_ceph_conf = /etc/ceph/az2.conf
store_description = "az2 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
networkAttachments:
- storage
override:
service:
internal:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.80
spec:
type: LoadBalancer
replicas: 3
type: split
az1:
customServiceConfig: |
[DEFAULT]
enabled_import_methods = [web-download,copy-image,glance-direct]
enabled_backends = az0:rbd,az1:rbd
[glance_store]
default_backend = az1
[az1]
rbd_store_ceph_conf = /etc/ceph/az1.conf
store_description = "az1 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az0]
rbd_store_ceph_conf = /etc/ceph/az0.conf
store_description = "az0 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
networkAttachments:
- storage
override:
service:
internal:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.81
spec:
type: LoadBalancer
replicas: 3
type: edge
az2:
customServiceConfig: |
[DEFAULT]
enabled_import_methods = [web-download,copy-image,glance-direct]
enabled_backends = az0:rbd,az2:rbd
[glance_store]
default_backend = az2
[az2]
rbd_store_ceph_conf = /etc/ceph/az2.conf
store_description = "az2 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
[az0]
rbd_store_ceph_conf = /etc/ceph/az0.conf
store_description = "az0 RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
networkAttachments:
- storage
override:
service:
internal:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.82
spec:
type: LoadBalancer
replicas: 3
type: edge
keystoneEndpoint: az0
preserveJobs: false
storage:
storageClass: lvms-local-storage
storageRequest: 10G
uniquePodNames: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fmount, fultonj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Given we already propagate the same secret via |
Build succeeded (gate pipeline). ✔️ noop SUCCESS in 0s |
16541a1
into
openstack-k8s-operators:main
/cherrypick 18.0-fr1 |
@fultonj: #427 failed to apply on top of branch "18.0-fr1":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/cherrypick 18.0-fr1 |
@fultonj: new pull request created: #428 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
customServiceConfig
from the Glance template since it's different for each Glance API pod.enabled_backends
in az1 and az2az0
instead ofdefault
.