This message was deleted.
# longhorn-storage
a
This message was deleted.
q
the csi-provisioner has this in its logs
Copy code
I0811 02:45:20.776560       1 feature_gate.go:243] feature gates: &{map[]}
2023-08-11T02:45:20.778608718Z I0811 02:45:20.777050       1 csi-provisioner.go:132] Version: v2.1.2
2023-08-11T02:45:20.778618052Z I0811 02:45:20.777083       1 csi-provisioner.go:155] Building kube configs for running in cluster...
2023-08-11T02:45:20.801867797Z F0811 02:45:20.801342       1 csi-provisioner.go:180] Error getting server version: the server has asked for the client to provide credentials
I am attempting to do it using the helm repo instead...
not working, I must have messed up something big time in the longhorn setup now.
Copy code
helm upgrade longhorn longhorn/longhorn \
        --version 1.5.1 \
  --namespace longhorn-system \
  --values values.yaml \
  --cleanup-on-fail \
        --debug
upgrade.go:142: [debug] preparing upgrade for longhorn
upgrade.go:150: [debug] performing update for longhorn
upgrade.go:322: [debug] creating upgraded release for longhorn
client.go:299: [debug] Starting delete for "longhorn-pre-upgrade" Job
client.go:328: [debug] jobs.batch "longhorn-pre-upgrade" not found
client.go:128: [debug] creating 1 resource(s)
client.go:529: [debug] Watching for changes to Job longhorn-pre-upgrade with timeout of 5m0s
client.go:557: [debug] Add/Modify event for longhorn-pre-upgrade: ADDED
client.go:596: [debug] longhorn-pre-upgrade: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:557: [debug] Add/Modify event for longhorn-pre-upgrade: MODIFIED
client.go:596: [debug] longhorn-pre-upgrade: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:299: [debug] Starting delete for "longhorn-pre-upgrade" Job
upgrade.go:431: [debug] warning: Upgrade "longhorn" failed: pre-upgrade hooks failed: timed out waiting for the condition
Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition
helm.go:84: [debug] pre-upgrade hooks failed: timed out waiting for the condition
UPGRADE FAILED
main.newUpgradeCmd.func2
        <http://helm.sh/helm/v3/cmd/helm/upgrade.go:199|helm.sh/helm/v3/cmd/helm/upgrade.go:199>
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
        <http://github.com/spf13/cobra@v1.3.0/command.go:856|github.com/spf13/cobra@v1.3.0/command.go:856>
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
        <http://github.com/spf13/cobra@v1.3.0/command.go:974|github.com/spf13/cobra@v1.3.0/command.go:974>
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
        <http://github.com/spf13/cobra@v1.3.0/command.go:902|github.com/spf13/cobra@v1.3.0/command.go:902>
main.main
        <http://helm.sh/helm/v3/cmd/helm/helm.go:83|helm.sh/helm/v3/cmd/helm/helm.go:83>
runtime.main
        runtime/proc.go:250
runtime.goexit
        runtime/asm_arm64.s:1172
I assume that uninstalling longhorn would destroy the existing PV/PVC?
I see it's really messed up
Copy code
[FailedCreate] pods "csi-provisioner-5779c458c-" is forbidden: error looking up service account longhorn-system/longhorn-service-account: serviceaccount "longhorn-service-account" not found
564 Views