Commit Graph

193 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
Sergey Novikov 094cbbaad5 Update getting of host network devices according to fuel-devops v3
Change-Id: I36c2d62e47e1977d0115695d2cc5a0431e48e2b5
Closes-Bug: 1671371
2017-03-24 12:26:54 +00:00
Jenkins d8c5b6b8b7 Merge "Improve failover of SSH connections" 2017-03-23 12:52:18 +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 6be7457eda Change time sync procedure
Devops ntp module returns deprecation warning.
So we should use DevopsClient for this purpose.

Change-Id: Ief2122cf0e531ab3a2ea87f4972b3f95b5749982
2017-03-10 16:05:26 +00:00
Sergey Novikov 45e773d9db Improve failover of SSH connections
We had invalid procedure of handling stored SSH connections
when non-root access feature was enabled. This patch fixs that
and contains the following items:
 * Use method `update_connection` when exist connection fails
 * close current connection in method `update_connection`
 * catch SSHException instead AuthenticationException

Change-Id: Id488abf5b21c3bf16f21546c5b26c16e29bc6a58
Closes-Bug: 1659747
(cherry picked from commit e4a2acfc23)
2017-03-10 10:37:13 +00:00
Sergey Otpuschennikov 0263854ed7 Add a template for security scan related devops environment
We use prepared image for create VM with security scan service

Change-Id: I9c2c383971b5e72a1414a43dcb4db8f3ad22bc78
2017-03-06 16:36:43 +04:00
Mykyta Karpin ee0bf1cfa4 Redirect update-master-node.sh stdout and stderr
SSHD stops reading of update-master-node.sh stdout
during puppet run, this causes puppet hanging on
keystone tasks. In order to avoid this we need to
redirect script's output to /dev/null.

Change-Id: I99959cb72caeec33a91358af4b58fa858b9c22c8
Closes-Bug: #1664635
2017-02-23 15:29:06 +02:00
Dmitry Belyaninov f6dbf49b7b Environment creation procedure modification
Sometimes installation of environment failed
because storage volume(s) exists already.
The issue is hard-to-reproduce. Some logging and
setting internal attribute _virt_env were added.

Change-Id: Ib49c904ca7c961617f0f328230c2658a13bfdecf
Related-Bug: 1566966
(cherry picked from commit 1b2d807336)
2017-01-27 15:51:26 +00:00
Alexandr Kostrikov 4f486061a9 Add reset of admin node after hang
The first hang can be fixed with reset.
If any other errors appear on that stage,
the error should not be tolerated.

Change-Id: I056879a89cb3cfab45852573730f0ced58043511
Closes-bug: 1587411
2016-10-26 09:19:19 +03:00
Alexey Stepanov d9d8c524ef Do not use cat for file read
Do not use cat for file read:
   it's difficult for debug operations with source data
   YAMLEditor content calls get_content() if not loaded

Change-Id: I75061c067172085de0e5fb1baa051816a4a707eb
2016-10-10 16:00:35 +03:00
Jenkins 75edbf4199 Merge "Replace deprecated constants by direct usage" 2016-09-30 11:18:14 +00:00
Alexey Stepanov 66708fc8d4 Wait for nodes really in correct status
Wait for nodes really in correct status before:
1. Timesync, if required
2. Return from bootstrap method

Change-Id: Ic7d906027154856c7aa17f47ff5e738cb531ce98
2016-09-30 09:17:36 +00:00
Alexey Stepanov 0649c4fd20 Replace deprecated constants by direct usage
self.d_env.admin_net = 'admin'
'nat_interface' = ''
This patch is reduces warnings amount during
tests run on fuel-devops 3.0.3+

Change-Id: I2bf54952bff79b9483c121a78383e136bcd2a351
2016-09-29 11:53:50 +03:00
Alexey Stepanov e6cfa06edd Fix issue, when accessible more nodes, than required to start test
validate_amount_nodes -> validate_minimal_amount_nodes
Closes-bug: #1625456

Change-Id: I4655b980efa6601df15363fd215251a8d63b78fb
2016-09-20 14:31:29 +03:00
Olivier Bourdon e624f14bcb Add code to check number of available nodes for deployment
Change-Id: I58fbf17d3bb1c0661181aa03d7a0431cf976137f
Related-Bug: 1547381
2016-09-19 13:40:06 +00:00
Alexey Stepanov 7ec0f37fa1 Move QuietLogger and logwrap to core
1. Move QuietLogger and logwrap to core
2. Fix QuietLogger (if log level was upper, than in param,
  QuietLogger ebabled additional logging instead of pass)
3. Cover by unit-tests
4. Added missed license text
5. add *.log to gitignore

Change-Id: If842791000c76852fe1dec1e66edcc081c278b2c
Blueprint: fuel-qa-join-helpers
(cherry picked from commit b7ca0ff)
2016-09-05 10:39:58 +03:00
Alexey Stepanov fee216eb0d Drop heslpers as announced previously
1. Drop empty fuelweb_test/helpers/exceptions.py
2. Drop unused anymore fuelweb_test/helpers/http.py
3. Drop execute_throw_remote, run_in_remote, run_on_remote_get_results,
execute_remote_cmd.
4. Drop unused private deserializers from SSHManager
5. Fix misprint in deprecation message

Change-Id: I56a220e49f44a4f22b2b3499acf022fef923b323
2016-09-01 08:11:04 +00:00
Vladimir Khlyunev 4151f14af9 Use new way to apply 9.x
https://review.openstack.org/#/c/346119 was merged and now
we have to switch our tests to production-style updating

Change-Id: Ifd3aabc7db24ce5e5213438992ab7eeef459cae5
Partial-bug:1616188
2016-08-30 16:47:52 +00:00
Alexey Stepanov 870fb4ff22 Create initial infrastructure for fuel-qa refactoring: .core package
Create initial unittest infrastructure:
Create root packages:
  .core
  .core._tests
Checkers (and gates):
  tox.ini: cover env
    requires:
      pytest-cov
      mock
  /core/pytest.ini
  /.coveragerc
Example changes:
  add collector client as initial target for refactor and testing
  unit tests for HTTPClient (http.py) as example

Blueprint: fuel-qa-join-helpers

Change-Id: I35207eb7bb45ec20d1b61f28be564097420c9f27
2016-08-25 19:22:23 +03:00
Alexey Stepanov ba5be62a97 SingletonMeta class is exists in fuel-devops: deprecate copy
SingletonMeta class is exists in fuel-devops: deprecate copy
all imports has been changed to devops side
Announce drop of deprecated and already unused helpers.

Change-Id: I98311de2c4fc579b8d6095bf5decd28940a00f88
(cherry picked from commit ef37f0d)
2016-08-25 10:31:06 +03:00
Jenkins 43b1474f83 Merge "Do not show fuelmenu while applying 9.x" 2016-08-16 08:33:19 +00:00
Alexey Stepanov 53ddf7380e Warn on run_on_remote, execute_remote_cmd and run_on_remote_get_results call
Warn on run_on_remote, execute_remote_cmd and  run_on_remote_get_results call
SSHManager().execute_on_remote marked as deprecated in favor of
SSHManager().check_call

Change-Id: I2615e910d294f465dd6599ae28091ab2eab2cc03
2016-08-15 10:58:54 +03:00
Vladimir Khlyunev 475754156c Do not show fuelmenu while applying 9.x
The updater script is still on development so we have to use
bootstrap_admin_node.sh. Also there is an issue in devops that
is preventing fuelmenu appearing. Lasts, we are not able to
quit from fuelmenu after it appears.

Change-Id: Ifea88dde2e7ccb045172603eed182bd8db12ba79
Related-bug:1607402
2016-08-13 14:28:45 +03:00
Vladimir Khlyunev e2806c0778 Do not fail test if bootstrap_admin_node.conf does not exists
In case of installing fuel from packages there is no
bootstrap_admin_node.conf file

Change-Id: I6cff442e3aa06a20e55215d5a6cb74a8ae198486
Closes-bug:1611757
2016-08-13 11:22:28 +00:00
Jenkins 80361961dc Merge "Revert "Add retry to the start of VM"" 2016-08-12 12:38:25 +00:00
Alexandr Kostrikov f6f62004d6 Revert "Add retry to the start of VM"
This reverts commit df51f7a040.

Change-Id: I55f8d31bcf3e08eb00a821b6a2bf2713c1982d5b
2016-08-12 11:55:54 +00:00
Jenkins ecb708a43d Merge "Add retry to the start of VM" 2016-08-10 13:49:39 +00:00
Alexandr Kostrikov df51f7a040 Add retry to the start of VM
The whole setup should be restarted
to reinitialize VM resoruces.

Change-Id: I3967c9be8aaeccf3a292a295ce180cf2b5fd64cc
Closes-bug: 1587411
2016-08-10 14:07:30 +03:00
Jenkins fc71315817 Merge "Disable "wait_for_external_config" while applying 9.x" 2016-08-09 12:05:49 +00:00
Vladimir Khlyunev cb15bdfd2f Always sync time for master node after revert
During migration to keystone shared session we gon an issue when
time on master node was changed (during ntp sync). This issue reproduces only
for the first connection after time sync.

Change-Id: I2f203b8a1957b70389e76f9fa99459b1365b242f
Related-bug:1606887
2016-08-05 11:03:02 +00:00
Vladimir Khlyunev 54dfee94d7 Disable "wait_for_external_config" while applying 9.x
Right now 9.x deployment contains 50min timeout created for astute.yaml
modifications but it useless and consumes time when we want to apply
9.x over 9.0 via bootsrtap_admin_node.sh
Updater script https://review.openstack.org/346119 without this timeout
is under development. We can save about 1h of deployment with this
temporary solution before the updater script will be released.

Change-Id: Icd2b9906c3c3195970f858a4164920b959616352
2016-08-04 10:27:08 +03:00
Alexey Stepanov 754b0230d9 Prepare for fuel-devops 2.9.22 API changes
Use intermediate layers while test adoptation in process.
Mark as deprecated methods, which is completely covered by
devops implementation.

