Pearl1594 commented on code in PR #14803:
URL: https://github.com/apache/cloudstack/pull/14803#discussion_r4673281696


##########
server/src/main/java/com/cloud/network/NetworkServiceImpl.java:
##########
@@ -1283,6 +1283,26 @@ private void publishAssociationUsageEvent(VirtualMachine 
vm, NicVO nic, NetworkV
                 VirtualMachine.class.getName(), vm.getUuid(), nic.getId(), 
network, 0L, vm.isDisplay());
     }
 
+    // The association is already committed and billed by now, so an 
unreachable router must not fail the call;
+    // the entry is re-synced on the Instance's next start 
(UserVmManagerImpl.finalizeStart).
+    private void pushDhcpEntryForAssociationBestEffort(VirtualMachine vm, 
NicVO nic, NetworkVO network) {
+        try {
+            pushDhcpEntryForAssociation(vm, nic, network);
+        } catch (ResourceUnavailableException e) {

Review Comment:
   its best effort anyway, so can be left as is.



-- 
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