You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Jijun <ji...@gmail.com> on 2013/08/30 02:35:49 UTC

Fwd: no Public Network exist in Advance Zone with Security Group enabled

hi all,

now we try to add advance zone , shared network offering with security
group  enabled.

but in the UI when click the next step we can not choose the public
network.

when vm created , cpvm , ssvm  will get a public ip address from guest network.


is there any design considerations?






-- 
Thanks,
Jijun




Re: no Public Network exist in Advance Zone with Security Group enabled

Posted by Wei ZHOU <us...@gmail.com>.
If there are multiple guest network, CloudStack will assign a IP in the
first guest network to systemvms as the public IP.
We can add a global configuration to set the network uuid of the systemvms.


in com.cloud.network.NetworkManagerImpl.setupNetwork(Account,
NetworkOffering, Network, DeploymentPlan, String, String, boolean, Long,
ACLType, Boolean, Long)

                List<NetworkVO> configs =
_networksDao.listBy(owner.getId(), offering.getId(),
plan.getDataCenterId());
                if (configs.size() > 0) {
                    if (s_logger.isDebugEnabled()) {
                        s_logger.debug("Found existing network
configuration for offering " + offering + ": " + configs.get(0));
                    }
                    if (errorIfAlreadySetup) {
                        InvalidParameterValueException ex = new
InvalidParameterValueException("Found existing network configuration (with
specified id) for offering (with specified id)");
                        ex.addProxyObject(offering, offering.getId(),
"offeringId");
                        ex.addProxyObject(configs.get(0),
configs.get(0).getId(), "networkConfigId");
                        throw ex;
                    } else {
                        return configs;
                    }
                }


2013/8/30 Jijun <ji...@gmail.com>

>
> hi all,
>
> now we try to add advance zone , shared network offering with security
> group  enabled.
>
> but in the UI when click the next step we can not choose the public
> network.
>
> when vm created , cpvm , ssvm  will get a public ip address from guest
> network.
>
>
> is there any design considerations?
>
>
>
>
>
>
> --
> Thanks,
> Jijun
>
>
>
>