Error 404 ClientException: Object HEAD failed:

Asked by DMGWEB

Hello,

I installed swift in a single node, but with two hard drives.

In theory all seems to work well, because I can make a swift stat and I returned the token.

The problem is when I try to upload a file and create a container that gives me 404.

I put the debug:

root@controller:/etc/swift# swift -V 3 stat
                     Account: AUTH_42d0a15d5d1a49c294cf98dad25174b6
                  Containers: 0
                     Objects: 0
                       Bytes: 0
X-Account-Project-Domain-Id: default
                  Connection: keep-alive
                 X-Timestamp: 1435658373.54814
                  X-Trans-Id: txe42b8859d63a4a6b86cc0-00559270c1
                Content-Type: text / plain; charset = utf-8
               Accept-Ranges: bytes

root@controller:/etc/swift# swift --debug -V 3 upload demo-container1 FILE
DEBUG:keystoneclient.auth.identity.v3:Making authentication request to http://controller.dmgweb.es:35357/v3/auth/tokens
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller.dmgweb.es
DEBUG:urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 7380
DEBUG:iso8601.iso8601:Parsed 2015-06-30T11:35:06.153985Z into {'tz_sign': None, 'second_fraction': u'153985', 'hour': u'11', 'daydash': u'30', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'06', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'06', 'day': None, 'minute': u'35'} with default timezone <iso8601.iso8601.Utc object at 0x7ffb5d2101d0>
DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'06' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 6 for 'month' with default 6
DEBUG:iso8601.iso8601:Got u'30' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 30 for 'day' with default 30
DEBUG:iso8601.iso8601:Got u'11' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'35' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'06' for 'second' with default None
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller.dmgweb.es
DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6 HTTP/1.1" 204 0
DEBUG:swiftclient:REQ: curl -i http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6 -I -H "X-Auth-Token: 21321485d25d4850b2e4ee1054bf254d"
DEBUG:swiftclient:RESP STATUS: 204 No Content
DEBUG:swiftclient:RESP HEADERS: [('content-length', '0'), ('x-account-object-count', '0'), ('x-account-project-domain-id', 'default'), ('connection', 'keep-alive'), ('x-timestamp', '1435658373.54814'), ('x-trans-id', 'tx8c6c14f1ec0641809739c-00559270da'), ('date', 'Tue, 30 Jun 2015 10:35:06 GMT'), ('x-account-bytes-used', '0'), ('x-account-container-count', '0'), ('content-type', 'text/plain; charset=utf-8'), ('accept-ranges', 'bytes')]
DEBUG:urllib3.connectionpool:"PUT /v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1 HTTP/1.1" 404 70
INFO:swiftclient:REQ: curl -i http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 21321485d25d4850b2e4ee1054bf254d"
INFO:swiftclient:RESP STATUS: 404 Not Found
INFO:swiftclient:RESP HEADERS: [('date', 'Tue, 30 Jun 2015 10:35:06 GMT'), ('content-length', '70'), ('content-type', 'text/html; charset=UTF-8'), ('connection', 'keep-alive'), ('x-trans-id', 'tx72ce60c9639748f981519-00559270da')]
INFO:swiftclient:RESP BODY: <html><h1>Not Found</h1><p>The resource could not be found.</p></html>
ERROR:swiftclient:Container PUT failed: http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1243, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 731, in put_container
    http_response_content=body)
ClientException: Container PUT failed: http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
Error trying to create container 'demo-container1': 404 Not Found: <html><h1>Not Found</h1><p>The resource could not be found.<
DEBUG:keystoneclient.auth.identity.v3:Making authentication request to http://controller.dmgweb.es:35357/v3/auth/tokens
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller.dmgweb.es
DEBUG:urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 7380
DEBUG:iso8601.iso8601:Parsed 2015-06-30T11:35:06.358251Z into {'tz_sign': None, 'second_fraction': u'358251', 'hour': u'11', 'daydash': u'30', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'06', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'06', 'day': None, 'minute': u'35'} with default timezone <iso8601.iso8601.Utc object at 0x7ffb5d2101d0>
DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'06' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 6 for 'month' with default 6
DEBUG:iso8601.iso8601:Got u'30' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 30 for 'day' with default 30
DEBUG:iso8601.iso8601:Got u'11' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'35' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'06' for 'second' with default None
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller.dmgweb.es
DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1/FILE HTTP/1.1" 400 0
INFO:swiftclient:REQ: curl -i http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1/FILE -I -H "X-Auth-Token: 6abd0846d672441a915f7a43fa3d0c94"
INFO:swiftclient:RESP STATUS: 400 Bad Request
INFO:swiftclient:RESP HEADERS: [('date', 'Tue, 30 Jun 2015 10:35:06 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('connection', 'keep-alive'), ('x-trans-id', 'txe549b3e5bad14cf7aee59-00559270da')]
ERROR:swiftclient:Object HEAD failed: http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1/FILE 400 Bad Request
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1243, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 909, in head_object
    http_response_content=body)
ClientException: Object HEAD failed: http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1/FILE 400 Bad Request
Object HEAD failed: http://controller.dmgweb.es:8080/v1/AUTH_42d0a15d5d1a49c294cf98dad25174b6/demo-container1/FILE 400 Bad Request

In / srv / node / sdx and / srv / node / sdy the account and tmp folders are created

Any idea?

Very thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu swift Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.