Commit Graph

56 Commits

Author SHA1 Message Date
Andreas Jaeger 08db3ad05f Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I37b6a82c9c3c3893bb4b9b6a4c4b5a83a6d8193c
2019-12-18 09:50:01 +01:00
Jenkins d6596c8a25 Merge "Ignore slaves on "empty" snapshot" 2017-04-10 08:14:14 +00:00
Dmitry Belyaninov eeee1e1ffd Devops client for fuelweb
We should use Devops client for access to env.
Also some deprecated functions were replaced.

Change-Id: If50a8288d96106525944d3849d9e0e067e511a79
2017-03-21 07:19:00 +00:00
Dmitry Belyaninov a3a64c4a1a Ignore slaves on "empty" snapshot
We should not wait slaves
during revert "empty" snapshot

Change-Id: I686a9a4ad0afacc6520a3f58daa14e6e612c82c3
Closes-Bug: 1581268
2017-02-16 10:10:27 +00:00
Vladimir Khlyunev cb6e23feb1 Remove workaround for LP1526544
The issue was fixed and now magic bash code is not required anymore.

Change-Id: I336d471cb5545009165ff696c501f6f80c658115
2016-11-21 12:33:32 +03:00
Maksym Strukov 56e6b2b7cd Test public API
Add two tests with the following steps:

Deploy environment with enabled DMZ network for API.

        Scenario:
            1. Revert snapshot with ready master node
            2. Create new environment
            3. Run network verification
            4. Deploy the environment
            5. Run network verification
            6. Run OSTF
            7. Reboot cluster nodes
            8. Run OSTF
            9. Create environment snapshot deploy_env_with_public_api

Check that security rules are properly applied for DMZ network

        Scenario:
            1. Revert snapshot from previous test
            2. Run instance
            3. Try to access horizon from instance
            4. Remove instance

Implements: blueprint test-separate-public-floating
Change-Id: I70474b5cab324aa4f4a042127d4e6961c95010bf
2016-09-14 21:39:05 +03:00
Artem Grechanichenko 5ba504ac03 Change yaml_load_template to get_devops_config
If we using default_devops_templates we should use relative path
and get_devops_config function help's with this

Change-Id: I2bfc9ddaaa28d416c26a7cd659ee117fe9f124f9
2016-09-01 16:04:00 +03:00
Artem Grechanichenko 5131f50b5b Fix for correct work of disabling mos-updates|security repos
Fix for correct work of disabling mos-updates|security repos if
PATCHING_DISABLE_UPDATES=True for fuel-qa/master branch

Change-Id: Ie39caa26d93c49fcf78a134253dddb125acf621c
2016-08-30 10:08:07 +00:00
Artem Grechanichenko 8d3b5e3de9 Add devops_template for each test in fuel_library and puppet-openstack mapping
Closes-Bug: #1614546
Change-Id: Ifaacf0fab80de26a55d2ba1cfe5afeb6867766c1
2016-08-22 08:25:18 +00:00
Alexey Stepanov 69c58a53ba OS Upgrade tests: separate helpers
1. test_os_upgrade is moved under test_os_upgrade
2. main code is moved to separate place for excluding copy-paste
  in new tests.
3. Fixed logging due to unreadable output
4. Switch to check_call -> remove pain of cherry-picking
5. Use octane-cleanup

Closes-bug: #1612236
Change-Id: Ida7f5901f070a9ef507ce6027fd2618b8617d89f
(cherry picked from commit a9f7dd2)
2016-08-17 11:59:09 +03:00
Jenkins 071551c7f6 Merge "Refactoring of setup_master method, get_setup method, setup_master action" 2016-07-22 08:36:50 +00:00
Artem Grechanichenko 63ee810635 Refactoring of setup_master method, get_setup method, setup_master action
Change-Id: Ib6bc673345f4337c11a7af45f58c217fe0272c39
Related-Bug: #1604410
2016-07-20 14:52:56 +00:00
Sergey Novikov f40e41a658 Enable uploading of custom fuel settings yaml file
Closes-Bug: #1603429

Change-Id: I6e775a04d550c061cd903408f9073fcb628e04cf
2016-07-20 12:59:50 +03:00
Vladimir Khlyunev 67d4b4f2bf Use fuel-devops's method in reinstallation of master node
Now in latest devops it's possible to insert cdrom tray without
virsh magic - now it's time to remove it.

Change-Id: I762cc449c4715e360d794beec872b1fd79273215
Depends-On:I90b4d4884914e0a5be914c1429dffef33a33e922
2016-07-13 08:54:09 +00:00
Jenkins aeceb10d07 Merge "Add option to setup centos master node in get_ready_setup method" 2016-07-01 12:19:11 +00:00
Artem Grechanichenko 60246f9cd9 Add option to setup centos master node in get_ready_setup method
1) Need to use fuel-devops >=3.0.0
2) Need to use centos_master.yaml devops template
3) export CENTOS_MASTER=True environment variable
4) provide path to CENTOS_CLOUD_IMAGE_PATH, FUEL_RELEASE_PATH and
EXTRA_DEB_REPOS

Change-Id: I1542c2238abc364713f02e4bca6ec7646883bf78
Closes-Bug: #1592419
2016-06-30 15:01:53 +03:00
Artem Panchenko 866e73083d Add a test for all available slave nodes bootstrap
This test is useful for preparing baremetal environment
for further manual testing.

Related blueprint run-fuel-qa-on-baremetal
Change-Id: Id3002ffc147e284a5d349d13b43d9a741d7fce04
2016-06-09 18:21:26 +03:00
Volodymyr Shypyguzov 609b7d071b Refactor usage of template for detach-haproxy tests
In case SEPARATE_SERVICE_HAPROXY_PLUGIN_PATH is set without
MULTIPLE_NETWORKS we got local variable 'load_yaml' referenced before assignment
Since this variable is added for all plugin tests it breaks them

Partial-bug: 1589914
Change-Id: I8e2dc6f6074db6c3d45d73a102b5d9f9e9671f25
2016-06-07 13:56:31 +03:00
asledzinskiy 7a5970fa64 Add test with detached haproxy role
- Add test with external load balancer. Controllers are
from different racks and haproxy is from rack-3
- Separate devops config with appropriate networks
assigned to nodes is used
- Local repos for cluster are used because public networks
are routed without internet connection
- OSTF isn't running because it's not implied to use
separate haproxy

Closes-Bug: #1583530

Change-Id: I0d3647c8eb13159c27e64ddf5925467f451b610c
2016-05-26 17:51:42 +03:00
Alexey Stepanov 704e9333f2 Temporary move import from global imports
Fix cyclic import fuelweb_test <-> system_test
Closes-bug: #1584003

Change-Id: I9ff6b12296f9badd5e5da39caf4584cf7cfce531
2016-05-20 13:54:32 +03:00
zatserklyany d8f7b0d221 Add tests for multipath devices
SSHManager.update_connection: add possibility to open new connection with
parameters, if no connection presents.

This testgroup should be run with this parameters:

    export MULTIPATH=True
    export SLAVE_MULTIPATH_DISKS_COUNT=2
    export MULTIPATH_TEMPLATE=system_test/tests_templates/tests_configs/multipath_3_nodes.yaml

Implements: blueprint test-multipath-devices

Change-Id: I73ffc4338b59c8b44eabe27b2d759b7fbbba19a4
2016-05-11 11:36:44 +03:00
Artem Grechanichenko fa522254a4 template-based test for fuel installation on Centos node
Add test for testing Separate master node deployment
on pre-provisioned Centos 7 server

Change-Id: I9b9d40a59d24f579502a38dfc9b8c142bc219a06
Closes-Bug: #1575650
2016-05-04 09:57:31 +03:00
Jenkins c9e6490bf2 Merge "Refactor Setup_environment" 2016-04-29 11:25:18 +00:00
Artem Grechanichenko 168033a0d5 Refactor Setup_environment
Move some actions executing after master node boostrapping to
TestBasics action to using them in separate_master node deployment

Implements blueprint: fuelwebclient-refactoring

