Commit Graph

74 Commits

Author SHA1 Message Date
Zuul d4a39ceb0f Merge "Update the NOVADB_HOST" 2023-07-14 07:27:15 +00:00
Zuul 68e7b0b63d Merge "Set minimal tempest version to 27.0.0" 2023-07-13 16:31:34 +00:00
Zuul 9eef00625a Merge "Remove setup_clients method" 2023-07-13 16:31:34 +00:00
Zuul a934903e96 Merge "Remove get_remote_client & create_keypair" 2023-07-13 16:31:29 +00:00
Zuul a6e141b1cd Merge "Remove get_server_ip & create_floating_ip" 2023-07-13 16:30:08 +00:00
Zuul bab51b21c2 Merge "Remove unused scenario.manager methods" 2023-07-13 16:30:07 +00:00
Zuul 6e05590a90 Merge "Remove _create_port and rebuild_server methods" 2023-07-13 16:30:06 +00:00
Dave Wilde 73febbff38 Update the NOVADB_HOST
The old value is no longer being defined so we're using the
internal_api FQDN.

Change-Id: I2285f866d8385ba02c1b3d0d7dc1034594462b26
2023-07-13 11:27:14 -05:00
Ade Lee 0df7e1c6b5 Revise cert tests to use principal names
In wallaby, we move certificate generation from puppet-certmonger
to linux-system-roles, and lost the ability to specify the certmonger
cert request ID.  So the tests that check for the existence of certs
using this ID now fail.  We need to look for certs using principal
name instead.

Change-Id: I23df0b30baf67341cec87017ac00a049ad313064
2022-08-31 15:24:14 +02:00
Roman Popelka 7cb4e41c4a Set minimal tempest version to 27.0.0
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Some methods replaced in scenario-manager-cleanup effor won't work
with tempest version lower than 27.0.0 therefore minimal tempest
version must be updated in tempest plugins

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I71e5ad527eef287c13de8f8519e99277fb13baa4
2022-06-09 15:23:37 +00:00
Roman Popelka 963a8d5805 Remove setup_clients method
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Replaced methods:
    * setup_clients

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I32be8a7a5e4792bcdea050b5a50b224cc6094a57
2022-04-14 14:44:13 +00:00
Roman Popelka 5775dbd7b6 Remove get_remote_client & create_keypair
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Replaced methods:
    * get_remote_client
    * create_keypair

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Icc2a1838ee568dadff7e51002ce856878cba2422
2022-04-14 14:44:07 +00:00
Roman Popelka 3595f5fa9f Remove get_server_ip & create_floating_ip
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Replaced methods:
    * get_server_ip
    * create_floating_ip

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Iaaa144d0480ba61d56ad5f0faeaafc7969770bf7
2022-04-14 14:44:01 +00:00
Roman Popelka d566d6ed5e Remove unused scenario.manager methods
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Removed methods:
    * create_volume
    * create_volume_type
    * nova_volume_attach
    * nove_volume_detach
    * get_timestamp
    * create_timestamp
    * _default_security_group
    * _create_security_group
    * _create_loginable_secgroup_rule
    * _create_security_group_rule

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I3e63c5754d1ead738405edfd823eea3bf2300dde
2022-04-14 14:43:56 +00:00
Roman Popelka 4f01b41410 Remove _create_port and rebuild_server methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* _create_port
	* rebuild_server

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ic6d6607668cf6194d1bb1d8b8c6796e108a99ce3
2022-03-10 09:37:40 +00:00
Martin Kopec b2e548518a Deprecate scenario.img_dir option
Starting Tempest 25.0.0 release, CONF.scenario.img_file needs
a full path for the image. CONF.scenario.img_dir was deprecated
and is removed in 27.0.0 release [2].

This patch does analogically the same change as was done in Tempest,
in order to give users of the plugin some time for removing img_dir.

