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
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
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
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
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
add comments to describe the reason of adding semaphore and simply
introduce the problem to solve for future reference
Change-Id: I5dd03f5d47264df8a1bb8c3ed21b79407f867210
use a semaphore from eventlet to syschronize the image shared
between instances while booting an instance
Change-Id: I115e4f0c1686aa999a549d918df267c0459766a3
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
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
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
we should raise nova exception so during build, nova
compute know it's a invalid image and stop retry
Change-Id: Id106d2c70fd12ffbd924ab20cd4022a3a9899f17
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
commit 41bf42a393b1be0ef36de11e47bf649f3f8cf9f8
added context param to confirm_migration, we need add it as
well
Change-Id: I3e414c2e263e32a64134c10f955cc26ad8e60782
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
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
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
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
Remove misleading URL, should point to xCAT documentation, or other user
manual. Fix several typo.
Change-Id: I422dda1e223f17414a971ae27f5e65d52bd3940a