kanagarajb0720 opened a new issue, #10566:
URL: https://github.com/apache/cloudstack/issues/10566

   ### problem
   
   If an account has reached its public IP address limit, when we attempt to 
enable static NAT for an already acquired public IP in VPC network results in 
an error. The error logs indicate that the account has exceeded its limit.
   
   Also enabling static NAT for the already acquired Public IP address in the 
Isolated network works fine.
   
   
   Error Log:
   
   ~~~
   2025-03-04 22:04:54,197 ERROR [c.c.n.IpAddressManagerImpl] 
(qtp1404565079-40920:[ctx-d414f824, ctx-1f564ff0]) (logid:71e1cb69) Failed to 
associate ip address Ip[103.244.247.49-1] to network Network {"id": 562, 
"name": "testLab", "uuid": "ec7f21a6-f7d9-4374-8d86-b8473367c71d", 
"networkofferingid": 13} com.cloud.exception.ResourceAllocationException: 
Maximum amount of resources of Type = 'public_ip', tag = 'null' for Account 
Name = [email protected] in Domain Id = 8 is exceeded: Account Resource 
Limit = 6, Current Account Resource Amount = 6, Current Account Resource 
Reservation = 0, Requested Resource Amount = 1.
   ~~~
   
   
   ### versions
   
   ACS 4.20
   
   ### The steps to reproduce the bug
   
   1. Create an account with a public IP address limit of 2. 
   2. Obtain all available public IP addresses within the account until the 
limit is reached in the VPC network  
   3. Enable Static NAT for the acquired public IP addresses to an instance
   4. Getting the below error when the limit for the account has been reached.
   
   
![Image](https://github.com/user-attachments/assets/2fd27ddc-47f3-4020-a5f6-e10bf5f14ddc)
   
   ### What to do about it?
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to