Ask Your Question

PortNotFoundClient: Port * could not be found.

asked 2017-01-13 05:25:44 -0500

MonsieurWilson gravatar image

These days, I have focused on deploying a cluster with 1 controller node and 1 compute node. When following the steps in Launch an instance part of openstack install-guide-rdo, I can't launch the instance of cirros. Here are some import logs from my controller node and compute node.

/* nova-compute.log on compute node*/
DEBUG nova.policy [req-707d1cf4-efca-4606-a082-7f87a08da2d9 96a180f421144cfe8f8d5bf582e7edf2 47465838620a4ccc9b9e30b1bbbb951d - - -] Policy check for network:attach_external_network failed with credentials {'domain': None, 'project_name': u'demo', 'project_domain': None, 'timestamp': '2017-01-13T10:47:57.475661', 'remote_address': u'', 'quota_class': None, 'resource_uuid': None, 'is_admin': False, 'user': u'96a180f421144cfe8f8d5bf582e7edf2', 'service_catalog': [], 'tenant': u'47465838620a4ccc9b9e30b1bbbb951d', 'read_only': False, 'project_id': u'47465838620a4ccc9b9e30b1bbbb951d', 'user_id': u'96a180f421144cfe8f8d5bf582e7edf2', 'show_deleted': False, 'roles': [u'user'], 'user_identity': u'96a180f421144cfe8f8d5bf582e7edf247465838620a4ccc9b9e30b1bbbb951d - - -', 'is_admin_project': True, 'read_deleted': u'no', 'request_id': u'req-707d1cf4-efca-4606-a082-7f87a08da2d9', 'instance_lock_checked': False, 'user_domain': None, 'user_name': u'demo'} authorize /usr/lib/python2.7/site-packages/nova/
Instance failed network setup after 1 attempt(s)
ERROR nova.compute.manager PortNotFoundClient: Port bd814f00-befc-42ca-9983-2da3a335ffe3 could not be found.

/* nova-conductor.log on controller node*/
NoValidHost: No valid host was found. There are not enough hosts available.

I am pretty confused with the error, and google even can't give me an answer. Please someone who can tell how to get it work?

P.S. All the configurations is the same to, and I use two CentOS 7 virtual machines to deploy controller node and compute node.

edit retag flag offensive close merge delete


It sounds that policy.json in Nova does not allow you to create port on external network So: -are you using Keystone admin user? -can you create new Neutron network (not external one) and try to boot VM using that one? -yeah, check /etc/nova/policy.json

volenbovsky gravatar imagevolenbovsky ( 2017-01-13 13:19:05 -0500 )edit

I haven't changed the /etc/nova/policy.json, so it's empty. Does it matters?

MonsieurWilson gravatar imageMonsieurWilson ( 2017-01-21 21:35:31 -0500 )edit

2 answers

Sort by » oldest newest most voted

answered 2017-02-17 01:37:15 -0500

silently gravatar image
NoValidHost: No valid host was found. There are not enough hosts available.
edit flag offensive delete link more

answered 2017-01-21 21:33:24 -0500

MonsieurWilson gravatar image

updated 2017-02-16 22:10:36 -0500

Well, after I have changed the neutron.conf, the instance finally stared. So ... what is the reason?

/* neutron.conf */
auth_strategy = noauth


Oh my, I finally address it. After reviewing my nova configuration carefully several times, I found that something important is missed...

edit flag offensive delete link more


When Nova has problems with ports, I would search the neutron server log for the port ID.

Bernd Bausch gravatar imageBernd Bausch ( 2017-01-21 22:25:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2017-01-13 05:25:44 -0500

Seen: 133 times

Last updated: Feb 17