Change-Id: Idb8954c71861840124a805e8982a2fe63c94376f
2016-04-29 07:46:35 +00:00
Maksym Strukov 75c35894a2 Updating SkipTest() with error messages
Change-Id: I1d11bd25f9d40c2f9289bd4c68f00aca04ff4733
Closes-Bug: #1515601
2016-04-28 12:54:59 +03:00
Vladimir Kuklin 34d1ac7fec Use correct pcs resource name for rabbitmq-server resource
1) introduce additional pacemaker helper to get correct resource
name for multi-state resources
2) alter strength tests to use the correct name

Change-Id: Ibe97e2d7cadf475354e1ed77b41deff6faf68151
Closes-bug: #1551708
2016-03-22 14:38:52 +03:00
Alexandr Kostrikov 2bbb9b9399 First step flushes line order
Guess that step '1' is first
to avoid printing initialize=True everywhere.

Change-Id: I4eb6252c835690c41789c868ed4229d5e3216adb
Closes-bug: #1549238
2016-03-15 15:16:00 +03:00
Artem Panchenko 8c90c09d3f Fix incorrect import in multirack tests
Change-Id: I268cb3186474bdec3ca33ad1f877a1a62e581d38
Closes-bug: #1551657
2016-03-01 12:23:34 +02:00
Maksim Strukov 41405c6415 Deploy multirack environment with shared networks
Refactor tests for multiple cluster networks feature so
all tests use fuel-devops environment which has 3 nodegroups,
shared L2 network and it's defined using template. Also allow
tests to configure networks for more than 1 custom nodegroup.
Add aditional check for shared storage network (Ceph health).
Create new test case for adding new nodegroup to operational
environment.

Co-Authored-By: Artem Panchenko <apanchenko@mirantis.com>

Closes-Bug: #1521316
Implements blueprint test-nodegroup-add
Implements blueprint test-nodegroups-share-networks
Change-Id: I066248a7b96a6f16b1e24763892234fe48803983
2016-01-17 14:44:43 +02:00
Alexey Stepanov 4a4e9f3baf Fix incorrect expected step at test start
Change-Id: Ibca1716cc2f86ffbd3a448162802b2c890fc7ff9
Closes-bug: #1527123
2015-12-25 18:05:43 +03:00
Dennis Dmitriev 563df4edd9 Don't initialize models while building test plan
- move self.env from attribute to a property in TestBasic class.
- save devops template to TestBasic attribute in order to
  prevent environment model initialization without config

Change-Id: Ifd3ae4db66f37992ff8f956491882915f8fc1ec3
Closes-Bug:#1528491
2015-12-24 00:36:53 +02:00
Artem Panchenko 7e4be4fac9 Revert "Test for postdeploy plugin install and enable."
This reverts commit 04693990cb.

Change-Id: I367076c393e4a7cb356c66624d4402aa4d646f3d
Closes-bug: #1528858
2015-12-23 13:52:23 +00:00
Alexey Stepanov 04693990cb Test for postdeploy plugin install and enable.
Related-bug: #1519050
Related-bug: #1518305
Closes-bug: #1527123

Change-Id: I54418e328049e5a885cad783a3c3941996334005
2015-12-22 10:52:15 +03:00
vgorin 3cb2275954 Introduction of new method of SSH connection
- Create Singletone to use it as metaclass in ssh_manager.
  Singleton provides us posibility of having only one instance of class.
- Create SSHManagaer, wich will manage SSH connections by itself.
  Almost SSHClient methods was duplicated in SSHManager.
  Now it used so:
    SSHManager().method(node_ip, *parameters)
  We will not get back SSHClient, we will just say 'Do IT on NODE with this PARAM'
  e.g SSHManager().execute_on_remote('127.0.0.1', 'bash_command')
- Use ssh_manager in cli_cluster_deletion test

Change-Id: I307d7d71e814b67d20cc0b4648cf6a7dac4a7829
Closes-Bug: #1503210
2015-12-15 22:32:09 +03:00
Jenkins 271d5ed878 Merge "Add order check in fuel log_step." 2015-12-08 11:05:09 +00:00
Alexandr Kostrikov 1dadcd0e5e Add order check in fuel log_step.
The ordering is meaningfull and can mislead in log investigation.
Simple counter added.

Change-Id: I3c2ace4bc0f6d0722a40a0a32086c83f96b7494d
Closes-bug: #1515610
2015-12-07 16:53:22 +03:00
eprohoda c8ae05294d Update class names from lowercase to CamelCase
Closes-Bug: #1515962
Change-Id: I72b7fb005b37fcf0f81d109230ece8699e681b91
2015-11-19 13:06:57 +00:00
Alexander Kurenyshev 7ce54c7d16 Refactor configuring cluster network settings
Change default values for networking accordingly
to the existing networks
Apply defaults for new created cluster instead of
reconfiguring all networks

Change-Id: I3eb3c6bdd9128c4e35741884daf0793714ce3b7c
Closes-Bug: 1476185
Co-Authored-By: Vladimir Khlyunev <vkhlyunev@mirantis.com>
2015-10-29 16:42:49 +03:00
Dmitry Tyzhnenko fdcff1cba3 Template based tests with yaml configs
Rework fuleweb_test framworks for automation generating TestCase

put yaml confs into fuelweb_test/system_tests_templates
define Case in fuelweb_test/actions_tests
proboscis generate group of test for each case and config

For sen new test plans use Jenkins script.
    for all matrix:
        sh -x "utils/jenkins/system_tests.sh" -L -j $JOB_NAME \
            -t test -w "$WORKSPACE" -i $ISO_PATH \
            -o --group=system_test \
            -o --show-plan -k -K

    for some case and all configuration:
        sh -x "utils/jenkins/system_tests.sh" -L -j $JOB_NAME \
            -t test -w "$WORKSPACE" -i $ISO_PATH \
            -o --group=system_test.create_deploy_ostf \
            -o --show-plan -k -K

    for some case and some config
        sh -x "utils/jenkins/system_tests.sh" -L -j $JOB_NAME \
            -t test -w "$WORKSPACE" -i $ISO_PATH \
            -o --group=system_test.create_deploy_ostf.1ctrl_1comp_1cinder_neutronVLAN \
            -o --show-plan -k -K

    for run all destroy controllers failover cases
        sh -x "utils/jenkins/system_tests.sh" -L -j $JOB_NAME \
            -t test -w "$WORKSPACE" -i $ISO_PATH \
            -o --group=system_test.failover.destroy_controllers.3ctrl_2comp_1cndr_neutronVLAN \
            -o --show-plan -k -K

Change-Id: I81eeb0df84a0f373be029f20ec6c53e8d3596596
Implements blueprint template-based-testcases
2015-10-07 17:23:03 +03:00
Artem Panchenko 96fb2bfb05 Use 'wait_for_external_config' for customizations
The following CRs provide new mechanism for customizations
setup before master node bootstrap:

https://review.openstack.org/#/c/214749/
https://review.openstack.org/#/c/225132/

This patch adjusts system tests to use 'wait_for_external_config'
kernel parameter for customization of master node setup.

Change-Id: Ie89f544b9747255f7a4e75d42367a629fada8dfd
Related-bug: #1485626
2015-09-21 15:19:03 +03:00
Artem Panchenko 4d2ea49519 Test adding nodes to cloud with network template
Cover case with adding nodes to operational environment
which uses networking template. It should be possible
to update network template after deployment in order to
specify nics mapping for new nodes.

Related blueprint templates-for-networking
Related-bug: #1493391

Change-Id: Ib4d13b31b4b92a30d2dc86ae78c2447522edf415
2015-09-10 01:49:57 +03:00
Dennis Dmitriev dfb6354b3c Refactor nova-network cases to neutron
- use neutron in tests migrate_vm_backed_with_ceph and
  check_ceph_partitions_after_reboot
- add primitives for requesting OVS database
- add showing "steps" from docstring into test cases
- refactor fuel master backup/restore helper methods

Change-Id: I0c9727eb7f2f4067f615386790b12fb0220c548c
Closes-Bug:#1484155
Closes-Bug:#1483767
Related-Bug:#1485954
2015-08-21 16:41:20 +03:00
Dennis Dmitriev ba29888902 Add REPLACE_DEFAULT_REPOS_ONLY_ONCE variable to manage repos list
export REPLACE_DEFAULT_REPOS_ONLY_ONCE=true
 - Along with REPLACE_DEFAULT_REPOS=true , enables replacing default
   repositories only when Fuel admin node has been installed

export REPLACE_DEFAULT_REPOS_ONLY_ONCE=false
 - Along with REPLACE_DEFAULT_REPOS=true , enables replacing default
   repositories only before a new cluster is created by tests.

export REPLACE_DEFAULT_REPOS=false
 - Disables replacing repositories, Nailgun keeps it's defaults.

Change-Id: Ief45650580cdd897bb785f286d850d27baf06adc
Closes-Bug:#1484137
2015-08-13 17:48:17 +03:00
Dennis Dmitriev 481fde2f8e Add testcase for 'fuel-createmirror' to thread_2
- Add testcase 'deploy_multiple_services_local_mirror', where
  added more services to check more package dependencies during
  deploy;
- Move replacing of default repositories from 'empty' to 'ready'
  snapshot, to have a clear Fuel admin node with defaults in 'empty'
- Add a new test group 'prepare_release' that can be used instead
  of 'setup' to get Fuel admin node with customized settings;
- Remove excess calls for replace repositories from create_cluster()

Change-Id: Iace5351df4f5cb1a3e0c56dade96fd1a2dd7de24
Closes-Bug:#1463793
2015-07-27 15:37:40 +03:00
Dmitry Tyzhnenko 5cab3281d9 Remove mentions about RedHat from system tests
Clear settings and test files when we use condition for
    rhel release

Change-Id: I712b090c9e587b2f07150918389f1fc260c60eda
Closes-bug: #1456552
2015-07-17 15:02:49 +03:00
Dennis Dmitriev 78d09b20eb Split bootstrap of 9 slaves into two stages
Bootstrapping 9 slaves at one time reqires a lot of CPU power
(>=10 real CPU cores), so it is better to bootstrap nodes in
two stages to avoid timeouts and libvirt network failures.

Change-Id: I7b3a3ceba4859b6ce4a3af95dbbeba040abd8fff
Closes-Bug:#1455539
2015-05-20 15:56:43 +03:00
Dennis Dmitriev d93e07e4e5 Always create diagnostic snapshot atfer test.
- add a new environment variable:
    ALWAYS_CREATE_DIAGNOSTIC_SNAPSHOT, default = 'true'.

- move code that resume environment into a separate method.

- rename @log_snapshot_on_error to @log_snapshot_after_test

Change-Id: I5902899ba4c8557b7233e9bf576debc2197ca9e2
Closes-Bug:#1452672
2015-05-13 15:43:56 +03:00
Dennis Dmitriev 4d2d69713c Fix issue with multiple testcase invocation
Move method setup_with_custom_manifests() to SetupEnvironment.

Change-Id: I9b7ccb7e26c0ec54fc52962ee2711263e76b0368
Closes-Bug:#1452311
2015-05-06 18:10:34 +03:00
Dennis Dmitriev 747b6e90a1 Add extra Centos repos, set new repos as default for new clusters.
- New options:
EXTRA_RPM_REPOS='name1,url2|name2,url2|...'
EXTRA_RPM_REPOS_PRIORITY=20

REPLACE_DEFAULT_REPOS='true' * Set all provided repositories from
* MIRROR_UBUNTU, EXTRA_DEB_REPOS and EXTRA_RPM_REPOS, as default.

- New methods:
fuel_web.add_local_ubuntu_mirror(cluster_id)
fuel_web.add_local_centos_mirror(cluster_id)
* Add a local directory (inside /var/www/nailgun) as an additional
  repository for Ubuntu or Centos.

Change-Id: I57531c835f35cb3d788e6bee6ad9d4129ac16004
2015-04-09 15:10:04 +03:00
Jenkins f454ccf5c1 Merge "Skip redundant time syncs during prepare environment" 2015-03-31 18:45:05 +00:00