Commit Graph

24 Commits

Author SHA1 Message Date
jichenjc 41494b0fe2 Fix uuidsentinel
use following instead of directly get from nova
from oslo_utils.fixture import uuidsentinel

Change-Id: I2f710cb2ce406f043c9fecb7adc4c7c23c6b6930
2018-09-26 22:55:14 +08:00
nafei yang 5bf2b8b875 Fix instance delete bug
Since zvmsdk store all instance in DB in uppercase, so change to
check it in upper case too.

Change-Id: I54f2b346f3d5f17578afa8c342f83045689290f6
2018-01-18 17:02:25 +08:00
SharpRazor b44d5d70e1 Add token configuration item
Change-Id: I6d1092d24ff98e1d81b2f1a1c86d480f529d3887
2018-01-11 11:04:00 +08:00
SharpRazor 6e0d114546 set up ca file configuration in drver
add 3 items in configuration file:zvm_ssl_enabled, zvm_verify_enabled
and zvm_ca_file.

Change-Id: I1adc33882689513865bb850618e558a09810ccfe
2018-01-09 11:54:43 +08:00
Huang Rui 77e5cfa112 Add reboot instance driver method
Soft reboot invokes zvm cloud connector guest_reboot while hard
reboot invokes guest_reset.

Change-Id: I6689e67e9caec554e0582358cea11f01f181bd06
2018-01-08 10:11:16 +08:00
nafei yang ddbcd6cfac Snapshot support
Change-Id: If56531e366b21368984eb5ba14af661dc4892876
2018-01-04 10:06:12 +08:00
Huang Rui 56ce25c969 fix typos when call guest soft stop
The correct API name should be "guest_softstop" in driver.power_off
method.

Change-Id: Ide9b29b53179df8192f441d784a97ed9eaa7fecd
2017-12-27 11:17:38 +08:00
Huang Rui 73eb5e857d update zvm_connector_url to URIopt
Change-Id: I7a582838f4bc61b2e309854dc2efbc91da226b1e
2017-12-22 10:52:20 +08:00
Huang Rui fab7a6c77e Add vm power action driver methods and get console output
Add vm power actions support including: power on, power off,
pause, unpause and get vm console output via smut backend.

Change-Id: Id032dea9dce6c157367f2320a4a373ff862fe10b
2017-12-20 18:10:16 +08:00
Huang Rui 369b0b1674 switch from xcat backend to smut backend
zvm cloud connector has dropped xcat backend support. Swtich to
smut backend instead.

Change-Id: Ie09070f4ff43db4c244305378352f34809c9be74
2017-12-15 18:09:24 +08:00
jichenjc 9704803789 Adopt changes for upstream 511879
https://review.openstack.org/#/c/511879 modify the virt driver
param, we need make similar changes

Change-Id: I9eb57f93ccef8ca669ae012c6c1dda920488d937
2017-10-19 01:18:40 +08:00
Huang Rui f47a2f73d8 fix zvm driver.get_info
zvm driver.get_info was affected by the change:
https://review.openstack.org/#/c/471146/

In nova master, nova.virt.hardware.InstanceInfo should pass power
state when init the object.

Change-Id: I1adec39c943518f3f1bd791ad877e8abdf1f8c11
2017-09-11 16:53:26 +08:00
Huang Rui 6fea79d689 switch to sdk
zvmsdk is a library that enables zvm cloud management.
This patch switch from calling xcat client directly to importing
zvmsdk to call zvmsdk API, to manage zvm host and virtual machines.

Change-Id: I74406a618a4a8b2d80a905c56621c1acd46f1c08
2017-08-22 10:14:23 +08:00
libing 9887de79eb Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I97f9b445cb572adf936d0171bcda1e0f8724b367
2017-06-12 11:10:26 +08:00
jichenjc df5add1e14 avoid raise error log when update image failed
as in nova side we tried to update image property and this is
always allowed by default, we thought it's an error, but actually
it's acceptable since next time we will do that again.

Change-Id: I82f538aaad8882a5b96c3cec1f4781bd91c5944b
2017-05-05 21:05:08 +08:00
jichenjc e81da07191 Fix log debug error
log debug lead to TypeError now, we need use dict mode

Change-Id: Ib40c7a65a6c09154f36fe8c80a74c230811c4c45
2017-04-28 20:50:25 +08:00
Jenkins 905f047cbd Merge "honor zvm_default_admin_userid" 2017-04-28 08:36:29 +00:00
Jenkins 2ee6503290 Merge "deprecate zvm_user_default_password" 2017-04-28 08:36:22 +00:00
Yi Chun Huang 788bd4749d Will not reraise error out when destroying a failed instance
Reraising an error would interrupt the process of removing
resources from the failed instance, and then make some resources
keep being occupied even after the instance has been deleted.

Change-Id: Id79eb4d58618987d9ae5e98a66f8339c423b4c4d
2017-04-07 16:01:59 +08:00
jichenjc 32b35e7e42 honor zvm_default_admin_userid
we need do some changes according to zvm_default_admin_userid
zvm_default_admin_userid will be the primary conf options from
then on.

part of blueprint:add_zvm_default_admin_userid

Change-Id: I666262895acdf3b8972f6ac0a5a3a6f228836d6f
2017-03-26 05:18:37 +08:00
jichenjc 6e9210d7c1 deprecate zvm_user_default_password
zvm_user_default_password is not secure and we will use LBYONLY to
replace it and deprecate zvm_user_default_password.

part of blueprint:add_zvm_default_admin_userid

Change-Id: Ife905eb4499ccb7bbbdd8bbba75fc425e560606e
2017-03-26 05:18:31 +08:00
Huang Rui 2e3d781d86 Move nova zvm virt driver to separate namespace
Currently, nova zvm virt driver is in nova namespace. This result
in some troubles when generating config file, generating docs and
packaging.

All changes in this commit are trying to move nova zvm virt driver
code into new namespace - nova_zvm .

Change-Id: I5251069dfd24ff4e337e9308439415482eb2234c
2017-03-23 12:51:13 +08:00
Huang Rui 50b6816f88 Project restructure
Project restructure to make the project work as a StackForge
project.

By:
- Update .testr.conf and tox.ini for python-jobs
- Rename project top level dir
- Put unittest script to the folder that should be
- Updtae doc/ and README.rst
- Update setup.cfg

Change-Id: Ia00ac57630385e5dcca3020d67115b46894bd0a9
2015-04-07 11:22:05 +08:00
Huang Rui 588d68108a The init commit of stackforge/nova-zvm-virt-driver
Including all python modules that implements Nova virt driver for
zVM, and configuration files that make the project work with
OpenStack development infrastructure.

Change-Id: I7efe0d1b6ef42268438d4141860fb4c51c09d30c
2015-03-30 04:48:26 -04:00