Skip to content

Instantly share code, notes, and snippets.

@ajayhn
Last active October 11, 2016 20:21
Show Gist options
  • Save ajayhn/e0114bc7225186eabd093f8fb52b4d0a to your computer and use it in GitHub Desktop.
Save ajayhn/e0114bc7225186eabd093f8fb52b4d0a to your computer and use it in GitHub Desktop.
create-net-audit-log
root@a5s8:~# neutron net-create test-net-1
Created a new network:
+-------------------------+--------------------------------------+
| Field | Value |
+-------------------------+--------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test-net-1 |
| contrail:instance_count | 0 |
| id | 59b170ed-507c-412e-9b20-3a3db31c097d |
| name | test-net-1 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | f97f6029551f4702b38ae3029e639865 |
+-------------------------+--------------------------------------+
root@a5s8:~# contrail-logs --object-type config --last 1m
2016 Oct 11 13:10:38.179767 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = GET, user = admin, useragent = a7s30:vncapi.cc, remote_ip = 192.168.10.3:9100, domain_name = default-domain, project_name = admin, object_type = global_system_config, response_time_in_usec = 4131, response_size = 219, resp_code = 200]
2016 Oct 11 13:11:10.169148 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = GET, user = admin, useragent = a5s8:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, domain_name = default-domain, project_name = admin, object_type = virtual_network, response_time_in_usec = 12694, response_size = 11425, resp_code = 200]
2016 Oct 11 13:11:10.237360 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = GET, user = admin, useragent = a5s8:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, domain_name = default-domain, project_name = admin, object_type = virtual_network, response_time_in_usec = 5767, response_size = 8559, resp_code = 200]
2016 Oct 11 13:11:13.317141 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = GET, user = admin, useragent = a5s8:/usr/bin/contrail-snmp-collector, remote_ip = 192.168.10.3:9100, domain_name = default-domain, project_name = admin, object_type = physical_router, response_time_in_usec = 936, response_size = 24, resp_code = 200]
2016 Oct 11 13:11:22.518443 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = GET, user = admin, useragent = a5s8:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, domain_name = default-domain, project_name = admin, object_type = project, response_time_in_usec = 456, response_size = 184, resp_code = 200]
2016 Oct 11 13:11:22.524114 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = GET, user = admin, useragent = a5s8:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, domain_name = default-domain, project_name = admin, object_type = project, response_time_in_usec = 263291, response_size = 883, resp_code = 200]
2016 Oct 11 13:11:22.537389 a5s8 [:contrail-api:] : VncApiConfigLog: [VncApiCommon: object_type = virtual_network, identifier_name = default-domain:admin:test-net-1, url = http://127.0.0.1:9100/virtual-networks, operation = post, useragent = a5s8:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, body = {"virtual-network": {"fq_name": ["default-domain", "admin", "test-net-1"], "uuid": null, "network_policy_refs": [], "router_external": false, "parent_type": "project", "perms2": {"owner": "f97f6029551f4702b38ae3029e639865", "owner_access": 7, "global_access": 0, "share": []}, "id_perms": {"enable": true, "uuid": null, "creator": null, "created": null, "user_visible": true, "last_modified": null, "permissions": {"owner": "cloud-admin", "owner_access": 7, "other_access": 7, "group": "cloud-admin-group", "group_access": 7}, "description": null}, "flood_unknown_unicast": false, "display_name": "test-net-1", "is_shared": false}}, domain = default-domain, project = admin, user = admin]
2016 Oct 11 13:11:22.567689 a5s8 [:contrail-api:] : VncApiConfigLog: [VncApiCommon: object_type = routing_instance, identifier_name = default-domain:admin:test-net-1:test-net-1, url = http://127.0.0.1/routing-instances, operation = post, body = {"routing-instance": {"fq_name": ["default-domain", "admin", "test-net-1", "test-net-1"], "uuid": null, "routing_instance_has_pnf": false, "routing_instance_is_default": true, "parent_type": "virtual-network", "perms2": {"owner": "cloud-admin", "owner_access": 7, "global_access": 0, "share": []}, "id_perms": {"enable": true, "uuid": null, "creator": null, "created": null, "user_visible": true, "last_modified": null, "permissions": {"owner": "cloud-admin", "owner_access": 7, "other_access": 7, "group": "cloud-admin-group", "group_access": 7}, "description": null}, "display_name": "test-net-1"}}, domain = default-domain]
2016 Oct 11 13:11:22.595025 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = POST, user = admin, useragent = a5s8:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, domain_name = default-domain, project_name = admin, object_type = routing_instance, response_time_in_usec = 29261, response_size = 385, resp_code = 200]
2016 Oct 11 13:11:22.595379 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = POST, user = admin, useragent = a5s8:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, domain_name = default-domain, project_name = admin, object_type = virtual_network, response_time_in_usec = 60832, response_size = 371, resp_code = 200]
2016 Oct 11 13:11:22.858606 a5s8 [:contrail-api:] : VncApiConfigLog: [VncApiCommon: identifier_uuid = 59b170ed-507c-412e-9b20-3a3db31c097d, object_type = virtual_network, identifier_name = default-domain:admin:test-net-1, url = http://192.168.10.3:8082/virtual-network/59b170ed-507c-412e-9b20-3a3db31c097d, operation = put, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, body = {"virtual-network": {"uuid": "59b170ed-507c-412e-9b20-3a3db31c097d", "virtual_network_network_id": 8}}, domain = default-domain, project = admin, user = admin]
2016 Oct 11 13:11:22.863692 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = PUT, user = admin, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, domain_name = default-domain, project_name = admin, object_type = virtual_network, response_time_in_usec = 8666, response_size = 158, resp_code = 200]
2016 Oct 11 13:11:22.892111 a5s8 [:contrail-api:] : VncApiConfigLog: [VncApiCommon: object_type = route_target, identifier_name = target:64512:8000005, url = http://192.168.10.3:8082/route-targets, operation = post, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, body = {"route-target": {"display_name": "target:64512:8000005", "id_perms": {"enable": true, "uuid": null, "creator": null, "created": null, "user_visible": true, "last_modified": null, "permissions": {"owner": "cloud-admin", "owner_access": 7, "other_access": 7, "group": "cloud-admin-group", "group_access": 7}, "description": null}, "fq_name": ["target:64512:8000005"], "uuid": null, "perms2": {"owner": "f97f6029551f4702b38ae3029e639865", "owner_access": 7, "global_access": 0, "share": []}}}, domain = default-domain, project = admin, user = admin]
2016 Oct 11 13:11:22.900808 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = POST, user = admin, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, domain_name = default-domain, project_name = admin, object_type = route_target, response_time_in_usec = 10302, response_size = 221, resp_code = 200]
2016 Oct 11 13:11:22.909436 a5s8 [:contrail-api:] : VncApiConfigLog: [VncApiCommon: identifier_uuid = 4b0df38b-ca3e-416f-82a9-2bc4861ba94e, object_type = routing_instance, identifier_name = default-domain:admin:test-net-1:test-net-1, url = http://192.168.10.3:8082/routing-instance/4b0df38b-ca3e-416f-82a9-2bc4861ba94e, operation = put, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, body = {"routing-instance": {"uuid": "4b0df38b-ca3e-416f-82a9-2bc4861ba94e", "route_target_refs": [{"to": ["target:64512:8000005"], "attr": {"import_export": null}, "uuid": "b1968886-b1e9-45f2-9d81-3237dadba23d"}]}}, domain = default-domain, project = admin, user = admin]
2016 Oct 11 13:11:22.914961 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = PUT, user = admin, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, domain_name = default-domain, project_name = admin, object_type = routing_instance, response_time_in_usec = 7028, response_size = 160, resp_code = 200]
2016 Oct 11 13:11:22.925444 a5s8 [:contrail-api:] : VncApiConfigLog: [VncApiCommon: identifier_uuid = 4b0df38b-ca3e-416f-82a9-2bc4861ba94e, object_type = routing_instance, identifier_name = default-domain:admin:test-net-1:test-net-1, url = http://192.168.10.3:8082/routing-instance/4b0df38b-ca3e-416f-82a9-2bc4861ba94e, operation = put, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, body = {"routing-instance": {"uuid": "4b0df38b-ca3e-416f-82a9-2bc4861ba94e", "static_route_entries": {"route": []}}}, domain = default-domain, project = admin, user = admin]
2016 Oct 11 13:11:22.929006 a5s8 [:contrail-api:] : VncApiStatsLog: [VncApiStats: operation_type = PUT, user = admin, useragent = a5s8:/usr/bin/contrail-schema, remote_ip = 192.168.10.3:8082, domain_name = default-domain, project_name = admin, object_type = routing_instance, response_time_in_usec = 4475, response_size = 160, resp_code = 200]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment