rapi: Add new user option for querying
authorMichael Hanselmann <hansmi@google.com>
Thu, 8 Nov 2012 18:31:14 +0000 (19:31 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 16 Nov 2012 13:57:51 +0000 (14:57 +0100)
commit5e12acfe2778307723a1f768508dbcc1ca911d10
tree27cda3b3d3e6b75aefdd001e8b51f31b30cad5b5
parent7b0476cf22f30b142f763354f382c663524429e9
rapi: Add new user option for querying

This was requested in issue 301. Before this patch, requests to
“/2/query/*” and “/2/instances/*/console” would require authentication
with a user with write access. Since that is not strictly necessary, a
new user option named “read” is added.

Console information can also be retrieved as a normal query, therefore
the change applies there too.

This was the first user option to be added after “write”, therefore
quite a few changes were necessary. Documentation, including NEWS, is
updated as well.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
NEWS
doc/rapi.rst
lib/rapi/__init__.py
lib/rapi/rlib2.py
test/ganeti.server.rapi_unittest.py