Closed john-kheir closed 6 years ago
@john-kheir , does the port forward get created despite the error?
I had similar error today on be-gen-1
, the port was created, but still error is returned in response of self.client.api.cloudapi.portforwarding.create
. However, I couldn't reproduce the same on be-g8-3
.
@john-kheir, can you give more details on how to reproduce this? I have created a vm on ovc 'manually' and added a portforwarding to 2200 after which I executed my bpto create a node/machine and it successfully created the vm and added portforwarding to 2201.
edit: Been able to reproduce by creating multiple machines/nodes.
Also normally your exception shouldn't be raised in your case as that exception is caught and in case of 409 Conflict
, portforward_create
would be called recursively here:
https://github.com/Jumpscale/lib9/blob/development/JumpScale9Lib/clients/openvcloud/Machine.py#L235
But I also see publicport
needs to be None
for the recursion call to happen which I don't think is ever the case. See:
https://github.com/Jumpscale/lib9/blob/development/JumpScale9Lib/clients/openvcloud/Machine.py#L212
And I think @katia-e's error is caused by BdbQuit (were you runnning with (i)pdb.set_trace()
?) so not related to this issue.
fixed
Blueprint
Error
ipdb> task.state 'error' ipdb> task.eco.printTraceback()