[Openstack] [Neutron][HyperV]HyperV Networking Problem

Ray Sun xiaoquqi at gmail.com
Thu Oct 10 10:36:14 UTC 2013


Dear all,
I am trying to test HyperV with OpenStack in Quantum VLAN model. But seems
the network can't be reachable.

*I use devstack to install my controller, by default, I use stable/grizzly
branch. Here's my localrc file:*
*disable_service n-net*
*enable_service q-svc*
*enable_service quantum*
*enable_service q-dhcp*
*enable_service q-l3*
*
*
*MULTI_HOST=True*
*
*
*PUBLIC_INTERFACE=eth1*
*FLOATING_RANGE=200.21.0.80/28*
*
*
*ENABLE_TENANT_VLANS=True*
*TENANT_VLAN_RANGE=1000:1999*
*PHYSICAL_NETWORK=default*
*OVS_PHYSICAL_BRIDGE=br-eth1*

*Then I create a new
file /etc/quantum/plugins/hyperv/hyperv_quantum_plugin.ini*
*[DATABASE]*
*sql_connection = mysql://root:admin@localhost/hyperv_quantum?charset=utf8*
*
*
*[HYPERV]*
*tenant_network_type = vlan*
*network_vlan_ranges = default:1000:2999*
*
*
*[SECURITYGROUP]*
*firewall_driver =
quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver*

*To avoid security groups problem, I also update nova.conf:*
*firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
*
*
*
*The I restart nova-api service and modify quantum server command line,
using:*
*cd /opt/stack/neutron && python /opt/stack/neutron/bin/quantum-server
--config-file /etc/quantum/quantum.conf --confifile
/etc/quantum/plugins/hyperv/hyperv_quantum_plugin.ini
*
*
*
*Everything seems ok except these logs:*
2013-10-10 18:09:02    ERROR [quantum.openstack.common.rpc.amqp] Exception
during message handling
Traceback (most recent call last):
  File "/opt/stack/neutron/quantum/openstack/common/rpc/amqp.py", line 430,
in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)
  File "/opt/stack/neutron/quantum/common/rpc.py", line 43, in dispatch
    quantum_ctxt, version, method, **kwargs)
  File "/opt/stack/neutron/quantum/openstack/common/rpc/dispatcher.py",
line 136, in dispatch
    raise AttributeError("No such RPC function '%s'" % method)
AttributeError: No such RPC function 'report_state'

*But I don't think this will impact me, I remember I saw this bug on the
lanchpad, I follow the most introduction of the document:*
*http://www.cloudbase.it/quantum-hyper-v-plugin/*

After I finished all the steps, I tried to create a new instance using a
private network. I got my VM(Ubuntu) ready but without network connection.
As the pictures shown in the document above, I also got an external NIC
with VLAN id 1001 for the new VM.

Seems DHCP can not assign ip for the new VM.

*I try to tcpdump on my controller of my new VM's mac address, and I got:*
*    0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP,
Request from fa:16:3e:25:7a:73 (oui Unknown), length 300, xid 0x880a075d,
Flags [none] (0x0000)*
*  Client-Ethernet-Address fa:16:3e:25:7a:73 (oui Unknown)*
*  source link-address option (1), length 8 (1): fa:16:3e:25:7a:73*

But in my syslog of controller, I can't see any dhcp related logs.

My questions is:
1. In my local network we have 3 VLANs(id is 1, 2, 3), do I need to set new
VLANs based my configuration for quantum(1000:1999) on my hardware?
2. Do I need to setup any trunk port in my connection ports?
3. Can I use any other network type like Flatdhcp, even or nova-network for
simple?

Thanks.

Best Regards
-- Ray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131010/bafddcb5/attachment.html>


More information about the Openstack mailing list