Created attachment 1246915 [details]
remove key pair
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Cloud ec2 keys are imported into CFME and is shown under Compute - cloud - key pair
2. Attempt to delete , shows message .
3. Remove key pair should be disabled for keys that cannot be deleted through CFME
Removing RFE, if a button is enabled when its not supported, that is a bug.
Created attachment 1247932 [details]
"remove key pair" is present in detail screen too.
It looks like we need support_feature mixin changes to return whether delete is available for selected KeyPair record or not.
What's a scenario when a key pair shouldn't be deleted?
Key pairs are imported from cloud providers .
User created key pair can be deleted but imported ones cannot be deleted from Cloudforms .
So the button "remove key pair from inventory" should be disabled.
PR for this https://github.com/ManageIQ/manageiq-ui-classic/pull/4061. Is this the kind of action you were expecting Shveta?
Yes Julian ,Looks good .
Why is it that imported key pairs, i.e. ones created in AWS cannot be deleted in CF?
Does CF not then delete the key pair from AWS too?
Hi Julian ,
As of now the Key created in AWS cannot be deleted from CF.
Not sure if development plans to support that in the future .
Fixed in 220.127.116.11.20190402144650_62f3960