Ask Your Question

Instance Launching Issue in Openstack - No Valid Host was found

asked 2016-01-05 18:00:08 -0500

Ali Solangi gravatar image

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 =, 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 = gateway_ip =

[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 = rabbit_password = MyPassword auth_strategy = keystone notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = nova_admin_auth_url = 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 = identity_uri = admin_tenant_name = service admin_user = neutron admin_password = MyPassword auth_protocol = http auth_host = 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/", 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/", 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/", 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/", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, *new_args)\n', ' File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/", line 167, in update_device_up\n host)\n', ' File "/usr/lib/python2.7/site-packages ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-01-11 14:56:57 -0500

Sandeep gravatar image

its generic issue sometime,restart all complete service

edit flag offensive delete link more

answered 2016-01-11 15:31:20 -0500

Ali Solangi gravatar image

updated 2016-01-11 15:49:26 -0500

Sorry to late reply.. my issue is RESOLVED... the reason was "I was using APIC controller older version which was only supported by vCenter within VMM Domain, so there was no any option for Openstack as a VMM Domain" that's why in my scenario, Controller Node there were some paramters to APIC host... but there was no configuration on APIC side... that's why following impact was there: 1 - APIC was able to show my networks, subnets and security groups which were created in Openstack automatically [The reason was APIC_Mechanisim drivers by defualt they support LLDP] 2 - while my compute-nodes were not able to find any Leaf within the ACI Fabric... [Note: compute are VMS within same UCS... so I used automatic LLDP association with leaves on compute-nodes] just because of half-configuration was between Openstack and APIC host... my VMs instance was not able to find any host....

Now, simply I am using APIC latest version Brazo... which supporting Openstack as VMM Domain.... hope this will be helpfull for any one...

Cheers Ali Murtaza Solangi

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-05 18:00:08 -0500

Seen: 663 times

Last updated: Jan 11 '16