sm-db build-depends on sm-common-libs which run-depends on mtce, if
sm-db builts prior to mtce, a failure is:
"sm-common-libs : Depends: mtce-pmon but it is not installable"
This is a temporary fix to make the build order as mtce, sm-common,
sm-db to bypass it.
Once it has been resolved on build system, the fix can be reverted.
Story: 2009101
Task: 44976
Test Plan:
Pass: build-pkgs -a without failure of sm-db.
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I76c16dc87143db9b8a0484d74071afb6e8740745
Make sure that the python is installed correctly.
Test Plan
PASS Build and test ISO.
Story: 2009101
Task: 44678
Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I6ab99380a8a0a0be960bcf2c6f5b0a97463ff146
- Detect which OS version that is being used based on the
/etc/os-release, to determine if libraries need to be installed
in /usr/lib (Debian) or /usr/lib64 (Centos).
- Remove the hardcoded /usr/lib64 directory in the Makefile.
- Clean up debian/rules to remove extra cruft.
- Install the libraries into /usr/lib on Debian rather than
/usr/lib64 so the libraries are installed in the correct
place.
Story: 2009101
Task: 44678
Test Plan
PASS Build package and ISO on Centos and Debian.
PASS Check to see if /usr/lib64 does not
have libdm_db.so installed.
Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I6d864d394eadb1c566a8426799ca4ff4509d14f4
Make sure that the python is installed correctly.
Test Plan
PASS Build and test ISO.
Story: 2009101
Task: 43644
Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I1bd2938b2fb861a2281fc6a3f3bf3f5408ccbb86
- Remove unneeded dependencies.
- Install the systemd services in the correct spot.
- Enable systemd presets when the package is installed so
the service will start correctly.
- Use python3 shebang rather than the python shebang
so lintian wont complain anymore.
Test Plan
PASS Build and test ISO.
PASS Check sm service has started.
Story: 2009101
Task: 44678
Depend-On: https://review.opendev.org/c/starlingx/integ/+/831950
Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I7a41e9cb60e8fc9c3e7e90e3dad9f34b72f47e67
- Removed unneeded dependencies.
- Install systemd services in the correct directory.
- Enabled systemd preset so that the packaging is starting
correctly when the server boots.
Test Plan
PASS Build and test ISO.
PASS Check sm service has started.
Story: 2009101
Task: 44678
Depends-On: https://review.opendev.org/c/starlingx/integ/+/831950
Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I05f7f559f14892eaede069930398359b3d26f6e5
- debian/control: Clean up build and runtime dependencies.
- debian/rules: Make sure the libraries are installed in the
correct directory. Debian uses multiarch so the /usr/lib64
is not in the ld.conf.so which prevents the sm daemon from
running correctly.
- debian/rules: Make sure that the systemd services are being
installed in the correct spot.
- debian/rules: Enable that the daemons are being started
correctly.
- Add service preset files to /etc/systemd/system-preset which
will set the initial state of the services.
Story: 2009101
Task: 44678
Test Plan
PASS Build package and ISO.
PASS Check to see if sm-watchdog service has started.
Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I11ebb8b9e9fac912268eaa4d911f9e146a810f7a
This reverts commit 8b2820f90f.
This introduces a build error when building sm, due to sm-db
dependency. When installing sm-db the shared library is now
moved to another location. Linking will fail when building.
/usr/bin/ld: cannot find -lsm_db
collect2: error: ld returned 1 exit status
Story: 2009101
Task: 44597
Change-Id: I58796e3d285777e5e5b3cf7123acd8bfbf6e6332
Modified sm to address the following failing
services on Debian:
sm.service
sm-eru.service
sm-watchdog.service
sm-shutdown.service
sm-api.service
Applied fix:
- Included modified .service files for debian
directly into into the deb_folder.
- Changed the script file to set the environmental
variable LD_LIBRARY_PATH to the path of the
libsm_db and libsm_common libs.
- Included "override_dh_installsystemd" section
to rules in order to install services.
- Included postinst file to move the lib files
and to start two services.
Test Plan:
PASS: Package installed and ISO built successfully.
PASS: Services are on the expected state after iso install.
PASS: Services are running after bootstrap on Debian.
PASS: CentOS sm package is built and installed successfully
Story: 2009101
Task: 44597
Signed-off-by: lbonatti <LuizEduardo.Bonatti@windriver.com>
Change-Id: Iaa6e5087d6abe89b4fbfea464b2a19521faaa868
Similar to how PEP479 was handled on config[1].
Instances of "raise StopIteration" were changed to
a plain 'return' statement in order to avoid breaking
the existing logic.
CentOS 7 tests:
PASS: Build & install
PASS: Successful Bootstrap
Debian Bullseye tests:
PASS: Build & install
PASS: Successful Bootstrap
[1] https://review.opendev.org/c/starlingx/config/+/825447
Story: 2009101
Task: 44513
Signed-off-by: Matheus Machado Guilhermino <Matheus.MachadoGuilhermino@windriver.com>
Change-Id: Ibe4717e64fcee159c1bc4a17acf623adbfae3908
This commit is part of:
"Refactor portion of dcmanager into dcmanager-state process"
in the distributed cloud project.
Test Plan:
PASS:
- Validate dcmanager-state service dependencies
Story: 2009725
Task: 44317
Depends-On: https://review.opendev.org/c/starlingx/distcloud/+/825167
Signed-off-by: Kyle MacLeod <kyle.macleod@windriver.com>
Change-Id: Ib441f487c73321a8ccd049c69919b8e6764017c8
Added a new degrade action result code (161) to degrade the open-ldap
service if FD limit is reached. Result code 160 indicates open FD is
approaching to the limit, it will reset the degraded state as well
as normal result code 0.
SM was not designed to raise service level warnings/alarms. A major
alarms will be raised by collectd when open-ldap open file descriptors
is approaching to the limit (above 95%), and a critical alarm will be
raised when the limit is reached (100%).
Ref collectd changes:
https://review.opendev.org/c/starlingx/monitoring/+/819137
Partial-bug: 1952126
Change-Id: I893c137ab81fcf01e949c9ca13cedcbe8fe5d86d
Signed-off-by: Bin Qian <bin.qian@windriver.com>
Removed ${shlibs:Depends} since it is not needed for the header files.
This fixes a dependency loop that is seen when building all of the
packages before building the ISO.
Tested by rebuilding the archive.
Story: 2009101
Task: 43700
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Icc84c1b2f91cbdc7d9ec31c8aa62ff502b82ad78
Add debian_pkg_dirs file to ha.
This way, packages will be picked up by the build system.
Story: 2009101
Task: 43799
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I350e7c0ef4cd72dee01df2ff55517bf4ff62a5a7
When cert-alarm is to be activated, we need to make sure that sysinv
is already active. This service dependency should exist on new installs
as there might be calls to sysinv API on activation.
Test Plan:
PASS: Verify new install succeeds and all services come up in
correct order.
Story: 2008946
Task: 42850
Signed-off-by: Sabeel Ansari <Sabeel.Ansari@windriver.com>
Change-Id: I353f754f067b555aab12d5a6c403e910f7529412
A lot of work has gone into making sure that StarlingX is python3
compatible. To ensure future compatibility, enable the python3
portability checks. Disable the checks that are raising errors.
Another set of commits will address the offending code.
Story: 2006796
Task: 43269
Signed-off-by: Bernardo Decco <bernardo.deccodesiqueira@windriver.com>
Change-Id: I48d05d5bd8a4820fb02a47023af06411b62fa0a8
Except keywords expects a tuple containing only base classes,
or a base class as the exception type in Python3.
This is compatible with Python2.
Convert lists to tuples, and expand nested tuples.
Suppress pylint warnings.
This was taken from d41f3fe19939f1759ca3cf73874724bd75eebe43
in the starlingx/config repo.
Story: 2006796
Task: 42866
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I129302b5a6199b705b3533ffb77e7700e815df2f
(cherry picked from commit 702ea92596)