Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Validating dataplane/controlplane TLS consistency #821

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jpodivin
Copy link
Contributor

@jpodivin jpodivin commented Apr 12, 2024

Webhook verifies that TLS settings for nodeset are consistent with those of existing control plane, if there is one.

adding dependency on openstack-operator

New field for nodeset specifying control plane name.

Copy link
Contributor

openshift-ci bot commented Apr 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jpodivin

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

@jpodivin jpodivin requested a review from vakwetu April 12, 2024 09:40
@jpodivin
Copy link
Contributor Author

failed to wait for the created cluster claim to become ready: timed out waiting for the condition

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/46cf76bba926464595a474d8202ce862

openstack-k8s-operators-content-provider FAILURE in 9m 03s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ dataplane-operator-docs-preview SUCCESS in 2m 38s

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/e662a0db9d064cb09ef911ca2460d49a

openstack-k8s-operators-content-provider FAILURE in 10m 12s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ dataplane-operator-docs-preview SUCCESS in 2m 50s

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/f89773911d694365806687351a5fd6e1

openstack-k8s-operators-content-provider FAILURE in 9m 14s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ dataplane-operator-docs-preview SUCCESS in 2m 22s

@jpodivin jpodivin force-pushed the tlsplanes branch 2 times, most recently from b343ddf to b7eacad Compare April 16, 2024 11:19
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/523fdce00e0c4abea71540316df2dc10

openstack-k8s-operators-content-provider FAILURE in 8m 44s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
dataplane-operator-docs-preview POST_FAILURE in 2m 24s

@jpodivin jpodivin force-pushed the tlsplanes branch 2 times, most recently from 7a1f52d to 4055dc7 Compare April 16, 2024 14:19
@jpodivin jpodivin changed the title Introducing webhook validating dataplane/controlplane TLS consistency Validating dataplane/controlplane TLS consistency Apr 16, 2024
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/28b5a62eecff4b2c8d904deb817f25b7

openstack-k8s-operators-content-provider FAILURE in 8m 57s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
dataplane-operator-docs-preview POST_FAILURE in 2m 29s

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/01a6ba7ae47e47a98f1f339c0fce60a4

openstack-k8s-operators-content-provider FAILURE in 9m 02s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
dataplane-operator-docs-preview POST_FAILURE in 2m 25s

@jpodivin
Copy link
Contributor Author

There seems to be an issue with openstack-operator dependency forcing downgrade in the lib-common dependency.
Until they are sync this PR is on hold.

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/f87dc5332f7c48889c00e186ff1b378a

openstack-k8s-operators-content-provider FAILURE in 8m 41s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
dataplane-operator-docs-preview POST_FAILURE in 1m 53s

if err == nil {
err = r.TLSMatch(controlPlane)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

In the case where the control plane is not found, we should requeue and wait, right?

Copy link
Contributor Author

@jpodivin jpodivin Apr 18, 2024

Choose a reason for hiding this comment

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

Based on your comments in JIRA I though we want to ignore this case and continue uninterrupted?

If only one exists, use that one. If more than one exists, fail with message. If not control plane exists, do nothing.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah good point. I forgot about the no control plane case. @slagle - this is a legit case, right?

} else if len(controlPlanes.Items) == 1 {
controlPlane = controlPlanes.Items[0]
err = r.TLSMatch(controlPlane)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, if there is no control plane , we should requeue and wait, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/1879225db1af40288e2bfd9a31e4c77a

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 22m 26s
podified-multinode-edpm-deployment-crc FAILURE in 1h 39m 50s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 33m 19s
dataplane-operator-docs-preview POST_FAILURE in 2m 23s

@jpodivin
Copy link
Contributor Author

/recheck

multiple timeouts

@jpodivin
Copy link
Contributor Author

/recheck

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/9b4ca551f170495c81fafb60d5d2b503

✔️ openstack-k8s-operators-content-provider SUCCESS in 45m 39s
podified-multinode-edpm-deployment-crc FAILURE in 20m 27s
cifmw-crc-podified-edpm-baremetal FAILURE in 18m 47s

@jpodivin
Copy link
Contributor Author

/hold

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/d2aa8a93a5024bb78c34186aab290d19

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 10m 58s
podified-multinode-edpm-deployment-crc FAILURE in 1h 44m 56s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 28m 56s

@jpodivin jpodivin force-pushed the tlsplanes branch 2 times, most recently from ec726bc to 485c5fe Compare June 7, 2024 08:59
@jpodivin
Copy link
Contributor Author

jpodivin commented Jun 7, 2024

/retest goproxy issues.

Copy link
Contributor

openshift-ci bot commented Jun 7, 2024

@jpodivin: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

  • /test dataplane-operator-build-deploy-kuttl
  • /test functional
  • /test images
  • /test precommit-check

The following commands are available to trigger optional jobs:

  • /test dataplane-operator-build-deploy

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-openstack-k8s-operators-dataplane-operator-main-dataplane-operator-build-deploy-kuttl
  • pull-ci-openstack-k8s-operators-dataplane-operator-main-functional
  • pull-ci-openstack-k8s-operators-dataplane-operator-main-images
  • pull-ci-openstack-k8s-operators-dataplane-operator-main-precommit-check

In response to this:

/retest goproxy issues.

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.

@jpodivin
Copy link
Contributor Author

jpodivin commented Jun 7, 2024

/retest

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/4b1f24865f914b89b2aa7904c8f79cb8

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 55m 30s
podified-multinode-edpm-deployment-crc FAILURE in 1h 40m 49s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 37m 41s

@jpodivin
Copy link
Contributor Author

/retest

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/5289264a1ff44c37b14a0b48c5fbf28b

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 29m 42s
podified-multinode-edpm-deployment-crc FAILURE in 1h 39m 36s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 33m 05s

@jpodivin jpodivin force-pushed the tlsplanes branch 5 times, most recently from 9366612 to 3fee74c Compare June 12, 2024 10:25
Copy link
Contributor

openshift-ci bot commented Jun 12, 2024

@jpodivin: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/dataplane-operator-build-deploy-kuttl 3fee74c link true /test dataplane-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/bbb38d717138435aa9cf6d7b7e605444

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 44m 19s
podified-multinode-edpm-deployment-crc FAILURE in 1h 37m 08s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 38m 14s

…stency

Verifies that TLS settings for nodeset are consistent with those
of existing control plane, if there is one and only one.

If there are multiple control planes the process will result in error,
same if it isn't possible to retrieve list of control planes.

Tests are included

Signed-off-by: Jiri Podivin <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants