-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add Barbican #562
Add Barbican #562
Conversation
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/96f5fb72a9f441278f1b294d30bce329 ❌ openstack-k8s-operators-content-provider FAILURE in 5m 56s |
/retest |
0390de0
to
26761a2
Compare
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/737d77657c894f67b344e5f3aa9a5ab5 ❌ openstack-k8s-operators-content-provider NODE_FAILURE Node request 200-0006650721 failed in 0s |
/retest |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/61b5da1db41b4818a27c4ad7a7058186 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 24m 50s |
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.
One question here and for all the other samples: do we intend to have Barbican enabled by default? I'm just asking because I don't know one way or the other. Right now it's enabled.
One thing I've noticed while trying this out is that the I see that other operators have the I think this is the cause of the CI failure too:
|
I did some more testing. It seems like the struct definition as-is is actually fine. Something else must be causing CI to fail. |
recheck |
26761a2
to
6e5600f
Compare
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/463c81acca384963926bf21b7d4e3de2 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 05m 31s |
6e5600f
to
ebc98c8
Compare
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/9f9194d5630b407886782401fd61288f ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 24m 53s |
@@ -159,6 +159,17 @@ spec: | |||
replicas: 0 # backend needs to be configured | |||
designateBackendbind9: | |||
replicas: 0 # backend needs to be configured | |||
barbican: | |||
enabled: false |
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.
The current samples have Barbican enabled by default, since they don't have enabled: false
in the YAML. So we need to reflect that here. Also, since Barbican is enabled by default, its condition entry needs to be added to the status.conditions
list after the first entry in the list (the one with type: Ready
):
- message: OpenStackControlPlane Barbican completed
reason: Ready
status: "True"
type: OpenStackControlPlaneBarbicanReady
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.
It also needs an entry for the Barbican "expose" condition:
- message: OpenStackControlPlane barbican service exposed
reason: Ready
status: "True"
type: OpenStackControlPlaneExposeBarbicanReady
That should go after the OpenStackControlPlaneClientReady
condition.
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.
Yes, per JP Jung, the current plan is to always enable Barbican. This also means other projects that integrate with Barbican will be set up to use it by default. e.g. encrypted volumes will store keys there, etc.
@@ -155,6 +155,10 @@ func (r *OpenStackControlPlane) checkDepsEnabled(name string) string { | |||
if !((r.Spec.Mariadb.Enabled || r.Spec.Galera.Enabled) && r.Spec.Memcached.Enabled && r.Spec.Keystone.Enabled) { | |||
reqs = "MariaDB or Galera, Memcached, Keystone" | |||
} | |||
case "Barbican": | |||
if !((r.Spec.Mariadb.Enabled || r.Spec.Galera.Enabled) && r.Spec.Memcached.Enabled && r.Spec.Keystone.Enabled) { |
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.
IIRC, Barbican does not depend or use Memcached in any way.
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.
fixed
b02981d
to
83ceac6
Compare
/retest |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/f2cd794f02964a72aec1d93f7c3a4913 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 48m 05s |
1e95c37
to
3d630a3
Compare
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/70dd054cee1446b1862c2aac14a77820 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 36m 09s |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/eb80594def0445c5a9c0c03889d478a8 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 40m 50s |
recheck
|
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/ac14f2e0cac9465498c8aeb7338339d3 ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 04m 55s |
Between the last two Zuul attempts, we have full success for the 4 jobs there. Let's try one more recheck and then we can override if it flakes-out again. |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/a277a3a34c62429fbbe1f69e60f8714c ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 41m 15s |
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: abays, vakwetu 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 |
The Zuul jobs have all passed independently over several attempts, so I think we're good there despite the hiccups. I will override by the end of the day unless another reviewer requests changes to the PR. |
This adds the barbican section to the nova.conf template so nova can access the barbican. Depends-On: openstack-k8s-operators/openstack-operator#562
/override rdoproject.org/github-check |
I try to deploy this from a local build and I see that for me barbican is disabled by default even though the code suggests it should be enabled by default. |
@abays: Overrode contexts on behalf of abays: rdoproject.org/github-check 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/test-infra repository. |
/hold |
I used the wrong sample and updating it from the sample from this PR did not work. But recreating the OpenStackControlPlane from the sample from this PR works. Sorry for the noise |
/unhold |
b296006
into
openstack-k8s-operators:main
This adds the barbican section to the nova.conf template so nova can access the barbican. Depends-On: openstack-k8s-operators/openstack-operator#562
This adds the barbican section to the nova.conf template so nova can access the barbican. Depends-On: openstack-k8s-operators/openstack-operator#562
This adds the barbican section to the nova.conf template so nova can access the barbican. Depends-On: openstack-k8s-operators/openstack-operator#562
This commit adds the barbican operator to the openstack-operator.