Open
Description
Describe the bug
An error 500 with the message 'Internal Server Error' is displayed when I attempt to initialize a confidential VM with confidential-init-session
, after this command has been used with an invalid secret.
To Reproduce
- Initialize a valid CocoVM with an invalid secret using:
aleph instance confidential-start 79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d https://dchq.staging.aleph.sh
- (Optional) Confirm that the VM does not boot correctly from its logs:
aleph instance logs 79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d https://dchq.staging.aleph.sh
- Call the function again.
aleph instance confidential-start 79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d https://dchq.staging.aleph.sh
This raises:
ValueError: HTTP error during operation confidential/inject_secret: 500, message='Internal Server Error',
url=URL('https://dchq.staging.aleph.sh/control/machine/79724e4cba21ac034b1877e83b612db05edaf82aa8a66ee044fd788bfca8d00d/confidential/inject_secret')
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f5c91a81be0>
ERROR:asyncio:Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f5c91020bf0>, 86003.521419744)]']
Expected behavior
Instructions on what to do to resolve the situation.