Ask Your Question
0

swift Error: Unable to create container.

asked 2015-01-27 14:09:06 -0500

flovax gravatar image

updated 2015-01-28 07:30:58 -0500

Hi All,

I'm setup a new Juno openstack with 4 node (controller, network, object1, object2). Everything runs fine except swift. I just can't upload anything. I've followed the procedure in the the Juno Centos 7 doc but It seems like I'm missing something. The logs aren't helping me either.

From the dashboard, i get "Error: Unable to create container." when trying to create a container. Admin or not doesn't give a difference.

At the command line, i get the same thing:

[root@controller2 ~]# source admin-openrc.sh 
[root@controller2 ~]# swift list
[root@controller2 ~]# swift stat
                Account: AUTH_70e4d4b292b74f6390a236a9696b295f
             Containers: 0
                Objects: 0
                  Bytes: 0   X-Account-Project-Domain-Id: default
            X-Timestamp: 1422194336.52434
             X-Trans-Id: tx0f591c1fead244deb2800-0054c7eeb1
           Content-Type: text/plain; charset=utf-8
          Accept-Ranges: bytes
[root@controller2 ~]# swift upload myfiles ./anaconda-ks.cfg


Error trying to create container 'myfiles': 404 Not Found: <html><h1>Not Found</h1><p>The resource could not be found.<
Object HEAD failed: http://controller2:8080/v1/AUTH_70e4d4b292b74f6390a236a9696b295f/myfiles/anaconda-ks.cfg 400 Bad Request
[root@controller2 ~]# ls -l anaconda-ks.cfg
-rwxr-xr-x. 1 root root 1107 Jan 19 21:27 anaconda-ks.cfg
[root@controller2 ~]# tail /var/log/messages
Jan 27 15:00:01 controller2 systemd: Created slice user-163.slice.
Jan 27 15:00:01 controller2 systemd: Starting Session 80 of user keystone.
Jan 27 15:00:01 controller2 systemd: Started Session 80 of user keystone.
Jan 27 15:01:01 controller2 systemd: Starting Session 81 of user root.
Jan 27 15:01:01 controller2 systemd: Started Session 81 of user root.
Jan 27 15:01:49 controller2 proxy-server: 10.3.1.12 10.3.1.12 27/Jan/2015/20/01/49 GET /v1/AUTH_70e4d4b292b74f6390a236a9696b295f%3Fformat%3Djson HTTP/1.0 200 - python-swiftclient-2.3.1 4c7741906730433d... - 2 - tx8c534a4fcad0495d8cdeb-0054c7eead - 0.0075 - - 1422388909.533025026 1422388909.540486097
Jan 27 15:01:53 controller2 proxy-server: 10.3.1.12 10.3.1.12 27/Jan/2015/20/01/53 HEAD /v1/AUTH_70e4d4b292b74f6390a236a9696b295f HTTP/1.0 204 - python-swiftclient-2.3.1 f4c3e929be12488c... - - - tx0f591c1fead244deb2800-0054c7eeb1 - 0.0063 - - 1422388913.241256952 1422388913.247570992
Jan 27 15:02:00 controller2 proxy-server: 10.3.1.12 10.3.1.12 27/Jan/2015/20/02/00 HEAD /v1/AUTH_70e4d4b292b74f6390a236a9696b295f HTTP/1.0 204 - python-swiftclient-2.3.1 780a8a82612941f9... - - - txd8babfc2efcf4f5ebb7c1-0054c7eeb8 - 0.0061 - - 1422388920.070734024 1422388920.076879978
Jan 27 15:02:00 controller2 proxy-server: 10.3.1.12 10.3.1.12 27/Jan/2015/20/02/00 PUT /v1/AUTH_70e4d4b292b74f6390a236a9696b295f/myfiles HTTP/1.0 404 - python-swiftclient-2.3.1 780a8a82612941f9... - 70 - tx8cd952a9471b47fb97d18-0054c7eeb8 - 0.0063 - - 1422388920.122365952 1422388920.128710985
Jan 27 15:02:00 controller2 proxy-server: 10.3.1.12 10.3.1.12 27/Jan/2015/20/02/00 HEAD /v1/AUTH_70e4d4b292b74f6390a236a9696b295f/myfiles/anaconda-ks.cfg HTTP/1.0 400 - python-swiftclient-2.3.1 be9ea3c9db9b420d... - - - tx3c53e57dc7c4428eaeb70-0054c7eeb8 - 0.0194 - - 1422388920.299269915 1422388920.318623066

On the objects server, i can see some files created:

[root@object1 log]# find /srv/node/ -ls
34341045    0 drwxr-xr-x   4 swift    swift          28 Jan 26 23:05 /srv/node/
   128    0 drwxr-xr-x   4 swift    swift          31 Jan 25 08:52 /srv/node/sdb1
   131    0 drwxr-xr-x ...
(more)
edit retag flag offensive close merge delete

Comments

Could you try to use the POST command

ebyenjoys gravatar imageebyenjoys ( 2015-01-27 14:51:29 -0500 )edit

[root@controller2 ~]# swift post

proxy-server: - - 27/Jan/2015/21/36/29 HEAD /v1/AUTH_70e4d4b292b74f6390a236a9696b295f HTTP/1.0 204 - Swift - - - - txc23de532f64e446895...

proxy-server: 10.3.1.12 10.3.1.12 27/Jan/2015/21/36/29 POST /v1/AUTH_70e4d4b292b74f6390a236a9696b295f HTTP/1.0 204 - pyth.

flovax gravatar imageflovax ( 2015-01-27 15:40:10 -0500 )edit

Actually... swift post test1

flovax gravatar imageflovax ( 2015-01-27 15:46:43 -0500 )edit

Jan 27 16:45:26 controller2 proxy-server: 10.3.1.12 10.3.1.12 27/Jan/2015/21/45/26 POST /v1/AUTH_70e4d4b292b74f6390a236a9696b295f/test1 HTTP/1.0 400 - python-swiftclient-2.3.1 f7031e79c56b46ec... - 67 - txc7b97594e1044c958f6ae-0054c806f6 - 0.0114 - - 1422395126.383873940 1422395126.395247936

flovax gravatar imageflovax ( 2015-01-27 15:46:47 -0500 )edit

Are you able to list the created containers?

ebyenjoys gravatar imageebyenjoys ( 2015-01-28 05:39:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-03 07:57:16 -0500

Hi, command should be like this : swift upload myfiles anaconda-ks.cfg This will upload anaconda-ks.cfg file to myfiles container. Later you can download,list and delete the containers.

edit flag offensive delete link more

Comments

Authorization Failure. Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-37941974-aff4-4daa-b93c-55c775907b0f)

soumitrakarmakar gravatar imagesoumitrakarmakar ( 2015-09-28 05:07:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-27 14:09:06 -0500

Seen: 3,146 times

Last updated: Feb 03 '15