Skip to content

Osd 10155 - #238

Merged
openshift-merge-robot merged 16 commits into
openshift:masterfrom
ritmun:OSD-10155
Mar 9, 2022
Merged

openshift-merge-robot merged 16 commits into
openshift:masterfrom
ritmun:OSD-10155

Conversation

@ritmun

@ritmun ritmun commented Feb 26, 2022 •

Copy link
Copy Markdown
Contributor

CIO can detect missing rh-api LB in GCP and recreate it.

To test, create a GCP CCS cluster and follow this SOP: https://docs.google.com/document/d/1QsZrxifiLwzbi_rC1Lz1Av9HcgXAzwXnvoAJtoPTEZo/edit

[I'll squash commits when review updates are done.]

@openshift-ci

openshift-ci Bot commented Feb 26, 2022

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 26, 2022
@openshift-ci
openshift-ci Bot requested review from bng0y and lnguyen1401 February 26, 2022 21:41
@fahlmant

fahlmant commented Mar 4, 2022 •

Copy link
Copy Markdown
Contributor

I see this is in draft. Is this ready for review?

@robotmaxtron

Copy link
Copy Markdown
Contributor

/test all

@ritmun

ritmun commented Mar 4, 2022 •

Copy link
Copy Markdown
Contributor Author

I see this is in draft. Is this ready for review?
@fahlmant yep, just changed its status.

@ritmun
ritmun marked this pull request as ready for review March 4, 2022 16:12
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 4, 2022
@codecov

codecov Bot commented Mar 4, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #238 (0a11ab5) into master (75dc848) will decrease coverage by 1.27%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #238      +/-   ##
==========================================
- Coverage   43.31%   42.04%   -1.28%     
==========================================
  Files          31       31              
  Lines        2514     2495      -19     
==========================================
- Hits         1089     1049      -40     
- Misses       1349     1373      +24     
+ Partials       76       73       -3     
Impacted Files Coverage Δ
pkg/cloudclient/gcp/gcp.go 52.05% <ø> (-1.04%) ⬇️
pkg/cloudclient/gcp/private.go 7.44% <0.00%> (-0.44%) ⬇️
pkg/controller/apischeme/apischeme_controller.go 0.00% <0.00%> (ø)
pkg/errors/errors.go 25.00% <0.00%> (-12.50%) ⬇️
pkg/cloudclient/aws/aws.go 60.00% <0.00%> (-9.61%) ⬇️

Comment thread pkg/cloudclient/gcp/private.go Resolved
Comment thread pkg/cloudclient/gcp/private.go Resolved
Comment thread pkg/cloudclient/gcp/private.go Resolved
Comment thread pkg/cloudclient/gcp/gcp.go Resolved
Comment thread pkg/cloudclient/gcp/private.go Resolved
Comment thread pkg/cloudclient/gcp/private.go Resolved
@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 7, 2022
@openshift-ci openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 7, 2022
@ritmun
ritmun requested a review from fahlmant March 7, 2022 16:07
Comment thread pkg/cloudclient/gcp/private.go Resolved
Comment thread pkg/cloudclient/gcp/private.go Resolved
@ritmun
ritmun requested a review from fahlmant March 8, 2022 15:50
@openshift-ci

openshift-ci Bot commented Mar 8, 2022

Copy link
Copy Markdown
Contributor

@ritmun: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

Comment thread pkg/cloudclient/gcp/private.go Outdated
// ensure forwarding rule exists in GCP for service
fr, err := findGCPForwardingRuleForExtIP(c, rhapiLbIP)
if err != nil || fr == nil {
_, err := c.findGCPForwardingRuleForExtIP(rhapiLbIP)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The nil case still needs to be handled since nil is returned in line 218

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This commit seems outdated. In the main PR diff nil check should be there.

@ritmun
ritmun requested a review from fahlmant March 8, 2022 17:29
// 1. Create Service
// 2. Add DNS CNAME from rh-api to the ELB created by AWS provider
// 3. Add Forwarding rule in GCP for the lb service
// 3. Ready for work (Ready)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// 3. Ready for work (Ready)
// 4. Ready for work (Ready)


// To recover from this case we will need to delete the lb service.
// It will be recreated at the next reconcile.
reqLogger.Info(fmt.Sprintf("Forwarding rule was deleted on cloud provider, deleting service %s/service/%s to force recreation", found.GetNamespace(), found.GetName()))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This error only affects GCP, so I think its safe to say GCP rather than cloud proivder

@fahlmant fahlmant left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Mar 9, 2022
@openshift-ci

openshift-ci Bot commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fahlmant, ritmun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 9, 2022
@openshift-merge-robot
openshift-merge-robot merged commit cbcedfe into openshift:master Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants