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
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
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
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
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
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
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>
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>
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>
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>
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>
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>
* 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>
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>
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>
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>
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>
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>