Commit Graph

27 Commits

Author SHA1 Message Date
akhiljain23 cf99ff0165 Updating docs
>> Changed project name from plasma to valence in docs.
>> Fixed docstring indentation.
>> Added features docs.
>> Added driver docs.
>> Hidden licence headers from html files.

Depends-On: Ia02bc00ad168b3c3d01ef6ca9696d43996091070
Change-Id: I1fa382d566165f5e76c84ad864024c0f546ef74c
2018-04-24 19:18:35 +05:30
space 2251cabe91 Fix a typo
Change-Id: I2f948043e0e0b2980332f2c5f28b2022fed34e1a
2017-07-13 07:52:52 +00:00
Anusha Ramineni 542f3ced2f Add Validation for Node Manage/Action API's
Partially-Implements blueprint validation
Change-Id: If10e37e0036c88a4bd0b183793e4344d8c257b67
2017-05-18 11:23:14 +05:30
Lin Yang d0b9f60bba Enable parameter check before node composition
This patch enabled check for "name" field in request body before
node composition, raise BadRequest exception if if don't exits.
Changed "description" to optional, and will set it to empty string
if it don't exist.

Change-Id: Ib3624ad85e12823c5f6fd6321d3161b88a7b6ecf
Closes-Bug: #1677046
2017-04-26 11:22:16 +00:00
Jenkins 3a1b4e6d7b Merge "Implement Node Manage" 2017-04-19 20:41:07 +00:00
Jenkins 6f62073255 Merge "Add HTTP request example for node composition via flavor" 2017-04-11 03:51:01 +00:00
Jenkins c08028dbc2 Merge "Add Rack API" 2017-04-10 16:51:02 +00:00
Nate Potter 5ce2d68ed7 Implement Node Manage
This commit implements the ability for an admin to manage
existing RSD composed nodes with Valence. In the event that
an RSD pod manager contains composed nodes that were created
without Valence, it's possible to use this function to
add those nodes to the Valence database.

Change-Id: I13e8076fb718ebd356cb7b4839cfb4b83c798672
Implements-blueprint: manage-node
2017-04-06 11:10:09 -07:00
Nate Potter d11c1aef9b Add Rack API
This commit adds API and corresponding controller functions
for viewing rack resources.

Change-Id: I66fd2f9cfe30b7a87ee4ea16a9f8027c34d1d0e6
Closes-bug: #1633443
2017-04-03 21:14:21 +00:00
Lin Yang 4ca2a50554 Fix incorrect response example of flavor creation
Added three missed attributions: "uuid", "created_at" and
"updated_at". And renamed it to keep similar naming convention.

Change-Id: I426b367c538922cc5825c65d9f4e943438d2cb28
Closes-Bug: #1677088
2017-03-30 15:54:33 -07:00
Lin Yang cf73b435e6 Add HTTP request example for node composition via flavor
Current valence support two ways to specify required hardware
resource.
* Specify every details in "properties" attribution
* Specify node flavor via "flavor_id"

Added example to show how to compose through flavor.

Change-Id: Ieab02fe2f2a46fa8cd28285fb88bc5fba8e5b6ff
Closes-Bug: #1677080
2017-03-28 18:20:28 -07:00
Jenkins 0db8a8e186 Merge "Allow for composition via flavor" 2017-03-25 00:42:36 +00:00
Nate Potter 9e0627f2e0 Allow for composition via flavor
This patch will allow a user to compose a node
based on requirements specified in a flavor by including
the flavor_id in the composition request. It also changes
the contents of the request requirements in the API to be
included in a "properties" key.

Change-Id: I3052e1d5877e63d4a217ecdcdaee32bdb21cb8ed
2017-03-17 16:17:22 +00:00
Jenkins d400a8fcd8 Merge "Support set boot source of composed node" 2017-03-13 14:54:54 +00:00
Jenkins c22c1a2f34 Merge "This patch to update api-ref doc to include multi podm info." 2017-03-09 19:43:17 +00:00
Lin Yang be919e10a5 Support set boot source of composed node
This patch allow user to set boot source of composed node. Two
parameters are needed in request body,
"Target" - the boot source to be used at next boot
"Enabled" - options "Once" and "Continuous" are supported, which
indicate whether this action is only one time change

Partially-Implements blueprint node-action

Change-Id: I46342c884e3cb8f00069e7e2c10c878582a2b185
2017-02-14 10:13:47 -08:00
Lin Yang 6bc8f689b0 Support post action to composed node
Added api entry v1/node/<uuid>/action to allow user to post reset
action to composed node. The available reset type contains
Power On/Off, Force Shutdown/Restart, etc, which may vary because of
different podm.

Partially-Implements blueprint node-action
Closes-Bug: #1659932

Change-Id: Idb23bdde02318c70e046e92dd1d474cba54c645e
2017-02-13 12:01:33 -08:00
Lin Yang 59d6a712a0 Align api /nodes with api-ref spec
1. Return briefly info of node after composed node
2. Fixed hardcode fields in node details, like ip addr, mac, etc.
   Added more fields according to valence api spec.

Change-Id: I9291b1245895fd7693f5e960559e9f29a314b712
Closes-Bug: #1636826
2017-01-30 16:10:30 -08:00
Jenkins fb898bf75f Merge "Implement flavors" 2017-01-27 17:53:11 +00:00
Nate Potter 78da85116a Implement flavors
This patch implements flavors, allowing users to save composition
requirements to the database to be used at any time. Parameters
included are the flavor's name, RAM, number of CPU cores, and
processor model.

Change-Id: I356ca9162559598bf1415d2c3b151596f111ac0c
Implements: blueprint flavor
2017-01-25 16:13:55 -08:00
Jenkins 623e495791 Merge "Switch UI to /v1/systems endpoint" 2017-01-24 17:55:08 +00:00
Andy Yan cd503ba499 Fix typo in Valence
Fix typo in Valence

Change-Id: Ib0666ad381d2332aa7e0f1a7e9d3dca0e6207a5c
Signed-off-by: Andy Yan <yanchao3@lenovo.com>
2017-01-22 10:54:54 +08:00
chesterkuo 9543933329 This patch to update api-ref doc to include multi podm info.
Add a new entry point of pod_manager info and add how to Delete,
 Create, Patch entry point of pod_manager, also show a mockup json
 example of pod_manager resources for implementation reference.

Change-Id: I25c983bdcb379583587db7a8b2b6272ef1b05b95
2017-01-19 06:55:27 +00:00
Nate Potter 45a1540358 Switch UI to /v1/systems endpoint
This commit updates the UI to get systems info from the
valence /v1/systems endpoint, and includes a few minor
updates to the redfish controller including the addition
of returning a system's health.

Change-Id: I141220768033df4f8a7d3440b8c743e8a8c002f6
Partial-bug: #1642026
2017-01-19 06:53:11 +00:00
Andy Yan 5a33d1281b rename issue for flavor->flavors
Change-Id: Id79d2ef43a17a2957f8e104e59fb365b65624662
2016-12-06 10:27:40 +08:00
praveenraj e790b6e58d Renamed /flavor to /flavors
When you do GET /v1
it returns the list of supported APIs with their links.
ie.
 "flavors" : [
    {
       "href" : "http://127.0.0.1:8181/v1/flavors/",
       "rel" : "self"
    },
    {
       "rel" : "bookmark",
       "href" : "http://127.0.0.1:8181/flavors/"
    }
but actually,
flavor apis are implemented at /flavor than /flavors.
Now /flavor has been renamed to /flavors.

This closes bug #1642801
Change-Id: I28297234561b06c22b6b083452368e3ba5c74e98
2016-12-05 14:24:23 +05:30
chesterkuo b121cd520b Aapi-ref doc, this is converted from Word file to RST format.
Add pooled resources, compute system , composed node and flavor API.
Remove extra space with end of line and fix literal block warning.

Change-Id: Ib7f00617e48e7ecc6fe30091d79ef6b47ae4c5af
2016-10-27 10:44:04 -04:00