Commit Graph

23 Commits

Author SHA1 Message Date
Al Bailey 611cb9317c Update debian package versions to use git commits
The Debian packaging has been changed to reflect all the
git commits under the directory, and not just the commits
to the metadata folder.

This ensures that any new code submissions under those
directories will increment the versions.

Note:
 nfv uses GITREVCOUNT because its src_path is 'None'

Test Plan:
 PASS: build-iso and unlock AIO-SX
 PASS: build-pkgs -p nfv
 PASS: build-pkgs -p nova-api-proxy
 PASS: commit a file change under nfv, and rebuild and
     see that the nfv version has increased.
 PASS: commit a file change one directory before nfv, and
    rebuild and see that the nfv version has not increased.

Story: 2010550
Task: 47222

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I06804af6e356174b608b18219b1f1c8176c99375
2023-02-09 17:00:49 +00:00
Zuul d23335d98e Merge "Debian: Remove conf files from etc-pmon.d" 2022-09-30 19:10:38 +00:00
Leonardo Fagundes Luz Serrano 312f68fae9 Debian: Remove conf files from etc-pmon.d
Removed conf files from /etc/pmon.d/
as they are being moved to another location.

This is part of an effort to allow pmon conf files
to be selected at runtime by kickstarts.

The change is debian-only, since centos support
will be dropped soon.
Centos' pmon conf files remain in /etc/pmon.d/

Test Plan:
PASS - deb doesn't install anything to /etc/pmon.d/
PASS - AIOSX unlocked-enabled-available
PASS - Standard 2+2 unlocked-enabled-available

Story: 2010211
Task: 46307

