<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hi Zhang,</p>
<p>Thanks.</p>
<p>I'm using QEMU emulator version 1.0 (qemu-kvm-1.0)</p>
<p>I'm also getting a warning in /var/log/libvirt/libvirtd.log when the instance starts up:</p>
<p>2013-06-19 02:44:45.827+0000: 2170: warning : x86Decode:1347 : Preferred CPU model SandyBridge not allowed by hypervisor; closest supported model will be used<br />2013-06-19 02:44:46.640+0000: 2170: warning : virCgroupMoveTask:887 : no vm cgroup in controller 3<br />2013-06-19 02:44:46.640+0000: 2170: warning : virCgroupMoveTask:887 : no vm cgroup in controller 4<br />2013-06-19 02:44:46.640+0000: 2170: warning : virCgroupMoveTask:887 : no vm cgroup in controller 6</p>
<p>Cheers,<br />Tudor. </p>
<p>On 2013-06-19 11:47, Hua BJ Zhang wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p><span style="font-family: sans-serif; font-size: x-small;">Hi tudor,<br /></span><br /><span style="font-family: sans-serif; font-size: x-small;">     seems that your vm doesn't have the nic. so suggest you check the log of hypervisor.</span><br /><br /><span style="font-family: sans-serif; font-size: x-small;">     which type of hypervisor are you using? qemu? pls make sure upgrade the qemu version into 0.15 just from my experience.</span><br /><br /><span style="font-family: sans-serif; font-size: x-small;"> </span><span style="font-family: sans-serif; font-size: x-small;">   </span><span style="font-family: serif; font-size: small;"> sudo yum -y install <a href="http://mirror.centos.org/centos/6/os/x86_64/Packages/audiofile-0.2.6-11.1.el6.x86_64.rpm">http://mirror.centos.org/centos/6/os/x86_64/Packages/audiofile-0.2.6-11.1.el6.x86_64.rpm</a><br />      sudo yum -y install <a href="http://mirror.centos.org/centos/6/os/x86_64/Packages/esound-libs-0.2.41-3.1.el6.x86_64.rpm">http://mirror.centos.org/centos/6/os/x86_64/Packages/esound-libs-0.2.41-3.1.el6.x86_64.rpm</a><br />      sudo yum -y install <a href="http://pkgs.repoforge.org/qemu/qemu-0.15.0-1.el6.rfx.x86_64.rpm">http://pkgs.repoforge.org/qemu/qemu-0.15.0-1.el6.rfx.x86_64.rpm</a> </span><br /><br /><span style="font-family: sans-serif; font-size: x-small;">     <br /><br /><br /> Best Regards.<br /><br /> Zhang Hua(张华) <br /> ----------------------------------------------------<br /> Cloud Solutions and OpenStack Development<br /> IBM China System and Technology Lab(CSTL), Beijing<br /> E-Mail: zhhuabj@cn.ibm.com<br /> Tel: 86-10-82452020<br /> Address: Building 28(Ring Building), ZhongGuanCun Software Park, <br />         No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193<br /></span><br /><br /><img src="cid:919d5ff00b3057a9368732bc9dfd17db@tudorholton.com" &_id=27716396751c11bde64f20" alt="Inactive hide details for tudor ---06/19/2013 09:16:48 AM---  Hi," width="16" height="16" border="0" /><span style="color: #424282; font-family: sans-serif; font-size: x-small;">tudor ---06/19/2013 09:16:48 AM---  Hi,</span><br /><br /><span style="color: #5f5f5f; font-family: sans-serif; font-size: xx-small;">From: </span><span style="font-family: sans-serif; font-size: xx-small;">tudor </span><br /><span style="color: #5f5f5f; font-family: sans-serif; font-size: xx-small;">To: </span><span style="font-family: sans-serif; font-size: xx-small;">, </span><br /><span style="color: #5f5f5f; font-family: sans-serif; font-size: xx-small;">Date: </span><span style="font-family: sans-serif; font-size: xx-small;">06/19/2013 09:16 AM</span><br /><span style="color: #5f5f5f; font-family: sans-serif; font-size: xx-small;">Subject: </span><span style="font-family: sans-serif; font-size: xx-small;">[Openstack] ip: SIOCGIFFLAGS: No such device</span><br /><span style="color: #5f5f5f; font-family: sans-serif; font-size: xx-small;">Sent by: </span><span style="font-family: sans-serif; font-size: xx-small;">"Openstack" </span></p>
<hr style="color: #8091a5;" align="left" size="2" width="100%" /><br /><br /><br /><span style="font-family: serif; font-size: small;">Hi,</span>
<p><span style="font-family: serif; font-size: small;">I've asked this question a few times on the IRC channel, and I have an open question on ask.openstack.org but so far noone has managed to answer it successfully.</span></p>
<p><span style="font-family: serif; font-size: small;">I have installed OpenStack Grizzly on Ubuntu 12.04 LTS with Quantum and it is up to date with the Ubuntu OpenStack respository.</span></p>
<p><span style="font-family: serif; font-size: small;">I have a simple problem: the network interface is not being created when an instance starts up.  Horizon seems to think that the interface is correct.  It lists:</span></p>
<p><span style="font-family: serif; font-size: small;">IP Addresses<br /> ---------------<br /> Officenet<br /><br /> However, in the logs of the instance I get:</span></p>
<p><span style="font-family: serif; font-size: small;">ip: SIOCGIFFLAGS: No such device</span></p>
<p><span style="font-family: serif; font-size: small;">...and the only interface that exists inside the instance is lo.</span></p>
<p><span style="font-family: serif; font-size: small;">I don't appear to get any obvious errors in any of the quantum or nova logs.</span></p>
<p><span style="font-family: serif; font-size: small;">I believe that quantum is supposed to create a tap port on the OVS bridge specified by externel_network_bridge (br-eth1), but this is not happening.  The network physical port connected via eth1 has a hardware DHCP server on it, but it doesn't appear to assigning a network device on that bridge, so the DHCP request is not being forwarded.</span></p>
<p><span style="font-family: serif; font-size: small;">I have included my quantum config, l3_agent.ini, and the output of ovs-vsctl as I guess these are the most appropriate.  (Removing commented-out defaults)</span></p>
<p><span style="font-family: serif; font-size: small;">Other than solving my particular problem, I'm also trying to understand the process that occurs here.   What service (nova/quantum/something else?) actually creates the port on the OVS bridge and links it to the instance's virtual network device?</span></p>
<p><span style="font-family: serif; font-size: small;">Thanks for the help,<br /> Tudor.</span></p>
<p><span style="font-family: serif; font-size: small;">Quantum.conf</span></p>
<p><span style="font-family: serif; font-size: small;">=========</span></p>
<p><span style="font-family: serif; font-size: small;">[DEFAULT]<br /> # Show more verbose log output (sets INFO log level output)<br /> verbose = True</span></p>
<p><span style="font-family: serif; font-size: small;"># Show debugging output in logs (sets DEBUG log level output)<br /> debug = True</span></p>
<p><span style="font-family: serif; font-size: small;"># Address to bind the API server<br /> bind_host = 0.0.0.0</span></p>
<p><span style="font-family: serif; font-size: small;"># Port the bind the API server to<br /> bind_port = 9696</span></p>
<p><span style="font-family: serif; font-size: small;"># Quantum plugin provider module</span></p>
<p><span style="font-family: serif; font-size: small;">core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2</span></p>
<p><span style="font-family: serif; font-size: small;"># Paste configuration file<br /> api_paste_config = /etc/quantum/api-paste.ini</span></p>
<p><span style="font-family: serif; font-size: small;"># The strategy to be used for auth.<br /> # Supported values are 'keystone'(default), 'noauth'.<br /> auth_strategy = keystone</span></p>
<p><span style="font-family: serif; font-size: small;"># AMQP exchange to connect to if using RabbitMQ or QPID</span></p>
<p><span style="font-family: serif; font-size: small;">control_exchange = quantum</span></p>
<p><span style="font-family: serif; font-size: small;"># If passed, use a fake RabbitMQ provider<br /> fake_rabbit = False</span></p>
<p><span style="font-family: serif; font-size: small;"># IP address of the RabbitMQ installation<br /> rabbit_host = 10.0.0.1<br /> # Password of the RabbitMQ server<br /> rabbit_password = password</span></p>
<p><span style="font-family: serif; font-size: small;"># ============ Notification System Options =====================</span></p>
<p><span style="font-family: serif; font-size: small;"># Notifications can be sent when network/subnet/port are create, updated or deleted.<br /> # There are four methods of sending notifications, logging (via the<br /> # log_file directive), rpc (via a message queue),<br /> # noop (no notifications sent, the default) or list of them</span></p>
<p><span style="font-family: serif; font-size: small;"># Defined in notifier api<br /> notification_driver = quantum.openstack.common.notifier.list_notifier</span></p>
<p><span style="font-family: serif; font-size: small;"># Defined in list_notifier</span></p>
<p><span style="font-family: serif; font-size: small;">list_notifier_drivers = quantum.openstack.common.notifier.rabbit_notifier</span></p>
<p><span style="font-family: serif; font-size: small;">[QUOTAS]</span></p>
<p><span style="font-family: serif; font-size: small;">L3_agent.ini</span></p>
<p><span style="font-family: serif; font-size: small;">========</span></p>
<p><span style="font-family: serif; font-size: small;">[DEFAULT]</span></p>
<p><span style="font-family: serif; font-size: small;"># OVS</span></p>
<p><span style="font-family: serif; font-size: small;">interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver<br /> # LinuxBridge<br /> #interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver</span></p>
<p><span style="font-family: serif; font-size: small;"># The Quantum user information for accessing the Quantum API.<br /> auth_url = </span><span style="font-family: serif; font-size: small;"><a href="http://10.0.0.1:35357/v2.0">http://10.0.0.1:35357/v2.0</a></span><span style="font-family: serif; font-size: small;"><br /> auth_region = RegionOne<br /> admin_tenant_name = service<br /> admin_user = quantum <br /> admin_password = password</span></p>
<p><span style="font-family: serif; font-size: small;"><br /> # Use "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" to use the real<br /> # root filter facility.<br /> # Change to "sudo" to skip the filtering and just run the comand directly<br /> root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf</span></p>
<p><span style="font-family: serif; font-size: small;"># Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and<br /> # iproute2 package that supports namespaces).<br /> # use_namespaces = True<br /> use_namespaces = False</span></p>
<p><span style="font-family: serif; font-size: small;"># If use_namespaces is set as False then the agent can only configure one router.<br /> # This is done by setting the specific router_id.<br /> # router_id =<br /> router_id = e263323d-ad1d-4930-8739-ebf80cef3f96</span></p>
<p><span style="font-family: serif; font-size: small;"># Each L3 agent can be associated with at most one external network. This<br /> # value should be set to the UUID of that external network. If empty,<br /> # the agent will enforce that only a single external networks exists and<br /> # use that external network id<br /> # gateway_external_net_id =<br /> gateway_external_net_id = e1bbbcb1-e20d-48e5-ae89-823c1a485625</span></p>
<p><span style="font-family: serif; font-size: small;"># Indicates that this L3 agent should also handle routers that do not have</span></p>
<p><span style="font-family: serif; font-size: small;"># an external network gateway configured. This option should be True only<br /> # for a single agent in a Quantum deployment, and may be False for all agents<br /> # if all routers must have an external network gateway<br /> # handle_internal_only_routers = True</span></p>
<p><span style="font-family: serif; font-size: small;"># Name of bridge used for external network traffic. This should be set to<br /> # empty value for the linux bridge<br /> # external_network_bridge = br-ex<br /> external_network_bridge = br-eth1</span></p>
<p><span style="font-family: serif; font-size: small;"># IP address used by Nova metadata server<br /> # metadata_ip =<br /> metadata_ip = 10.0.0.1</span></p>
<p><span style="font-family: serif; font-size: small;"># TCP Port used by Nova metadata server<br /> # metadata_port = 8775</span></p>
<p><span style="font-family: serif; font-size: small;"># The time in seconds between state poll requests<br /> # polling_interval = 3</span></p>
<p><span style="font-family: serif; font-size: small;"> </span></p>
<p><span style="font-family: serif; font-size: small;">ovs-vsctl show</span></p>
<p><span style="font-family: serif; font-size: small;">=========</span></p>
<p><span style="font-family: serif; font-size: small;"># ovs-vsctl show<br /> e1bbbcb1-e20d-48e5-ae89-823c1a485625<br /> Bridge "br-eth1"<br /> Port "phy-br-eth1"<br /> Interface "phy-br-eth1"<br /> Port "eth1"<br /> Interface "eth1"<br /> Port "br-eth1"<br /> Interface "br-eth1"<br /> type: internal<br /> Bridge br-tun<br /> Port patch-int<br /> Interface patch-int<br /> type: patch<br /> options: {peer=patch-tun}<br /> Port br-tun<br /> Interface br-tun<br /> type: internal<br /> Bridge "br-eth0"<br /> Port "phy-br-eth0"<br /> Interface "phy-br-eth0"<br /> Port "eth0"<br /> Interface "eth0"<br /> Port "br-eth0"<br /> Interface "br-eth0"<br /> type: internal<br /> ovs_version: "1.4.0+build0"</span></p>
<p><span style="font-family: serif; font-size: small;"> </span></p>
<p><span style="font-family: serif; font-size: small;"> </span><tt><span style="font-size: x-small;">_______________________________________________<br /> Mailing list: </span></tt><tt><span style="font-size: x-small;"><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></span></tt><tt><span style="font-size: x-small;"><br /> Post to     : openstack@lists.launchpad.net<br /> Unsubscribe : </span></tt><tt><span style="font-size: x-small;"><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></span></tt><tt><span style="font-size: x-small;"><br /> More help   : </span></tt><tt><span style="font-size: x-small;"><a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></span></tt><tt><span style="font-size: x-small;"><br /></span></tt></p>
<p> </p>
</blockquote>
<p> </p>
<div> </div>
</body></html>