vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.81k stars 1.41k forks source link

Error: unknown flag: --uploader-type #5782

Closed sawansharma005 closed 1 year ago

sawansharma005 commented 1 year ago

What steps did you take and what happened: [A clear and concise description of what the bug is, and what commands you ran.) While trying to deploy velero chart 3.0.0 on aks 1.25 cluster we are getting Error: unknown flag: --uploader-type.

What did you expect to happen:

Pod should come up in running state.

The following information will help us better understand what's going on:

If you are using velero v1.7.0+:
Please use velero debug --backup <backupname> --restore <restorename> to generate the support bundle, and attach to this issue, more options please refer to velero debug --help

If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)

Flags:`

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.] Velero manifest `apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/instance: velero app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: velero component: velero helm.sh/chart: velero-3.1.0 name: velero namespace: velero spec: replicas: 1 selector: matchLabels: app.kubernetes.io/instance: velero app.kubernetes.io/name: velero strategy: type: Recreate template: metadata: annotations: prometheus.io/path: /metrics prometheus.io/port: "8085" prometheus.io/scrape: "true" labels: aadpodidbinding: kaas-identity app.kubernetes.io/instance: velero app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: velero helm.sh/chart: velero-3.1.0 name: velero spec: containers:

Environment:

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

albrookesplowman commented 1 year ago

We are also seeing this error.... Is there a workaround or a solution?

qiuming-best commented 1 year ago

@albrookesplowman your Velero version is v1.9.5 which is not supported by Velero chart 3.0.0.

If you want your helm chart installation still work, you have two options:

albrookesplowman commented 1 year ago

I did try v1.10 with the v3.x.x helm chart but I got the same error. I have solved the problem by going back to v1.9.x with the last v2.x.x helm chart. At some point in the future I will give the v3.x.x & v1.10.x combination another try

qiuming-best commented 1 year ago

@albrookesplowman @sawansharma005 could you show me the output of command kubectl get deploy -n velero -oyaml

satyajeetjoshi1989 commented 1 year ago

replying on behalf of sawan @qiuming-best @albrookesplowman @sawansharma005

apiVersion: v1 items:

kind: List metadata:

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

Closing the stale issue.

OceanChen2012 commented 1 year ago

@albrookesplowman @sawansharma005 could you show me the output of command kubectl get deploy -n velero -oyaml

@qiuming-best 我遇到了同样的问题,我的k8s版本是v1.22.12,velero版本是v1.5.4,velero-plugin-for-aws版本是v1.1.0;运行命令:kubectl edit deployment velero -n velero,结果如下: [root@localhost velero-v1.5.4-linux-amd64]# kubectl edit deployment velero -n velero

  serviceAccountName: velero
  terminationGracePeriodSeconds: 30
  volumes:
  - emptyDir: {}
    name: plugins
  - emptyDir: {}
    name: scratch
  - name: cloud-credentials
    secret:
      defaultMode: 420
      secretName: cloud-credentials

status: conditions:

OceanChen2012 commented 1 year ago

@qiuming-best ,我在k8s中安装velero的命令如下:velero install \ --provider aws \ --image velero/velero:v1.5.4 \ --plugins velero/velero-plugin-for-aws:v1.1.0 \ --bucket velero \ --secret-file ./credentials-velero \ --use-volume-snapshots=false \ --backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://minio.velero.svc:9000

rajamecs commented 1 year ago

Any resolution on this ? I am using latest chart 4.0.2 with v1.11.0 sitting on EKS 1.24 facing he same issue Error: unknown flag: --uploader-type

rajamecs commented 1 year ago

My bad looking at the deployment yaml, the chart version still says v1.9.2 changed the same to 1.11.0 and gone past that error...

Init Containers:
   velero-plugin-for-csi:
    Image:        velero/velero-plugin-for-csi:v0.5.0
    Port:         <none>
    Host Port:    <none>
    Environment:  <none>
    Mounts:
      /target from plugins (rw)
   velero-plugin-for-aws:
    Image:        velero/velero-plugin-for-aws:v1.7.0
    Port:         <none>
    Host Port:    <none>
    Environment:  <none>
    Mounts:
      /target from plugins (rw)
  Containers:
   velero:
    Image:      velero/velero:v1.9.2
    Port:       8085/TCP
    Host Port:  0/TCP