Skip to content

Update csi-attacher to v4.2.0 #1144

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

Merged

Conversation

sunnylovestiramisu
Copy link
Contributor

@sunnylovestiramisu sunnylovestiramisu commented Feb 15, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Update csi-attacher to https://github.com/kubernetes-csi/external-attacher/releases/tag/v4.2.0

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

  • The rbac file hasn't changed for 3 years.

  • Changelog from 3.5.0 to 4.2.0 shows that the added flag is: --max-grpc-log-length. In external-attacher it is set to -1. But in the driver there is a default 10000. We need to set this value at the csi-attacher side.

  • The breaking change from 3.x.x to 4.x.x is --default-fstype, and we need to set that value here. For windows, we've had an explicit storageclass that sets the fstype to ntfs, the default-fstype flag will not do anything for windows.

Does this PR introduce a user-facing change?:

Update csi-attacher to v4.2.0

@k8s-ci-robot
Copy link
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

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Feb 15, 2023
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 15, 2023
@sunnylovestiramisu
Copy link
Contributor Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Feb 15, 2023
@sunnylovestiramisu
Copy link
Contributor Author

/assign @leiyiz
/assign @saikat-royc

@sunnylovestiramisu sunnylovestiramisu marked this pull request as ready for review February 15, 2023 22:11
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 15, 2023
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 15, 2023
@sunnylovestiramisu sunnylovestiramisu force-pushed the sidecar-update branch 2 times, most recently from 100cf1f to cf727bb Compare February 16, 2023 00:38
@@ -0,0 +1,4 @@
# Set max-grpc-log-length for attacher sidecar.
- op: add
path: /spec/template/spec/containers/0/args/-
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@sunnylovestiramisu sunnylovestiramisu Feb 16, 2023

Choose a reason for hiding this comment

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

Updated, and the local build is:

  - args:
        - --v=5
        - --csi-address=/csi/csi.sock
        - --http-endpoint=:22012
        - --leader-election
        - --leader-election-namespace=$(PDCSI_NAMESPACE)
        - --timeout=250s
        - --max-grpc-log-length=10000
        env:
        - name: PDCSI_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        image: k8s.gcr.io/sig-storage/csi-attacher:v4.2.0
        livenessProbe:
          failureThreshold: 1
          httpGet:
            path: /healthz/leader-election
            port: http-endpoint
          initialDelaySeconds: 10
          periodSeconds: 20
          timeoutSeconds: 10
        name: csi-attacher
        ports:
        - containerPort: 22012
          name: http-endpoint
          protocol: TCP
        volumeMounts:
        - mountPath: /csi
          name: socket-di

@sunnylovestiramisu sunnylovestiramisu force-pushed the sidecar-update branch 2 times, most recently from 08ad883 to d2b9aa4 Compare February 16, 2023 01:19
@msau42
Copy link
Contributor

msau42 commented Feb 16, 2023

The breaking change from 3.x.x to 4.x.x is --default-fstype, and we set that value here.

That is pointing to csi-provisioner arg, but this is for csi-attacher.

@sunnylovestiramisu
Copy link
Contributor Author

sunnylovestiramisu commented Feb 16, 2023

Add the default-fstype and build the yaml again bin/kustomize build deploy/kubernetes/overlays/prow-stable-sidecar-rc-master:

  - args:
      - --v=5
      - --csi-address=/csi/csi.sock
      - --http-endpoint=:22012
      - --leader-election
      - --leader-election-namespace=$(PDCSI_NAMESPACE)
      - --timeout=250s
      - --max-grpc-log-length=10000
      - --default-fstype=ext4
      env:
      - name: PDCSI_NAMESPACE
        valueFrom:
          fieldRef:
            fieldPath: metadata.namespace
      image: k8s.gcr.io/sig-storage/csi-attacher:v4.2.0
      livenessProbe:
        failureThreshold: 1
        httpGet:
          path: /healthz/leader-election
          port: http-endpoint
        initialDelaySeconds: 10
        periodSeconds: 20
        timeoutSeconds: 10
      name: csi-attacher
      ports:
      - containerPort: 22012
        name: http-endpoint
        protocol: TCP
      volumeMounts:
      - mountPath: /csi
        name: socket-dir

@sunnylovestiramisu
Copy link
Contributor Author

From the log:

W0216 17:18:26.167] $ gcloud auth login
E0216 17:18:26.167] Command failed

/retest

@sunnylovestiramisu
Copy link
Contributor Author

sunnylovestiramisu commented Feb 16, 2023

e2e tests constantly failing with:

W0216 19:48:20.799] ERROR: (gcloud.auth.activate-service-account) There was a problem refreshing your current auth tokens: ('invalid_grant: Invalid JWT Signature.', {'error': 'invalid_grant', 'error_description': 'Invalid JWT Signature.'})

There is ongoing issue with the prow test: https://kubernetes.slack.com/archives/C09QZ4DQB/p1676561497236049

@sunnylovestiramisu
Copy link
Contributor Author

sunnylovestiramisu commented Feb 17, 2023

@sunnylovestiramisu
Copy link
Contributor Author

Key has been rotated.

/retest

@msau42
Copy link
Contributor

msau42 commented Feb 17, 2023

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msau42, sunnylovestiramisu

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 Feb 17, 2023
@k8s-ci-robot k8s-ci-robot merged commit 811895e into kubernetes-sigs:master Feb 17, 2023
k8s-ci-robot added a commit that referenced this pull request Feb 17, 2023
…k-of-#1144-upstream-release-1.9

Automated cherry pick of #1144: Update csi-attacher to v4.2.0
@sunnylovestiramisu sunnylovestiramisu deleted the sidecar-update branch February 22, 2023 01:05
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

5 participants