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 Provisioning ability for IBM Cloud Self-managed #1335

Merged
merged 22 commits into from
Apr 8, 2024

Conversation

bdattoma
Copy link
Contributor

extending the provisionin/deprovisioning tasks to work with IBM Cloud

@bdattoma bdattoma added needs testing Needs to be tested in Jenkins do not merge Do not merge this yet please labels Mar 28, 2024
@bdattoma bdattoma self-assigned this Mar 28, 2024
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Robocop found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link
Contributor

github-actions bot commented Mar 28, 2024

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
456 0 0 456 100

@bdattoma bdattoma added the new task New task(s) added (PR will be listed in release-notes) label Mar 29, 2024
@bdattoma
Copy link
Contributor Author

bdattoma commented Mar 29, 2024

Other cloud providers regression testing provisioning/deprovisionin:

  • Provision GCP: rhods-ci-pr-test/2663/ PASS
  • Provision AWS: rhods-ci-pr-test/2664/ PASS
  • Deprovision AWS: rhods-ci-pr-test/2666 PASS
  • Provision OpenStack: rhods-ci-pr-test/2667 PASS

Provision IBM Cloud: PASSED Cannot test on CI yet because of missing pkgs - support will be added later
image

Deprovision IBM Cloud: PASSED
image

manosnoam
manosnoam previously approved these changes Apr 3, 2024
Copy link
Contributor

@manosnoam manosnoam left a comment

Choose a reason for hiding this comment

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

Thank you Berto, looks good! Can you add a run output/build number ?
Also, I see several linter warnings, if you can cleanup.

@bdattoma bdattoma added verified This PR has been tested with Jenkins and removed do not merge Do not merge this yet please needs testing Needs to be tested in Jenkins labels Apr 3, 2024
@bdattoma bdattoma requested a review from manosnoam April 4, 2024 08:04
manosnoam
manosnoam previously approved these changes Apr 4, 2024
Copy link
Contributor

@manosnoam manosnoam left a comment

Choose a reason for hiding this comment

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

Besides the few questions/notes, lgtm

IF ${use_cluster_pool}
${pool_namespace} = Get Cluster Pool Namespace ${pool_name}
Set Task Variable ${pool_namespace}
Set Task Variable ${clusterdeployment_name} ${pool_namespace}
Copy link
Contributor

Choose a reason for hiding this comment

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

@bdattoma FYI:

  • The Cluster deployment name has a similar name (if I recall) as the cluster pool namespace by default.
  • The Cluster pool namespace is a unique name, which includes the cluster name prefix.
  • We should not make the cluster name equal to cluster pool namespace (which is currently the case for GCP and AWS).

Copy link
Contributor Author

@bdattoma bdattoma Apr 4, 2024

Choose a reason for hiding this comment

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

I just replicated the logic that was there earlier.
The code was using ${pool_namespace} variable as cluster deployment name when using cluster pools. see https://github.com/red-hat-data-services/ods-ci/pull/1335/files/a4dfb8d020042819202abf826e342ddcdc1649a5#diff-069081f68a5b54944843728104321c2a7f2d596f186734b832ddf7d8265185b7L159

manosnoam
manosnoam previously approved these changes Apr 4, 2024
Copy link
Contributor

@kobihk kobihk left a comment

Choose a reason for hiding this comment

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

Thank you @bdattoma for the additional provision option.

I added 2 comments

Copy link

sonarqubecloud bot commented Apr 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.8% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Apr 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.8% Duplication on New Code

See analysis details on SonarCloud

@bdattoma bdattoma merged commit f2b2407 into red-hat-data-services:master Apr 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new task New task(s) added (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants