Revision history [back]

click to hide/show revision 1
initial version

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

<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>

AutobahnPython 0.11.0

I am not Web server, but a WebSocket Endpoint.

You can talk to me using the WebSocket protocol.

For more information, please see:

</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 0 0 127.0.0.1:56930 0.0.0.0:* LISTEN 23351/uwsgi

Is there any configuration changes to be made in devstack for zaqar-server to use the 8888 port and not 9000 port?

How do I use curl commands with zaqar websocket driver?

Any links that would help me understand zaqar drivers would be great.

Thanks in advance.

Zaqar-Server Issue

Hey I'm a newbie to Zaqar. I am currently working on Devstack liberty release.

When I run,

zaqar-server -v

-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.

future. 2015-12-29 12:09:40.011 1084 DEBUG zaqar.bootstrap [-] Loading transport driver: websocket transport /opt/stack/zaqar/zaqar/bootstrap.py:105

/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

/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

/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

/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

/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

/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"="">

/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

/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:

10.20.33.6:9000

Summary

Zaqar-server is using the websocket driver and serving on 10.20.33.6:9000

*While 10.20.33.6:9000

While using the curl command for creating a queue,

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"}'

Queue"}'

Output:

HTTP/1.1 405 HTTP method 'PUT' not allowed

*While 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"

43b746c69bf94a7881749fdeb6aa8a6d"

Output:

HTTP/1.1 200 OK
Server: AutobahnPython/0.11.0
Content-Type: text/html; charset=UTF-8
Content-Length: 820

820 <!DOCTYPE html> <html> <head>

<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>

AutobahnPython 0.11.0

<h1>AutobahnPython 0.11.0</h1> <p> I am not Web server, but a WebSocket Endpoint.

<b>WebSocket Endpoint</b>. </p> <p> You can talk to me using the WebSocket <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>

</style>

Additional Information:

sudo netstat -tulpn | grep '8888'

'8888' tcp 0 0 10.20.33.6:8888 0.0.0.0:* LISTEN 23351/uwsgi

sudo netstat -tulpn | grep '9000'

'9000' tcp 0 0 10.20.33.6:9000 0.0.0.0:* LISTEN 1084/python

sudo netstat -tulpn | grep uwsgi

uwsgi tcp 0 0 10.20.33.6:8888 0.0.0.0:* LISTEN 23351/uwsgi

tcp 0 0 127.0.0.1:56930 0.0.0.0:* LISTEN 23351/uwsgi

23351/uwsgi

Is there any configuration changes to be made in devstack for zaqar-server to use the 8888 port and not 9000 port?

How do I use curl commands with zaqar websocket driver?

Any links that would help me understand zaqar drivers would be great.

Thanks in advance.