harikrishna-patnala commented on issue #21: URL: https://github.com/apache/cloudstack-terraform-provider/issues/21#issuecomment-981411662
@synergiator on the first try of creating port forwarding rule, I did not find any issue it got successfully created. Then I tried few more scenarios to purposefully make it fail, so I have applied static nat on the IP and applied PF again then it failed with proper error "loudStack API error 431 (CSExceptionErrorCode: 4350): Unable to create port forwarding rule; ip id=6 has static nat enabled" Upon retry of apply PF rule I've faced the issue that you reported which is "Error: insufficient items for attribute "forward"; must have at least 1". Then I found the issue. The issue issue is, upon PF rule creation failure, provider is adding the details to terraform state. So upon retry it is not finding any difference since terraform state already has it. I'll work on this to fix the issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org