Commit Graph

162 Commits

Author SHA1 Message Date
Scott Little cf200be48d cengn reference removal
mirror.starlingx.cengn.ca no longer exists. CENGN is kindly forwarding
requests to the new location mirror.starlingx.windriver.com for now, but
that will only last a few months. We need to replace all the references
with the new URL.

I will also remove as many 'cengn' references as possible, replacing
them with 'stx_mirror'

Partial-Bug: 2033555
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: If6a3c0d4e9e540f941f5e5e395c35975107216d7
2023-09-14 10:52:04 -04:00
Scott Little 12494275f6 doc: Fix Zuul/tox failures
This commit resolves the Zuul/tox failures encountered when running
sphinx to generate documentation, which in turn prevents merging
changes that are otherwise fine:

The issue is related to a Sphinx update that requires the language
parameter to be specified:
      https://github.com/sphinx-doc/sphinx/issues/10062
      https://github.com/sphinx-doc/sphinx/issues/10474

Partial-Bug: 1976377
Partial-Bug: 2033431
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: Ifa3d4638955ddd2ff9f2acd9225657c16958a03a
2023-09-14 10:50:03 -04:00
Davlet Panech 6843a76513 Fix github mirroring for this repo
Updating the rsa ssh host key based on:
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

Note: In the future, StarlingX should have a zuul job and
secret setup for all repos so we do not need to do this
for every repo.

Needed to rename the secret, because zuul fails if like-named
secrets have diffent values in different branches of the same
repo.

Partial-Bug: #2015246
Change-Id: I35d1bef12070ae0c1faa4b9dd41a1b90aa179acc
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-04-28 12:38:53 -04:00
Al Bailey 43fd914274 Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Fix pylint zuul failures
This removes some invalid config entries, and suppresses some
additional checks.

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I96951a2c8eef3f45e5bfa08e705e03b5e8b77947
2023-02-06 16:54:16 +00:00
Zuul 5dbacb19f7 Merge "Fix the case when a test trying to reboot active controller fails because stx-openstack is not applied" 2022-01-14 14:00:04 +00:00
Zuul ae0891cb2d Merge "Modified the env using pytest==3.6.1 and pyyaml==5.4.1" 2022-01-14 14:00:02 +00:00
Zuul ccd8b45d4d Merge "Revert "Update unlock on compute nodes"" 2022-01-14 13:59:48 +00:00
Alexandru f045686fa1 Fix the case when a test trying to reboot active controller fails because stx-openstack is not applied
Description: The test_reboot_active_controller fails because the stx-openstack is not applied:
...RegionOne host-swact controller-1' failed to execute. Output: Swact action not allowed. stx-openstack apply is in progress.
During reboot of the active controller a swact should be performed which fails.

Story: N/A
Task: N/A

Signed-off-by: Alexandru <alexandru.dimofte@intel.com>
Change-Id: I363a8328159d5ce086e05037997f7f3bdd197207
2022-01-12 21:54:55 +00:00
Alexandru f1a79060a4 Revert "Update unlock on compute nodes"
This reverts commit b5b362c759.

Description:
This commit is reverted because of LP: https://bugs.launchpad.net/starlingx/+bug/1949771
Change-Id: Ie1358776036fc6db7f22a588df8b935550e7e878
2022-01-07 09:28:22 +00:00
Alexandru 307e745974 Modified the env using pytest==3.6.1 and pyyaml==5.4.1
Description: This changes is needed in order to fix a test failure
Error msg: TypeError: load() missing 1 required positional argument: 'Loader'

Story: N/A
Task: N/A

Signed-off-by: Alexandru <alexandru.dimofte@intel.com>
Change-Id: I4b2537bbb1969bac25ac36c4fa7d1e8b889b992e
2022-01-06 16:01:31 +00:00
Bin Qian 3e6c980193 relocate /pxeboot to /var/pxeboot
Relocate writable /pxeboot dir to /var/pxeboot

Story: 2009101
Task: 22403

Depends-on: https://review.opendev.org/c/starlingx/metal/+/822008

