Commit Graph

274 Commits

Author SHA1 Message Date
OpenDev Sysadmins a064d4d65a 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
songqianxia 518859e9af For SLES system, to keep the NIC setting persistent
When boot a system with a NIC which is different from the master system,
NIC qeth device will not be initialized when system re-ipl.

Change-Id: I3afd2b7bef51db113212fde039cb32e902d6f81a
(cherry picked from commit 9bb1592fba)
2017-04-12 07:20:36 +00:00
jichenjc 064ddaa627 change tox.ini to use uppercontraint
uppercontraint need to be capped in order to only install stable
version.

Change-Id: Ie9f61a8df5d01af5898fdca2150a583d61d37c39
2017-03-27 06:52:18 +08:00
Yi Chun Huang 523faacdb7 Insert os_version into instance obj when boot-from-volume
An instance object should have the os and version information so
that a volume can be attached to it when it's inactive.

Change-Id: I232f743a446dbfcaaf3794df02c084515bdd45fe
2017-02-23 08:22:16 +00:00
Yi Chun Huang 0d1f191754 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
(cherry picked from commit d61e0d0879)
2017-02-15 10:08:56 +00:00
Yi Chun Huang 7cbbf18e4b Enable boot from volume for Ubuntu 16
Begin to support to boot from volume for Ubuntu distro.

Change-Id: I001a3bf439c579697f57fcaa33940f5803391cfd
2017-02-08 15:25:10 +08:00
jichenjc 07bc90daf2 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
(cherry picked from commit b5831e1148)
2017-01-25 03:26:38 +00:00
Jenkins 8d749b4831 Merge "Correct the hostname when booting from volume" into stable/newton 2017-01-24 08:45:30 +00:00
Jenkins 31609af5ef Merge "For resize, we should copy and use orignal image's status" into stable/newton 2017-01-24 08:44:28 +00:00
songqianxia 3c835c17b7 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
(cherry picked from commit fda8be04dd)
2017-01-24 07:57:12 +00:00
Yi Chun Huang 1a9765bf73 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-24 07:57:03 +00:00
nafei yang 18a54034e7 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-24 07:56:44 +00:00
Huang Rui a7a695cc73 Remove version from setup.cfg
To leave pbr to manage version stuffs.

Change-Id: Ie3d5cf93e081173da66cb1bb05991d4660182fdb
2017-01-24 07:30:59 +00:00
Huang Rui 6c7c6a379b Fix migrate data object error in live migrate
Nova conductor live-migrate task utilize nova.objects.migrate_data
objects to maintain parameters through the whole live migration
process. The lagacy dict type of migrate data is no longer
supported.

Fix the un-supported migrate data error in this change.

Change-Id: If04287726aec4be11432db7410b71b13c6291783
2016-12-12 10:51:11 +08:00
songqianxia b2b6be9eff Fix issue in resize function that iucv_authrized_userid is not changed
Change-Id: I3dc8ac93d140a6012ecf5c5267229d406fb06f68
2016-11-28 18:53:57 +08:00
jichenjc b54ee15657 Bump xcat requirement version
bump to minimum 2.8.3.16

Change-Id: Ie9e5e5b67e80f4eb09bc04a9da56ac1036ce560e
(cherry picked from commit dd93fccf35)
2016-12-02 10:11:52 +00:00
biao cao 362f61890e 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-30 16:18:35 +08:00
nafei yang 559e17f6dc 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 09:40:55 +00:00
jichenjc 1309b08c84 add debug info when bad response returned
There is no info about bad response returned, need
add additional info about it .

Change-Id: I8fc3fbd43eefb69ecf4f1109e20e77cbc0809a50
(cherry picked from commit 9dba867de3)
2016-11-24 08:14:36 +00:00
songqianxia 0d3c5aa2a4 Fix the issue to change origin VM's status
Change-Id: Iba96887796527e2e31e1ad82fee68d95802be6fd
(cherry picked from commit f4e863abf1)
2016-11-24 03:09:55 +00:00
jichenjc d2cc445d20 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
(cherry picked from commit ef62c73022)
2016-11-23 12:14:17 +00:00
Jenkins 19e5a6f0e9 Merge "Wrong usage of param" into stable/newton 2016-11-21 12:45:15 +00:00
jichenjc 059f78e687 Wrong usage of param
need to adjust the param usage (instance and userid param)
in _reconfigure_networking function

Change-Id: I11e72ca3ae8abab6b1dcc7d69794641f61ba825d
(cherry picked from commit 700137a691)
2016-11-21 08:10:27 +00:00
songqianxia 43b6b368b3 Remove "management IP" concept from our code
After support IUCV, management IP is uncessary by now.

Change-Id: I5a9e6ca3f7e59144f393a9454b96599edba83405
2016-11-21 05:52:58 +00:00
Yi Chun Huang 544894f02a Ubuntu volume support - inactive attach/detach
Support volume inactive attachment/detachment functions for Ubuntu.

Change-Id: I07f6008ff409f255c49bdf24d191fdb68e9b4279
2016-11-18 10:53:48 +00:00
Huang Shi Lin bc777bd920 Fix option description
Remove misleading URL, should point to xCAT documentation, or other user
manual. Fix several typo.

Change-Id: I422dda1e223f17414a971ae27f5e65d52bd3940a
(cherry picked from commit 9b3f22daaa)
2016-11-17 02:43:38 +00:00
jichenjc 9bc6f771a9 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 12:34:57 +00:00
songqianxia 4c8895b04a Replace xdsh restapi to new execcmdonvm
Shoud work with related xcat patch.

