Convert listing exports to query2
This solves one case where locks are acquired during LUXI queries. Pretty late into the transition I noticed that OpBackupQuery had a “use_locking” parameter for a long time, but didn't use it. Since most of the other changes were already and this allows exports to be listed via RAPI (/2/query) I decided to finish. Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- NEWS 4 additions, 3 deletionsNEWS
- lib/client/gnt_backup.py 31 additions, 13 deletionslib/client/gnt_backup.py
- lib/cmdlib.py 65 additions, 20 deletionslib/cmdlib.py
- lib/constants.py 8 additions, 1 deletionlib/constants.py
- lib/query.py 28 additions, 0 deletionslib/query.py
- man/gnt-backup.rst 26 additions, 2 deletionsman/gnt-backup.rst
- qa/ganeti-qa.py 1 addition, 0 deletionsqa/ganeti-qa.py
- qa/qa_instance.py 8 additions, 0 deletionsqa/qa_instance.py
- qa/qa_utils.py 11 additions, 10 deletionsqa/qa_utils.py
- test/ganeti.query_unittest.py 8 additions, 4 deletionstest/ganeti.query_unittest.py
Loading
Please register or sign in to comment