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

Enable caching using memcached #286

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

ASBishop
Copy link
Contributor

@ASBishop ASBishop commented Oct 25, 2023

Jira: OSP-26501

@ASBishop
Copy link
Contributor Author

/hold

I need to verify something

Copy link
Contributor

@Akrog Akrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good, but it is making the deployment of memcached a hard requirement.
I would prefer an approach that would make it optional, for example when the memcachedInstance is set to an empty string the enabled in the global-defaults is set to false.

@@ -780,6 +851,7 @@ func (r *CinderReconciler) generateServiceConfigs(
instance *cinderv1beta1.Cinder,
envVars *map[string]env.Setter,
serviceLabels map[string]string,
mc *memcachedv1.Memcached,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Wouldn't it make it more readable using memcached instead of mc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

Copy link
Contributor Author

@ASBishop ASBishop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I don't know exactly where the discussion took place, my understanding is memcached is a required component (just as it is in tripleo). I recall seeing (but cannot find) a comment in another operator's PR that it is not necessary, at least at this juncture, to provide support for conditionally configuring memcached. See also https://issues.redhat.com/browse/OSP-26273

@@ -30,6 +30,11 @@ osapi_volume_workers = 4
control_exchange = openstack
api_paste_config = /etc/cinder/api-paste.ini

[cache]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cinder and other storage services do not configure the [cache] section in tripleo deployments. The initial goal is feature parity, so I'll remove this section. Whether it actually should be present can be discussed as a future enhancement.

@@ -780,6 +851,7 @@ func (r *CinderReconciler) generateServiceConfigs(
instance *cinderv1beta1.Cinder,
envVars *map[string]env.Setter,
serviceLabels map[string]string,
mc *memcachedv1.Memcached,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

@ASBishop
Copy link
Contributor Author

/unhold

@ASBishop
Copy link
Contributor Author

/retest

@ASBishop
Copy link
Contributor Author

ASBishop commented Nov 1, 2023

/retest

'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)'

@ASBishop
Copy link
Contributor Author

ASBishop commented Nov 1, 2023

/unhold

Copy link
Contributor

@Akrog Akrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 6, 2023
Copy link
Contributor

openshift-ci bot commented Nov 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Akrog, ASBishop

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot merged commit 9495e1f into openstack-k8s-operators:main Nov 6, 2023
1 check passed
@ASBishop ASBishop deleted the memcached branch November 6, 2023 19:30
fultonj added a commit to fultonj/glance-operator that referenced this pull request Feb 25, 2024
fultonj added a commit to fultonj/glance-operator that referenced this pull request Feb 25, 2024
ASBishop pushed a commit to ASBishop/cinder-operator that referenced this pull request Mar 11, 2024
Add openstack-baremetal-operator to openstack-operator bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants