2025-01-13 02:35:43,720 - INFO - Domain Default found not creating
2025-01-13 02:35:43,947 - INFO - Project ctest-TestBasicPolicy-86973582 not found, creating it
2025-01-13 02:35:44,763 - INFO - Created Project:ctest-TestBasicPolicy-86973582, ID : 9efc1c58-8361-4b13-b7fd-cb8ea5540968
2025-01-13 02:35:46,402 - INFO - ================================================================================
2025-01-13 02:35:46,402 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 02:35:46,402 - 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
2025-01-13 02:35:46,660 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.21': '0'}} with
2025-01-13 02:35:46,660 - INFO - Initial checks done. Running the testcase now
2025-01-13 02:35:46,661 - INFO -
2025-01-13 02:35:47,290 - DEBUG - Response for create_network : {'network': {'id': '19a7a2cf-d326-449a-85bb-73837ebc6ee8', 'name': 'ctest-vn-50581802', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-50581802'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:47,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b45400a-6de5-45f3-a0a9-6cca921821ae', 'name': '', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'network_id': '19a7a2cf-d326-449a-85bb-73837ebc6ee8', 'ip_version': 4, 'cidr': '119.220.65.128/26', 'allocation_pools': [{'start': '119.220.65.130', 'end': '119.220.65.190'}], 'gateway_ip': '119.220.65.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.220.65.130', 'tags': [], 'project_id': '9efc1c5883614b13b7fdcb8ea5540968'}}
2025-01-13 02:35:47,536 - INFO - Created VN ctest-vn-50581802
2025-01-13 02:35:47,589 - DEBUG - VN ctest-vn-50581802 UUID is 19a7a2cf-d326-449a-85bb-73837ebc6ee8
2025-01-13 02:35:47,908 - DEBUG - Response for create_network : {'network': {'id': '2dafe21d-5c7d-4822-ae3e-f8bcc647e146', 'name': 'ctest-vn-96784800', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-96784800'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:48,135 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f443d16c-d079-4ba3-b553-01a71f9edc05', 'name': '', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'network_id': '2dafe21d-5c7d-4822-ae3e-f8bcc647e146', 'ip_version': 4, 'cidr': '143.29.155.0/26', 'allocation_pools': [{'start': '143.29.155.2', 'end': '143.29.155.62'}], 'gateway_ip': '143.29.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.29.155.2', 'tags': [], 'project_id': '9efc1c5883614b13b7fdcb8ea5540968'}}
2025-01-13 02:35:48,156 - INFO - Created VN ctest-vn-96784800
2025-01-13 02:35:48,209 - DEBUG - VN ctest-vn-96784800 UUID is 2dafe21d-5c7d-4822-ae3e-f8bcc647e146
2025-01-13 02:35:48,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802, 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-86973582:ctest-vn-96784800, 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]
2025-01-13 02:35:48,681 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19a7a2cf-d326-449a-85bb-73837ebc6ee8', 'name': 'ctest-vn-50581802', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b45400a-6de5-45f3-a0a9-6cca921821ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-50581802'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793']], 'subnet_ipam': [{'subnet_cidr': '119.220.65.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:48,916 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dafe21d-5c7d-4822-ae3e-f8bcc647e146', 'name': 'ctest-vn-96784800', 'tenant_id': '9efc1c5883614b13b7fdcb8ea5540968', 'project_id': '9efc1c5883614b13b7fdcb8ea5540968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f443d16c-d079-4ba3-b553-01a71f9edc05'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-vn-96784800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793']], 'subnet_ipam': [{'subnet_cidr': '143.29.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:49,089 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 02:35:49,432 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 02:35:49,471 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825
2025-01-13 02:35:49,489 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968
2025-01-13 02:35:49,572 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8
2025-01-13 02:35:49,585 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8
2025-01-13 02:35:49,596 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1
2025-01-13 02:35:49,606 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1
2025-01-13 02:35:49,616 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/57ec368d-63a7-4b38-8ab4-2dd690e49817
2025-01-13 02:35:49,625 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 02:35:49,625 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8
2025-01-13 02:35:49,637 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1
2025-01-13 02:35:49,654 - INFO - Verified VN network id 8 for VN 19a7a2cf-d326-449a-85bb-73837ebc6ee8
2025-01-13 02:35:49,654 - INFO - Verifications in API Server for VN ctest-vn-50581802 passed
2025-01-13 02:35:49,654 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8
2025-01-13 02:35:49,669 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1
2025-01-13 02:35:49,681 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b8c43bd2-2456-42db-938f-ab8349311ce1
2025-01-13 02:35:49,692 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/57ec368d-63a7-4b38-8ab4-2dd690e49817
2025-01-13 02:35:49,709 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86973582', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1848625185543308442', 'uuid-lslong': '9636422836293496552'}, 'enable': 'true', 'created': '2025-01-13T02:35:47', 'last-modified': '2025-01-13T02:35:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058907'}
2025-01-13 02:35:49,718 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 02:35:49,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50581802 passed
2025-01-13 02:35:49,719 - DEBUG - ====Verifying policy data for ctest-vn-50581802 in API_Server ======
2025-01-13 02:35:49,719 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 02:35:49,727 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825
2025-01-13 02:35:49,743 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968
2025-01-13 02:35:49,820 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/19a7a2cf-d326-449a-85bb-73837ebc6ee8
2025-01-13 02:35:49,831 - DEBUG - ==>Verifying data for policy with id: 5e0a9470-8e2c-4185-b87c-63f57f8ffcaf, fqn: ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793']
2025-01-13 02:35:49,831 - INFO - VN ctest-vn-50581802 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 02:35:49,831 - DEBUG - Verifying the vn in opserver
2025-01-13 02:35:49,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802 virtual network link through opserver 10.0.0.23
2025-01-13 02:35:49,831 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-13 02:35:50,196 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-13 02:35:50,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802?flat'}
2025-01-13 02:35:50,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-50581802 is found in opserver
2025-01-13 02:35:50,290 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 02:35:50,298 - DEBUG - VRF ids for VN ctest-vn-50581802: {}
2025-01-13 02:35:50,298 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 02:35:50,307 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825
2025-01-13 02:35:50,326 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968
2025-01-13 02:35:50,403 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146
2025-01-13 02:35:50,415 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146
2025-01-13 02:35:50,426 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846
2025-01-13 02:35:50,436 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846
2025-01-13 02:35:50,445 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/2619a816-cad4-4a88-9260-a5a559ff08d7
2025-01-13 02:35:50,453 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-13 02:35:50,453 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146
2025-01-13 02:35:50,462 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846
2025-01-13 02:35:50,477 - INFO - Verified VN network id 9 for VN 2dafe21d-5c7d-4822-ae3e-f8bcc647e146
2025-01-13 02:35:50,477 - INFO - Verifications in API Server for VN ctest-vn-96784800 passed
2025-01-13 02:35:50,478 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146
2025-01-13 02:35:50,487 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846
2025-01-13 02:35:50,495 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/eb591dea-451f-452e-aed7-327517c63846
2025-01-13 02:35:50,503 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/2619a816-cad4-4a88-9260-a5a559ff08d7
2025-01-13 02:35:50,517 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86973582', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3292098468364765218', 'uuid-lslong': '12555746300819661126'}, 'enable': 'true', 'created': '2025-01-13T02:35:47', 'last-modified': '2025-01-13T02:35:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.621060'}
2025-01-13 02:35:50,526 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-13 02:35:50,526 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96784800 passed
2025-01-13 02:35:50,526 - DEBUG - ====Verifying policy data for ctest-vn-96784800 in API_Server ======
2025-01-13 02:35:50,527 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 02:35:50,536 - DEBUG - Requesting: http://10.0.0.23:8082/domain/0f308976-278f-4b6f-aaa1-ba4632518825
2025-01-13 02:35:50,551 - DEBUG - Requesting: http://10.0.0.23:8082/project/9efc1c58-8361-4b13-b7fd-cb8ea5540968
2025-01-13 02:35:50,622 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafe21d-5c7d-4822-ae3e-f8bcc647e146
2025-01-13 02:35:50,631 - DEBUG - ==>Verifying data for policy with id: 5e0a9470-8e2c-4185-b87c-63f57f8ffcaf, fqn: ['default-domain', 'ctest-TestBasicPolicy-86973582', 'ctest-policy-allow-all-38107793']
2025-01-13 02:35:50,631 - INFO - VN ctest-vn-96784800 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 02:35:50,631 - DEBUG - Verifying the vn in opserver
2025-01-13 02:35:50,631 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800 virtual network link through opserver 10.0.0.23
2025-01-13 02:35:50,631 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-13 02:35:50,646 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800?flat'}
2025-01-13 02:35:50,646 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86973582:ctest-vn-96784800 is found in opserver
2025-01-13 02:35:50,659 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 02:35:50,666 - DEBUG - VRF ids for VN ctest-vn-96784800: {}
2025-01-13 02:35:50,731 - DEBUG - Services list from nova: [