[ceph-users] Swift not creating container rados gateway

2014-07-31 Thread
Hi , All


swift stat and list commnad works buti can not create a container.
swift post command Error occurs.
(Container POST failed: http://EXFS1/swift/v1/test 400 Bad Request  [first 60 
chars of response] !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN) .

# swift  --debug -A http://EXFS1/auth -U testuser:swift -K 
bVwgc167mmLDVwpw4ufTkurK3vHp0G3MxAXpevQl post test
INFO:urllib3.connectionpool:Starting new HTTP connection (1): EXFS1
DEBUG:urllib3.connectionpool:GET /auth HTTP/1.1 204 0
DEBUG:swiftclient:REQ: curl -i http://EXFS1/auth -X GET
DEBUG:swiftclient:RESP STATUS: 204 No Content
DEBUG:swiftclient:RESP HEADERS: [('connection', 'close'), ('x-storage-token', 
'AUTH_rgwtk0e0074657374757365723a73776966746adff3e2426a97129223db53587e5623d9919a23dd00ae053a415d768ad3ce4e7319bfbd'),
 ('date', 'Thu, 31 Jul 2014 05:20:18 GMT'), ('x-storage-url', 
'http://EXFS1/swift/v1'), ('x-auth-token', 
'AUTH_rgwtk0e0074657374757365723a73776966746adff3e2426a97129223db53587e5623d9919a23dd00ae053a415d768ad3ce4e7319bfbd'),
 ('content-type', 'application/json'), ('server', 'Apache/2.2.22 (Fedora)')]
INFO:urllib3.connectionpool:Starting new HTTP connection (1): EXFS1
DEBUG:urllib3.connectionpool:POST /swift/v1/test HTTP/1.1 400 226
INFO:swiftclient:REQ: curl -i http://EXFS1/swift/v1/test -X POST -H 
Content-Length: 0 -H X-Auth-Token: 
AUTH_rgwtk0e0074657374757365723a73776966746adff3e2426a97129223db53587e5623d9919a23dd00ae053a415d768ad3ce4e7319bfbd
INFO:swiftclient:RESP STATUS: 400 Bad Request
INFO:swiftclient:RESP HEADERS: [('date', 'Thu, 31 Jul 2014 05:20:18 GMT'), 
('content-length', '226'), ('content-type', 'text/html; charset=iso-8859-1'), 
('connection', 'close'), ('server', 'Apache/2.2.22 (Fedora)')]
INFO:swiftclient:RESP BODY: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title400 Bad Request/title
/headbody
h1Bad Request/h1
pYour browser sent a request that this server could not understand.br /
/p
/body/html

ERROR:swiftclient:Container POST failed: http://EXFS1/swift/v1/test 400 Bad 
Request  [first 60 chars of response] !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 
2.0//EN
htmlhe
Traceback (most recent call last):
  File /opt/stack/python-swiftclient/swiftclient/client.py, line 1208, in 
_retry
rv = func(self.url, self.token, *args, **kwargs)
  File /opt/stack/python-swiftclient/swiftclient/client.py, line 736, in 
post_container
http_response_content=body)
ClientException: Container POST failed: http://EXFS1/swift/v1/test 400 Bad 
Request  [first 60 chars of response] !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 
2.0//EN
htmlhe
Container POST failed: http://EXFS1/swift/v1/test 400 Bad Request  [first 60 
chars of response] !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhe


swift stat and swift list command in information can see.
# swift  -A http://EXFS1/auth -U testuser:swift -K 
bVwgc167mmLDVwpw4ufTkurK3vHp0G3MxAXpevQl stat
   Account: v1
Containers: 0
   Objects: 0
 Bytes: 0
Server: Apache/2.2.22 (Fedora)
Connection: close
X-Account-Bytes-Used-Actual: 0
  Content-Type: text/plain; charset=utf-8

# swift  -A http://EXFS1/auth -U testuser:swift -K 
bVwgc167mmLDVwpw4ufTkurK3vHp0G3MxAXpevQl list
(Nothing)


What should I do?
Please help my problem. 

*Rados GW Server information
CentOS release 6.5
# ceph -v
ceph version 0.80.4 (7c241cfaa6c8c068bc9da8578ca00b9f4fc7567f)
# hostname -f
EXFS1

*Steps i did install

1)Install Apache and FastCGI.
# yum update  yum install httpd mod_fastcgi


2)Change the httpd.conf file
# vi /etc/httpd/conf/httpd.conf
ServerName EXFS1  #add hostname -f


3)Install mod_ssl and openssl
# yum install mod_ssl openssl


4)Generate a certificate and copy it the appropriate locations.
# openssl genrsa -out ca.key 2048 
# openssl req -new -key ca.key -out ca.csr
# openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
# cp ca.crt /etc/pki/tls/certs
# cp ca.key /etc/pki/tls/private/ca.key
# cp ca.csr /etc/pki/tls/private/ca.csr


5)Http service start
# /etc/init.d/httpd start


6)radosGW install
# yum install ceph-radosgw ceph


*Steps i did setting

1)Create a client.radosgw.gateway keyring
# ceph-authtool --create-keyring /etc/ceph/ceph.client.radosgw.keyring
# chmod +r /etc/ceph/ceph.client.radosgw.keyring
# ceph-authtool /etc/ceph/ceph.client.radosgw.keyring -n client.radosgw.gateway 
--gen-key
# ceph-authtool -n client.radosgw.gateway --cap osd 'allow rwx' --cap mon 
'allow rw' /etc/ceph/ceph.client.radosgw.keyring
# ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.radosgw.gateway 
-i /etc/ceph/ceph.client.radosgw.keyring

client.radosgw.gateway
key: AQA5ltRT6DEEBRAA5oGPolWuwuqFrUEzXabcKw==
caps: [mon] allow rw
caps: [osd] allow rwx


2)Add a GW configuration to ceph.conf
[client.radosgw.gateway]
host = EXFS1
keyring = /etc/ceph/ceph.client.radosgw.keyring
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock
log file = /var/log/ceph/client.radosgw.gateway.log
rgw print continue = 

Re: [ceph-users] Swift not creating container rados gateway

2014-07-31 Thread
Hi , Ashish

Thank you for reply.

*swiftclient version is
# swift --version
swift 2.1.0.22.g394cb57


*hostname -f is EXFS1.oqnet.org
Changing config file /etc/httpd/conf.d/rgw.conf
ServerName EXFS1
↓
ServerName EXFS1.oqnet.org

/etc/init.d/httpd restart
/etc/init.d/ceph-radosgw restart

# swift --debug  -A http://EXFS1.oqnet.org/auth -U testuser:swift -K 
bVwgc167mmLDVwpw4ufTkurK3vHp0G3MxAXpevQl post test
INFO:urllib3.connectionpool:Starting new HTTP connection (1): EXFS1.oqnet.org
DEBUG:urllib3.connectionpool:GET /auth HTTP/1.1 204 0
DEBUG:swiftclient:REQ: curl -i http://EXFS1.oqnet.org/auth -X GET
DEBUG:swiftclient:RESP STATUS: 204 No Content
DEBUG:swiftclient:RESP HEADERS: [('connection', 'close'), ('x-storage-token', 
'AUTH_rgwtk0e0074657374757365723a7377696674dcd6e17a118a083a6581db53802fb716e8f8ba48edf5c66f13ee82a10f8459b6e734e6ab'),
 ('date', 'Thu, 31 Jul 2014 12:00:37 GMT'), ('x-storage-url', 
'http://EXFS1.oqnet.org/swift/v1'), ('x-auth-token', 
'AUTH_rgwtk0e0074657374757365723a7377696674dcd6e17a118a083a6581db53802fb716e8f8ba48edf5c66f13ee82a10f8459b6e734e6ab'),
 ('content-type', 'application/json'), ('server', 'Apache/2.2.22 (Fedora)')]
INFO:urllib3.connectionpool:Starting new HTTP connection (1): EXFS1.oqnet.org
DEBUG:urllib3.connectionpool:POST /swift/v1/test HTTP/1.1 400 226
INFO:swiftclient:REQ: curl -i http://EXFS1.oqnet.org/swift/v1/test -X POST -H 
Content-Length: 0 -H X-Auth-Token: 
AUTH_rgwtk0e0074657374757365723a7377696674dcd6e17a118a083a6581db53802fb716e8f8ba48edf5c66f13ee82a10f8459b6e734e6ab
INFO:swiftclient:RESP STATUS: 400 Bad Request
INFO:swiftclient:RESP HEADERS: [('date', 'Thu, 31 Jul 2014 12:00:37 GMT'), 
('content-length', '226'), ('content-type', 'text/html; charset=iso-8859-1'), 
('connection', 'close'), ('server', 'Apache/2.2.22 (Fedora)')]
INFO:swiftclient:RESP BODY: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title400 Bad Request/title
/headbody
h1Bad Request/h1
pYour browser sent a request that this server could not understand.br /
/p
/body/html

ERROR:swiftclient:Container POST failed: http://EXFS1.oqnet.org/swift/v1/test 
400 Bad Request  [first 60 chars of response] !DOCTYPE HTML PUBLIC 
-//IETF//DTD HTML 2.0//EN
htmlhe
Traceback (most recent call last):
  File /opt/stack/python-swiftclient/swiftclient/client.py, line 1208, in 
_retry
rv = func(self.url, self.token, *args, **kwargs)
  File /opt/stack/python-swiftclient/swiftclient/client.py, line 736, in 
post_container
http_response_content=body)
ClientException: Container POST failed: http://EXFS1.oqnet.org/swift/v1/test 
400 Bad Request  [first 60 chars of response] !DOCTYPE HTML PUBLIC 
-//IETF//DTD HTML 2.0//EN
htmlhe
Container POST failed: http://EXFS1.oqnet.org/swift/v1/test 400 Bad Request  
[first 60 chars of response] !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhe


'hostname' and 'hostname -f'  but it was the same result.


Yamashita

=
OSS Laboratories Inc.
Yoshitami Yamashita
Mail:yamash...@ossl.co.jp

- 元のメッセージ -
 差出人: Ashish Chandra mail.ashishchan...@gmail.com
 宛先: 山下 良民 yamash...@ossl.co.jp
 Cc: ceph-users ceph-users@lists.ceph.com
 送信済み: 2014年7月31日, 木曜日 午後 7:33:27
 件名: Re: [ceph-users] Swift not creating container rados gateway
 
 
 Ahh I forgot to put the debug log,
 
 
 
 ashish@firefly-master:~$ swift --debug -A http://firefly-master/auth
 -U johndoe:swift -K Nva7Uasg3L1M7h38ZE8V2rxg4YCegRPgi1MX3pnd post
 jai
 INFO:urllib3.connectionpool:Starting new HTTP connection (1):
 firefly-master
 DEBUG:urllib3.connectionpool:Setting read timeout to object object
 at 0x7f536a9ad0a0
 DEBUG:urllib3.connectionpool:GET /auth HTTP/1.1 204 0
 DEBUG:swiftclient:REQ: curl -i http://firefly-master/auth -X GET
 DEBUG:swiftclient:RESP STATUS: 204 No Content
 DEBUG:swiftclient:RESP HEADERS: [('x-auth-token',
 'AUTH_rgwtk0d006a6f686e646f653a7377696674dc67a26cf80db03ce968db53989eb824c818f0028cceaf5e744a70e694df170f276e23a7'),
 ('x-storage-token',
 'AUTH_rgwtk0d006a6f686e646f653a7377696674dc67a26cf80db03ce968db53989eb824c818f0028cceaf5e744a70e694df170f276e23a7'),
 ('date', 'Thu, 31 Jul 2014 10:16:09 GMT'), ('x-storage-url', '
 http://firefly-master/swift/v1' ), ('server', 'Apache/2.4.7
 (Ubuntu)'), ('content-type', 'application/json')]
 INFO:urllib3.connectionpool:Starting new HTTP connection (1):
 firefly-master
 DEBUG:urllib3.connectionpool:Setting read timeout to object object
 at 0x7f536a9ad0a0
 DEBUG:urllib3.connectionpool:POST /swift/v1/jai HTTP/1.1 404 12
 INFO:swiftclient:REQ: curl -i http://firefly-master/swift/v1/jai -X
 POST -H Content-Length: 0 -H X-Auth-Token:
 AUTH_rgwtk0d006a6f686e646f653a7377696674dc67a26cf80db03ce968db53989eb824c818f0028cceaf5e744a70e694df170f276e23a7
 INFO:swiftclient:RESP STATUS: 404 Not Found
 INFO:swiftclient:RESP HEADERS: [('date', 'Thu, 31 Jul 2014 10:16:09
 GMT'), ('accept-ranges', 'bytes'), ('content-type', 'text/plain;
 charset=utf-8'), ('content-length', '12'), ('server', 'Apache/2.4.7

Re: [ceph-users] Fail to Block Devices and OpenStack

2014-06-12 Thread
HI,

Thanks for your information!
I will check it soon, and will post results later,
Thanks a lot and best regards,

Yamashita

=
OSS Laboratories Inc.
Yoshitami Yamashita
Mail:yamash...@ossl.co.jp

- 元のメッセージ -
差出人: Karan Singh karan.si...@csc.fi
宛先: 山下 良民 yamash...@ossl.co.jp
Cc: ceph-users@lists.ceph.com
送信済み: 2014年6月10日, 火曜日 午後 6:49:56
件名: Re: [ceph-users] Fail to Block Devices and OpenStack

HI Yamashita

First try to create a cinder volume , that should be stored on ceph backend, 
then proceeded with glance image on Ceph.

I assume you have done all the steps correctly as mentioned on ceph 
documentation for ceph and openstack integration , if you are still not able to 
create volumes, then enable debug=true in cinder config file and check 
cinder-volume and scheduler logs . 
You will get some clue where the error is.

- Karan Singh -

On 10 Jun 2014, at 09:21, 山下 良民 yamash...@ossl.co.jp wrote:

 Hi,
 
 I can mount from connect to Ceph BlockDevice mount.
 
 glance image-create is created on the local.
 # glance image-list
 +--+-+-+--+---++
 | ID   | Name| 
 Disk Format | Container Format | Size  | Status |
 +--+-+-+--+---++
 | f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e | cirros  | 
 raw | ovf  | 41126400  | active |
 +--+-+-+--+---++
 
 cindercreate is an error is not created in the Ceph.
 
 Yamashita
 
 
 - 元のメッセージ -
 差出人: 山下 良民 yamash...@ossl.co.jp
 宛先: ceph-users@lists.ceph.com
 送信済み: 2014年6月10日, 火曜日 午前 11:55:48
 件名: [ceph-users] Fail to Block Devices and OpenStack
 
 Hi,
 
 I fail for the cooperation of Openstack and Ceph.
 I was set on the basis of the url.
 http://ceph.com/docs/next/rbd/rbd-openstack/
 
 Can look at the state of cephcluster from Openstack(cephClient)
 Failure occurs at cinder create
 
 Ceph Cluster:
 CentOS release 6.5
 Ceph 0.80.1
 
 OpenStack:
 Ubuntu 12.04.4
 OpenStack DevStack Icehouse
 
 # glance image-create --name cirros --disk-format raw
 --container-format ovf --file
 /usr/local/src/cirros-0.3.2-x86_64-disk.raw --is-public True
 +--+--+
 | Property | Value|
 +--+--+
 | checksum | cf2392db1f59d59ed69a8f8491b670e0 |
 | container_format | ovf  |
 | created_at   | 2014-06-09T05:04:48  |
 | deleted  | False|
 | deleted_at   | None |
 | disk_format  | raw  |
 | id   | f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e |
 | is_public| True |
 | min_disk | 0|
 | min_ram  | 0|
 | name | cirros   |
 | owner| 5a10a1fed82b45a7affaf57f814434bb |
 | protected| False|
 | size | 41126400 |
 | status   | active   |
 | updated_at   | 2014-06-09T05:04:50  |
 | virtual_size | None |
 +--+--+
 
 
 # cinder create --image-id f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e
 --display-name boot-from-rbd 1
 ++--+
 |Property|Value
 ||
 ++--+
 |  attachments   |  []
 |   |
 |   availability_zone| nova
 |   |
 |bootable|false
 ||
 |   created_at   |  2014-06-09T05:12:51.00
 ||
 |  description   | None
 |  |
 |   encrypted|False
 |   |
 |   id   |
 |   30d1eee7-54d6-4911-af06-b35d2f8ef0c4 |
 |metadata|  {}
 | |
 |  name  |boot-from-rbd
 |  |
 | os-vol-host-attr:host  | None
 | |
 | os-vol-mig

Re: [ceph-users] Fail to Block Devices and OpenStack

2014-06-10 Thread
Hi,

I can mount from connect to Ceph BlockDevice mount.

glance image-create is created on the local.
# glance image-list
+--+-+-+--+---++
| ID   | Name| Disk 
Format | Container Format | Size  | Status |
+--+-+-+--+---++
| f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e | cirros  | raw  
   | ovf  | 41126400  | active |
+--+-+-+--+---++

cindercreate is an error is not created in the Ceph.

Yamashita


- 元のメッセージ -
 差出人: 山下 良民 yamash...@ossl.co.jp
 宛先: ceph-users@lists.ceph.com
 送信済み: 2014年6月10日, 火曜日 午前 11:55:48
 件名: [ceph-users] Fail to Block Devices and OpenStack
 
 Hi,
 
 I fail for the cooperation of Openstack and Ceph.
 I was set on the basis of the url.
 http://ceph.com/docs/next/rbd/rbd-openstack/
 
 Can look at the state of cephcluster from Openstack(cephClient)
 Failure occurs at cinder create
 
 Ceph Cluster:
 CentOS release 6.5
 Ceph 0.80.1
 
 OpenStack:
 Ubuntu 12.04.4
 OpenStack DevStack Icehouse
 
 # glance image-create --name cirros --disk-format raw
 --container-format ovf --file
 /usr/local/src/cirros-0.3.2-x86_64-disk.raw --is-public True
 +--+--+
 | Property | Value|
 +--+--+
 | checksum | cf2392db1f59d59ed69a8f8491b670e0 |
 | container_format | ovf  |
 | created_at   | 2014-06-09T05:04:48  |
 | deleted  | False|
 | deleted_at   | None |
 | disk_format  | raw  |
 | id   | f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e |
 | is_public| True |
 | min_disk | 0|
 | min_ram  | 0|
 | name | cirros   |
 | owner| 5a10a1fed82b45a7affaf57f814434bb |
 | protected| False|
 | size | 41126400 |
 | status   | active   |
 | updated_at   | 2014-06-09T05:04:50  |
 | virtual_size | None |
 +--+--+
 
 
 # cinder create --image-id f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e
 --display-name boot-from-rbd 1
 ++--+
 |Property|Value
 ||
 ++--+
 |  attachments   |  []
 |   |
 |   availability_zone| nova
 |   |
 |bootable|false
 ||
 |   created_at   |  2014-06-09T05:12:51.00
 ||
 |  description   | None
 |  |
 |   encrypted|False
 |   |
 |   id   |
 |   30d1eee7-54d6-4911-af06-b35d2f8ef0c4 |
 |metadata|  {}
 | |
 |  name  |boot-from-rbd
 |  |
 | os-vol-host-attr:host  | None
 | |
 | os-vol-mig-status-attr:migstat | None
 | |
 | os-vol-mig-status-attr:name_id | None
 | |
 |  os-vol-tenant-attr:tenant_id  |   5a10a1fed82b45a7affaf57f814434bb
 ||
 |  size  |  1
 ||
 |  snapshot_id   | None
 |  |
 |  source_volid  | None
 |  |
 | status |   creating
 |   |
 |user_id |   90ed966837e44f91a582b73960dd848c
 |  |
 |  volume_type   | None
 |  |
 ++--+
 
 # cinder list

[ceph-users] Fail to Block Devices and OpenStack

2014-06-09 Thread
Hi,

I fail for the cooperation of Openstack and Ceph.
I was set on the basis of the url.
http://ceph.com/docs/next/rbd/rbd-openstack/

Can look at the state of cephcluster from Openstack(cephClient)
Failure occurs at cinder create

Ceph Cluster:
CentOS release 6.5
Ceph 0.80.1

OpenStack:
Ubuntu 12.04.4
OpenStack DevStack Icehouse

# glance image-create --name cirros --disk-format raw --container-format ovf 
--file /usr/local/src/cirros-0.3.2-x86_64-disk.raw --is-public True 
   
+--+--+
| Property | Value|
+--+--+
| checksum | cf2392db1f59d59ed69a8f8491b670e0 |
| container_format | ovf  |
| created_at   | 2014-06-09T05:04:48  |
| deleted  | False|
| deleted_at   | None |
| disk_format  | raw  |
| id   | f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e |
| is_public| True |
| min_disk | 0|
| min_ram  | 0|
| name | cirros   |
| owner| 5a10a1fed82b45a7affaf57f814434bb |
| protected| False|
| size | 41126400 |
| status   | active   |
| updated_at   | 2014-06-09T05:04:50  |
| virtual_size | None |
+--+--+


# cinder create --image-id f4a0f971-437b-4d3f-a0c4-1c82f31e9f1e --display-name 
boot-from-rbd 1
++--+
|Property|Value |
++--+
|  attachments   |  []  |
|   availability_zone| nova |
|bootable|false |
|   created_at   |  2014-06-09T05:12:51.00  |
|  description   | None |
|   encrypted|False |
|   id   | 30d1eee7-54d6-4911-af06-b35d2f8ef0c4 |
|metadata|  {}  |
|  name  |boot-from-rbd |
| os-vol-host-attr:host  | None |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
|  os-vol-tenant-attr:tenant_id  |   5a10a1fed82b45a7affaf57f814434bb   |
|  size  |  1   |
|  snapshot_id   | None |
|  source_volid  | None |
| status |   creating   |
|user_id |   90ed966837e44f91a582b73960dd848c   |
|  volume_type   | None |
++--+

# cinder list
+--++---+--+-+--+-+
|  ID  | Status |  Name | Size | Volume 
Type | Bootable | Attached to |
+--++---+--+-+--+-+
| 30d1eee7-54d6-4911-af06-b35d2f8ef0c4 | error  | boot-from-rbd |  1   | 
None|  false   | |
+--++---+--+-+--+-+

I've done all the setting of URL(http://ceph.com/docs/next/rbd/rbd-openstack/)
There is a setup required except URL?



Best Regards.

Yamashita
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com