CLOUDSTACK-9595: Fix regression introduced in #1762#2370
Conversation
The `assignDedicateIpAddress` previously had marked the newly fetched IP as allocated but now it does not do that. This fails for VPCs where SNATs IP are retained as allocating and not allocated after creation. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
|
||
| return fetchNewPublicIp(dcId, null, null, owner, VlanType.VirtualNetwork, guestNtwkId, isSourceNat, false, null, false, vpcId, displayIp); | ||
|
|
||
| ip = fetchNewPublicIp(dcId, null, null, owner, VlanType.VirtualNetwork, guestNtwkId, isSourceNat, true, null, false, vpcId, displayIp); |
There was a problem hiding this comment.
You can return directly the call to fetchNewPublicIp.
I have not checked. What is that boolean flag you changed there?
There was a problem hiding this comment.
@rafaelweingartner actually there is a ip variable that is used in finally which is why I assign and then return see the code below this line.
There was a problem hiding this comment.
ok, now I saw it.
Thanks
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1436 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@rhtyd Code changes are fine LGTM for code |
|
Thanks for confirming @yvsubhash, I'll merge the fix once test results arrive. |
|
Trillian test result (tid-1839)
|
|
Tests LGTM, the new vpc vpn failure is due to create vpn user failing. I'll merge this based on tests and two code reviews. |
The
assignDedicateIpAddresspreviously had marked the newly fetchedIP as allocated but now it does not do that. This fails for VPCs
where SNATs IP are retained as allocating and not allocated after
creation.
@yvsubhash @rafaelweingartner and please review.
@blueorangutan package