1.2.0 • Published 7 years ago

opnfv-promise v1.2.0

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
7 years ago

Resource Management for Virtual Infrastructure

Promise is a resource reservation and management project to identify NFV related requirements and realize resource reservation for future usage by capacity management of resource pools regarding compute, network and storage.

The following are the key features provided by this module:

  • Resource Capacity Management
  • Resource Reservation
  • Resource Allocation

This module also contains a collection of YANG data models as defined under the direction of OPNFV Promise project.

Installation

opnfv-promise is built with YangForge data modeling framework. You will need to first install yangforge and use the provided yfc command line utility to run this module.

$ npm install -g yangforge

There are also alternative installer plugins for Fuel and Juju.

Usage

$ yfc run promise.yaml

The yfc run command will load the primary application package from this repository along with any other dependency files/assets referenced within the YAML manifest and instantiate the opnfv-promise module and run REST/JSON interface by default listening on port 5000.

You can also checkout this GIT repository or simply download the files into your local system and run the application.

Testing

$ npm install
$ npm test

TBD

Primary YANG Data Models

namedescriptionstatus
opnfv-promiseprovide resource reservation and capacity management95% complete
nfv-infrastructurecommon NFV Infrastructure resource models80% complete
nfv-manocommon NFV MANO resource models including VIM20% complete
openstackopenstack specific VIM extensions50% complete

Promise Information Models

ResourceReservation

The data model describing the required parameters regarding a resource reservation. The schema definition expressed in Yang can be found here.

Key Elements

NameTypeDescription
startys:date-and-timeTimestamp of when the consumption of reserved resources can begin
endys:date-and-timeTimestamp of when the consumption of reserved resource must end
expirynumberDuration expressed in seconds since start when resource not yet allocated shall be released back to the available zone
zonenfvi:AvailabilityZoneReference to a zone where the resources will be reserved
capacityobjectQuantity of resources to be reserved per resource types
attributeslistReferences to resource attributes needed for reservation
resourceslist (nfvi:ResourceElement)Reference to a collection of existing resource elements required

State Elements (read-only)

State Elements are available as part of lookup response about the data model.

NameTypeDescription
providernfvi:ResourceProviderReference to a specific provider when reservation service supports multiple providers
remainingobjectQuantity of resources remaining for consumption based on consumed allocations
allocationslist (nfvi:ResourceAllocation)Reference to a collection of consumed allocations referencing this reservation

Notification Elements

NameTypeDescription
reservation-eventEventSubscribers will be notified if the reservation encounters an error or other events

Inherited Elements

Extended from nfvi:ResourceElement
NameTypeDescription
idyang:uuidA GUID identifier for the data model (usually auto-generated, but can also be specified)
namestringName of the data model
enabledbooleanEnable/Disable the data model
protectedbooleanPrevent model from being destroyed when protected
ownernfvi:AccessIdentityAn owner for the data model
visibilityenumerationVisibility level of the given data model
tagslist (string)List of string tags for query/filter
memberslist (nfvi:AccessIdentity)List of additional AccessIdentities that can operate on the data model

Resource Allocation

The data model describing the required parameters regarding a resource allocation. The schema definition expressed in YANG can be found here.

Key Elements

NameTypeDescription
reservationnfvi:ResourceReservationReference to an existing reservation identifier
allocate-on-startbooleanSpecify whether the allocation can take effect automatically upon reservation 'start'
resourceslist (nfvi:ResourceElement)Reference to a collection of new resource elements to be allocated

State Elements (read-only)

NameTypeDescription
prioritynumberRead-only state information about the priority classification of the reservation

Inherited Elements

Extended from nfvi:ResourceElement
NameTypeDescription
idyang:uuidA GUID identifier for the data model (usually auto-generated, but can also be specified)
namestringName of the data model
enabledbooleanEnable/Disable the data model
protectedbooleanPrevent model from being destroyed when protected
ownernfvi:AccessIdentityAn owner for the data model
visibilityenumerationVisibility level of the given data model
tagslist (string)List of string tags for query/filter
memberslist (nfvi:AccessIdentity)List of additional AccessIdentities that can operate on the data model

License

Apache-2.0