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

ospdo adoption mariadb copy #690

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

Conversation

pinikomarov
Copy link
Contributor

@pinikomarov pinikomarov commented Oct 28, 2024

Add Director Operator mariadb_copy scripts for adoption

Related CI patch and background:
https://gitlab.cee.redhat.com/ci-framework/ci-framework-jobs/-/merge_requests/966

PRs submitted together :
related PR list

Jiras:
https://issues.redhat.com/browse/OSPRH-1891
https://issues.redhat.com/browse/OSPRH-2984

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/261ef1c49ddf4ef1b75233918601ae13

adoption-standalone-to-crc-ceph FAILURE in 1h 40m 39s
adoption-standalone-to-crc-no-ceph FAILURE in 1h 43m 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/628b424ece0649c09675c506e6f82850

adoption-standalone-to-crc-ceph FAILURE in 56m 04s
adoption-standalone-to-crc-no-ceph FAILURE in 1h 15m 13s

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/eff987a62645484f972eb0bb51e7295a

adoption-standalone-to-crc-ceph FAILURE in 1h 59m 44s
adoption-standalone-to-crc-no-ceph FAILURE in 1h 59m 20s

@pinikomarov
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/117e2a8986a74432aa827081eb5cfc71

adoption-standalone-to-crc-ceph FAILURE in 1h 44m 46s
adoption-standalone-to-crc-no-ceph FAILURE in 2h 01m 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/4908283f91b54b88bbcb9083019ff008

adoption-standalone-to-crc-ceph FAILURE in 1h 50m 03s
adoption-standalone-to-crc-no-ceph FAILURE in 1h 53m 14s

@@ -19,6 +19,7 @@
PODIFIED_MARIADB_IP={{ podified_mariadb_ip_result.stdout }}
PODIFIED_CELL1_MARIADB_IP={{ podified_cell1_mariadb_ip_result.stdout }}
PODIFIED_DB_ROOT_PASSWORD="{{ podified_db_root_password }}"
MARIADB_CLIENT_ANNOTATIONS="-n {{ rhoso_namespace }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

We can't set this variable here, it will override the setting from env_vars_src.yaml. Both env_vars_src.yaml and env_vars_dst.yaml are sourced one after another. AFAIU we need to be able to use mariadb_copy_shell_vars_dst and mariadb_copy_shell_vars_src together. Also think about how this translates to the docs. There are no distinctions between src/dst vars. MARIADB_CLIENT_ANNOTATIONS is set once and stays that way.

Does the OSPDO use case require running the data copy pods in both namespaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK , I'll leave the MARIADB_CLIENT_ANNOTATIONS as it was before and not override it.
I'll add the correct namespace throughout the needed oc commands...

@@ -5,7 +5,7 @@
{{ mariadb_copy_shell_vars_dst }}

# Test connection to podified DBs (show databases)
oc run mariadb-client --image $MARIADB_IMAGE -i --rm --restart=Never -- \
oc run mariadb-client ${MARIADB_CLIENT_ANNOTATIONS} --image $MARIADB_IMAGE -i --rm --restart=Never -- \
Copy link
Contributor

Choose a reason for hiding this comment

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

This change needs to be done in docs 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.

ok will add those to my pr

Copy link
Contributor Author

@pinikomarov pinikomarov left a comment

Choose a reason for hiding this comment

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

submitted needed changes

@@ -19,6 +19,7 @@
PODIFIED_MARIADB_IP={{ podified_mariadb_ip_result.stdout }}
PODIFIED_CELL1_MARIADB_IP={{ podified_cell1_mariadb_ip_result.stdout }}
PODIFIED_DB_ROOT_PASSWORD="{{ podified_db_root_password }}"
MARIADB_CLIENT_ANNOTATIONS="-n {{ rhoso_namespace }}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK , I'll leave the MARIADB_CLIENT_ANNOTATIONS as it was before and not override it.
I'll add the correct namespace throughout the needed oc commands...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants