cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tutkowski, Mike" <>
Subject Can't create a zone using master
Date Tue, 14 Feb 2017 21:44:41 GMT

I’m getting a NullPointerException when trying to create a zone using master.

Below is the relevant code in ConfigurationManagerImpl.

In the else block, network.getCidr() returns null and NetUtil.getCidrNetmask then throws a

I noticed that network.getGateway() also returns null (which seems odd).

Thoughts on this?


public Pair<Boolean, Pair<String, String>> validateIpRange(final String startIP,
final String endIP, final String newVlanGateway, final String newVlanNetmask, final List<VlanVO>
vlans, final boolean ipv4,
        final boolean ipv6, String ip6Gateway, String ip6Cidr, final String startIPv6, final
String endIPv6, final Network network) {
    String vlanGateway = null;
    String vlanNetmask = null;
    boolean sameSubnet = false;
    if (CollectionUtils.isNotEmpty(vlans)) {
        for (final VlanVO vlan : vlans) {
            vlanGateway = vlan.getVlanGateway();
            vlanNetmask = vlan.getVlanNetmask();
            sameSubnet = hasSameSubnet(ipv4, vlanGateway, vlanNetmask, newVlanGateway, newVlanNetmask,
startIP, endIP,
                    ipv6, ip6Gateway, ip6Cidr, startIPv6, endIPv6, network);
            if (sameSubnet) break;
    } else {
        vlanGateway = network.getGateway();
        vlanNetmask = NetUtils.getCidrNetmask(network.getCidr());

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message