You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "saffronjam (via GitHub)" <gi...@apache.org> on 2023/12/20 15:05:01 UTC
[I] Port forwarding rules gets the same public port when creating port forwarding rules with CloudStack's API [cloudstack]
saffronjam opened a new issue, #8386:
URL: https://github.com/apache/cloudstack/issues/8386
##### ISSUE TYPE
* Bug Report
##### COMPONENT NAME
~~~
API for Virtual Router Port forwarding rules
~~~
##### CLOUDSTACK VERSION
~~~
4.18.1
~~~
##### CONFIGURATION
Isolated network Source NAT with redundant router

##### OS / ENVIRONMENT
Ubuntu 22.04
My client is the Go client for CloudStack's API
##### SUMMARY
Using the API I was able to create, what I think, is a race-condition for port forwarding rules that is not handled by the API. Two port forwarding rules ended up with the same public port, even though I should have received an error such as:
"The range specified, 2502-2502, conflicts with ... ".

##### STEPS TO REPRODUCE
~~~
Using the API create 2 port forwarding rules with same public port (for 2 different VMs in my case).
~~~
##### EXPECTED RESULTS
~~~
Conflict error, that I can handle in my client using the CloudStack API.
~~~
##### ACTUAL RESULTS
~~~
Two port forwarding rules created, with the same public port, for different VMs. Only one of them works of course.
~~~
--
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: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Port forwarding rules gets the same public port when creating port forwarding rules with CloudStack's API [cloudstack]
Posted by "saffronjam (via GitHub)" <gi...@apache.org>.
saffronjam commented on issue #8386:
URL: https://github.com/apache/cloudstack/issues/8386#issuecomment-1891840835
Hi Daan,
Sorry about the delay. Right now, I am unable to replicate this, and it could have been caused by some bad state in the router maybe? I will reopen this issue if I am able to reliably replicate the issue.
As a solution on our side though, we added a Mongo database layer between, with a unique index, to ensure the port forwarding rules are unique.
You can probably close this issue for now.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Port forwarding rules gets the same public port when creating port forwarding rules with CloudStack's API [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #8386:
URL: https://github.com/apache/cloudstack/issues/8386#issuecomment-1870927504
@saffronjam do you have a script for this (code fragment?) and do you have a work around to get you going?
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Port forwarding rules gets the same public port when creating port forwarding rules with CloudStack's API [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #8386: Port forwarding rules gets the same public port when creating port forwarding rules with CloudStack's API
URL: https://github.com/apache/cloudstack/issues/8386
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org