During nova-powervc service startup, if the flavor sync
fails for some reasons, the code is blowing up causing
the service to get restarted abruptly. This fix is
to handle the same.
Change-Id: I3ce98153d0d3c0e184fd5ae44d7f0e54c19cebe2
Closes-Bug: #1819873
Signed-off-by: Arun Mani <arun.mani@in.ibm.com>
This is due to the changes made to handle the
community change where V1 glance API got removed
with Queens release of openstack. And, with V2
the response format has changed returning fewer
properties.This bug is to fix the issue related
to missing custom properties and add them back
to be displayed to the user.
Change-Id: I116ad05b00de6e94cf6c507dbcffa607b916fc42
Closes-Bug: #1814739
With the Queens release of Openstack, the community removed the
support for v1 glance API. Thus, we need to fix the corresponding
implementation in the PowerVC Driver using glance v1 calls to v2 calls.
As part of these changes, we've removed all the v1 glance client calls
to v2, and also observed that the response format has changed as well
and these changes should address all of that.
Change-Id: Ic76bad59ba3da7178acaeeb093113358e50c6169
Closes-Bug: #1783096
Update the keystone version check logic to use version
attribute to detect the keystone version. The current
check breaks the driver sync logic if the attribute
isn't present in the keystone client object.
Change-Id: I271f39b320aec080e84c47b41b53d32be6879af2
Closes-Bug: #1754589
Update the if check in nova sync code to return instance
flavor from powervc, if the call to get the same from db
failed for some reasons. Also, update the keystone version
check in the common package.
Change-Id: Iafc489ad723ef6732bddda029f1976204deef37d
Closes-Bug: #1742377
When process of powervc-drver connecting keystone failed, it would
give the error message in factory.py, but message objects do not
support str(), so it needs to be modified by using unicode.
Change-Id: I45bbb488300a5fe5c4e4f71265c3abacd775f41d
Closes-Bug: #1730356
When multiple heat stack deployments are submitted, there
is mismanagement of IP assigned and heat stack fails with
duplicate IP report. The time to sleep to avoid race condition
in such cases seems too less, and it was found that increasing
the same works better in such case.
Change-Id: I5cd6ac008f9160e35a3e70c831f8f151d0825458
Closes-Bug: #1724302
Add project_id kwarg as part of the call to deduct quotas
during unregister volume. This will make sure the
deduction happens for the correct project to which
the volume actually belongs to in ICM.
Change-Id: Ib0596aef1b2fde4da0c8164141d39dae2ece4c94
Closes-Bug: #1712093
boot instance with server name case insensitive, it should use
display_name which is case sensitive rather than hostname.
Change-Id: I742d83236ea3268fc64629e48c08f02562c7b11a
Closes-Bug: #1628404
Remove setting first scg id to boot parameter,
or this will fail in mult-scg environment.
Change-Id: I4e7349a2f5b6cbb6f59b629841442c9b8efe2fe4
Closes-Bug: #1608395
Fix for volume description is moved from property "display_description"
to "description" for master Edit
Change-Id: I566fb3c18823552becc267be5f0dd31d52694df5
Closes-Bug: #1545973
By default we use the host and available zone that ICM chooses, now I
will change it to the design that "Ignore the host that ICM selected,
defer it to powervc scheduler".
Change-Id: Ieaa53ebc425452ac5bad73441a32862373e456b9
Closes-Bug: #1538452
Nova booting a vm and neutron creating new port would race the port.
If the neutron creates the port before booting vm,
the booting process would be failed as ip/port locked.
Change-Id: Ib5dbbb0b2fbcca17961cddcf983d70779a4dfecd
Closes-Bug: #1505952
This is a test checkin to verify git process success that move the
repository from stackforge to openstack.
Change-Id: Ie79f79ce6428c517f20d8602ef8d1016ea9796fa
Closes-Bug: #1507455
List all resources across different service by adding "all-tenant"
when call restAPI
Change-Id: Ie29e0bac6fa4c3fe4b771489a722b6712edc3a28
Closes-Bug: #1496781
Cinder duplicated volume deletion, which will cause multiple quota
deduction.
Change-Id: I5e970cdb682abac51599b4da93b325fc0707c8f5
Closes-Bug: #1494561
Catch quota reserve exception to avoid function break,
and catch get_info() excption to avoid startup break.
Change-Id: If2f8f535caeef81264f323df73927f0cfb4ecfb2
Closes-bug: #1493726
quotas are not updated when the volumes/instances are synced from
powervc side, this fix help to sync the quota during sync resources
from powervc side, increase quota when insert to local resource,
deduct quota when delete local resources.
Change-Id: Ic5a77e7d154b247d253db19d59ee66a7aa473995
Closes-Bug: 1493232
This bug tracks the implementation for volume sync and create/attach/detach
for multiattach function. Host status update also fixed along with this bug.
Change-Id: I45a776775473818c75388c3554664982849c4fae
Closes-Bug: #1491723
Quotas are not properly updated initially for on-boarded VMs from PowerVC,
when using powervc driver, need to commit quota after insert a pvc instance
when sync from powervc side.
Change-Id: I29916631129f9c3c1bb25b7fda947668328c57fd
Closes-Bug: #1472845
From PBC, the customer encounter below error:
1. Create a volume in ICM
2. Update PowerVC UUID in cinder volume metadata, in the mean time,
PowerVC volume created, end event comes.
3. Check if PowerVC UUID set in volume metadata, but there is
Time window issue here, sometimes db update not reflect
immediately, so no PVC UUID found , and create a duplicated
volume by mistake.
Change-Id: I4e5546034dbf3ff50c2db588e948818431a665c6
Closes-Bug: #1472126
PowerVC 1.2.3 added complex boot/data volume concepts and it's image
accessible storage connective group's volume type API will return all
volume types for boot and data volume, we expose the PowerVC storage
templates in image's image-topology property and that property need only
include the bootable storage templates based on PowerVC 1.2.3 introduced
boot/data volume concept as we just expose the volume only for boot
volume at this time. The fix is just to exclude the SCG accessible
storage template via it's
['extra_specs']['capabilities:volume_backend_name'] property, and only
include the the storage template with such property value in SCG's
boot_providers list which means that volume type is a bootable volume
types. If SCG does not have such boot_providers property, then we just
ignore such checking.
Close-Bug: #1460563
Change-Id: Ifa608a514ec70b831d04802b728dff14864578ab
The neutron-powervc is a debug utility for powervc-driver's neutron rpc
service. It's broken with neutron kilo level code
Close-Bug: #1457752
Change-Id: I57101bcdccaa470fea01c8a4abacc1f694abca9b
Block device mapping object mismatches with the latest community API,
which causes the sync problem.
Change-Id: I1e5059b1fb6f98e73b5fabbeb839a3281f8f29b5
Closes-Bug: #1455331
There is something wrong with volume v1 api to get volume detail info,
need to use volume v2 client instead of v1 to get local volume.
Change-Id: I76d067d2b1ee13c363dd5c22332d99d277c83f47
Closes-Bug: #1453358
Tempest failed due to openstack interface changed, fix it as replace all
unused driver method parameters with "*args, **kwargs"
Change-Id: I25c7e0f0eee7c8d16ac4de4e5918fa690544e33c
Closes-Bugs: #1451717
vm update failed due to nova api removed, need to use
instance object API instead
Change-Id: I5bdac5ec6b6af3340d3af3aff0cd4ae4859bd442
Closes-Bug: #1451131
From the latest ICM, versions are stripped from image service,
only ip:port left, in this case only "CURRENT" status client can be
retrieved, that is to say, for image service only v2.3 url returned
but v1.1 is lost, this will fail glance sync progress as both of
v2.3 and v1.1 are necessary, add this workaround to fix the problem.
Change-Id: I2723ae80654a2daffe7e3f7af0dbf73843bbfea2
Closes-Bug: #1450974