Depends-On: https://review.opendev.org/c/starlingx/metal/+/855095

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: Ica5dfca4778c60664e37fd3eb8768b8a159565e1
2022-09-26 13:42:10 +00:00
Zuul 28d6d1a190 Merge "Debian: Package mtce-guest services the proper way" 2022-09-15 12:26:32 +00:00
Leonardo Fagundes Luz Serrano 3280ad31be Duplicate pmon.d conf files to another location
Created a duplicate install of /etc/pmon.d/*.conf files
to /usr/share/starlingx/pmon.d/

This is part of an effort to allow pmon conf files
to be selected at runtime by kickstarts.

Test Plan:
PASS: duplicate conf on deb

Story: 2010211
Task: 46113

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: Ieba1d09e28515b9dea534514b986fa8624bc8c25
2022-08-25 16:58:24 +00:00
Dan Voiculeasa d380292b8a Debian: Package mtce-guest services the proper way
This work only affects Debian.

Currently guestServer.service is not part of the designed package
(mtce-guest-server), but part of mtce-guest-agent.
Fix packaging to deliver the file in the designed package.
Fix because we don't want anything related to this to bite us later.
This is a follow-up to [1].

Tests:
PASS: build-pkgs
      guestAgent.service is part of mtce-guest-agent
      guestServer.service is part of mtce-guest-server
PASS: build-image
PASS: Standard lab deployed

[1]: https://review.opendev.org/c/starlingx/nfv/+/830596
Story: 2009101
Task: 44323
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I55b3901120af424353c9d18f2f4d2855f4f7605b
2022-08-25 19:39:06 +03:00
Andrei Suciu 987d5b9b77 Debian: Fix mtce-guest services on Debian
Modified mtce-guest to address the following failing services on Debian:
guestAgent.service
guestServer.service
(the service provides a means of guest heartbeat
orchestration under VIM (system management) control)

Applied fix:
- Included modified .service files for debian directly into
the deb_folder.
- Included "override_dh_installsystemd" section to rules in order
to start guestServer at boot and guestAgent with --no-enable option
- Removed guestAgent.service and guestServer.service install from
Makefile to spec, in order to override (for CentOS build)
- Modified service scripts to fork for Daemon location
- Move binaries to usr/local/bin

PASS: Package installed and ISO built on Debian successfully
PASS: Services are running correctly after loading the image:
guestServer is started automatically, guestAgent (--no-enable) runs
correctly when started via systemctl
PASS: guestServer runs as expected after bootstrap

PASS: Package installed and ISO built on CentOS successfully
PASS: Services are running on CentOS after bootstrap and
unlock correctly

Story: 2009101
Task: 44323


Change-Id: I856fcc78c41953ae37e7c2cf1361b4466b15720b
2022-04-01 00:58:42 +00:00
Tracey Bogue 20130b3e07 Add Debian packaging for mtce-guest, nova-api-proxy and nfv.
The following changes were made to source files:
* Remove a null pointer from a log format in guestHttpSvr.cpp.
* Add a local variable for inet_ntoa instead of logging it directly.
* Added local_fs requirement to guestAgent and guestServer scripts.
* Changed guestAgent.ocf script from /bin/sh to /bin/bash.
  Syntax of script was invalid for sh.

Testing:
* Debian build succeeds.
* Centos build succeeds.

Story: 2009101
Task: 43392

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: Iedfecda0c448800ff60216258946ed520f913c5f
2021-11-02 06:39:28 -05:00
Eric MacDonald 454c71ddc0 Modify nfv and mtce-guest log rotation config files
This updates make the following setting changes
to the nfv log rotation configuration files

 - add 'create' with permissions to guest conf files
 - add 'delaycompress' option
 - remove all global settings
 - remove the nodateext setting

Test Plan:

PASS: Verify log rotation file naming convention
PASS: Verify delaycompress option
PASS: Verify log permissions after rotate are 0640

Change-Id: I033ee0585aedd7c70ff55f2ce3eb70867b78097c
Partial-Bug: 1918979
Depends-On: https://review.opendev.org/c/starlingx/config-files/+/784943
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2021-04-07 20:49:13 +00:00
Don Penney d62cffb7a8 Add auto-version for remaining stx/nfv packages
Update remaining StarlingX packages with hardcoded TIS_PATCH_VER to
use PKG_GITREVCOUNT where possible, with offsets as needed to ensure
the version is incremented above the hardcoded version.

Change-Id: I9adc5f2648fda75b14215a27075c93a851bc6faa
Story: 2008455
Task: 41453
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-12-17 13:24:47 -05:00
Eric MacDonald 684b977d8e Restrict access privilege of nfv mtce-guest config files and daemons
This update modifies the nfv mtce-guest daemons and config
files to restrict access privilege to root privilege

Storage system was installed successfully and permission
of affected files verified.

Change-Id: I7c15c2c2613b40d88e0b4024ade250e5058aab77
Closes-Bug: 1887403
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2020-07-15 16:52:19 +00:00
Sharath Kumar K f1413b7682 De-branding in starlingx/nfv: Titanium Cloud -> StarlingX
1. Rename Titanium Cloud to StarlingX for .service file

Test:
After the de-brand change, bootimage.iso has been built in the flock layer
and installed on the dev machine to validate the changes.

Please note, doing de-brand changes in batches, this is batch7 changes.

Story: 2006387
Task: 39241

Change-Id: I9aa2f33fd531ab7bfb7d42b31fd09066c03aa6ed
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-04-08 14:54:13 +02:00
Erich Cordoba 6578b7a3b1 Add opensuse specfiles to nfv
The nfv components were enabled in the opensuse build system,
however to improve maintenance it was decided to move these files
to the official repositories.

The Open Build Service (OBS) project can be found here:

https://build.opensuse.org/project/show/Cloud:StarlingX:2.0

Story: 2006508
Task: 36809

Change-Id: Ie4084c3f0dbfc9683eb8fb023cc6531d59dc3b1a
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-10-02 10:34:02 -05:00
Dominig ar Foll Intel Open Source 3ab3b53916 adding required by OBS badness check empty RequiredStart RequiredStop
Story: 2006564
Task: 36663
Change-Id: I5b893f49292d0f1f9113fc34393ebf78edb36b3e
Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
2019-09-17 19:33:41 +00:00
Kristine Bujold 3102f5cfc5 Remove wrs-guest-heartbeat SDK Module
With the StarlingX move to supporting pure upstream OpenStack, the
majority of the SDK Modules are related to functionality no longer
supported. The remaining SDK Modules will be moved to StarlingX
documentation.

Story: 2005275
Task: 30545
Depends-On: https://review.openstack.org/#/c/653521

Change-Id: I842596dab79bff79313671e3e0b7aa7e4a93c493
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2019-04-17 16:34:14 -04:00
Yi Wang 262142c50c updates to stx-nfv devstack plugin
* Build and install guest_scale_helper. It is called by nova. So
  we don't implement start_xx and stop_xx functions in the plugin.
* Fix two minor issues in guest-comm and guest-agent Makefiles.
* Remove "make host_clean" in host-agent installation function.
* Add EXTRALDFLAGS to linker in guest-agent and mtce-guest Makefiles.

Story: 2003163
Task: 29237

Depends-On: https://review.openstack.org/639253
Change-Id: I4ab0b6d6e5c4920572ebadbb48778470ee020281
Signed-off-by: Yi Wang <yi.c.wang@intel.com>
2019-03-09 09:05:37 +08:00
Yi Wang b1db929bf7 replace readdir_r with readdir in guestSvrUtil.cpp
Reasons:
* readdir_r has been deprecated from glibc 2.24. Detailed reasons
  can be found at below link.
  http://man7.org/linux/man-pages/man3/readdir_r.3.html
* StarlingX devstack has switched to Ubuntu Bionic. By default,
  gcc version is 7.3.0, glibc version is 2.27. Using readdir_r in
  mtce-guest will cause compiling failure.

Passed tests:
* Fresh building
* Deployment test
* Function-level unit tests. Modfied guestUtil_load_channels and
  guestUtil_channel_search have same output as previous ones.
* System-level verification. guestServer&guestAgent can start
  successfully. By checking the log of guestServer, it has the same
  content as before.

Story: 2003163
Task: 29689

Change-Id: Ib77decf495f093651ac93ef1e0ce2be3807ce91b
Signed-off-by: Yi Wang <yi.c.wang@intel.com>
2019-03-04 20:54:38 +08:00
Erich Cordoba e5987ac38a Standardize makefile for mtce-guest
Changes done:
  - Create install target in Makefile,
  - Move install commands to Makefile,
  - Cleanup on spec file.

Story: 2004043
Task: 27557

Change-Id: I087eeb19eb999c27a77608e3eef7663067ae9c60
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-02-10 12:28:09 -06:00
Tao Liu 397e40a89f Change compute node to worker node personality
Update misc compute references to worker

Tests Performed:
Non-containerized deployment
AIO-SX: Sanity and Nightly automated test suite
AIO-DX: Sanity and Nightly automated test suite
2+2 System: Sanity and Nightly automated test suite
2+2 System: Horizon Patch Orchestration

Kubernetes deployment:
AIO-SX: Create, delete, reboot and rebuild instances
2+2+2 System: worker nodes are unlock enable and no alarms

Story: 2004022
Task: 27013

Depends-On: https://review.openstack.org/#/c/624452/

Change-Id: I7b2de5c7202f2e86b55f5343c8d79d50e3a072a2
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-12-14 14:15:16 -05:00
Zuul ac6339b3c3 Merge "Fix destination buffer too small issue by static analyze tool code with strcpy is not proposed, replace with strncpy" 2018-11-27 14:39:41 +00:00
haochuan b1cede2bed Fix destination buffer too small issue by static analyze tool
code with strcpy is not proposed, replace with strncpy

Test:
deploy simplex system, create qcow2 file with guest-client and json-c
build and install. Use created qcow2 to create image named test, and
create flavor named test_flavor with add guest:heartbeat property in
metadata. Create instance with created image and flavor. Lanched the
instance, launch guestClient process with command such command
  '# guestClient --device /dev/virtio-port/cgcs.heart'
Check guestAgent in host file /var/log/guestAgent.log, confirm
heartbeat enabled as "controller-0 c7ee5d00-e782-4d0a-8292-7724b3afc4e9
enabled heartbeating status change to 'enabled'"

Closes-Bug: 1794908

Change-Id: Ieb774882802127cfffef1291cf1bcc7a4d6f8055
Signed-off-by: Martin Chen <haochuan.z.chen@intel.com>
2018-11-27 10:13:07 +08:00
Eric MacDonald b8d8ce676f Mtce: Fix guestAgent inventory query
Maintenance was recently modified to support

 - receiving Ready Events and Command Responses and
 - sending Ready Events, Commands and Inventory

from/to surrogate daemons over its floating IP rather
than the LO interface in support of surrogate daemons
that run on the inactive controller or any hosts in
the system for that matter.

Unfortunately the guestAgent was not modified to send
its Ready Event or Receive commands and inventory in
the same way.

This update fixes that by binding its Inventory/Command
receiver and Ready event transmitter to the active
controllers floating IP.

With that change the guestAgent once again gets its
Inventory/Commands on its process startup as well as
on the restart of the mtcAgent.

Change-Id: I0b07596501f45d28ca0d6c82293d0b904a5e39fb
Closes-Bug: 1804579
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2018-11-23 13:38:21 -05:00
Jim Gauld d2b3e22a4e Decouple Guest-server/agent from stx-metal
This decouples the build and packaging of guest-server, guest-agent from
mtce, by splitting guest component into stx-nfv repo.

This leaves existing C++ code, scripts, and resource files untouched,
so there is no functional change. Code refactoring is beyond the scope
of this update.

Makefiles were modified to include devel headers directories
/usr/include/mtce-common and /usr/include/mtce-daemon.
This ensures there is no contamination with other system headers.

The cgts-mtce-common package is renamed and split into:
- repo stx-metal: mtce-common, mtce-common-dev
- repo stx-metal: mtce
- repo stx-nfv: mtce-guest
- repo stx-ha: updates package dependencies to mtce-pmon for
  service-mgmt, sm, and sm-api

mtce-common:
- contains common and daemon shared source utility code

mtce-common-dev:
- based on mtce-common, contains devel package required to build
  mtce-guest and mtce
- contains common library archives and headers

mtce:
- contains components: alarm, fsmon, fsync, heartbeat, hostw, hwmon,
  maintenance, mtclog, pmon, public, rmon

mtce-guest:
- contains guest component guest-server, guest-agent

Story: 2002829
Task: 22748

Depends-On: https://review.openstack.org/603435

Change-Id: I2ebaf07b94ee5b5abdf8f8db80536351ded22078
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
2018-09-19 11:38:04 -04:00