Change-Id: Id1b095d821debfa22d8773c804271e108e323c04
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2021-12-16 13:16:56 -05:00
Zuul 18985f621c Merge "relocate /www to /var/www" 2021-12-15 21:59:35 +00:00
Felipe Desiglo Ferrare 1516b57d62 Fix pylint warnings hapening in the build process to make Zuul builds clean
Warnings Fixed:
W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
E0702: Raising str while only classes or instances are allowed (raising-bad-type)

Story: 2005892
Task: 43821

Change-Id: I2083fa4f8d994480c79ff557c56cf2f29c56c19f
Signed-off-by: Felipe Desiglo Ferrare <Felipe.DesigloFerrare@windriver.com>
2021-10-29 18:34:41 +00:00
Bin Qian 8cda3639e8 relocate /www to /var/www
Relocate writable /www to /var/www

Story: 2009101
Task: 43543
Depends-on: https://review.opendev.org/c/starlingx/metal/+/810023
Change-Id: Icf0c69acba0693d817de3a538b74740619efa3d0
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2021-10-06 11:03:19 -04:00
Alexandru 005b2d5dc2 Wait for stx-openstack applied before executing the reapply in test_host_management.py
Signed-off-by: Alexandru <alexandru.dimofte@intel.com>
Change-Id: Id9e25dec67a97538d4eebf3886ef2b0a2c3a3ec0
2021-05-17 10:27:53 +03:00
Alexandru 85e345fe08 Wait for stx-openstack applied before executing the unlock in test_host_management.py
Signed-off-by: Alexandru <alexandru.dimofte@intel.com>
Change-Id: I2e09069f5b23de46f056cf00e9bb35b21613e5f0
2021-05-13 11:04:30 +03:00
Zuul c527a66c3b Merge "add performance tests" 2021-02-23 10:47:58 +00:00
Zuul 6188ca6394 Merge "Remove community and trapdest related test cases" 2021-01-22 15:54:57 +00:00
olovaszi 02a0244145 Add test suite Host Management ported from robot framework
Added test suite Host Management

Story: 2007472
Task: 39173

Patch Set 2:
  Added no_duplex fixture in pre_checks_and_configs.py
  Added DUPLEX_SYSTEM SkipSysType in reasons.py
  Test_host_management:
    replaced prints
    added skips to tests according to configuration
    reworked test_lock_unlock_active_controller

Patch Set 3:
  imported ProjVar in test_host_management.py

Patch Set 4:
  removed unused imports
  added reboot active controller testcase
  added reboot standby controller testcase
  added reapply openstack testcase

Change-Id: I8bc27e85ce00d8b9bc4dfa1e81c3234f93164836
Signed-off-by: olovaszi <oliver.lovaszi@intel.com>
Signed-off-by: George Postolache <george.postolache@intel.com>
2021-01-18 09:34:54 +02:00
George Postolache ddc4c5dc3d add performance tests
Description:
  reasons.py:
    added duplex_system reason
  heat_helper.py:
    replaced 'is' with '=='
  host_helper.py :
    in modify_host_memory and get_host_memories converted key to str from int
    unused variables in string format
  network_helper.py:
    in add_icmp_and_tcp_rules removed "protocol" and added egress for icmp
    unused variables in string format
    replaced 'is' with '=='
  security_helper.py:
    unused variables in string format
  storage_helper.py:
    replaced 'is' with '=='
    unused variables in string format
  pytest.ini:
    added robotperformance marker
  performance:
    added performance directory containing performance tests
  fixture_resources.py:
    added missing ',' in _RESOURCE_TYPES list
  pre_checks_and_configs.py:
    added no_duplex
  telnet.py:
    replace 'NotImplemented' with 'NotImplementedError'
  parse_log.py:
    replaced 'is' with '=='

Signed-off-by: George Postolache <george.postolache@intel.com>
Change-Id: I32e84aac33102e57f4b0eb28d9aca0f6684e6b64
2021-01-13 12:02:06 +02:00
Takamasa Takenaka 8e6a55f824 Remove community and trapdest related test cases
-Remove test cases according to the host-based SNMP removal
 -Remove community related test cases
 -Remove trapdest related test cases

