Commit Graph

26 Commits

Author SHA1 Message Date
OpenDev Sysadmins 4f1b3b1426 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:50:46 +00:00
Jenkins 77157f2096 Merge "Change wait_for_boot method for node availability" 2017-08-17 18:06:26 +00:00
Ben Cooper 8060628bee Change wait_for_boot method for node availability
The current wait_for_boot method uses a socket connection to port 22
to determine whether commands can be run via SSH on a given node.
However this is not definitive as even if a connection to port 22
can be made, SSH may not be immediately available. A more robust
approach is to repeatedly attempt a basic command until it executes
successfully.

Change-Id: Ib80e29f947a47e1b5349236a7e9db42b59c09b10
2017-08-17 15:56:56 +01:00
Benjamin Michael Cooper 55849876b9 Configurable virtualisation
Allows qemu to be specified instead of kvm when hardware
virtualisation is not available.

Change-Id: I44c6c3ed60581cdb336e55161a2cce1d68903528
2017-08-15 16:02:11 +00:00
Benjamin Michael Cooper 546b100b25 Fix OpenStack dependencies
Respect upper-constraints.txt
To prevent pip installing the latest and greatest packages
(which may break Bareon), pin the version to those specified
in the upper-constraints.txt file from the openstack
requirements repo.

Fix hacking module version
Change hacking version in pep8 tox tests to prevent conflict
with other openstack requirements.

Change-Id: I0c13b8f94212cc8e77db2a2d1d1bc63318a14fda
2017-08-15 15:22:58 +01:00
Dmitry Bogun b0c22a2505 Adopt stub webserver to new bareon deployemnet protocol
To avoid preinjected SSH key on bareon image built time new deployement
protocol extesion was added into bareon-ironic and bareon projects.

This change adopt our "stub web server" to use this new SSH key
injection schema.

Change-Id: I916326f4e7e53bacde79e7c35284bf68ca053d72
2017-02-22 15:48:22 +02:00
Andrei V. Ostapenko a952bbf604 Renames api-url to ironic_api_url in pxe config
Corresponding rename in Bareon:
https://review.openstack.org/#/c/422820/

Change-Id: Ib4f53389a3cb46e9d8865c701e9c8ccbeffb289e
2017-02-02 11:22:31 +00:00
Dmitry Bogun 34740f5411 Increase controll over content of deployment config
Allow caller to provide "images" branch of deployement config structure.
Also provide called API to make "correct"/"default" images branch.

Till now setup method of environment object silentlry override "images"
branch.

Change-Id: I1bdb0f91c7bf83e3c888650b2f8917dde80dea42
2017-02-02 11:22:26 +00:00
Andrii Ostapenko 5970e9dbb5 Satisfy global dependency requirements
Change-Id: Ia21610615facf0d463128677e9e67bbd0d641f32
2017-02-02 11:22:16 +00:00
Andrei V. Ostapenko 7aaa9d97d2 Adds required dependency for pxelinux.0 > 4.x
Change-Id: Ibb3ca337d6fb760da72bead6a64226bb68ed58f5
2017-02-02 11:21:59 +00:00
Andrei V. Ostapenko e0a67eee06 Adds custom exceptions
Change-Id: I07c36343e5324e37c648424bd97227972d79a4a3
2017-01-24 13:11:42 +02:00
Dmitry Bogun 73b93d95bf Extend environment toolset
Add "init_unlabelled_disk" - create empty dist (without partitions
table)

Add "update_deploy_config" - upload "deploy config".

Change-Id: I29b9ea7c0c5d632a86861a17b933d7cd928eed75
2017-01-05 13:15:21 +00:00
Dmitry Bogun c9c6e1e5ee Do not fail if workdir is missing in teardown stage
Ignore "File not found" errors during removing working dir in teardown.

