2024-09-11 22:14:54,384 - INFO - Domain Default found not creating
2024-09-11 22:14:54,579 - INFO - Project ctest-TestBasicPolicy-35614645 not found, creating it
2024-09-11 22:14:55,112 - INFO - Created Project:ctest-TestBasicPolicy-35614645, ID : fee31955-0721-4e03-bb85-16c7ee029fb7
2024-09-11 22:14:56,880 - INFO - ================================================================================
2024-09-11 22:14:56,880 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 22:14:56,880 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-11 22:14:57,142 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.11': '0'}} with
2024-09-11 22:14:57,142 - INFO - Initial checks done. Running the testcase now
2024-09-11 22:14:57,142 - INFO -
2024-09-11 22:14:57,778 - DEBUG - Response for create_network : {'network': {'id': 'ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065', 'name': 'ctest-vn-32870346', 'tenant_id': 'fee3195507214e03bb8516c7ee029fb7', 'project_id': 'fee3195507214e03bb8516c7ee029fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-vn-32870346'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 22:14:57,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '67c65078-507d-47de-a573-a3d33e561840', 'name': '', 'tenant_id': 'fee3195507214e03bb8516c7ee029fb7', 'network_id': 'ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065', 'ip_version': 4, 'cidr': '60.98.194.0/26', 'allocation_pools': [{'start': '60.98.194.2', 'end': '60.98.194.62'}], 'gateway_ip': '60.98.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.98.194.2', 'tags': [], 'project_id': 'fee3195507214e03bb8516c7ee029fb7'}}
2024-09-11 22:14:58,001 - INFO - Created VN ctest-vn-32870346
2024-09-11 22:14:58,062 - DEBUG - VN ctest-vn-32870346 UUID is ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065
2024-09-11 22:14:58,415 - DEBUG - Response for create_network : {'network': {'id': 'b8c8a97c-9c76-4743-beb0-3d6c00adbc8f', 'name': 'ctest-vn-77399083', 'tenant_id': 'fee3195507214e03bb8516c7ee029fb7', 'project_id': 'fee3195507214e03bb8516c7ee029fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-vn-77399083'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 22:14:58,635 - DEBUG - Response for create_subnet : {'subnet': {'id': '37cf76c9-d5cb-4128-bc9d-661da190b64f', 'name': '', 'tenant_id': 'fee3195507214e03bb8516c7ee029fb7', 'network_id': 'b8c8a97c-9c76-4743-beb0-3d6c00adbc8f', 'ip_version': 4, 'cidr': '172.165.17.192/26', 'allocation_pools': [{'start': '172.165.17.194', 'end': '172.165.17.254'}], 'gateway_ip': '172.165.17.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.165.17.194', 'tags': [], 'project_id': 'fee3195507214e03bb8516c7ee029fb7'}}
2024-09-11 22:14:58,663 - INFO - Created VN ctest-vn-77399083
2024-09-11 22:14:58,726 - DEBUG - VN ctest-vn-77399083 UUID is b8c8a97c-9c76-4743-beb0-3d6c00adbc8f
2024-09-11 22:14:58,868 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-32870346, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-77399083, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-11 22:14:59,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065', 'name': 'ctest-vn-32870346', 'tenant_id': 'fee3195507214e03bb8516c7ee029fb7', 'project_id': 'fee3195507214e03bb8516c7ee029fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67c65078-507d-47de-a573-a3d33e561840'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-vn-32870346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-policy-allow-all-92347039']], 'subnet_ipam': [{'subnet_cidr': '60.98.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 22:14:59,506 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8c8a97c-9c76-4743-beb0-3d6c00adbc8f', 'name': 'ctest-vn-77399083', 'tenant_id': 'fee3195507214e03bb8516c7ee029fb7', 'project_id': 'fee3195507214e03bb8516c7ee029fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37cf76c9-d5cb-4128-bc9d-661da190b64f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-vn-77399083'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-policy-allow-all-92347039']], 'subnet_ipam': [{'subnet_cidr': '172.165.17.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 22:14:59,666 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-11 22:15:00,009 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-11 22:15:00,046 - DEBUG - Requesting: http://10.0.0.42:8082/domain/28104511-6a48-4f5e-8922-ddc5aaa30c65
2024-09-11 22:15:00,063 - DEBUG - Requesting: http://10.0.0.42:8082/project/fee31955-0721-4e03-bb85-16c7ee029fb7
2024-09-11 22:15:00,156 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065
2024-09-11 22:15:00,190 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065
2024-09-11 22:15:00,211 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/a4047818-2ff1-4a3a-9871-6cb4bf87629e
2024-09-11 22:15:00,223 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/a4047818-2ff1-4a3a-9871-6cb4bf87629e
2024-09-11 22:15:00,234 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5478fc39-8206-442a-9a8c-cf9938eea1db
2024-09-11 22:15:00,245 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 22:15:00,245 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065
2024-09-11 22:15:00,262 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/a4047818-2ff1-4a3a-9871-6cb4bf87629e
2024-09-11 22:15:00,288 - INFO - Verified VN network id 8 for VN ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065
2024-09-11 22:15:00,288 - INFO - Verifications in API Server for VN ctest-vn-32870346 passed
2024-09-11 22:15:00,288 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065
2024-09-11 22:15:00,305 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/a4047818-2ff1-4a3a-9871-6cb4bf87629e
2024-09-11 22:15:00,314 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/a4047818-2ff1-4a3a-9871-6cb4bf87629e
2024-09-11 22:15:00,329 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/5478fc39-8206-442a-9a8c-cf9938eea1db
2024-09-11 22:15:00,347 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-32870346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35614645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17012896055674620987', 'uuid-lslong': '12393197779340021861'}, 'enable': 'true', 'created': '2024-09-11T22:14:57', 'last-modified': '2024-09-11T22:14:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.159327'}
2024-09-11 22:15:00,357 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 22:15:00,357 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32870346 passed
2024-09-11 22:15:00,357 - DEBUG - ====Verifying policy data for ctest-vn-32870346 in API_Server ======
2024-09-11 22:15:00,357 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-11 22:15:00,364 - DEBUG - Requesting: http://10.0.0.42:8082/domain/28104511-6a48-4f5e-8922-ddc5aaa30c65
2024-09-11 22:15:00,381 - DEBUG - Requesting: http://10.0.0.42:8082/project/fee31955-0721-4e03-bb85-16c7ee029fb7
2024-09-11 22:15:00,482 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ec19f2d3-0f21-4c3b-abfd-7bb7e4b8d065
2024-09-11 22:15:00,508 - DEBUG - ==>Verifying data for policy with id: d6c1cc3a-f2c6-4bd8-bd8f-dbe7b78890ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-policy-allow-all-92347039']
2024-09-11 22:15:00,508 - INFO - VN ctest-vn-32870346 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 22:15:00,508 - DEBUG - Verifying the vn in opserver
2024-09-11 22:15:00,508 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-32870346 virtual network link through opserver 10.0.0.42
2024-09-11 22:15:00,508 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-11 22:15:00,873 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-11 22:15:01,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-32870346', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-32870346?flat'}
2024-09-11 22:15:01,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-32870346 is found in opserver
2024-09-11 22:15:01,306 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 22:15:01,315 - DEBUG - VRF ids for VN ctest-vn-32870346: {}
2024-09-11 22:15:01,315 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-11 22:15:01,323 - DEBUG - Requesting: http://10.0.0.42:8082/domain/28104511-6a48-4f5e-8922-ddc5aaa30c65
2024-09-11 22:15:01,340 - DEBUG - Requesting: http://10.0.0.42:8082/project/fee31955-0721-4e03-bb85-16c7ee029fb7
2024-09-11 22:15:01,434 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b8c8a97c-9c76-4743-beb0-3d6c00adbc8f
2024-09-11 22:15:01,455 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b8c8a97c-9c76-4743-beb0-3d6c00adbc8f
2024-09-11 22:15:01,470 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/674e3e23-8e7f-4577-9d26-c6c1d471f7df
2024-09-11 22:15:01,481 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/674e3e23-8e7f-4577-9d26-c6c1d471f7df
2024-09-11 22:15:01,492 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8acd008b-3c9f-4a61-b303-74759273a9ff
2024-09-11 22:15:01,502 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 22:15:01,502 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b8c8a97c-9c76-4743-beb0-3d6c00adbc8f
2024-09-11 22:15:01,521 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/674e3e23-8e7f-4577-9d26-c6c1d471f7df
2024-09-11 22:15:01,545 - INFO - Verified VN network id 9 for VN b8c8a97c-9c76-4743-beb0-3d6c00adbc8f
2024-09-11 22:15:01,545 - INFO - Verifications in API Server for VN ctest-vn-77399083 passed
2024-09-11 22:15:01,546 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b8c8a97c-9c76-4743-beb0-3d6c00adbc8f
2024-09-11 22:15:01,564 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/674e3e23-8e7f-4577-9d26-c6c1d471f7df
2024-09-11 22:15:01,576 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/674e3e23-8e7f-4577-9d26-c6c1d471f7df
2024-09-11 22:15:01,587 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8acd008b-3c9f-4a61-b303-74759273a9ff
2024-09-11 22:15:01,606 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-77399083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35614645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13315078650986907459', 'uuid-lslong': '13740549997184531599'}, 'enable': 'true', 'created': '2024-09-11T22:14:58', 'last-modified': '2024-09-11T22:14:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.133180'}
2024-09-11 22:15:01,616 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 22:15:01,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77399083 passed
2024-09-11 22:15:01,616 - DEBUG - ====Verifying policy data for ctest-vn-77399083 in API_Server ======
2024-09-11 22:15:01,616 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-11 22:15:01,623 - DEBUG - Requesting: http://10.0.0.42:8082/domain/28104511-6a48-4f5e-8922-ddc5aaa30c65
2024-09-11 22:15:01,640 - DEBUG - Requesting: http://10.0.0.42:8082/project/fee31955-0721-4e03-bb85-16c7ee029fb7
2024-09-11 22:15:01,735 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/b8c8a97c-9c76-4743-beb0-3d6c00adbc8f
2024-09-11 22:15:01,755 - DEBUG - ==>Verifying data for policy with id: d6c1cc3a-f2c6-4bd8-bd8f-dbe7b78890ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-35614645', 'ctest-policy-allow-all-92347039']
2024-09-11 22:15:01,755 - INFO - VN ctest-vn-77399083 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 22:15:01,755 - DEBUG - Verifying the vn in opserver
2024-09-11 22:15:01,755 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-77399083 virtual network link through opserver 10.0.0.42
2024-09-11 22:15:01,755 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-11 22:15:01,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-77399083', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-77399083?flat'}
2024-09-11 22:15:01,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35614645:ctest-vn-77399083 is found in opserver
2024-09-11 22:15:01,783 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 22:15:01,790 - DEBUG - VRF ids for VN ctest-vn-77399083: {}
2024-09-11 22:15:01,866 - DEBUG - Services list from nova: [