2025-09-08 02:12:37,461 - INFO - Domain Default found not creating
2025-09-08 02:12:37,595 - INFO - Project ctest-TestBasicPolicy-92582634 not found, creating it
2025-09-08 02:12:38,026 - INFO - Created Project:ctest-TestBasicPolicy-92582634, ID : 284a644c-271b-41f9-b479-378acbded4c8
2025-09-08 02:12:39,402 - INFO - ================================================================================
2025-09-08 02:12:39,402 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-08 02:12:39,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-09-08 02:12:39,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-09-08 02:12:39,663 - INFO - Initial checks done. Running the testcase now
2025-09-08 02:12:39,663 - INFO -
2025-09-08 02:12:40,192 - DEBUG - Response for create_network : {'network': {'id': '89e6d724-d32c-48b6-9f87-e78a540ea8dd', 'name': 'ctest-vn-05611471', 'tenant_id': '284a644c271b41f9b479378acbded4c8', 'project_id': '284a644c271b41f9b479378acbded4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-vn-05611471'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:40,390 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b31b11a-89db-461e-986d-91d45ef51a6a', 'name': '', 'tenant_id': '284a644c271b41f9b479378acbded4c8', 'network_id': '89e6d724-d32c-48b6-9f87-e78a540ea8dd', 'ip_version': 4, 'cidr': '60.57.146.128/26', 'allocation_pools': [{'start': '60.57.146.130', 'end': '60.57.146.190'}], 'gateway_ip': '60.57.146.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.57.146.130', 'tags': [], 'project_id': '284a644c271b41f9b479378acbded4c8'}}
2025-09-08 02:12:40,406 - INFO - Created VN ctest-vn-05611471
2025-09-08 02:12:40,457 - DEBUG - VN ctest-vn-05611471 UUID is 89e6d724-d32c-48b6-9f87-e78a540ea8dd
2025-09-08 02:12:40,783 - DEBUG - Response for create_network : {'network': {'id': 'f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990', 'name': 'ctest-vn-96379479', 'tenant_id': '284a644c271b41f9b479378acbded4c8', 'project_id': '284a644c271b41f9b479378acbded4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-vn-96379479'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:40,951 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c11747ba-0f5c-4af4-9fe1-ae20f5e59405', 'name': '', 'tenant_id': '284a644c271b41f9b479378acbded4c8', 'network_id': 'f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990', 'ip_version': 4, 'cidr': '57.73.105.128/26', 'allocation_pools': [{'start': '57.73.105.130', 'end': '57.73.105.190'}], 'gateway_ip': '57.73.105.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.73.105.130', 'tags': [], 'project_id': '284a644c271b41f9b479378acbded4c8'}}
2025-09-08 02:12:40,968 - INFO - Created VN ctest-vn-96379479
2025-09-08 02:12:41,017 - DEBUG - VN ctest-vn-96379479 UUID is f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990
2025-09-08 02:12:41,165 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-05611471, 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-92582634:ctest-vn-96379479, 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-09-08 02:12:41,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89e6d724-d32c-48b6-9f87-e78a540ea8dd', 'name': 'ctest-vn-05611471', 'tenant_id': '284a644c271b41f9b479378acbded4c8', 'project_id': '284a644c271b41f9b479378acbded4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b31b11a-89db-461e-986d-91d45ef51a6a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-vn-05611471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-policy-allow-all-08504875']], 'subnet_ipam': [{'subnet_cidr': '60.57.146.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:41,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990', 'name': 'ctest-vn-96379479', 'tenant_id': '284a644c271b41f9b479378acbded4c8', 'project_id': '284a644c271b41f9b479378acbded4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c11747ba-0f5c-4af4-9fe1-ae20f5e59405'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-vn-96379479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-policy-allow-all-08504875']], 'subnet_ipam': [{'subnet_cidr': '57.73.105.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:41,865 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-08 02:12:42,156 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-08 02:12:42,182 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be93ce2a-84e9-4163-9294-7027c042c6e3
2025-09-08 02:12:42,192 - DEBUG - Requesting: http://10.0.0.33:8082/project/284a644c-271b-41f9-b479-378acbded4c8
2025-09-08 02:12:42,267 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89e6d724-d32c-48b6-9f87-e78a540ea8dd
2025-09-08 02:12:42,276 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89e6d724-d32c-48b6-9f87-e78a540ea8dd
2025-09-08 02:12:42,285 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b00968d3-cc02-4baf-b340-9c89ca5a8794
2025-09-08 02:12:42,292 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b00968d3-cc02-4baf-b340-9c89ca5a8794
2025-09-08 02:12:42,299 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5d1d1561-1d7b-4d26-98bd-cea9ef1bb6c4
2025-09-08 02:12:42,304 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 02:12:42,304 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89e6d724-d32c-48b6-9f87-e78a540ea8dd
2025-09-08 02:12:42,312 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b00968d3-cc02-4baf-b340-9c89ca5a8794
2025-09-08 02:12:42,323 - INFO - Verified VN network id 12 for VN 89e6d724-d32c-48b6-9f87-e78a540ea8dd
2025-09-08 02:12:42,323 - INFO - Verifications in API Server for VN ctest-vn-05611471 passed
2025-09-08 02:12:42,323 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89e6d724-d32c-48b6-9f87-e78a540ea8dd
2025-09-08 02:12:42,331 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b00968d3-cc02-4baf-b340-9c89ca5a8794
2025-09-08 02:12:42,337 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b00968d3-cc02-4baf-b340-9c89ca5a8794
2025-09-08 02:12:42,343 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5d1d1561-1d7b-4d26-98bd-cea9ef1bb6c4
2025-09-08 02:12:42,353 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-05611471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92582634', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9936866181001267382', 'uuid-lslong': '11495411155188230365'}, 'enable': 'true', 'created': '2025-09-08T02:12:40', 'last-modified': '2025-09-08T02:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918664'}
2025-09-08 02:12:42,358 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 02:12:42,358 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05611471 passed
2025-09-08 02:12:42,358 - DEBUG - ====Verifying policy data for ctest-vn-05611471 in API_Server ======
2025-09-08 02:12:42,358 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-08 02:12:42,363 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be93ce2a-84e9-4163-9294-7027c042c6e3
2025-09-08 02:12:42,372 - DEBUG - Requesting: http://10.0.0.33:8082/project/284a644c-271b-41f9-b479-378acbded4c8
2025-09-08 02:12:42,447 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/89e6d724-d32c-48b6-9f87-e78a540ea8dd
2025-09-08 02:12:42,456 - DEBUG - ==>Verifying data for policy with id: 3ae4282e-48a1-44cc-971d-1b152407d4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-policy-allow-all-08504875']
2025-09-08 02:12:42,456 - INFO - VN ctest-vn-05611471 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 02:12:42,457 - DEBUG - Verifying the vn in opserver
2025-09-08 02:12:42,457 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-05611471 virtual network link through opserver 10.0.0.33
2025-09-08 02:12:42,457 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-08 02:12:42,753 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-08 02:12:42,809 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-05611471', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-05611471?flat'}
2025-09-08 02:12:42,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-05611471 is found in opserver
2025-09-08 02:12:42,821 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 02:12:42,825 - DEBUG - VRF ids for VN ctest-vn-05611471: {}
2025-09-08 02:12:42,825 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-08 02:12:42,830 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be93ce2a-84e9-4163-9294-7027c042c6e3
2025-09-08 02:12:42,840 - DEBUG - Requesting: http://10.0.0.33:8082/project/284a644c-271b-41f9-b479-378acbded4c8
2025-09-08 02:12:42,910 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990
2025-09-08 02:12:42,922 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990
2025-09-08 02:12:42,931 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b5bcdcc4-2ca3-49a5-9e20-467c99050ffd
2025-09-08 02:12:42,936 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b5bcdcc4-2ca3-49a5-9e20-467c99050ffd
2025-09-08 02:12:42,942 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a7284a42-6635-4608-aa60-0405822df76a
2025-09-08 02:12:42,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 02:12:42,949 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990
2025-09-08 02:12:42,957 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b5bcdcc4-2ca3-49a5-9e20-467c99050ffd
2025-09-08 02:12:42,971 - INFO - Verified VN network id 13 for VN f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990
2025-09-08 02:12:42,973 - INFO - Verifications in API Server for VN ctest-vn-96379479 passed
2025-09-08 02:12:42,973 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990
2025-09-08 02:12:42,982 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b5bcdcc4-2ca3-49a5-9e20-467c99050ffd
2025-09-08 02:12:42,990 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b5bcdcc4-2ca3-49a5-9e20-467c99050ffd
2025-09-08 02:12:42,997 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a7284a42-6635-4608-aa60-0405822df76a
2025-09-08 02:12:43,007 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-96379479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92582634', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17414567230572219705', 'uuid-lslong': '10250106854358415760'}, 'enable': 'true', 'created': '2025-09-08T02:12:40', 'last-modified': '2025-09-08T02:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344086'}
2025-09-08 02:12:43,012 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 02:12:43,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96379479 passed
2025-09-08 02:12:43,013 - DEBUG - ====Verifying policy data for ctest-vn-96379479 in API_Server ======
2025-09-08 02:12:43,013 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-08 02:12:43,018 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be93ce2a-84e9-4163-9294-7027c042c6e3
2025-09-08 02:12:43,028 - DEBUG - Requesting: http://10.0.0.33:8082/project/284a644c-271b-41f9-b479-378acbded4c8
2025-09-08 02:12:43,095 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f1acf8a1-3f6a-4d39-8e3f-b1e06bd47990
2025-09-08 02:12:43,104 - DEBUG - ==>Verifying data for policy with id: 3ae4282e-48a1-44cc-971d-1b152407d4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-92582634', 'ctest-policy-allow-all-08504875']
2025-09-08 02:12:43,104 - INFO - VN ctest-vn-96379479 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 02:12:43,104 - DEBUG - Verifying the vn in opserver
2025-09-08 02:12:43,104 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-96379479 virtual network link through opserver 10.0.0.33
2025-09-08 02:12:43,104 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-08 02:12:43,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-96379479', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-96379479?flat'}
2025-09-08 02:12:43,113 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92582634:ctest-vn-96379479 is found in opserver
2025-09-08 02:12:43,122 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 02:12:43,126 - DEBUG - VRF ids for VN ctest-vn-96379479: {}
2025-09-08 02:12:43,185 - DEBUG - Services list from nova: [