Commit Graph

24 Commits

Author SHA1 Message Date
James Page 6603a7f323 Retire master branch of nova-lxd
Drop content and replace with retirement notice.

Change-Id: I2de2eff7694d60597a6413a0a64124fbbede69bb
2019-07-23 13:56:57 +01:00
Zuul 3c01bfcb7e Merge "Update json module to jsonutils" 2019-03-01 10:15:49 +00:00
jacky06 9bc72163ae Update json module to jsonutils
oslo project provide jsonutils, and lxd use it in many place[1],
this PS to update the remained json module to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/nova-lxd/search?utf8=%E2%9C%93&q=jsonutils&type=

Change-Id: I7bfbb523f2427d8c798868964eecec955078d0fe
2019-03-01 00:41:06 +08:00
Masayuki Igawa 046f58dc1f
Move calling pylxd.client after Tempest tests initialized
This commit moves calling pylxd.client.Client into resource_setup(). If
we have this in __init__(), the test list command `tempest run -l` is
failed without lxd client settings. It's not desirable. And this commit
also renamed variables for lxd client in the code to avoid confusion
with the other clients.

Change-Id: I5498789b2b1e4be6727b6520fc80ce3bace25cf3
2019-02-21 13:30:59 +09:00
Alex Kavanagh c4c16bcf49 Fix bug in scenario/manager and cover it with pep8
manager.py had a syntax error which caused the module to be not
installable.  This wasn't picked up in testing.  This fixes the bug
and adds pep8 coverage to the nova_lxd_tempest_plugin so that the module
always remains installable.

Also, this fixes the tempest concurrency at 1.  See the related bugs.

Closes-bug: #1790956
Related-Bug: #1790943
Change-Id: Ie542b062a9f0997f6363877ff03f0f9bfc8f3d43
2018-09-05 20:16:02 +00:00
ghanshyam 5889ea10ab 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: I1ceb269d5ce9f8c9e557d62e829bb536ac4d2a3d
Needed-By: https://review.openstack.org/#/c/573135/
2018-06-07 10:59:26 +00:00
Alex Kavanagh 84a7945bca Fix broken debug logs and modernise string interpolation
Some of the debug logs were not actually outputing the instance;
it was just tagged in the LOF.<type>(...) command.

Also took the opportunity to modernise to '.format()' the string
interpolation to meet current guidelines.

Change-Id: I99c56ff738713140b2af16199e9e58b39bb4e396
Closes-Bug: #1657339
2018-06-01 15:40:14 +01:00
Zuul 34e4171410 Merge "Replace the usage of some aliases in tempest" 2018-02-23 08:34:40 +00:00
Vu Cong Tuan 640c365a52 Replace the usage of some aliases in tempest
In tempest, following aliases have been moved in version Pike
and will be removed in version Queens:
* manager > os_primary [1]
* admin_manager > os_admin [2]
* os_adm > os_admin [3]
* os > os_primary [4]
* alt_manager > os_alt [5]

[1] https://review.openstack.org/#/c/468036/
[2] https://review.openstack.org/#/c/467852/
[3] https://review.openstack.org/#/c/467605/
[4] https://review.openstack.org/#/c/466991/
[5] https://review.openstack.org/#/c/457555/

Change-Id: Icd2ba2fd8e47cf0d515e6004c3793b499eef802e
2018-02-22 20:04:02 +00:00
Nguyen Hung Phuong b47dcf5a53 Switch to tempest.common.utils.requires_ext
Tempest deprecated tempest.test.requires_ext [1]
At this moment, it is available in tempest.common.utils

[1] https://review.openstack.org/#/c/493668/

Change-Id: Ie6a104d2cf6ccc4217df62a3784b8757457f3142
2018-02-22 17:47:57 +00:00
ghanshyam fed468f060 Replace deprecated test.attr with decorators.attr
Tempest has deprecated decorator 'tempest.test.attr' and
moved the same as stable interface to 'tempest.lib.decorators
.attr' in version 16.1.0.

Let's use the stable interface for attr decorator.
This will help Tempest to remove the deprecated decorator.

Change-Id: I8e0face1852df17d64ec667bf591d8bb3f0791be
2017-07-31 10:20:49 +00:00
Jenkins a96a885d4f Merge "Local copy of scenario test base class" 2017-04-05 13:45:42 +00:00
Andrea Frittoli 2e5b73d126 Local copy of scenario test base class
The scenario tests base class from Tempest is not a stable interface
and it's going to be refactored on Tempest side, as notified in

