2025-11-17 10:09:42,892 - INFO - Domain Default found not creating
2025-11-17 10:09:43,068 - INFO - Project ctest-TestBasicPolicy-65792706 not found, creating it
2025-11-17 10:09:43,572 - INFO - Created Project:ctest-TestBasicPolicy-65792706, ID : 42f9743e-e30a-40ff-a866-228fa7a9ce97
2025-11-17 10:09:45,151 - INFO - ================================================================================
2025-11-17 10:09:45,151 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 10:09:45,151 - 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-11-17 10:09:45,415 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-11-17 10:09:45,416 - INFO - Initial checks done. Running the testcase now
2025-11-17 10:09:45,416 - INFO -
2025-11-17 10:09:45,987 - DEBUG - Response for create_network : {'network': {'id': '0eee11c9-5855-4d85-9fbe-c78c1abb9993', 'name': 'ctest-vn-25846846', 'tenant_id': '42f9743ee30a40ffa866228fa7a9ce97', 'project_id': '42f9743ee30a40ffa866228fa7a9ce97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-vn-25846846'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 10:09:46,207 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7067db6-9f8c-4799-b30b-ae67a1725b36', 'name': '', 'tenant_id': '42f9743ee30a40ffa866228fa7a9ce97', 'network_id': '0eee11c9-5855-4d85-9fbe-c78c1abb9993', 'ip_version': 4, 'cidr': '27.164.179.192/26', 'allocation_pools': [{'start': '27.164.179.194', 'end': '27.164.179.254'}], 'gateway_ip': '27.164.179.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.164.179.194', 'tags': [], 'project_id': '42f9743ee30a40ffa866228fa7a9ce97'}}
2025-11-17 10:09:46,228 - INFO - Created VN ctest-vn-25846846
2025-11-17 10:09:46,281 - DEBUG - VN ctest-vn-25846846 UUID is 0eee11c9-5855-4d85-9fbe-c78c1abb9993
2025-11-17 10:09:46,586 - DEBUG - Response for create_network : {'network': {'id': '48391737-68ed-4884-ae1b-84d835951aa1', 'name': 'ctest-vn-51183231', 'tenant_id': '42f9743ee30a40ffa866228fa7a9ce97', 'project_id': '42f9743ee30a40ffa866228fa7a9ce97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-vn-51183231'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 10:09:46,764 - DEBUG - Response for create_subnet : {'subnet': {'id': '45a2725c-1f16-4b60-bf5e-6ce0c3274af2', 'name': '', 'tenant_id': '42f9743ee30a40ffa866228fa7a9ce97', 'network_id': '48391737-68ed-4884-ae1b-84d835951aa1', 'ip_version': 4, 'cidr': '173.220.221.128/26', 'allocation_pools': [{'start': '173.220.221.130', 'end': '173.220.221.190'}], 'gateway_ip': '173.220.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.220.221.130', 'tags': [], 'project_id': '42f9743ee30a40ffa866228fa7a9ce97'}}
2025-11-17 10:09:46,784 - INFO - Created VN ctest-vn-51183231
2025-11-17 10:09:46,837 - DEBUG - VN ctest-vn-51183231 UUID is 48391737-68ed-4884-ae1b-84d835951aa1
2025-11-17 10:09:46,956 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-25846846, 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-65792706:ctest-vn-51183231, 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-11-17 10:09:47,245 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0eee11c9-5855-4d85-9fbe-c78c1abb9993', 'name': 'ctest-vn-25846846', 'tenant_id': '42f9743ee30a40ffa866228fa7a9ce97', 'project_id': '42f9743ee30a40ffa866228fa7a9ce97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7067db6-9f8c-4799-b30b-ae67a1725b36'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-vn-25846846'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-policy-allow-all-96035069']], 'subnet_ipam': [{'subnet_cidr': '27.164.179.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 10:09:47,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48391737-68ed-4884-ae1b-84d835951aa1', 'name': 'ctest-vn-51183231', 'tenant_id': '42f9743ee30a40ffa866228fa7a9ce97', 'project_id': '42f9743ee30a40ffa866228fa7a9ce97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45a2725c-1f16-4b60-bf5e-6ce0c3274af2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-vn-51183231'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-policy-allow-all-96035069']], 'subnet_ipam': [{'subnet_cidr': '173.220.221.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 10:09:47,661 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 10:09:47,962 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 10:09:47,993 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9568a52a-9a1a-4748-b06a-817f93b312db
2025-11-17 10:09:48,006 - DEBUG - Requesting: http://10.0.0.33:8082/project/42f9743e-e30a-40ff-a866-228fa7a9ce97
2025-11-17 10:09:48,085 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0eee11c9-5855-4d85-9fbe-c78c1abb9993
2025-11-17 10:09:48,097 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0eee11c9-5855-4d85-9fbe-c78c1abb9993
2025-11-17 10:09:48,106 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae9f0337-004c-43d7-8965-e6e034f1a1e2
2025-11-17 10:09:48,113 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae9f0337-004c-43d7-8965-e6e034f1a1e2
2025-11-17 10:09:48,120 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1e6966f2-896d-4daf-b42e-bc16e64606fa
2025-11-17 10:09:48,126 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 10:09:48,126 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0eee11c9-5855-4d85-9fbe-c78c1abb9993
2025-11-17 10:09:48,135 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae9f0337-004c-43d7-8965-e6e034f1a1e2
2025-11-17 10:09:48,153 - INFO - Verified VN network id 11 for VN 0eee11c9-5855-4d85-9fbe-c78c1abb9993
2025-11-17 10:09:48,153 - INFO - Verifications in API Server for VN ctest-vn-25846846 passed
2025-11-17 10:09:48,153 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0eee11c9-5855-4d85-9fbe-c78c1abb9993
2025-11-17 10:09:48,163 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae9f0337-004c-43d7-8965-e6e034f1a1e2
2025-11-17 10:09:48,170 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae9f0337-004c-43d7-8965-e6e034f1a1e2
2025-11-17 10:09:48,177 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1e6966f2-896d-4daf-b42e-bc16e64606fa
2025-11-17 10:09:48,190 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-25846846', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65792706', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1075816917456211333', 'uuid-lslong': '11510857102163417491'}, 'enable': 'true', 'created': '2025-11-17T10:09:45', 'last-modified': '2025-11-17T10:09:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967771'}
2025-11-17 10:09:48,197 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 10:09:48,197 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25846846 passed
2025-11-17 10:09:48,197 - DEBUG - ====Verifying policy data for ctest-vn-25846846 in API_Server ======
2025-11-17 10:09:48,197 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 10:09:48,203 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9568a52a-9a1a-4748-b06a-817f93b312db
2025-11-17 10:09:48,214 - DEBUG - Requesting: http://10.0.0.33:8082/project/42f9743e-e30a-40ff-a866-228fa7a9ce97
2025-11-17 10:09:48,287 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0eee11c9-5855-4d85-9fbe-c78c1abb9993
2025-11-17 10:09:48,298 - DEBUG - ==>Verifying data for policy with id: 692ceace-ccc5-4efc-9965-be8caf62a69a, fqn: ['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-policy-allow-all-96035069']
2025-11-17 10:09:48,298 - INFO - VN ctest-vn-25846846 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 10:09:48,298 - DEBUG - Verifying the vn in opserver
2025-11-17 10:09:48,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-25846846 virtual network link through opserver 10.0.0.33
2025-11-17 10:09:48,298 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 10:09:48,605 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 10:09:48,676 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-25846846', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-25846846?flat'}
2025-11-17 10:09:48,676 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-25846846 is found in opserver
2025-11-17 10:09:48,686 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 10:09:48,691 - DEBUG - VRF ids for VN ctest-vn-25846846: {}
2025-11-17 10:09:48,691 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 10:09:48,696 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9568a52a-9a1a-4748-b06a-817f93b312db
2025-11-17 10:09:48,708 - DEBUG - Requesting: http://10.0.0.33:8082/project/42f9743e-e30a-40ff-a866-228fa7a9ce97
2025-11-17 10:09:48,783 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48391737-68ed-4884-ae1b-84d835951aa1
2025-11-17 10:09:48,796 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48391737-68ed-4884-ae1b-84d835951aa1
2025-11-17 10:09:48,807 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d9e053b-49b6-49f6-a599-f27a97f084ec
2025-11-17 10:09:48,814 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d9e053b-49b6-49f6-a599-f27a97f084ec
2025-11-17 10:09:48,821 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ef95aff9-ed39-4c8d-acd7-552f8b458ccc
2025-11-17 10:09:48,829 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 10:09:48,829 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48391737-68ed-4884-ae1b-84d835951aa1
2025-11-17 10:09:48,839 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d9e053b-49b6-49f6-a599-f27a97f084ec
2025-11-17 10:09:48,856 - INFO - Verified VN network id 12 for VN 48391737-68ed-4884-ae1b-84d835951aa1
2025-11-17 10:09:48,856 - INFO - Verifications in API Server for VN ctest-vn-51183231 passed
2025-11-17 10:09:48,857 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48391737-68ed-4884-ae1b-84d835951aa1
2025-11-17 10:09:48,868 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d9e053b-49b6-49f6-a599-f27a97f084ec
2025-11-17 10:09:48,876 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d9e053b-49b6-49f6-a599-f27a97f084ec
2025-11-17 10:09:48,884 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ef95aff9-ed39-4c8d-acd7-552f8b458ccc
2025-11-17 10:09:48,899 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-51183231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65792706', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5204216371154339972', 'uuid-lslong': '12545767251117415073'}, 'enable': 'true', 'created': '2025-11-17T10:09:46', 'last-modified': '2025-11-17T10:09:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.450034'}
2025-11-17 10:09:48,906 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 10:09:48,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51183231 passed
2025-11-17 10:09:48,906 - DEBUG - ====Verifying policy data for ctest-vn-51183231 in API_Server ======
2025-11-17 10:09:48,906 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 10:09:48,913 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9568a52a-9a1a-4748-b06a-817f93b312db
2025-11-17 10:09:48,927 - DEBUG - Requesting: http://10.0.0.33:8082/project/42f9743e-e30a-40ff-a866-228fa7a9ce97
2025-11-17 10:09:49,015 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48391737-68ed-4884-ae1b-84d835951aa1
2025-11-17 10:09:49,024 - DEBUG - ==>Verifying data for policy with id: 692ceace-ccc5-4efc-9965-be8caf62a69a, fqn: ['default-domain', 'ctest-TestBasicPolicy-65792706', 'ctest-policy-allow-all-96035069']
2025-11-17 10:09:49,024 - INFO - VN ctest-vn-51183231 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 10:09:49,024 - DEBUG - Verifying the vn in opserver
2025-11-17 10:09:49,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-51183231 virtual network link through opserver 10.0.0.33
2025-11-17 10:09:49,024 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 10:09:49,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-51183231', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-51183231?flat'}
2025-11-17 10:09:49,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65792706:ctest-vn-51183231 is found in opserver
2025-11-17 10:09:49,045 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 10:09:49,049 - DEBUG - VRF ids for VN ctest-vn-51183231: {}
2025-11-17 10:09:49,112 - DEBUG - Services list from nova: [