<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi Team,<br></div><br>I am working on ICEHOUSE release of Openstack.<b>I am able to launch VM using KVM/QEMU utility.</b><br><br></div>Now i <b>want to launch LXC based VM</b> using the same release.<br><br>But I am getting below error while launching LXC based VM.These errors are in <b>nova-neutron service.</b><br><br>self._get_networks_by_uuids(context, network_uuids)\n', '  File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 1824, in _get_networks_by_uuids\n    context, network_uuids, project_only=True)\n', '  File "/usr/lib/python2.7/site-packages/nova/objects/base.py", line 110, in wrapper\n    args, kwargs)\n', '  File "/usr/lib/python2.7/site-packages/nova/conductor/rpcapi.py", line 425, in object_class_action\n    objver=objver, args=args, kwargs=kwargs)\n', '  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 150, in call\n    wait_for_reply=True, timeout=timeout)\n', '  File "/usr/lib/python2.7/site-packages/oslo/messaging/transport.py", line 90, in _send\n    timeout=timeout)\n', '  File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py",
 line 412, in send\n    return self._send(target, ctxt, message, 
wait_for_reply, timeout)\n', '  File "/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py",
 line 405, in _send\n    raise result\n', 'NoNetworksFound_Remote: No 
networks defined.\nTraceback (most recent call last):\n\n  File 
"/usr/lib/python2.7/site-packages/nova/conductor/manager.py", 
line 597, in _object_dispatch\n    return getattr(target, 
method)(context, *args, **kwargs)\n\n  File "/usr/lib/python2.7/site-packages/nova/objects/base.py", line 112, in wrapper\n    result = fn(cls, context, *args, **kwargs)\n\n  File "/usr/lib/python2.7/site-packages/nova/objects/network.py", line 183, in get_by_uuids\n    project_only)\n\n  File "/usr/lib/python2.7/site-packages/nova/db/api.py", line 965, in network_get_all_by_uuids\n    project_only=project_only)\n\n  File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 164, in wrapper\n    return f(*args, **kwargs)\n\n  File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 2582, in network_get_all_by_uuids\n  <span style="background-color:rgb(255,0,0)">  raise exception.NoNetworksFound()\n\nNoNetworksFound: No networks defined.\n\n']</span><br><br><b>Details of error.</b><br>=============<br><br>When i am creating network for the LXC VM.I am able to see the same network using <b>neutron net-list</b> command,But i think this same network nova is not able to access that's why i do <b>nova net-list</b> it shows nothing(no network).Due to this,above error is coming.<br><br></div>Below are my nova and neutron configuration files.<br><br></div><b>1. NOVA CONF</b><br><br>[DEFAULT]<br>firewall_driver = nova.virt.firewall.NoopFirewallDriver<br>compute_driver = libvirt.LibvirtDriver<br>libvirt_cpu_mode = host-model<br>default_floating_pool = public<br>fixed_range =<br>force_dhcp_release = True<br>dhcpbridge_flagfile = /etc/nova/nova.conf<br>compute_scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler<br>rootwrap_config = /etc/nova/rootwrap.conf<br>api_paste_config = /etc/nova/api-paste.ini<br>allow_resize_to_same_host = true<br>auth_strategy = keystone<br>instances_path = /etc/nova/instances<br>debug = False<br>verbose = True<br>my_ip = 192.168.2.99 <br>glance_host = 192.168.2.99<br>lock_path = /var/lock/nova/<br>libvirt_images_type = default<br><br>[libvirt]<br>virt_type = lxc<br><br><br>vnc_enabled = False<br>vncserver_listen = <br>novncproxy_base_url = http://:6080/vnc_auto.html<br>vncserver_proxyclient_address = <br><br>flat_interface = eth0<br>flat_network_bridge = br1<br>vlan_interface = eth0<br>public_interface = br1<br>network_manager = nova.network.manager.FlatDHCPManager<br>fixed_range = <br>force_dhcp_release = False<br>dhcpbridge = /usr/bin/nova-dhcpbridge<br><br>sql_connection = mysql://<a href="http://nova:NOVA_DBPASS@192.168.2.99/nova">nova:NOVA_DBPASS@192.168.2.99/nova</a><br><br>rpc_backend = rabbit<br>rabbit_host = 192.168.2.99<br>rabbit_port = 5672<br><br>neutron_url =  <a href="http://192.168.2.99:9696">http://192.168.2.99:9696</a><br>network_api_class = nova.network.neutronv2.api.API<br>security_group_api = neutron<br>neutron_auth_strategy = keystone<br>neutron_admin_tenant_name = service<br>neutron_admin_username = neutron<br>neutron_admin_password = NEUTRON_PASS<br>neutron_admin_auth_url = <a href="http://192.168.2.99:35357/v2.0/">http://192.168.2.99:35357/v2.0/</a><br>linuxnet_interface_driver = nova.network.NoopFirewallDriver<br><br>vif_plugging_timeout = 10<br>vif_plugging_is_fatal = False<br><br>instance_usage_audit=True<br>instance_usage_audit_period = hour<br>notify_on_state_change = vm_and_task_state<br>notification_driver = nova.openstack.common.notifier.rpc_notifier<br><br>libvirt_images_rbd_pool = cinder-volumes<br>libvirt_images_rbd_ceph_conf = /etc/ceph/ceph.conf<br>rbd_user = cinder-volume<br><br>service_neutron_metadata_proxy = true<br>neutron_metadata_proxy_shared_secret = ADMIN_PASS<br><br>[spice]<br>agent_enabled = True<br>enabled = True<br>html5proxy_base_url = http://:6082/spice_auto.html<br>keymap = en-us<br>server_listen =<br>server_proxyclient_address =<br><br>auth_strategy = keystone<br><br>[keystone_authtoken]<br>auth_uri = <a href="http://192.168.2.99:5000">http://192.168.2.99:5000</a><br>auth_host = 192.168.2.99<br>auth_port = 35357<br>auth_protocol = http<br>admin_tenant_name = service<br>admin_user = nova<br>admin_password = NOVA_PASS<br><br><br></div><b>2. NEUTRON CONF</b><br><br>[DEFAULT]<br>state_path = /var/lib/neutron<br>lock_path = $state_path/lock<br>core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2<br>api_paste_config = api-paste.ini<br>auth_strategy = keystone<br>rpc_backend = neutron.openstack.common.rpc.impl_kombu<br>rabbit_host = icehouse-controller<br>notification_driver = neutron.openstack.common.notifier.rpc_notifier<br>notify_nova_on_port_status_changes = True<br>notify_nova_on_port_data_changes = True<br>nova_url = <a href="http://icehouse-controller:8774/v2">http://icehouse-controller:8774/v2</a><br>nova_admin_username = nova<br>nova_admin_tenant_id = SERVICE_TENANT_ID <br>nova_admin_password = NOVA_PASS<br>nova_admin_auth_url = <a href="http://icehouse-controller:35357/v2.0">http://icehouse-controller:35357/v2.0</a><br>[quotas]<br>[agent]<br>[keystone_authtoken]<br>auth_uri = <a href="http://icehouse-controller:5000">http://icehouse-controller:5000</a><br>auth_host = icehouse-controller<br>auth_port = 35357<br>auth_protocol = http<br>admin_tenant_name = service<br>admin_user = neutron<br>admin_password = NEUTRON_PASS<br>[database]<br>connection = mysql://neutron:NEUTRON_DBPASS@icehouse-controller/neutron<br>[service_providers]<br>service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default<br>service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default<br><br>=====================<br><br><br></div>Please help me on this.I am not able to solve this issue.<br><br></div>Thanks<br><br>..<br><br></div>Regards<br><br></div>Rahul Arora<br><div><div><div><div><div><br></div></div></div></div></div></div>