Commit Graph

15 Commits

Author SHA1 Message Date
Dean Troyer cd5693bc48 Followup opendev cleanup and test jobs
Because we are in a deadly embrace with the config plugin after
the OpenDev work the config plugin is being forced off in this job
to remove one of the dependencies.

Ultimately extracting cgts-client to be installable stand-alone
is a better solution to allow other plugins to install directly.

Depends-On: https://review.opendev.org/653961
Change-Id: I47f1d0df404fc40a9d514c1b0689b5457dbc3f87
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-20 20:26:25 -05:00
Dean Troyer 1b5d82dd1d [DevStack] Fix fm-rest-api start/stop
Use the correct service name in start_fault() and stop_fault()

Change-Id: I881b8e4cbcca3219e7a18fa6f60afc1e442b41f4
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-01 14:39:53 -05:00
Chen, Haochuan Z b31bf2f860 [devstack] fmManager process launch
* add cleanup for fm-api and fm-client
  * fmManager process launch including
  *   1, collate /etc/fm/fm.conf for fmManager
  *   2, create fm database
  *   3, create table event_suppression/alarm/event
  *      with fm-dbsync --config-file /etc/fm/fm.conf
  *   4, update fm_db_sync_event_suppression.py install
  *      for hardcode in fm-common/sources/fmConstants.h
  *   5, add event type file /etc/fm/events.yaml
  *   6, fmManager process launch

Test case:
$./stack.sh
=========================
DevStack Component Timing
 (times are in seconds)
=========================
run_process           21
test_with_retry        2
apt-get-update         9
pip_install          128
osc                  143
wait_for_service      16
dbsync                20
apt-get               35
-------------------------
Unaccounted time     343
=========================

Total runtime        717
This is your host IP address: 192.168.122.80
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.122.80/dashboard
Keystone is serving at http://192.168.122.80/identity/
The default users are: admin and demo
The password: secret

Task: 23294
Story: 2003159

Depends-on: https://review.openstack.org/#/c/648119/
Depends-on: https://review.openstack.org/#/c/641710/
Change-Id: Icbbf4b57261ccd46c12cf765919e26c3916d0fc6
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2019-03-28 06:13:32 +08:00
Erich Cordoba a318debe7f Add notices to Intel authored files.
Story: 2005265
Task: 30087

Change-Id: If7ae800feba773442e452b3183107696e2e6f88e
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-03-20 10:14:21 -06:00
Dean Troyer c6b9accb4f Updates to include cgtsclient and install dirs
fm-rest-api requires cgtsclient, stx-config needed some work
to allow only that to be installed.

Rework installation dir again.  Put everything in /usr/local
again, but allow that to be changed to a user-writable dir and
not require sudo.

Depends-on: https://review.openstack.org/641786
Depends-on: https://review.openstack.org/641783
Depends-on: https://review.openstack.org/641699
Change-Id: I37cc8283e8eb93a77088aebacdcc62dfb7e1c75e
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-03-13 00:39:50 +08:00
Dean Troyer e5debd54ab Set a fixed install dir and add specific prereqs
* 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/{bin|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.

* Handle some side-effects of a non-default install location for
  the build artifacts.

* Add missing CentOS prereqs for base image builds:
  fm-common:
  - libuuid-devel
  - postgresql-devel

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

Change-Id: I8ec59f83dff522fcec0be4e0a650e402a2747a98
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-19 09:33:06 -06:00
Dean Troyer b217f4c87c Convert DevStack jobs to master & bionic
We're changing to upstream master soon, let's start running
on the upstream devstack configuration.

There is an undeclared dependency on cgtsclient in fm-rest-api
so we need to work around that.

Change-Id: If764701fce94fb760edf0a68805753d3804892c0
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-08 15:42:06 -06:00
Dean Troyer 68c99f6f66 DevStack cleanups
* Pull binary build steps into separate functions
* Add build.sh to call binary builds without the rest of DevStack
* Add new stx-fault-build job and tox build environment
* Make stx-fault-devstack voting (still only devstack/*)

Change-Id: I6692fc1f75db413860ede2657f4f1501b95c10c0
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-04 13:03:38 -06:00
Sun Austin 767cdc211c [devstack] change libfmcommon path to /usr/local/lib64
Change-Id: I7cb026a12518dfc56d9b0bb0b07a58362f1a8543
Signed-off-by: Sun Austin <austin.sun@intel.com>
2019-01-24 11:13:13 +08:00
Sun Austin 83023a2d18 change install_non_bb to install target in devstack
change install_non_bb to install due to
I431b733030444185cc51a8b5352492926170a4c3 change
Force to use xenial(nodeset:openstack-single-node-xenial)

Closes-bug: 1812785

Change-Id: I61338a79f09d59b1f1e36a4911ecadad4a3453e8
Signed-off-by: Sun Austin <austin.sun@intel.com>
2019-01-23 09:38:26 +08:00
Shuicheng Lin 265b1e9218 fix typo issue
It is "fm-rest-api" in .zuul.yaml. Correct the service name.

Change-Id: Idbac53b74e0eeb5b7da5c83c2526fb3ac7be855e
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2018-11-22 21:09:27 +08:00
Saul Wold dc4ea82f07 devstack: fix rest-api typo
This fixes the cleanup for the rest-api since it was missing either '-'
or the '_'.

Change-Id: Id461458c6ba0045f28e9d26de11c318c5c4c51a4
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2018-11-12 04:59:12 -08:00
Dean Troyer b27c2143ab Add a basic devstack job
Begin working on a base devstack job for testing stx projects.
We have to pull a lot of stable/pike bits yet let STX services
run from master.

Change-Id: I6eee854888acb27b54c10c25d47e97d98a7f999c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-11-01 23:38:13 -05:00
Dean Troyer 95edd7af14 Add fm-rest-api and fm-client to DevStack
At the moment it just installs and partially configures it.

Depends-On: https://review.openstack.org/610756
Change-Id: If74b81841f583ad6d3850cd12ee337c1b4a1a177
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-29 10:54:49 -05:00
Dean Troyer e207777eda Add DevStack support for FM dependencies
Add a DevStack plugin to build and install the basic Fault dependencies
required by most of the other STX projects.  The bulk of this was originally
submitted in https://review.openstack.org/#/c/595865/.

Installing and starting the REST API service will follow in a later review.

Also enable bashate on the devstack plugin and max yaml line length
set to 260

Change-Id: I95009fceee28a81e6d8795e90b259e0e1b175327
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-09 11:19:02 -05:00