Story: 2008132
Task: 41393
Change-Id: I5c698fe2b9eca82971f70e4edabf16af702f4f68
Depends-On: https://review.opendev.org/765381
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
2020-12-23 08:56:42 -03:00
Yvonne Ding e74db49c91 Added distributed cloud test suites to StarlingX - part2
- test_shared_config_snmp
- test_timezone_unshared

Co-Authored-By: Yang Liu<yang.liu@windriver.com>
Co-Authored-By: Peng Peng<peng.peng@windriver.com>
Co-Authored-By: Difu Hu<difu.hu@windriver.com>

Change-Id: I65da4a0f67073e79203e1e065cbb93ce352e9950
Signed-off-by: Yvonne Ding <yvonne.ding@windriver.com>
2020-11-30 16:11:25 +00:00
Yvonne Ding 92ee9a56ec Added distributed cloud test suites to StarlingX
- test_alarm_aggregation
- test_dc_swact_host
- test_https_unshared
- test_shared_config_dns

Change-Id: I9c0528523c7321d34c60ddccebe31cb0143cc982
Signed-off-by: Yvonne Ding <yvonne.ding@windriver.com>
2020-11-17 10:06:07 -05:00
Yvonne Ding d1e88a989e Use newer flake8 to run on ubuntu-focal Zuul
flake8 2.6.2 failed on ubuntu-focal zuul machines running python3.8
with the following error:
AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'

pylint failed with following error:
ERROR: InvocationError for command /home/zuul/src/opendev.org/starlingx/test/.tox/pylint/bin/pylint
--rcfile=pylint.rc automated-p

upgrade openstackdocstheme to 2.2.1 and update sphinx version
fix releasenotes to use python3

Change-Id: Ie5e11b44a3ff9695a6ec44eaf4a53baababc27ac
Signed-off-by: Yvonne Ding <yvonne.ding@windriver.com>
2020-11-16 13:09:22 -05:00
Alexandru Dimofte 32e8a73529 Commited current changes added in Jenkins using sed command in automated robot files
Description: Currently the Jenkins groovy scripts are modifying the robot files
using sed commands in order to work preperly. That changes are now added in
robot files and will removed from Jenkins pipeline scripts.
All this delays, sleeps and other commands are needed.
Modified the test-requirements.txt file changing some versions for some components,
this will fix some issues.

Story: 2007623
Task: 39657

Change-Id: Id9c5cb56e30f764302521747d3abdb5637d633c1
Signed-off-by: Alexandru Dimofte <alexandru.dimofte@intel.com>
2020-05-15 07:23:35 +00:00
Zuul 75095b4c50 Merge "add stack to _delete_resources to enable cleanup for heat" 2020-05-14 15:38:41 +00:00
Mihail-Laurentiu Trica 4dfbb03919 Add test suite OpenStack Pod Healthy ported from robot framework
Added Sanity Platform test suite OpenStack Pod Healthy

Story: 2007472
Task: 39165

Change-Id: I55021aed1df2f1e51edc56f2a8e5e804e8ee4161
Signed-off-by: Mihail-Laurentiu Trica <mihail-laurentiu.trica@intel.com>
2020-05-14 09:08:43 +00:00
Ruediger Stock 2eb7d17e24 add stack to _delete_resources to enable cleanup for heat
Story: 2007472
Task: 39171

Change-Id: Ifbce4523340fe721d2bc65e96d05a40a19a082f7
2020-05-14 07:04:24 +00:00
George Postolache 1bfd671cee Fix pylint error for storage_helper
modified is_cepth_healthy to return both status and output

Change-Id: Iebb903bdc3d3720ae537f3f68e539a347b06693e
Signed-off-by: George Postolache <george.postolache@intel.com>
2020-05-04 11:01:11 +03:00
Jessica Castelino 9d859ef3a5 Rename the existing /opt/patch-vault filesystem to /opt/dc-vault
The filesystem /opt/patch-vault is renamed to /opt/dc-vault so that
it can be re-used to store FPGA images and software loads. Thus,
necessary changes have been made in the manual tests.

