Ask Your Question
0

unable to create the container

asked 2017-09-05 16:35:56 -0500

Costas gravatar image

Hello to all,

I have followed the newton installation on Ubuntu 16.04 https://docs.openstack.org/newton/install-guide-ubuntu/ (https://docs.openstack.org/newton/ins...) (https://docs.openstack.org/newton/ins...) and I try to create object on dashboard with no success. the errors that we get are below:

"Unable to get the Swift container listing" "Unable to get the Swift service info" "Unable to create the container"

Do you have any idea on this? Thanks, Costas

edit retag flag offensive close merge delete

Comments

Please check the logs to see if there are any errors

teju gravatar imageteju ( 2017-09-05 19:40:48 -0500 )edit

Alternatively, try the command line, something like swift post containername. There must also be an equivalent command for the openstack client.

You may see better error messages than in Horizon, and you can use debug options.

Bernd Bausch gravatar imageBernd Bausch ( 2017-09-06 04:26:16 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-06 15:51:07 -0500

Costas gravatar image

updated 2017-09-07 05:56:34 -0500

Hello teju,

Here is the steps about finalize:

root@Controller:~# **swift stat**
                        Account: AUTH_d680cfd5345a4406983fdf7bc70a8992
                     Containers: 1
                        Objects: 0
                          Bytes: 0
Containers in policy "policy-0": 1
   Objects in policy "policy-0": 0
     Bytes in policy "policy-0": 0
    X-Account-Project-Domain-Id: default
         X-Openstack-Request-Id: txf0a729abd06d4e5c97093-0059b05cce
                    X-Timestamp: 1503742274.03262
                     X-Trans-Id: txf0a729abd06d4e5c97093-0059b05cce
                   Content-Type: text/plain; charset=utf-8
                  Accept-Ranges: bytes
root@Controller:~# 
root@Controller:~# 
root@Controller:~# **openstack container create container1**
+---------------------------------------+------------+------------------------------------+
| account                               | container  | x-trans-id                         |
+---------------------------------------+------------+------------------------------------+
| AUTH_d680cfd5345a4406983fdf7bc70a8992 | container1 | txaea83c310a3845afbbca1-0059b05cf8 |
+---------------------------------------+------------+------------------------------------+
root@Controller:~# 
root@Controller:~# 
root@Controller:~# **openstack object create container1 MyContainer1**
+--------------+------------+----------------------------------+
| object       | container  | etag                             |
+--------------+------------+----------------------------------+
| MyContainer1 | container1 | c1ae996d083fd73a0306f66b3f163d1f |
+--------------+------------+----------------------------------+
root@Controller:~# 
root@Controller:~# **openstack object list container1**
+--------------+
| Name         |
+--------------+
| MyContainer1 |
+--------------+
root@Controller:~# **openstack object save container1 MyContainer1**
root@Controller:~#

It seems that works properly but I get the same errors on dashboard and there isn't any container on it.

I do not find the folder swift on /var/log/ in order to find the logs. Is there different location for the logs?

Thanks,

Costas

edit flag offensive delete link more

Comments

If I am not wrong, swift writes to the system log by default.

Bernd Bausch gravatar imageBernd Bausch ( 2017-09-07 05:57:34 -0500 )edit

I just notice your message "Unable to get the Swift service info". Somehow, horizon is unable to use swift at all, it would seem. Perhaps you see more in the horizon log. Are you sure you are the same user and project in horizon and on the command line?

Bernd Bausch gravatar imageBernd Bausch ( 2017-09-07 06:01:21 -0500 )edit

How can I find this? All the changes are doing with root from command line.

Costas gravatar imageCostas ( 2017-09-07 06:07:30 -0500 )edit

OpenStack user, not Linux user. You need to set your environment. See https://docs.openstack.org/zh_CN/user... (this is the Chinese language version of the doc, but this particular page is in English).

Bernd Bausch gravatar imageBernd Bausch ( 2017-09-07 17:21:05 -0500 )edit

An OpenStack user must have the swiftoperator or admin role in order to launch the swift stat command or the equivalent in the dashboard. Please verify that.

mlschuler gravatar imagemlschuler ( 2017-09-11 08:48:41 -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: 2017-09-05 16:35:56 -0500

Seen: 457 times

Last updated: Sep 07 '17