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

Add HSM Prep role #2482

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

Conversation

vakwetu
Copy link
Contributor

@vakwetu vakwetu commented Oct 22, 2024

No description provided.

Copy link

Thanks for the PR! ❤️
I'm marking it as a draft, once your happy with it merging and the PR is passing CI, click the "Ready for review" button below.

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c451c3ccac3f4fa3ba324cb5083255fe

openstack-k8s-operators-content-provider FAILURE in 5m 51s
⚠️ 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
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 11s
cifmw-pod-pre-commit FAILURE in 5m 35s
✔️ build-push-container-cifmw-client SUCCESS in 20m 02s

@vakwetu vakwetu force-pushed the add_hsm_prep_role branch 3 times, most recently from e5ad646 to c13c263 Compare October 23, 2024 16:16
This VM should contain the following contents:
* The contents of the minimal linux client in a zipped tar file.
* The lunasa binaries that need to be added to the image under a specified directory.
* The lunasa HSM server cert.

Choose a reason for hiding this comment

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

Since you're going to tar up the linux-minimal client, why not also add the binaries there too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah - I suppose we could do that. six and a half dozen ..

cifmw_hsm_client_ip: "IP of the client - this could be the hypervisor where the Openshift nodes run"
cifmw_hsm_luna_clientvm_ip: "IP for the pre-configured running lunaclient"
cifmw_hsm_luna_clientvm_user: "User to log into the pre-configured running lunaclient"
cifmw_hsm_luna_clientvm_password: "password to log into the pre-configured running lunaclient"

Choose a reason for hiding this comment

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

Did you consider using an SSH key instead of a password?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the latest version doesn't have these parameters. They are expected to be set in an inventory - and how you get there is up to you. In my testing, I'm using ssh keys.

* `cifmw_hsm_luna_clientvm_password`: (String) user password for the luna client VM
* `cifmw_hsm_luna_minclient_src`: (String) Location of linux minimal client tarball on the luna client VM. Default value: `/opt/data/Linux-Minimal-Client.tar.gz`
* `cifmw_hsm_luna_binaries_src`: (String) Location of the luna binaries on the luna client VM. Default value: `/opt/data/bin`
* `cifmw_hsm_luna_server_cert_src`: (String) Location of HSM server cert on the luna client VM. Default value: ` /usr/safenet/lunaclient/bin/`
Copy link

@dmendiza dmendiza Oct 23, 2024

Choose a reason for hiding this comment

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

Why put the cert in a bin folder? I think it makes more sense to put it in /opt/data with the rest of the pre-provisioned files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually , thats incorrectly documented. It should be /usr/safenet/lunaclient/cert/server, where vtl puts all the other cert files.

@vakwetu vakwetu force-pushed the add_hsm_prep_role branch 3 times, most recently from 36ba164 to 856472e Compare October 23, 2024 18:26
Comment on lines +41 to +52
* `cifmw_hsm_admin_user`: (String) The user to log into the HSM. Default value: `admin`
* `cifmw_hsm_admin_password`: (String) The password to log into the HSM.

Choose a reason for hiding this comment

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

I think these two are only relevant for Lunas.

Choose a reason for hiding this comment

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

Why not use the script from the repo that is passed in as a parameter (cifmw_hsm_barbican_operator_repo)? Otherwise we're going to have to double up maintenance to the script since changes there would also have to be made here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I plan to. This is just here temporarily until that script merges.

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/521a3c6891764bdca915cbccc7f99474

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 42m 23s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 02s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 30m 02s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 50s
cifmw-pod-pre-commit FAILURE in 7m 54s
✔️ build-push-container-cifmw-client SUCCESS in 20m 53s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/80acc76b15624eb7afb9a1784ed47ecf

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 11m 23s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 15m 51s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 39m 35s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 49s
cifmw-pod-pre-commit FAILURE in 7m 06s
✔️ build-push-container-cifmw-client SUCCESS in 22m 35s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/b3dff3bc497a4e48938fd5ed394b9e95

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 37m 06s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 14m 26s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 24m 28s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 46s
cifmw-pod-pre-commit FAILURE in 7m 01s
✔️ build-push-container-cifmw-client SUCCESS in 21m 42s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/0dd9094df55d48af94dc3b46b84241e0

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 47m 31s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 46s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 20m 27s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 35s
cifmw-pod-pre-commit FAILURE in 8m 22s
✔️ build-push-container-cifmw-client SUCCESS in 37m 11s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/00fbae8496b444e2aa62d64af6291974

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 31m 50s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 11m 52s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 20m 19s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 11s
cifmw-pod-pre-commit FAILURE in 7m 12s
✔️ build-push-container-cifmw-client SUCCESS in 36m 45s

@vakwetu vakwetu force-pushed the add_hsm_prep_role branch 2 times, most recently from fa29bef to 7297b7d Compare November 4, 2024 20:16
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9528012c760441a0b7941664deb037bf

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 47m 27s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 16s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 28m 19s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 28s
cifmw-pod-pre-commit FAILURE in 7m 03s
✔️ build-push-container-cifmw-client SUCCESS in 20m 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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/fd2ac6141cf24018aeaab4143ca85996

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 49m 44s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 17m 09s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 31m 58s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 57s
cifmw-pod-pre-commit FAILURE in 7m 31s
✔️ build-push-container-cifmw-client SUCCESS in 22m 09s

@vakwetu vakwetu force-pushed the add_hsm_prep_role branch 2 times, most recently from f09ca11 to 8a0e5a3 Compare November 18, 2024 17:40
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/5e9ed960465e4e99a9e78dd212072826

openstack-k8s-operators-content-provider FAILURE in 4m 24s
⚠️ 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
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 08s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 21s
✔️ build-push-container-cifmw-client SUCCESS in 36m 40s

@vakwetu vakwetu force-pushed the add_hsm_prep_role branch 6 times, most recently from 1681be8 to 7cb2e0c Compare November 22, 2024 21:52
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/f191edd4e30a4e609947ef71e88ffe9a

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 32m 04s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 17m 22s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 19m 30s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 05s
cifmw-pod-pre-commit FAILURE in 7m 31s
✔️ build-push-container-cifmw-client SUCCESS in 37m 16s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/3c47b5ff4f644e8ca4246be0a7597c09

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 44m 22s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 43s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 32m 11s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 00s
cifmw-pod-pre-commit FAILURE in 7m 15s
✔️ build-push-container-cifmw-client SUCCESS in 36m 41s
✔️ cifmw-molecule-update_containers SUCCESS in 4m 58s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/6d6ef37ece80449d9efb51c216270b17

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 31m 12s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 21m 56s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 32m 35s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 17s
cifmw-pod-pre-commit FAILURE in 7m 46s
✔️ build-push-container-cifmw-client SUCCESS in 36m 48s
✔️ cifmw-molecule-update_containers SUCCESS in 4m 04s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/e45cf74fe96c4747b7424a8cc0619733

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 44m 28s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 56s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 20m 05s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 51s
cifmw-pod-pre-commit FAILURE in 7m 41s
✔️ build-push-container-cifmw-client SUCCESS in 38m 00s
✔️ cifmw-molecule-update_containers SUCCESS in 4m 08s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/d0ad86e7debb4e299773685d5f3a4311

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 37m 06s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 42s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 21m 02s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 45s
cifmw-pod-pre-commit FAILURE in 7m 32s
✔️ build-push-container-cifmw-client SUCCESS in 22m 30s
✔️ cifmw-molecule-update_containers SUCCESS in 4m 57s

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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/683d9478796e45f0b870e70a1bc891f1

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 17m 27s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 25m 36s
cifmw-crc-podified-edpm-baremetal FAILURE in 40m 23s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 26s
cifmw-pod-pre-commit FAILURE in 7m 09s
✔️ build-push-container-cifmw-client SUCCESS in 37m 21s
✔️ cifmw-molecule-update_containers SUCCESS in 4m 36s

Also add a playbook to call this role as a pre_deploy playbook
so that we can create and use the modified images in our barbican tests.
Copy link
Contributor

openshift-ci bot commented Dec 13, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign cescgina for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

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