[1] https://review.opendev.org/#/c/710996
[2] https://review.opendev.org/c/openstack/tempest/+/754927

Related-Bug: #1393881
Change-Id: I81313bd2b87f1c0603221ac3e04050f85215c846
2021-04-13 17:25:27 +00:00
Zuul 168e151c67 Merge "Remove use of deprecated config options for volume API selection" 2021-04-12 18:15:16 +00:00
Martin Kopec 4311c1987f Required maintenance and fixing gates
* updated links which were pointing to pre-historic sources
* renamed zuul.d/layout.yaml to zuul.d/project.yaml to follow
  upstream's pattern
* removed sphinx pin as the maximum version allowed was too low
* replace dashes with underscores in setup.cfg - setuptools
   v54.1.0 introduces a warning that the use of dash-separated
   options in 'setup.cfg' will not be supported in a future
   version [1].
* replace testr unit test runner by stestr. testr runner hasn't
   been updated for ~6 years - stestr is its successor
* add missing .gitignore file filled by the standard paths
* fix pep8 issues

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I889717a6a355a09c74c850a5d91f162798a7f07e
2021-04-12 15:08:26 +00:00
Ade Lee 468b968bb3 Add correct zuul job
Change-Id: I080fc9566c57693c11607edd918ffeafe2764ae7
2020-08-31 16:05:21 -04:00
Ade Lee 3d45c6dba0 Add job to publish to pypi and create tarballs
Change-Id: Iec01f6eb57132d6c3d4fe9dc033ae0c9c90f3ad7
2020-08-31 15:05:06 -04:00
Ade Lee 96a8212eb5 Add config option to skip cert tag verification
When we have TLS-E with public certs, some certs may be not be
provided  by certmonger.  We add a skip list that should be
configured in that case to skip tests for whether a cert tag is
tracked by certmonger for those certs.

The parameter is tripleo_exclude_cert_tags and it is expected to
be a list of cert_tags.  For the case of public TLS +TLS-E, we
expect that to include the haproxy-external-cert

Change-Id: Ia1c609b0d6da4272ee4cd510955b210706767b57
2020-08-12 13:53:58 -04:00
Ade Lee c8a180f215 Fix multiple issues for pre-provioned nodes
1. Add option to skip enrollment tests -- not applicable without novajoin
2. Fix skip-tripleo option
3. Fix mysql test - podman ps instead of podman ls
4. For pre-provisioned nodes,
   - add ability to read server metadata from the mistral yanl file.
   - add ability to get server ip from hosts/dns
5. Fix hard-coded heat-admin

Change-Id: I051b08b02d7cfedecd28ccabb47c22d141ae7d8c
2020-05-26 11:56:08 -04:00
Ghanshyam Mann a0afcc6066 Remove use of deprecated config options for volume API selection
Tempest has moved the Volume APIs testing to v3 as default and can be run
under v2 API via catalog_type.
- https://review.opendev.org/#/q/topic:volume-default-testing-v3+(status:open+OR+status:merged)

Below config options were deprecated since Rocky and now Tempest is going
to remove those (Needed-By patch):
    * ``CONF.volume-feature-enabled.api_v2``
    * ``CONF.volume-feature-enabled.api_v3``

Change-Id: I9fde2cca045b1e5349d57ace1df5ad2583e5b2b4
Needed-By: https://review.opendev.org/#/c/698754/
2019-12-12 17:11:34 +00:00
Chandan Kumar (raukadah) cb81f5311e Added tripleo_undercloud_user to novajoin conf
Currently the undercloud user is hardcoded to stack but in CI
we use zuul, it leads to failure while finding the respective
hardcoded file. Making it configurable and defaulting to stack
fixes the issue.

Change-Id: Ib9496024f7beeb27d13377c8062adf80e97f2c4a
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
2019-11-14 20:02:55 +05:30
Ade Lee 80dd51a794 Add fix for mysql and add a retry
The mysql test only worked on the first controller, because the
mysql container has different names (with a different suffix) on
different controllers.  Added logic to get the right controller
name.

Also added retry logic to the test on whether a node was an
ipa client.  Sometimes, this would query the client before it had
been fully enrolled, causing the test to fail.

Change-Id: Ibe52985f9ee15e1e30543f2d394fde141b06dc53
2019-09-20 16:54:58 -04:00
Ade Lee f782a512fe Add option to set connect_retries
Add option to set connect_retries, should be more than 1 to
get consistent results, especially with the server enrollment
tests.  Also, add an 'ironic' type for server enrollment tests
on the undercloud.

Change-Id: Ic5273e228a559d0ca6c6a95077e39bbe9e27ddef
2019-09-20 00:14:21 -04:00
Ade Lee 67b6aa37a8 Fix issues with tests
Some fixes were needed to make sure the ipa client code was
accessing the right config parameters for connect_retries and
keytab.

Also, more attributes needed to be added to the flavors to make
the enrollment tests successful.  This prevents nova returning
No Valid Host available errors.

Change-Id: I018a2dd8f3de9598e19394ea2b3f0a0bfdf4c669
2019-09-05 13:06:15 -04:00
Grzegorz Grasza 025f6d7d83 Fix running mysql client on containerized deployment
This adds mysql_executable configuration option and changes it to run
inside the galera container.

Related: rhbz#1730072
Co-Authored-By: Ade Lee <alee@redhat.com>
Change-Id: Iac82bd23c45e9200f4bc7049b6eafb26afbd7397
2019-08-30 16:16:55 +02:00
Grzegorz Grasza baf78c5d5b Fix index errors
Avoid throwing an index error when there are no servers or networks
returned.

Resolves: rhbz#1730757
Co-Authored-By: Ade Lee <alee@redhat.com>
Change-Id: I22983ffad0e0801cc192de2d37fae611fa6f11aa
2019-08-30 16:11:28 +02:00
Zuul 36fa6833af Merge "Fix Python 3 bug in test code" 2019-08-20 15:17:45 +00:00
Douglas Mendizábal ee1f913903 Fix Python 3 bug in test code
subprocess.check_output returns a bytes object in Python 3 [1], which causes
a few tests to fail because Python 3 won't compare the expected string
values against a bytes result.

This patch ensures that string objects are returned for test comparisons in
Python 3.  The tests should continue to pass in Python 2 as well.

[1] https://docs.python.org/3.6/library/subprocess.html#subprocess.check_output

Change-Id: I6f666e5059a0b63be245b3745c230e1cb586d6aa
2019-08-19 16:10:53 -05:00
Raildo Mascena 424b981b30 Removing decode(UTF-8) to make python compatible
Now that python3 it's already UTF-8 compatible, there is no
need to decode from UTF-8 anymore. We just need to use
six.text_type() instead.

Change-Id: Ica16721ca43300bc51b292591a3cfa602944df3d
2019-07-16 13:47:32 -03:00
Zuul 35d07534e0 Merge "Default to user home directory to read krb5.keytab" 2019-05-03 16:08:59 +00:00
OpenDev Sysadmins 3f51bbe815 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:59 +00:00
Grzegorz Grasza d26117be23 Default to user home directory to read krb5.keytab
This caused issues with zuul jobs, because the user home directories
differ. This also removes hardcoded path from ipa_client.py and
throws a nicer exception if the file is not there.

Change-Id: I6188fe40af1bc5c6549767f45a0acc9f554e5b1e
2019-04-12 11:29:28 +02:00
Ade Lee db3da24c61 Fix managed service tests
Tests can get confused if one test fails to clean up
properly, or if the tests are run in parallel.  To help resolve
this, the managed service entry is set to be different for different
tests.

