
To be able to create profiling traces for Zaqar, client should be able to send special HTTP header that contains trace info. This patch is as well important to be able to make cross project traces. (Typical case end user calls Zaqar via OpenStack python client, if profiler is initialized, Zaqar client will add extra header, that will be parsed by special osprofiler middleware at server side) Don't worry no security issue here, trace information is signed by HMAC key that is setted in config file at server side. So only person that knows HMAC key is able to send proper header. Zaqar server patch is: I32565de6c447cd5e95a0ef54a9fbd4e571c2d820 Currently there are some projects are using osprofiler, like Glance, Cinder, Heat, and some others are working in progress, e.g. Trove. Implements: blueprint osprofiler Change-Id: I880c003511e9e4ef99806ba5b19d0ef6996be80b Co-Authored-By: wangxiyuan <wangxiyuan@huawei.com>
Python Zaqar Client
- version
-
0.1.0
- Wiki
- Launchpad
- Review
- Design
- IRC
-
#openstack-zaqar @ freenode
Welcome to the Zaqar Python Client project!
Table of Contents
Installation
The latest stable release can be installed from PyPI:
pip install --upgrade python-zaqarclient
For the adventurous, you may also install the latest code directly from GitHub:
pip install git+https://github.com/openstack/python-zaqarclient.git
What's in the box
By installing python-zaqarclient you get programmatic access to the Zaqar v1.0 API library. Plus, it installs a plugin to python-openstackclient that allows you to perform simple queue operations.
How to use
Python client
Details about design, features, usage and workflow can be found in the Python Client Wiki.
Command line interface
Zaqar bases its client implementation in the OpenStack Client. It can be installed and configured by following the instructions in Getting Started and Configuration in the OpenStack Client readme respectively.
The CLI currently allows creation, removal and listing of queues. Some examples are:
$ openstack queue list --limit 3
$ openstack queue create myqueue
$ openstack queue delete myqueue
Contributing
Be sure to reference the HACKING file for details on coding style. You may also wish to read through Zaqar's Contributor Guide before contributing your first patch.