Commit Graph

18 Commits

Author SHA1 Message Date
Dean Troyer c84ce08dc7 Followup opendev cleanup and test jobs
Depends-On: https://review.opendev.org/653964
Depends-On: https://review.opendev.org/653961
Depends-On: https://review.opendev.org/654013
Depends-On: https://review.opendev.org/654024
Change-Id: Id3f05219865a595a2a9f36e83a4ad6bbfd0e16fc
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-22 16:42:03 +00:00
Zuul f4dc3130c3 Merge "Add notices to Intel authored files." 2019-04-09 12:13:54 +00:00
Martin, Chen 9af70ae48e [devstack] python-inventoryclient utility in stx-metal
Install and cleanup python-inventoryclient

Task: 29246
Story: 2003161

Depends-on: https://review.openstack.org/#/c/641894/

Change-Id: I9ad9cbba78647044d42859e94b82ce71c23da5e2
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2019-03-26 15:44:51 +08:00
Yi Wang 69aa3e4eed fix devstack mtcAgent and hwmon start issue
* fix hwmon start script issue
* check hostname for mtcAgent. disable mtcAgent if the hostname does
  not meet the requriement.
* set correct interface name

Story: 2003161
Task: 29977

Change-Id: I30e321eab3fd5424913ddce37cc9ef6442c0e969
Signed-off-by: Yi Wang <yi.c.wang@intel.com>
2019-03-22 14:49:40 +08:00
Dean Troyer 21d2970da3 Clean Nova service files from DevStack plugin
https://review.openstack.org/#/c/644677/ removed these from mtce
but not the plugin.

Change-Id: I2bc70dd57e7e39148a2b2d38ff3ab03e51880bcb
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-03-20 15:50:12 -05:00
Zuul 71795fb767 Merge "Remove Resource Monitor ; aka rmon, from the load" 2019-03-20 17:18:20 +00:00
Erich Cordoba f747239a4a Add notices to Intel authored files.
Story: 2005265
Task: 30091

Change-Id: If3d78ebde25b209b12e39d68e0d70dad25193de2
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-03-20 10:33:21 -06:00
Eric MacDonald f55ef546a7 Remove Resource Monitor ; aka rmon, from the load
All rmon resource monitoring has been moved to collectd.

This update removes rmon from mtce and the load.

Story: 2002823
Task: 30045

Test Plan:
PASS: Build and install a standard system.
PASS: Inspect mtce rpm list
PASS: Inspect logs
PASS: Check pmon.d

Change-Id: I7cf1fa071eac89274e7fae1f307e14d548cc945b
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-03-19 16:12:38 -04:00
Martin, Chen 6ccf0b68c0 [devstack] inventory service in stx-metal
Install and cleanup utility inventory-dbsync,
inventory-dnsmasq-lease-update and services
inventory-api, inventory-conductor, inventory-agent

Task: 29245
Story: 2003161

Depends-on: https://review.openstack.org/#/c/642305/

Change-Id: I62867f95285df9a6e5bb8c429e88d007f6db0f02
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2019-03-20 01:42:18 +08:00
Yi Wang 21bb42ba8f Set DevStack install dir to /usr/local by default
Put everything in /usr/local and allow that to be overridden to
a user-writable dir and not require sudo.

Story: 2003161
Task: 29897

Change-Id: I873690cf8f4a12ed9a1c4a5319f03c1b7feb3817
Signed-off-by: Yi Wang <yi.c.wang@intel.com>
2019-03-12 09:37:12 +08:00
Dean Troyer 732e31b381 Enable the plugin tests
The preceeding 4 reviews all needed to be in place in order for
the devstack run to complete.  Enable it now.

Change-Id: I139c862b8edbe7214ad11b9820e400b7e613bd61
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-28 23:40:52 -06:00
Dean Troyer 83101e95ba Add EXTRALDFLAGS to linker in a number of Makefiles
This allows DevStack plugins to add its configured STX_INST_DIR
to the linker search path.

Change-Id: I277204cd89767b93eec6c96969fc33d23e04516b
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-28 22:34:54 -06:00
Dean Troyer f1c8043abf Set a fixed install dir and simplify the install process
* Install build artifacts to a fixed dir rather than attempting
  to infer a location based on the Python binary location.  That
  was intended to work seamlessly in venvs, we'll burn that bridge
  when we come to it, for now just put it all in
  $DEST/usr/{include|lib}.  This also removed the need for
  root access for these files to allow the build steps to be performed
  on laptops that may not otherwise run DevStack.

* Install systemd unit files directly to /etc/systemd/system
  and skip the requirement to copy them a second time

* Add the declarations to settings for the devstack playbook to
  handle plugin precedence order properly.

Change-Id: I5d68465384e000c05eb650a8358b70f7a7a6c293
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-28 22:34:47 -06:00
Dean Troyer a1a98d3514 Fix up requirements for centos7 and bionic
* Add dependencies for bionic:
  libevent-2.1
  libjson-c*

* Fix a couple of bugs setting /etc/hosts

Change-Id: Ice77cb9db8db367faa982e3113ed1c16065be896
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-28 13:39:02 -06:00
Yi Wang ab3f2385e8 fix a devstack plugin bug
devstack default user stack may not have permission to modify system
file /etc/hosts. use sudo to make sure the modification is done.

Change-Id: Iabe47cae88da9d70a1f7788c1847d99856963713
Closes-Bug: 1816520
Signed-off-by: Yi Wang <yi.c.wang@intel.com>
2019-02-20 14:54:12 +08:00
Alex Kozyrev 506ef3fd7f MTCE: reading BMC passwords from Barbican secret storage.
Use Openstack Barbican API to retrieve BMC passwords stored by SysInv.
See SysInv commit for details on how to write password to Barbican.
MTCE is going to find corresponding secret by host uuid and retrieve
secret payload associated with it. mtcSecretApi_get is used to find
secret reference, based on a hostname. mtcSecretApi_read is used to
read a password using the reference found on a prevoius step.
Also, did a little cleanup and removed old unused token handling code.

Depends-On: I7102a9662f3757c062ab310737f4ba08379d0100
Change-Id: I66011dc95bb69ff536bd5888c08e3987bd666082
Story: 2003108
Task: 27700
Signed-off-by: Alex Kozyrev <alex.kozyrev@windriver.com>
2019-02-14 09:04:46 -05:00
Dean Troyer 5133f09a0f Add devstack job and fix linters
Add the base DevStack job and make sure bashate runs on
the devstack plugin files.

Begin to re-structure the plugin to match the common structure.

Add devstack/build.sh and split out the build steps into
separate functions in devstack/lib/stx-metal

This is complete, further work to be done in follow-up changes.

Change-Id: I05f6df758e18f182fb0a05731eddc6cb7f599e51
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-07 11:28:14 -06:00
Mingyuan Qi 4273c21af7 Add devstack plugin
Add maintenance services as stx-metal plugin.
Enable services by both node type and metal components.

Target:
Mtce services are installed and active(running) in devstack.

Story: 2003161
Task: 23296

Change-Id: I2123c64fb1b70bd135e8945d7ff7f4f3691bdbcc
Signed-off-by: Mingyuan Qi <mingyuan.qi@intel.com>
2019-01-09 19:11:18 +08:00