Skip to content

Commit

Permalink
Fix Manila tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Oct 19, 2023
1 parent e33e03a commit 0eec9c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/playbooks/roles/install-csi-manila/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
csimanila:
image:
repository: {{ remote_registry_host }}/manila-csi-plugin
tag: {{ github_pr }}
tag: v0.0.{{ github_pr }}
shareProtocols:
- protocolSelector: NFS
fsGroupPolicy: None
Expand Down Expand Up @@ -224,7 +224,7 @@
--ginkgo.v \
--ginkgo.noColor \
--ginkgo.progress \
--ginkgo.skip="\[Disruptive\]|\[sig-storage\]\s+\[manila-csi-e2e\]\s+CSI\s+Volumes\s+\[Driver:\s+nfs.manila.csi.openstack.org\]\s+\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+provision\s+storage\s+with\s+any\s+volume\s+data\s+source\s+\[Serial\]|should\s+provision\s+storage\s+with\s+snapshot\s+data\s+source" \
--ginkgo.skip="\[Disruptive\]|\[sig-storage\]\s+\[manila-csi-e2e\]\s+CSI\s+Volumes\s+\[Driver:\s+nfs.manila.csi.openstack.org\]\s+\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+provision\s+storage\s+with\s+any\s+volume\s+data\s+source\s+\[Serial\]|should\s+provision\s+storage\s+with\s+snapshot\s+data\s+source|restoring\s+snapshot\s+to\s+larger\s+size" \
--ginkgo.focus="\[manila-csi-e2e\]" \
-report-dir /var/log/csi-pod \
-timeout=0 | tee "/var/log/csi-pod/manila-csi-e2e.log"
Expand All @@ -238,8 +238,8 @@
set -x
set -e
kubectl logs statefulset/manila-openstack-manila-csi-controllerplugin -n default -c nfs-nodeplugin > /var/log/csi-pod/csi-manila-controllerplugin.log
kubectl logs daemonset/manila-openstack-manila-csi-nodeplugin -n default -c nfs-nodeplugin > /var/log/csi-pod/csi-manila-nodeplugin.log
kubectl logs -l app=openstack-manila-csi,component=controllerplugin -n default -c nfs-nodeplugin --tail=-1 > /var/log/csi-pod/csi-manila-controllerplugin.log
kubectl logs -l app=openstack-manila-csi,component=nodeplugin -n default -c nfs-nodeplugin --tail=-1 > /var/log/csi-pod/csi-manila-nodeplugin.log
ignore_errors: true

- fail: msg="The execution has failed because of errors."
Expand Down
4 changes: 2 additions & 2 deletions tests/sanity/manila/fakecsiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ func (c fakeNodeSvcClient) UnpublishVolume(ctx context.Context, req *csi.NodeUnp
type fakeCSIClientBuilder struct{}

func (b fakeCSIClientBuilder) NewConnection(string) (*grpc.ClientConn, error) {
return grpc.Dial("", grpc.WithTransportCredentials(insecure.NewCredentials()))
return grpc.Dial("localhost", grpc.WithTransportCredentials(insecure.NewCredentials()))
}

func (b fakeCSIClientBuilder) NewConnectionWithContext(context.Context, string) (*grpc.ClientConn, error) {
return grpc.Dial("", grpc.WithTransportCredentials(insecure.NewCredentials()))
return grpc.Dial("localhost", grpc.WithTransportCredentials(insecure.NewCredentials()))
}

func (b fakeCSIClientBuilder) NewNodeServiceClient(conn *grpc.ClientConn) csiclient.Node {
Expand Down

0 comments on commit 0eec9c3

Please sign in to comment.