Advertisement
Guest User

Untitled

a guest
Nov 28th, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.11 KB | None | 0 0
  1. [stack@undercloud-0 ~]$ openstack --debug floating ip create public --port parent_port
  2. START with options: [u'--debug', u'floating', u'ip', u'create', u'public', u'--port', u'parent_port']
  3. options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='http://10.0.0.101:5000/v2.0', authorization_code='', cacert=None, cert='', client_id='', client_secret='***', cloud='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, inspector_api_version='1', inspector_url=None, interface='', key='', log_file=None, murano_url='', old_profile=None, openid_scope='', os_alarming_api_version='2', os_application_catalog_api_version='1', os_baremetal_api_version='1.15', os_beta_command=False, os_compute_api_version='', os_container_infra_api_version='1', os_data_processing_api_version='1.1', os_data_processing_url='', os_dns_api_version='2', os_identity_api_version='', os_image_api_version='1', os_key_manager_api_version='1', os_metrics_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='2', os_tripleoclient_api_version='1', os_volume_api_version='', os_workflow_api_version='2', passcode='', password='***', profile=None, project_domain_id='', project_domain_name='', project_id='', project_name='vanv2', protocol='', redirect_uri='', region_name='', roles='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='', user_id='', username='vanv2_user', verbose_level=3, verify=None)
  4. Auth plugin password selected
  5. auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.101:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'vanv2_user', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'vanv2'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '123456', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', u'container_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
  6. defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
  7. cloud cfg: {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.101:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'vanv2_user', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'username': 'vanv2_user', 'project_name': 'vanv2', 'password': '***', 'auth_url': 'http://10.0.0.101:5000/v2.0'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  8. compute API version 2, cmd group openstack.compute.v2
  9. network API version 2, cmd group openstack.network.v2
  10. image API version 1, cmd group openstack.image.v1
  11. volume API version 2, cmd group openstack.volume.v2
  12. identity API version 2.0, cmd group openstack.identity.v2
  13. object_store API version 1, cmd group openstack.object_store.v1
  14. neutronclient API version 2, cmd group openstack.neutronclient.v2
  15. messaging API version 2, cmd group openstack.messaging.v2
  16. orchestration API version 1, cmd group openstack.orchestration.v1
  17. workflow_engine API version 2, cmd group openstack.workflow_engine.v2
  18. baremetal_introspection API version 1, cmd group openstack.baremetal_introspection.v1
  19. baremetal API version 1.15, cmd group openstack.baremetal.v1
  20. tripleoclient API version 1, cmd group openstack.tripleoclient.v1
  21. application_catalog API version 1, cmd group openstack.application_catalog.v1
  22. key_manager API version 1, cmd group openstack.key_manager.v1
  23. container_infra API version 1, cmd group openstack.container_infra.v1
  24. dns API version 2, cmd group openstack.dns.v2
  25. metric API version 1, cmd group openstack.metric.v1
  26. alarming API version 2, cmd group openstack.alarming.v2
  27. data_processing API version 1.1, cmd group openstack.data_processing.v1
  28. Auth plugin password selected
  29. auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.101:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'vanv2_user', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'vanv2'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '123456', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', u'container_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
  30. Auth plugin password selected
  31. auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': u'1.0', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.101:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'vanv2_user', 'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'vanv2'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '123456', 'application_catalog_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', u'container_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
  32. command: floating ip create -> openstackclient.network.v2.floating_ip.CreateFloatingIP
  33. Using auth plugin: password
  34. Using parameters {'username': 'vanv2_user', 'project_name': 'vanv2', 'password': '***', 'auth_url': 'http://10.0.0.101:5000/v2.0'}
  35. Get auth_ref
  36. REQ: curl -g -i -X GET http://10.0.0.101:5000/v2.0 -H "Accept: application/json" -H "User-Agent: osc-lib keystoneauth1/2.12.2 python-requests/2.10.0 CPython/2.7.5"
  37. Starting new HTTP connection (1): 10.0.0.101
  38. "GET /v2.0 HTTP/1.1" 200 226
  39. RESP: [200] Date: Mon, 28 Nov 2016 12:16:50 GMT Server: Apache Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-2f437264-ee4f-474e-94f3-dc6076810599 Content-Encoding: gzip Content-Length: 226 Content-Type: application/json
  40. RESP BODY: {"version": {"status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.0.0.101:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
  41.  
  42. Making authentication request to http://10.0.0.101:5000/v2.0/tokens
  43. "POST /v2.0/tokens HTTP/1.1" 200 1099
  44. get_parser(openstack floating ip create)
  45. common parser: ArgumentParser(prog=u'openstack floating ip create', usage=None, description='Create floating IP', version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
  46. network endpoint in service catalog
  47. run(Namespace(columns=[], fixed_ip_address=None, floating_ip_address=None, formatter='table', max_width=0, network=u'public', noindent=False, port=u'parent_port', prefix='', subnet=None, variables=[]))
  48. network endpoint in service catalog
  49. Connection: <openstack.connection.Connection object at 0x3eeded0>
  50. Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x4112710>
  51. Making authentication request to http://10.0.0.101:5000/v2.0/tokens
  52. Starting new HTTP connection (1): 10.0.0.101
  53. "POST /v2.0/tokens HTTP/1.1" 200 1102
  54. REQ: curl -g -i -X GET http://10.0.0.101:9696 -H "User-Agent: openstacksdk/0.9.5 keystoneauth1/2.12.2 python-requests/2.10.0 CPython/2.7.5" -H "X-Auth-Token: {SHA1}cdf7373b2c34618cb9b3a12fbb4dff347b0b0655"
  55. Starting new HTTP connection (1): 10.0.0.101
  56. "GET / HTTP/1.1" 200 118
  57. RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 118 Date: Mon, 28 Nov 2016 12:16:52 GMT Connection: keep-alive
  58. RESP BODY: {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://10.0.0.101:9696/v2.0", "rel": "self"}]}]}
  59.  
  60. REQ: curl -g -i -X GET http://10.0.0.101:9696/v2.0/networks/public -H "User-Agent: openstacksdk/0.9.5 keystoneauth1/2.12.2 python-requests/2.10.0 CPython/2.7.5" -H "X-Auth-Token: {SHA1}cdf7373b2c34618cb9b3a12fbb4dff347b0b0655"
  61. "GET /v2.0/networks/public HTTP/1.1" 404 52
  62. RESP: [404] Content-Length: 52 Content-Type: text/plain; charset=UTF-8 X-Openstack-Request-Id: req-35a2a8b2-93ce-4117-b698-a5fd970e7f9e Date: Mon, 28 Nov 2016 12:16:52 GMT Connection: keep-alive
  63. RESP BODY: 404 Not Found
  64.  
  65. The resource could not be found.
  66.  
  67.  
  68.  
  69. Request returned failure status: 404
  70. REQ: curl -g -i -X GET http://10.0.0.101:9696/v2.0/networks -H "User-Agent: openstacksdk/0.9.5 keystoneauth1/2.12.2 python-requests/2.10.0 CPython/2.7.5" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}cdf7373b2c34618cb9b3a12fbb4dff347b0b0655"
  71. "GET /v2.0/networks HTTP/1.1" 200 2521
  72. RESP: [200] Content-Type: application/json Content-Length: 2521 X-Openstack-Request-Id: req-dba59d20-7ffd-4eb8-9b63-ba324c93d58b Date: Mon, 28 Nov 2016 12:16:52 GMT Connection: keep-alive
  73. RESP BODY: {"networks": [{"status": "ACTIVE", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "name": "int_net", "subnets": ["0a0f0ac2-2bc6-423c-9197-7c3313438c2d"], "shared": false, "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "created_at": "2016-11-28T11:43:29Z", "tags": [], "ipv6_address_scope": null, "updated_at": "2016-11-28T11:43:31Z", "admin_state_up": true, "mtu": 1446, "revision_number": 5, "ipv4_address_scope": null, "port_security_enabled": true, "project_id": "af788c6da1fb4388b09040aa99c997bc", "id": "045623ae-4277-4f91-bf97-c64d8708a9c0", "qos_policy_id": null}, {"ipv6_address_scope": null, "revision_number": 5, "port_security_enabled": true, "id": "7e09c182-b829-4174-ba0b-5e90efc20f54", "router:external": true, "availability_zone_hints": [], "availability_zones": ["nova"], "ipv4_address_scope": null, "shared": false, "project_id": "742187c7d2244d3c8de603957c31d081", "status": "ACTIVE", "subnets": ["1c767070-3d78-4e34-9bd7-647455dd9c24"], "description": "", "tags": [], "updated_at": "2016-11-23T18:29:31Z", "is_default": false, "qos_policy_id": null, "name": "public", "admin_state_up": true, "tenant_id": "742187c7d2244d3c8de603957c31d081", "created_at": "2016-11-23T18:29:27Z", "mtu": 1496}, {"status": "ACTIVE", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "name": "int_net20", "subnets": ["224eb312-63e9-4ad1-b61b-816f32984a4a"], "shared": false, "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "created_at": "2016-11-28T11:43:37Z", "tags": [], "ipv6_address_scope": null, "updated_at": "2016-11-28T11:48:01Z", "admin_state_up": true, "mtu": 1446, "revision_number": 6, "ipv4_address_scope": null, "port_security_enabled": true, "project_id": "af788c6da1fb4388b09040aa99c997bc", "id": "8a93479e-8f4a-4ddf-be8c-fb51ef15fb44", "qos_policy_id": null}, {"status": "ACTIVE", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "name": "int_net10", "subnets": ["a4e90ce8-977b-485b-8a96-ced5b53a7f6d"], "shared": false, "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "created_at": "2016-11-28T11:43:34Z", "tags": [], "ipv6_address_scope": null, "updated_at": "2016-11-28T11:48:04Z", "admin_state_up": true, "mtu": 1446, "revision_number": 6, "ipv4_address_scope": null, "port_security_enabled": true, "project_id": "af788c6da1fb4388b09040aa99c997bc", "id": "f29f4370-efda-45fe-9d37-e2a914b9dc4c", "qos_policy_id": null}]}
  74.  
  75. REQ: curl -g -i -X GET http://10.0.0.101:9696/v2.0/ports/parent_port -H "User-Agent: openstacksdk/0.9.5 keystoneauth1/2.12.2 python-requests/2.10.0 CPython/2.7.5" -H "X-Auth-Token: {SHA1}cdf7373b2c34618cb9b3a12fbb4dff347b0b0655"
  76. "GET /v2.0/ports/parent_port HTTP/1.1" 404 52
  77. RESP: [404] Content-Length: 52 Content-Type: text/plain; charset=UTF-8 X-Openstack-Request-Id: req-2ccf7213-01b8-4c95-b2c2-d63ebda70738 Date: Mon, 28 Nov 2016 12:16:52 GMT Connection: keep-alive
  78. RESP BODY: 404 Not Found
  79.  
  80. The resource could not be found.
  81.  
  82.  
  83.  
  84. Request returned failure status: 404
  85. REQ: curl -g -i -X GET http://10.0.0.101:9696/v2.0/ports -H "User-Agent: openstacksdk/0.9.5 keystoneauth1/2.12.2 python-requests/2.10.0 CPython/2.7.5" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}cdf7373b2c34618cb9b3a12fbb4dff347b0b0655"
  86. "GET /v2.0/ports HTTP/1.1" 200 7420
  87. RESP: [200] Content-Type: application/json Content-Length: 7420 X-Openstack-Request-Id: req-d9a8bb7a-3694-498b-81c1-1a8a9fd48ff7 Date: Mon, 28 Nov 2016 12:16:53 GMT Connection: keep-alive
  88. RESP BODY: {"ports": [{"status": "ACTIVE", "created_at": "2016-11-28T11:44:00Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "f29f4370-efda-45fe-9d37-e2a914b9dc4c", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T11:44:06Z", "name": "", "device_owner": "network:router_interface", "qos_policy_id": null, "revision_number": 8, "mac_address": "fa:16:3e:26:e0:e1", "port_security_enabled": false, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "a4e90ce8-977b-485b-8a96-ced5b53a7f6d", "ip_address": "192.168.10.1"}], "id": "2a2a5b65-36e7-45d8-975e-bb4f9d6724da", "security_groups": [], "device_id": "9696bdb2-a5bd-4f92-a112-3f1f171e823c"}, {"status": "ACTIVE", "created_at": "2016-11-28T11:43:52Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "8a93479e-8f4a-4ddf-be8c-fb51ef15fb44", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T12:04:19Z", "name": "tagged20_port", "device_owner": "trunk:subport", "qos_policy_id": null, "revision_number": 13, "mac_address": "fa:16:3e:5d:1e:73", "port_security_enabled": true, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "224eb312-63e9-4ad1-b61b-816f32984a4a", "ip_address": "192.168.20.3"}], "id": "488e4933-9809-4041-84ed-9375bf64333b", "security_groups": ["85ae7587-599d-4c65-a75c-9f5c4ad3cbcf"], "device_id": ""}, {"status": "ACTIVE", "created_at": "2016-11-28T11:44:04Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "8a93479e-8f4a-4ddf-be8c-fb51ef15fb44", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T11:44:09Z", "name": "", "device_owner": "network:router_interface", "qos_policy_id": null, "revision_number": 8, "mac_address": "fa:16:3e:e2:78:71", "port_security_enabled": false, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "224eb312-63e9-4ad1-b61b-816f32984a4a", "ip_address": "192.168.20.1"}], "id": "4f1476aa-aeba-4fda-afa6-a442231a2961", "security_groups": [], "device_id": "9696bdb2-a5bd-4f92-a112-3f1f171e823c"}, {"status": "ACTIVE", "created_at": "2016-11-28T11:43:56Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "045623ae-4277-4f91-bf97-c64d8708a9c0", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T11:44:02Z", "name": "", "device_owner": "network:router_interface", "qos_policy_id": null, "revision_number": 8, "mac_address": "fa:16:3e:b0:4b:12", "port_security_enabled": false, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "0a0f0ac2-2bc6-423c-9197-7c3313438c2d", "ip_address": "192.168.0.1"}], "id": "58fda61e-365a-4ac3-aebb-b67c9525e63a", "security_groups": [], "device_id": "9696bdb2-a5bd-4f92-a112-3f1f171e823c"}, {"allowed_address_pairs": [], "extra_dhcp_opts": [], "updated_at": "2016-11-28T12:03:55Z", "device_owner": "compute:None", "revision_number": 15, "port_security_enabled": true, "fixed_ips": [{"subnet_id": "0a0f0ac2-2bc6-423c-9197-7c3313438c2d", "ip_address": "192.168.0.7"}], "id": "7d749eb0-633d-4114-b322-414d19f86046", "security_groups": ["85ae7587-599d-4c65-a75c-9f5c4ad3cbcf"], "mac_address": "fa:16:3e:62:e9:43", "project_id": "af788c6da1fb4388b09040aa99c997bc", "status": "ACTIVE", "description": "", "trunk_details": {"trunk_id": "3b5c8493-7832-4501-a93f-65c5131512bb", "sub_ports": [{"segmentation_id": 10, "port_id": "fdb9e48e-582f-43bd-b913-471711b3d2d2", "segmentation_type": "vlan", "mac_address": "fa:16:3e:ad:d5:39"}, {"segmentation_id": 20, "port_id": "488e4933-9809-4041-84ed-9375bf64333b", "segmentation_type": "vlan", "mac_address": "fa:16:3e:5d:1e:73"}]}, "qos_policy_id": null, "name": "parent_port", "admin_state_up": true, "network_id": "045623ae-4277-4f91-bf97-c64d8708a9c0", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "created_at": "2016-11-28T11:43:46Z", "binding:vnic_type": "normal", "device_id": "1fe84939-5739-4723-8466-5b0e20e29650"}, {"status": "ACTIVE", "created_at": "2016-11-28T11:43:43Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "8a93479e-8f4a-4ddf-be8c-fb51ef15fb44", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T11:43:47Z", "name": "", "device_owner": "network:dhcp", "qos_policy_id": null, "revision_number": 7, "mac_address": "fa:16:3e:99:84:d0", "port_security_enabled": false, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "224eb312-63e9-4ad1-b61b-816f32984a4a", "ip_address": "192.168.20.2"}], "id": "97b6084f-6254-4597-b785-e68d0b6b678c", "security_groups": [], "device_id": "dhcpaebe17f8-776d-5ab6-9a5f-e9bdeeaca66f-8a93479e-8f4a-4ddf-be8c-fb51ef15fb44"}, {"status": "ACTIVE", "created_at": "2016-11-28T11:43:32Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "045623ae-4277-4f91-bf97-c64d8708a9c0", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T11:43:35Z", "name": "", "device_owner": "network:dhcp", "qos_policy_id": null, "revision_number": 7, "mac_address": "fa:16:3e:09:a6:ce", "port_security_enabled": false, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "0a0f0ac2-2bc6-423c-9197-7c3313438c2d", "ip_address": "192.168.0.2"}], "id": "b64c151a-04c3-4fa8-bd76-7e5736380297", "security_groups": [], "device_id": "dhcpaebe17f8-776d-5ab6-9a5f-e9bdeeaca66f-045623ae-4277-4f91-bf97-c64d8708a9c0"}, {"status": "ACTIVE", "created_at": "2016-11-28T11:43:40Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "f29f4370-efda-45fe-9d37-e2a914b9dc4c", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T11:43:44Z", "name": "", "device_owner": "network:dhcp", "qos_policy_id": null, "revision_number": 7, "mac_address": "fa:16:3e:b3:d9:69", "port_security_enabled": false, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "a4e90ce8-977b-485b-8a96-ced5b53a7f6d", "ip_address": "192.168.10.2"}], "id": "d1dcea2e-183a-4367-914a-5caab0c4cd91", "security_groups": [], "device_id": "dhcpaebe17f8-776d-5ab6-9a5f-e9bdeeaca66f-f29f4370-efda-45fe-9d37-e2a914b9dc4c"}, {"status": "ACTIVE", "created_at": "2016-11-28T11:43:49Z", "project_id": "af788c6da1fb4388b09040aa99c997bc", "description": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "f29f4370-efda-45fe-9d37-e2a914b9dc4c", "tenant_id": "af788c6da1fb4388b09040aa99c997bc", "extra_dhcp_opts": [], "updated_at": "2016-11-28T12:04:25Z", "name": "tagged10_port", "device_owner": "trunk:subport", "qos_policy_id": null, "revision_number": 13, "mac_address": "fa:16:3e:ad:d5:39", "port_security_enabled": true, "binding:vnic_type": "normal", "fixed_ips": [{"subnet_id": "a4e90ce8-977b-485b-8a96-ced5b53a7f6d", "ip_address": "192.168.10.8"}], "id": "fdb9e48e-582f-43bd-b913-471711b3d2d2", "security_groups": ["85ae7587-599d-4c65-a75c-9f5c4ad3cbcf"], "device_id": ""}]}
  89.  
  90. REQ: curl -g -i -X POST http://10.0.0.101:9696/v2.0/floatingips -H "User-Agent: openstacksdk/0.9.5 keystoneauth1/2.12.2 python-requests/2.10.0 CPython/2.7.5" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}cdf7373b2c34618cb9b3a12fbb4dff347b0b0655" -d '{"floatingip": {"floating_network_id": "7e09c182-b829-4174-ba0b-5e90efc20f54", "port_id": "7d749eb0-633d-4114-b322-414d19f86046"}}'
  91. "POST /v2.0/floatingips HTTP/1.1" 404 306
  92. RESP: [404] Content-Type: application/json Content-Length: 306 X-Openstack-Request-Id: req-2d6b5b0e-0d92-40f6-87b3-9bdf2f5b8232 Date: Mon, 28 Nov 2016 12:16:55 GMT Connection: keep-alive
  93. RESP BODY: {"NeutronError": {"message": "External network 7e09c182-b829-4174-ba0b-5e90efc20f54 is not reachable from subnet 0a0f0ac2-2bc6-423c-9197-7c3313438c2d. Therefore, cannot associate Port 7d749eb0-633d-4114-b322-414d19f86046 with a Floating IP.", "type": "ExternalGatewayForFloatingIPNotFound", "detail": ""}}
  94.  
  95. Request returned failure status: 404
  96. NotFoundException: Not Found
  97. Traceback (most recent call last):
  98. File "/usr/lib/python2.7/site-packages/cliff/app.py", line 387, in run_subcommand
  99. result = cmd.run(parsed_args)
  100. File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
  101. return super(Command, self).run(parsed_args)
  102. File "/usr/lib/python2.7/site-packages/cliff/display.py", line 100, in run
  103. column_names, data = self.take_action(parsed_args)
  104. File "/usr/lib/python2.7/site-packages/openstackclient/network/common.py", line 186, in take_action
  105. parsed_args)
  106. File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/floating_ip.py", line 104, in take_action_network
  107. obj = client.create_ip(**attrs)
  108. File "/usr/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 227, in create_ip
  109. return self._create(_floating_ip.FloatingIP, **attrs)
  110. File "/usr/lib/python2.7/site-packages/openstack/proxy.py", line 179, in _create
  111. return res.create(self.session)
  112. File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 582, in create
  113. resp = self.create_by_id(session, self._attrs, self.id, path_args=self)
  114. File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 561, in create_by_id
  115. resp = session.post(url, endpoint_filter=cls.service, **args)
  116. File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 681, in post
  117. return self.request(url, 'POST', **kwargs)
  118. File "/usr/lib/python2.7/site-packages/openstack/session.py", line 46, in map_exceptions_wrapper
  119. http_status=e.http_status, cause=e)
  120. NotFoundException: NotFoundException: Not Found
  121. clean_up CreateFloatingIP: NotFoundException: Not Found
  122. Traceback (most recent call last):
  123. File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
  124. ret_val = super(OpenStackShell, self).run(argv)
  125. File "/usr/lib/python2.7/site-packages/cliff/app.py", line 267, in run
  126. result = self.run_subcommand(remainder)
  127. File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
  128. ret_value = super(OpenStackShell, self).run_subcommand(argv)
  129. File "/usr/lib/python2.7/site-packages/cliff/app.py", line 387, in run_subcommand
  130. result = cmd.run(parsed_args)
  131. File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
  132. return super(Command, self).run(parsed_args)
  133. File "/usr/lib/python2.7/site-packages/cliff/display.py", line 100, in run
  134. column_names, data = self.take_action(parsed_args)
  135. File "/usr/lib/python2.7/site-packages/openstackclient/network/common.py", line 186, in take_action
  136. parsed_args)
  137. File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/floating_ip.py", line 104, in take_action_network
  138. obj = client.create_ip(**attrs)
  139. File "/usr/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 227, in create_ip
  140. return self._create(_floating_ip.FloatingIP, **attrs)
  141. File "/usr/lib/python2.7/site-packages/openstack/proxy.py", line 179, in _create
  142. return res.create(self.session)
  143. File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 582, in create
  144. resp = self.create_by_id(session, self._attrs, self.id, path_args=self)
  145. File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 561, in create_by_id
  146. resp = session.post(url, endpoint_filter=cls.service, **args)
  147. File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 681, in post
  148. return self.request(url, 'POST', **kwargs)
  149. File "/usr/lib/python2.7/site-packages/openstack/session.py", line 46, in map_exceptions_wrapper
  150. http_status=e.http_status, cause=e)
  151. NotFoundException: NotFoundException: Not Found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement