Re: [Openstack] [Netstack] nova-manage network creation question
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= --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.)) Cheers, Dave. @davlaps___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [Netstack] nova-manage network creation question
Yes, until we move to handling L3 in Quantum itself (Folsom), the L3 integration in QuantumManager is pretty simple. Dan On Thu, Mar 15, 2012 at 8:51 AM, David Lapsley dlaps...@nicira.com 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= --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.)) Cheers, Dave. @davlaps ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- ~~~ Dan Wendlandt Nicira Networks: www.nicira.com twitter: danwendlandt ~~~ ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [Netstack] nova-manage network creation question
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= --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 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [Netstack] nova-manage network creation question
On Thu, 2012-03-15 at 15:14 -0400, Brian Haley wrote: 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 This does sound valid as it's the lowest lsb 1 address in the range. What is the current check supposed to prevent ?(I gather novice network users... but it seems the technology itself should prevent that.) ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [Netstack] nova-manage network creation question
Yeah, I think its fine to delete the check. Feel free to remove the check in your environment and reply back if anything else breaks -- I'll also submit a nova patch for it. Thanks, Brad On Thu, Mar 15, 2012 at 12:14 PM, Brian Haley brian.ha...@hp.com wrote: 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= --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 -- Mailing list: https://launchpad.net/~netstack Post to : netst...@lists.launchpad.net Unsubscribe : https://launchpad.net/~netstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] [Netstack] nova-manage network creation question
Hello, I removed the check, the nova-manage command runs fine now. But the gateway address was not pushing to dnsmasq. In Nova code, how does the gateway option is pushed to dnsmasq? Thanks, Yapeng On 2012-03-15, at 7:55 PM, Brad Hall wrote: Yeah, I think its fine to delete the check. Feel free to remove the check in your environment and reply back if anything else breaks -- I'll also submit a nova patch for it. Thanks, Brad On Thu, Mar 15, 2012 at 12:14 PM, Brian Haley brian.ha...@hp.com wrote: 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= --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 -- Mailing list: https://launchpad.net/~netstack Post to : netst...@lists.launchpad.net Unsubscribe : https://launchpad.net/~netstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp