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 support for multicontrollers #500

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

averdagu
Copy link
Contributor

Adopting from an OSP 17.1 wallaby deployment formed by 3 controllers + 2 computes requires a
lot of manually changing hardcoded values on a few different files to adapt to the network schema of
wallaby deployment. With this pull request I intend to make it parameterizable

@averdagu
Copy link
Contributor Author

Need to test it on an actual environment, submitted PR for initial feedback

@openshift-ci openshift-ci bot requested review from cjeanner and dprince August 30, 2023 15:15
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 30, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: averdagu
Once this PR has been reviewed and has the lgtm label, please assign gibizer for approval. For more information see the Kubernetes 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 30, 2023

Hi @averdagu. Thanks for your PR.

I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@softwarefactory-project-zuul
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/51e3a694b38549d3a79be806783047c0

✔️ install-yamls-content-provider SUCCESS in 1h 40m 56s
install-yamls-crc-podified-edpm-baremetal FAILURE in 19m 04s
✔️ install-yamls-crc-podified-galera-deployment SUCCESS in 36m 26s
install-yamls-crc-podified-edpm-deployment FAILURE in 1h 28m 41s

@softwarefactory-project-zuul
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/571502dfda8e4f118332827435542d13

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 07m 39s
install-yamls-crc-podified-edpm-baremetal RETRY_LIMIT in 19m 10s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 51m 41s

devsetup/Makefile Outdated Show resolved Hide resolved
devsetup/Makefile Outdated Show resolved Hide resolved
devsetup/Makefile Outdated Show resolved Hide resolved
devsetup/Makefile Outdated Show resolved Hide resolved
@averdagu averdagu force-pushed the multi-controllers branch 2 times, most recently from c9b5011 to 237c548 Compare September 8, 2023 14:38
@softwarefactory-project-zuul
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/8f698f9af9b54dcdbf4c1d6d04f050a1

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 36m 21s
install-yamls-crc-podified-edpm-baremetal FAILURE in 1h 23m 08s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 00m 01s

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
devsetup/scripts/crc_del_multi_interfaces.sh Show resolved Hide resolved
@booxter
Copy link
Contributor

booxter commented Sep 11, 2023

/ok-to-test

@booxter
Copy link
Contributor

booxter commented Sep 11, 2023

I think this PR should include some documentation (in devsetup dir?) explaining how this should be used for multi node case.

@jistr jistr self-requested a review September 13, 2023 10:53
devsetup/scripts/crc_add_multi_interfaces.sh Outdated Show resolved Hide resolved
echo STORAGE_IP_START ${STORAGE_IP_START}
echo STORAGE_IP_END ${STORAGE_IP_END}
echo TENANT_IP_START ${TENANT_IP_START}
echo TENANT_IP_END ${TENANT_IP_END}

cat > ${DEPLOY_DIR}/ctlplane.yaml <<EOF_CAT
apiVersion: k8s.cni.cncf.io/v1
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this should/could make devsetup/scripts/bmaas/network-attachement-definition.sh more generic and re-use?

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 think there are different things.
In this case during the gen-netatt.sh the NetworkAttachmentDefinition resources are being created. This will determine the IPs that will have the pods that have an interface on any of those networks. So at the end this script will generate openshift resources.

The newtork-attachment-definition.sh is useful to modify the crc VM (but gen-netatt.sh will be used regardless if we use crc or dev-metal3 deployment)

In order to adopt an OSP Wallaby environment, CRC VM needs to
be able to connect to all Wallaby networks. With this new
target CRC will be able to do it.
Adopting a multicontroller OSP 17.1 wallaby deployment means
modifying a lot of the hardcoded values in nncp stage.
In order to make things easier the Interfaces, Networks and vlans
are parameterized.
As well as adding a new variables section called MCD (multi cluster
deployment) with the correct values to adopt a multi controller
wallaby environment.
Adopting a multicontroller OSP 17.1 wallaby deployment means
modifying a lot of the hardcoded values in netattach stage.
In order to make things easier the Interfaces, Networks and vlans
are parameterized.
Adopting a multicontroller OSP 17.1 wallaby deployment means
modifying a lot of the hardcoded values in netattach stage.
In order to make things easier the Interfaces, Networks and vlans
are parameterized.
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 6, 2023

@averdagu: 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/precommit-check 107c317 link true /test precommit-check

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

@softwarefactory-project-zuul
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/5bd0cb7dcaa54087815b9bd622035034

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 31m 28s
install-yamls-crc-podified-edpm-baremetal FAILURE in 1h 15m 51s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 00m 05s

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.

3 participants