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

volume backup error : volumes_backup 403 Forbidden [first 60 chars of response] <html><h1>Forbidden</h1><p>Access was denied to this resourc #63

Open
AJNOURI opened this issue Mar 29, 2017 · 0 comments

Comments

@AJNOURI
Copy link
Owner

AJNOURI commented Mar 29, 2017

Get error when trying to create volume backup:
# sourcing user auth
source keystone_auth p1_user1 openstack project1

$ cinder backup-create --name vol1-back2 vol1

+-----------+--------------------------------------+
| Property | Value |
+-----------+--------------------------------------+
| id | e323ac3c-c206-4528-b38b-ab26c9248b7b |
| name | vol1-back2 |
| volume_id | c858480d-2a92-4891-9251-e7615b40ec0e |
+-----------+--------------------------------------+

Get error state:
$ cinder backup-list

+--------------------------------------+--------------------------------------+--------+------------+------+--------------+----------------+
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------+--------+------------+------+--------------+----------------+
| 0dd5fd41-96a3-40d7-a795-3d9da0fb155c | c858480d-2a92-4891-9251-e7615b40ec0e | error | vol1-back1 | 1 | 0 | volumes_backup |
| 24ca19b9-d46f-4184-ad7f-1ad7fff6d36d | c858480d-2a92-4891-9251-e7615b40ec0e | error | vol1_back | 1 | 0 | volumes_backup |
| e323ac3c-c206-4528-b38b-ab26c9248b7b | c858480d-2a92-4891-9251-e7615b40ec0e | error | vol1-back2 | 1 | 0 | volumes_backup |
+--------------------------------------+--------------------------------------+--------+------------+------+--------------+----------------

The log file talking about "Access denied to resources"

tail /var/log/cinder/backup.log

2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/backup/drivers/swift.py", line 237, in put_container
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher self.conn.put_container(container)
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1466, in put_container
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher response_dict=response_dict)
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher service_token=self.service_token, **kwargs)
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 809, in put_container
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher http_response_content=body)
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher ClientException: Container PUT failed: http://X.X.149.155:8080/v1/AUTH_b404038c8e804a52a8abf2fff68c690d/volumes_backup 403 Forbidden [first 60 chars of response]

Forbidden

Access was denied to this resourc
2017-03-29 07:39:25.837 18126 ERROR oslo_messaging.rpc.dispatcher

Though, I've configured the project to have enough backups and BG per backup:

cinder quota-update --backup-gigabytes 10 --per-volume-gigabytes 10

b404038c8e804a52a8abf2fff68c690d
+----------------------+-------+
| Property | Value |
+----------------------+-------+
| backup_gigabytes | 10 |
| backups | 10 |
| gigabytes | 1000 |
| gigabytes_iscsi | -1 |
| per_volume_gigabytes | 10 |
| snapshots | 10 |
| snapshots_iscsi | -1 |
| volumes | 10 |
| volumes_iscsi | -1 |
+----------------------+-------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant