Commit Graph

20 Commits

Author SHA1 Message Date
Davi Frossard dd0eb34208 Remove qemu dependency from mtce-compute and mtce-control
Dependency is necessary only on centos packaging.

Test Plan:
PASS - Build packages.
PASS - Build/install image on AIO-SX.

Depends-On: https://review.opendev.org/c/starlingx/virt/+/885342

Story: 2010781
Task: 48183

Change-Id: I5a6e4a7ba12c83372dd3171e054bf612c1484f7e
Signed-off-by: Davi Frossard <dbarrosf@windriver.com>
2023-12-04 14:19:28 +00:00
Al Bailey 37c5910a62 Update mtce debian package ver based on git
Update debian package versions to use git commits for:
 - mtce         (old 9, new 30)
 - mtce-common  (old 1, new 9)
 - mtce-compute (old 3, new 4)
 - mtce-control (old 7, new 10)
 - mtce-storage (old 3, new 4)

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.

Test Plan:
  PASS: build-pkgs -p mtce
  PASS: build-pkgs -p mtce-common
  PASS: build-pkgs -p mtce-compute
  PASS: build-pkgs -p mtce-control
  PASS: build-pkgs -p mtce-storage

Story: 2010550
Task: 47401
Task: 47402
Task: 47403
Task: 47404
Task: 47405

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I4846804320b0ad3ec10799a468a9ee3bf7973587
2023-03-02 14:50:35 +00:00
Charles Short ab7d062a01 debian: Remove package preset install for metal
Remove the installation of per-package preset installs
since they are centrally managed now by the ISO install
for the following packages:

- mtce-compute
- mtce-control
- mtce-storage

Story: 2009968
Task: 46406

Test Plan

PASS Build package
PASS Build ISO
PASS Check for non-existant preset file in /etc/systemd/system-preset

Depends-On: https://review.opendev.org/c/starlingx/integ/+/853653

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ica1a99efe2336fdb6096086f46189dfd25efc6e1
2022-09-27 08:23:09 +00:00
Chuck Short 91c828185b debian: Simplifying mtce-compute packaging
- Ensure that the service is started when the package
  is installed.
- Ensure that the service dependencies are started
  when the package is installed.
- Simplify debian/rules to use the Makefile in order
  to install the files that are needed.

Test Plan
PASS Build package and ISO
PASS Boot and check for goenabled-compute.service

Story: 2009101
Task: 43023

Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I5f931ff1318f32c6c74782cbda2a9517b9c4efe5
2022-03-10 19:39:04 +00:00
Tracey Bogue 0551c665cb Add Debian packaging for mtce packages
Some of the code used TRUE instead of true which did not compile
for Debian. These instances were changed to true.
Some #define constants generated narrowing errors because their
values are negative in a 32 bit integer. These values were
explicitly casted to int in the case statements causing the errors.

Story: 2009101
Task: 43426

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: Iffc4305660779010969e0c506d4ef46e1ebc2c71
2021-10-29 09:17:00 -05:00
Eric MacDonald 7d8be4bc1f Add auto-versioning to starlingx/metal mtce packages
This update makes use of the PKG_GITREVCOUNT variable
to auto-version the mtce packages in this repo.

Change-Id: Ifb4da4570e0261bbdcf0d7af79b8add7cfc133ac
Story: 2006166
Task: 39822
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2020-05-21 15:18:43 -04:00
Sharath Kumar K b725a0974b De-branding in starlingx/metal: Titanium Cloud -> StarlingX
1. Rename Titanium Cloud to StarlingX for .spec files
2. Rename Titanium Cloud to StarlingX for .service file

Test:
After the de-brand change, bootimage.iso has 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 batch1 changes.

Story: 2006387
Task: 36207

Change-Id: Ifa4dc5c7aa3189815e00b796fc833852e88c8fe3
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-04-03 07:58:25 +02:00
Marcela Rosales b5f12793a1 Update openSUSE OBS artifacts to build MTCE packages
The openSUSE spec files needs to have the path of the source code in
the setup to have the package generation automated through _service
file in OBS.

Change-Id: I2b7c08d5772025c02821dfb9fc944fff0f5b6f90
Story: 2006508
Task: 36812
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
2019-10-01 11:07:10 -05:00
Marcela Rosales a0a3693bc4 Add openSUSE OBS Artifacts for Maintenance services
StarlingX Open Build Service [0] builds MTCE packages using base
artifacts:
- Spec file
- Changelog

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

Story: 2006508
Task: 36556
Task: 36557
Task: 36558
Task: 36559
Task: 36560
Task: 36561

