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
This patch renamed the command `db_manager` to `valence-db-manager`
to make it more relevant to Valence
Change-Id: Ib8a3ff00e8af882ec5650662a13d3b1300e12fbd
This patch adds logic to install_valence.sh to install
and add initial directories to the ectd database when
running valence_install.sh
Change-Id: Iec4e1fff16ae3a92163f026ee231be09fcbb0865
Closes-Bug: #1668438
Use the flake8 plugin flake8-import-order to check import ordering. It can do
it automatically and don't need reviewers to check it.
Change-Id: Ief79a4696d7cd9b57e61a68e76bebb01027ed44c
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
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
Previously, both BadRequest and NotFound exception contains
"status_code" attribution, which should be changed to "status" as
defined in base ValenceError class.
And assign fake request_id by default instead of None.
Change-Id: Icde52f98b4be2f48e9854b260aab4158b5e3a636
Closes-Bug: #1661136
Since valence will support multiply backend podm, obviously the node
index is not unique from different podm, assign uuid for each
composed node and store node info into etcd. User should use uuid
instead of index for node operation.
And in some cases, user or other service directly operate composed,
which will result in inconsistent status between RSD and etcd. So
check it when get node details, and update if necessary.
Change-Id: Ie365d61083183fa0b699ce978aaa5fdeb740f11d
Closes-Bug: #1656453
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
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.
Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.
Change-Id: I8e60294e3f10cf649233edb699bfbded3413f152
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
Add missing developer docs for unit test, etcd db and writing
developer guide.
Fix errors occurred when building developer docs with Sphinx :
# tox -e docs
Fix some other nits.
Change-Id: I8580af70630edd0c214645ce4b6bbcd308925aa1
Closes-Bug: #1653198
Signed-off-by: Andy Yan <yanchao3@lenovo.com>
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
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
This patch modifies import statements to import only modules and
remove object imports as per the OpenStack import guidelines.
Change-Id: Id4841375a15f41dd166bf16d4c8736954ca61440
Closes-Bug: #1650063
Before convert internal exception to user friendly format, log it
into valence.log to avoid lost exception stack, which will be
helpful to developer debugging.
Change-Id: Ib901e93993e4c3c7d61dacad6cee4b5fba84bfd4
Fix get_option() bug when option value type is bool.
Also, 'debug' should be default = 'False' for deployment.
Change-Id: Ic7b4defd774fd90b261d4f617ce2b783309d5b5c
Signed-off-by: Andy Yan <yanchao3@lenovo.com>
Added two functions with flask before/after_request decorator to log
headers and content for every request and response.
Change-Id: I8bae4cfd485c49e6fd149a3df5695c94e806264b
Closes-Bug: #1654036
Cureently delete_composednode method doesn't work because it call a url
like '/redfish/v1/Nodes101'.
Change-Id: Ib2a961f3f97de028018ff8e5269f875eae329d01
Closes-Bug: #1652784