cloudstack/plugins
Marcus Sorensen 8785f781b6
Ignore calls to PowerFlex for host revocation when host is null (#6742)
This PR Fixes #6739 (for PowerFlex/ScaleIO only, Datera still needs to be addressed), which can occur if the last host the VM ran on is deleted from CloudStack. At the point the VM is deleted, cloudstack attempts to make a final call to revoke access to volumes, passing the last host the VM ran on. If this host is gone, we get an error and are unable to delete the VM.

It's possible that there may be a more holistic fix to this by identifying all of the places where revokeAccess() is called and checking for null host. It's possible other storage plugins don't even need host information to revoke access to volumes and may need this call to revoke. Therefore I'm only applying this fix to the ScaleIOPrimaryDataStoreDriver to skip revoking access when there is no host to revoke access for, and this should protect us as well when a new part of the code tries to use revokeAccess() in the future.

Signed-off-by: Marcus Sorensen <mls@apple.com>
Co-authored-by: Marcus Sorensen <mls@apple.com>
2022-10-08 07:19:19 +05:30
..
acl Improve login time (#6412) 2022-07-20 11:30:17 +05:30
affinity-group-processors Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
alert-handlers Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
api Merge remote-tracking branch 'origin/4.17' 2022-09-12 21:30:03 +05:30
backup Fixed Veeam listing restore points (#6555) 2022-08-10 16:59:10 +05:30
ca/root-ca Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
database Fix min balance for API quotaCredits to be optional (#6691) 2022-09-14 12:51:03 +05:30
dedicated-resources Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
deployment-planners Fix spelling (#6597) 2022-08-03 15:43:47 +05:30
event-bus Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
host-allocators/random Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
hypervisors UserData as first class resource (#6202) 2022-10-05 17:34:59 +05:30
integrations UserData as first class resource (#6202) 2022-10-05 17:34:59 +05:30
metrics Merge remote-tracking branch 'origin/4.17' 2022-09-12 21:30:03 +05:30
network-elements UserData as first class resource (#6202) 2022-10-05 17:34:59 +05:30
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30
storage Ignore calls to PowerFlex for host revocation when host is null (#6742) 2022-10-08 07:19:19 +05:30
storage-allocators/random Added new logs to volume creation (#6689) 2022-09-26 19:11:14 -03:00
user-authenticators Fix spelling (#6597) 2022-08-03 15:43:47 +05:30
pom.xml Updating pom.xml version numbers for release 4.17.0.1 2022-07-15 18:18:40 +05:30