Change-Id: I9bf59ab4b890ebe33a9304d3f886951c860412a6
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
2019-09-20 09:18:54 -05:00
Al Bailey b1df966e02 Allow computes without virtualization enabled to be unlocked
The goenabled script in mtce-compute checks if hardware
virtualization is enabled, before allowing the node to
become enabled.  (hardware only)

This check is only needed if the compute is being used as an
openstack compute node, and so the check has been updated
to look for the appropriate label.

Puppet stores the labels in the hieradata file in /tmp.

That file is recreated when the host is rebooted or unlocked,
and labels cannot be changed unless a host is locked.

Change-Id: I6862a1b7824c759f0c3caea37c3ae6e4e9ab43b7
Closes-Bug: 1843616
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-09-13 14:04:20 -05:00
Hayde Martinez a3f1d22035 SUSE Specfile for mtce-compute Init Script LSB
It is required for goenabled script header to be
compliant with LSB in order to build on OBS infrastructure.

Story: 2005684
Task: 33454

Change-Id: I0492bfa729205839db1ca4f2b0a0185a32b7a0d1
Signed-off-by: Hayde Martinez <hayde.martinez.landa@intel.com>
2019-05-21 17:05:03 -05:00
Al Bailey 926b3d5086 Remove all nova and libvirt files from mtce-common
The nova and libvirt service files no longer need to be installed.
This commit needs to merge along with the code that removes
the nova RPMS from the product, and removes the nova setup
from puppet.

Story: 2004764
Task: 30038
Depends-On: Ifa0171b06e23fd77d373983d644df3f56ae4e2de
Change-Id: I03ae4a804fbc03d51fd9e2cde59e25760fb53d3d
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-03-19 15:23:36 -05:00
Tao Liu 9661e49411 Change compute node to worker node personality
This update replaces compute references to worker in mtce,
kickstarts, installer and bsp files.

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: I225f7d7143d841f80459603b27b95ac3f846c46f
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-12-13 13:08:48 -05:00
Zuul f5de6cc2d6 Merge "get rid of duplicate LICENSE files in 3 packages" 2018-10-31 00:58:33 +00:00
Yong Hu 2402fb16ae get rid of duplicate LICENSE files in 3 packages
There are 2 duplicated LICESE files in mtce-control, mtce-compute,
and mtce-storage. Additionally, LICENSE was not placed in the root
directory of src RPM, so this patch is made as an enhancement or fix.
After this change, license file location and code structure in all 4
modules (mtce-common, mtce-compute, mtce-storage and mtce-control)
will be the same.

Test method: make a clean build and check src RPM and binary RPM
to assure there is only one LICENSE in correct place.

Story: 2004186
Task: 27676

Change-Id: Id71a7450e8b45438c5d15976ae8e853b9ba8f4f5
Signed-off-by: Yong Hu <yong.hu@intel.com>
2018-10-30 02:55:34 +00:00
Martin Chen 50b77e7d62 Fix host check wrong in virt-support-goenabled.sh
Closes-Bug: 1798773

Change-Id: Ie62b7dfdf835ef60f9e7ba81f60dbcc517417a78
Signed-off-by: Martin Chen <haochuan.z.chen@intel.com>
2018-10-23 05:14:07 +08:00
Yong Hu 718efbcf0d 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>
2018-10-19 06:07:31 +00:00
Sun Austin fedb95ba79 Fix linters issues and enable tox/zuul linters job as gate
Fix below linters issues
 E001 Trailing Whitespace
 E003 Indent not multiple of 4
 E006 Line too long
 E011 Then keyword is not on same line as if or elif keyword
 E020 Function declaration not in format ^function name {$
 E040 Syntax error: syntax error near unexpected token `;'

ignore cases are added in tox setup
 E006 Line too long
 E010: do not on the same line as for

Story: 2003368
Task: 24427

Change-Id: I6acf64271a4e608be8bc8fa965cac4fa31e0c05b
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-09-05 09:02:25 +08:00
Scott Little 89dd36625e Rename mwa-* subdirectories to match the git repo name
mwa-delphia -> stx-clients
mwa-pitta   -> stx-config
mwa-cleo    -> stx-fault
mwa-gplv2   -> stx-gplv2
mwa-gplv3   -> stx-gplv3
mwa-solon   -> stx-ha
mwa-sparta  -> stx-integ
mwa-beas    -> stx-metal
mwa-thales  -> stx-nfv
mwa-chilon  -> stx-update
mwa-perian  -> stx-upstream

Depends-On: https://review.openstack.org/579954
Depends-On: https://review.openstack.org/579957
Change-Id: I269a4e79425a41709381f8894456d21233463e9f
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-07-03 16:29:24 -04:00
Dean Troyer 18922761a6 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:36:43 -07:00