cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yoshikazu Nojima (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-6072) vxlan networks not deallocating vnet ids
Date Tue, 11 Feb 2014 00:26:21 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897331#comment-13897331
] 

Yoshikazu Nojima commented on CLOUDSTACK-6072:
----------------------------------------------

Marcus, Thank you for let me know.
Your assumption seems correct.
I will try to reproduce the bug, and fix it.

> vxlan networks not deallocating vnet ids
> ----------------------------------------
>
>                 Key: CLOUDSTACK-6072
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6072
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.3.0, 4.4.0
>            Reporter: Marcus Sorensen
>            Assignee: Yoshikazu Nojima
>
> I noticed that we ran out of vxlan ids in our dev environment. It seems perhaps due to
calling 'super' in our shutdown method, but the 'super' method filters out vxlan domain types.
> ./plugins/network-elements/vxlan/src/com/cloud/network/guru/VxlanGuestNetworkGuru.java
>     @Override
>     public void shutdown(NetworkProfile profile, NetworkOffering offering) {
>         NetworkVO networkObject = _networkDao.findById(profile.getId());
>         if (networkObject.getBroadcastDomainType() != BroadcastDomainType.Vxlan || networkObject.getBroadcastUri()
== null) {
>             s_logger.warn("BroadcastUri is empty or incorrect for guestnetwork " + networkObject.getDisplayText());
>             return;
>         }
>         super.shutdown(profile, offering);
>     }
> server/src/com/cloud/network/guru/GuestNetworkGuru.java
>     @Override
>     public void shutdown(NetworkProfile profile, NetworkOffering offering) {
>         if (profile.getBroadcastDomainType() == BroadcastDomainType.Vlan &&
>                         profile.getBroadcastUri() != null && !offering.getSpecifyVlan())
{
>         s_logger.debug("Releasing vnet for the network id=" + profile.getId());
>             _dcDao.releaseVnet(profile.getBroadcastUri().getHost(), profile.getDataCenterId(),
>                     profile.getPhysicalNetworkId(), profile.getAccountId(), profile.getReservationId());
>             ActionEventUtils.onCompletedActionEvent(UserContext.current().getCallerUserId(),
profile.getAccountId(),
>                     EventVO.LEVEL_INFO, EventTypes.EVENT_ZONE_VLAN_RELEASE, "Released
Zone Vlan: "
>                     + profile.getBroadcastUri().getHost() + " for Network: " + profile.getId(),
0);
>         }
>         profile.setBroadcastUri(null);
>     }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message