2025-05-29 18:13:07,815 - INFO - Domain Default found not creating
2025-05-29 18:13:07,955 - INFO - Project ctest-TestBasicPolicy-76539159 not found, creating it
2025-05-29 18:13:08,394 - INFO - Created Project:ctest-TestBasicPolicy-76539159, ID : 2309b3cd-0801-49d9-8b19-d70edcbae032
2025-05-29 18:13:09,972 - INFO - ================================================================================
2025-05-29 18:13:09,972 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-29 18:13:09,972 - 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-05-29 18:13:10,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-29 18:13:10,231 - INFO - Initial checks done. Running the testcase now
2025-05-29 18:13:10,231 - INFO -
2025-05-29 18:13:10,827 - DEBUG - Response for create_network : {'network': {'id': '97cf7015-85a6-4eed-b8ea-943e7c98bc6a', 'name': 'ctest-vn-99598339', 'tenant_id': '2309b3cd080149d98b19d70edcbae032', 'project_id': '2309b3cd080149d98b19d70edcbae032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-vn-99598339'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 18:13:10,995 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f70e44c9-8d69-44e6-bb32-b922567b8a43', 'name': '', 'tenant_id': '2309b3cd080149d98b19d70edcbae032', 'network_id': '97cf7015-85a6-4eed-b8ea-943e7c98bc6a', 'ip_version': 4, 'cidr': '74.73.102.0/26', 'allocation_pools': [{'start': '74.73.102.2', 'end': '74.73.102.62'}], 'gateway_ip': '74.73.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.73.102.2', 'tags': [], 'project_id': '2309b3cd080149d98b19d70edcbae032'}}
2025-05-29 18:13:11,017 - INFO - Created VN ctest-vn-99598339
2025-05-29 18:13:11,072 - DEBUG - VN ctest-vn-99598339 UUID is 97cf7015-85a6-4eed-b8ea-943e7c98bc6a
2025-05-29 18:13:11,369 - DEBUG - Response for create_network : {'network': {'id': 'b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c', 'name': 'ctest-vn-96235617', 'tenant_id': '2309b3cd080149d98b19d70edcbae032', 'project_id': '2309b3cd080149d98b19d70edcbae032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-vn-96235617'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 18:13:11,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd72fe056-1dbd-4476-8cf7-de22ebbab4ac', 'name': '', 'tenant_id': '2309b3cd080149d98b19d70edcbae032', 'network_id': 'b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c', 'ip_version': 4, 'cidr': '104.72.44.0/26', 'allocation_pools': [{'start': '104.72.44.2', 'end': '104.72.44.62'}], 'gateway_ip': '104.72.44.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.72.44.2', 'tags': [], 'project_id': '2309b3cd080149d98b19d70edcbae032'}}
2025-05-29 18:13:11,552 - INFO - Created VN ctest-vn-96235617
2025-05-29 18:13:11,604 - DEBUG - VN ctest-vn-96235617 UUID is b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c
2025-05-29 18:13:11,717 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-99598339, 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-76539159:ctest-vn-96235617, 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-05-29 18:13:12,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97cf7015-85a6-4eed-b8ea-943e7c98bc6a', 'name': 'ctest-vn-99598339', 'tenant_id': '2309b3cd080149d98b19d70edcbae032', 'project_id': '2309b3cd080149d98b19d70edcbae032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f70e44c9-8d69-44e6-bb32-b922567b8a43'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-vn-99598339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-policy-allow-all-97808742']], 'subnet_ipam': [{'subnet_cidr': '74.73.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 18:13:12,277 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c', 'name': 'ctest-vn-96235617', 'tenant_id': '2309b3cd080149d98b19d70edcbae032', 'project_id': '2309b3cd080149d98b19d70edcbae032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d72fe056-1dbd-4476-8cf7-de22ebbab4ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-vn-96235617'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-policy-allow-all-97808742']], 'subnet_ipam': [{'subnet_cidr': '104.72.44.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 18:13:12,444 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 18:13:12,786 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 18:13:12,815 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b657cc8-581c-4c95-9720-890b9b7b8ccb
2025-05-29 18:13:12,829 - DEBUG - Requesting: http://10.0.0.38:8082/project/2309b3cd-0801-49d9-8b19-d70edcbae032
2025-05-29 18:13:12,905 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97cf7015-85a6-4eed-b8ea-943e7c98bc6a
2025-05-29 18:13:12,917 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97cf7015-85a6-4eed-b8ea-943e7c98bc6a
2025-05-29 18:13:12,926 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f0f7bff-34dc-41e5-953c-67ff1c05d9fd
2025-05-29 18:13:12,934 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f0f7bff-34dc-41e5-953c-67ff1c05d9fd
2025-05-29 18:13:12,942 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e59739cd-6a84-45ec-9275-4f2be3c6acac
2025-05-29 18:13:12,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 18:13:12,949 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97cf7015-85a6-4eed-b8ea-943e7c98bc6a
2025-05-29 18:13:12,959 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f0f7bff-34dc-41e5-953c-67ff1c05d9fd
2025-05-29 18:13:12,974 - INFO - Verified VN network id 8 for VN 97cf7015-85a6-4eed-b8ea-943e7c98bc6a
2025-05-29 18:13:12,974 - INFO - Verifications in API Server for VN ctest-vn-99598339 passed
2025-05-29 18:13:12,974 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97cf7015-85a6-4eed-b8ea-943e7c98bc6a
2025-05-29 18:13:12,983 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f0f7bff-34dc-41e5-953c-67ff1c05d9fd
2025-05-29 18:13:12,991 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f0f7bff-34dc-41e5-953c-67ff1c05d9fd
2025-05-29 18:13:12,997 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e59739cd-6a84-45ec-9275-4f2be3c6acac
2025-05-29 18:13:13,010 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-99598339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76539159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10939085257645117165', 'uuid-lslong': '13324625443628301418'}, 'enable': 'true', 'created': '2025-05-29T18:13:10', 'last-modified': '2025-05-29T18:13:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005915'}
2025-05-29 18:13:13,017 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 18:13:13,017 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99598339 passed
2025-05-29 18:13:13,017 - DEBUG - ====Verifying policy data for ctest-vn-99598339 in API_Server ======
2025-05-29 18:13:13,017 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 18:13:13,024 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b657cc8-581c-4c95-9720-890b9b7b8ccb
2025-05-29 18:13:13,037 - DEBUG - Requesting: http://10.0.0.38:8082/project/2309b3cd-0801-49d9-8b19-d70edcbae032
2025-05-29 18:13:13,110 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97cf7015-85a6-4eed-b8ea-943e7c98bc6a
2025-05-29 18:13:13,120 - DEBUG - ==>Verifying data for policy with id: 2a0c9b13-92d2-42a8-8e21-4c00583dd123, fqn: ['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-policy-allow-all-97808742']
2025-05-29 18:13:13,120 - INFO - VN ctest-vn-99598339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 18:13:13,121 - DEBUG - Verifying the vn in opserver
2025-05-29 18:13:13,121 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-99598339 virtual network link through opserver 10.0.0.38
2025-05-29 18:13:13,121 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 18:13:13,453 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 18:13:13,508 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-99598339', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-99598339?flat'}
2025-05-29 18:13:13,508 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-99598339 is found in opserver
2025-05-29 18:13:13,519 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 18:13:13,525 - DEBUG - VRF ids for VN ctest-vn-99598339: {}
2025-05-29 18:13:13,525 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 18:13:13,531 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b657cc8-581c-4c95-9720-890b9b7b8ccb
2025-05-29 18:13:13,544 - DEBUG - Requesting: http://10.0.0.38:8082/project/2309b3cd-0801-49d9-8b19-d70edcbae032
2025-05-29 18:13:13,620 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c
2025-05-29 18:13:13,633 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c
2025-05-29 18:13:13,642 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3f64243-4648-48cb-9dea-bf301a5aa543
2025-05-29 18:13:13,649 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3f64243-4648-48cb-9dea-bf301a5aa543
2025-05-29 18:13:13,656 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/75129995-7cb3-42f7-abf1-6a8af3028141
2025-05-29 18:13:13,663 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 18:13:13,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c
2025-05-29 18:13:13,673 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3f64243-4648-48cb-9dea-bf301a5aa543
2025-05-29 18:13:13,688 - INFO - Verified VN network id 9 for VN b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c
2025-05-29 18:13:13,688 - INFO - Verifications in API Server for VN ctest-vn-96235617 passed
2025-05-29 18:13:13,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c
2025-05-29 18:13:13,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3f64243-4648-48cb-9dea-bf301a5aa543
2025-05-29 18:13:13,708 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3f64243-4648-48cb-9dea-bf301a5aa543
2025-05-29 18:13:13,716 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/75129995-7cb3-42f7-abf1-6a8af3028141
2025-05-29 18:13:13,731 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-96235617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76539159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12687415213861653125', 'uuid-lslong': '10423754087468617052'}, 'enable': 'true', 'created': '2025-05-29T18:13:11', 'last-modified': '2025-05-29T18:13:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478481'}
2025-05-29 18:13:13,738 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 18:13:13,738 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96235617 passed
2025-05-29 18:13:13,739 - DEBUG - ====Verifying policy data for ctest-vn-96235617 in API_Server ======
2025-05-29 18:13:13,739 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 18:13:13,745 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b657cc8-581c-4c95-9720-890b9b7b8ccb
2025-05-29 18:13:13,758 - DEBUG - Requesting: http://10.0.0.38:8082/project/2309b3cd-0801-49d9-8b19-d70edcbae032
2025-05-29 18:13:13,832 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b012c0ea-8c1c-4a85-90a8-9d1d7997cd5c
2025-05-29 18:13:13,843 - DEBUG - ==>Verifying data for policy with id: 2a0c9b13-92d2-42a8-8e21-4c00583dd123, fqn: ['default-domain', 'ctest-TestBasicPolicy-76539159', 'ctest-policy-allow-all-97808742']
2025-05-29 18:13:13,843 - INFO - VN ctest-vn-96235617 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 18:13:13,843 - DEBUG - Verifying the vn in opserver
2025-05-29 18:13:13,843 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-96235617 virtual network link through opserver 10.0.0.38
2025-05-29 18:13:13,843 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 18:13:13,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-96235617', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-96235617?flat'}
2025-05-29 18:13:13,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76539159:ctest-vn-96235617 is found in opserver
2025-05-29 18:13:13,868 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 18:13:13,874 - DEBUG - VRF ids for VN ctest-vn-96235617: {}
2025-05-29 18:13:13,931 - DEBUG - Services list from nova: [