Skip to content

Instantly share code, notes, and snippets.

@jimrollenhagen
Created November 5, 2018 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimrollenhagen/82514bee47ad66e1e878c56d8fd66453 to your computer and use it in GitHub Desktop.
Save jimrollenhagen/82514bee47ad66e1e878c56d8fd66453 to your computer and use it in GitHub Desktop.
$ network show public
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | nova |
| created_at | 2018-11-02T18:59:22Z |
| description | |
| dns_domain | None |
| id | 7b3d30d3-e815-4d5c-8c07-aa90eb915ffb |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| location | None |
| mtu | 1500 |
| name | public |
| port_security_enabled | True |
| project_id | 59e0cde64a9f4dc6b05424c8f804227b |
| provider:network_type | None |
| provider:physical_network | None |
| provider:segmentation_id | None |
| qos_policy_id | None |
| revision_number | 2 |
| router:external | External |
| segments | None |
| shared | True |
| status | ACTIVE |
| subnets | 10c1d910-967f-4fa8-8f72-8e8718d8c473 |
| tags | |
| updated_at | 2018-11-02T20:34:49Z |
+---------------------------+--------------------------------------+
$ openstack --debug port create --network public --fixed-ip subnet=public-subnet --security-group base-builder jroll-test
START with options: [u'--debug', u'port', u'create', u'--network', u'public', u'--fixed-ip', u'subnet=public-subnet', u'--security-group', u'base-builder', u'jroll-test']
options: Namespace(access_token='***', access_token_endpoint='', access_token_type='', application_credential_id='', application_credential_name='', application_credential_secret='***', auth_type='', auth_url='http://10.72.242.7:35357/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', insecure=None, interface='internal', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', project_domain_id='', project_domain_name='Default', project_id='', project_name='k8s-admin', protocol='', redirect_uri='', region_name='RegionOne', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', service_provider='', system_scope='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='k8s-admin', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'cacert': None, 'auth_url': 'http://10.72.242.7:35357/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'auth': {'user_domain_name': 'Default', 'project_name': 'k8s-admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '***', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'username': 'k8s-admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': 'internal', u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'status': u'active', 'api_timeout': None, 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'baremetal_status_code_retries': 5, 'verify': True, 'cert': None, u'secgroup_source': u'neutron', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, 'cacert': None, 'auth_url': 'http://10.72.242.7:35357/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'auth': {'user_domain_name': 'Default', 'project_name': 'k8s-admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '***', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'username': 'k8s-admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': 'internal', u'disable_vendor_agent': {}}
compute API version 2.1, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'cacert': None, 'auth_url': 'http://10.72.242.7:35357/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'auth': {'user_domain_name': 'Default', 'project_name': 'k8s-admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '***', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'username': 'k8s-admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': 'internal', u'disable_vendor_agent': {}}
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'cacert': None, 'auth_url': 'http://10.72.242.7:35357/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'auth': {'user_domain_name': 'Default', 'project_name': 'k8s-admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '***', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'username': 'k8s-admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': 'internal', u'disable_vendor_agent': {}}
command: port create -> openstackclient.network.v2.port.CreatePort (auth=True)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'cacert': None, 'auth_url': 'http://10.72.242.7:35357/v3', 'additional_user_agent': [('osc-lib', '1.11.1')], u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'verify': True, u'object_store_api_version': u'1', u'status': u'active', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, 'auth': {'user_domain_name': 'Default', 'project_name': 'k8s-admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'password': '***', u'baremetal_status_code_retries': '5', 'identity_api_version': '3', 'username': 'k8s-admin', 'deferred_help': False, 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'interface': 'internal', u'disable_vendor_agent': {}}
Using auth plugin: password
Using parameters {'username': 'k8s-admin', 'project_name': 'k8s-admin', 'user_domain_name': 'Default', 'auth_url': 'http://10.72.242.7:35357/v3', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET http://10.72.242.7:35357/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10"
Starting new HTTP connection (1): 10.72.242.7:35357
http://10.72.242.7:35357 "GET /v3 HTTP/1.1" 200 252
RESP: [200] Content-Length: 252 Content-Type: application/json Date: Mon, 05 Nov 2018 19:30:58 GMT Server: Apache Vary: X-Auth-Token x-openstack-request-id: req-ed2584d0-5626-45a9-abac-f6da63129bef
RESP BODY: {"version": {"status": "stable", "updated": "2018-10-15T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.11", "links": [{"href": "http://10.72.242.7:35357/v3/", "rel": "self"}]}}
GET call to http://10.72.242.7:35357/v3 used request id req-ed2584d0-5626-45a9-abac-f6da63129bef
Making authentication request to http://10.72.242.7:35357/v3/auth/tokens
http://10.72.242.7:35357 "POST /v3/auth/tokens HTTP/1.1" 201 4130
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "93b4fd90332e418cadd5e2a057e09b1e", "name": "member"}, {"id": "953f873bbc6344c8b340b357e68b0649", "name": "reader"}], "expires_at": "2018-11-06T19:30:59.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "673747c5f3a2480091d9500329638f84", "name": "k8s-admin"}, "catalog": [{"endpoints": [{"url": "http://10.72.242.7:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "0f85423eb81b491482992522f18e4086"}, {"url": "http://10.72.242.7:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "6aae75b3744a4524a69de102ab508f44"}, {"url": "http://10.72.242.7:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e1ea8fa29a124d9e8732f9bca275a6d6"}], "type": "network", "id": "01e4352d78f74c80a17ce87cf7859ecf", "name": "neutron"}, {"endpoints": [{"url": "http://10.72.242.7:8780", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "52b005063b6c42208f002e8783a8e02f"}, {"url": "http://10.72.242.7:8780", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b92280307be2410eaf0209e9ae07b331"}, {"url": "http://10.72.242.7:8780", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d0acd06944dd4803b829d543a6b725bb"}], "type": "placement", "id": "1b9ab5aaca094129992647c2b942dfb2", "name": "placement"}, {"endpoints": [{"url": "http://10.72.242.7:8774/v2.1/673747c5f3a2480091d9500329638f84", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "107f324ee2fc47038c50a328e396b22e"}, {"url": "http://10.72.242.7:8774/v2.1/673747c5f3a2480091d9500329638f84", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d2c29924a5da4ad89758742730c9bab3"}, {"url": "http://10.72.242.7:8774/v2.1/673747c5f3a2480091d9500329638f84", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e0ea59f2964f4973b4692b77039a1767"}], "type": "compute", "id": "3d142583e14140e687c95b9508589e53", "name": "nova"}, {"endpoints": [{"url": "http://10.72.242.7:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "90b8efa9c9144915a8d98e99de645be5"}, {"url": "http://10.72.242.7:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a642ca47380d43aea3733c8adaed7b6f"}, {"url": "http://10.72.242.7:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ad7f8ab7d6dd493db0018300c17bf7f3"}], "type": "image", "id": "74b573608bd24d248ff83cef17cea4c2", "name": "glance"}, {"endpoints": [{"url": "http://10.72.242.7:5000", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2177539022554ae492775e13703ebe65"}, {"url": "http://10.72.242.7:35357", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "becb1e36632e41a9a4a94de73357e2b7"}, {"url": "http://10.72.242.7:5000", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cca5d7d82c9542faa8cbcf357576c040"}], "type": "identity", "id": "c388e94e1d3e4fa98c63bb76f5b53e70", "name": "keystone"}, {"endpoints": [{"url": "http://10.72.242.7:8774/v2/673747c5f3a2480091d9500329638f84", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "26ea71aad7884a13be3fd460e329fec0"}, {"url": "http://10.72.242.7:8774/v2/673747c5f3a2480091d9500329638f84", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "b466955c28a740198fd564c390b4556d"}, {"url": "http://10.72.242.7:8774/v2/673747c5f3a2480091d9500329638f84", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "c1350400245549888fc08335fede9d91"}], "type": "compute_legacy", "id": "fd74e9fe525042389174bd96ae0126fe", "name": "nova_legacy"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "k8s-admin", "id": "d04f99db26ea4bd4a96f044a88035ab4"}, "audit_ids": ["nxk-zS_UTJu3gHtRRJYe2g"], "issued_at": "2018-11-05T19:30:59.000000Z"}}
run(Namespace(allowed_address_pairs=None, binding_profile=None, columns=[], description=None, device=None, device_id=None, device_owner=None, disable=False, disable_port_security=False, dns_domain=None, dns_name=None, enable=True, enable_port_security=False, fit_width=False, fixed_ip=[{u'subnet': u'public-subnet'}], formatter='table', host=None, host_id=None, mac_address=None, max_width=0, name=u'jroll-test', network=u'public', no_fixed_ip=False, no_security_group=False, no_tag=False, noindent=False, prefix='', print_empty=False, project=None, project_domain=None, qos_policy=None, security_group=[u'base-builder'], tags=None, variables=[], vnic_type=None))
Making authentication request to http://10.72.242.7:35357/v3/auth/tokens
http://10.72.242.7:35357 "POST /v3/auth/tokens HTTP/1.1" 201 4130
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "93b4fd90332e418cadd5e2a057e09b1e", "name": "member"}, {"id": "953f873bbc6344c8b340b357e68b0649", "name": "reader"}], "expires_at": "2018-11-06T19:30:59.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "673747c5f3a2480091d9500329638f84", "name": "k8s-admin"}, "catalog": [{"endpoints": [{"url": "http://10.72.242.7:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "0f85423eb81b491482992522f18e4086"}, {"url": "http://10.72.242.7:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "6aae75b3744a4524a69de102ab508f44"}, {"url": "http://10.72.242.7:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e1ea8fa29a124d9e8732f9bca275a6d6"}], "type": "network", "id": "01e4352d78f74c80a17ce87cf7859ecf", "name": "neutron"}, {"endpoints": [{"url": "http://10.72.242.7:8780", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "52b005063b6c42208f002e8783a8e02f"}, {"url": "http://10.72.242.7:8780", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b92280307be2410eaf0209e9ae07b331"}, {"url": "http://10.72.242.7:8780", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d0acd06944dd4803b829d543a6b725bb"}], "type": "placement", "id": "1b9ab5aaca094129992647c2b942dfb2", "name": "placement"}, {"endpoints": [{"url": "http://10.72.242.7:8774/v2.1/673747c5f3a2480091d9500329638f84", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "107f324ee2fc47038c50a328e396b22e"}, {"url": "http://10.72.242.7:8774/v2.1/673747c5f3a2480091d9500329638f84", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d2c29924a5da4ad89758742730c9bab3"}, {"url": "http://10.72.242.7:8774/v2.1/673747c5f3a2480091d9500329638f84", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e0ea59f2964f4973b4692b77039a1767"}], "type": "compute", "id": "3d142583e14140e687c95b9508589e53", "name": "nova"}, {"endpoints": [{"url": "http://10.72.242.7:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "90b8efa9c9144915a8d98e99de645be5"}, {"url": "http://10.72.242.7:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a642ca47380d43aea3733c8adaed7b6f"}, {"url": "http://10.72.242.7:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ad7f8ab7d6dd493db0018300c17bf7f3"}], "type": "image", "id": "74b573608bd24d248ff83cef17cea4c2", "name": "glance"}, {"endpoints": [{"url": "http://10.72.242.7:5000", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2177539022554ae492775e13703ebe65"}, {"url": "http://10.72.242.7:35357", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "becb1e36632e41a9a4a94de73357e2b7"}, {"url": "http://10.72.242.7:5000", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cca5d7d82c9542faa8cbcf357576c040"}], "type": "identity", "id": "c388e94e1d3e4fa98c63bb76f5b53e70", "name": "keystone"}, {"endpoints": [{"url": "http://10.72.242.7:8774/v2/673747c5f3a2480091d9500329638f84", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "26ea71aad7884a13be3fd460e329fec0"}, {"url": "http://10.72.242.7:8774/v2/673747c5f3a2480091d9500329638f84", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "b466955c28a740198fd564c390b4556d"}, {"url": "http://10.72.242.7:8774/v2/673747c5f3a2480091d9500329638f84", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "c1350400245549888fc08335fede9d91"}], "type": "compute_legacy", "id": "fd74e9fe525042389174bd96ae0126fe", "name": "nova_legacy"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "k8s-admin", "id": "d04f99db26ea4bd4a96f044a88035ab4"}, "audit_ids": ["AXWeJYAEQ8Cl0EUqdQ5rzQ"], "issued_at": "2018-11-05T19:30:59.000000Z"}}
Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x102af2450>
Manager RegionOne running task network.GET.networks
TaskManager RegionOne queue size: 0)
REQ: curl -g -i -X GET http://10.72.242.7:9696/v2.0/networks/public -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10" -H "X-Auth-Token: {SHA256}996f80f3650201ef37a1ba776678a7f96d4235adabcb70b176db2069048f91fd"
Manager RegionOne ran task network.GET.networks in 0.00087308883667s
Starting new HTTP connection (1): 10.72.242.7:9696
http://10.72.242.7:9696 "GET /v2.0/networks/public HTTP/1.1" 404 108
RESP: [404] Connection: keep-alive Content-Length: 108 Content-Type: application/json Date: Mon, 05 Nov 2018 19:30:59 GMT X-Openstack-Request-Id: req-1024a887-84e5-4d2e-9f80-290ccfb7d05f
RESP BODY: {"NeutronError": {"message": "Network public could not be found.", "type": "NetworkNotFound", "detail": ""}}
GET call to network for http://10.72.242.7:9696/v2.0/networks/public used request id req-1024a887-84e5-4d2e-9f80-290ccfb7d05f
Manager RegionOne running task network.GET.networks
TaskManager RegionOne queue size: 0)
REQ: curl -g -i -X GET http://10.72.242.7:9696/v2.0/networks -H "Accept: application/json" -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10" -H "X-Auth-Token: {SHA256}996f80f3650201ef37a1ba776678a7f96d4235adabcb70b176db2069048f91fd"
Manager RegionOne ran task network.GET.networks in 0.00116991996765s
http://10.72.242.7:9696 "GET /v2.0/networks HTTP/1.1" 200 588
RESP: [200] Connection: keep-alive Content-Length: 588 Content-Type: application/json Date: Mon, 05 Nov 2018 19:31:00 GMT X-Openstack-Request-Id: req-4a9b9806-622f-4816-8c7e-2c1eb7878391
RESP BODY: {"networks":[{"status":"ACTIVE","router:external":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"description":"","port_security_enabled":true,"subnets":["10c1d910-967f-4fa8-8f72-8e8718d8c473"],"updated_at":"2018-11-02T20:34:49Z","tenant_id":"59e0cde64a9f4dc6b05424c8f804227b","created_at":"2018-11-02T18:59:22Z","tags":[],"ipv6_address_scope":null,"mtu":1500,"is_default":false,"revision_number":2,"admin_state_up":true,"shared":true,"project_id":"59e0cde64a9f4dc6b05424c8f804227b","id":"7b3d30d3-e815-4d5c-8c07-aa90eb915ffb","name":"public"}]}
GET call to network for http://10.72.242.7:9696/v2.0/networks used request id req-4a9b9806-622f-4816-8c7e-2c1eb7878391
Manager RegionOne running task network.GET.subnets
TaskManager RegionOne queue size: 0)
REQ: curl -g -i -X GET http://10.72.242.7:9696/v2.0/subnets/public-subnet -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10" -H "X-Auth-Token: {SHA256}996f80f3650201ef37a1ba776678a7f96d4235adabcb70b176db2069048f91fd"
Manager RegionOne ran task network.GET.subnets in 0.00103211402893s
http://10.72.242.7:9696 "GET /v2.0/subnets/public-subnet HTTP/1.1" 404 113
RESP: [404] Connection: keep-alive Content-Length: 113 Content-Type: application/json Date: Mon, 05 Nov 2018 19:31:00 GMT X-Openstack-Request-Id: req-1f1aaf32-8d9b-4bdd-bf3c-406238e997ad
RESP BODY: {"NeutronError": {"message": "Subnet public-subnet could not be found.", "type": "SubnetNotFound", "detail": ""}}
GET call to network for http://10.72.242.7:9696/v2.0/subnets/public-subnet used request id req-1f1aaf32-8d9b-4bdd-bf3c-406238e997ad
Manager RegionOne running task network.GET.subnets
TaskManager RegionOne queue size: 0)
REQ: curl -g -i -X GET http://10.72.242.7:9696/v2.0/subnets -H "Accept: application/json" -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10" -H "X-Auth-Token: {SHA256}996f80f3650201ef37a1ba776678a7f96d4235adabcb70b176db2069048f91fd"
Manager RegionOne ran task network.GET.subnets in 0.0011830329895s
http://10.72.242.7:9696 "GET /v2.0/subnets HTTP/1.1" 200 641
RESP: [200] Connection: keep-alive Content-Length: 641 Content-Type: application/json Date: Mon, 05 Nov 2018 19:31:00 GMT X-Openstack-Request-Id: req-90b19b05-48aa-4aa2-9e08-cefb27bc3762
RESP BODY: {"subnets":[{"service_types":[],"description":"","enable_dhcp":false,"tags":[],"network_id":"7b3d30d3-e815-4d5c-8c07-aa90eb915ffb","tenant_id":"59e0cde64a9f4dc6b05424c8f804227b","created_at":"2018-11-02T19:02:00Z","dns_nameservers":["10.72.242.106"],"updated_at":"2018-11-02T20:34:49Z","ipv6_ra_mode":null,"allocation_pools":[{"start":"10.72.243.200","end":"10.72.243.250"}],"gateway_ip":"10.72.243.1","revision_number":1,"ipv6_address_mode":null,"ip_version":4,"host_routes":[],"cidr":"10.72.243.0/24","project_id":"59e0cde64a9f4dc6b05424c8f804227b","id":"10c1d910-967f-4fa8-8f72-8e8718d8c473","subnetpool_id":null,"name":"public-subnet"}]}
GET call to network for http://10.72.242.7:9696/v2.0/subnets used request id req-90b19b05-48aa-4aa2-9e08-cefb27bc3762
Manager RegionOne running task network.GET.security-groups
TaskManager RegionOne queue size: 0)
REQ: curl -g -i -X GET http://10.72.242.7:9696/v2.0/security-groups/base-builder -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10" -H "X-Auth-Token: {SHA256}996f80f3650201ef37a1ba776678a7f96d4235adabcb70b176db2069048f91fd"
Manager RegionOne ran task network.GET.security-groups in 0.00226807594299s
http://10.72.242.7:9696 "GET /v2.0/security-groups/base-builder HTTP/1.1" 404 122
RESP: [404] Connection: keep-alive Content-Length: 122 Content-Type: application/json Date: Mon, 05 Nov 2018 19:31:00 GMT X-Openstack-Request-Id: req-7449b646-e5a6-4286-9876-5c4791113859
RESP BODY: {"NeutronError": {"message": "Security group base-builder does not exist", "type": "SecurityGroupNotFound", "detail": ""}}
GET call to network for http://10.72.242.7:9696/v2.0/security-groups/base-builder used request id req-7449b646-e5a6-4286-9876-5c4791113859
Manager RegionOne running task network.GET.security-groups
TaskManager RegionOne queue size: 0)
REQ: curl -g -i -X GET http://10.72.242.7:9696/v2.0/security-groups -H "Accept: application/json" -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10" -H "X-Auth-Token: {SHA256}996f80f3650201ef37a1ba776678a7f96d4235adabcb70b176db2069048f91fd"
Manager RegionOne ran task network.GET.security-groups in 0.0010199546814s
http://10.72.242.7:9696 "GET /v2.0/security-groups HTTP/1.1" 200 4784
RESP: [200] Connection: keep-alive Content-Length: 4784 Content-Type: application/json Date: Mon, 05 Nov 2018 19:31:00 GMT X-Openstack-Request-Id: req-138a7b01-2834-4466-b40b-ff9015e32e9b
RESP BODY: {"security_groups": [{"description": "Default security group", "tags": [], "tenant_id": "673747c5f3a2480091d9500329638f84", "created_at": "2018-11-05T17:30:24Z", "updated_at": "2018-11-05T17:30:24Z", "security_group_rules": [{"direction": "ingress", "protocol": null, "description": null, "tags": [], "port_range_max": null, "updated_at": "2018-11-05T17:30:24Z", "revision_number": 0, "id": "9252730a-351c-4bf4-bea9-9a9634a831ed", "remote_group_id": "b5a1e4ef-6d6a-4651-a1d7-78b413ae0af1", "remote_ip_prefix": null, "created_at": "2018-11-05T17:30:24Z", "security_group_id": "b5a1e4ef-6d6a-4651-a1d7-78b413ae0af1", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": null, "ethertype": "IPv6", "project_id": "673747c5f3a2480091d9500329638f84"}, {"direction": "egress", "protocol": null, "description": null, "tags": [], "port_range_max": null, "updated_at": "2018-11-05T17:30:24Z", "revision_number": 0, "id": "b1613354-8e04-4e0b-bc90-1b15c532e24d", "remote_group_id": null, "remote_ip_prefix": null, "created_at": "2018-11-05T17:30:24Z", "security_group_id": "b5a1e4ef-6d6a-4651-a1d7-78b413ae0af1", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": null, "ethertype": "IPv6", "project_id": "673747c5f3a2480091d9500329638f84"}, {"direction": "ingress", "protocol": null, "description": null, "tags": [], "port_range_max": null, "updated_at": "2018-11-05T17:30:24Z", "revision_number": 0, "id": "b3f2d99b-ff0e-49f6-a392-2148a2b26970", "remote_group_id": "b5a1e4ef-6d6a-4651-a1d7-78b413ae0af1", "remote_ip_prefix": null, "created_at": "2018-11-05T17:30:24Z", "security_group_id": "b5a1e4ef-6d6a-4651-a1d7-78b413ae0af1", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": null, "ethertype": "IPv4", "project_id": "673747c5f3a2480091d9500329638f84"}, {"direction": "egress", "protocol": null, "description": null, "tags": [], "port_range_max": null, "updated_at": "2018-11-05T17:30:24Z", "revision_number": 0, "id": "e502a25e-42cc-4c23-9463-1ff313ea448f", "remote_group_id": null, "remote_ip_prefix": null, "created_at": "2018-11-05T17:30:24Z", "security_group_id": "b5a1e4ef-6d6a-4651-a1d7-78b413ae0af1", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": null, "ethertype": "IPv4", "project_id": "673747c5f3a2480091d9500329638f84"}], "revision_number": 1, "project_id": "673747c5f3a2480091d9500329638f84", "id": "b5a1e4ef-6d6a-4651-a1d7-78b413ae0af1", "name": "default"}, {"description": "base-builder", "tags": [], "tenant_id": "673747c5f3a2480091d9500329638f84", "created_at": "2018-11-05T17:30:26Z", "updated_at": "2018-11-05T17:30:30Z", "security_group_rules": [{"direction": "ingress", "protocol": "tcp", "description": "", "tags": [], "port_range_max": 22, "updated_at": "2018-11-05T17:30:30Z", "revision_number": 0, "id": "00cdf772-80d6-42f6-be6a-7b54ea3ee567", "remote_group_id": null, "remote_ip_prefix": "0.0.0.0/0", "created_at": "2018-11-05T17:30:30Z", "security_group_id": "e11ff01d-a992-4b8f-844d-2888df6d8c5c", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": 22, "ethertype": "IPv4", "project_id": "673747c5f3a2480091d9500329638f84"}, {"direction": "egress", "protocol": null, "description": null, "tags": [], "port_range_max": null, "updated_at": "2018-11-05T17:30:26Z", "revision_number": 0, "id": "1e742698-0a5d-49ed-ae30-f881feae716a", "remote_group_id": null, "remote_ip_prefix": null, "created_at": "2018-11-05T17:30:26Z", "security_group_id": "e11ff01d-a992-4b8f-844d-2888df6d8c5c", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": null, "ethertype": "IPv4", "project_id": "673747c5f3a2480091d9500329638f84"}, {"direction": "ingress", "protocol": "tcp", "description": "", "tags": [], "port_range_max": 22, "updated_at": "2018-11-05T17:30:28Z", "revision_number": 0, "id": "3ffea904-96a7-44f0-9bbe-0e0f39d9b66c", "remote_group_id": null, "remote_ip_prefix": "10.91.28.243/32", "created_at": "2018-11-05T17:30:28Z", "security_group_id": "e11ff01d-a992-4b8f-844d-2888df6d8c5c", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": 22, "ethertype": "IPv4", "project_id": "673747c5f3a2480091d9500329638f84"}, {"direction": "egress", "protocol": null, "description": null, "tags": [], "port_range_max": null, "updated_at": "2018-11-05T17:30:26Z", "revision_number": 0, "id": "959a661e-3fe6-4d26-9676-a69fab4fcf80", "remote_group_id": null, "remote_ip_prefix": null, "created_at": "2018-11-05T17:30:26Z", "security_group_id": "e11ff01d-a992-4b8f-844d-2888df6d8c5c", "tenant_id": "673747c5f3a2480091d9500329638f84", "port_range_min": null, "ethertype": "IPv6", "project_id": "673747c5f3a2480091d9500329638f84"}], "revision_number": 3, "project_id": "673747c5f3a2480091d9500329638f84", "id": "e11ff01d-a992-4b8f-844d-2888df6d8c5c", "name": "base-builder"}]}
GET call to network for http://10.72.242.7:9696/v2.0/security-groups used request id req-138a7b01-2834-4466-b40b-ff9015e32e9b
Manager RegionOne running task network.POST.ports
TaskManager RegionOne queue size: 0)
Manager RegionOne ran task network.POST.ports in 0.000185012817383s
REQ: curl -g -i -X POST http://10.72.242.7:9696/v2.0/ports -H "Content-Type: application/json" -H "User-Agent: openstacksdk/0.19.0 keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.10" -H "X-Auth-Token: {SHA256}996f80f3650201ef37a1ba776678a7f96d4235adabcb70b176db2069048f91fd" -d '{"port": {"network_id": "7b3d30d3-e815-4d5c-8c07-aa90eb915ffb", "fixed_ips": [{"subnet_id": "10c1d910-967f-4fa8-8f72-8e8718d8c473"}], "name": "jroll-test", "security_groups": ["e11ff01d-a992-4b8f-844d-2888df6d8c5c"], "admin_state_up": true}}'
http://10.72.242.7:9696 "POST /v2.0/ports HTTP/1.1" 403 151
RESP: [403] Connection: keep-alive Content-Length: 151 Content-Type: application/json Date: Mon, 05 Nov 2018 19:31:00 GMT X-Openstack-Request-Id: req-d5f879f9-7efe-4440-a468-16a6a3c80fa2
RESP BODY: {"NeutronError": {"message": "(rule:create_port and rule:create_port:fixed_ips) is disallowed by policy", "type": "PolicyNotAuthorized", "detail": ""}}
POST call to network for http://10.72.242.7:9696/v2.0/ports used request id req-d5f879f9-7efe-4440-a468-16a6a3c80fa2
HttpException: 403: Client Error for url: http://10.72.242.7:9696/v2.0/ports, (rule:create_port and rule:create_port:fixed_ips) is disallowed by policy
Traceback (most recent call last):
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/cliff/app.py", line 401, in run_subcommand
result = cmd.run(parsed_args)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/cliff/display.py", line 116, in run
column_names, data = self.take_action(parsed_args)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstackclient/network/v2/port.py", line 440, in take_action
obj = client.create_port(**attrs)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 1459, in create_port
return self._create(_port.Port, **attrs)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/proxy.py", line 203, in _create
return res.create(self)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/resource.py", line 1054, in create
self._translate_response(response)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/resource.py", line 905, in _translate_response
exceptions.raise_from_response(response, error_message=error_message)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/exceptions.py", line 227, in raise_from_response
http_status=http_status, request_id=request_id
HttpException: HttpException: 403: Client Error for url: http://10.72.242.7:9696/v2.0/ports, (rule:create_port and rule:create_port:fixed_ips) is disallowed by policy
clean_up CreatePort: HttpException: 403: Client Error for url: http://10.72.242.7:9696/v2.0/ports, (rule:create_port and rule:create_port:fixed_ips) is disallowed by policy
Traceback (most recent call last):
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/cliff/app.py", line 281, in run
result = self.run_subcommand(remainder)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/osc_lib/shell.py", line 175, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/cliff/app.py", line 401, in run_subcommand
result = cmd.run(parsed_args)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/cliff/display.py", line 116, in run
column_names, data = self.take_action(parsed_args)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstackclient/network/v2/port.py", line 440, in take_action
obj = client.create_port(**attrs)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 1459, in create_port
return self._create(_port.Port, **attrs)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/proxy.py", line 203, in _create
return res.create(self)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/resource.py", line 1054, in create
self._translate_response(response)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/resource.py", line 905, in _translate_response
exceptions.raise_from_response(response, error_message=error_message)
File "/Users/jrollenhagen/virtualenvs/peglab/lib/python2.7/site-packages/openstack/exceptions.py", line 227, in raise_from_response
http_status=http_status, request_id=request_id
HttpException: HttpException: 403: Client Error for url: http://10.72.242.7:9696/v2.0/ports, (rule:create_port and rule:create_port:fixed_ips) is disallowed by policy
END return value: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment