Commit Graph

293 Commits

Author SHA1 Message Date
OpenDev Sysadmins ed741746ec 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:49:58 +00:00
caobiao dbcf0f53ac now can capture instances with chinese characters
remove prefix('\u') of chinese unicode when snapshotting
or booting an instance
the image name will store as the format without prefix,like:
'\u6d4b\u8bd5\u7528\u4f8b' --> '6d4b8bd575284f8b'
add a function in util.py for code reuse
add a test for this function

Change-Id: I1bfc6ace2b74e4cfab3a6c6a36c31629e4290bf4
2017-02-13 17:04:02 +08:00
Yi Chun Huang c91759e280 Enable boot from volume for Ubuntu 16
Begin to support to boot from volume for Ubuntu distro.

Change-Id: I001a3bf439c579697f57fcaa33940f5803391cfd
2017-02-07 17:22:34 +08:00
Huang Rui 2fbb8419d9 Remove version from setup.cfg
To leave pbr to manage version stuffs.

Change-Id: Ie3d5cf93e081173da66cb1bb05991d4660182fdb
2017-01-24 15:28:20 +08:00
Yi Chun Huang c96a83c752 Correct the hostname when booting from volume
The hostname of the instance is not set correct when booting from
volume. It's caused by redundant data in network_metadata in
instance_metadata, so the data will be cleaned.

Change-Id: Id6c847cae4442fa70f2de212c22968973f139601
2017-01-19 18:53:49 +08:00
Yi Chun Huang d61e0d0879 Remove redundant WWPN when preparing boot-from-volume
We use one WWPN to do boot-from-volume, but SVC driver always
returns a WWPN list from Newton. So we have to remove the
redundant ones.

Change-Id: I6c43eb8f057c79b3f9f75a8532608e5f42e924b1
2017-01-19 16:29:37 +08:00
Jenkins 4d0d01a79a Merge "Modify to set root device earlier in spawn" 2017-01-18 08:13:18 +00:00
nafei yang 1d4b8a303e Modify to set root device earlier in spawn
In current spawn, at the beginning of spawn the root device is
set to /dev/sda automatically, that is not correct for a normal
spawn vm which should be /dev/dasda, so change to update the root
device in earlier stage of spawn, this change has no effect to
the function.

Change-Id: I7d83bad7844d56cc4bcbfd88b8f947c1a6d99ec1
2017-01-18 15:28:31 +08:00
nafei yang 6cc8bc12a2 Modify to use one same command to change password
Previously, we use different commands to set admin password for
different linux distros. However, we found this can be done by
chpasswd command on all distros, so change to use it.

Change-Id: I0cbbb4644e12fe8fb773fefbfe112b7bc2b0444d
2017-01-18 13:43:14 +08:00
caobiao 6bbebe3f3e a following path for fix_failure_of_deploy_multi_instances patch
add comments to describe the reason of adding semaphore and simply
introduce the problem to solve for future reference

Change-Id: I5dd03f5d47264df8a1bb8c3ed21b79407f867210
2017-01-16 14:17:48 +08:00
Jenkins f4e1b766db Merge "Fix the image_meta problem for boot from volume." 2017-01-16 05:30:04 +00:00
Jenkins e26c7a7345 Merge "avoid import_image_to_nova called by multi threads at a time" 2017-01-12 03:49:19 +00:00
Jenkins ebb24aa00b Merge "Add conf description for live migration" 2017-01-11 01:55:38 +00:00
Jenkins d506b18a06 Merge "follow up of configuration changes" 2017-01-11 01:55:31 +00:00
caobiao 54d03c6719 avoid import_image_to_nova called by multi threads at a time
use a semaphore from eventlet to syschronize the image shared
between instances while booting an instance

Change-Id: I115e4f0c1686aa999a549d918df267c0459766a3
2017-01-10 16:03:43 +08:00
nafei yang 301a6ca203 Fix the image_meta problem for boot from volume.
When boot from volume, image_meta has no id or other properties
it will cause the error like bug 1657 described. Submit this patch
to solve it.

Change-Id: Ie513ad7003b391d7012df946c3b660ae127aca1c
2017-01-09 15:56:50 +08:00
jichenjc d80c892db8 Add conf description for live migration
Add better description for live migration support

part of blueprint: conf-enhancement

Change-Id: Ia748380d6dbd9a71de556e4e213db998e6b33320
2017-01-05 15:14:08 +08:00
jichenjc 1cd0ff5ee2 follow up of configuration changes
some wording need some changes for conf file, this patch added the
changes accordingly.

Change-Id: I2631127850532af034a4a7bf6357a1ad12371c37
2017-01-05 11:15:42 +08:00
jichenjc cb51d39338 change default value for zvm_vmrelocate_immediate
zvm_vmrelocate_immediate = yes will give benefit to total migration
time but will increase the quiesence time, so we need set it to
no to get more benefit to end user.

Change-Id: Ib2091067e297a15a3409bf2dd6f9aa8a06ba7df4
2017-01-05 03:02:07 +08:00
Jenkins bf0be323d2 Merge "ignore error 6312" 2016-12-21 16:18:47 +00:00
biao cao 97a889ef62 ignore error 6312
6312 means dirmaint limit reached, we need ignore this error
and proceed further operations.

Change-Id: Ic84b496ea8dce3d427d705eac487e3016cf916f1
2016-12-21 00:58:31 +08:00
songqianxia fda8be04dd For resize, we should copy and use orignal image's status
This patch is for VM migrated from liberty, some of them can't setup IUCV,
so use SSH to make communication. We should keep the status as original VM.

Change-Id: I052ab748f61b1c05dbe8780e368b2d62aadaee60
2016-12-20 03:27:48 +00:00
caobiao ff27679742 use uuidutils to generate UUID instead of uuid4
using uuid4 will get pep8 error when submit,so change to uuidutils

Change-Id: I3babf1f81132fae0bdb5b5aabd06427f80f8e678
2016-12-20 10:23:33 +08:00
songqianxia e60b54fdba Fix issue in resize function that iucv_authrized_userid is not changed
Change-Id: I3dc8ac93d140a6012ecf5c5267229d406fb06f68
2016-12-06 10:14:18 +00:00
jichenjc 4bcc7b1ca1 Fix vm_mode exception
https://review.openstack.org/#/c/356553 changed vm_mode to objects
we need do same changes as well

Change-Id: I5ce52a03b33dc39d2a5d34007dcccc85271d5a81
2016-11-28 14:41:00 +08:00
jichenjc b5831e1148 riase correct exception if image prop not valid
we should raise nova exception so during build, nova
compute know it's a invalid image and stop retry

Change-Id: Id106d2c70fd12ffbd924ab20cd4022a3a9899f17
2016-11-27 22:15:44 +08:00
jichenjc dd93fccf35 Bump xcat requirement version
bump to minimum 2.8.3.16

Change-Id: Ie9e5e5b67e80f4eb09bc04a9da56ac1036ce560e
2016-11-27 14:21:53 +08:00
Yi Chun Huang 10149b9702 Print exception in driver._detach_volume_from_instance
Print the details of the error which raised in processing of
driver._detach_volume_from_instance, instead of just return a
simple message.

Change-Id: I7b4353847e024a8de96ec6810c24dd2e1e51bb3c
2016-11-30 10:59:33 +08:00
Jenkins 49923a112a Merge "I fixed two bugs in this patch. 1) the code in the dist.py correct a display format of content in ifcfg-xxx file to let user easy to grep and show the file content in one line." 2016-11-28 11:10:17 +00:00
Jenkins 45346c47a8 Merge "add context param to confirm_migration" 2016-11-25 10:41:59 +00:00
jichenjc 1302aa26ae add context param to confirm_migration
commit 41bf42a393b1be0ef36de11e47bf649f3f8cf9f8
added context param to confirm_migration, we need add it as
well

Change-Id: I3e414c2e263e32a64134c10f955cc26ad8e60782
2016-11-25 17:47:36 +08:00
nafei yang 48d28a77d6 Modify command to set admin password
The command we used before does not suitable for all case, so use
chpasswd to make sure it works for all distros.

Change-Id: Ibfba18b4942bbe7a36183585ad4818435b40b181
2016-11-25 17:21:00 +08:00
songqianxia f4e863abf1 Fix the issue to change origin VM's status
Change-Id: Iba96887796527e2e31e1ad82fee68d95802be6fd
2016-11-23 22:29:54 +08:00
Jenkins 45c640eff7 Merge "add debug info when bad response returned" 2016-11-23 10:19:30 +00:00
jichenjc 9dba867de3 add debug info when bad response returned
There is no info about bad response returned, need
add additional info about it .

