StarlingX port to thud in progress.

This is not a consumable layer yet. Work in progress
This commit is contained in:
babak sarashki 2019-06-28 11:57:24 -07:00 committed by Saul Wold
parent 2a6010eec7
commit 8c9213dac1
58 changed files with 4415 additions and 0 deletions

72
README Normal file
View File

@ -0,0 +1,72 @@
###########################################################
************************************************************
bblayers.conf:
************************************************************
###########################################################
git checkout the thud branch of the layers below
Then start a project and edit the bblayers.conf file
to include the following layers :
PATH_TO_LOCAL_REPO/layers/poky/meta
PATH_TO_LOCAL_REPO/layers/poky/meta-poky
PATH_TO_LOCAL_REPO/layers/poky/meta-yocto-bsp
PATH_TO_LOCAL_REPO/layers/meta-openembedded/meta-oe
PATH_TO_LOCAL_REPO/layers/meta-openembedded/meta-networking
PATH_TO_LOCAL_REPO/layers/meta-openembedded/meta-filesystems
PATH_TO_LOCAL_REPO/layers/meta-openembedded/meta-perl
PATH_TO_LOCAL_REPO/layers/meta-openembedded/meta-python
PATH_TO_LOCAL_REPO/layers/meta-openembedded/meta-webserver
PATH_TO_LOCAL_REPO/layers/meta-openembedded/meta-initramfs
PATH_TO_LOCAL_REPO/layers/meta-virtualization
PATH_TO_LOCAL_REPO/layers/meta-cloud-services
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack-aio-deploy
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack-compute-deploy
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack-compute-test-config
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack-controller-deploy
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack-controller-test-config
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack-qemu
PATH_TO_LOCAL_REPO/layers/meta-cloud-services/meta-openstack-swift-deploy
PATH_TO_LOCAL_REPO/layers/meta-measured
PATH_TO_LOCAL_REPO/layers/meta-secure-core/meta-signing-key
PATH_TO_LOCAL_REPO/layers/meta-secure-core/meta-efi-secure-boot
PATH_TO_LOCAL_REPO/layers/meta-secure-core/meta-encrypted-storage
PATH_TO_LOCAL_REPO/layers/meta-secure-core/meta-integrity
PATH_TO_LOCAL_REPO/layers/meta-secure-core/meta-tpm2
PATH_TO_LOCAL_REPO/layers/meta-secure-core/meta
PATH_TO_LOCAL_REPO/layers/meta-security/meta-tpm
PATH_TO_LOCAL_REPO/layers/meta-selinux
PATH_TO_LOCAL_REPO/layers/meta-intel
PATH_TO_LOCAL_REPO/layers/meta-starlingX
###########################################################
************************************************************
local.conf:
************************************************************
###########################################################
# Set distro features
DISTRO_FEATURES_append = " virtualization"
DISTRO_FEATURES_append = " openstack"
# set external repo
EXTERNALREPO="/path/to/starlingx/external_repo/cgcs-root/stx"
###########################################################
************************************************************
StarlingX:
************************************************************
###########################################################
mkdir -p /path/to/starlingx/external_repo"
cd /path/to/starlingx/external_repo"
repo init -u https://opendev.org/starlingx/manifest -b master
repo sync --force-sync
###########################################################
************************************************************
StarlingX Build Patches
************************************************************
###########################################################
Apply patches under meta-starlingX/patches/stx-{ha,fault,metal}
directly onto the starlingX source

47
conf/layer.conf Normal file
View File

@ -0,0 +1,47 @@
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "starlingX-layer"
BBFILE_PATTERN_starlingX-layer := "^${LAYERDIR}/"
BBFILE_PRIORITY_starlingX-layer = "5"
LAYERDEPENDS_starlingX-layer = "\
core \
networking-layer \
openembedded-layer \
networking-layer \
filesystems-layer \
perl-layer \
meta-python \
webserver \
virtualization-layer \
cloud-services-layer \
openstack-layer \
openstack-aio-deploy-layer \
openstack-compute-deploy-layer \
openstack-compute-test-config-layer \
openstack-controller-deploy-layer \
openstack-controller-test-config-layer \
openstack-qemu-layer \
openstack-swift-deploy-layer \
measured \
signing-key \
efi-secure-boot \
encrypted-storage \
integrity \
tpm2 \
secure-core \
tpm-layer \
selinux \
"
# This should only be incremented on significant changes that will
# cause compatibility issues with other layers
LAYERVERSION_starlingX-version = "1"
LAYERSERIES_COMPAT_starlingX-layer = "thud"
DISTRO_FEATURES_append += " systemd"

49
docs/Done Normal file
View File

@ -0,0 +1,49 @@
#List of first stab recipes done
# Legend:
# P=Port
# D=Depends
# w=not started yet
# d=initial port done
stx-config:d
config-gate.bb
controllerconfig.bb
puppet-manifests.bb
puppet-modules-wrs.bb
storageconfig
worker-utils.bb
workerconfig.bb
pm-qos-mgr.bb
sysinv.bb
TODO:stx-config:P+stx-openstack-helm:D+openstack-helm:D+openstack-helm-infra:D+kubernetes
TODO:stx-config:P+stx-platform-helm:D+helm:D+openstack-helm-infra:D+kubernetes
stx-fault:d
fm-doc.bb
fm-common.bb
fm-mgr.bb
fm-rest-api.bb
fm-api.bb
snmp-audittrail.bb
snmp-ext.bb
stx-gui:d
stx-metal:d
inventory.bb
mtce-common.bb:common:daemon
mtce-compute.bb
mtce-control.bb
mtce-storage.bb
TODO:stx-metal:D+oslo-config-generator:D+post_run
TODO:stx-metal:P+installer/pxe-network-installer
TODO:stx-metal:P+kickstart
stx-ha:d
sm-common.bb
sm-db.bb
sm.bb
sm-api.bb
sm-client.bb
sm-tools.bb
stx-integ:w
stx-ansible-playbooks:w
stx-nfv:w
stx-update:w
stx-upstream:w

1167
docs/packages.txt Normal file

File diff suppressed because it is too large Load Diff

38
docs/urls Normal file
View File

@ -0,0 +1,38 @@
#stx-integ: url = https://opendev.org/starlingx/integ.git
#stx-ha: url = https://opendev.org/starlingx/ha.git
#stx-config: url = https://opendev.org/starlingx/config.git
#stx-upstream: url = https://opendev.org/starlingx/upstream.git
#stx-clients: url = https://opendev.org/starlingx/clients.git
#stx-gui: url = https://opendev.org/starlingx/gui.git
libvirt: url = https://github.com/starlingx-staging/stx-libvirt.git
#distributedcloud: url = https://opendev.org/starlingx/distcloud.git
python-neutronclient: url = https://opendev.org/openstack/python-neutronclient.git
python-barbicanclient: url = https://opendev.org/openstack/python-barbicanclient.git
python-magnumclient: url = https://opendev.org/openstack/python-magnumclient.git
horizon: url = https://opendev.org/openstack/horizon.git
python-ironicclient: url = https://opendev.org/openstack/python-ironicclient.git
python-aodhclient: url = https://opendev.org/openstack/python-aodhclient.git
docker-distribution: url = https://github.com/docker/distribution.git
python-cinderclient: url = https://opendev.org/openstack/python-cinderclient.git
python-muranoclient: url = https://opendev.org/openstack/python-muranoclient.git
ceph: url = https://github.com/starlingx-staging/stx-ceph.git
python-heatclient: url = https://opendev.org/openstack/python-heatclient.git
python-3parclient: url = https://github.com/hpe-storage/python-3parclient.git
python-novaclient: url = https://opendev.org/openstack/python-novaclient.git
python-openstacksdk: url = https://opendev.org/openstack/openstacksdk.git
python-gnocchiclient: url = https://github.com/gnocchixyz/python-gnocchiclient.git
python-glanceclient: url = https://opendev.org/openstack/python-glanceclient.git
qemu: url = https://github.com/starlingx-staging/stx-qemu.git
distributedcloud-client: url = https://opendev.org/starlingx/distcloud-client.git
openstack-ras: url = https://github.com/starlingx-staging/stx-openstack-ras.git
python-keystoneauth: url = https://opendev.org/openstack/keystoneauth.git
python-pankoclient: url = https://opendev.org/openstack/python-pankoclient.git
ryu: url = https://github.com/starlingx-staging/stx-ryu.git
python-lefthandclient: url = https://github.com/hpe-storage/python-lefthandclient.git
python-openstackclient: url = https://opendev.org/openstack/python-openstackclient.git
python-keystoneclient: url = https://opendev.org/openstack/python-keystoneclient.git
#stx-nfv: url = https://opendev.org/starlingx/nfv.git
#stx-metal: url = https://opendev.org/starlingx/metal.git
#stx-fault: url = https://opendev.org/starlingx/fault.git
#stx-update: url = https://opendev.org/starlingx/update.git
stx-ansible-playbooks: url = https://opendev.org/starlingx/ansible-playbooks.git

View File

@ -0,0 +1,32 @@
From 78585fade2d47fc0aa98b7e2fb494385466007da Mon Sep 17 00:00:00 2001
From: babak sarashki <babak.sarashki@windriver.com>
Date: Thu, 27 Jun 2019 14:36:59 -0700
Subject: [PATCH 1/2] Honor the build system LDFLAGS
---
fm-common/sources/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fm-common/sources/Makefile b/fm-common/sources/Makefile
index 7b1ea03..7c7e4c7 100755
--- a/fm-common/sources/Makefile
+++ b/fm-common/sources/Makefile
@@ -25,12 +25,13 @@ build: lib fmClientCli
$(CXX) $(CCFLAGS) $(INCLUDES) $(EXTRACCFLAGS) -c $< -o $@
lib: $(OBJS)
- $(CXX) -Wl,-soname,$(LIBFMCOMMON_SO).$(MAJOR) -o $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) -shared $(OBJS) $(EXTRAARFLAGS) ${LDLIBS}
+ $(LDCXXSHARED) $(LDFLAGS) -Wl,-soname,$(LIBFMCOMMON_SO).$(MAJOR) \
+ -o $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) $(OBJS) $(EXTRAARFLAGS) ${LDLIBS}
ln -sf $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) $(LIBFMCOMMON_SO).$(MAJOR)
ln -sf $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) $(LIBFMCOMMON_SO)
fmClientCli: $(CLI_OBJS) lib
- $(CXX) -o $@ $(CLI_OBJS) -L./ -lfmcommon
+ $(CXX) $(LDFLAGS) -o $@ $(CLI_OBJS) -L./ -lfmcommon
clean:
@rm -f $(OBJ) *.o *.so fmClientCli
--
2.17.1

View File

@ -0,0 +1,78 @@
From 16a6c17822c725391db8089d1e8984ced6231a6f Mon Sep 17 00:00:00 2001
From: babak sarashki <babak.sarashki@windriver.com>
Date: Fri, 28 Jun 2019 10:15:14 -0700
Subject: [PATCH] G++ chockes on not checking return values with Wall
Check return values and handle truncation. Fix Makefile to install
in ${libdir} rather than hardcoded lib64
---
service-mgmt/sm-common-1.0.0/src/sm_node_utils.c | 3 ++-
service-mgmt/sm-common-1.0.0/src/sm_utils.c | 3 ++-
service-mgmt/sm-db-1.0.0/src/Makefile | 16 ++++++++++------
3 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/service-mgmt/sm-common-1.0.0/src/sm_node_utils.c b/service-mgmt/sm-common-1.0.0/src/sm_node_utils.c
index 1dd25c7..86f48c9 100644
--- a/service-mgmt/sm-common-1.0.0/src/sm_node_utils.c
+++ b/service-mgmt/sm-common-1.0.0/src/sm_node_utils.c
@@ -68,7 +68,8 @@ static SmErrorT sm_node_utils_read_platform_config( const char key[],
if( 1 == sscanf( line, format, val ) )
{
val[sizeof(val)-1] = '\0';
- snprintf( value, value_size, "%s", val );
+ if (snprintf( value, value_size, "%s", val ) < 0)
+ fprintf(stderr,"%s:%d: snprintf failed!\n", __func__, __LINE__);
break;
}
}
diff --git a/service-mgmt/sm-common-1.0.0/src/sm_utils.c b/service-mgmt/sm-common-1.0.0/src/sm_utils.c
index ade30e0..16ddc22 100644
--- a/service-mgmt/sm-common-1.0.0/src/sm_utils.c
+++ b/service-mgmt/sm-common-1.0.0/src/sm_utils.c
@@ -36,7 +36,8 @@ bool sm_utils_process_running( const char* pid_filename )
} else {
int pid;
- fscanf( fp, "%d", &pid );
+ if (fscanf( fp, "%d", &pid ) < 0)
+ fprintf(stderr, "%s:%d: fprintf failed!\n", __func__, __LINE__);
if( pid != getpid() )
{
result = kill( pid, 0 );
diff --git a/service-mgmt/sm-db-1.0.0/src/Makefile b/service-mgmt/sm-db-1.0.0/src/Makefile
index a29b1ac..2e3fd12 100644
--- a/service-mgmt/sm-db-1.0.0/src/Makefile
+++ b/service-mgmt/sm-db-1.0.0/src/Makefile
@@ -33,6 +33,10 @@ EXTRACCFLAGS= -D__STDC_FORMAT_MACROS
LDLIBS= -lsqlite3 -lglib-2.0 -luuid -lrt -lsm_common
LDFLAGS = -shared -rdynamic
+LIB_DIR=/usr/lib64
+BIN_DIR=/usr/bin
+INC_DIR=/usr/include
+
build: libsm_db.so sm_db_build
.c.o:
@@ -51,12 +55,12 @@ sm_db_build: ${OBJS}
$(CXX) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) $(OBJS) $(LDLIBS) -o sm_db_build
install:
- install -d ${DEST_DIR}/usr/lib64
- install libsm_db.so.${VER} $(DEST_DIR)/usr/lib64
- cp -P libsm_db.so libsm_db.so.$(VER_MJR) $(DEST_DIR)/usr/lib64
- install -d ${DEST_DIR}/usr/include
- install -m 0644 *.h ${DEST_DIR}/usr/include
- install -d 755 ${DEST_DIR}/usr/bin
+ install -d ${DEST_DIR}/$(LIB_DIR)
+ install libsm_db.so.${VER} $(DEST_DIR)/$(LIB_DIR)
+ cp -P libsm_db.so libsm_db.so.$(VER_MJR) $(DEST_DIR)/$(LIB_DIR)
+ install -d ${DEST_DIR}/$(INC_DIR)
+ install -m 0644 *.h ${DEST_DIR}/$(INC_DIR)
+# install -d 755 ${DEST_DIR}/$(BIN_DIR)
clean:
@rm -f *.o *.a *.so *.so.*
--
2.17.1

View File

@ -0,0 +1,26 @@
From 3060369f60b2dc9e6d138cabd18d7f206c7bb0f5 Mon Sep 17 00:00:00 2001
From: babak sarashki <babak.sarashki@windriver.com>
Date: Thu, 27 Jun 2019 21:40:34 -0700
Subject: [PATCH 1/2] Use snprintf to avoid overflowing amon.tx_buf
---
mtce/src/public/amon.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mtce/src/public/amon.c b/mtce/src/public/amon.c
index b9146a2..941f905 100644
--- a/mtce/src/public/amon.c
+++ b/mtce/src/public/amon.c
@@ -257,7 +257,8 @@ int active_monitor_dispatch ( void )
}
memset ( amon.tx_buf, 0 , AMON_MAX_LEN );
- sprintf( amon.tx_buf, "%s %8x %d%c", str, magic, seq, '\0' );
+ if (snprintf( amon.tx_buf, AMON_MAX_LEN, "%s %8x %d%c", str, magic, seq, '\0' ) < 0)
+ fprintf(stderr,"%s:%d amon.txbuf overflow detected!\n", __func__, __LINE__);
if ( strcmp ( str, amon.name ) )
{
--
2.17.1

View File

@ -0,0 +1,199 @@
From 0db72ac0c57a9f15ae6999e4ccf85a9db1e752fd Mon Sep 17 00:00:00 2001
From: babak sarashki <babak.sarashki@windriver.com>
Date: Thu, 27 Jun 2019 22:25:15 -0700
Subject: [PATCH 2/2] Use LDFLAGS when linking and pass flags down to submakes
---
mtce/src/Makefile | 27 +++++++++++++++------------
mtce/src/alarm/Makefile | 2 +-
mtce/src/fsmon/Makefile | 2 +-
mtce/src/fsync/Makefile | 2 +-
mtce/src/heartbeat/Makefile | 7 +++++--
mtce/src/hostw/Makefile | 2 +-
mtce/src/hwmon/Makefile | 2 +-
mtce/src/lmon/Makefile | 2 +-
mtce/src/maintenance/Makefile | 4 ++--
mtce/src/mtclog/Makefile | 2 +-
mtce/src/pmon/Makefile | 2 +-
11 files changed, 30 insertions(+), 24 deletions(-)
diff --git a/mtce/src/Makefile b/mtce/src/Makefile
index a9ec0e2..8c256f1 100755
--- a/mtce/src/Makefile
+++ b/mtce/src/Makefile
@@ -8,18 +8,21 @@ VER=1
VER_MJR=1
build:
- (cd public ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
- (cd common ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
- (cd alarm ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd heartbeat ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd maintenance ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd hwmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd mtclog ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd lmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd pmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd fsmon ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd hostw ; make build VER=$(VER) VER_MJR=$(VER_MJR))
- (cd fsync ; make build VER=$(VER) VER_MJR=$(VER_MJR))
+ ( \
+ cd public;\
+ make -e CCFLAGS="$(CCFLAGS) -fPIC" LDFLAGS="$(LDFLAGS) -shared" INCLUDES="$(INCLUDES)" lib VER=$(VER) VER_MJR=$(VER_MJR) \
+ )
+ (cd common ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" lib VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd alarm ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd heartbeat ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd maintenance ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd hwmon ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd mtclog ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd lmon ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd pmon ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd fsmon ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd hostw ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
+ (cd fsync ; make -e LDFLAGS="$(LDFLAGS)" CCFLAGS="$(CCFLAGS)" INCLUDES="$(INCLUDES)" build VER=$(VER) VER_MJR=$(VER_MJR))
clean:
@( cd common ; make clean )
diff --git a/mtce/src/alarm/Makefile b/mtce/src/alarm/Makefile
index a27b0fb..cff233c 100755
--- a/mtce/src/alarm/Makefile
+++ b/mtce/src/alarm/Makefile
@@ -43,7 +43,7 @@ library:
ar rcs libalarm.a alarm.o $(EXTRAARFLAGS)
process: $(OBJS)
- $(CXX) $(CCFLAGS) ${OBJS} -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o mtcalarmd
+ $(CXX) $(CCFLAGS) $(LDFLAGS) ${OBJS} -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o mtcalarmd
clean_bins:
@rm -v -f $(BINS)
diff --git a/mtce/src/fsmon/Makefile b/mtce/src/fsmon/Makefile
index b53cce0..33256ab 100644
--- a/mtce/src/fsmon/Makefile
+++ b/mtce/src/fsmon/Makefile
@@ -28,7 +28,7 @@ else
endif
build: clean static_analysis $(OBJS)
- $(CXX) $(CCFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o fsmond
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o fsmond
common:
( cd ../common ; make clean ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
diff --git a/mtce/src/fsync/Makefile b/mtce/src/fsync/Makefile
index b041f15..85c1543 100644
--- a/mtce/src/fsync/Makefile
+++ b/mtce/src/fsync/Makefile
@@ -16,7 +16,7 @@ all: build
$(CC) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) -c $< -o $@
build: $(OBJS)
- $(CC) $(OBJS) $(LDLIBS) -o fsync
+ $(CC) $(CCFLAGS) $(LDFLAGS) $(OBJS) $(LDLIBS) -o fsync
clean:
@rm -v -f $(OBJS) fsync
diff --git a/mtce/src/heartbeat/Makefile b/mtce/src/heartbeat/Makefile
index a625f20..b8deda7 100755
--- a/mtce/src/heartbeat/Makefile
+++ b/mtce/src/heartbeat/Makefile
@@ -33,8 +33,11 @@ endif
all: static_analysis common agent client
build: static_analysis $(OBJS)
- $(CXX) $(CCFLAGS) hbsAlarm.o hbsAgent.o hbsUtil.o hbsCluster.o hbsStubs.o ../common/nodeClass.o -L../public -L../alarm $(LDLIBS) $(EXTRALDFLAGS) -o hbsAgent
- $(CXX) $(CCFLAGS) hbsClient.o hbsPmon.o hbsUtil.o -L../public -L../alarm $(LDLIBS) $(EXTRALDFLAGS) -o hbsClient
+ $(CXX) $(CCFLAGS) $(LDFLAGS) \
+ hbsAlarm.o hbsAgent.o hbsUtil.o hbsCluster.o hbsStubs.o ../common/nodeClass.o -L../public -L../alarm \
+ $(LDLIBS) $(EXTRALDFLAGS) -o hbsAgent
+
+ $(CXX) $(CCFLAGS) $(LDFLAGS) hbsClient.o hbsPmon.o hbsUtil.o -L../public -L../alarm $(LDLIBS) $(EXTRALDFLAGS) -o hbsClient
common:
( cd ../common ; make clean ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
diff --git a/mtce/src/hostw/Makefile b/mtce/src/hostw/Makefile
index d72708c..af18059 100755
--- a/mtce/src/hostw/Makefile
+++ b/mtce/src/hostw/Makefile
@@ -28,7 +28,7 @@ else
endif
build: clean static_analysis $(OBJS)
- $(CXX) $(CCFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o hostwd
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o hostwd
common:
( cd ../common ; make clean ; make -j1 lib VER=$(VER) VER_MJR=$(VER_MJR))
diff --git a/mtce/src/hwmon/Makefile b/mtce/src/hwmon/Makefile
index 6d7cee3..c168c43 100644
--- a/mtce/src/hwmon/Makefile
+++ b/mtce/src/hwmon/Makefile
@@ -45,7 +45,7 @@ else
endif
build: clean static_analysis $(OBJS)
- $(CXX) $(CCFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o $(BIN)
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o $(BIN)
common:
( cd ../common ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
diff --git a/mtce/src/lmon/Makefile b/mtce/src/lmon/Makefile
index 9e328a4..a1a8519 100755
--- a/mtce/src/lmon/Makefile
+++ b/mtce/src/lmon/Makefile
@@ -29,7 +29,7 @@ else
endif
build: clean static_analysis $(OBJS)
- $(CXX) $(CCFLAGS) $(OBJS) $(LDPATH) $(LDLIBS) $(EXTRALDFLAGS) -o lmond
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(OBJS) $(LDPATH) $(LDLIBS) $(EXTRALDFLAGS) -o lmond
clean:
@rm -v -f $(OBJ) lmond *.o *.a
diff --git a/mtce/src/maintenance/Makefile b/mtce/src/maintenance/Makefile
index 85c2db6..e6a8892 100755
--- a/mtce/src/maintenance/Makefile
+++ b/mtce/src/maintenance/Makefile
@@ -77,10 +77,10 @@ common:
( cd ../common ; make clean ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
mtcAgent: $(OBJS)
- $(CXX) $(CONTROL_OBJS) -L../public -L../alarm $(LDLIBS) $(EXTRALDFLAGS) -o mtcAgent
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(CONTROL_OBJS) -L../public -L../alarm $(LDLIBS) $(EXTRALDFLAGS) -o mtcAgent
mtcClient: $(OBJS)
- $(CXX) $(COMPUTE_OBJS) -L../public -L../alarm $(LDLIBS) $(EXTRALDFLAGS) -o mtcClient
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(COMPUTE_OBJS) -L../public -L../alarm $(LDLIBS) $(EXTRALDFLAGS) -o mtcClient
remove_bins:
@rm -v -f $(BINS)
diff --git a/mtce/src/mtclog/Makefile b/mtce/src/mtclog/Makefile
index 1d49aa4..fb513d9 100644
--- a/mtce/src/mtclog/Makefile
+++ b/mtce/src/mtclog/Makefile
@@ -30,7 +30,7 @@ else
endif
build: clean static_analysis $(OBJS)
- $(CXX) $(CCFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o mtclogd
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o mtclogd
common:
( cd ../common ; make clean ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
diff --git a/mtce/src/pmon/Makefile b/mtce/src/pmon/Makefile
index f75f2be..c34e204 100755
--- a/mtce/src/pmon/Makefile
+++ b/mtce/src/pmon/Makefile
@@ -29,7 +29,7 @@ else
endif
build: clean static_analysis $(OBJS)
- $(CXX) $(CCFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o pmond
+ $(CXX) $(CCFLAGS) $(LDFLAGS) $(OBJS) -L../daemon -L../common $(LDLIBS) $(EXTRALDFLAGS) -o pmond
common:
( cd ../common ; make clean ; make lib VER=$(VER) VER_MJR=$(VER_MJR))
--
2.17.1

View File

@ -0,0 +1,27 @@
SUMMARY = "StarlingX/cgsc-root/stx/stx-config"
PR = "r0"
#
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
#
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
PROVIDES = "${PACKAGES}"
PACKAGES = " \
packagegroup-stx-config \
"
RDEPENDS_packagegroup-stx-config = " \
config-gate \
controllerconfig \
puppet-manifests \
puppet-modules-wrs \
storageconfig \
worker-utils \
workerconfig \
pm-qos-mgr \
sysinv \
"

View File

@ -0,0 +1,26 @@
SUMMARY = "StarlingX/cgsc-root/stx/stx-config"
PR = "r0"
#
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
#
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
PROVIDES = "${PACKAGES}"
PACKAGES = " \
packagegroup-stx-fault\
"
RDEPENDS_packagegroup-stx-fault = " \
fm-api \
fm-common \
fm-doc \
fm-mgr \
fm-rest-api \
python-fmclient \
snmp-audittrail \
snmp-ext \
"

View File

@ -0,0 +1,25 @@
SUMMARY = "StarlingX/cgsc-root/stx/stx-config"
PR = "r0"
#
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
#
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
PROVIDES = "${PACKAGES}"
PACKAGES = " \
packagegroup-stx-metal \
"
RDEPENDS_packagegroup-stx-metal = " \
inventory \
mtce \
mtce-common \
mtce-compute \
mtce-control \
mtce-storage \
python-inventoryclient \
"

View File

@ -0,0 +1,39 @@
DESCRIPTION = "config-gate"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
RDEPENDS_${PN} += " bash"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
cd ${S}/config-gate/files
oe_runmake -e \
SBINDIR=${D}/${sbindir} SYSTEMDDIR=${D}/${systemd_system_unitdir}
}
FILES_${PN}_append += " ${baselib} \
${sysconfdir} \
${bindir} \
${sbindir} \
"

View File

@ -0,0 +1,61 @@
DESCRIPTION = "controllerconfig"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit setuptools externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
RDEPENDS_${PN} += " bash"
do_configure () {
cd ${S}/controllerconfig/controllerconfig
distutils_do_configure
}
do_compile() {
cd ${S}/controllerconfig/controllerconfig
distutils_do_compile
}
do_install () {
cd ${S}/controllerconfig/controllerconfig
distutils_do_install
# TBD
# install -d -m 755 ${D}/wheels
# install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -p -D -m 700 scripts/keyringstaging ${D}/${bindir}
install -p -D -m 700 scripts/openstack_update_admin_password ${D}/${bindir}
install -p -D -m 700 scripts/install_clone.py ${D}/${bindir}
install -p -D -m 700 scripts/finish_install_clone.sh ${D}/${bindir}
install -p -D -m 700 scripts/config_goenabled_check.sh ${D}/${sysconfdir}/goenabled.d
install -p -D -m 755 scripts/controller_config ${D}/${sysconfdir}/init.d
## Install Upgrade scripts
install -d -m 755 ${D}/${sysconfdir}/upgrade.d
install -p -D -m 755 upgrade-scripts/* ${D}/${sysconfdir}/upgrade.d
install -p -D -m 664 scripts/controllerconfig.service ${D}/${systemd_system_unitdir}
}
FILES_${PN}_append += " ${baselib} \
${sysconfdir} \
${bindir} \
${sbindir} \
"

View File

@ -0,0 +1,44 @@
DESCRIPTION = "pm-qos-mgr"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit setuptools externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
DEPENDS = "\
python \
python-pbr-native \
"
RDEPENDS_${PN} += " bash"
do_configure () {
cd ${S}/pm-qos-mgr/src
distutils_do_configure
}
do_compile() {
cd ${S}/pm-qos-mgr/src
distutils_do_compile
}
do_install () {
cd ${S}/pm-qos-mgr/src
distutils_do_install
install -p -D -m 664 pm-qos-mgr.service ${D}/${systemd_system_unitdir}
}
FILES_${PN}_append += " ${systemd_system_unitdir}"

View File

@ -0,0 +1,41 @@
DESCRIPTION = "puppet-manifests"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
DEPENDS = " \
puppet \
"
RDEPENDS_${PN} += " bash"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
cd ${S}/puppet-manifests/src
oe_runmake BINDIR=${D}/${bindir} \
CONFIGDIR=${D}/${sysconfdir}/puppet/ \
MODULEDIR=${D}/${datadir}/puppet/modules -f Makefile install
}
FILES_${PN}_append += " ${sysconfdir} \
${datadir} \
"

View File

@ -0,0 +1,56 @@
DESCRIPTION = "puppet-modules-wrs"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
DEPENDS = " \
puppet \
"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
install -d -m 0755 ${D}/${datadir}/puppet/modules/dcdbsync
install -d -m 0755 ${D}/${datadir}/puppet/modules/dcocrch
install -d -m 0755 ${D}/${datadir}/puppet/modules/mtce
install -d -m 0755 ${D}/${datadir}/puppet/modules/patching
install -d -m 0755 ${D}/${datadir}/puppet/modules/sshd
install -d -m 0755 ${D}/${datadir}/puppet/modules/dcmanager
install -d -m 0755 ${D}/${datadir}/puppet/modules/fm
install -d -m 0755 ${D}/${datadir}/puppet/modules/nfv
install -d -m 0755 ${D}/${datadir}/puppet/modules/smapi
install -d -m 0755 ${D}/${datadir}/puppet/modules/sysinv
cp -R ${S}/puppet-modules-wrs/puppet-dcdbsync/src/dcdbsync ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-dcorch/src/dcorch ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-patching/src/patching ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-sshd/src/sshd ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-dcmanager/src/dcmanager ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-fm/src/fm ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-nfv/src/nfv ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-smapi/src/smapi ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-sysinv/src/sysinv ${D}/${datadir}/puppet/modules
}
FILES_${PN}_append += " ${datadir}"

View File

@ -0,0 +1,37 @@
DESCRIPTION = "storageconfig"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
RDEPENDS_${PN} += " bash"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
cd ${S}/storageconfig/storageconfig/
oe_runmake GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d INITDDIR=${D}/${sysconfdir}/init.d \
SYSTEMDDIR=${D}/${systemd_system_unitdir} install
}
FILES_${PN}_append += " ${sysconfdir} \
${systemd_system_unitdir} \
"

View File

@ -0,0 +1,209 @@
DESCRIPTION = "stx-config"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
# DEPENDS = " python-pbr
DEPENDS = " \
python-pyinotify \
python-pbr-native \
puppet \
"
RDEPENDS_${PN} = " bash"
inherit setuptools
do_configure () {
# config-gate: Do Nothing
# puppet-namifests: DO Nothing
# puppet-modules-wrs: DO Nothing
# storeageconfig: DO Nothing
# workerconfig: DO Nothing
# worker-utils: DO Nothing
# TODO:
# kubernetes: Requires openstack-helm
# cd ${S}/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm
# distutils_do_configure
# controllerconfig
cd ${S}/controllerconfig/controllerconfig
distutils_do_configure
# pm-qos-mgr:
cd ${S}/pm-qos-mgr/src
distutils_do_configure
# sysinv:
cd ${S}/sysinv/cgts-client/cgts-client
distutils_do_configure
cd ${S}/sysinv/sysinv/sysinv
distutils_do_configure
}
do_compile() {
# config-gate: Do Nothing
# puppet-namifests: DO Nothing
# puppet-modules-wrs: DO Nothing
# storeageconfig: DO Nothing
# workerconfig: DO Nothing
# controllerconfig
cd ${S}/controllerconfig/controllerconfig
distutils_do_compile
# pm-qos-mgr:
cd ${S}/pm-qos-mgr/src
distutils_do_compile
# sysinv:
cd ${S}/sysinv/cgts-client/cgts-client
distutils_do_compile
cd ${S}/sysinv/sysinv/sysinv
distutils_do_compile
# worker-utils:
cd ${S}/worker-utils/worker-utils
oe_runmake all
}
do_install () {
install -d -m 755 ${D}/${sbindir}
install -d -m 755 ${D}/${systemd_system_unitdir}
install -d -m 755 ${D}/${bindir}
install -d -m 755 ${D}/${sysconfdir}/goenabled.d
install -d -m 755 ${D}/${sysconfdir}/init.d
install -d -m 755 ${D}/${sysconfdir}/upgrade.d
install -d -m 755 ${D}/${sysconfdir}/systemd/system
# config-gate:
cd ${S}/config-gate/files
install -p -D -m 555 wait_for_config_init.sh ${D}/${sbindir}
install -p -D -m 555 wait_for_worker_config_init.sh ${D}/${sbindir}
install -p -D -m 444 config.service ${D}/${systemd_system_unitdir}
install -p -D -m 444 worker-config-gate.service ${D}/${systemd_system_unitdir}
# controllerconfig
cd ${S}/controllerconfig/controllerconfig
distutils_do_install
# TBD
# install -d -m 755 ${D}/wheels
# install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -p -D -m 700 scripts/keyringstaging ${D}/${bindir}
install -p -D -m 700 scripts/openstack_update_admin_password ${D}/${bindir}
install -p -D -m 700 scripts/install_clone.py ${D}/${bindir}
install -p -D -m 700 scripts/finish_install_clone.sh ${D}/${bindir}
install -p -D -m 700 scripts/config_goenabled_check.sh ${D}/${sysconfdir}/goenabled.d
install -p -D -m 755 scripts/controller_config ${D}/${sysconfdir}/init.d
## Install Upgrade scripts
install -p -D -m 755 upgrade-scripts/* ${D}/${sysconfdir}/upgrade.d
install -p -D -m 664 scripts/controllerconfig.service ${D}/${systemd_system_unitdir}
# pm-qos-mgr:
cd ${S}/pm-qos-mgr/src
distutils_do_install
install -p -D -m 664 pm-qos-mgr.service ${D}/${systemd_system_unitdir}
# puppet-manifests:
cd ${S}/puppet-manifests/src
oe_runmake BINDIR=${D}/${bindir} \
CONFIGDIR=${D}/${sysconfdir}/puppet/ \
MODULEDIR=${D}/${datadir}/puppet/modules -f Makefile install
# puppet-modules-wrs:
install -d -m 0755 ${D}/${datadir}/puppet/modules/dcdbsync
install -d -m 0755 ${D}/${datadir}/puppet/modules/dcocrch
install -d -m 0755 ${D}/${datadir}/puppet/modules/mtce
install -d -m 0755 ${D}/${datadir}/puppet/modules/patching
install -d -m 0755 ${D}/${datadir}/puppet/modules/sshd
install -d -m 0755 ${D}/${datadir}/puppet/modules/dcmanager
install -d -m 0755 ${D}/${datadir}/puppet/modules/fm
install -d -m 0755 ${D}/${datadir}/puppet/modules/nfv
install -d -m 0755 ${D}/${datadir}/puppet/modules/smapi
install -d -m 0755 ${D}/${datadir}/puppet/modules/sysinv
cp -R ${S}/puppet-modules-wrs/puppet-dcdbsync/src/dcdbsync ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-dcorch/src/dcorch ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-patching/src/patching ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-sshd/src/sshd ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-dcmanager/src/dcmanager ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-fm/src/fm ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-nfv/src/nfv ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-smapi/src/smapi ${D}/${datadir}/puppet/modules
cp -R ${S}/puppet-modules-wrs/puppet-sysinv/src/sysinv ${D}/${datadir}/puppet/modules
# storeageconfig:
cd ${S}/storageconfig/storageconfig/
oe_runmake GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d INITDDIR=${D}/${sysconfdir}/init.d \
SYSTEMDDIR=${D}/${systemd_system_unitdir} install
#install -d -m 755 ${D}/${sysconfdir}/init.d
#install -d -m 755 ${D}/${sysconfdir}/goenabled.d/
#install -p -D -m 700 ${S}/storageconfig/storageconfig/storage_config \
# ${D}/${sysconfdir}/init.d/storage_config
#install -p -D -m 755 ${S}/storageconfig/storageconfig/config_goenabled_check.sh \
# ${D}/${sysconfdir}/goenabled.d/
#install -p -D -m 755 ${S}/storageconfig/storageconfig/storageconfig.service ${D}/${systemd_system_unitdir}
# sysinv:
cd ${S}/sysinv/cgts-client/cgts-client
distutils_do_install
cd ${S}/sysinv/sysinv/sysinv
distutils_do_install
install -d -m 755 ${D}/${sysconfdir}/init.d
install -d -m 755 ${D}/${sysconfdir}/pmon.d
install -p -D -m 755 ${S}/sysinv/sysinv-agent/sysinv-agent ${D}/${sysconfdir}/init.d/
install -p -D -m 644 ${S}/sysinv/sysinv-agent/sysinv-agent.conf ${D}/${sysconfdir}/pmon.d/
install -p -D -m 644 ${S}/sysinv/sysinv-agent/sysinv-agent.service ${D}/${systemd_system_unitdir}
# workerconfig:
cd ${S}/workerconfig/workerconfig/
oe_runmake GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d INITDDIR=${D}/${sysconfdir}/init.d \
SYSTEMDDIR=${D}/${systemd_system_unitdir} install
# worker-utils:
cd ${S}/worker-utils/worker-utils
oe_runmake BINDIR=${D}/${bindir} GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d \
INITDDIR=${D}/${sysconfdir}/init.d PLATFORMCONFDIR=${D}/${sysconfdir}/platform \
SYSTEMDDIR=${D}/${systemd_system_unitdir} install
}
FILES_${PN}_append += " ${baselib} \
${systemd_unitdir} \
${systemd_system_unitdir} \
${systemd_system_unitdir}/worker-config-gate.service \
${systemd_system_unitdir}/config.service \
${datadir}/puppet/* \
"
inherit externalsrc
# EXTERNALSRC="${TMPDIR}/work-shared/starlingX/stx-config-${PV}/git"
# S = "${TMPDIR}/work-shared/starlingX/stx-config-${PV}/git"
#B = "${WORKDIR}/config-gate-${PV}/build"

View File

@ -0,0 +1,58 @@
DESCRIPTION = "pm-qos-mgr"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit setuptools externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
DEPENDS = "\
python \
python-pbr-native \
"
do_configure () {
cd ${S}/sysinv/cgts-client/cgts-client
distutils_do_configure
cd ${S}/sysinv/sysinv/sysinv
distutils_do_configure
}
do_compile() {
cd ${S}/sysinv/cgts-client/cgts-client
distutils_do_compile
cd ${S}/sysinv/sysinv/sysinv
distutils_do_compile
}
do_install () {
cd ${S}/sysinv/cgts-client/cgts-client
distutils_do_install
cd ${S}/sysinv/sysinv/sysinv
distutils_do_install
install -d -m 755 ${D}/${sysconfdir}/init.d
install -d -m 755 ${D}/${sysconfdir}/pmon.d
install -p -D -m 755 ${S}/sysinv/sysinv-agent/sysinv-agent ${D}/${sysconfdir}/init.d/
install -p -D -m 644 ${S}/sysinv/sysinv-agent/sysinv-agent.conf ${D}/${sysconfdir}/pmon.d/
install -p -D -m 644 ${S}/sysinv/sysinv-agent/sysinv-agent.service ${D}/${systemd_system_unitdir}
}
FILES_${PN}_append += " \
${sysconfdir} \
${systemd_system_unitdir} \
"

View File

@ -0,0 +1,40 @@
DESCRIPTION = "woker-utils"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
RDEPENDS_${PN} += " bash"
do_configure () {
:
}
do_compile() {
cd ${S}/worker-utils/worker-utils
oe_runmake all
}
do_install () {
cd ${S}/worker-utils/worker-utils
oe_runmake BINDIR=${D}/${bindir} GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d \
INITDDIR=${D}/${sysconfdir}/init.d PLATFORMCONFDIR=${D}/${sysconfdir}/platform \
SYSTEMDDIR=${D}/${systemd_system_unitdir} install
}
FILES_${PN}_append += " ${bindir} \
${sysconfdir} \
${systemd_system_unitdir} \
"

View File

@ -0,0 +1,37 @@
DESCRIPTION = "wokerconfig"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-config"
RDEPENDS_${PN} += " bash"
do_configure () {
:
}
do_compile() {
}
do_install () {
cd ${S}/workerconfig/workerconfig/
oe_runmake GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d INITDDIR=${D}/${sysconfdir}/init.d \
SYSTEMDDIR=${D}/${systemd_system_unitdir} install
}
FILES_${PN}_append += " \
${sysconfdir} \
${systemd_system_unitdir} \
"

View File

@ -0,0 +1,39 @@
DESCRIPTION = "fm-api"
# INSANE_SKIP_${PN} = "ldflags"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-fault.inc
inherit setuptools
DEPENDS = " \
python \
python-pbr-native \
"
do_configure () {
cd ${S}/fm-api
distutils_do_configure
}
do_compile() {
cd ${S}/fm-api
distutils_do_compile
}
do_install () {
cd ${S}/fm-api
distutils_do_install
}

View File

@ -0,0 +1,56 @@
DESCRIPTION = "fm-common"
# INSANE_SKIP_${PN} = "ldflags"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-fault.inc
inherit setuptools
DEPENDS = " \
postgresql \
python \
python-pbr \
python-pbr-native \
"
# RDEPENDS_${PN} += " bash"
do_configure () {
cd ${S}/fm-common/sources
distutils_do_configure
}
do_compile() {
cd ${S}/fm-common/sources
oe_runmake -e BINDIR=${bindir} \
INCLUDES="-I./ " \
EXTRACCFLAGS=" " \
CCFLAGS="${CXXFLAGS} ${CCSHARED}" \
LIBDIR=${libdir} INCDIR=${includedir} \
CGCS_DOC_DEPLOY=${cgcs_doc_deploy}
distutils_do_compile
}
do_install () {
cd ${S}/fm-common/sources
oe_runmake -e DESTDIR=${D} BINDIR=${bindir} \
LIBDIR=${libdir} INCDIR=${includedir} \
CGCS_DOC_DEPLOY=${cgcs_doc_deploy} install
distutils_do_install
}
FILES_${PN}_append += " ${cgcs_doc_deploy} "

View File

@ -0,0 +1,44 @@
DESCRIPTION = "fm-doc"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-fault"
require stx-fault.inc
# DEPENDS = " "
# RDEPENDS_${PN} += " bash"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
cd ${S}/fm-doc/fm_doc/
install -d -m 755 ${D}/${cgcs_doc_deploy}
install -d -m 755 ${D}/${sysconfdir}/fm
install -m 744 events.yaml ${D}/${sysconfdir}/fm/
install -m 644 events.yaml ${D}/${cgcs_doc_deploy}
install -m 755 checkEventYaml ${D}/${cgcs_doc_deploy}
install -m 644 parseEventYaml.py ${D}/${cgcs_doc_deploy}
install -m 644 check_missing_alarms.py ${D}/${cgcs_doc_deploy}
}
FILES_${PN}_append += " ${cgcs_doc_deploy} "

View File

@ -0,0 +1,45 @@
DESCRIPTION = "fm-doc"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-fault"
require stx-fault.inc
DEPENDS = " fm-common"
# RDEPENDS_${PN} += " bash"
do_configure () {
:
}
do_compile() {
cd ${S}/fm-mgr/sources/
oe_runmake -e
}
do_install () {
cd ${S}/fm-mgr/sources/
install -d -m0755 ${D}/${systemd_system_unitdir}
oe_runmake -e DESTDIR=${D} BINDIR=${bindir} \
LIBDIR=${libdir} UNITDIR=${systemd_system_unitdir} \
SYSCONFDIR=${sysconfdir} \
install
}
FILES_${PN}_append += " ${libdir} \
${systemd_system_unitdir} \
"

View File

@ -0,0 +1,43 @@
DESCRIPTION = "fm-rest-api"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-fault"
inherit setuptools
require stx-fault.inc
do_configure () {
cd ${S}/fm-rest-api/fm
distutils_do_configure
}
do_compile() {
cd ${S}/fm-rest-api/fm
distutils_do_compile
}
do_install () {
cd ${S}/fm-rest-api/fm
distutils_do_compile
install -p -D -m 644 scripts/fm-api.service ${D}/${systemd_system_unitdir}
install -p -D -m 755 scripts/fm-api ${D}/${sysconfdir}/init.d/fm-api
install -p -D -m 644 fm-api-pmond.conf ${D}/${sysconfdir}/pmon.d/fm-api.conf
}
FILES_${PN}_append = " ${systemd_system_unitdir}"

View File

@ -0,0 +1,42 @@
DESCRIPTION = "python-fmclient"
# INSANE_SKIP_${PN} = "ldflags"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-fault.inc
inherit setuptools
DEPENDS = " \
python \
python-pbr-native \
"
do_configure () {
cd ${S}/python-fmclient/fmclient
distutils_do_configure
}
do_compile() {
cd ${S}/python-fmclient/fmclient
distutils_do_compile
}
do_install () {
cd ${S}/python-fmclient/fmclient
distutils_do_install
install -d -m 0755 ${D}/${sysconfdir}/bash_completion.d/
install -p -D -m 664 tools/fm.bash_completion ${D}/${sysconfdir}/bash_completion.d/fm.bash_completion
}

View File

@ -0,0 +1,44 @@
DESCRIPTION = "snmp-audittrail"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-fault"
require stx-fault.inc
DEPENDS = " \
fm-common \
net-snmp \
"
do_configure () {
:
}
do_compile() {
cd ${S}/snmp-audittrail/sources
oe_runmake -e \
INCLUDES="-I. " \
LDFLAGS="${LDFLAGS}" \
CCFLAGS="${CXXFLAGS} -fPIC"
}
do_install () {
cd ${S}/snmp-audittrail/sources
oe_runmake -e DESTDIR=${D} LIB_DIR=${libdir} MIBVER=0 PATCH=0 install
}
FILES_${PN}_append = " ${systemd_system_unitdir}"

View File

@ -0,0 +1,46 @@
DESCRIPTION = "snmp-ext"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-fault"
require stx-fault.inc
DEPENDS = " \
fm-common \
snmp-audittrail \
"
do_configure () {
:
}
do_compile() {
cd ${S}/snmp-ext/sources
oe_runmake -e PATCH=0 \
INCLUDES="-I. " \
LDFLAGS="${LDFLAGS}" \
CCFLAGS="${CXXFLAGS} -fPIC"
}
do_install () {
cd ${S}/snmp-ext/sources
oe_runmake -e DEST_DIR=${D} LIB_DIR=${libdir} MIBVER=0 PATCH=0 install
}
FILES_${PN}_append = " \
${systemd_system_unitdir} \
${datadir} \
"

View File

@ -0,0 +1,197 @@
DESCRIPTION = "stx-fault"
INSANE_SKIP_${PN} = "ldflags"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "eeb2dee9023347f73d7153325190550a5dc87e7a"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/fault.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH} \
file://0001-Fix-compile-errors.patch \
"
DEPENDS = " \
util-linux \
postgresql \
python \
python-pbr-native \
python-six \
python-oslo.i18n \
python-oslo.utils \
python-requests \
bash \
net-snmp \
"
RDEPENDS_${PN} += " bash"
inherit setuptools
cgcs_doc_deploy = "/opt/deploy/cgcs_doc"
do_configure () {
# fm-doc: Do Nothing
# fm-mgr: Do Nothing
# fm-rest-api: Do Nothing
# snmp-ext: Do Nothing
# snmp-audittrail: Do Nothing
# fm-api
cd ${S}/fm-api
distutils_do_configure
# fm-common:
cd ${S}/fm-common/sources/
distutils_do_configure
#fm-rest-api:
cd ${S}/fm-rest-api/fm/
distutils_do_configure
# python-fmclient:
cd ${S}/python-fmclient/fmclient
distutils_do_configure
}
do_compile() {
# fm-doc: Do Nothing
# fm-api
cd ${S}/fm-api
distutils_do_compile
# fm-common:
cd ${S}/fm-common/sources/
oe_runmake -e BINDIR=${bindir} \
LIBDIR=${libdir} INCDIR=${includedir} \
CGCS_DOC_DEPLOY=${cgcs_doc_deploy}
distutils_do_compile
# fm-mgr:
cd ${S}/fm-mgr/sources/
oe_runmake -e \
INCLUDES="-I. -I../../fm-common/sources" \
LDFLAGS="$LDFLAGS -L../../fm-common/sources"
#fm-rest-api:
cd ${S}/fm-rest-api/fm/
distutils_do_configure
# python-fmclient:
cd ${S}/python-fmclient/fmclient
distutils_do_compile
# snmp-audittrail:
cd ${S}/snmp-audittrail/sources/
oe_runmake -e LDFLAGS="$LDFLAGS -L../../fm-common/sources"
# snmp-ext:
cd ${S}/snmp-ext/sources/
# PATCH=${tis_patch_ver}
# tis_patch_ver = "0"
# mib_ver = "2.0"
oe_runmake -e PATCH=0 \
INCLUDES="-I. -I../../fm-common/sources" \
LDFLAGS="$LDFLAGS -L../../fm-common/sources -L../../snmp-audittrail/sources/"
}
do_install () {
install -d -m 0755 ${D}/${systemd_system_unitdir}
# fm-api
cd ${S}/fm-api
distutils_do_install
# fm-common:
cd ${S}/fm-common/sources/
oe_runmake -e DESTDIR=${D} BINDIR=${bindir} \
LIBDIR=${libdir} INCDIR=${includedir} \
CGCS_DOC_DEPLOY=${cgcs_doc_deploy} install
distutils_do_install
#fm-doc:
cd ${S}/fm-doc/fm_doc/
install -d -m 755 ${D}/${cgcs_doc_deploy}
install -d -m 755 ${D}/${sysconfdir}/fm
install -m 744 events.yaml ${D}/${sysconfdir}/fm/
install -m 644 events.yaml ${D}/${cgcs_doc_deploy}
install -m 755 checkEventYaml ${D}/${cgcs_doc_deploy}
install -m 644 parseEventYaml.py ${D}/${cgcs_doc_deploy}
install -m 644 check_missing_alarms.py ${D}/${cgcs_doc_deploy}
#fm-mgr:
cd ${S}/fm-mgr/sources/
oe_runmake -e DESTDIR=${D} BINDIR=${bindir} \
LIBDIR=${libdir} UNITDIR=${systemd_system_unitdir} \
SYSCONFDIR=${sysconfdir} \
INCLUDES="-I. -I../../fm-common/sources" install
#fm-rest-api:
cd ${S}/fm-rest-api/fm/
distutils_do_install
install -p -D -m 644 scripts/fm-api.service ${D}/${systemd_system_unitdir}
install -d -m 0755 ${D}/${sysconfdir}/init.d
install -d -m 0755 ${D}/${sysconfdir}/pmon.d/
install -p -D -m 755 scripts/fm-api ${D}/${sysconfdir}/init.d/fm-api
install -p -D -m 644 fm-api-pmond.conf ${D}/${sysconfdir}/pmon.d/fm-api.conf
# python-fmclient:
cd ${S}/python-fmclient/fmclient
distutils_do_install
install -d -m 0755 ${D}/${sysconfdir}/bash_completion.d/
install -p -D -m 664 tools/fm.bash_completion ${D}/${sysconfdir}/bash_completion.d/fm.bash_completion
# snmp-audittrail:
cd ${S}/snmp-audittrail/sources/
# tis_patch_ver = "0"
# PATCH=${tis_patch_ver}
oe_runmake -e DESTDIR=${D} LIB_DIR=${libdir} PATCH=0 install
# snmp-ext:
cd ${S}/snmp-ext/sources/
#tis_patch_ver = "0"
#mib_ver = "2.0"
oe_runmake -e DEST_DIR=${D} LIB_DIR=${libdir} \
MIBVER=0 \
PATCH=0 install
}
# TODO:
# post install scripts
# fm-doc: constants.py and fmAPI.h
# fm-rest-api: oslo-config-generator
pkg_postinst_ontarget_${PN} () {
# fm-rest-api:
# cd oslo-config-generator --config-file fm/config-generator.conf \
# --output-file /tmp/fm.conf.sample
# install -p -D -m 644 /tmp/fm.conf.sample /etc/fm/fm.conf
# fm-doc:
# cd ${datadir}/
# cp .../constants.py .../fmAlarm.h .
# ./checkEventYaml
# rm constants.py* fmAlarm.h*
}
FILES_${PN}_append += " ${baselib} \
${systemd_unitdir} \
${systemd_system_unitdir} \
${systemd_system_unitdir}/worker-config-gate.service \
${systemd_system_unitdir}/config.service \
${datadir}/* \
opt/* \
"

View File

@ -0,0 +1,3 @@
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-fault"
cgcs_doc_deploy = "/opt/deploy/cgcs_doc"

View File

@ -0,0 +1,56 @@
DESCRIPTION = "stx-gui"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "596136ecb8d0f07cf9124ed82db66e4031116344"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
SRC_URI = "git://opendev.org/starlingx/gui.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-gui"
cgcs_doc_deploy = "/opt/deploy/cgcs_doc"
inherit setuptools
DEPENDS = "\
python \
python-pbr-native \
"
# TODO: do we need openstack-dashboard here
do_configure () {
cd ${S}/starlingx-dashboard/starlingx-dashboard
distutils_do_configure
}
do_compile () {
cd ${S}/starlingx-dashboard/starlingx-dashboard
distutils_do_compile
}
do_install () {
cd ${S}/starlingx-dashboard/starlingx-dashboard
distutils_do_install
# Do we need this?
#install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
#install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx/
#install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
#install -p -D -m 755 build/lib/starlingx_dashboard/enabled/* \
# ${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
#install -p -D -m 755 build/lib/starlingx_dashboard/themes/* \
# ${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx_dashboard
#install -p -D -m 755 build/lib/starlingx_dashboard/local/local_settings.d/* \
# ${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
}

View File

@ -0,0 +1,49 @@
DESCRIPTION = "sm-api"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-ha.inc
inherit setuptools
DEPENDS = " \
python \
python-pbr-native \
"
do_configure () {
cd ${S}/service-mgmt-api/sm-api
distutils_do_configure
}
do_compile() {
cd ${S}/service-mgmt-api/sm-api
distutils_do_compile
}
do_install () {
cd ${S}/service-mgmt-api/sm-api
distutils_do_install
install -d -m 0755 ${D}/${sysconfdir}/sm
install -d -m 0755 ${D}/${sysconfdir}/init.d
install -d -m 0755 ${D}/${sysconfdir}/pmon.d
install -d -m 0755 ${D}/${sysconfdir}/sm-api
install -d -m 0755 ${D}/${systemd_system_unitdir}
install -m 644 scripts/sm_api.ini ${D}/${sysconfdir}/sm
install -m 755 scripts/sm-api ${D}/${sysconfdir}/init.d
install -m 644 scripts/sm-api.service ${D}/${systemd_system_unitdir/}
install -m 644 scripts/sm-api.conf ${D}/${sysconfdir}/pmon.d
install -m 644 etc/sm-api/policy.json ${D}/${sysconfdir}/sm-api
}
FILES_${PN}_append = " ${systemd_unitdir}/* "

View File

@ -0,0 +1,39 @@
DESCRIPTION = "sm-client"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-ha.inc
inherit setuptools
DEPENDS = " \
python \
python-pbr-native \
"
do_configure () {
cd ${S}/service-mgmt-client/sm-client
distutils_do_configure
}
do_compile() {
cd ${S}/service-mgmt-client/sm-client
distutils_do_compile
}
do_install () {
cd ${S}/service-mgmt-client/sm-client
distutils_do_install
install -d -m 0755 ${D}/${bindir}
install -m 755 usr/bin/smc ${D}/${bindir}
}

View File

@ -0,0 +1,43 @@
DESCRIPTION = "sm-common"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
# S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-ha.inc
inherit pkgconfig
DEPENDS += " \
glib-2.0 \
sqlite3 \
"
do_configure () {
:
}
do_compile() {
cd ${S}/service-mgmt/sm-common-1.0.0/src
oe_runmake -e VER=0 VER_MJR=1 \
INCLUDES="-I. $(pkg-config --cflags glib-2.0)" \
CCFLAGS="${CXXFLAGS} -fPIC" LDFLAGS="${LDFLAGS} -shared -rdynamic"
}
do_install () {
cd ${S}/service-mgmt/sm-common-1.0.0/src
oe_runmake -e DEST_DIR=${D} BIN_DIR=${bindir} UNIT_DIR=${systemd_system_unitdir} \
LIB_DIR=${libdir} INC_DIR=${includedir} VER=0 VER_MJR=1 install
}
FILES_${PN}-dev_append = " var/lib/sm/watchdog/modules/libsm_watchdog_nfs.so"

View File

@ -0,0 +1,40 @@
DESCRIPTION = "sm-db"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
# S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-ha.inc
inherit pkgconfig
DEPENDS += " \
sm-common \
"
do_configure () {
:
}
do_compile() {
cd ${S}/service-mgmt/sm-db-1.0.0/src
oe_runmake -e VER=0 VER_MJR=1 \
INCLUDES="-I. $(pkg-config --cflags glib-2.0)" \
CCFLAGS="${CXXFLAGS} -fPIC" LDFLAGS="${LDFLAGS} -shared -rdynamic"
}
do_install () {
cd ${S}/service-mgmt/sm-db-1.0.0/src
oe_runmake -e DEST_DIR=${D} BIN_DIR=${bindir} UNIT_DIR=${systemd_system_unitdir} \
LIB_DIR=${libdir} INC_DIR=${includedir} VER=0 VER_MJR=1 install
}

View File

@ -0,0 +1,37 @@
DESCRIPTION = "sm-tools"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-ha.inc
inherit setuptools
DEPENDS = " \
python \
python-pbr-native \
"
do_configure () {
cd ${S}/service-mgmt-tools/sm-tools
distutils_do_configure
}
do_compile() {
cd ${S}/service-mgmt-tools/sm-tools
distutils_do_compile
}
do_install () {
cd ${S}/service-mgmt-tools/sm-tools
distutils_do_install
}

51
recipes-core/stx-ha/sm.bb Normal file
View File

@ -0,0 +1,51 @@
DESCRIPTION = "sm"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
# S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-ha.inc
inherit pkgconfig
DEPENDS += " \
sm-common \
sm-db \
fm-api \
mtce \
sqlite3 \
"
#TODO: Shouldn't have to do this
LDFLAGS_remove = "-Wl,--as-needed"
do_configure () {
:
}
do_compile() {
cd ${S}/service-mgmt/sm-1.0.0/src
oe_runmake -e -j1 VER=0 VER_MJR=1 \
INCLUDES="-I. $(pkg-config --cflags glib-2.0)" \
CCFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS} -rdynamic"
}
do_install () {
cd ${S}/service-mgmt/sm-1.0.0/src
oe_runmake -e DEST_DIR=${D} BIN_DIR=${bindir} UNIT_DIR=${systemd_system_unitdir} \
LIB_DIR=${libdir} INC_DIR=${includedir} VER=0 VER_MJR=1 install
}
pkg_postinst_ontarget_${PN} () {
/usr/bin/systemctl enable sm.service >/dev/null 2>&1
/usr/bin/systemctl enable sm-shutdown.service >/dev/null 2>&1
}

View File

@ -0,0 +1,2 @@
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-ha"

View File

@ -0,0 +1,66 @@
DESCRIPTION = "inventory"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-metal.inc
inherit setuptools
DEPENDS = " \
python \
python-pbr-native \
"
RDEPENDS_${PN}_append = " bash"
do_configure () {
cd ${S}/inventory/inventory
distutils_do_configure
}
do_compile() {
cd ${S}/inventory/inventory
distutils_do_compile
}
do_install () {
cd ${S}/inventory/inventory
distutils_do_install
install -d -m 755 ${D}/${sysconfdir}/goenabled.d
install -p -D -m 755 etc/inventory/inventory_goenabled_check.sh ${D}/${sysconfdir}/goenabled.d/inventory_goenabled_check.sh
install -d -m 755 ${D}/${sysconfdir}/inventory
install -p -D -m 755 etc/inventory/policy.json ${D}/${sysconfdir}/inventory/policy.json
install -d -m 755 ${D}/${sysconfdir}/motd.d
install -p -D -m 755 etc/inventory/motd-system ${D}/${sysconfdir}/motd.d/10-system-config
install -m 755 -p -D scripts/inventory-api ${D}/${libdir}/ocf/resource.d/platform/inventory-api
install -m 755 -p -D scripts/inventory-conductor ${D}/${libdir}/ocf/resource.d/platform/inventory-conductor
install -d -m 0755 ${D}/${systemd_system_unitdir}/
install -m 644 -p -D scripts/inventory-api.service ${D}/${systemd_system_unitdir}/
install -m 644 -p -D scripts/inventory-conductor.service ${D}/${systemd_system_unitdir}/
# Install sql migration
# install -m 644 inventory/db/sqlalchemy/migrate_repo/migrate.cfg ${D}/${libdir}/inventory/db/sqlalchemy/migrate_repo/migrate.cfg
}
#pkg_postinst_ontarget_${PN} () {
# install default config files
#cd ${_builddir}/${name}-${version} && oslo-config-generator --config-file inventory/config-generator.conf --output-file ${_builddir}/${name}-${version}/inventory.conf.sample
#}
FILES_${PN}_append += " ${systemd_unitdir}/* "

View File

@ -0,0 +1,127 @@
DESCRIPTION = "mtce-common"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-metal.inc
DEPENDS = " \
fm-common \
openssl \
libevent \
json-c \
"
RDEPENDS_${PN}_append = " "
do_configure () {
:
}
do_compile() {
cd ${S}/mtce-common/src/
oe_runmake clean
oe_runmake -e build VER=0 VER_MJR=1 \
CCFLAGS="${CXXFLAGS} -DBUILDINFO=\"\\\"\$\$(date)\\\"\""
}
do_install () {
cd ${S}/mtce-common/src/daemon
install -m 755 -d ${D}/${libdir}
install -m 755 -d ${D}/${includedir}/mtce-daemon
install -m 644 -p -D libdaemon.a ${D}/${libdir}
# TODO:
# See next TODO on line 64 about mtce-common. Same is true
# for mtce-daemon. We need pkgconfig files and then rewrite
# the packages Makefiles.
#
# install -m 644 -p -D daemon_ini.h ${D}/${includedir}/mtce-daemon
# install -m 644 -p -D daemon_common.h ${D}/${includedir}/mtce-daemon
# install -m 644 -p -D daemon_option.h ${D}/${includedir}/mtce-daemon
#
install -m 644 -p -D daemon_ini.h ${D}/${includedir}
install -m 644 -p -D daemon_common.h ${D}/${includedir}
install -m 644 -p -D daemon_option.h ${D}/${includedir}
cd ${S}/mtce-common/src/common
install -m 755 -d ${D}/${includedir}/mtce-common
install -m 644 -p -D libcommon.a ${D}/${libdir}
install -m 644 -p -D libthreadUtil.a ${D}/${libdir}
install -m 644 -p -D libipmiUtil.a ${D}/${libdir}
install -m 644 -p -D libpingUtil.a ${D}/${libdir}
install -m 644 -p -D libnodeBase.a ${D}/${libdir}
install -m 644 -p -D libregexUtil.a ${D}/${libdir}
install -m 644 -p -D libhostUtil.a ${D}/${libdir}
# TODO:
# These files need to go into mtce-common. But the mtce package
# includes these files as in include "nodeBase.h" and not
# mtce-common/nodeBase.h.
# Here rather than changing every source file, will install into
# ${includedir} instead of ${includedir}/mtce-common to finish the
# initial port.
# The correct fix is to generate pkg_config files which then the
# Makefiles can query for the c and ld flags.
#
# install -m 644 -p -D fitCodes.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D logMacros.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D returnCodes.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D nodeTimers.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D hostClass.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D httpUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D jsonUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D msgClass.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D nodeBase.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D nodeEvent.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D nodeMacro.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D nodeUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D timeUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D alarmUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D hostUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D ipmiUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D nlEvent.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D pingUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D regexUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D threadUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D tokenUtil.h ${D}/${includedir}/mtce-common
# install -m 644 -p -D secretUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D fitCodes.h ${D}/${includedir}/
install -m 644 -p -D logMacros.h ${D}/${includedir}/
install -m 644 -p -D returnCodes.h ${D}/${includedir}/
install -m 644 -p -D nodeTimers.h ${D}/${includedir}/
install -m 644 -p -D hostClass.h ${D}/${includedir}/
install -m 644 -p -D httpUtil.h ${D}/${includedir}/
install -m 644 -p -D jsonUtil.h ${D}/${includedir}/
install -m 644 -p -D msgClass.h ${D}/${includedir}/
install -m 644 -p -D nodeBase.h ${D}/${includedir}/
install -m 644 -p -D nodeEvent.h ${D}/${includedir}/
install -m 644 -p -D nodeMacro.h ${D}/${includedir}/
install -m 644 -p -D nodeUtil.h ${D}/${includedir}/
install -m 644 -p -D timeUtil.h ${D}/${includedir}/
install -m 644 -p -D alarmUtil.h ${D}/${includedir}/
install -m 644 -p -D hostUtil.h ${D}/${includedir}/
install -m 644 -p -D ipmiUtil.h ${D}/${includedir}/
install -m 644 -p -D nlEvent.h ${D}/${includedir}/
install -m 644 -p -D pingUtil.h ${D}/${includedir}/
install -m 644 -p -D regexUtil.h ${D}/${includedir}/
install -m 644 -p -D threadUtil.h ${D}/${includedir}/
install -m 644 -p -D tokenUtil.h ${D}/${includedir}/
install -m 644 -p -D secretUtil.h ${D}/${includedir}/
}
#pkg_postinst_ontarget_${PN} () { }
FILES_${PN}_append += " "

View File

@ -0,0 +1,47 @@
DESCRIPTION = "mtce-compute"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-metal.inc
DEPENDS = " "
RDEPENDS_${PN}_append = " bash"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
cd ${S}/mtce-compute/src/
oe_runmake buildroot=${D} \
_sysconfdir=${sysconfdir} _unitdir=${systemd_system_unitdir} _datarootdir=${datadir} \
install
}
pkg_postinst_ontarget_${PN} () {
/bin/systemctl enable goenabled-worker.service
/bin/systemctl enable qemu_clean.service
}
FILES_${PN}_append = " \
${systemd_unitdir} \
${datadir} \
"

View File

@ -0,0 +1,47 @@
DESCRIPTION = "mtce-control"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-metal.inc
DEPENDS = " "
RDEPENDS_${PN}_append = " bash"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
cd ${S}/mtce-control/src/
oe_runmake buildroot=${D} \
_sysconfdir=${sysconfdir} _unitdir=${systemd_system_unitdir} _datarootdir=${datadir} \
install
}
pkg_postinst_ontarget_${PN} () {
/bin/systemctl enable lighttpd.service
/bin/systemctl enable qemu_clean.service
/bin/systemctl enable hbsAgent.service
}
FILES_${PN}_append = " \
${systemd_unitdir} \
${datadir} \
"

View File

@ -0,0 +1,45 @@
DESCRIPTION = "mtce-compute"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-metal.inc
DEPENDS = " "
RDEPENDS_${PN}_append = " bash"
do_configure () {
:
}
do_compile() {
:
}
do_install () {
cd ${S}/mtce-storage/src/
oe_runmake buildroot=${D} \
_sysconfdir=${sysconfdir} _unitdir=${systemd_system_unitdir} _datarootdir=${datadir} \
install
}
pkg_postinst_ontarget_${PN} () {
/bin/systemctl enable goenabled-storage.service
}
FILES_${PN}_append = " \
${systemd_unitdir} \
${datadir} \
"

View File

@ -0,0 +1,189 @@
DESCRIPTION = "mtce"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-metal.inc
DEPENDS = " \
mtce-common \
"
RDEPENDS_${PN}_append = " bash"
do_configure () {
:
}
do_compile() {
cd ${S}/mtce/src/
oe_runmake -e VER=1 VER_MJR=1 INCLUDES=" -I. -I../alarm -I../heartbeat -I../maintenance \
-I../hostw -I../public -I../smash -I../common -I../hwmon" \
CCFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" build
}
do_install () {
# TODO:
# Really need to fix the package;s Makefile
cd ${S}/mtce/src/
install -m 755 -d ${D}/${bindir}
install -m 755 -d ${D}/${sbindir}
install -m 755 -d ${D}/${libdir}
install -m 755 -d ${D}/${libdir}/ocf/resource.d/platform
install -m 755 -d ${D}/${systemd_system_unitdir}
install -m 755 -d ${D}/${sysconfdir}
install -m 755 -d ${D}/${sysconfdir}/mtc/tmp
install -m 755 -d ${D}/${sysconfdir}/goenabled.d
install -m 755 -d ${D}/${sysconfdir}/bmc/server_profiles.d
install -m 755 -d ${D}/${sysconfdir}/init.d
install -m 755 -d ${D}/${sysconfdir}/pmon.d
install -m 755 -d ${D}/${sysconfdir}/logrotate.d
install -m 755 -d ${D}/${sysconfdir}/serverices.d
install -m 755 -d ${D}/${sysconfdir}/serverices.d/controller
install -m 755 -d ${D}/${sysconfdir}/serverices.d/worker
install -m 755 -d ${D}/${sysconfdir}/serverices.d/storage
install -m 755 -d ${D}/var
install -m 755 -d ${D}/var/run
cd ${S}/mtce/src/
install -m 644 -p -D scripts/mtcAgent ${D}/${libdir}/ocf/resource.d/platform
install -m 755 -p -D hwmon/scripts/ocf/hwmon ${D}/${libdir}/ocf/resource.d/platform
# Config files
install -m 644 -p -D scripts/mtc.ini ${D}/${sysconfdir}/mtc.ini
install -m 644 -p -D scripts/mtc.conf ${D}/${sysconfdir}/mtc.conf
install -m 644 -p -D fsmon/scripts/fsmond.conf ${D}/${sysconfdir}/mtc/fsmond.conf
install -m 644 -p -D hwmon/scripts/hwmond.conf ${D}/${sysconfdir}/mtc/hwmond.conf
install -m 644 -p -D pmon/scripts/pmond.conf ${D}/${sysconfdir}/mtc/pmond.conf
install -m 644 -p -D lmon/scripts/lmond.conf ${D}/${sysconfdir}/mtc/lmond.conf
install -m 644 -p -D hostw/scripts/hostwd.conf ${D}/${sysconfdir}/mtc/hostwd.conf
install -m 644 -p -D scripts/sensor_hp360_v1_ilo_v4.profile ${D}/${sysconfdir}/bmc/server_profiles.d/
install -m 644 -p -D scripts/sensor_hp380_v1_ilo_v4.profile ${D}/${sysconfdir}/bmc/server_profiles.d/
install -m 644 -p -D scripts/sensor_quanta_v1_ilo_v4.profile ${D}/${sysconfdir}/bmc/server_profiles.d/
# binaries
install -m 755 -p -D maintenance/mtcAgent ${D}/${bindir}/mtcAgent
install -m 755 -p -D maintenance/mtcClient ${D}/${bindir}/mtcClient
install -m 755 -p -D heartbeat/hbsAgent ${D}/${bindir}/hbsAgent
install -m 755 -p -D heartbeat/hbsClient ${D}/${bindir}/hbsClient
install -m 755 -p -D pmon/pmond ${D}/${bindir}/pmond
install -m 755 -p -D lmon/lmond ${D}/${bindir}/lmond
install -m 755 -p -D pmon/pmond ${D}/${bindir}/pmond
install -m 755 -p -D lmon/lmond ${D}/${bindir}/lmond
install -m 755 -p -D hostw/hostwd ${D}/${bindir}/hostwd
install -m 755 -p -D fsmon/fsmond ${D}/${bindir}/fsmond
install -m 755 -p -D hwmon/hwmond ${D}/${bindir}/hwmond
install -m 755 -p -D mtclog/mtclogd ${D}/${bindir}/mtclogd
install -m 755 -p -D alarm/mtcalarmd ${D}/${bindir}/mtcalarmd
install -m 755 -p -D scripts/wipedisk ${D}/${bindir}/wipedisk
install -m 755 -p -D fsync/fsync ${D}/${sbindir}/fsync
install -m 700 -p -D pmon/scripts/pmon-restart ${D}/${sbindir}/pmon-restart
install -m 700 -p -D pmon/scripts/pmon-start ${D}/${sbindir}/pmon-start
install -m 700 -p -D pmon/scripts/pmon-stop ${D}/${sbindir}/pmon-stop
# init script files
install -m 755 -p -D scripts/mtcClient ${D}/${sysconfdir}/init.d/mtcClient
install -m 755 -p -D scripts/hbsClient ${D}/${sysconfdir}/init.d/hbsClient
install -m 755 -p -D hwmon/scripts/lsb/hwmon ${D}/${sysconfdir}/init.d/hwmon
install -m 755 -p -D fsmon/scripts/fsmon ${D}/${sysconfdir}/init.d/fsmon
install -m 755 -p -D scripts/mtclog ${D}/${sysconfdir}/init.d/mtclog
install -m 755 -p -D pmon/scripts/pmon ${D}/${sysconfdir}/init.d/pmon
install -m 755 -p -D lmon/scripts/lmon ${D}/${sysconfdir}/init.d/lmon
install -m 755 -p -D hostw/scripts/hostw ${D}/${sysconfdir}/init.d/hostw
install -m 755 -p -D alarm/scripts/mtcalarm.init ${D}/${sysconfdir}/init.d/mtcalarm
# install -m 755 -p -D scripts/config ${D}/${sysconfdir}/init.d/config
# TODO: Init hack. Should move to proper module
install -m 755 -p -D scripts/hwclock.sh ${D}/${sysconfdir}/init.d/hwclock.sh
install -m 644 -p -D scripts/hwclock.service ${D}/${systemd_system_unitdir}/hwclock.service
# systemd service files
install -m 644 -p -D fsmon/scripts/fsmon.service ${D}/${systemd_system_unitdir}/fsmon.service
install -m 644 -p -D hwmon/scripts/hwmon.service ${D}/${systemd_system_unitdir}/hwmon.service
install -m 644 -p -D pmon/scripts/pmon.service ${D}/${systemd_system_unitdir}/pmon.service
install -m 644 -p -D hostw/scripts/hostw.service ${D}/${systemd_system_unitdir}/hostw.service
install -m 644 -p -D scripts/mtcClient.service ${D}/${systemd_system_unitdir}/mtcClient.service
install -m 644 -p -D scripts/hbsClient.service ${D}/${systemd_system_unitdir}/hbsClient.service
install -m 644 -p -D scripts/mtclog.service ${D}/${systemd_system_unitdir}/mtclog.service
install -m 644 -p -D scripts/hbsClient.service ${D}/${systemd_system_unitdir}/hbsClient.service
install -m 644 -p -D scripts/mtclog.service ${D}/${systemd_system_unitdir}/mtclog.service
install -m 644 -p -D scripts/goenabled.service ${D}/${systemd_system_unitdir}/goenabled.service
install -m 644 -p -D scripts/runservices.service ${D}/${systemd_system_unitdir}/runservices.service
install -m 644 -p -D alarm/scripts/mtcalarm.service ${D}/${systemd_system_unitdir}/mtcalarm.service
install -m 644 -p -D lmon/scripts/lmon.service ${D}/${systemd_system_unitdir}/lmon.service
# go enabled stuff
install -m 755 -p -D scripts/goenabled ${D}/${sysconfdir}/init.d/goenabled
# start or stop services test script
install -m 755 -p -D scripts/mtcTest ${D}/${sysconfdir}/serverices.d/worker
install -m 755 -p -D scripts/mtcTest ${D}/${sysconfdir}/serverices.d/controller
install -m 755 -p -D scripts/mtcTest ${D}/${sysconfdir}/serverices.d/storage
install -m 755 -p -D scripts/runservices ${D}/${sysconfdir}/init.d/runservices
# test tools
install -m 755 -p -D scripts/dmemchk.sh ${D}/${sbindir}
# process monitor config files
install -m 644 -p -D scripts/mtcClient.conf ${D}/${sysconfdir}/pmon.d/mtcClient.conf
install -m 644 -p -D scripts/hbsClient.conf ${D}/${sysconfdir}/pmon.d/hbsClient.conf
install -m 644 -p -D pmon/scripts/acpid.conf ${D}/${sysconfdir}/pmon.d/acpid.conf
install -m 644 -p -D pmon/scripts/sshd.conf ${D}/${sysconfdir}/pmon.d/sshd.conf
install -m 644 -p -D pmon/scripts/syslog-ng.conf ${D}/${sysconfdir}/pmon.d/syslog-ng.conf
install -m 644 -p -D pmon/scripts/nslcd.conf ${D}/${sysconfdir}/pmon.d/nslcd.conf
install -m 644 -p -D pmon/scripts/syslog-ng.conf ${D}/${sysconfdir}/pmon.d/syslog-ng.conf
install -m 644 -p -D pmon/scripts/nslcd.conf ${D}/${sysconfdir}/pmon.d/nslcd.conf
install -m 644 -p -D fsmon/scripts/fsmon.conf ${D}/${sysconfdir}/pmon.d/fsmon.conf
install -m 644 -p -D scripts/mtclogd.conf ${D}/${sysconfdir}/pmon.d/mtclogd.conf
install -m 644 -p -D alarm/scripts/mtcalarm.pmon.conf ${D}/${sysconfdir}/pmon.d/mtcalarm.conf
install -m 644 -p -D lmon/scripts/lmon.pmon.conf ${D}/${sysconfdir}/pmon.d/lmon.conf
# log rotation
install -m 644 -p -D scripts/mtce.logrotate ${D}/${sysconfdir}/logrotate.d/mtce.logrotate
install -m 644 -p -D hostw/scripts/hostw.logrotate ${D}/${sysconfdir}/logrotate.d/hostw.logrotate
install -m 644 -p -D pmon/scripts/pmon.logrotate ${D}/${sysconfdir}/logrotate.d/pmon.logrotate
install -m 644 -p -D lmon/scripts/lmon.logrotate ${D}/${sysconfdir}/logrotate.d/lmon.logrotate
install -m 644 -p -D fsmon/scripts/fsmon.logrotate ${D}/${sysconfdir}/logrotate.d/fsmon.logrotate
install -m 644 -p -D hwmon/scripts/hwmon.logrotate ${D}/${sysconfdir}/logrotate.d/hwmon.logrotate
install -m 644 -p -D alarm/scripts/mtcalarm.logrotate ${D}/${sysconfdir}/logrotate.d/mtcalarm.logrotate
# software development files
install -m 644 -p -D heartbeat/mtceHbsCluster.h ${D}/${includedir}/mtceHbsCluster.h
install -m 755 -p -D public/libamon.so.1 ${D}/${libdir}/
#cd ${D}/%{_libdir} ; ln -s libamon.so.$MAJOR libamon.so.$MAJOR.$MINOR
#cd ${D}/%{_libdir} ; ln -s libamon.so.$MAJOR libamon.so
}
pkg_postinst_ontarget_${PN} () {
/bin/systemctl enable lighttpd.service
/bin/systemctl enable qemu_clean.service
/bin/systemctl enable hbsAgent.service
}
FILES_${PN}_append = " \
/run \
${libdir} \
${systemd_unitdir} \
${datadir} \
"

View File

@ -0,0 +1,46 @@
DESCRIPTION = "python-inventoryclient"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "70609a3d55e5b7d2be82667fc35792505f9013c4"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/config.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
require stx-metal.inc
inherit setuptools
DEPENDS = " \
python \
python-pbr-native \
"
#RDEPENDS_${PN}_append = " bash"
do_configure () {
cd ${S}/python-inventoryclient/inventoryclient
distutils_do_configure
}
do_compile() {
cd ${S}/python-inventoryclient/inventoryclient
distutils_do_compile
}
do_install () {
cd ${S}/python-inventoryclient/inventoryclient
distutils_do_install
install -d -m 755 ${D}/${sysconfdir}/bash_completion.d
install -p -D -m 664 tools/inventory.bash_completion ${D}/${sysconfdir}/bash_completion.d
}
# pkg_postinst_ontarget_${PN} () { }
FILES_${PN}_append += " ${systemd_unitdir}/* "

View File

@ -0,0 +1,350 @@
DESCRIPTION = "stx-metal"
# TODO:
# Fix the packaging on this. These packages depend on each other
# and need to be present in sysroot. One possible solution:
# Unpack the source in work-shared And built packages individually
# That way dependencies and sysroots can be accounted for in the recipes.
INSANE_SKIP_${PN} = "ldflags"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "fb019447503cc9e5bb8d290311a8c5d38d53a108"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/metal.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH} \
file://0001-Make-sure-objects-are-present-befor-archiving-into-..patch \
file://0001-Use-LLDFLAGS-to-avoid-collusion-with-LDFLAGS.patch \
file://0001-Make-fallthroughs-explicit-for-Poky-CFLAGS-Werror-im.patch \
file://0001-Remove-Wall-and-family-to-compile-the-code.patch \
file://0001-Remove-Wall-and-family-from-heartbeat-to-compile-the.patch \
"
inherit setuptools
DEPENDS = "\
python-pbr \
python-pbr-native \
libevent \
json-c \
"
# Builds:
# mtce-common/src/daemon
# mtce-common/src/common
# mtce-compute
# mtce-control
# mtce-storage
# mtce
# Skips:
# installer/pxe-network-installer
# kickstart
do_configure () {
# installer/pxe-network-installer: Do Nothing
# kickstart: Do Nothing
# mtce-common/src/daemon: Do Nothing
# mtce-common/src/common: Do Nothing
# mtce-compute: Do Nothing
# mtce-control: Do Nothing
# mtce-storage: Do Nothing
# mtce: Do Nothing
# inventory/inventory:
cd ${S}/inventory/inventory
distutils_do_configure
# python-inventoryclient:
cd ${S}/python-inventoryclient/inventoryclient
distutils_do_configure
}
do_compile () {
# installer/pxe-network-installer: Do Nothing
# kickstart: Do Nothing
# mtce-compute: Do Nothing
# mtce-control: Do Nothing
# mtce-storage: Do Nothing
# inventory/inventory:
cd ${S}/inventory/inventory
distutils_do_compile
# mtce-common/src/daemon:
cd ${S}/mtce-common/src/daemon
oe_runmake clean
oe_runmake -e lib VER=1 VER_MJR=1
# mtce-common/src/common:
cd ${S}/mtce-common/src/common
oe_runmake clean
oe_runmake -e lib VER=1 VER_MJR=1 CCFLAGS="-fPIC -g -O2 -std=c++11"
# mtce:
cd ${S}/mtce/src/
oe_runmake -e VER=1 VER_MJR=1 \
INCLUDES="-I${S}/mtce-common/src/common -I${S}/mtce-common/src/daemon \
-I../alarm -I../heartbeat -I../maintenance \
-I../hostw -I../public -I../smash -I../common -I../hwmon \
" \
EXTRALDFLAGS="-L${S}/mtce-common/src/common -L${S}/mtce-common/src/daemon" \
build
# python-inventoryclient:
cd ${S}/python-inventoryclient/inventoryclient
distutils_do_compile
}
do_install () {
# installer/pxe-network-installer: Do Nothing
# kickstart: Do Nothing
# inventory/inventory:
# See todo.txt
cd ${S}/inventory/inventory
distutils_do_install
# mtce-common/src/daemon:
cd ${S}/mtce-common/src/daemon
install -m 755 -d ${D}/${libdir}
install -m 755 -d ${D}/${includedir}/mtce-daemon
install -m 644 -p -D libdaemon.a ${D}/${libdir}
install -m 644 -p -D daemon_ini.h ${D}/${includedir}/mtce-daemon
install -m 644 -p -D daemon_common.h ${D}/${includedir}/mtce-daemon
install -m 644 -p -D daemon_option.h ${D}/${includedir}/mtce-daemon
# mtce-common/src/common:
cd ${S}/mtce-common/src/common
install -m 755 -d ${D}/${includedir}/mtce-common
install -m 644 -p -D libcommon.a ${D}/${libdir}
install -m 644 -p -D libthreadUtil.a ${D}/${libdir}
install -m 644 -p -D libipmiUtil.a ${D}/${libdir}
install -m 644 -p -D libpingUtil.a ${D}/${libdir}
install -m 644 -p -D libnodeBase.a ${D}/${libdir}
install -m 644 -p -D libregexUtil.a ${D}/${libdir}
install -m 644 -p -D libhostUtil.a ${D}/${libdir}
install -m 644 -p -D fitCodes.h ${D}/${includedir}/mtce-common
install -m 644 -p -D logMacros.h ${D}/${includedir}/mtce-common
install -m 644 -p -D returnCodes.h ${D}/${includedir}/mtce-common
install -m 644 -p -D nodeTimers.h ${D}/${includedir}/mtce-common
install -m 644 -p -D hostClass.h ${D}/${includedir}/mtce-common
install -m 644 -p -D httpUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D jsonUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D msgClass.h ${D}/${includedir}/mtce-common
install -m 644 -p -D nodeBase.h ${D}/${includedir}/mtce-common
install -m 644 -p -D nodeEvent.h ${D}/${includedir}/mtce-common
install -m 644 -p -D nodeMacro.h ${D}/${includedir}/mtce-common
install -m 644 -p -D nodeUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D timeUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D alarmUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D hostUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D ipmiUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D nlEvent.h ${D}/${includedir}/mtce-common
install -m 644 -p -D pingUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D regexUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D threadUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D tokenUtil.h ${D}/${includedir}/mtce-common
install -m 644 -p -D secretUtil.h ${D}/${includedir}/mtce-common
# mtce-compute:
cd ${S}/mtce-compute/src/
oe_runmake buildroot=${D} \
_sysconfdir=${sysconfdir} _unitdir=${systemd_system_unitdir} _datarootdir=${datadir} \
install
# mtce-control:
cd ${S}/mtce-control/src/
oe_runmake buildroot=${D} \
_sysconfdir=${sysconfdir} _unitdir=${systemd_system_unitdir} _datarootdir=${datadir} \
install
# mtce-storage:
cd ${S}/mtce-storage/src/
oe_runmake buildroot=${D} \
_sysconfdir=${sysconfdir} _unitdir=${systemd_system_unitdir} _datarootdir=${datadir} \
install
# mtce:
install -m 755 -d ${D}/${bindir}
install -m 755 -d ${D}/${sbindir}
install -m 755 -d ${D}/${libdir}
install -m 755 -d ${D}/${libdir}/ocf/resource.d/platform
install -m 755 -d ${D}/${systemd_system_unitdir}
install -m 755 -d ${D}/${sysconfdir}
install -m 755 -d ${D}/${sysconfdir}/mtc/tmp
install -m 755 -d ${D}/${sysconfdir}/goenabled.d
install -m 755 -d ${D}/${sysconfdir}/bmc/server_profiles.d
install -m 755 -d ${D}/${sysconfdir}/init.d
install -m 755 -d ${D}/${sysconfdir}/pmon.d
install -m 755 -d ${D}/${sysconfdir}/logrotate.d
install -m 755 -d ${D}/${sysconfdir}/serverices.d
install -m 755 -d ${D}/${sysconfdir}/serverices.d/controller
install -m 755 -d ${D}/${sysconfdir}/serverices.d/worker
install -m 755 -d ${D}/${sysconfdir}/serverices.d/storage
install -m 755 -d ${D}/var
install -m 755 -d ${D}/var/run
cd ${S}/mtce/src/
install -m 644 -p -D scripts/mtcAgent ${D}/${libdir}/ocf/resource.d/platform
install -m 755 -p -D hwmon/scripts/ocf/hwmon ${D}/${libdir}/ocf/resource.d/platform
# Config files
install -m 644 -p -D scripts/mtc.ini ${D}/${sysconfdir}/mtc.ini
install -m 644 -p -D scripts/mtc.conf ${D}/${sysconfdir}/mtc.conf
install -m 644 -p -D fsmon/scripts/fsmond.conf ${D}/${sysconfdir}/mtc/fsmond.conf
install -m 644 -p -D hwmon/scripts/hwmond.conf ${D}/${sysconfdir}/mtc/hwmond.conf
install -m 644 -p -D pmon/scripts/pmond.conf ${D}/${sysconfdir}/mtc/pmond.conf
install -m 644 -p -D lmon/scripts/lmond.conf ${D}/${sysconfdir}/mtc/lmond.conf
install -m 644 -p -D hostw/scripts/hostwd.conf ${D}/${sysconfdir}/mtc/hostwd.conf
install -m 644 -p -D scripts/sensor_hp360_v1_ilo_v4.profile ${D}/${sysconfdir}/bmc/server_profiles.d/
install -m 644 -p -D scripts/sensor_hp380_v1_ilo_v4.profile ${D}/${sysconfdir}/bmc/server_profiles.d/
install -m 644 -p -D scripts/sensor_quanta_v1_ilo_v4.profile ${D}/${sysconfdir}/bmc/server_profiles.d/
# binaries
install -m 755 -p -D maintenance/mtcAgent ${D}/${bindir}/mtcAgent
install -m 755 -p -D maintenance/mtcClient ${D}/${bindir}/mtcClient
install -m 755 -p -D heartbeat/hbsAgent ${D}/${bindir}/hbsAgent
install -m 755 -p -D heartbeat/hbsClient ${D}/${bindir}/hbsClient
install -m 755 -p -D pmon/pmond ${D}/${bindir}/pmond
install -m 755 -p -D lmon/lmond ${D}/${bindir}/lmond
install -m 755 -p -D hostw/hostwd ${D}/${bindir}/hostwd
install -m 755 -p -D fsmon/fsmond ${D}/${bindir}/fsmond
install -m 755 -p -D hwmon/hwmond ${D}/${bindir}/hwmond
install -m 755 -p -D mtclog/mtclogd ${D}/${bindir}/mtclogd
install -m 755 -p -D alarm/mtcalarmd ${D}/${bindir}/mtcalarmd
install -m 755 -p -D scripts/wipedisk ${D}/${bindir}/wipedisk
install -m 755 -p -D fsync/fsync ${D}/${sbindir}/fsync
install -m 700 -p -D pmon/scripts/pmon-restart ${D}/${sbindir}/pmon-restart
install -m 700 -p -D pmon/scripts/pmon-start ${D}/${sbindir}/pmon-start
install -m 700 -p -D pmon/scripts/pmon-stop ${D}/${sbindir}/pmon-stop
# init script files
install -m 755 -p -D scripts/mtcClient ${D}/${sysconfdir}/init.d/mtcClient
install -m 755 -p -D scripts/hbsClient ${D}/${sysconfdir}/init.d/hbsClient
install -m 755 -p -D hwmon/scripts/lsb/hwmon ${D}/${sysconfdir}/init.d/hwmon
install -m 755 -p -D fsmon/scripts/fsmon ${D}/${sysconfdir}/init.d/fsmon
install -m 755 -p -D scripts/mtclog ${D}/${sysconfdir}/init.d/mtclog
install -m 755 -p -D pmon/scripts/pmon ${D}/${sysconfdir}/init.d/pmon
install -m 755 -p -D lmon/scripts/lmon ${D}/${sysconfdir}/init.d/lmon
install -m 755 -p -D hostw/scripts/hostw ${D}/${sysconfdir}/init.d/hostw
install -m 755 -p -D alarm/scripts/mtcalarm.init ${D}/${sysconfdir}/init.d/mtcalarm
# install -m 755 -p -D scripts/config ${D}/${sysconfdir}/init.d/config
# TODO: Init hack. Should move to proper module
install -m 755 -p -D scripts/hwclock.sh ${D}/${sysconfdir}/init.d/hwclock.sh
install -m 644 -p -D scripts/hwclock.service ${D}/${systemd_system_unitdir}/hwclock.service
# systemd service files
install -m 644 -p -D fsmon/scripts/fsmon.service ${D}/${systemd_system_unitdir}/fsmon.service
install -m 644 -p -D hwmon/scripts/hwmon.service ${D}/${systemd_system_unitdir}/hwmon.service
install -m 644 -p -D pmon/scripts/pmon.service ${D}/${systemd_system_unitdir}/pmon.service
install -m 644 -p -D hostw/scripts/hostw.service ${D}/${systemd_system_unitdir}/hostw.service
install -m 644 -p -D scripts/mtcClient.service ${D}/${systemd_system_unitdir}/mtcClient.service
install -m 644 -p -D scripts/hbsClient.service ${D}/${systemd_system_unitdir}/hbsClient.service
install -m 644 -p -D scripts/mtclog.service ${D}/${systemd_system_unitdir}/mtclog.service
install -m 644 -p -D scripts/hbsClient.service ${D}/${systemd_system_unitdir}/hbsClient.service
install -m 644 -p -D scripts/mtclog.service ${D}/${systemd_system_unitdir}/mtclog.service
install -m 644 -p -D scripts/goenabled.service ${D}/${systemd_system_unitdir}/goenabled.service
install -m 644 -p -D scripts/runservices.service ${D}/${systemd_system_unitdir}/runservices.service
install -m 644 -p -D alarm/scripts/mtcalarm.service ${D}/${systemd_system_unitdir}/mtcalarm.service
install -m 644 -p -D lmon/scripts/lmon.service ${D}/${systemd_system_unitdir}/lmon.service
# go enabled stuff
install -m 755 -p -D scripts/goenabled ${D}/${sysconfdir}/init.d/goenabled
# start or stop services test script
install -m 755 -p -D scripts/mtcTest ${D}/${sysconfdir}/serverices.d/worker
install -m 755 -p -D scripts/mtcTest ${D}/${sysconfdir}/serverices.d/controller
install -m 755 -p -D scripts/mtcTest ${D}/${sysconfdir}/serverices.d/storage
install -m 755 -p -D scripts/runservices ${D}/${sysconfdir}/init.d/runservices
# test tools
install -m 755 -p -D scripts/dmemchk.sh ${D}/${sbindir}
# process monitor config files
install -m 644 -p -D scripts/mtcClient.conf ${D}/${sysconfdir}/pmon.d/mtcClient.conf
install -m 644 -p -D scripts/hbsClient.conf ${D}/${sysconfdir}/pmon.d/hbsClient.conf
install -m 644 -p -D pmon/scripts/acpid.conf ${D}/${sysconfdir}/pmon.d/acpid.conf
install -m 644 -p -D pmon/scripts/sshd.conf ${D}/${sysconfdir}/pmon.d/sshd.conf
install -m 644 -p -D pmon/scripts/syslog-ng.conf ${D}/${sysconfdir}/pmon.d/syslog-ng.conf
install -m 644 -p -D pmon/scripts/nslcd.conf ${D}/${sysconfdir}/pmon.d/nslcd.conf
install -m 644 -p -D fsmon/scripts/fsmon.conf ${D}/${sysconfdir}/pmon.d/fsmon.conf
install -m 644 -p -D scripts/mtclogd.conf ${D}/${sysconfdir}/pmon.d/mtclogd.conf
install -m 644 -p -D alarm/scripts/mtcalarm.pmon.conf ${D}/${sysconfdir}/pmon.d/mtcalarm.conf
install -m 644 -p -D lmon/scripts/lmon.pmon.conf ${D}/${sysconfdir}/pmon.d/lmon.conf
# log rotation
install -m 644 -p -D scripts/mtce.logrotate ${D}/${sysconfdir}/logrotate.d/mtce.logrotate
install -m 644 -p -D hostw/scripts/hostw.logrotate ${D}/${sysconfdir}/logrotate.d/hostw.logrotate
install -m 644 -p -D pmon/scripts/pmon.logrotate ${D}/${sysconfdir}/logrotate.d/pmon.logrotate
install -m 644 -p -D lmon/scripts/lmon.logrotate ${D}/${sysconfdir}/logrotate.d/lmon.logrotate
install -m 644 -p -D fsmon/scripts/fsmon.logrotate ${D}/${sysconfdir}/logrotate.d/fsmon.logrotate
install -m 644 -p -D hwmon/scripts/hwmon.logrotate ${D}/${sysconfdir}/logrotate.d/hwmon.logrotate
install -m 644 -p -D alarm/scripts/mtcalarm.logrotate ${D}/${sysconfdir}/logrotate.d/mtcalarm.logrotate
# software development files
install -m 644 -p -D heartbeat/mtceHbsCluster.h ${D}/${includedir}/mtceHbsCluster.h
install -m 755 -p -D public/libamon.so.1 ${D}/${libdir}/
#cd ${D}/%{_libdir} ; ln -s libamon.so.$MAJOR libamon.so.$MAJOR.$MINOR
#cd ${D}/%{_libdir} ; ln -s libamon.so.$MAJOR libamon.so
# python-inventoryclient:
cd ${S}/python-inventoryclient/inventoryclient
distutils_do_install
install -d -m 755 ${D}/${sysconfdir}/bash_completion.d
install -p -D -m 664 tools/inventory.bash_completion ${D}/${sysconfdir}/bash_completion.d
}
pkg_postinst_ontarget_${PN} () {
# mtce-compute:
/bin/systemctl enable goenabled-worker.service
/bin/systemctl enable qemu_clean.service
# mtce-control:
/bin/systemctl enable lighttpd.service
/bin/systemctl enable qemu_clean.service
/bin/systemctl enable hbsAgent.service
# mtce-storage:
/bin/systemctl enable goenabled-storage.service
# mtce:
/bin/systemctl enable fsmon.service
/bin/systemctl enable mtcClient.service
/bin/systemctl enable hbsClient.service
/bin/systemctl enable mtclog.service
/bin/systemctl enable iscsid.service
/bin/systemctl enable rsyncd.service
/bin/systemctl enable goenabled.service
/bin/systemctl enable mtcalarm.service
# mtce/mtce-hostw
/bin/systemctl enable hostw.service
# mtce/mtce-pmon
/bin/systemctl enable pmon.service
# mtce/mtce-lmon
/bin/systemctl enable lmon.service
}
FILES_${PN}_append += " ${datadir} \
${systemd_unitdir}/* \
${libdir} \
run \
"

View File

@ -0,0 +1,2 @@
inherit externalsrc
EXTERNALSRC_pn-${PN}="${EXTERNALREPO}/stx-metal"

View File

@ -0,0 +1,64 @@
DESCRIPTION = "distributedcloud"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "fd498c843c95519acf6296b9ddcf4f684d92a9be"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
SRC_URI = "git://opendev.org/starlingx/distcloud.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
DEPENDS = " \
python-crypto \
python-cryptography \
python2-devel \
python-eventlet \
python-setuptools \
python2-pip \
python2-wheel \
python-jsonschema >= 2.0.0 \
python-keyring \
python-keystonemiddleware \
python-keystoneauth1 >= 3.1.0 \
python-netaddr \
python-oslo-concurrency \
python-oslo-config \
python-oslo-context \
python-oslo-db \
python-oslo-i18n \
python-oslo-log \
python-oslo-messaging \
python-oslo-middleware \
python-oslo-policy \
python-oslo-rootwrap \
python-oslo-serialization \
python-oslo-service \
python-oslo-utils \
python-oslo-versionedobjects \
python-pbr >= 1.8 \
python-pecan >= 1.0.0 \
python-routes >= 1.12.3 \
python-sphinx \
python-sphinxcontrib-httpdomain \
pyOpenSSL \
systemd \
python-babel \
"
#AUTOTOOLS_SCRIPT_PATH = ""
#inherit autotools
#inherit pkgconfig
#inherit python-dir
#EXTRA_OECONF = ""
#do_configure_append () { }
#do_install_append() { }
#pkg_postinst_ontarget_${PN} () { }

View File

@ -0,0 +1,28 @@
DESCRIPTION = "stx-ansible-playbook"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "7a9bc2f330c10c0dc66bbe6d079a9e8a530c85b3"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/ansible-playbooks.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
#AUTOTOOLS_SCRIPT_PATH = ""
#DEPENDS = ""
#inherit autotools
#inherit pkgconfig
#inherit python-dir
#EXTRA_OECONF = ""
#do_configure_append () { }
#do_install_append() { }
#pkg_postinst_ontarget_${PN} () { }

View File

@ -0,0 +1,29 @@
DESCRIPTION = "stx-integ"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "8decb63402ae185f7110845bcca845e0b3bd7447"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
#AUTOTOOLS_SCRIPT_PATH = ""
SRC_URI = "git://opendev.org/starlingx/integ.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
#DEPENDS = ""
#inherit autotools
#inherit pkgconfig
#inherit python-dir
#EXTRA_OECONF = ""
#do_configure_append () { }
#do_install_append() { }
#pkg_postinst_ontarget_${PN} () { }

View File

@ -0,0 +1,28 @@
DESCRIPTION = "stx-nfv"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "cdd6c334d9d1d6c0f4de344fff8ef2af28c76e56"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/nfv.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
#AUTOTOOLS_SCRIPT_PATH = ""
#DEPENDS = ""
#inherit autotools
#inherit pkgconfig
#inherit python-dir
#EXTRA_OECONF = ""
#do_configure_append () { }
#do_install_append() { }
#pkg_postinst_ontarget_${PN} () { }

View File

@ -0,0 +1,28 @@
DESCRIPTION = "stx-update"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "b655dcc9c99a217cf641ed313a5b36a7b2308637"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/update.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
#AUTOTOOLS_SCRIPT_PATH = ""
#DEPENDS = ""
#inherit autotools
#inherit pkgconfig
#inherit python-dir
#EXTRA_OECONF = ""
#do_configure_append () { }
#do_install_append() { }
#pkg_postinst_ontarget_${PN} () { }

View File

@ -0,0 +1,28 @@
DESCRIPTION = "stx-upstream"
STABLE = "starlingx/master"
PROTOCOL = "https"
BRANCH = "master"
SRCREV = "835fc2d68dd4c09da35e71e8d038b2878c59e65a"
S = "${WORKDIR}/git"
PV = "19.05"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/upstream.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
#AUTOTOOLS_SCRIPT_PATH = ""
#DEPENDS = ""
#inherit autotools
#inherit pkgconfig
#inherit python-dir
#EXTRA_OECONF = ""
#do_configure_append () { }
#do_install_append() { }
#pkg_postinst_ontarget_${PN} () { }

View File

@ -0,0 +1,3 @@
DEPENDS += "\
python-pbr-native \
"

View File

@ -0,0 +1,3 @@
DEPENDS += "\
python-pbr-native \
"

View File

@ -0,0 +1 @@
DEPENDS += " libxcrypt"