Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to destroy an unrevoked key #678

Open
gracelombardi opened this issue Jul 25, 2022 · 1 comment
Open

Error when trying to destroy an unrevoked key #678

gracelombardi opened this issue Jul 25, 2022 · 1 comment

Comments

@gracelombardi
Copy link
Collaborator

When running TestProxyKmipClientIntegration any key that hasn't been revoked first can not be destroyed and the test fails

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/lombagr1/Dev/PyKMIP/kmip/tests/integration/services/test_proxykmipclient.py", line 108, in test_create_get_wrapped_destroy
    self.client.destroy(wrapping_id)
  File "/home/lombagr1/Dev/PyKMIP/kmip/pie/client.py", line 41, in wrapper
    return function(self, *args, **kwargs)
  File "/home/lombagr1/Dev/PyKMIP/kmip/pie/client.py", line 1193, in destroy
    raise exceptions.KmipOperationFailure(status, reason, message)
kmip.pie.exceptions.KmipOperationFailure: OPERATION_FAILED: PERMISSION_DENIED - Object is active and cannot be destroyed.
@MahmoudMansourr
Copy link

I think you need to to revoke the managed object(key) first before destroying it.
quote from the documentation "Activated objects must be revoked before they can be destroyed."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants