Unable to authenticate to OpenStack

92 views
Skip to first unread message

Michael Kelly

unread,
Apr 28, 2023, 11:33:10 AM4/28/23
to Project Velero
Hi,
I am trying to install Velero 1.11.0 into a K3S cluster using OpenStack as the storage provider.
I have exported all the environment variables needed for Keystone v2.0.
The install command is
velero install  --provider "community.openstack.org/openstack" --plugins lirt/velero-plugin-for-openstack:v0.5.1 --bucket Velero-Backups --no-secret

The install completes  and the pod is created but when I look at the logs, I can see that there was an error when trying to authenticate to OpenStack.
The error message is
failed to authenticate against OpenStack: Missing input for argument [auth_url]"
The help for the install command makes no reference to auth_url.
What am I missing or doing wrong?


Tiger Kaovilai

unread,
Apr 28, 2023, 12:27:29 PM4/28/23
to Michael Kelly, Project Velero

This plugin is not maintained by the velero maintainers (it's in Lirt org). Config for specific provider plugins are in their designated plugin repositories and is not part of the `velero install` documentation.

Please review the documentation and file issues if you think sections could be improved. If you already know what needs to be changed, make a pull request!
The aim should be that someone only has to ask once, and it can be easily looked up. You can find discussions of other velero users at
--

Tiger Kaovilai

He/Him/His

Software Engineer, OADP, Migration and Modernization Engineering

Red Hat

100 E. Davie Street

Raleigh, NC 27601

ti...@redhat.comtkao...@redhat.com 


--
You received this message because you are subscribed to the Google Groups "Project Velero" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectveler...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectvelero/7117e332-4cd5-44b9-991f-0b9cf4d1f2d7n%40googlegroups.com.

Michael Kelly

unread,
May 2, 2023, 8:33:48 AM5/2/23
to Tiger Kaovilai, Project Velero
I understand that the Velero maintainers are not responsible for the OpenStack plugin.
I'm hoping that somebody who knows more about the plugin than I do can help me out here.

Tiger Kaovilai

unread,
May 2, 2023, 10:53:39 AM5/2/23
to Michael Kelly, Project Velero
If you're using file or application credentials to authenticate
clouds:
  <CLOUD_NAME_1>:
    region_name: <REGION_NAME>
    auth:
      auth_url: "<AUTH_URL /v3>" <-- this is the missing input.

You are missing
export OS_AUTH_URL=<AUTH_URL /v2.0> <-- this is the missing input.

All this came from the README I linked previously and linked again above.
 


On Tue, May 2, 2023 at 10:15 AM Michael Kelly <michae...@sohonet.com> wrote:
Yes I did.
I followed the instructions in the README.
I'm hoping that someone can explain what Missing input for argument [auth_url] means.


On Tue, 2 May 2023 at 13:56, Tiger Kaovilai <tkao...@redhat.com> wrote:
Did you already go through the documentation I linked?

Michael Kelly

unread,
May 2, 2023, 11:58:48 AM5/2/23
to Tiger Kaovilai, Project Velero
I exported all the env vars for v2.0, that's what's puzzling me.

Tiger Kaovilai

unread,
May 2, 2023, 12:06:07 PM5/2/23
to Michael Kelly, Project Velero
It said "Configure velero container with your OpenStack authentication environment variables:"

So my assumption is they want you to edit velero deployment pod template spec's environment variables to contain those values.
You can do it directly in env, or you could create a secret then use them as envvar

Tiger Kaovilai

unread,
May 2, 2023, 12:09:11 PM5/2/23
to Michael Kelly, Project Velero
  1. Authentication using environment variables takes precedence (including Application Credentials).You must not set env. variable OS_CLOUD when you want to authenticate using env.variables because authenticator will try to look for clouds.y(a)ml file and use it.

If it's still not working.. I would defer you to file issues with them.

Siva Siva

unread,
Apr 2, 2024, 9:38:25 PMApr 2
to Project Velero
HI Team,

Did you have a solution for this error. I too get same error configuring openstack velero.
I gave all below ENV variable as per the doc but same error i get.

export OS_AUTH_URL=

export OS_USERNAME=

export OS_PASSWORD=

export OS_PROJECT_ID

export OS_PROJECT_NAME=

export OS_REGION_NAME=


ERROR:
failed to authenticate against OpenStack in object storage plugin: failed to build auth options: Missing input for argument [auth_url])" controller=backup-storage-location logSource="pkg/controller/backup_storage_location_controller.go:178"

Regards
Siva Kesana
Reply all
Reply to author
Forward
0 new messages