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

gce: fix nlb firewall rules, operations and alias network subnets #16265

Merged
merged 1 commit into from Jan 20, 2024

Conversation

upodroid
Copy link
Member

Splitting #16181 to separate PRs

This one fixes bugs in GCE infra creation.

  • Uses WAIT instead of GET polling for operations. This uses fewer API calls to track operations.
  • Increases the GCE alias mode subnet sizes to support 5k nodes
  • Fixes a missing firewall rule for NLBs

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 20, 2024
@k8s-ci-robot k8s-ci-robot added area/provider/gcp Issues or PRs related to gcp provider size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 20, 2024
@hakman hakman removed the request for review from johngmyers January 20, 2024 12:55
@@ -108,7 +108,8 @@ func waitForOp(op *compute.Operation, getOperation func(operationName string) (*
}
pollOp, err := getOperation(opName)
if err != nil {
klog.Warningf("GCE poll operation %s failed: pollOp: [%v] err: [%v] getErrorFromOp: [%v]", opName, pollOp, err, getErrorFromOp(pollOp))
klog.Warningf("GCE poll operation %s failed: pollOp: [%v] err: [%v]", opName, pollOp, err)
klog.Infof("getErrorFromOp: [%v]", getErrorFromOp(pollOp))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
klog.Infof("getErrorFromOp: [%v]", getErrorFromOp(pollOp))
klog.Warningf("GCE poll getErrorFromOp: [%v]", getErrorFromOp(pollOp))

Copy link
Member Author

@upodroid upodroid Jan 20, 2024

Choose a reason for hiding this comment

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

here is the problem

W1231 23:57:40.606721   75771 op.go:111] GCE poll operation operation-1704067055308-60dd707814e11-4ceef041-b4b17b9e failed: pollOp: [<nil>] err: [googleapi: Error 403: Quota exceeded for quota metric 'Heavy-weight read requests' and limit 'Heavy-weight read requests per minute per region' of service 'compute.googleapis.com' for consumer 'project_number:189277497252'.
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "domain": "googleapis.com",
    "metadatas": {
      "consumer": "projects/189277497252",
      "quota_limit": "HeavyWeightReadRequestsPerMinutePerProjectPerRegion",
      "quota_limit_value": "1500",
      "quota_location": "us-east1",
      "quota_metric": "compute.googleapis.com/heavy_weight_read_requests_per_region",
      "service": "compute.googleapis.com"
    },
    "reason": "RATE_LIMIT_EXCEEDED"
  },
  {
    "@type": "type.googleapis.com/google.rpc.Help",
    "links": [
      {
        "description": "Request a higher quota limit.",
        "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
      }
    ]
  }
]
, rateLimitExceeded]
I1231 23:57:40.606831   75771 op.go:112] getErrorFromOp: [<nil>]

I need to hide that json block as it bloats the log file. It is a transient error that disappears after a minute usually for operations.

Copy link
Member

Choose a reason for hiding this comment

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

OK

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 20, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 20, 2024
@k8s-ci-robot k8s-ci-robot merged commit 9645e5c into kubernetes:master Jan 20, 2024
22 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.29 milestone Jan 20, 2024
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. area/provider/gcp Issues or PRs related to gcp provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants