[Openstack] [Netstack] nova-manage network creation question

Brian Haley brian.haley at hp.com
Thu Mar 15 19:14:36 UTC 2012


On 03/15/2012 11:51 AM, David Lapsley wrote:
> On Mar 15, 2012, at 11:43 AM, Yapeng Wu wrote:
> 
>> Hello,
>>
>> I followed the quantum-admin-guide document to create the network by using: 
>> "nova-manage network create --label=tenant-private
>> --fixed_range_v4=192.168.1.0/24 --project_id=xxxx --priority=1
>> --gateway=192.168.1.254"
>>
>> I got error caused by:
>> https://github.com/openstack/nova/blob/master/nova/network/quantum/manager.py#L194
>>
>>
>> Could some one confirm that if Quantum network ONLY supports gateway address:
>> x.x.x.1 format?
> 
> Hi Yapeng:
> 
> That is correct. We explicitly check in nova.network.quantum.manager.QuantumManager
> 
>         if gateway is not None and len(gateway) > 0:                            
>             if gateway.split('.')[3] != '1':                                    
>                 raise Exception(_("QuantumManager requires a valid (.1)"                                 
>                               " gateway address."))  

Can you just delete that check?  I'm running a Diablo cluster with a /27 where
.129 is the gateway (it's the lowest address in the subnet), which is a
perfectly valid IP address :)

-Brian




More information about the Openstack mailing list