Change-Id: I8fc3fbd43eefb69ecf4f1109e20e77cbc0809a50
2016-11-22 12:51:01 +00:00
Jenkins 9779e5ef6a Merge "ignore bandit issue" 2016-11-22 06:34:30 +00:00
Jenkins ddaee10de4 Merge "Remove "management IP" concept from our code" 2016-11-21 05:59:34 +00:00
songqianxia 781a596e99 Remove "management IP" concept from our code
After support IUCV, management IP is uncessary by now.

Change-Id: I5a9e6ca3f7e59144f393a9454b96599edba83405
2016-11-21 09:53:28 +08:00
Jenkins cc87674f82 Merge "Replace xdsh restapi to new execcmdonvm" 2016-11-18 11:06:44 +00:00
songqianxia e4065be35a Replace xdsh restapi to new execcmdonvm
Shoud work with related xcat patch.

Change-Id: I8823409c849ba7e250344742c561682cd5f8887b
2016-11-18 10:54:16 +00:00
jichenjc ef62c73022 Add ignore warning message routine
sometimes we get console log from low layer and this
is normal to contain 'warning' keyward, we need ignore
this routine to avoid too much logs in compute log

Change-Id: I661dd49e194adcf8e6d30b035f104254c6d916df
2016-11-18 16:03:38 +08:00
Yi Chun Huang 2cb048dee5 Ubuntu volume support - inactive attach/detach
Support volume inactive attachment/detachment functions for Ubuntu.

Change-Id: I07f6008ff409f255c49bdf24d191fdb68e9b4279
2016-11-18 14:29:04 +08:00
biao cao a167b998de I fixed two bugs in this patch.
1) the code in the dist.py correct a display format of content in
ifcfg-xxx file to let user easy to grep and show the file content
in one line.

2)the code in driver.py fixed the bug that image name can not be
unicode.For example,when type 'tabdump osimage',if the image name is
chinese 中文 whose unicodes are '\u4e2d\u6587',it will show like this:
"rhel7-s390x-netboot-????????_0c794bba_4804_49e7_9e2f_c8ab56050b72"...
there are messy codes in the line.
we try to replace the question marks with the unicode of 中文,like:
"rhel7-s390x-netboot-4e2d6587_0c794bba_4804_49e7_9e2f_c8ab56050b72"...

if user want to know the real name,they can use steve's code to transfer
unicode to the text.

Change-Id: I26a538df00fb008b0d8ed9051f2c84a7b3c3364c
2016-11-18 02:52:30 +00:00
jichenjc 700137a691 Wrong usage of param
need to adjust the param usage (instance and userid param)
in _reconfigure_networking function

Change-Id: I11e72ca3ae8abab6b1dcc7d69794641f61ba825d
2016-11-17 21:51:02 +08:00
jichenjc a875b15243 ignore bandit issue
some of them are not important ,so add flag to ignore

Change-Id: Ia52bff6473ca2ac854c7c238aa5f16cbe20d3fd7
2016-11-17 21:33:45 +08:00
jichenjc b1a4ba8ba3 Make image_meta a dict instead of object
in migration process ,if flavor size is 0g, we will get image information
and this is an object, we need transform it to dict.

Change-Id: Ia7abf8f74c78541c167ddb0bb67de66c4be3210e
2016-11-16 20:32:48 +08:00
Jenkins 1dc3f9f288 Merge "IUCV enablement" 2016-11-15 17:45:27 +00:00
Huang Shi Lin 9b3f22daaa Fix option description
Remove misleading URL, should point to xCAT documentation, or other user
manual. Fix several typo.

Change-Id: I422dda1e223f17414a971ae27f5e65d52bd3940a
2016-11-15 13:16:53 +08:00
biao cao 36748626c8 fix wrong comments in power_on function
Change-Id: I6b03ff7b3e54624123375b49017e94e38accaa21
2016-11-14 11:08:04 +08:00
Jenkins 63c4c253fd Merge "Ubuntu volume support - active attach/detach" 2016-11-10 12:21:34 +00:00