Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [stack@undercloud-0 ~]$ openstack --debug floating ip create public --port parent_port
- START with options: [u'--debug', u'floating', u'ip', u'create', u'public', u'--port', u'parent_port']
- 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)
- Auth plugin password selected
- 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': {}}
- 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': {}}
- 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': {}}
- compute API version 2, cmd group openstack.compute.v2
- network API version 2, cmd group openstack.network.v2
- image API version 1, cmd group openstack.image.v1
- volume API version 2, cmd group openstack.volume.v2
- identity API version 2.0, cmd group openstack.identity.v2
- object_store API version 1, cmd group openstack.object_store.v1
- neutronclient API version 2, cmd group openstack.neutronclient.v2
- messaging API version 2, cmd group openstack.messaging.v2
- orchestration API version 1, cmd group openstack.orchestration.v1
- workflow_engine API version 2, cmd group openstack.workflow_engine.v2
- baremetal_introspection API version 1, cmd group openstack.baremetal_introspection.v1
- baremetal API version 1.15, cmd group openstack.baremetal.v1
- tripleoclient API version 1, cmd group openstack.tripleoclient.v1
- application_catalog API version 1, cmd group openstack.application_catalog.v1
- key_manager API version 1, cmd group openstack.key_manager.v1
- container_infra API version 1, cmd group openstack.container_infra.v1
- dns API version 2, cmd group openstack.dns.v2
- metric API version 1, cmd group openstack.metric.v1
- alarming API version 2, cmd group openstack.alarming.v2
- data_processing API version 1.1, cmd group openstack.data_processing.v1
- Auth plugin password selected
- 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': {}}
- Auth plugin password selected
- 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': {}}
- command: floating ip create -> openstackclient.network.v2.floating_ip.CreateFloatingIP
- Using auth plugin: password
- Using parameters {'username': 'vanv2_user', 'project_name': 'vanv2', 'password': '***', 'auth_url': 'http://10.0.0.101:5000/v2.0'}
- Get auth_ref
- 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"
- Starting new HTTP connection (1): 10.0.0.101
- "GET /v2.0 HTTP/1.1" 200 226
- 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
- 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"}]}}
- Making authentication request to http://10.0.0.101:5000/v2.0/tokens
- "POST /v2.0/tokens HTTP/1.1" 200 1099
- get_parser(openstack floating ip create)
- 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)
- network endpoint in service catalog
- 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=[]))
- network endpoint in service catalog
- Connection: <openstack.connection.Connection object at 0x3eeded0>
- Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x4112710>
- Making authentication request to http://10.0.0.101:5000/v2.0/tokens
- Starting new HTTP connection (1): 10.0.0.101
- "POST /v2.0/tokens HTTP/1.1" 200 1102
- 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"
- Starting new HTTP connection (1): 10.0.0.101
- "GET / HTTP/1.1" 200 118
- RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 118 Date: Mon, 28 Nov 2016 12:16:52 GMT Connection: keep-alive
- RESP BODY: {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://10.0.0.101:9696/v2.0", "rel": "self"}]}]}
- 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"
- "GET /v2.0/networks/public HTTP/1.1" 404 52
- 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
- RESP BODY: 404 Not Found
- The resource could not be found.
- Request returned failure status: 404
- 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"
- "GET /v2.0/networks HTTP/1.1" 200 2521
- 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
- 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}]}
- 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"
- "GET /v2.0/ports/parent_port HTTP/1.1" 404 52
- 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
- RESP BODY: 404 Not Found
- The resource could not be found.
- Request returned failure status: 404
- 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"
- "GET /v2.0/ports HTTP/1.1" 200 7420
- 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
- 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": ""}]}
- 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"}}'
- "POST /v2.0/floatingips HTTP/1.1" 404 306
- 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
- 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": ""}}
- Request returned failure status: 404
- NotFoundException: Not Found
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/cliff/app.py", line 387, in run_subcommand
- result = cmd.run(parsed_args)
- File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
- return super(Command, self).run(parsed_args)
- File "/usr/lib/python2.7/site-packages/cliff/display.py", line 100, in run
- column_names, data = self.take_action(parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/network/common.py", line 186, in take_action
- parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/floating_ip.py", line 104, in take_action_network
- obj = client.create_ip(**attrs)
- File "/usr/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 227, in create_ip
- return self._create(_floating_ip.FloatingIP, **attrs)
- File "/usr/lib/python2.7/site-packages/openstack/proxy.py", line 179, in _create
- return res.create(self.session)
- File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 582, in create
- resp = self.create_by_id(session, self._attrs, self.id, path_args=self)
- File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 561, in create_by_id
- resp = session.post(url, endpoint_filter=cls.service, **args)
- File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 681, in post
- return self.request(url, 'POST', **kwargs)
- File "/usr/lib/python2.7/site-packages/openstack/session.py", line 46, in map_exceptions_wrapper
- http_status=e.http_status, cause=e)
- NotFoundException: NotFoundException: Not Found
- clean_up CreateFloatingIP: NotFoundException: Not Found
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
- ret_val = super(OpenStackShell, self).run(argv)
- File "/usr/lib/python2.7/site-packages/cliff/app.py", line 267, in run
- result = self.run_subcommand(remainder)
- File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
- ret_value = super(OpenStackShell, self).run_subcommand(argv)
- File "/usr/lib/python2.7/site-packages/cliff/app.py", line 387, in run_subcommand
- result = cmd.run(parsed_args)
- File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
- return super(Command, self).run(parsed_args)
- File "/usr/lib/python2.7/site-packages/cliff/display.py", line 100, in run
- column_names, data = self.take_action(parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/network/common.py", line 186, in take_action
- parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/floating_ip.py", line 104, in take_action_network
- obj = client.create_ip(**attrs)
- File "/usr/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 227, in create_ip
- return self._create(_floating_ip.FloatingIP, **attrs)
- File "/usr/lib/python2.7/site-packages/openstack/proxy.py", line 179, in _create
- return res.create(self.session)
- File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 582, in create
- resp = self.create_by_id(session, self._attrs, self.id, path_args=self)
- File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 561, in create_by_id
- resp = session.post(url, endpoint_filter=cls.service, **args)
- File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 681, in post
- return self.request(url, 'POST', **kwargs)
- File "/usr/lib/python2.7/site-packages/openstack/session.py", line 46, in map_exceptions_wrapper
- http_status=e.http_status, cause=e)
- NotFoundException: NotFoundException: Not Found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement