-
Notifications
You must be signed in to change notification settings - Fork 141
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
Update helm install #265
Update helm install #265
Conversation
Hi @lizhuqi. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not use https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/install-driver.sh
for e2e test since it would install latest
tag image which is not built by current code
why not run the e2e test on a Linux machine? |
I am running the e2e test on a Linux machine. I can install the helm but when I try to use helm to install the CSI SMB driver, I got Permission denied error as below: |
Pull Request Test Coverage Report for Build 876857451
💛 - Coveralls |
may add sudo? It's like config issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
Makefile
Outdated
@@ -18,17 +18,20 @@ REGISTRY ?= andyzhangx | |||
REGISTRY_NAME = $(shell echo $(REGISTRY) | sed "s/.azurecr.io//g") | |||
IMAGE_NAME ?= smb-csi | |||
IMAGE_VERSION ?= v0.7.0 | |||
WIN_IMAGE_VERSION ?= v0.6.0-windows-1809-amd64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be v0.7.0-windows-1809-amd64
which is ${IMAGE_VERSION}-windows-1809-amd64
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks!
Makefile
Outdated
@@ -113,7 +119,7 @@ install-helm: | |||
|
|||
.PHONY: e2e-teardown | |||
e2e-teardown: | |||
helm delete csi-driver-smb --namespace kube-system | |||
sudo /usr/local/bin/helm delete csi-driver-smb --namespace kube-system --kubeconfig ~/.kube/config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's env config issue: sudo /usr/local/bin/helm
, better not hardcode in Makefile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Removed those in the Makefile
Makefile
Outdated
helm install csi-driver-smb charts/latest/csi-driver-smb --namespace kube-system --wait --timeout=15m -v=5 --debug \ | ||
${E2E_HELM_OPTIONS} \ | ||
docker pull $(WIN_IMAGE_TAG) || make container-all push-manifest | ||
sudo /usr/local/bin/helm upgrade csi-driver-smb charts/latest/csi-driver-smb --namespace kube-system --wait --timeout=15m -v=5 --debug --install \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
helm upgrade
Makefile
Outdated
--set windows.enabled=true \ | ||
--set linux.enabled=false \ | ||
--set controller.replicas=1 \ | ||
--set controller.logLevel=6 \ | ||
--set node.logLevel=6 | ||
--set node.logLevel=6 \ | ||
--kubeconfig ~/.kube/config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ~/.kube/config
is the default --kubeconfig
setting, not necessary to specify here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I thought so. However if I don't specify here, helm fails to connect to. the cluster.
No idea why... Can we keep it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, also removed --kubeconfig, it seems that it causes prow tests to fail
/retest |
2 similar comments
/retest |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image.smb.tag=e2e-2e4d133997830fbbc81f1283102c805706a0a9b9-windows-1809-amd64
does not work on Linux node, would you use same tag for both Linux and Windows when building image?
helm upgrade csi-driver-smb charts/latest/csi-driver-smb --namespace kube-system --wait --timeout=15m -v=5 --debug --install \
--set image.smb.repository=k8sprow.azurecr.io/smb-csi --set image.smb.tag=e2e-2e4d133997830fbbc81f1283102c805706a0a9b9-windows-1809-amd64 \
--set windows.enabled=true \
Makefile
Outdated
@@ -18,17 +18,20 @@ REGISTRY ?= andyzhangx | |||
REGISTRY_NAME = $(shell echo $(REGISTRY) | sed "s/.azurecr.io//g") | |||
IMAGE_NAME ?= smb-csi | |||
IMAGE_VERSION ?= v0.7.0 | |||
WIN_IMAGE_VERSION ?= ${IMAGE_VERSION}-windows-1809-amd64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v0.7.0
tag does not work on GKE Windows node? I think you could use one version tag for both Linux and Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's quite clear now, could you squash all commits? thanks.
a3808a8
to
627f0cc
Compare
Finally squashed all the commits. Please take another look. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, lizhuqi 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 |
@@ -95,15 +95,15 @@ e2e-test: | |||
e2e-bootstrap: install-helm | |||
docker pull $(IMAGE_TAG) || make container-all push-manifest | |||
ifdef TEST_WINDOWS | |||
helm install csi-driver-smb charts/latest/csi-driver-smb --namespace kube-system --wait --timeout=15m -v=5 --debug \ | |||
helm upgrade csi-driver-smb charts/latest/csi-driver-smb --namespace kube-system --wait --timeout=15m -v=5 --debug --install \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a bug for helm upgrade
, agent node will always use v0.7.0
in azure pipeline which breaks the pipeline finally, I would revert to use original helm instal
print out csi-smb-node logs ...
======================================================================================
[pod/csi-smb-node-sqjc2/smb] I0526 01:09:40.294321 1 main.go:85] set up prometheus server on [::]:29645
[pod/csi-smb-node-sqjc2/smb] I0526 01:09:40.294699 1 smb.go:62]
[pod/csi-smb-node-sqjc2/smb] DRIVER INFORMATION:
[pod/csi-smb-node-sqjc2/smb] -------------------
[pod/csi-smb-node-sqjc2/smb] Build Date: "2021-05-22T01:05:27Z"
[pod/csi-smb-node-sqjc2/smb] Compiler: gc
[pod/csi-smb-node-sqjc2/smb] Driver Name: smb.csi.k8s.io
[pod/csi-smb-node-sqjc2/smb] Driver Version: v0.7.0
[pod/csi-smb-node-sqjc2/smb] Git Commit: a03a482b5e925a77edcdfbab2ae330be8f5866ff
[pod/csi-smb-node-sqjc2/smb] Go Version: go1.16
[pod/csi-smb-node-sqjc2/smb] Platform: linux/amd64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm, it's not related, still try to figure out why agent node is always pulling image v0.7.0
98f23071d Merge pull request kubernetes-csi#260 from TerryHowe/update-csi-driver-version e9d8712d0 Merge pull request kubernetes-csi#259 from stmcginnis/deprecated-kind-kube-root faf79ff66 Remove --kube-root deprecated kind argument 734c2b950 Merge pull request kubernetes-csi#265 from Rakshith-R/consider-main-branch f95c855be Merge pull request kubernetes-csi#262 from huww98/golang-toolchain 3c8d966fe Treat main branch as equivalent to master branch e31de525b Merge pull request kubernetes-csi#261 from huww98/golang fd153a9e2 Bump golang to 1.23.1 a8b3d0504 pull-test.sh: fix "git subtree pull" errors 6b05f0fcc use new GOTOOLCHAIN env to manage go version 18b6ac6d2 chore: update CSI driver version to 1.15 git-subtree-dir: release-tools git-subtree-split: 98f23071d946dd3de3188a7e1f84679067003162
What type of PR is this?
/kind bug
What this PR does / why we need it:
Can't use Helm to install driver for Windows because Windows does not support privileged containers. Change to use kubectl to install drivers.
Release note: