remove cgts- prefix to align with other sub-projects (packages)

Rename files and folders in mtce-compute, mtce-control, and
mtce-storage. As well update packages' names in bsp-files/
filter_out_* scripts accordingly.

Story: 2004079
Task: 27485

Change-Id: Ic1e9bd4bb8d72f30ddcc2a2bfc602a1a34e583da
Signed-off-by: Yong Hu <yong.hu@intel.com>
This commit is contained in:
Yong Hu 2018-10-15 07:38:13 +00:00
parent cddb485837
commit 718efbcf0d
39 changed files with 227 additions and 200 deletions

View File

@ -11,9 +11,9 @@ cgcs-dpdk-rt-apps
cgts-client cgts-client
cgts-client-bash-completion cgts-client-bash-completion
cgcs-patch-controller cgcs-patch-controller
cgts-mtce-control mtce-control
cgts-mtce-storage mtce-storage
cgts-mtce-common-guestAgent mtce-guestAgent
cgtssys cgtssys
cinder cinder
cinder-api cinder-api

View File

@ -11,9 +11,9 @@ cgcs-dpdk-apps
cgts-client cgts-client
cgts-client-bash-completion cgts-client-bash-completion
cgcs-patch-controller cgcs-patch-controller
cgts-mtce-control mtce-control
cgts-mtce-storage mtce-storage
cgts-mtce-common-guestAgent mtce-guestAgent
cgtssys cgtssys
cinder cinder
cinder-api cinder-api

View File

@ -18,9 +18,9 @@ cgcs-dpdk-rt-dev
cgcs-dpdk-staticdev cgcs-dpdk-staticdev
cgcs-dpdk-rt-staticdev cgcs-dpdk-rt-staticdev
cgcs-dpdk-rt-apps cgcs-dpdk-rt-apps
cgts-mtce-compute mtce-compute
cgts-mtce-storage mtce-storage
cgts-mtce-common-guestServer mtce-guestServer
host-guest-comm host-guest-comm
host-guest-comm-dev host-guest-comm-dev
nfscheck nfscheck

View File

@ -1,6 +1,6 @@
cgcs-dpdk-rt cgcs-dpdk-rt
cgcs-dpdk-rt-apps cgcs-dpdk-rt-apps
cgts-mtce-storage mtce-storage
computeconfig-standalone computeconfig-standalone
kernel-module-openvswitch kernel-module-openvswitch
platform-util-noncontroller platform-util-noncontroller

View File

@ -1,6 +1,6 @@
cgcs-dpdk cgcs-dpdk
cgcs-dpdk-apps cgcs-dpdk-apps
cgts-mtce-storage mtce-storage
computeconfig-standalone computeconfig-standalone
kernel-module-openvswitch kernel-module-openvswitch
platform-util-noncontroller platform-util-noncontroller

View File

@ -15,10 +15,10 @@ cgcs-dpdk-rt-apps
cgts-client cgts-client
cgts-client-bash-completion cgts-client-bash-completion
cgcs-patch-controller cgcs-patch-controller
cgts-mtce-compute mtce-compute
cgts-mtce-control mtce-control
cgts-mtce-common-guestServer mtce-guestServer
cgts-mtce-common-guestAgent mtce-guestAgent
cgtssys cgtssys
cinder cinder
cinder-api cinder-api

View File

@ -9,14 +9,14 @@ mtce-rmon
mtce-hwmon mtce-hwmon
mtce-hostw mtce-hostw
# cgts-mtce-compute # mtce-compute
cgts-mtce-compute mtce-compute
# cgts-mtce-control # mtce-control
cgts-mtce-control mtce-control
# cgts-mtce-storage # mtce-storage
cgts-mtce-storage mtce-storage
# pxe-network-installer # pxe-network-installer
pxe-network-installer pxe-network-installer

View File

@ -1,5 +1,5 @@
Metadata-Version: 1.1 Metadata-Version: 1.1
Name: cgts-mtce-compute Name: mtce-compute
Version: 1.0 Version: 1.0
Summary: Titanium Cloud Platform Compute Node Maintenance Package Summary: Titanium Cloud Platform Compute Node Maintenance Package
Home-page: Home-page:

View File

@ -1,3 +1,3 @@
SRC_DIR="$PKG_BASE/cgts-mtce-compute-1.0/scripts" SRC_DIR="$PKG_BASE/src"
COPY_LIST="$SRC_DIR/*" COPY_LIST="$SRC_DIR/*"
TIS_PATCH_VER=4 TIS_PATCH_VER=5

View File

@ -1,94 +0,0 @@
%define local_etc_pmond %{_sysconfdir}/pmon.d
%define local_etc_goenabledd %{_sysconfdir}/goenabled.d
%define local_etc_nova %{_sysconfdir}/nova
%define debug_package %{nil}
Name: cgts-mtce-compute
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: Compute Node Maintenance Package
Group: base
License: Apache-2.0
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: goenabled
Source2: e_nova-init
Source3: nova-cleanup
Source4: nova-startup
Source11: nova-cleanup.conf
Source12: nova-compute.conf
Source14: libvirtd.conf
Source21: nova-goenabled.sh
Source22: virt-support-goenabled.sh
Source31: goenabled-compute.service
Source32: e_nova-init.service
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: bash
Requires: /bin/systemctl
Requires: qemu-kvm-ev
%description
Maintenance support files for compute-only node type
%prep
%setup
%build
%install
# Compute-Only Init Scripts (source group x)
install -m 755 -p -D %{SOURCE1} %{buildroot}/etc/init.d/goenabledCompute
install -m 755 -p -D %{SOURCE2} %{buildroot}/etc/init.d/e_nova-init
install -m 755 -p -D %{SOURCE3} %{buildroot}/etc/init.d/nova-cleanup
install -m 755 -p -D %{SOURCE4} %{buildroot}/etc/init.d/nova-startup
# Compute-Only Process Monitor Config files (source group 1x)
install -m 755 -d %{buildroot}%{local_etc_pmond}
install -m 755 -d %{buildroot}%{local_etc_nova}
install -m 644 -p -D %{SOURCE11} %{buildroot}%{local_etc_nova}/nova-cleanup.conf
install -m 644 -p -D %{SOURCE12} %{buildroot}%{local_etc_nova}/nova-compute.conf
install -m 644 -p -D %{SOURCE14} %{buildroot}%{local_etc_pmond}/libvirtd.conf
# Compute-Only Go Enabled Test (source group 2x)
install -m 755 -d %{buildroot}%{local_etc_goenabledd}
install -m 755 -p -D %{SOURCE21} %{buildroot}%{local_etc_goenabledd}/nova-goenabled.sh
install -m 755 -p -D %{SOURCE22} %{buildroot}%{local_etc_goenabledd}/virt-support-goenabled.sh
# Install to systemd (source group 3x)
install -m 644 -p -D %{SOURCE31} %{buildroot}%{_unitdir}/goenabled-compute.service
install -m 644 -p -D %{SOURCE32} %{buildroot}%{_unitdir}/e_nova-init.service
%post
/bin/systemctl enable goenabled-compute.service
/bin/systemctl enable e_nova-init.service
/bin/systemctl enable qemu_clean.service
%files
%license LICENSE
%defattr(-,root,root,-)
/etc/init.d/goenabledCompute
/etc/init.d/e_nova-init
/etc/init.d/nova-cleanup
/etc/init.d/nova-startup
%{local_etc_nova}/nova-cleanup.conf
%{local_etc_nova}/nova-compute.conf
%{local_etc_pmond}/libvirtd.conf
%{local_etc_goenabledd}/nova-goenabled.sh
%{local_etc_goenabledd}/virt-support-goenabled.sh
%{_unitdir}/goenabled-compute.service
%{_unitdir}/e_nova-init.service
%clean
rm -rf $RPM_BUILD_ROOT

View File

@ -0,0 +1,60 @@
%define local_etc_pmond %{_sysconfdir}/pmon.d
%define local_etc_goenabledd %{_sysconfdir}/goenabled.d
%define local_etc_nova %{_sysconfdir}/nova
%define debug_package %{nil}
Name: mtce-compute
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: Compute Node Maintenance Package
Group: base
License: Apache-2.0
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: bash
Requires: /bin/systemctl
Requires: qemu-kvm-ev
%description
Maintenance support files for compute-only node type
%prep
%setup
%build
%install
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
%post
/bin/systemctl enable goenabled-compute.service
/bin/systemctl enable e_nova-init.service
/bin/systemctl enable qemu_clean.service
%files
%license LICENSE
%defattr(-,root,root,-)
%{_sysconfdir}/init.d/goenabledCompute
%{_sysconfdir}/init.d/e_nova-init
%{_sysconfdir}/init.d/nova-cleanup
%{_sysconfdir}/init.d/nova-startup
%{local_etc_nova}/nova-cleanup.conf
%{local_etc_nova}/nova-compute.conf
%{local_etc_pmond}/libvirtd.conf
%{local_etc_goenabledd}/nova-goenabled.sh
%{local_etc_goenabledd}/virt-support-goenabled.sh
%{_unitdir}/goenabled-compute.service
%{_unitdir}/e_nova-init.service
%{_datarootdir}/licenses/mtce-compute-1.0/LICENSE
%clean
rm -rf $RPM_BUILD_ROOT

47
mtce-compute/src/Makefile Executable file
View File

@ -0,0 +1,47 @@
SOURCE1 = goenabled
SOURCE2 = e_nova-init
SOURCE3 = nova-cleanup
SOURCE4 = nova-startup
SOURCE5 = LICENSE
SOURCE11 = nova-cleanup.conf
SOURCE12 = nova-compute.conf
SOURCE14 = libvirtd.conf
SOURCE21 = nova-goenabled.sh
SOURCE22 = virt-support-goenabled.sh
SOURCE31 = goenabled-compute.service
SOURCE32 = e_nova-init.service
local_etc_pmond = $(_sysconfdir)/pmon.d
local_etc_goenabledd = $(_sysconfdir)/goenabled.d
local_etc_nova = $(_sysconfdir)/nova
.PHONY: default
install:
# nfv-plugins
# # Compute-Only Init Scripts (source group x)
install -m 755 -p -D scripts/$(SOURCE1) $(buildroot)/$(_sysconfdir)/init.d/goenabledCompute
install -m 755 -p -D scripts/$(SOURCE2) $(buildroot)/$(_sysconfdir)/init.d/e_nova-init
install -m 755 -p -D scripts/$(SOURCE3) $(buildroot)/$(_sysconfdir)/init.d/nova-cleanup
install -m 755 -p -D scripts/$(SOURCE4) $(buildroot)/$(_sysconfdir)/init.d/nova-startup
# # Compute-Only Process Monitor Config files (source group 1x)
install -m 755 -d $(buildroot)/$(local_etc_pmond)
install -m 755 -d $(buildroot)/$(local_etc_nova)
install -m 644 -p -D scripts/$(SOURCE11) $(buildroot)/$(local_etc_nova)/nova-cleanup.conf
install -m 644 -p -D scripts/$(SOURCE12) $(buildroot)/$(local_etc_nova)/nova-compute.conf
install -m 644 -p -D scripts/$(SOURCE14) $(buildroot)/$(local_etc_pmond)/libvirtd.conf
# # Compute-Only Go Enabled Test (source group 2x)
install -m 755 -d $(buildroot)/$(local_etc_goenabledd)
install -m 755 -p -D scripts/$(SOURCE21) $(buildroot)/$(local_etc_goenabledd)/nova-goenabled.sh
install -m 755 -p -D scripts/$(SOURCE22) $(buildroot)/$(local_etc_goenabledd)/virt-support-goenabled.sh
# Install to systemd (source group 3x)
install -m 644 -p -D scripts/$(SOURCE31) $(buildroot)/$(_unitdir)/goenabled-compute.service
install -m 644 -p -D scripts/$(SOURCE32) $(buildroot)/$(_unitdir)/e_nova-init.service
# for license
install -m 755 -d $(buildroot)/$(_datarootdir)/licenses/mtce-compute-1.0
install -p -D -m 600 scripts/$(SOURCE5) $(buildroot)/$(_datarootdir)/licenses/mtce-compute-1.0/LICENSE

View File

@ -1,5 +1,5 @@
Metadata-Version: 1.1 Metadata-Version: 1.1
Name: cgts-mtce-control Name: mtce-control
Version: 1.0 Version: 1.0
Summary: Titanium Cloud Platform Controller Node Maintenance Package Summary: Titanium Cloud Platform Controller Node Maintenance Package
Home-page: Home-page:

View File

@ -1,4 +1,4 @@
SRC_DIR="$PKG_BASE/cgts-mtce-control-1.0/scripts" SRC_DIR="$PKG_BASE/src"
COPY_LIST="$SRC_DIR/* \ COPY_LIST="$SRC_DIR/* \
$PKG_BASE/LICENSE" $PKG_BASE/LICENSE"
TIS_PATCH_VER=4 TIS_PATCH_VER=5

View File

@ -1,9 +1,6 @@
%define local_etc_pmond /%{_sysconfdir}/pmond.d
%define local_etc_goenabledd /%{_sysconfdir}/goenabled.d
%define debug_package %{nil} %define debug_package %{nil}
Name: cgts-mtce-control Name: mtce-control
Version: 1.0 Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist} Release: %{tis_patch_ver}%{?_tis_dist}
Summary: Titanium Cloud Platform Controller Node Maintenance Package Summary: Titanium Cloud Platform Controller Node Maintenance Package
@ -14,8 +11,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown URL: unknown
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: goenabled
Source2: LICENSE
BuildRequires: systemd BuildRequires: systemd
BuildRequires: systemd-devel BuildRequires: systemd-devel
@ -33,15 +28,7 @@ Maintenance support files for controller-only node type
%build %build
%install %install
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
install -m 755 -d %{buildroot}%{local_etc}
# Controller-Only Process Monitor Config files
install -m 755 -d %{buildroot}%{local_etc_pmond}
# Controller-Only Go Enabled Test
install -m 755 -d %{buildroot}%{local_etc_goenabledd}
%post %post
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
@ -53,6 +40,8 @@ exit 0
%files %files
%license LICENSE %license LICENSE
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_sysconfdir}/init.d/goenabledControl
%{_datarootdir}/licenses/mtce-control-1.0/LICENSE
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT

19
mtce-control/src/Makefile Executable file
View File

@ -0,0 +1,19 @@
SOURCE1 = goenabled
SOURCE2 = LICENSE
local_etc_pmond = $(_sysconfdir)/pmond.d
local_etc_goenabledd = $(_sysconfdir)/goenabled.d
.PHONY: default
install:
# Controller-Only Init Scripts
install -m 755 -p -D scripts/$(SOURCE1) $(buildroot)/$(_sysconfdir)/init.d/goenabledControl
# Controller-Only Process Monitor Config files
install -m 755 -d $(buildroot)/$(local_etc_pmond)
# Controller-Only Go Enabled Test
install -m 755 -d $(buildroot)/$(local_etc_goenabledd)
# for license
install -m 755 -d $(buildroot)/$(_datarootdir)/licenses/mtce-control-1.0
install -p -D -m 600 scripts/$(SOURCE2) $(buildroot)/$(_datarootdir)/licenses/mtce-control-1.0/LICENSE

View File

@ -1,5 +1,5 @@
Metadata-Version: 1.1 Metadata-Version: 1.1
Name: cgts-mtce-storage Name: mtce-storage
Version: 1.0 Version: 1.0
Summary: CGTS Platform Storage Node Maintenance Package Summary: CGTS Platform Storage Node Maintenance Package
Home-page: Home-page:

View File

@ -1,4 +1,4 @@
SRC_DIR="$PKG_BASE/cgts-mtce-storage-1.0/scripts" SRC_DIR="$PKG_BASE/src"
COPY_LIST="$SRC_DIR/* \ COPY_LIST="$SRC_DIR/* \
$PKG_BASE/LICENSE" $PKG_BASE/LICENSE"
TIS_PATCH_VER=3 TIS_PATCH_VER=4

View File

@ -1,61 +0,0 @@
%define local_etc_pmond /%{_sysconfdir}/pmond.d
%define local_etc_goenabledd /%{_sysconfdir}/goenabled.d
%define local_etc_servicesd /%{_sysconfdir}/services.d
Name: cgts-mtce-storage
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: Titanium Cloud Platform Storage Node Maintenance Package
Group: base
License: Apache-2.0
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: goenabled
Source2: goenabled-storage.service
Source3: LICENSE
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: bash
Requires: /bin/systemctl
%description
Maintenance support files for storage-only node type
%prep
%build
%install
# Storage-Only Init Scripts
install -m 755 -p -D %{SOURCE1} %{buildroot}/etc/init.d/goenabledStorage
# Storage-Only Process Monitor Config files
install -m 755 -d %{buildroot}%{local_etc_pmond}
# Storage-Only Go Enabled Tests
install -m 755 -d %{buildroot}%{local_etc_goenabledd}
# Storage-Only Services
install -m 755 -d %{buildroot}%{local_etc_servicesd}/storage
# Install systemd dir
install -m 644 -p -D %{SOURCE2} %{buildroot}%{_unitdir}/goenabled-storage.service
%post
/bin/systemctl enable goenabled-storage.service
%files
%defattr(-,root,root,-)
/etc/init.d/goenabledStorage
%{_unitdir}/goenabled-storage.service
%clean
rm -rf $RPM_BUILD_ROOT

View File

@ -0,0 +1,42 @@
%define debug_package %{nil}
Name: mtce-storage
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: Titanium Cloud Platform Storage Node Maintenance Package
Group: base
License: Apache-2.0
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: bash
Requires: /bin/systemctl
%description
Maintenance support files for storage-only node type
%prep
%setup
%build
%install
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
%post
/bin/systemctl enable goenabled-storage.service
%files
%license LICENSE
%defattr(-,root,root,-)
%{_sysconfdir}/init.d/goenabledStorage
%{_unitdir}/goenabled-storage.service
%{_datarootdir}/licenses/mtce-storage-1.0/LICENSE
%clean
rm -rf $RPM_BUILD_ROOT

25
mtce-storage/src/Makefile Executable file
View File

@ -0,0 +1,25 @@
SOURCE1 = goenabled
SOURCE2 = goenabled-storage.service
SOURCE3 = LICENSE
local_etc_pmond = $(_sysconfdir)/pmond.d
local_etc_goenabledd = $(_sysconfdir)/goenabled.d
local_etc_servicesd = $(_sysconfdir)/services.d
.PHONY: default
install:
# Storage-Only Init Scripts
install -m 755 -p -D scripts/$(SOURCE1) $(buildroot)/$(_sysconfdir)/init.d/goenabledStorage
# Storage-Only Process Monitor Config files
install -m 755 -d $(buildroot)/$(local_etc_pmond)
# Storage-Only Go Enabled Tests
install -m 755 -d $(buildroot)/$(local_etc_goenabledd)
# Storage-Only Services
install -m 755 -d $(buildroot)/$(local_etc_servicesd)/storage
# Install systemd dir
install -m 644 -p -D scripts/$(SOURCE2) $(buildroot)/$(_unitdir)/goenabled-storage.service
# for license
install -m 755 -d $(buildroot)/$(_datarootdir)/licenses/mtce-storage-1.0
install -p -D -m 600 scripts/$(SOURCE3) $(buildroot)/$(_datarootdir)/licenses/mtce-storage-1.0/LICENSE