Change-Id: Ia5f46d8b543ca64b42404f2aec75f5321cb3bad7
2019-03-22 14:46:46 -04:00
Ade Lee 25460679a2 Fix issues with novajoin functional test
1. Set parameters to set flavor and image for baremetal
2. add and reorganize timeouts/retry code
3. fix changed call to verify compact services
4. fix user to ssh into the image

Change-Id: I80cc2e0cd8abc5d860b22349276ef4a40282e4f2
2019-03-15 14:51:56 -04:00
Chandan Kumar 42e483bfc3 Remove unnecessary services dir from tempest plugin
services folder has nothing in it and it is better to remove it
when we add service client stuff for novajoin tempest plugin
we can add it.

Change-Id: I1c7ed9e678fe91bf442294f048f1ba01c85119c5
2019-02-28 15:57:12 +05:30
Ade Lee 0b5d1a1a12 changes to fix tripleo tests
1. for compact_services, some services that were not ssl enabled
   are now enabled.  Updated TLS_EXCEPTIONS
2. haproxy.stats is only accessible on localhost on the node that
   had the stats vip.  Check to make sure we have this controller
   before checking connections.
3. certs are only issued for networks that are defined for a controller.
   Therefore do not check for the cert to be issued or tracked if the
   network is not enabled for that controller.

Change-Id: Ied35638bcbdff2260c2c4bb5d6c84329d6894ab1
2019-02-24 15:17:40 -05:00
Ade Lee 3f38833cd4 Update for new IPAClient
IPA code has changed requiring changes to update module paths.
Also, tripleo has improved security and changed which networks are
accessible, and requiring password authentication for mysql.
Also, the format for compact_services has changed.

Change-Id: If899dda3950a8020ac1c3e8263a38a3bdcccd325
2019-01-07 18:38:39 -05:00
ghanshyam f657712db4 Remove volume v1 API service client usage
Volume v1 API has been gone since long and Tempest also
marked their deprecation since Juno
- https://review.openstack.org/#/c/446238/

Now Tempest is removing the deprecated config option and
alias for voluem v1 service client in
- https://review.openstack.org/#/c/573135/

Before the Tempest patch gets merged, we need to remove all usage
of volume v1 things.

Change-Id: I1f7e2744816f19a87296206a41b815748cc7273d
Needed-By: https://review.openstack.org/#/c/573135/
2018-06-07 11:02:06 +00:00
Ade Lee 59d7ba6834 Move build location for sphinx builds
Change-Id: I834f16fcf2c3582893d38baa455db7160331a653
2017-09-06 16:58:53 -04:00
Ade Lee bed63f8d2a Add documentation
Add documentation to decribe how to configure and run the
tests in the plugin.

Change-Id: I5e87f5833993dfae5ad405c9de668026fadd8008
2017-09-06 11:45:24 -04:00
Jenkins a4e482798c Merge "Remove unneeded dependency" 2017-09-06 13:31:00 +00:00
Ade Lee 966682c51e Remove unneeded dependency
Change-Id: I67ca0e3613c1cac9570db2a3aa0b067e1f0bf786
2017-09-05 16:21:31 -04:00
Ade Lee e4eeb36b41 Add .gitreview file
Change-Id: If3ef8946ac66ab2851ed5263d229500c1944519d
2017-08-30 13:03:45 -04:00
Ade Lee cde1888238 Add mysql ssl tests
Mostly work by Prasanth Anbalagan
2017-08-29 16:45:38 +00:00
Ade Lee 8d2b8389cd Add mysql test 2017-08-24 16:14:36 -04:00
Juan Antonio Osorio Robles 07d8db7621 Remove -quiet from s_client invocation
For some reason, when connecting to libvirt port on compute node,
sometimes the connection returns 104 error status when -quiet
is used.  We need to investigate. but for now, do not use -quiet.
2017-08-24 15:41:28 +00:00
Juan Antonio Osorio Robles dc9e363560 Remove unicode references for py3 compliance 2017-08-24 15:30:52 +00:00