http://lists.openstack.org/pipermail/openstack-dev/2017-February/112938.html

Maintain a local copy of the base class, taken from Tempest with head of
master at c5f1064759fe6c75a4bc5dc251ed1661845936cb.

Change-Id: I586d03848d96126640da030e393d468cd613a58a
2017-03-17 17:35:26 +00:00
Ken'ichi Ohmichi dd613ed0c1 Switch to use stable remote_client
Tempest has provided stable library remote_client under tempest.lib
since the commit Idb2206c239f25bc8b8530275e84c834233b9544b
This patch switches to use it.

Change-Id: I4ace5a93305cc4ad0a43abda5f4bacb5806f9860
2017-03-15 18:27:05 +00:00
Ken'ichi Ohmichi 9a92d8bcf5 Switch to use stable data_utils
Tempest provides stable library interfaces under tempest.lib.
This patch switches to use it for data_utils.

Depends-On: Ib3e29a2b03429e69151717908bc43c590bb8c52e
Change-Id: I0a08bdfd304d988ca48fb07d901d3ecfd5968599
2017-03-10 02:21:34 +00:00
ghanshyam d5e068c736 Switch to decorators.idempotent_id
test.idempotent_id is being kept temporary to migrate
to new lib interface. Now idempotent_id is available as Tempest stable
interface decorators and all plugins tests using the old decorator
should be switched to new interface.

In future, Once all plugins are switched to new decorator Tempest
will remove the test.idempotent_id

Change-Id: I29d631d0c9130262a4d56b258c76cb43665b9e04
Related-Bug: 1616913
2017-02-09 15:14:26 +00:00
Chuck Short 323ce16e11 Update test_create_server tests
Add the following tests:

- test_profile_configuration, verify the profile configuration
  is correct
- test_verify_console_log, verify the configration of the console
  log is correct.
- test_verify_nework_configuration, verfity the network configuration
  is correct.
- test_cotnainer_configuration_valid, verify the container configuration
  is correct.

Also fix a typo in the test_verify_created_server_vcpus test. Also
also only make pylxd call once.

Change-Id: I165d94fe79127682a600619f8520838125688911
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-28 13:24:36 -04:00
Jenkins 889566a224 Merge "Align directory structure with upstream" 2016-09-28 17:16:11 +00:00
Chuck Short 5f7febaeb8 Align directory structure with upstream
Align directory structure with upstream tempest

Change-Id: I51c7ad79ee077314308b34b4640c93209f3a2446
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-27 13:48:29 -04:00
Chuck Short 98af131065 Add scenario tests for block storage
Add unit test that does the following:

    1. Boot an instance "instance"
    2. Create a volume "volume1"
    3. Attach volume1 to instance
    4. Create a filesystem on volume1
    5. Mount volume1
    6. Create a file which timestamp is written in volume1
    7. Check for file on instnace
    7. Unmount volume1
    8. Detach volume1 from instance

Change-Id: Id2e062e8d682440276e28683323dbbcd945f4457
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-27 13:28:52 -04:00
Chuck Short 3f057bf230 Add unit tests to verify block storage
Verify that the configuration between LXD and nova is
correct when attaching a block device to an instance.

Change-Id: I04da36ae4bf288e638e78a0d66eccd776756bea1
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-27 11:00:51 -04:00
Chuck Short d4b44ee5e3 Better directory organisation
Move compute tests to their own directory so it
is similar to the current tempest directory structure.

No code changes.

Change-Id: Id18bfafde0e7718c452af572b5d126cb807277b5
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-23 13:28:17 -04:00
Chuck Short 6d365ac537 Re-add support for configdrive
Re-add support for configdrive usage that was previously
dropped.

This commit adds functional tests for configdrive usage
via the nova-lxd tempest plugin.

Change-Id: Ie2e857437df3032e0daa23ed302febb9497fa7d1
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-22 11:43:33 -04:00
Chuck Short 20aed992e1 Add nova-lxd tempest plugin
Add infrastructure support for nova-lxd tempest plugin. To run the tests,
run the following command in the tempest tree:

tox -e all-plugin -- nova_lxd

Change-Id: I030cfd0a38e5fa191baa0acc48a969b3b553fced
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-09-14 09:41:39 -07:00