10 Commits

Author SHA1 Message Date
Al Bailey
60ab3f6b45 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.

All packages have a higher version than before the change.

Test Plan:
  PASS: build-pkgs -c -p fm-api
  PASS: build-pkgs -c -p fm-common
  PASS: build-pkgs -c -p fm-doc
  PASS: build-pkgs -c -p fm-mgr
  PASS: build-pkgs -c -p fm-rest-api
  PASS: build-pkgs -c -p python-fmclient

Story: 2010550
Task: 47226

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I65e881ba96512d2eaba25c44332d5ae82efea502
2023-02-09 18:06:57 +00:00
Enzo Candotti
cd0f5c38c2 Add stx-fm-rest-api loci image
This change reorganizes the source directories of the stx-fm-rest-api
container to be reused by both CentOS and Debian Dockerfiles in order
to build the images having the corresponding OS-specic base.

As part of this, the fm-api, fm-rest-api, fm-common and
python-fmclient packages have been ported in order to generate deb
files that contain .whl.

Test plan:
PASS: Build debian iso and perform fresh install. Verify fm commands are
working as expected.
PASS: Build python3 wheels tarball on Debian. Verify fm, fm_api, fm_core
and fmclient .whl files are added.
PASS: Build Debian-based container and push it to a public registry.
Apply openstack application and update the fm-rest-api url to pull
this new image. Verify that:
    - pods are up and running with the new image/tag specified.
    - the container is running on Debian.
    - from inside the container, fm querys are working as expected.

Story: 2009831
Task: 46634

Depends-On: https://review.opendev.org/c/starlingx/config/+/862498

Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com>
Change-Id: I2b35139f8775141e39f97a5a6037c5de2b4d5d76
2022-10-27 15:29:06 +00:00
Joao Victor Portal
74d56e72a0 Restrict fmClientCli binary permissions
The fmClientCli binary can create and delete alarms freely on the
system, so the access to this binary should be restricted to Linux admin
users.

Test Plan:

PASS: Deploy an AIO-SX using a Debian image containing this change and
check that the permissions for file "/usr/local/bin/fmClientCli" is
"-rwxr-x---" and the owner:group is root:root.
PASS: Repeat the test above using a CentOS image.

Closes-Bug: 1991118
Signed-off-by: Joao Victor Portal <Joao.VictorPortal@windriver.com>
Change-Id: I0375ddc68ae1b5967447a326780272f77695793a
2022-09-28 11:19:55 -03:00
Dan Voiculeasa
4a55539a8b debian: Fix fm-common binaries location
Keep the same binary location as on CentOS.
An fm component was updated to produce binaries to correct location,
but fm-common component was missed. Alarms could not be raised by sm.

Tests:
PASS: bootstrap
PASS: unlock
PASS: alarms are raised by sm

Story: 2009101
Task: 44321
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I56eb2a5cd69c643d477fba20a7344cd51be5444d
2022-04-12 21:32:22 +00:00
Zuul
658ff11127 Merge "Fix lintian errors" 2021-11-09 14:09:59 +00:00
Dan Voiculeasa
6af325e235 Fix fm-common build
A commit introducing a new file broke the debian build, complaining the
file is not installed.

Add to .install, so it is packaged.

Depends-On: https://review.opendev.org/c/starlingx/fault/+/815381
Story: 2009101
Task: 43090
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I4e0652918d7db251b54ede75cfac83d4b18c6ec4
2021-11-04 10:25:42 +00:00
Charles Short
2005768378 Fix lintian errors
Fix lintian error when building Debian package.

Story: 2009101
Task: 43090

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I16fabf0b1ca86484ba525461ed2aa0cd53e27ac7
2021-11-02 13:54:00 -04:00
Charles Short
b564292054 Convert fm-common to new debian pkg system
Convert fm-common to use the new debian packaging infrastructure.

Story: 2009101
Task: 43090

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I4c53d8b446504a4ef7ac407fa063f6a328e1dc3d
2021-10-19 12:36:58 -04:00
Marcela Rosales
8e6f88198f Use StarlingX mail list as Package Maintainer for Debian
The Maintainer was change from a proper name to the StarlingX
project as it can be confusing the responsibilities of the person.

Change-Id: I32faf658388bc38e248362c71589f70f8f22ad4d
Story:2004792
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
2019-06-12 12:06:38 -05:00
Marcela Rosales
ef43979d39 Add files for fm-common deb packaging
Add control, rules and install files to generate fm-common deb
following StarlingX/MultiOS/Debian Wiki.

Change-Id: Ic86a610aeef02a849faaec985579862e5b317db7
Story: 2004792
Task: 33569
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
2019-06-06 12:38:40 -05:00