Hello,
I'm testing Fuel version 9.
When I try to launch a instance from OpenStack Horizon with the network admin_floating_net__subnet 172.16.0.0/24 it's show "Error: Failed to perform requested operation on instance "Instance Name", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.]. "
If I used another network interface, the instance launches successfully.
When the instance is active, I try to attach this floating interface, it's fail, this is the output logs when I try to add it by CLI
root@node-14:~# nova --debug interface-attach --net-id 53a3ef44-eeeb-4a7f-93e0-b103a60c699b 7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9
DEBUG (extension:156) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:156) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:156) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:156) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:156) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:156) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:156) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:156) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:156) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.0.2:5000/ -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.3.0 python-requests/2.9.1 CPython/2.7.6"
INFO (connectionpool:207) Starting new HTTP connection (1): 192.168.0.2
DEBUG (connectionpool:387) "GET / HTTP/1.1" 300 591
DEBUG (session:277) RESP: [300] Content-Length: 591 Vary: X-Auth-Token Server: Apache Connection: close Date: Mon, 28 Mar 2016 08:28:39 GMT Content-Type: application/json
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2015-09-15T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.5", "links": [{"href": "http://192.168.0.2:5000/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.0.2:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}
DEBUG (v2:63) Making authentication request to http://192.168.0.2:5000/v2.0/tokens
INFO (connectionpool:242) Resetting dropped connection: 192.168.0.2
DEBUG (connectionpool:387) "POST /v2.0/tokens HTTP/1.1" 200 4219
DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.0.2:8774/v2/ca155db25c5d40f7a06c86c0c06fe5b1 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f1e5d06d64801c9f8a471bc0779554b9e95d943e"
INFO (connectionpool:207) Starting new HTTP connection (1): 192.168.0.2
DEBUG (connectionpool:387) "GET /v2/ca155db25c5d40f7a06c86c0c06fe5b1 HTTP/1.1" 404 52
DEBUG (session:277) RESP: [404] Date: Mon, 28 Mar 2016 08:28:39 GMT Connection: close Content-Type: text/plain; charset=UTF-8 Content-Length: 52 X-Compute-Request-Id: req-922970aa-acba-469d-85c5-82fef246e26a
RESP BODY: 404 Not Found
The resource could not be found.
DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.0.2:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f1e5d06d64801c9f8a471bc0779554b9e95d943e"
INFO (connectionpool:242) Resetting dropped connection: 192.168.0.2
DEBUG (connectionpool:387) "GET /v2/ HTTP/1.1" 200 376
DEBUG (session:277) RESP: [200] Date: Mon, 28 Mar 2016 08:28:39 GMT Connection: close Content-Type: application/json Content-Length: 376 X-Compute-Request-Id: req-db01689c-d7d9-4527-ab49-1c9badfb8ee7
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://192.168.0.2:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (extension:156) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:156) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:156) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:156) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:156) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:156) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:156) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:156) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:156) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.0.2:8774/v2/ca155db25c5d40f7a06c86c0c06fe5b1/servers/7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f1e5d06d64801c9f8a471bc0779554b9e95d943e"
INFO (connectionpool:242) Resetting dropped connection: 192.168.0.2
DEBUG (connectionpool:387) "GET /v2/ca155db25c5d40f7a06c86c0c06fe5b1/servers/7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9 HTTP/1.1" 200 1846
DEBUG (session:277) RESP: [200] Date: Mon, 28 Mar 2016 08:28:40 GMT Connection: close Content-Type: application/json Content-Length: 1846 X-Compute-Request-Id: req-d4d0c68b-8b33-4615-9426-570b455cfacc
RESP BODY: {"server": {"status": "ACTIVE", "updated": "2016-03-28T06:28:29Z", "hostId": "67546f972a60de620c85470e73b6d38547b312949205b4fd81a5e214", "OS-EXT-SRV-ATTR:host": "node-18.domain.tld", "addresses": {"DIGISTAR14x": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:31:df:96", "version": 4, "addr": "103.254.14.28", "OS-EXT-IPS:type": "fixed"}], "VPN_TEST": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:61:7c:f6", "version": 4, "addr": "6.0.0.3", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://192.168.0.2:8774/v2/ca155db25c5d40f7a06c86c0c06fe5b1/servers/7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9", "rel": "self"}, {"href": "http://192.168.0.2:8774/ca155db25c5d40f7a06c86c0c06fe5b1/servers/7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9", "rel": "bookmark"}], "key_name": null, "image": {"id": "d00a7299-afb9-40d2-bf4a-7e724fdaffbf", "links": [{"href": "http://192.168.0.2:8774/ca155db25c5d40f7a06c86c0c06fe5b1/images/d00a7299-afb9-40d2-bf4a-7e724fdaffbf", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000023", "OS-SRV-USG:launched_at": "2016-03-28T04:27:39.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "node-18.domain.tld", "flavor": {"id": "2", "links": [{"href": "http://192.168.0.2:8774/ca155db25c5d40f7a06c86c0c06fe5b1/flavors/2", "rel": "bookmark"}]}, "id": "7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9", "security_groups": [{"name": "default"}, {"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "c0c4444aa2e34d7999276af1881d1965", "name": "testcentos", "created": "2016-03-28T04:24:56Z", "tenant_id": "ca155db25c5d40f7a06c86c0c06fe5b1", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}
DEBUG (session:248) REQ: curl -g -i -X POST http://192.168.0.2:8774/v2/ca155db25c5d40f7a06c86c0c06fe5b1/servers/7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9/os-interface -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f1e5d06d64801c9f8a471bc0779554b9e95d943e" -d '{"interfaceAttachment": {"net_id": "53a3ef44-eeeb-4a7f-93e0-b103a60c699b"}}'
INFO (connectionpool:242) Resetting dropped connection: 192.168.0.2
DEBUG (connectionpool:387) "POST /v2/ca155db25c5d40f7a06c86c0c06fe5b1/servers/7cbe1eed-cb0f-4f22-b6dc-4c8d114d25e9/os-interface HTTP/1.1" 500 198
DEBUG (session:277) RESP: [500] Date: Mon, 28 Mar 2016 08:28:41 GMT Connection: close Content-Type: application/json; charset=UTF-8 Content-Length: 198 X-Compute-Request-Id: req-84be169e-0020-4327-a7a4-ca54f60a0844
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'PortBindingFailed_Remote'>", "code": 500}}
DEBUG (shell:1067) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'PortBindingFailed_Remote'> (HTTP 500) (Request-ID: req-84be169e-0020-4327-a7a4-ca54f60a0844)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 1065, in main
OpenStackComputeShell().main(argv)
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 992, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 4818, in do_interface_attach
res = server.interface_attach(args.port_id, args.net_id, args.fixed_ip)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 517, in interface_attach
return self.manager.interface_attach(self, port_id, net_id, fixed_ip)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 1659, in interface_attach
body, 'interfaceAttachment')
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 345, in _create
resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 179, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 100, in request
raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'PortBindingFailed_Remote'> (HTTP 500) (Request-ID: req-84be169e-0020-4327-a7a4-ca54f60a0844)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'PortBindingFailed_Remote'> (HTTP 500) (Request-ID: req-84be169e-0020-4327-a7a4-ca54f60a0844)
root@node-14:~#
Duong,
External (http:// docs.openstack. org/juno/ install- guide/install/ apt/content/ neutron- initial- networks. html) networks which provide floating IPs are not supposed to be used directly, i.e. you can't have an instance connected to such network - it will fail on boot, which is exactly what you see now.
Instead, you should connect instance to a tenant network and the latter to an external network by the means of a Neutron router. Fuel already pre-configures one tenant network and one external network for you. If you need more, you can check the link I posted above.
To summarise this, what you see here now is expected behaviour. Please check OpenStack docs how to add floating IPs to instances. Closing the bug as Invalid.