Change-Id: I095a9c90afef8af5a64d7025745a15b136a56a2f
Story: 2006740
Task: 39550
Depends-On: https://review.opendev.org/#/c/723007/
Signed-off-by: Jessica Castelino <jessica.castelino@windriver.com>
2020-04-24 17:18:06 -04:00
Zuul e8eeb686be Merge "Fix typo in wait_for_heat_status causing it to fail permanently" 2020-04-23 04:06:00 +00:00
Zuul 212be967e2 Merge "Add test suite Measurements For Metric ported from robot framework" 2020-04-23 04:05:57 +00:00
Zuul 1afe250d33 Merge "Test suite instance from snapshot port from robot" 2020-04-23 04:05:19 +00:00
Zuul ee618711b2 Merge "Adding test fault management horizon testcase for StarlingX pytest framework" 2020-04-23 04:00:16 +00:00
Cosmin Albescu 9a400d9101 Test suite instance from snapshot port from robot
- added suite test_instance_from_snapshot

Story: 2007472
Task: 39170

Change-Id: Icdaa8bcb235d7a894c9203f00a8277892b849936
Signed-off-by: Cosmin Albescu <cosmin.albescu@intel.com>
2020-04-14 06:49:37 +00:00
Mihail Trica 353eae3167 Add test suite Measurements For Metric ported from robot framework
Added test suite Measurements For Metric

Story: 2007472
Task: 39172

Change-Id: I3ad46d658164e4bd480b234668fb01fa0f849a6a
Signed-off-by: Mihail-Laurentiu Trica <mihail-laurentiu.trica@intel.com>
2020-04-14 08:47:51 +02:00
Zuul 34e56b1b71 Merge "Test suite instance from volume ported from robot framework" 2020-04-13 18:43:49 +00:00
Zuul 584db43c28 Merge "Test suite instance from image port from robot" 2020-04-13 18:42:49 +00:00
Mazumder Hrishit 0126990ea3 Adding test fault management horizon testcase for StarlingX pytest framework
Include:
-added automated test case for test fault management under horizon

Story: 2007406
Task: 39011

Change-Id: Ic45791f8558b153b6eb5f9105a69e00ea7e60c51
Author: Ankit Jain <ankit.jain@windriver.com>
Co-Authored-By: Hrishit Mazumder <hrishit.mazumder@windriver.com>
Signed-off-by: Hrishit Mazumder <hrishit.mazumder@windriver.com>
2020-04-13 10:57:42 -04:00
Zuul f1caa57362 Merge "Fix test cases related to lock/unlock of compute and storage nodes" 2020-04-06 16:09:05 +00:00
Zuul dee8a22256 Merge "Update unlock on compute nodes" 2020-04-06 16:08:28 +00:00
Zuul 95f1450d9c Merge "Add Ceph Storage backend" 2020-04-06 16:08:27 +00:00
Zuul 001989dd77 Merge "Update multinode_dedicated_storage.yaml" 2020-04-06 16:08:26 +00:00
Zuul 671fe4cffd Merge "Adjusting Host Readiness" 2020-04-06 16:08:26 +00:00
Zuul 34a8059d49 Merge "Fix simplex install on baremetal" 2020-04-06 16:08:25 +00:00
Zuul 10602110a0 Merge "Change cirros image" 2020-04-06 16:08:24 +00:00
Zuul 44244c97c3 Merge "Enable DHCP on external network subnet" 2020-04-06 16:08:23 +00:00
Ruediger Stock a07d0307e8 Fix typo in wait_for_heat_status causing it to fail permanently
Story: 2007472
Task: 39171

Change-Id: I5792e76dd35f60dea03c8ded17565b5bf4d07850
2020-04-06 07:42:38 +00:00
Zuul 31e9fe5d30 Merge "Adding keystone user password rules test for StarlingX pytest framework" 2020-04-05 02:23:49 +00:00
Lemus Contreras, Cristopher J c0c2a40db2 Fix test cases related to lock/unlock of compute and storage nodes
This commit will prevent errors when trying to do the lock/unlock
on compute and storage nodes.

Right now, operation fails for compute-0 and oftenly on storage-0
because ceph monitor is not on sync.

This commit will change the Test Cases to be executed only for
compute-1 and storage-1. It'll also avoid increasing the execution
time.

Change-Id: If5c72b1cfd6bec2f74bfeae7dfcfd91324ef16a6
Signed-off-by: George Postolache <george.postolache@intel.com>
2020-04-03 14:22:29 +03:00