Change-Id: I4cb87cc1d5f7184cd5400a5f03358068e528d93a
2016-07-31 20:25:05 +03:00
Alexey Stepanov db27cd6407 Fix usage of inaccessible SSHClient APIs
['stdout_str'] and ['stderr_str'] is accessible
on all SSHClient output (except async) only starting
from 2.9.22 and currently we using 2.9.21
Solution: roll-back part of changes from review 344612

Change-Id: I2ab955dd42a5b5db102236c7468f029bd89e3bc6
2016-07-29 21:23:23 +03:00
Vladimir Khlyunev ee92232243 Update fuel-client's config file with new password
Change-Id: I331f232e7dd55d704db67d6eb14683515beba4ae
Closes-bug:1605623
2016-07-27 09:25:11 +00:00
Alexey Stepanov 3dfc8b66b0 Replace deprecated methods by it's successors
Replace deprecated methods by it's successors
Drop stdout_len and stderr_len as useless and unused

Change-Id: I558e864240c9d8bed7e9acd4dd1406c33d066800
Closes-bug: #1604688
2016-07-22 16:39:45 +03:00
Alexander Kurenyshev 41c2818c0d Patch adds yum logging to the updates code
Previously fix was added to the decorator.
This one will cover updates section

Change-Id: I79495b19d341023a5f5067379d3ead2a5b8d3075
Related-Bug:1585194
2016-07-22 09:23:09 +03: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
Alexey Stepanov 6952a01a16 Reduce log level during revert snapshot fuelweb.client.get_releases waiting
Reduce log level during revert snapshot
  fuelweb.client.get_releases waiting:
    Set logging.CRITICAL for stdout due to @logwrap on method

Replace deprecated method callse by actual new in environment.py:
  _wait -> wait_pass
  _tcp_ping -> tcp_ping_

Closes-bug: #1602236
Change-Id: Ic59c4cb5a29285b19f4143a4280ea04e9093a28c
2016-07-18 13:10:57 +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
Anton Studenov ef2ace7f65 Add timeout_msg values in fuelweb_test and system_test
- added waiters for node status
- removed redundant try/except/assert

Related blueprint: fuel-qa-failure-reason-grouping
Change-Id: I06ccac42856712d1f9afe64402d34aeba3c07af6
2016-07-11 15:14:36 +03:00
Alexey Stepanov 92006f3204 Replace custom HTTPClient by standard keystoneauth1 session
1. Use keystoneauth1 for making session
2. Nailgun/OSTF client uses keystoneauth1 session
3. Drop HTTPClient
4. Support NailgunClient construction by providing session
5. Requests has on-demand authorization and re-authorization
    by keystoneauth1.

Pros:
* interface unification, after implementation of bugfix fr 1581024
  we could transparently switch the most methods
  from our implmentation to python-fuelclient implementation.
* Less decorators magic (@jsonparse is not required)

Blueprint: python-fuel-client-in-system-tests
Change-Id: Idc0c0b3b0039f64d852ea1a08e02a9c3ecd65c46
2016-07-11 14:06:16 +03:00
Artem Panchenko 62f3da00cb Fix "variable referenced before assignment" error
It's possible to get the error above if no packages
were updated on master node in 'admin_install_updates'
method.

Also tests must handle situations when old package is
replaced by new one, so it's marked as installed but
not upgraded.

Change-Id: I6fe99ae16d887024643c60ea60e7650181fd432a
Closes-bug: #1599901
2016-07-08 10:44:57 +03:00
Ivan Suzdal 72830315e5 Add MASTER_NODE_EXTRA_PACKAGES env variable
This change allow to install any
additional packages from any additional
repository during install master-node.

Related-Bug: #1526544

Change-Id: I4b10ff432b385824595c0ac65b5282a2b81c859c
2016-06-07 11:21:37 +00:00
Jenkins b2c4e967f2 Merge "Separated Fuel and Slave nodes credentials" 2016-05-04 15:13:22 +00: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
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
asledzinskiy f95e619609 Remove Mirantis mentionings from fuel-qa
- Remove collector, analytics defaults
- Remove Testrail project names defaults
- Remove 'Miranits' mentionings form tests description
- Remove PERESTROIKA_REPO default value

Change-Id: Id7484f4abb8b70b63a2981dc92abfe533318b2db
Closes-Bug: #1547456
2016-04-12 14:30:56 +03:00
Dmitry Nikishov c1dca465b5 Separated Fuel and Slave nodes credentials
SSHManager has been extended to be able to accept slave node login/password
as well.

Partial-Bug: #1566377
Change-Id: I6ce86c1340f0276f9f3cfd22b44dd307ba8eace5
2016-04-07 15:04:23 -05:00
asledzinskiy b403700689 Add possibility to show fuelmenu in tests
- Add variable to settings to make
fuelmenu=yes during master setup

Change-Id: I340692f96d81f7d35627cbe034ecaf756c6f2947
Closes-Bug: #1558028
2016-03-31 10:23:28 +03:00