cinder introduced a new status 'reserved' for volume.
It means that volume has reserved for attaching.
Cause AWS doesn't know such status then we need to convert
it to status 'attaching'.
Change-Id: I84ee29eefc8a9db3982c61820e2cf72a56946132
removed NovaEngine in addresses, availability_zones, instances, security_groups
removed unit tests for NovaEngine
disabled some unit tests using NovaEngine for further reworking
Closes-bug: #1691484
Change-Id: I662d5b57b9e46be80c1d2093038ada83897565eb
The i18n team has decided not to translate the logs because it seems
like it not very useful; operators prefer to have them in English so
that they can search for those strings on the internet.
See http://lists.openstack.org/pipermail/openstack-dev/2017-March/thread.html#113365.
Change-Id: I4418a388934ef58acb70c7f637b0236a6ccc7fe6
Closes-Bug: #1682101
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: Ib7ad61bac89e14561719434085b63cbad7e9a9be
current devstack deploys glance version '2' only.
use it.
messages in keystone's exceptions was changed.
fix unit tests that checks it.
Change-Id: I7ed1f0ff518efa374a5e3b693c5785958c77340d
Nova does not allow None values for bdm fields. However it stores them
in image metadata for volume bdm during snapshot operation of volume
backed instance. Ec2Api sends them back to Nova during run instance
operation, which violates Nova's restriction.
Here we cut out None values from image bdms before use it.
Change-Id: Ice913c935e288f1cb615443324c05ca3c31efca6
1) fix bug with filtering
filters were applied before unpaired items is added to result
2) fix races in default security group creation
3) add waiter for associate/disassociate address
4) fix security group classic test
it should choose default group group only from classic groups
5) fix describe_vpc_with_filters test
it can run in parallel with other test with same CIDR
6) fix networks list for instance run at subnet creation/deletion
7) fix selective decsribe by names
it should not delete valid items from db
Change-Id: Iadadefb8b4abebbb3b8efc0e536e5de30ed23dab
fix working with strings for metadata server,
for some instance properties and for errors.
do some magic with types/encoding.
Change-Id: I2446fc48b51dd903a719aa4dbb1a5556af19e5df
it can't be imported due to gloval variable uses
iterkeys/iteritems of dictionary in instance module
Change-Id: I739d8d73c4a9bed0ad866bd667955fa3ce92fc8b
This conversion affects only non blank source type bdms. Because that
it's better to use that fact explicitly.
Also improve comments in the function.
Change-Id: I64337d441f3289e36b7861d57d4a94eea8aa1447
If a user specifies several bdms with the same name, the last specified
bdm should only be considered. This affects all API's methods having bdm
list in parameters.
Change-Id: I31f466065dbacbd53b70ba9865bce3005d8b1f0a
Amazon changes instance type immediately and returns when instance
in 'stooped' state. But our code can return when instance in
'resized' state and then can't start it. So this patchset adds some
waiting after confirm_resize to ensure that instance in right state.
Change-Id: I6ddeace63a3c448281ec17d1788c1eb22c594116
Implement AWS feature which allows a user to adjust bdm specified in an
image. The feature is used with boot operation by specifying changed
device attributes with the device name.
Change-Id: Ifb9c215527cd84a60f21ab73fee672928b604300
Currently this function set default values for certain bdm attributes,
such as delete_on_termination, or boot_index. Also it returns mappings
wich is not fully bdm v2 compatible. This prevents to use it for wide
range of purposes.
This patch make the function to return fully bdm v2 compatible mapping
with only passed (and unambiguously calculated) attributes are set.
Change-Id: I4a5ec244cc1d41855128090127a3b0fa266891c0
1 type of min and max count is now checked by validator, therefore the
check in certain api level isn't needed
2 actualize TODO about security group
3 fix style
Change-Id: I8cae95a44c7fc2e6e4b9fbc183806f09b9e9df0f
1 Add optional receiving instance_id as a list of id with single id
2 Encode console output and password data
There is one more Depends-On which we can't wait for so it's purely
informational: Depends-On: I36ef88a561e60fb5dc3e687cb8bc02b27ec2e814
Depends-On: I711314408ec7c4ea75f93348a7335843713e9a2b
Change-Id: I0d62238bbf3a549344d578e131e8be9b3f268cf1
also fake result for 'disableApiTermination' added
in DescribeInstanceAttribute. One of next reviews will add this
functionality.
fix botocore version to 0.103
version 0.104 returns some inconsistent information
Change-Id: I581e803a57c9ee63e873308c0f08cd7cf2158230
Changed mapping of DELETED->TERMINATED VM state to
DELETED->SHUTTING DOWN. It allows clients to wait until instance
completely disappears, while now they might take action when
some of it's parts still do exist.
It was found as a race during instance termination.
Change-Id: Idb146ef4acdb3cca005b252277f89b72ba9da304
merged from Ifb5cb05b9cc2b8758d5a8e34f7792470a73d7c40
PEP-0274 introduced dict comprehensions to replace dict constructor
with a sequence of length-2 sequences, these are benefits copied
from [1]:
The dictionary constructor approach has two distinct disadvantages
from the proposed syntax though. First, it isn't as legible as a
dict comprehension. Second, it forces the programmer to create an
in-core list object first, which could be expensive.
Nova dropped python 2.6 support, we can leverage this now.
There is deep dive about PEP-0274[2] and basic tests about
performance[3].
Note: This commit doesn't handle dict constructor with kwagrs.
This commit also adds a hacking rule.
[1]http://legacy.python.org/dev/peps/pep-0274/
[2]http://doughellmann.com/2012/11/12/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7-2.html
[3]http://paste.openstack.org/show/154798/
Change-Id: I1bc53e335b6c291da5c54f067f9fdfd5da6b2902