Score:0

OpenStack Swift /info API requires authentication

us flag

I have a Kolla-Ansible cloud that includes Swift. Swift does not accept the /info API without authentication:

$ curl 192.168.122.201:8080/info
{"error": {"code": 401, "title": "Unauthorized", "message": "The request you have made requires authentication."}}

It works when I provide a valid token.

$ curl -H "x-auth-token: $T" 192.168.122.201:8080/info
{"swift": {"version": "2.26.0", "strict_cors_mode": true, "policies": ...

expose_info = true is set by default, but to be certain, I set it explicitly in proxy-server.conf. This should make it unnecessary to authenticate.

An obvious workaround would be to authenticate. Unfortunately, Cinder-Backup uses Swift and fails starting up because it can perform the /info API. I have not found out if and how it is possible to force Cinder-Backup to authenticate.

What could cause this unexpected behaviour? How can I troubleshoot this problem?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.