Change-Id: I06da592630d57b123b68741ff183c2cebdaf0fab
2017-01-05 13:14:58 +00:00
Dmitry Bogun 68182be454 Extend API providing image definition
Change-Id: I85321c4ffb70e28c25a829bcecdca2636a5ca0af
2017-01-05 13:12:37 +00:00
Dmitry Bogun 48e7493173 Add generation of cloud.cfg
Change-Id: I2b36ee800cdc682bd81376b7916f40f0d8555326
2017-01-05 15:11:48 +02:00
Dmitry Bogun c912791aa1 Using predefined ssh key pair to access vm
Change-Id: I24b4c5d4846bf5f0bf7e25453cb8fca8f116c0cf
2017-01-05 13:04:15 +00:00
Dmitry Bogun 5bb7d8fd3c Fix read_file and add write_file methods of Node class
Due to usage of '&&' in bash command joining, if file is missing,
read_file method skips umount step. As result we have a problem with
"busy" mounts.

Add write_file method to complete file manipulation toolbox.

Change-Id: I1f2957c9e6b697b00868c3592ed67e6912b190af
2017-01-05 13:03:36 +00:00
Dmitry Bogun 25b14a7f9c Unmount image into teardown instead of teardonwclass
We make loop mount of OS-image in some cases into .setup() method. But,
by mistake, umount happened only in teardownclass.

Change-Id: I14e05f6aa943e42344cb53d472f1703ccc9ad7b5
2017-01-05 12:54:47 +00:00
Dmitry Bogun cb1c3ff4f7 Replace pidof call
Replace OS specific "pidof" call on more common and mostly equivalent
"ps" call. It allows to use framework not only on RedHat based OS.

Change-Id: I4ac1c145e30d7f2b43fcb371e819f9943eab91f1
2017-01-05 12:49:34 +00:00
Dmitry Bogun afc4b47fbc Remove template engine abstraction layer
There is too small chanse to switch template engine in this project. In
this case there is no need to maintain abstraction layer under template
engine API.

Switch to direct calls to jinja2 API.

Change-Id: I200770b74b7bcbff28948155de994bb8bbf9f966
2017-01-05 12:45:23 +00:00
Dmitry Bogun 66bcb8a146 Mixin for test cases
Provide mixin capable to initialize all framework subsystems. Moving all
initialization into this mixin increases framework code isolation. As
result it makes adding changes into framework easier.

Change-Id: Ib1154bc8e8bd69d36bfbdfb77de0b0d8ffafe1a8
2017-01-05 12:42:21 +00:00
Dmitry Bogun 47d3d48dd3 lxml - missing dependency
The code use lxml, but setup.py does not list it as dependency. So add
'lxml>=2.3' to the dependency list.

Change-Id: I6ff82d77aefdfe6e9d92705b267894522e4e30e8
2016-12-23 17:31:33 +02:00
Dmitry Bogun cd7b36904e Refactoring of stub webserver
Main goals - avoid "path math". There was an ugly path math in stub
webserver start phase. Also there was mostly same path math in lookup of
static files served by this stub webserver.

Change-Id: Id0c348ceefb257dff0950adcd778edd69e6ad11e
2016-12-23 17:31:33 +02:00
Dmitry Bogun e6cc50bcff Remove interference of config objects
Till now global config object was used. So we and project owns
functional test fill same config object. This can lead to options/groups
overlaps (two separate package add option with same name). Also second
"read config" call will reset config and remove loaded options. "Read
config" call happenes twice because we and package that own functional
test both make this call.

That why we must use separate config object.

Change-Id: I7bc4ec995317fb6454deb19e75b82793e3d027a4
2016-12-23 15:04:28 +02:00
Mark Goddard 60fca54634 Initial commit
Implements: blueprint bareon-functional-testing

Change-Id: Ibf8a1f858e155871f8957669c085481373d26680
2016-03-16 16:30:32 +02:00
OpenStack Project Creator 5ca6f8647c Added .gitreview 2016-02-18 10:17:38 +00:00