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

unable to parse url [cloud.example.com/api]: parse "cloud.example.com/api": invalid URI for request] #283

Open
rolfbartels opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rolfbartels
Copy link

rolfbartels commented Dec 4, 2024

Describe the bug

We have tried deploying ver 1.4.0, 1.4.1, 1.6.0 and all have the same error.

pod: csi-vcd-controllerplugin
container: vcd-csui-plugin

panic: unable to initiate vcd client: [unable to get swagger client from secrets: [unable to get bearer token from secrets: [unable to parse url [cloud.example.com/api]: parse "cloud.example.com/api": invalid URI for request]]]

Reproduction steps

  1. deploy vcloud-basic-auth
  2. deploy vcloud-csi-configmap
  3. deploy csi-controller
    ...

Expected behavior

the pods fails to start due to the above error.
I have removed the actually domain name from the messages.

Additional context

│ I1204 13:15:42.836483 1 driver.go:57] Driver: [named-disk.csi.cloud-director.vmware.com] Version: [1.4.0] │
│ I1204 13:15:42.836548 1 driver.go:68] Adding volume capability [SINGLE_NODE_WRITER] │
│ I1204 13:15:42.836553 1 driver.go:68] Adding volume capability [SINGLE_NODE_READER_ONLY] │
│ I1204 13:15:42.836556 1 driver.go:68] Adding volume capability [MULTI_NODE_READER_ONLY] │
│ I1204 13:15:42.836559 1 driver.go:68] Adding volume capability [MULTI_NODE_SINGLE_WRITER] │
│ I1204 13:15:42.836562 1 driver.go:68] Adding volume capability [MULTI_NODE_MULTI_WRITER] │
│ I1204 13:15:42.836566 1 driver.go:81] Enabling node service capability: [STAGE_UNSTAGE_VOLUME] │
│ I1204 13:15:42.836570 1 driver.go:81] Enabling node service capability: [GET_VOLUME_STATS] │
│ I1204 13:15:42.836574 1 driver.go:98] Enabling controller service capability: [CREATE_DELETE_VOLUME] │
│ I1204 13:15:42.836578 1 driver.go:98] Enabling controller service capability: [LIST_VOLUMES] │
│ I1204 13:15:42.836582 1 driver.go:98] Enabling controller service capability: [PUBLISH_UNPUBLISH_VOLUME] │
│ I1204 13:15:42.836735 1 cloudconfig.go:91] Using username/secret based credentials. │
│ panic: unable to initiate vcd client: [unable to get swagger client from secrets: [unable to get bearer token from secrets: [unable to parse url [cloud.example.com/api]: parse "cloud.example.com/api": invalid URI for request]]] │
│ │
│ goroutine 1 [running]: │
│ main.runCommand() │
│ /build/mts/release/bora-22087623/cayman_cloud-director-named-disk-csi-driver/cloud-director-named-disk-csi-driver/src/cmd/csi/main.go:141 +0x525 │
│ main.main.func2(0xc000348280?, {0x1264bc6?, 0x4?, 0x4?}) │
│ /build/mts/release/bora-22087623/cayman_cloud-director-named-disk-csi-driver/cloud-director-named-disk-csi-driver/src/cmd/csi/main.go:67 +0x17 │
│ github.com/spf13/cobra.(*Command).execute(0xc000348280, {0xc0000340b0, 0x4, 0x4}) │
│ /build/mts/release/bora-22087623/cayman_cloud-director-named-disk-csi-driver/cloud-director-named-disk-csi-driver/src/vendor/github.com/spf13/cobra/command.go:856 +0x663 │
│ github.com/spf13/cobra.(*Command).ExecuteC(0xc000348280) │
│ /build/mts/release/bora-22087623/cayman_cloud-director-named-disk-csi-driver/cloud-director-named-disk-csi-driver/src/vendor/github.com/spf13/cobra/command.go:960 +0x39d │
│ github.com/spf13/cobra.(*Command).Execute(...) │
│ /build/mts/release/bora-22087623/cayman_cloud-director-named-disk-csi-driver/cloud-director-named-disk-csi-driver/src/vendor/github.com/spf13/cobra/command.go:897 │
│ main.main() │
│ /build/mts/release/bora-22087623/cayman_cloud-director-named-disk-csi-driver/cloud-director-named-disk-csi-driver/src/cmd/csi/main.go:87 +0x228

@rolfbartels rolfbartels added the bug Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant