206 Commits

Author SHA1 Message Date
Jenkins
8e410d7d7c Merge "Updated from global requirements" 2017-03-30 18:15:10 +00:00
Jenkins
0db8a8e186 Merge "Allow for composition via flavor" 2017-03-25 00:42:36 +00:00
huanghe333
71e8466bb1 Updated from global requirements
Change-Id: Ia6545ddd90369e04637e89e69194aca39845e5a6
2017-03-22 16:08:10 +08: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
6a0ae4e05b Merge "Rename db_manager command to valence-db-manager" 2017-03-16 02:09:12 +00:00
Jenkins
3e2409d096 Merge "implement simulator for valence" 2017-03-13 23:46:37 +00:00
Jenkins
c145f14522 Merge "Install and configure etcd in install script" 2017-03-13 14:55:41 +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
Madhuri Kumari
12bacae4f8 Rename db_manager command to valence-db-manager
This patch renamed the command `db_manager` to `valence-db-manager`
to make it more relevant to Valence

Change-Id: Ib8a3ff00e8af882ec5650662a13d3b1300e12fbd
2017-03-06 08:19:59 +00:00
Nate Potter
11c8f513cb Install and configure etcd in install script
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
2017-03-02 14:53:04 -08:00
hubian
2558ad8088 implement simulator for valence
Change-Id: Iaf53de13c322217c513a413ae810f9287c86c4f7
2017-03-01 15:54:46 +08:00
John L. Villalovos
b494488945 Use flake8-import-order
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
2017-02-27 12:45:06 -08:00
John L. Villalovos
ba6ec012e8 Update hacking requirement to be in sync with g-r
Update the hacking requirement to be in sync with
openstack/requirements/global-requirements.txt

Change-Id: Ice02a2f042793a72222392745c594ecfa1ea1f31
2017-02-27 12:44:56 -08: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
Jenkins
01569d5974 Merge "Use node uuid instead of index for /node(s) api" 2017-02-11 01:48:57 +00:00
Jenkins
0bda7f9558 Merge "Align api /nodes with api-ref spec" 2017-02-11 01:46:44 +00:00
Lin Yang
9fe21347cf Fixed incorrect filed "status_code" in exception
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
2017-02-10 07:02:25 +00:00
Jenkins
d5d59f981d Merge "Fix modindex link" 2017-02-01 21:31:50 +00:00
Anusha Ramineni
bcd7033b61 Fix modindex link
Currently, module index is not generated, this patch
enables the link modindex link present here
https://github.com/openstack/valence/blob/master/doc/source/index.rst

Change-Id: Ifa2eee4611afdfd14bc0af5e53716e1e881516f9
2017-01-31 09:37:39 +05:30
Lin Yang
29dc61b8f6 Use node uuid instead of index for /node(s) api
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
2017-01-30 16:10:35 -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
7b7cec4252 Merge "Enable release notes translation" 2017-01-30 20:56:09 +00:00
Rajiv Kumar
e121b002de Enable release notes translation
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
2017-01-30 18:24:39 +00:00
Jenkins
7a52ec90d1 Merge "implement pod_manager controller for BP:multi-podmanager" 2017-01-27 17:53:21 +00:00
Jenkins
fb898bf75f Merge "Implement flavors" 2017-01-27 17:53:11 +00:00
hubian
44e07a5af6 implement pod_manager controller for BP:multi-podmanager
Change-Id: I1c50e336f8dc85253c8bdd3611cccc11ef1c1300
Closes-Bug: #1646390
2017-01-26 15:11:10 -08: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
Andy Yan
bfacfc8ff7 Add missing developer-guide docs
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>
2017-01-20 10:19:50 +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
Ananth Narayan S
1706b3cff5 Remove object imports.
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
2017-01-18 07:59:58 +05:30
Jenkins
a8909293b5 Merge "Fix execute db_manager init failed" 2017-01-17 20:26:51 +00:00
Jenkins
88295ce968 Merge "[API] Use utils.make_response pretty print error" 2017-01-17 18:51:02 +00:00
Anusha Ramineni
a7cb856201 [API] Use utils.make_response pretty print error
Change-Id: Ieaf8c0f4c5271b6cffc9886b6e2a21924a1b4eff
Closes-Bug:#1656180
2017-01-17 09:41:01 +05:30
Jenkins
1fcc1563e2 Merge "Add dict as basic type" 2017-01-16 08:52:36 +00:00
Jenkins
77dd2ee9b3 Merge "Log every internal exception for debug" 2017-01-16 05:03:10 +00:00
Lin Yang
b7b217ba07 Add dict as basic type
Change-Id: I44ee2908fb9918a7e00b742b2acd296aef2c1100
2017-01-16 10:34:06 +08:00
Jenkins
f4781978a7 Merge "Remove logging of exceptions from types module" 2017-01-16 02:08:57 +00:00
Jenkins
65795ef118 Merge "Move types module to valence.common directory" 2017-01-16 02:08:48 +00:00
Jenkins
dddc8be078 Merge "Make functional tests out of Jenkin's verification" 2017-01-16 02:08:40 +00:00
Anusha Ramineni
3d3af97aa9 Remove logging of exceptions from types module
Removes unncessary o/p while running tox

Change-Id: I72bac15499365ea7990331152797a4de2780d798
Closes-Bug:#1655744
2017-01-16 01:45:35 +00:00
Lin Yang
9683bbc1e6 Log every internal exception for debug
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
2017-01-16 01:45:24 +00:00
Anusha Ramineni
1212104302 Move types module to valence.common directory
This commit moves the 'types' module from api to common directory

Change-Id: I28dc2e8f4d389ece7021e68841e5c2632ecc1f95
Closes-Bug:#1654033
2017-01-16 01:41:49 +00:00
Andy Yan
e83c8ffb73 Fix get_option() bug when option value type is bool.
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>
2017-01-12 04:26:06 +00:00
Lin Yang
e93f85ae82 Log every flask request and response for debug
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
2017-01-10 20:08:57 -08:00
Yufei
978dff9fbe Fix error in delete_composednode
Cureently delete_composednode method doesn't work because it call a url
like '/redfish/v1/Nodes101'.

Change-Id: Ib2a961f3f97de028018ff8e5269f875eae329d01
Closes-Bug: #1652784
2017-01-09 04:27:50 +00:00