Feature #2371

Paginate the .info API responses

Added by Carlos Martín over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:10/10/2013
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Core & System
Target version:Release 4.6
Resolution:fixed Pull request:

Description

Request made during the OpenNebulaConf


Related issues

Related to Backlog #2340: filter VM listing server-side Pending 09/26/2013

Associated revisions

Revision 193e7a9c
Added by Javi Fontan over 7 years ago

feature #2371: add pagination to pool info

When the end_id of pool.info xmlrpc call is lower than -1 the parameters
do not refer to object ids but offset and cuantity used for pool pagination.r
The SQL query will have "LIMIT start_id,-end_id".

Revision 955c1025
Added by Javi Fontan over 7 years ago

feature #2371: add pagination to ruby oca, cli and sunstone

There is a new pool method called get_hash that uses pagination when possible.

The default page size can be changed with the environment variable
ONE_POOL_PAGE_SIZE. Any value > 2 will set a page size, a non
numeric value disables pagination.

Paginated pools are parsed using sax instead of dom so this makes the parse
a bit faster. It will also detect Ox gem (https://github.com/ohler55/ox) and
will use it as it is much faster than Nokogiri.

Screen cleaning in top command is done after retrieving the pool reducing
the flickering.

Revision 8bcb1cfe
Added by Javi Fontan over 7 years ago

feature #2371: add ox gem to install_gems

Revision 21b22b03
Added by Javi Fontan over 7 years ago

feature #2371: delete debuging STDERR.puts

Revision e3d868e3
Added by Javi Fontan over 7 years ago

feature #2371: fix bug returning errors from get_hash

Revision 8c678b8f
Added by Javi Fontan over 7 years ago

feature #2371: do not print extra line in list commands

Revision db2790e9
Added by Javi Fontan over 7 years ago

feature #2371: better fix for the extra new line in list

Revision c5839f08
Added by Javi Fontan over 7 years ago

feature #2371: fix bugs in CLI table renderer

Revision 27224f09
Added by Javi Fontan over 7 years ago

feature #2371: raise exception and cli error when nokogiri is not installed

Revision f1e3d105
Added by Javi Fontan over 7 years ago

feature #2371: parse cdata with ox parser

History

#1 Updated by Ruben S. Montero over 7 years ago

  • Status changed from Pending to Closed

#2 Updated by Ruben S. Montero over 7 years ago

  • Tracker changed from Backlog to Feature
  • Status changed from Closed to Assigned
  • Assignee set to Javi Fontan
  • Target version set to Release 4.6

#3 Updated by Ruben S. Montero over 7 years ago

#4 Updated by Javi Fontan over 7 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Also available in: Atom PDF