Instance Launching Issue in Openstack - No Valid Host was found
Issue : Getting Error in launching Instance VM in Openstack
Error: "No valid host was found" Scenario: One Controller, one Compute VM machines are integrated with APIC Controller
Release JUNO, distro: CentOS 7
Setup is showing all Openstack created tenants information in APIC but triggering error for launching instance, it may not find/discover Compute Node. All services on controller and compute are running nicely.
Suspicious: TRACE neutron.plugins.ml2.managers ApicHostNotConfigured: The switch and port for host 'juno-controller-ali' are not configured"
File: /etc/neutron/plugins/ml2/ml2_config_cisco.ini [Default] apic_system_id = ABC
[ml2_cisco_apic] apic_hosts = 10.3.1.207:80,10.3.1.207:443 apic_username = admin apic_password = MyPassword apic_name_mapping = use_name apic_use_ssl = True
[apic_external_network:POD7-ext] switch = 101 port = 1/19 cidr_exposed = 10.3.1.0/24 gateway_ip = 10.3.1.254
[apic_switch:101] # when I add these compute nodes.. Nuetron service fails
File: /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2] type_drivers = opflex,local,flat,vlan,gre,vxlan tenant_network_types = vlan mechanism_drivers =openvswitch,cisco_apic
[ml2_type_vlan] network_vlan_ranges = anx:790:795
[ovs] bridge_mappings = anx:br-anx enable_tunneling = False integration_bridge = br-int
[agent] polling_interval = 2 l2_population = False arp_responder = False
File: /etc/neutron/neutron.conf
[DEFAULT] osapi_compute_workers = 4 workers = 4 ec2_workers = 4 metadata_workers = 4 rpc_backend = rabbit rabbit_host = 10.3.1.175 rabbit_password = MyPassword auth_strategy = keystone notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://10.3.1.175:8774/v2 nova_admin_auth_url = http://10.3.1.175:35357/v2.0/ nova_region_name = regionOne nova_admin_username = nova nova_admin_tenant_id = 4f6cf805788b4d4f9539563889e41d53 nova_admin_password = MyPassword core_plugin = ml2 service_plugins = router allow_overlapping_ips = True
[keystone_authtoken] auth_uri = http://10.3.1.175:5000/v2.0/ identity_uri = http://10.3.1.175:35357 admin_tenant_name = service admin_user = neutron admin_password = MyPassword auth_protocol = http auth_host = 10.3.1.175 auth_port = 35357
LOGS: TAIL -F /VAR/LOG/NEUTRON/SERVER.LOG [root@juno-controller-ali ~(keystone_admin)]# tail -f /var/log/neutron/server.log TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 1147, in update_port_status TRACE oslo.messaging.rpc.dispatcher self.mechanism_manager.update_port_postcommit(mech_context) TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 527, in update_port_postcommit TRACE oslo.messaging.rpc.dispatcher continue_on_failure=True) TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 302, in _call_on_drivers TRACE oslo.messaging.rpc.dispatcher method=method_name TRACE oslo.messaging.rpc.dispatcher MechanismDriverError: update_port_postcommit failed. TRACE oslo.messaging.rpc.dispatcher ERROR oslo.messaging._drivers.common [req-5e8e3cbb-69fd-494e-b27c-981f0311e810 ] Returning exception update_port_postcommit failed. to caller ERROR oslo.messaging._drivers.common [req-5e8e3cbb-69fd-494e-b27c-981f0311e810 ] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, *new_args)\n', ' File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/rpc.py", line 167, in update_device_up\n host)\n', ' File "/usr/lib/python2.7/site-packages ...