Zaqar-Server Issue
Hey I'm a newbie to Zaqar. I am currently working on Devstack liberty release.
When I run,
zaqar-server -v
2015-12-29 12:09:40.010 1084 WARNING oslo_config.cfg [-] Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
2015-12-29 12:09:40.011 1084 DEBUG zaqar.bootstrap [-] Loading transport driver: websocket transport /opt/stack/zaqar/zaqar/bootstrap.py:105
2015-12-29 12:09:40.011 1084 DEBUG zaqar.bootstrap [-] Loading API handler api /opt/stack/zaqar/zaqar/bootstrap.py:66
2015-12-29 12:09:40.012 1084 DEBUG zaqar.bootstrap [-] Loading storage driver storage /opt/stack/zaqar/zaqar/bootstrap.py:73
2015-12-29 12:09:40.012 1084 DEBUG zaqar.bootstrap [-] Storage pooling enabled storage /opt/stack/zaqar/zaqar/bootstrap.py:75
2015-12-29 12:09:40.012 1084 DEBUG zaqar.bootstrap [-] Loading proxy cache driver cache /opt/stack/zaqar/zaqar/bootstrap.py:94
2015-12-29 12:09:40.013 1084 DEBUG zaqar.bootstrap [-] Loading storage control driver control /opt/stack/zaqar/zaqar/bootstrap.py:88
2015-12-29 12:09:40.053 1084 DEBUG zaqar.bootstrap [-] Loading storage pipeline storage /opt/stack/zaqar/zaqar/bootstrap.py:82
<LogRecord: trollius, 10, /usr/local/lib/python2.7/dist-packages/trollius/selector_events.py, 72, "Using selector: %s">
2015-12-29 12:09:40.175 1084 DEBUG trollius [-] Using selector: EpollSelector __init__ /usr/local/lib/python2.7/dist-packages/trollius/selector_events.py:72
2015-12-29 12:09:40.184 1084 INFO zaqar.transport.websocket.driver [-] Serving on host 10.20.33.6:9000
Summary
Zaqar-server is using the websocket driver and serving on 10.20.33.6:9000
While using the curl command for creating a queue.
curl -i -X PUT http://10.20.33.6:9000/v1/queues/sample -H "X-Auth-Token: 43b746c69bf94a7881749fdeb6aa8a6d" -H "Content-type: application/json" -d '{"metadata": "My Queue"}'
Output:
HTTP/1.1 405 HTTP method 'PUT' not allowed
While using curl command for listing queues,
curl -i -X GET http://10.20.33.6:9000/v1/queues -H "X-Auth-Token: 43b746c69bf94a7881749fdeb6aa8a6d"
Output:
HTTP/1.1 200 OK
Server: AutobahnPython/0.11.0
Content-Type: text/html; charset=UTF-8
Content-Length: 820
<!DOCTYPE html>
<html>
<head>
<style>
body {
color: #fff;
background-color: #027eae;
font-family: "Segoe UI", "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
}
a, a:visited, a:hover {
color: #fff;
}
</head>
<body>
<h1>AutobahnPython 0.11.0</h1>
<p>
I am not Web server, but a <b>WebSocket Endpoint</b>.
</p>
<p>
You can talk to me using the <a href="http://tools.ietf.org/html/rfc6455">WebSocket</a> protocol.
</p>
<p>
For more information, please see:
<ul>
<li><a href="http://autobahn.ws/python">AutobahnPython</a></li>
</ul>
</p>
</body>
</html>
</style>
Additional Information:
sudo netstat -tulpn | grep '8888'
tcp 0 0 10.20.33.6:8888 0.0.0.0:* LISTEN 23351/uwsgi
sudo netstat -tulpn | grep '9000'
tcp 0 0 10.20.33.6:9000 0.0.0.0:* LISTEN 1084/python
sudo netstat -tulpn | grep uwsgi
tcp 0 0 10.20.33.6:8888 0.0.0.0:* LISTEN 23351/uwsgi
tcp ...