Feature #789

API for oZones Server

Added by Tino Vázquez almost 10 years ago. Updated about 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Hector Sanjuan% Done:

100%

Category:-
Target version:Release 3.2 - S0
Resolution:fixed Pull request:

Description

Similar to OCA for OpenNebula


Subtasks

Feature #908: Get rid of OzonesClient module. Update zona, cliClosedHector Sanjuan

Feature #904: Add documentation to Ruby libraryClosedHector Sanjuan

Feature #916: Improve parser for Zones/VDC text templates used in CLI ClosedRuben S. Montero

Feature #905: Fix upper/lower case in JSON documents in server, client ...ClosedHector Sanjuan

Feature #939: Upload documentation to opennebula.org (devel)ClosedJavi Fontan

Associated revisions

Revision 506f996b
Added by Ruben S. Montero almost 10 years ago

feature #789: Refactor of OCA interaction in OZones. Work in progress

Revision 2787cd8f
Added by Ruben S. Montero almost 10 years ago

feature #789: Solves minor bugs in Zones

Revision fc6303a1
Added by Ruben S. Montero almost 10 years ago

feature #789: Moved OCAInteration to VDC class. Update method still needs to be moved

Revision dec5dbd0
Added by Ruben S. Montero almost 10 years ago

feature #789: Moved update from OCAInteraction to VDC

Revision b5298aea
Added by Ruben S. Montero almost 10 years ago

feature #789: Removed unneeded OCAInteraction library

Revision beb5ee0d
Added by Ruben S. Montero almost 10 years ago

feature #789: Migrating OzonesServer class. Work in progress

Revision 9bbff1fb
Added by Ruben S. Montero almost 10 years ago

feature #789: Completed refactor of OzoneServer class

Revision da42de1d
Added by Ruben S. Montero almost 10 years ago

feature #789: More work on the Ozones server refactor

Revision d6defb6b
Added by Ruben S. Montero almost 10 years ago

feature #789: Solves minor bugs in host update for VDC. Deals with empty host lists

Revision e20851f0
Added by Hector Sanjuan almost 10 years ago

Feature #789: Small improvements to OZonesClient and cli helpers

The client's default template attribute to put_resource() and post_resource() is now a JSON string.

post/put_resource_str() converts a ONE template into json (method to_body) and then calls put/post_resource()

post_resource_file() reads the ONE template from file, then calls post_resource_str()

cli helpers have been accordingly updated. FORCE attribute handling has been remove from delhost action.

Revision d6f1f5b1
Added by Ruben S. Montero almost 10 years ago

feature #789: Moved Configuration.rb to OCA. Added support to print configuration files in JSON. Updated OZones client to use Configuration.rb parser

Revision 067879d7
Added by Hector Sanjuan over 9 years ago

Feature #789: First version of ozones api

Slightly tested. Uncommented. To be extended with some utils (like printing helpers).

Revision 6dc5797b
Added by Hector Sanjuan over 9 years ago

Feature #789: Update install file

Include OZones API files among the client files to be installed with ozones or opennebula client files

Revision 5412c6fe
Added by Ruben S. Montero over 9 years ago

feature #789: Fixes parser for NAME attributes

Revision c806c728
Added by Hector Sanjuan over 9 years ago

Feature #789: Move ozones api files one level up

zona.rb can be found directly in ozones lib/ dir. Install script updated accordingly.

Revision 8b7c02b9
Added by Hector Sanjuan over 9 years ago

Feature #789: Symbolize the keys from resource data hashes.

This means accessing properties of a resource should primarily be done with a symbol name: vdc[:HOSTS] instead of vdc["HOSTS"]. All client code updated accordingly.

In practice, and to easy the task of developers it will still work if Strings are used (.to_sym performed by default).

Revision a48ba32d
Added by Hector Sanjuan over 9 years ago

Feature #789, Task #905: Fix access to subresources in onezone command.

Capitalization/symbolization of hash keys after previous commits.

Revision d481b332
Added by Hector Sanjuan over 9 years ago

Feature #789: Whitespace cleanup, correct indentation in OZones ruby files

That means, no spaces at the end of lines, no tabs, 4-space indent...

History

#1 Updated by Ruben S. Montero almost 10 years ago

  • Target version deleted (Release 3.0)

#2 Updated by Ruben S. Montero almost 10 years ago

  • Target version set to Release 3.4

#3 Updated by Ruben S. Montero almost 10 years ago

  • Subject changed from XML output for oZones CLI to API for oZones Server

#4 Updated by Tino Vázquez almost 10 years ago

Also include refactorization of the code. Main one, get rid of OCAInteraction and move functionality to module VDCOpenNebula and ZoneOpenNebula

#5 Updated by Ruben S. Montero almost 10 years ago

  • Target version changed from Release 3.4 to Release 3.2 - S0

#6 Updated by Ruben S. Montero almost 10 years ago

  • Assignee changed from Tino Vázquez to Hector Sanjuan

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

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

Also available in: Atom PDF