Change-Id: I8823409c849ba7e250344742c561682cd5f8887b
2016-11-16 09:05:46 +00:00
songqianxia d0b561fc14 IUCV enablement
Add IUCV function to replace ssh communicate between xcat and VMs.
Remove size check from snapshot in driver.py

Change-Id: I7e89eeaa529f2837d774c9979699f0d8954c7511
2016-11-15 11:26:29 +08:00
Jenkins b4184b6abd Merge "fix wrong comments in power_on function" into stable/newton 2016-11-15 10:23:06 +00:00
jichenjc 10e0e38f35 add instance_exists function
instance_exists function expect an instance object input (from
compute layer) , but existing function expect an instance name
which is a string, so we need update this.

Change-Id: I032343aa3dc12d23ac5b21232e4f381a0cc4fa20
2016-11-15 05:33:52 +08:00
biao cao 9fe15cc3db fix wrong comments in power_on function
Change-Id: I6b03ff7b3e54624123375b49017e94e38accaa21
2016-11-15 05:25:11 +08:00
Jenkins 02af0e4d17 Merge "need raise exception when power on command fail" into stable/newton 2016-11-14 11:32:20 +00:00
jichenjc 9b95ad1ece need raise exception when power on command fail
we should let driver raise exception if power on command failed,
otherwise, we will wait for instance to be reachable which
will cost additional time and hide the root cause.

Change-Id: I259b589f1223766863eac5346fc7c7d30ecefd8c
(cherry picked from commit 643d35a5c1)
2016-11-14 10:54:41 +00:00
Yi Chun Huang 8f6282730f Ubuntu volume support - active attach/detach
Support volume active attachment/detachment functions for Ubuntu.

Change-Id: I425af31755130f77f509b207a9f66f655bece396
(cherry picked from commit 5bd0e60e6d)
2016-11-14 10:45:25 +00:00
Jenkins 6a7d0cb524 Merge "Raise exception when loop check failed" into stable/newton 2016-10-24 01:37:39 +00:00
jichenjc 9501be4e23 check power status use wrong function
_check_power_stat should be used instead of _get_power_stat

Change-Id: Iaca0a6cda231d671e5b82bade91bff3cdbff2548
(cherry picked from commit 9764e5802e)
2016-10-20 11:29:04 +00:00
John Arwe 1d8b26577c Collect xCAT diagnostics if a deployment times out
If the newly deployed instance is not reachable within the timeout
period, have xCAT collect diagnostics before removing deployment-related
artifacts like the directory entry.

Change-Id: I542caecd35ed62cf7bf1116d8c78812653c2ccc4
Implements: RAS
(cherry picked from commit 0a874da451)
2016-10-19 19:10:30 +00:00
jichenjc ce5737a742 Raise exception when loop check failed
when loop check failed, means network has some problem, need
raise exception so the follow on actions wont' be executed.

Change-Id: If547f679d6dcbb7a8133da05f51cb19a0999473e
(cherry picked from commit dd28dd960e)
2016-10-19 12:55:03 +00:00
Huang Rui 531683afa6 update tox.ini to run python jobs in newton env
Change-Id: I6cdf20ccd324996dd9cd8a165df4f97f9c60839a
2016-10-14 13:39:21 +08:00
Jenkins 3a1071923d Merge "Add support of cpumempowrestat" 2016-10-10 02:05:18 +00:00
jichenjc 8a6516b9ea Need another loop check if nic info not ready
if nic info not ready, need stop the loop check instead of
make wrong decision (NIC is not ready yet at that time)

so another loop check will be scheduled and do the whole
check again, dump vswitch info first then check NIC setting.

Change-Id: I1b70387f9e13899886ab0106aaa311edca8c1ff7
2016-10-04 22:07:01 +08:00
John Arwe 727a29317e Ensure OpenStack request ID is added to request, when present
The base code was checking the wrong type, which was fixed.
It also lacked tracing for error paths, which has been added.

Implements: RAS
Change-Id: I50ce0b0e20e4f2c25da6a4ed2952f45e0f6301e9
2016-09-21 15:27:56 +00:00
jichenjc a747ad0020 Fix vif.id usage
remove vif.id and vif.address usage

Change-Id: I847b617409fd17e0aa7de5ddadf12873ed67eb0b
2016-09-10 21:36:05 +08:00
Jenkins 2fe2ed1150 Merge "Performance enhance to remove couple operation." 2016-09-20 09:16:28 +00:00
Jenkins f2ecabb054 Merge "Downgrade log message from error to warning" 2016-09-14 09:50:56 +00:00
Yi Chun Huang ae65d9d55d Return default device name for volume attaching in IBM zvm env
The community logic can not return eligible device names for
volume attaching, neither detect duplicate device names, when it's
running in IBM zvm environment. IBM zvm driver should handle it
by itself.

Change-Id: Ief8adb50e56e424beee8c0beb842996d188da4fc
2016-09-12 15:42:22 +08:00
nafei yang 9b4a8e3061 Prompt error if instance name is longer than 8 charactors
Change-Id: I2d89a49946c173f24cf5a2572ad6ce1ac4b92bec
2016-09-08 15:55:17 +08:00
jichenjc 9d9fc28dba Add support of cpumempowrestat
use cpumempowerstat to get info instead cpumem, so only one
local call will be performed and enhance performance

Change-Id: I839fda0a822f5e6307c71656f9733711bb202b2b
2016-09-07 21:09:18 +08:00
Jenkins ee96e8211a Merge "Modify the default shell used in punched files" 2016-09-05 07:20:23 +00:00