Commit Graph

16 Commits

Author SHA1 Message Date
Teresa Ho 658df6e2f3 Remove the use of the mgmt_ip field in host table
This commit to remove the usage of the mgmt_ip in the host table in
favor of either controller FQDN for AIO-SX or the management address
configured in the address table.

Test Plan:
PASS: AIO-SX and AIO-DX virtualbox installation IPv4/IPv6
PASS: Standard virtualbox installation IPv6
PASS: DC virtualbox installation IPv4 ( AIO-SX/DX subclouds )
PASS: AIO-SX and AIO-DX installation IPv4/IPv6
PASS: AIO-DX plus installation IPv6
PASS: DC IPv6 and subcloud AIO-SX
PASS: AIO-DX host-swact
PASS: DC IPv4 virtualbox with subcloud AIO-DX and AIO-DX
PASS: AIO-SX to AIO-DX migration
PASS: netstat -tupl ( no services are using the MGMT IP address )
PASS: Ran sanity/regression tests
PASS: Backup and Restore for AIO-SX/AIO-DX  / DC subcloud AIO-SX
PASS: Add and unlock worker node on a deployed standard system

Story: 2010722
Task: 48567
Depends-on: https://review.opendev.org/c/starlingx/config/+/886208

Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
Change-Id: Id2a79ee291b4f706611ebd8eeceaed31e6ca5aa5
2023-11-01 10:30:21 -04:00
Luis Sampaio c89f11529e 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.

Test Plan:
  PASS: build-pkgs -p config-gate
  PASS: build-pkgs -p controllerconfig
  PASS: build-pkgs -p storageconfig
  PASS: build-pkgs -p cert-alarm
  PASS: build-pkgs -p cert-mon
  PASS: build-pkgs -p cgts-client
  PASS: build-pkgs -p sysinv-agent
  PASS: build-pkgs -p sysinv
  PASS: build-pkgs -p tsconfig
  PASS: build-pkgs -p workerconfig

Story: 2010550
Task: 47305
Signed-off-by: Luis Sampaio <luis.sampaio@windriver.com>
Change-Id: I50ac37d06740cc096711c136ad815dcdf54528bf
2023-02-10 20:11:06 +00:00
Hediberto Cavalcante da Silva 8dc78a52c1 Add storageconfig.service file
This service file is required by CentOs to build
the storageconfig package.

Test Plan:
PASS: build storageconfig package

Closes-bug: 1992803

Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com>
Change-Id: If1e4bd0050d8c971f98ec297971484a922644b34
2022-10-13 10:27:23 -04:00
Hediberto Cavalcante da Silva feb258db57 Debian: Reorganize storage config package
This work:
- is part of Debian integration effort.
- affect Debian only
- will allow puppet manifests to be applied on storage node at
unlock/reboot time.

This specific commit:
- allows controllerconfig, workerconfig-standalone and storageconfig
  packages to coexist on the same iso by letting files be selected
  at runtime
- lets storageconfig service be installed by systemd

Test Plan on Debian:
PASS: controllers unlocked on AIO-SX, AIO-DX, Standard & Storage
PASS: workers unlocked on Standard & Storage
PASS: storages unlocked on Storage
PASS: storageconfig started puppet manifest apply on storage nodes
PASS: controllerconfig is running on controller node on AIO-SX,
      AIO-DX, Standard & Storage
PASS: workerconfig is not running on controller and storage nodes
      on AIO-SX, AIO-DX, Standard & Storage
PASS: storageconfig is not running on controller and worker nodes
      on AIO-SX, AIO-DX, Standard & Storage
PASS: workerconfig is running on worker node Standard & Storage

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

Story: 2010211
Task: 46506

Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com>
Change-Id: I83dde1cf406217e483f05f5504659930612edf70
2022-10-05 16:18:49 -04:00
Fabricio Henrique Ramos 9b63492468 Add debian packaging directory for storageconfig
Add debian packaging directory to build storageconfig for Debian OS.

Story: 2009101
Task: 43024

Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
Change-Id: Ifc6e03cd631d346aef210a4d0a2bcd283989dca8
2021-10-18 10:05:38 -03:00
Don Penney 320cc40de8 Add auto-versioning to starlingx/config packages
This update makes use of the PKG_GITREVCOUNT variable to auto-version
the packages in this repo.

Change-Id: I3a2c8caeb4b4647608978b1f2ccfcf0661508803
Depends-On: https://review.opendev.org/727837
Story: 2006166
Task: 39766
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-05-20 14:11:21 +00:00
Saul Wold 9bdfbe8942 Update opensuse RPM spec-file version to 1.0.0
Standardize the version numbering to X.Y.Z

Story: 2006623
Task: 37134
Change-Id: I13b320ed57840064e2bca3cdf8aa7f2f2b1534c8
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-10-16 14:54:29 -07:00
Saul Wold 7a5b6e9555 Add rpmlintrc for openSUSE Build System (OBS)
These files will be extracted by the _service file that is managed
by OBS.

These do not affect the CentOS build

Story: 2006723
Task: 37133
Change-Id: Iec8329ca2c7d6442cd41436c291eae79326052fb
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-10-15 07:57:15 -07:00
Zuul 8beb03ba8d Merge "Add spec & change files for openSUSE" 2019-09-18 13:28:58 +00:00
Saul Wold 966052d159 Add spec & change files for openSUSE
These will be used with the Open Build Service (OBS) an _service
will be used to automagically generate the tarball.

OBS is a generic system to build and distribute binary packages from
sources [0], StarlingX OBS Project:
- Cloud:starlingx:2.0 [1]

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

Story: 2006508
Task: 36650
Task: 36651
Task: 36652
Task: 36653
Change-Id: Ie59e8403a6f3173a678f5fd1cd5cf03df4a7e961
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-09-17 13:04:55 -07:00
Saul Wold f321224070 Fix up storage_config script for rpmlint failures
rpmlint reports the following errors:
[    5s] E: File storage_config is missing Required-Start, please add even if empty!
[    5s] W: File storage_config is missing Required-Stop, please add even if empty!
[    5s] ERROR: found one or more broken init or boot scripts, please fix them.
[    5s]        For more information about LSB headers please read the manual
[    5s]        page of of insserv by executing the command man 8 insserv.

Story: 2006564
Task: 36662
Change-Id: Iae36bd373b513af72e5d7e736adf68a5a80a7011
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-09-17 11:33:44 -07:00
Erich Cordoba 05a26e9061 Add notices on Intel authored files.
Story: 2005265
Task: 30083

Change-Id: Ibcae6539747beb9d641e7d5eef4c4ff7574a8b13
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-03-20 10:03:44 -06:00
Tao Liu 0b4f304be9 Configurable Host HTTP/HTTPS Port Binding
In order to avoid conflicts with containerized services
binding to standard HTTP (80) / HTTPS (443) port numbers,
the default port numbers are changed to 8080 and 8443.
Furthermore, CLI commands are provided to allow binding
to alternate port numbers.

List of changes:
. Add service parameters for HTTP and HTTPS port
. Configure the lighttpd ports via puppet and use port
  8008 for platform horizon
. Add http port to platform.conf for the config scripts
. Support helm repo URL update
. Add helm-toolkit plugin for location override
. Override Armada manifest location
. Add installer base URL option to pxeboot-update
  script
. Add a patching run time class to restart patch-agent
  when the port config is changed
. Add a semantic check to block port config when a
  patching operation is in progress or a host is not
  in unlocked/enabled state

CLI commands for viewing and updating port numbers are:
system service-parameter-list --service http
system service-parameter-modify lighttpd port http=8090
system service-parameter-apply  lighttpd

Tests Performed:
Non-containerized deployment installation and sanity
AIO-DX: Sanity and Nightly automated test suite
2+2 System: Sanity and Nightly automated test suite
2+4+6 System: Sanity and Nightly automated test suite

Kubernetes deployment on VBox:
AIO-SX: application apply and launch instance
AIO-DX: application apply and launch instance
2+2 System: application apply and launch instance

HTTP/HTTPS port configuration
Enable/Disable https

Story: 2004642
Task: 28592

Change-Id: I65029e0c15aaf626acb56ab71e7bbde64c7e76a8
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-02-06 12:47:00 -06:00
Erich Cordoba 35e13285de Create makefile for storageconfig
Story: 2004043
Task: 27547

Change-Id: I014f62fcb0a888da0c42e737c4512d5f9604ad3d
Signed-off-by: erich <erich.cordoba.malibran@intel.com>
2019-01-31 13:40:46 -06:00
SidneyAn 47ac546217 Fixing linters errors E010, E011, E020, E041,E043, E003, E001,E042
Listed below are the errors which were fixed as well as the actions
    taken to fix them:
    E010: do not on the same line as for
    --> let do and for in the same line
    E011: then not on the same line as if or elif
    --> let then and if or elif in the same line
    E020: Function declaration not in format ^function name {$
    --> fix the format to suit ^function name {$
    E041: Usage of $[ for arithmetic is deprecated for $((
    --> fix from $[ to $((
    E043: arithmetic compound has inconsistent return semantics
    --> do not use +=, ++, -=, --; use value=value+?  instead.
    E001: check that lines do not end with trailing whitespace
    --> delete trailing whitespace
    E003: ensure all indents are a multiple of 4 spaces
    --> add/delete spaces
    E042: local declaration hides errors
    --> let declaration and assignment in two lines.

    Listed below are test cases done which run one controller
    and one compute in KVMs
    Test-Install      ----  success

Related: https://review.openstack.org/#/c/600663/
         https://review.openstack.org/#/c/601221/

Story: 2003360
Task: 26213

Change-Id: I3ece37db3a326ea58bd344f43beefcbbbd4f0ad4
Signed-off-by: SidneyAn <ran1.an@intel.com>
2018-09-11 21:47:40 +08:00
Dean Troyer 9b95aa0a35 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:35:52 -07:00