Comments (2)
Related to issue #7
The demo/account and role were created under the old admin
Solved the issue partially from the CLI standpoint, by deleteing and re-creating demo user, account and role
root@controller:/home/ajn# swift stat
Account: AUTH_cdbcbc3eeb8a472c8abb2b67e749774c Containers: 2 Objects: 4 Bytes: 55534
Accept-Ranges: bytes
X-Timestamp: 1476882488.69520
X-Trans-Id: txb644cc0c76504910bd30f-005808f556
Content-Type: text/plain; charset=utf-8
root@controller:/home/ajn# swift upload demo-container-test1 text-demo1.txt
text-demo1.txt
root@controller:/home/ajn# swift stat demo-container-test1
Account: AUTH_cdbcbc3eeb8a472c8abb2b67e749774c Container: demo-container-test1 Objects: 1 Bytes: 10 Read ACL: Write ACL: Sync To: Sync Key:
Accept-Ranges: bytes
X-Timestamp: 1476982183.68498
X-Trans-Id: tx268ae3529da9422cae649-005808f5e6
Content-Type: text/plain; charset=utf-8
root@controller:/home/ajn# rm text-demo1.txt
root@controller:/home/ajn# swift download demo-container-test1
text-demo1.txt [auth 0.107s, headers 0.162s, total 0.163s, 0.000 MB/s]
from coa.
root@controller:/home/ajn#tail /var/log/apache2/error.log
[Thu Oct 20 23:44:49.756116 2016] [:error] [pid 8646:tid 139712725325568] RESP HEADERS: [('date', 'Thu, 20 Oct 2016 23:44:49 GMT'), ('content-length', '73'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx975635b8d06c40d7a6626-00580956f1')]
[Thu Oct 20 23:44:49.756185 2016] [:error] [pid 8646:tid 139712725325568] RESP BODY:Forbidden
Access was denied to this resource.
[Thu Oct 20 23:44:49.756441 2016] [:error] [pid 8646:tid 139712725325568] Container PUT failed: http://swiftProxy:**8080:8080**/v1/AUTH_62c353aacad140488aac55552b659334/container-test2 403 Forbidden [first 60 chars of response]Forbidden
Access was denied to this resourc
[Thu Oct 20 23:44:49.756455 2016] [:error] [pid 8646:tid 139712725325568] Traceback (most recent call last):
[Thu Oct 20 23:44:49.756459 2016] [:error] [pid 8646:tid 139712725325568] File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1189, in _retry
[Thu Oct 20 23:44:49.756463 2016] [:error] [pid 8646:tid 139712725325568] rv = func(self.url, self.token, _args, *_kwargs)
[Thu Oct 20 23:44:49.756467 2016] [:error] [pid 8646:tid 139712725325568] File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 674, in put_container
[Thu Oct 20 23:44:49.756486 2016] [:error] [pid 8646:tid 139712725325568] http_response_content=body)
[Thu Oct 20 23:44:49.756491 2016] [:error] [pid 8646:tid 139712725325568] ClientException: Container PUT failed: http://swiftProxy:**8080:8080**/v1/AUTH_62c353aacad140488aac55552b659334/container-test2 403 Forbidden [first 60 chars of response]Forbidden
Access was denied to this resourc
[Thu Oct 20 23:44:49.756718 2016] [:error] [pid 8646:tid 139712725325568] Recoverable error: Container PUT failed: http://swiftProxy:**8080:8080**/v1/AUTH_62c353aacad140488aac55552b659334/container-test2 403 Forbidden [first 60 chars of response]Forbidden
Access was denied to this resourc
Looks like Horizon forms a wrong query URL, it adds superfluous port number:
Comparing to the the command line, a debug swift command shows that the cli client queries the correct url:
oot@controller:/home/ajn# swift --debug stat
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://controller:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"passwordCredentials": {"username": "admin", "password": "linuxacademy123"}, "tenantId": "cdbcbc3eeb8a472c8abb2b67e749774c"}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 7125
DEBUG:keystoneclient.session:RESP: [200] CaseInsensitiveDict({'date': 'Fri, 21 Oct 2016 00:21:11 GMT', 'vary': 'X-Auth-Token', 'content-length': '7125', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2016-10-21T00:21:11.915583", "expires": "2016-10-21T01:21:11Z", "id": "MIIMsQYJKoZIhvcNAQcCoIIMojCCDJ4CAQExDTALBglghkgBZQMEAgEwggr-TRUNKATED
PmTrffWUVJU-CChlhSElfwgp7XW0igpLv18A7ThnOaSXQMQIMFV0O46v+1W2tc725XtM6vgz62-sfu6ZSG66VbH4zjf7lkAVtPyxRbGNYSUk1eQPLo-FHc1cbule4gnk2CAL10Hy4zRtaFBmPZ62qt50ZLp-MFAt6HVzGR8abTWqvpSFlc3arWSk2vSmSPInWoZy6g==", "tenant": {"description": "Admin tenant", "enabled": true, "id": "cdbcbc3eeb8a472c8abb2b67e749774c", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "23c8d788422c466cb6c97dcb92c2b0b2", "publicURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:9696", "region": "regionOne", "internalURL": "http://controller:9696", "id": "534fefe0f0414b8ebd3d54b9f4be7d93", "publicURL": "http://controller:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "5700f74a49ad447d88e9d7189b4532ed", "publicURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "1edb475e3de84f7abf92b01701404aee", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "60bf9cad87df41f3b58badf3dd81fc1a", "publicURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://swiftProxy:8080", "region": "regionOne", "internalURL": "http://swiftProxy:8080/v1/AUTH_cdbcbc3eeb8a472c8abb2b67e749774c", "id": "34b5dcc64c354e2d80f4d94e5fbab2ff", "publicURL": "http://swiftProxy:8080/v1/AUTH_cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "8f7bce4e0629429e9204efb9d1399ee1", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "4ac4bb45dd504f53a027b79ca3e9f2e8", "roles": [{"name": "admin"}, {"name": "member"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["5910c3c96ca54403b189d00f9a70b8be", "9fe2ff9ee4384b1894a90878d3e92bab"]}}}
TRUNKATED
INFO:urllib3.connectionpool:Starting new HTTP connection (1): swiftProxy
DEBUG:urllib3.connectionpool:Setting read timeout to <object object at 0x7fd5a645b090>
DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_cdbcbc3eeb8a472c8abb2b67e749774c HTTP/1.1" 204 0
DEBUG:swiftclient:REQ: curl -i **http://swiftProxy:8080**/v1/AUTH_cdbcbc3eeb8a472c8abb2b67e749774c -I -H "X-Auth-Token:TRUNKATED
DEBUG:swiftclient:RESP STATUS: 204 No Content
DEBUG:swiftclient:RESP HEADERS: [('content-length', '0'), ('accept-ranges', 'bytes'), ('x-timestamp', '1476882488.69520'), ('x-trans-id', 'tx2f3a80acaf3149d78ca21-0058095f77'), ('date', 'Fri, 21 Oct 2016 00:21:11 GMT'), ('x-account-bytes-used', '55544'), ('x-account-container-count', '3'), ('content-type', 'text/plain; charset=utf-8'), ('x-account-object-count', '5')]
Account: AUTH_cdbcbc3eeb8a472c8abb2b67e749774c
Containers: 3
Objects: 5
Bytes: 55544
Accept-Ranges: bytes
X-Timestamp: 1476882488.69520
X-Trans-Id: tx2f3a80acaf3149d78ca21-0058095f77
Content-Type: text/plain; charset=utf-8
from coa.
Related Issues (20)
- Heat: successful stack creation, but nothing happens HOT 2
- openstack command: HttpException: Bad Request
- cinder: Volume type with name LUKS could not be found. (HTTP 404) HOT 1
- openstack cli command: created user within a group, but it doesn't appear in the list of horizon. Cannot connect to horizon with new user. HOT 1
- Swift: Cannot set expiry date for a container HOT 1
- Creating an instance : aborted: Block Device Mapping is Invalid. HOT 1
- Error: Unable to retrieve instances. HOT 1
- Cannot reach floating IP from outside network HOT 3
- Consequence of Rabbitmq service stopped HOT 1
- Policy doesn't allow os_compute_api:os-quota-sets:update to be performed. (HTTP 403) (Request-ID: HOT 1
- volume backup error : volumes_backup 403 Forbidden [first 60 chars of response] <html><h1>Forbidden</h1><p>Access was denied to this resourc
- neutron: External network ... is not reachable from subnet ... Therefore, cannot associate Port ... with a Floating IP HOT 1
- Block Device Mapping is Invalid : When creating xenial instance
- Creating instance: Power state = "no state" HOT 1
- Cannot SSH access to Debian cloud image 9.1.1: HOT 1
- libvirt & guestfish : Cannot run the image : Original error from libvirt: Cannot access storage file '/root/debian-9.1.1-20170725-openstack-amd64.qcow2' (as uid:107, gid:107): Permission denied [code=38 int1=13] HOT 2
- Cannot ping outside world from instance HOT 1
- Issue deleting external network from Horizon
- Swift installation on centos
- Facing issue with "openstack token issue"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coa.