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

Adding support for adoption scenario 1 #818

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

Conversation

averdagu
Copy link
Contributor

@averdagu averdagu commented May 2, 2024

Dataplane adoption docs supports doing the adoption while wallaby environment uses different subnets than next generation. This commit enables Makefiles in order to prepare the environment with different subnets between environments.

Related: OSPRH-5881

@openshift-ci openshift-ci bot requested review from karelyatin and viroel May 2, 2024 13:32
@booxter booxter self-requested a review May 2, 2024 14:09
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/c5c21e7abf014fe09fd09f29112f63c2

✔️ openstack-k8s-operators-content-provider SUCCESS in 57m 02s
install-yamls-crc-podified-edpm-baremetal FAILURE in 23m 52s
podified-multinode-edpm-deployment-crc FAILURE in 30m 51s
cifmw-data-plane-adoption-osp-17-to-extracted-crc RETRY_LIMIT in 37m 22s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph RETRY_LIMIT in 37m 07s

Makefile Outdated
@@ -35,6 +35,22 @@ CLEANUP_DIR_CMD ?= rm -Rf
# be also cloned from OPENSTACK_REPO/OPENSTACK_BRANCH.
CHECKOUT_FROM_OPENSTACK_REF ?= false

ADOPTED_SCENARIO ?=false
Copy link
Contributor

Choose a reason for hiding this comment

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

names of variables here should not refer to adoption. There's a general case for deploying CP and DP services in different ranges. We should be able to stand up greenfield deployment with different ranges.

Copy link
Contributor

Choose a reason for hiding this comment

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

This applies both to the code and the commit title / message.

Copy link
Contributor

@booxter booxter left a comment

Choose a reason for hiding this comment

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

Could you please give a playbook of commands that one would use to deploy the setup as you intend? Please add them to commit message.

Please also fix pre-commits.

Makefile Outdated
@@ -35,6 +35,22 @@ CLEANUP_DIR_CMD ?= rm -Rf
# be also cloned from OPENSTACK_REPO/OPENSTACK_BRANCH.
CHECKOUT_FROM_OPENSTACK_REF ?= false

ADOPTED_SCENARIO ?=false
Copy link
Contributor

Choose a reason for hiding this comment

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

This applies both to the code and the commit title / message.

@@ -217,6 +217,16 @@ dns_server: ${PRIMARY_RESOLV_CONF_ENTRY}
compute_driver: ${COMPUTE_DRIVER}
sriov_agent: ${EDPM_COMPUTE_SRIOV_ENABLED}
dhcp_agent: ${EDPM_COMPUTE_DHCP_AGENT_ENABLED}
# Adoption related stuff
adoption_scenario: ${ADOPTION_SCENARIO_A}
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of referring to "adoption" here, please refer to "host_routes" that should be added instead; e.g. storage_host_routes, tenant_host_routes, etc.

if [ -z "${DEPLOY_DIR}" ]; then
echo "Please set DEPLOY_DIR"; exit 1
fi
function check_var_setted () {
Copy link
Contributor

Choose a reason for hiding this comment

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

setted -> set

if [ -z "${DEPLOY_DIR}" ]; then
echo "Please set DEPLOY_DIR"; exit 1
fi
function check_var_setted () {
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -145,6 +133,25 @@ EOF_CAT
next-hop-interface: ${BRIDGE_NAME}
EOF_CAT
done
fi
if [ -n "$ADOPTION_CASE_A" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

should be smth like (pseudo-code)

if INTERNALAPI_HOST_ROUTES:
  echo INTERNALAPI_HOST_ROUTES >>
if TENANT_HOST_ROUTES:
  ...

etc. etc.

next-hop-interface: ${INTERFACE}.${tenant_vlan_id}
EOF_CAT
fi
if [ -n "$IPV6_ENABLED" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

hm. why is it needed?

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch 5 times, most recently from 08dcc5e to d870686 Compare May 15, 2024 17:13
@averdagu averdagu marked this pull request as draft May 15, 2024 17:14
@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch 2 times, most recently from f0b68ff to 4e9acfb Compare May 15, 2024 17:41
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/68f215690f5042079e33575183d8afee

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 38m 10s
✔️ install-yamls-crc-podified-edpm-baremetal SUCCESS in 1h 18m 54s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 00s
cifmw-data-plane-adoption-osp-17-to-extracted-crc RETRY_LIMIT in 50m 36s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph RETRY_LIMIT in 51m 56s

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch from 4e9acfb to d28295b Compare May 20, 2024 08:11
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/c2a9060024d747bb950c8ee43e94b81b

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 38m 15s
✔️ install-yamls-crc-podified-edpm-baremetal SUCCESS in 1h 19m 14s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 17m 17s
cifmw-data-plane-adoption-osp-17-to-extracted-crc RETRY_LIMIT in 51m 19s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph RETRY_LIMIT in 52m 35s

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch 3 times, most recently from acbb1ae to 296dd1c Compare May 28, 2024 14:56
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/e664007fab804645b3184d51e04f4172

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 46m 08s
✔️ install-yamls-crc-podified-edpm-baremetal SUCCESS in 1h 17m 25s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 21m 07s
cifmw-data-plane-adoption-osp-17-to-extracted-crc RETRY_LIMIT in 48m 19s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph RETRY_LIMIT in 57m 19s

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch from 303c31d to 8f099cc Compare May 29, 2024 07:59
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/f201b76d01f447bdab030c2eb9a6165a

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 38m 02s
✔️ install-yamls-crc-podified-edpm-baremetal SUCCESS in 1h 13m 55s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 20m 24s
cifmw-data-plane-adoption-osp-17-to-extracted-crc RETRY_LIMIT in 17m 37s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph RETRY_LIMIT in 53m 00s

@averdagu averdagu marked this pull request as ready for review May 31, 2024 16:02
@openshift-ci openshift-ci bot requested review from abays and stuggi May 31, 2024 16:02
@averdagu
Copy link
Contributor Author

recheck

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch 5 times, most recently from 07f88df to e28ad08 Compare June 3, 2024 11:18
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/ce81e17c11b545b8a34edaef5d32f2d9

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 10m 17s
✔️ install-yamls-crc-podified-edpm-baremetal SUCCESS in 1h 15m 58s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 28m 42s
cifmw-data-plane-adoption-osp-17-to-extracted-crc RETRY_LIMIT in 51m 39s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph RETRY_LIMIT in 53m 16s

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch from e28ad08 to e69bd16 Compare June 3, 2024 14:50
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/661344149bd14f6788c276224778c41c

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 21m 53s
✔️ install-yamls-crc-podified-edpm-baremetal SUCCESS in 1h 15m 19s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 25m 29s
cifmw-data-plane-adoption-osp-17-to-extracted-crc FAILURE in 1h 55m 11s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph FAILURE in 1h 33m 41s

@averdagu
Copy link
Contributor Author

averdagu commented Jun 5, 2024

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/3e8be8aa1a3a4bbab5e6d3af0d2aecac

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 43m 19s
✔️ install-yamls-crc-podified-edpm-baremetal SUCCESS in 1h 18m 46s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 47s
cifmw-data-plane-adoption-osp-17-to-extracted-crc FAILURE in 1h 51m 01s
cifmw-data-plane-adoption-osp-17-to-extracted-crc-minimal-no-ceph FAILURE in 1h 38m 09s

@averdagu
Copy link
Contributor Author

averdagu commented Jun 6, 2024

recheck

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/install_yamls for 818,e69bd160baf62ec077e05990e413e863417f0435

@fao89
Copy link
Contributor

fao89 commented Jun 14, 2024

/approve

Copy link
Contributor

openshift-ci bot commented Jun 14, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: averdagu, fao89

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

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch from 179ad80 to 790a225 Compare October 4, 2024 09:47
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/64c0f0b2b3be4ef5ae747b53520e1b6c

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 54m 28s
install-yamls-crc-podified-edpm-baremetal RETRY_LIMIT in 26m 12s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 24m 34s
✔️ adoption-standalone-to-crc-ceph-provider SUCCESS in 2h 40m 50s
✔️ adoption-standalone-to-crc-no-ceph-provider SUCCESS in 2h 50m 20s

@danpawlik
Copy link
Contributor

recheck

@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch 7 times, most recently from 242e1cf to afc4d32 Compare October 14, 2024 21:53
Dataplane adoption docs supports doing the adoption
while wallaby environment uses different subnets than
next generation. This commit enables Makefiles in order to
prepare the environment with different subnets between
environments.

Related: OSPRH-5881
@averdagu averdagu force-pushed the feat/adoption-scenario-1-support branch from afc4d32 to a7f1cb4 Compare October 24, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants