Advertisement
Guest User

openstack-port-create-with-fixed-ip

a guest
Oct 16th, 2023
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.38 KB | None | 0 0
  1. # openstack port create --network public-network-948 --fixed-ip subnet=dba7a427-dccb-4a5a-a8e0-23fcda64666d,ip-address=204.247.186.133 test1 --debug
  2. START with options: port create --network public-network-948 --fixed-ip subnet=dba7a427-dccb-4a5a-a8e0-23fcda64666d,ip-address=204.247.186.133 test1 --debug
  3. options: Namespace(verbose_level=3, log_file=None, deferred_help=False, debug=True, cloud='', region_name='RegionOne', cacert=None, cert='', key='', verify=None, insecure=None, default_domain='default', interface='public', service_provider='', remote_project_name='', remote_project_id='', remote_project_domain_name='', remote_project_domain_id='', timing=False, os_beta_command=False, profile='', os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_volume_api_version='', os_loadbalancer_api_version='2.0', os_clustering_api_version='1', os_dns_api_version='2', os_alarming_api_version='2', os_container_infra_api_version='1', os_key_manager_api_version='1', os_policy_api_version='1', os_orchestration_api_version='1', inspector_api_version='1', inspector_url=None, os_data_processing_api_version='1.1', os_data_processing_url='', os_baremetal_api_version='1.82', os_rca_api_version='1', os_container_api_version='1', os_metrics_api_version='1', os_workflow_api_version='2', os_application_catalog_api_version='1', murano_url='', glare_url='', murano_packages_service='murano', os_infra_optim_api_version='1.4', os_database_api_version='1', os_search_api_version='1', os_queues_api_version='2', auth_type='', auth_url='http://104.247.185.130:5000', system_scope='', domain_id='', domain_name='', project_id='9141113d2a484305a9cee9e93fc8f20b', project_name='user00183', project_domain_id='default', project_domain_name='', trust_id='', identity_provider='', protocol='', client_id='', client_secret='***', openid_scope='', access_token_endpoint='', discovery_endpoint='', access_token_type='', redirect_uri='', code='', access_token='***', username='spatel', password='***', endpoint='', token='***', realm_name='', openid_client_id='', user_id='', oauth2_endpoint='', oauth2_client_id='', oauth2_client_secret='***', user_domain_id='', user_domain_name='Default', roles='', device_authorization_endpoint='', default_domain_id='', default_domain_name='', user='', aodh_endpoint='', application_credential_secret='***', application_credential_id='', application_credential_name='', auth_methods='', passcode='', os_project_name=None, os_project_id=None)
  4. Auth plugin password selected
  5. auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_id': 'default', 'project_id': '9141113d2a484305a9cee9e93fc8f20b', 'project_name': 'user00183'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'region_name': 'RegionOne', 'default_domain': 'default', 'timing': False, 'inspector_api_version': '1', 'murano_packages_service': 'murano', 'auth_url': 'http://104.247.185.130:5000', 'username': 'spatel', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'loadbalancer_api_version': '2.0', 'clustering_api_version': '1', 'dns_api_version': '2', 'alarming_api_version': '2', 'container_infra_api_version': '1', 'key_manager_api_version': '1', 'policy_api_version': '1', 'orchestration_api_version': '1', 'data_processing_api_version': '1.1', 'baremetal_api_version': '1.82', 'rca_api_version': '1', 'container_api_version': '1', 'metrics_api_version': '1', 'workflow_api_version': '2', 'application_catalog_api_version': '1', 'infra_optim_api_version': '1.4', 'database_api_version': '1', 'search_api_version': '1', 'queues_api_version': '2', 'auth_type': 'password', ': []}
  6. defaults: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'auth_type': 'password', 'baremetal_status_code_retries': 5, 'baremetal_introspection_status_code_retries': 5, 'image_status_code_retries': 5, 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active'}
  7. cloud cfg: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_id': 'default', 'project_id': '9141113d2a484305a9cee9e93fc8f20b', 'project_name': 'user00183'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'region_name': 'RegionOne', 'default_domain': 'default', 'timing': False, 'inspector_api_version': '1', 'murano_packages_service': 'murano', 'auth_url': 'http://104.247.185.130:5000', 'username': 'spatel', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'loadbalancer_api_version': '2.0', 'clustering_api_version': '1', 'dns_api_version': '2', 'alarming_api_version': '2', 'container_infra_api_version': '1', 'key_manager_api_version': '1', 'policy_api_version': '1', 'orchestration_api_version': '1', 'data_processing_api_version': '1.1', 'baremetal_api_version': '1.82', 'rca_api_version': '1', 'container_api_version': '1', 'metrics_api_version': '1', 'workflow_api_version': '2', 'application_catalog_api_version': '1', 'infra_optim_api_version': '1.4', 'database_api_version': '1', 'search_api_version': '1', 'queues_api_version': '2', 'auth_type': 'password', ': []}
  8. compute API version 2.1, cmd group openstack.compute.v2
  9. identity API version 3, cmd group openstack.identity.v3
  10. image API version 2, cmd group openstack.image.v2
  11. network API version 2, cmd group openstack.network.v2
  12. object_store API version 1, cmd group openstack.object_store.v1
  13. volume API version 3, cmd group openstack.volume.v3
  14. load_balancer API version 2.0, cmd group openstack.load_balancer.v2
  15. clustering API version 1, cmd group openstack.clustering.v1
  16. dns API version 2, cmd group openstack.dns.v2
  17. alarming API version 2, cmd group openstack.alarming.v2
  18. container_infra API version 1, cmd group openstack.container_infra.v1
  19. key_manager API version 1, cmd group openstack.key_manager.v1
  20. congressclient API version 1, cmd group openstack.congressclient.v1
  21. orchestration API version 1, cmd group openstack.orchestration.v1
  22. baremetal_introspection API version 1, cmd group openstack.baremetal_introspection.v1
  23. data_processing API version 1.1, cmd group openstack.data_processing.v1
  24. baremetal API version 1.82, cmd group openstack.baremetal.v1
  25. rca API version 1, cmd group openstack.rca.v1
  26. container API version 1, cmd group openstack.container.v1
  27. metric API version 1, cmd group openstack.metric.v1
  28. workflow_engine API version 2, cmd group openstack.workflow_engine.v2
  29. application_catalog API version 1, cmd group openstack.application_catalog.v1
  30. infra-optim API version 1.4, cmd group openstack.infra_optim.v1
  31. database API version 1, cmd group openstack.database.v1
  32. neutronclient API version 2, cmd group openstack.neutronclient.v2
  33. search API version 1, cmd group openstack.search.v1
  34. messaging API version 2, cmd group openstack.messaging.v2
  35. command: port create -> openstackclient.network.v2.port.CreatePort (auth=True)
  36. Auth plugin password selected
  37. auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_id': 'default', 'project_id': '9141113d2a484305a9cee9e93fc8f20b', 'project_name': 'user00183'}, 'additional_user_agent': [('osc-lib', '2.8.0')], 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'region_name': 'RegionOne', 'default_domain': 'default', 'timing': False, 'inspector_api_version': '1', 'murano_packages_service': 'murano', 'auth_url': 'http://104.247.185.130:5000', 'username': 'spatel', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'loadbalancer_api_version': '2.0', 'clustering_api_version': '1', 'dns_api_version': '2', 'alarming_api_version': '2', 'container_infra_api_version': '1', 'key_manager_api_version': '1', 'policy_api_version': '1', 'orchestration_api_version': '1', 'data_processing_api_version': '1.1', 'baremetal_api_version': '1.82', 'rca_api_version': '1', 'container_api_version': '1', 'metrics_api_version': '1', 'workflow_api_version': '2', 'application_catalog_api_version': '1', 'infra_optim_api_version': '1.4', 'database_api_version': '1', 'search_api_version': '1', 'queues_api_version': '2', 'auth_type': 'password', ': []}
  38. Using auth plugin: password
  39. Using parameters {'auth_url': 'http://104.247.185.130:5000', 'project_id': '9141113d2a484305a9cee9e93fc8f20b', 'project_name': 'user00183', 'project_domain_id': 'default', 'username': 'spatel', 'user_domain_name': 'Default', 'password': '***'}
  40. Get auth_ref
  41. REQ: curl -g -i -X GET http://104.247.185.130:5000 -H "Accept: application/json" -H "User-Agent: openstacksdk/1.4.0 keystoneauth1/5.2.1 python-requests/2.31.0 CPython/3.10.12"
  42. Starting new HTTP connection (1): 104.247.185.130:5000
  43. http://104.247.185.130:5000 "GET / HTTP/1.1" 300 270
  44. RESP: [300] content-length: 270 content-type: application/json date: Mon, 16 Oct 2023 15:14:32 GMT location: http://104.247.185.130:5000/v3/ server: Apache vary: X-Auth-Token x-openstack-request-id: req-e2fa89fd-ecf1-4d9f-a568-1943b4ebeac3
  45. RESP BODY: {"versions": {"values": [{"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://104.247.185.130:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}]}}
  46. GET call to http://104.247.185.130:5000/ used request id req-e2fa89fd-ecf1-4d9f-a568-1943b4ebeac3
  47. Making authentication request to http://104.247.185.130:5000/v3/auth/tokens
  48. http://104.247.185.130:5000 "POST /v3/auth/tokens HTTP/1.1" 201 5606
  49. {"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "22e5078bcf16447ca645d13d4c644b1f", "name": "spatel", "password_expires_at": null}, "audit_ids": ["Qjy3xwRDR5uoHcENH5c8yA"], "expires_at": "2023-10-17T15:14:32.000000Z", "issued_at": "2023-10-16T15:14:32.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "9141113d2a484305a9cee9e93fc8f20b", "name": "user00183"}, "is_domain": false, "roles": [{"id": "bbd7c244aef84b948dc1cb7c92562560", "name": "_member_"}], "catalog": [{"endpoints": [{"id": "9b94fd530a8d4c1093a1b46eee69f282", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:9696", "region": "RegionOne"}, {"id": "e1814205dd904d2e805314a97bde4a8f", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.18.100:9696", "region": "RegionOne"}], "id": "29cb212091d5446e8c8e2b36ddc77ed3", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "d224b226d2c2463591607b50fd18b5c4", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:9311", "region": "RegionOne"}, {"id": "e23265f086404b7790af91ba6aa23fb7", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.18.100:9311", "region": "RegionOne"}], "id": "647adc36913a473096b09cc603eb4206", "type": "key-manager", "name": "barbican"}, {"endpoints": [{"id": "9d98f1c855b84ea7940f758325f6c8cf", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.18.100:8000/v1", "region": "RegionOne"}, {"id": "aea8f1b413ed4ca8a40a13a536067dbf", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:8000/v1", "region": "RegionOne"}], "id": "777a32919cef4c48995e78148bad6f36", "type": "cloudformation", "name": "heat-cfn"}, {"endpoints": [{"id": "93c8aa19b6664dd5b07290a136873c4b", "interface": "public", "region_id": "RegionOne", "url": "http://104.247.185.130:5000", "region": "RegionOne"}, {"id": "e1ccaaa1ab7f441ab16d68bc96fb9788", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:5000", "region": "RegionOne"}], "id": "8ddc122d14df41c3868d1241827161f9", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "360f90ffaa6c4d6fbcc04305eb383a16", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:9876", "region": "RegionOne"}, {"id": "e679b35e3043469781539cf194057775", "interface": "public", "region_id": "RegionOne", "url": "http://104.247.185.130:9876", "region": "RegionOne"}], "id": "a2b1f21e837f46afaf19b15928b0e5da", "type": "load-balancer", "name": "octavia"}, {"endpoints": [{"id": "26677c8a3a5e4c5089ee6744633dc5ef", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:9292", "region": "RegionOne"}, {"id": "95dd7b590d9f4023a23b5411c8dcbdb0", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.18.100:9292", "region": "RegionOne"}], "id": "a824c0297ffc421baeebd41cea5412c6", "type": "image", "name": "glance"}, {"endpoints": [{"id": "70340e9a56a64e5781795578248c5f76", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.18.100:8041", "region": "RegionOne"}, {"id": "73b3b3f47e8041c78a3778cada7e2c9d", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:8041", "region": "RegionOne"}], "id": "bcef3da54d26480e989d09f09d77543b", "type": "metric", "name": "gnocchi"}, {"endpoints": [{"id": "2ba4e177f3eb412dba1e34e68c9d1797", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.18.100:8774/v2.1", "region": "RegionOne"}, {"id": "61aed13d8b034c2ba15832074c8c03ed", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:8774/v2.1", "region": "RegionOne"}], "id": "c97a9c9f72e943189a8c3ae6d2c7d487", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "4d1a433044f74647bde0d56549c86448", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:8004/v1/9141113d2a484305a9cee9e93fc8f20b", "region": "RegionOne"}, {"id": "83abdc1e801740b48a446a7f79ac6d36", "interface": "public", "region_id": "RegionOne", "url": "http://104.247.185.130:8004/v1/9141113d2a484305a9cee9e93fc8f20b", "region": "RegionOne"}], "id": "cb88027951a148c6a5e21b562058a53a", "type": "orchestration", "name": "heat"}, {"endpoints": [{"id": "92c6ef0df59c4f508506cad93a23f6d9", "interface": "public", "region_id": "RegionOne", "url": "http://104.247.185.130:9511/v1", "region": "RegionOne"}, {"id": "ee3e536cbbcc405c9d5695d8f0e90a4c", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:9511/v1", "region": "RegionOne"}], "id": "dcaaf692fb834b00ae1572683828d5d2", "type": "container-infra", "name": "magnum"}, {"endpoints": [{"id": "65e43382c3b54d5f9a9d0e3a9818ded6", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:8780", "region": "RegionOne"}, {"id": "8b9b3aff1d8645cfa507290a886834e0", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.18.100:8780", "region": "RegionOne"}], "id": "eb9a355e4b3544bcb633ff34ad22a07f", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "98c8dc68e934482b94d26561ac6d2f4e", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.18.100:8776/v3/9141113d2a484305a9cee9e93fc8f20b", "region": "RegionOne"}, {"id": "a0f1eaa3415e42779eb7636e89cf8416", "interface": "public", "region_id": "RegionOne", "url": "http://104.247.185.130:8776/v3/9141113d2a484305a9cee9e93fc8f20b", "region": "RegionOne"}], "id": "ed3f6196f4bd454183f442ca55b42e53", "type": "volumev3", "name": "cinderv3"}]}}
  50. run(Namespace(formatter='table', columns=[], noindent=False, variables=[], prefix='', max_width=0, fit_width=False, print_empty=False, extra_properties=None, network='public-network-948', description=None, device=None, mac_address=None, device_owner=None, vnic_type=None, host=None, dns_domain=None, dns_name=None, numa_policy_required=False, numa_policy_preferred=False, numa_policy_legacy=False, fixed_ip=[{'subnet': 'dba7a427-dccb-4a5a-a8e0-23fcda64666d', 'ip-address': '204.247.186.133'}], no_fixed_ip=False, binding_profile=None, enable=True, disable=False, enable_uplink_status_propagation=False, disable_uplink_status_propagation=False, project=None, project_domain=None, name='test1', extra_dhcp_options=[], security_group=None, no_security_group=False, qos_policy=None, enable_port_security=False, disable_port_security=False, allowed_address_pairs=None, device_profile=None, tags=None, no_tag=False))
  51. Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x7fb8caf3fa00>
  52. REQ: curl -g -i -X GET http://192.168.18.100:9696/v2.0/networks/public-network-948 -H "User-Agent: openstacksdk/1.4.0 keystoneauth1/5.2.1 python-requests/2.31.0 CPython/3.10.12" -H "X-Auth-Token: {SHA256}22b1ee3505a6032404e94872e43da37649a14d032706471808e2ecba1c563b22"
  53. Starting new HTTP connection (1): 192.168.18.100:9696
  54. http://192.168.18.100:9696 "GET /v2.0/networks/public-network-948 HTTP/1.1" 404 120
  55. RESP: [404] content-length: 120 content-type: application/json date: Mon, 16 Oct 2023 15:14:33 GMT x-openstack-request-id: req-dff6f946-48b4-402a-8373-a4be357071fd
  56. RESP BODY: {"NeutronError": {"type": "NetworkNotFound", "message": "Network public-network-948 could not be found.", "detail": ""}}
  57. GET call to network for http://192.168.18.100:9696/v2.0/networks/public-network-948 used request id req-dff6f946-48b4-402a-8373-a4be357071fd
  58. REQ: curl -g -i -X GET "http://192.168.18.100:9696/v2.0/networks?name=public-network-948" -H "Accept: application/json" -H "User-Agent: openstacksdk/1.4.0 keystoneauth1/5.2.1 python-requests/2.31.0 CPython/3.10.12" -H "X-Auth-Token: {SHA256}22b1ee3505a6032404e94872e43da37649a14d032706471808e2ecba1c563b22"
  59. http://192.168.18.100:9696 "GET /v2.0/networks?name=public-network-948 HTTP/1.1" 200 649
  60. RESP: [200] content-length: 649 content-type: application/json date: Mon, 16 Oct 2023 15:14:33 GMT x-openstack-request-id: req-f62f51d5-a691-4b7e-a9d4-2226bcc36243
  61. RESP BODY: {"networks":[{"id":"5aacb586-c234-449e-a209-45fc63c8de26","name":"public-network-948","tenant_id":"1ed68ab792854dc99c1b2d31bf90019b","admin_state_up":true,"mtu":1500,"status":"ACTIVE","subnets":["d36886a2-99d3-4e2b-93ed-9e3cfabf5817","dba7a427-dccb-4a5a-a8e0-23fcda64666d"],"shared":true,"availability_zone_hints":[],"availability_zones":[],"ipv4_address_scope":null,"ipv6_address_scope":null,"router:external":true,"description":"","port_security_enabled":true,"dns_domain":"","is_default":false,"tags":[],"created_at":"2023-09-01T20:31:36Z","updated_at":"2023-10-15T18:13:52Z","revision_number":9,"project_id":"1ed68ab792854dc99c1b2d31bf90019b"}]}
  62. GET call to network for http://192.168.18.100:9696/v2.0/networks?name=public-network-948 used request id req-f62f51d5-a691-4b7e-a9d4-2226bcc36243
  63. REQ: curl -g -i -X GET http://192.168.18.100:9696/v2.0/subnets/dba7a427-dccb-4a5a-a8e0-23fcda64666d -H "User-Agent: openstacksdk/1.4.0 keystoneauth1/5.2.1 python-requests/2.31.0 CPython/3.10.12" -H "X-Auth-Token: {SHA256}22b1ee3505a6032404e94872e43da37649a14d032706471808e2ecba1c563b22"
  64. http://192.168.18.100:9696 "GET /v2.0/subnets/dba7a427-dccb-4a5a-a8e0-23fcda64666d HTTP/1.1" 200 641
  65. RESP: [200] content-length: 641 content-type: application/json date: Mon, 16 Oct 2023 15:14:33 GMT x-openstack-request-id: req-448a2861-7e7a-4ee7-800f-41baf2b57906
  66. RESP BODY: {"subnet":{"id":"dba7a427-dccb-4a5a-a8e0-23fcda64666d","name":"public-subnet-948-2","tenant_id":"1ed68ab792854dc99c1b2d31bf90019b","network_id":"5aacb586-c234-449e-a209-45fc63c8de26","ip_version":4,"subnetpool_id":null,"enable_dhcp":false,"ipv6_ra_mode":null,"ipv6_address_mode":null,"gateway_ip":"104.247.186.129","cidr":"104.247.186.128/28","allocation_pools":[{"start":"104.247.186.130","end":"104.247.186.142"}],"host_routes":[],"dns_nameservers":[],"description":"","service_types":[],"tags":[],"created_at":"2023-10-11T20:45:58Z","updated_at":"2023-10-15T18:13:52Z","revision_number":2,"project_id":"1ed68ab792854dc99c1b2d31bf90019b"}}
  67. GET call to network for http://192.168.18.100:9696/v2.0/subnets/dba7a427-dccb-4a5a-a8e0-23fcda64666d used request id req-448a2861-7e7a-4ee7-800f-41baf2b57906
  68. REQ: curl -g -i -X GET http://192.168.18.100:9696/v2.0/extensions/tag-ports-during-bulk-creation -H "User-Agent: openstacksdk/1.4.0 keystoneauth1/5.2.1 python-requests/2.31.0 CPython/3.10.12" -H "X-Auth-Token: {SHA256}22b1ee3505a6032404e94872e43da37649a14d032706471808e2ecba1c563b22"
  69. http://192.168.18.100:9696 "GET /v2.0/extensions/tag-ports-during-bulk-creation HTTP/1.1" 404 220
  70. RESP: [404] content-length: 220 content-type: text/html; charset=UTF-8 date: Mon, 16 Oct 2023 15:14:33 GMT x-openstack-request-id: req-5659e0d5-9272-4484-aa7e-8c2a3ecf6fee
  71. RESP BODY: Omitted, Content-Type is set to text/html; charset=UTF-8. Only text/plain, application/json responses have their bodies logged.
  72. GET call to network for http://192.168.18.100:9696/v2.0/extensions/tag-ports-during-bulk-creation used request id req-5659e0d5-9272-4484-aa7e-8c2a3ecf6fee
  73. REQ: curl -g -i -X GET http://192.168.18.100:9696/v2.0/extensions -H "Accept: application/json" -H "User-Agent: openstacksdk/1.4.0 keystoneauth1/5.2.1 python-requests/2.31.0 CPython/3.10.12" -H "X-Auth-Token: {SHA256}22b1ee3505a6032404e94872e43da37649a14d032706471808e2ecba1c563b22"
  74. http://192.168.18.100:9696 "GET /v2.0/extensions HTTP/1.1" 200 11120
  75. RESP: [200] content-length: 11120 content-type: application/json date: Mon, 16 Oct 2023 15:14:33 GMT x-openstack-request-id: req-f3455963-518a-4b23-8284-b470e87587ca
  76. RESP BODY: {"extensions": [{"name": "Address group", "alias": "address-group", "description": "Support address group", "updated": "2020-07-15T10:00:00-00:00", "links": []}, {"name": "Address scope", "alias": "address-scope", "description": "Address scopes extension.", "updated": "2015-07-26T10:00:00-00:00", "links": []}, {"name": "agent", "alias": "agent", "description": "The agent management extension.", "updated": "2013-02-03T10:00:00-00:00", "links": []}, {"name": "Allowed Address Pairs", "alias": "allowed-address-pairs", "description": "Provides allowed address pairs", "updated": "2013-07-23T10:00:00-00:00", "links": []}, {"name": "Auto Allocated Topology Services", "alias": "auto-allocated-topology", "description": "Auto Allocated Topology Services.", "updated": "2016-01-01T00:00:00-00:00", "links": []}, {"name": "Availability Zone", "alias": "availability_zone", "description": "The availability zone extension.", "updated": "2015-01-01T10:00:00-00:00", "links": []}, {"name": "Default Subnetpools", "alias": "default-subnetpools", "description": "Provides ability to mark and use a subnetpool as the default.", "updated": "2016-02-18T18:00:00-00:00", "links": []}, {"name": "DNS Integration", "alias": "dns-integration", "description": "Provides integration with DNS.", "updated": "2015-08-15T18:00:00-00:00", "links": []}, {"name": "dns_domain for ports", "alias": "dns-domain-ports", "description": "Allows the DNS domain to be specified for a network port.", "updated": "2017-04-24T10:00:00-00:00", "links": []}, {"name": "DNS domain names with keywords allowed", "alias": "dns-integration-domain-keywords", "description": "Allows to use keywords like <project_id>, <project_name>, <user_id> and <user_name> as DNS domain name", "updated": "2020-06-15T18:00:00-00:00", "links": []}, {"name": "Neutron external network", "alias": "external-net", "description": "Adds external network attribute to network resource.", "updated": "2013-01-14T10:00:00-00:00", "links": []}, {"name": "Neutron Extra DHCP options", "alias": "extra_dhcp_opt", "description": "Extra options configuration for DHCP. For example PXE boot options to DHCP clients can be specified (e.g. tftp-server, server-ip-address, bootfile-name)", "updated": "2013-03-17T12:00:00-00:00", "links": []}, {"name": "Neutron Extra Route", "alias": "extraroute", "description": "Extra routes configuration for L3 router", "updated": "2013-02-01T10:00:00-00:00", "links": []}, {"name": "Filter parameters validation", "alias": "filter-validation", "description": "Provides validation on filter parameters.", "updated": "2018-07-04T10:00:00-00:00", "links": []}, {"name": "Floating IP port forwarding detail", "alias": "floating-ip-port-forwarding-detail", "description": "Allow list floating ip return more port forwarding data, include'id' and 'internal_port_id'", "updated": "2022-05-06T10:00:00-00:00", "links": []}, {"name": "Floating IP Port Details Extension", "alias": "fip-port-details", "description": "Add port_details attribute to Floating IP resource", "updated": "2018-04-09T10:00:00-00:00", "links": []}, {"name": "Neutron Service Flavors", "alias": "flavors", "description": "Flavor specification for Neutron advanced services.", "updated": "2015-09-17T10:00:00-00:00", "links": []}, {"name": "Floating IP Pools Extension", "alias": "floatingip-pools", "description": "Provides a floating IP pools API.", "updated": "2018-03-21T10:00:00-00:00", "links": []}, {"name": "Neutron L3 Router", "alias": "router", "description": "Router abstraction for basic L3 forwarding between L2 Neutron networks and access to external networks via a NAT gateway.", "updated": "2012-07-20T10:00:00-00:00", "links": []}, {"name": "Neutron L3 Configurable external gateway mode", "alias": "ext-gw-mode", "description": "Extension of the router abstraction for specifying whether SNAT should occur on the external gateway", "updated": "2013-03-28T10:00:00-00:00", "links": []}, {"name": "Multi Provider Network", "alias": "multi-provider", "description": "Expose mapping of virtual networks to multiple physical networks", "updated": "2013-06-27T10:00:00-00:00", "links": []}, {"name": "Network MTU", "alias": "net-mtu", "description": "Provides MTU attribute for a network resource.", "updated": "2015-03-25T10:00:00-00:00", "links": []}, {"name": "Network MTU (writable)", "alias": "net-mtu-writable", "description": "Provides a writable MTU attribute for a network resource.", "updated": "2017-07-12T00:00:00-00:00", "links": []}, {"name": "Network Availability Zone", "alias": "network_availability_zone", "description": "Availability zone support for network.", "updated": "2015-01-01T10:00:00-00:00", "links": []}, {"name": "Network IP Availability", "alias": "network-ip-availability", "description": "Provides IP availability data for each network and subnet.", "updated": "2015-09-24T00:00:00-00:00", "links": []}, {"name": "Pagination support", "alias": "pagination", "description": "Extension that indicates that pagination is enabled.", "updated": "2016-06-12T00:00:00-00:00", "links": []}, {"name": "Port device profile", "alias": "port-device-profile", "description": "Expose the port device profile (Cyborg)", "updated": "2020-12-17T10:00:00-00:00", "links": []}, {"name": "Neutron Port MAC address regenerate", "alias": "port-mac-address-regenerate", "description": "Network port MAC address regenerate", "updated": "2018-05-03T10:00:00-00:00", "links": []}, {"name": "Port NUMA affinity policy", "alias": "port-numa-affinity-policy", "description": "Expose the port NUMA affinity policy", "updated": "2020-07-08T10:00:00-00:00", "links": []}, {"name": "Port Binding", "alias": "binding", "description": "Expose port bindings of a virtual port to external application", "updated": "2014-02-03T10:00:00-00:00", "links": []}, {"name": "Port Bindings Extended", "alias": "binding-extended", "description": "Expose port bindings of a virtual port to external application", "updated": "2017-07-17T10:00:00-00:00", "links": []}, {"name": "Port Security", "alias": "port-security", "description": "Provides port security", "updated": "2012-07-23T10:00:00-00:00", "links": []}, {"name": "project_id field enabled", "alias": "project-id", "description": "Extension that indicates that project_id field is enabled.", "updated": "2016-09-09T09:09:09-09:09", "links": []}, {"name": "Provider Network", "alias": "provider", "description": "Expose mapping of virtual networks to physical networks", "updated": "2012-09-07T10:00:00-00:00", "links": []}, {"name": "Quota engine limit check", "alias": "quota-check-limit", "description": "Support for checking the resource usage before applying a new quota limit", "updated": "2021-09-08T16:00:00-00:00", "links": []}, {"name": "Quota management support", "alias": "quotas", "description": "Expose functions for quotas management per project", "updated": "2012-07-29T10:00:00-00:00", "links": []}, {"name": "Quota details management support", "alias": "quota_details", "description": "Expose functions for quotas usage statistics per project", "updated": "2017-02-10T10:00:00-00:00", "links": []}, {"name": "RBAC Policies", "alias": "rbac-policies", "description": "Allows creation and modification of policies that control tenant access to resources.", "updated": "2015-06-17T12:15:12-00:00", "links": []}, {"name": "Add address_scope type to RBAC", "alias": "rbac-address-scope", "description": "Add address_scope type to RBAC", "updated": "2020-02-12T00:00:00-00:00", "links": []}, {"name": "Add security_group type to network RBAC", "alias": "rbac-security-groups", "description": "Add security_group type to network RBAC", "updated": "2019-02-14T00:00:00-00:00", "links": []}, {"name": "If-Match constraints based on revision_number", "alias": "revision-if-match", "description": "Extension indicating that If-Match based on revision_number is supported.", "updated": "2016-12-11T00:00:00-00:00", "links": []}, {"name": "Resource revision numbers", "alias": "standard-attr-revisions", "description": "This extension will display the revision number of neutron resources.", "updated": "2016-04-11T10:00:00-00:00", "links": []}, {"name": "Router Availability Zone", "alias": "router_availability_zone", "description": "Availability zone support for router.", "updated": "2015-01-01T10:00:00-00:00", "links": []}, {"name": "Normalized CIDR field for security group rules", "alias": "security-groups-normalized-cidr", "description": "Add new field with normalized remote_ip_prefix cidr in SG rule", "updated": "2020-07-28T10:00:00-00:00", "links": []}, {"name": "Remote address group id field for security group rules", "alias": "security-groups-remote-address-group", "description": "Add new field of remote address group id in SG rules", "updated": "2020-08-25T10:00:00-00:00", "links": []}, {"name": "Security group filtering on the shared field", "alias": "security-groups-shared-filtering", "description": "Support filtering security groups on the shared field", "updated": "2021-10-05T09:00:00-00:00", "links": []}, {"name": "security-group", "alias": "security-group", "description": "The security groups extension.", "updated": "2012-10-05T10:00:00-00:00", "links": []}, {"name": "Neutron Service Type Management", "alias": "service-type", "description": "API for retrieving service providers for Neutron advanced services", "updated": "2013-01-20T00:00:00-00:00", "links": []}, {"name": "Sorting support", "alias": "sorting", "description": "Extension that indicates that sorting is enabled.", "updated": "2016-06-12T00:00:00-00:00", "links": []}, {"name": "standard-attr-description", "alias": "standard-attr-description", "description": "Extension to add descriptions to standard attributes", "updated": "2016-02-10T10:00:00-00:00", "links": []}, {"name": "Stateful security group", "alias": "stateful-security-group", "description": "Indicates if the security group is stateful or not", "updated": "2019-11-26T09:00:00-00:00", "links": []}, {"name": "Subnet DNS publish fixed IP", "alias": "subnet-dns-publish-fixed-ip", "description": "Support choosing to publish DNS records for IPs from a subnet", "updated": "2019-05-24T10:00:00-00:00", "links": []}, {"name": "Subnet service types", "alias": "subnet-service-types", "description": "Provides ability to set the subnet service_types field", "updated": "2016-03-15T18:00:00-00:00", "links": []}, {"name": "Subnet Allocation", "alias": "subnet_allocation", "description": "Enables allocation of subnets from a subnet pool", "updated": "2015-03-30T10:00:00-00:00", "links": []}, {"name": "Tag support for resources with standard attribute: port, subnet, subnetpool, network, security_group, router, floatingip, policy, trunk, network_segment_range", "alias": "standard-attr-tag", "description": "Enables to set tag on resources with standard attribute.", "updated": "2017-01-01T00:00:00-00:00", "links": []}, {"name": "Resource timestamps", "alias": "standard-attr-timestamp", "description": "Adds created_at and updated_at fields to all Neutron resources that have Neutron standard attributes.", "updated": "2016-09-12T10:00:00-00:00", "links": []}]}
  77. GET call to network for http://192.168.18.100:9696/v2.0/extensions used request id req-f3455963-518a-4b23-8284-b470e87587ca
  78. REQ: curl -g -i -X POST http://192.168.18.100:9696/v2.0/ports -H "Content-Type: application/json" -H "User-Agent: openstacksdk/1.4.0 keystoneauth1/5.2.1 python-requests/2.31.0 CPython/3.10.12" -H "X-Auth-Token: {SHA256}22b1ee3505a6032404e94872e43da37649a14d032706471808e2ecba1c563b22" -d '{"port": {"admin_state_up": true, "network_id": "5aacb586-c234-449e-a209-45fc63c8de26", "name": "test1", "fixed_ips": [{"subnet_id": "dba7a427-dccb-4a5a-a8e0-23fcda64666d", "ip_address": "204.247.186.133"}]}}'
  79. http://192.168.18.100:9696 "POST /v2.0/ports HTTP/1.1" 403 238
  80. RESP: [403] content-length: 238 content-type: application/json date: Mon, 16 Oct 2023 15:14:33 GMT x-openstack-request-id: req-21942963-f8e6-4005-81b7-baeeb9d69a55
  81. RESP BODY: {"NeutronError": {"type": "PolicyNotAuthorized", "message": "(rule:create_port and (rule:create_port:fixed_ips and (rule:create_port:fixed_ips:subnet_id and rule:create_port:fixed_ips:ip_address))) is disallowed by policy", "detail": ""}}
  82. POST call to network for http://192.168.18.100:9696/v2.0/ports used request id req-21942963-f8e6-4005-81b7-baeeb9d69a55
  83. ForbiddenException: 403: Client Error for url: http://192.168.18.100:9696/v2.0/ports, (rule:create_port and (rule:create_port:fixed_ips and (rule:create_port:fixed_ips:subnet_id and rule:create_port:fixed_ips:ip_address))) is disallowed by policy
  84. Traceback (most recent call last):
  85. File "/opt/venv-openstack/lib/python3.10/site-packages/cliff/app.py", line 410, in run_subcommand
  86. result = cmd.run(parsed_args)
  87. File "/opt/venv-openstack/lib/python3.10/site-packages/osc_lib/command/command.py", line 39, in run
  88. return super(Command, self).run(parsed_args)
  89. File "/opt/venv-openstack/lib/python3.10/site-packages/cliff/display.py", line 117, in run
  90. column_names, data = self.take_action(parsed_args)
  91. File "/opt/venv-openstack/lib/python3.10/site-packages/openstackclient/network/v2/port.py", line 512, in take_action
  92. obj = client.create_port(**attrs)
  93. File "/opt/venv-openstack/lib/python3.10/site-packages/openstack/network/v2/_proxy.py", line 2877, in create_port
  94. return self._create(_port.Port, **attrs)
  95. File "/opt/venv-openstack/lib/python3.10/site-packages/openstack/proxy.py", line 594, in _create
  96. return res.create(self, base_path=base_path)
  97. File "/opt/venv-openstack/lib/python3.10/site-packages/openstack/resource.py", line 1536, in create
  98. self._translate_response(response, **response_kwargs)
  99. File "/opt/venv-openstack/lib/python3.10/site-packages/openstack/resource.py", line 1285, in _translate_response
  100. exceptions.raise_from_response(response, error_message=error_message)
  101. File "/opt/venv-openstack/lib/python3.10/site-packages/openstack/exceptions.py", line 263, in raise_from_response
  102. raise cls(
  103. openstack.exceptions.ForbiddenException: ForbiddenException: 403: Client Error for url: http://192.168.18.100:9696/v2.0/ports, (rule:create_port and (rule:create_port:fixed_ips and (rule:create_port:fixed_ips:subnet_id and rule:create_port:fixed_ips:ip_address))) is disallowed by policy
  104. clean_up CreatePort: ForbiddenException: 403: Client Error for url: http://192.168.18.100:9696/v2.0/ports, (rule:create_port and (rule:create_port:fixed_ips and (rule:create_port:fixed_ips:subnet_id and rule:create_port:fixed_ips:ip_address))) is disallowed by policy
  105. END return value: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement