2025-10-22 15:11:53,585 - INFO - Domain Default found not creating
2025-10-22 15:11:53,952 - INFO - Project ctest-TestBasicPolicy-58454347 not found, creating it
2025-10-22 15:11:54,598 - INFO - Created Project:ctest-TestBasicPolicy-58454347, ID : 636bfbdc-5805-4c97-85a3-4a660f9c8808
2025-10-22 15:11:56,635 - INFO - ================================================================================
2025-10-22 15:11:56,635 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 15:11:56,636 - 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-10-22 15:11:56,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-10-22 15:11:56,929 - INFO - Initial checks done. Running the testcase now
2025-10-22 15:11:56,929 - INFO -
2025-10-22 15:11:57,681 - DEBUG - Response for create_network : {'network': {'id': '2705e7b5-a456-4bd0-b9f9-bc9b2571acf5', 'name': 'ctest-vn-55260470', 'tenant_id': '636bfbdc58054c9785a34a660f9c8808', 'project_id': '636bfbdc58054c9785a34a660f9c8808', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-vn-55260470'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 15:11:57,925 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc467a1a-7bd1-4239-8311-f889e54e4730', 'name': '', 'tenant_id': '636bfbdc58054c9785a34a660f9c8808', 'network_id': '2705e7b5-a456-4bd0-b9f9-bc9b2571acf5', 'ip_version': 4, 'cidr': '137.12.231.0/26', 'allocation_pools': [{'start': '137.12.231.2', 'end': '137.12.231.62'}], 'gateway_ip': '137.12.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.12.231.2', 'tags': [], 'project_id': '636bfbdc58054c9785a34a660f9c8808'}}
2025-10-22 15:11:57,947 - INFO - Created VN ctest-vn-55260470
2025-10-22 15:11:58,002 - DEBUG - VN ctest-vn-55260470 UUID is 2705e7b5-a456-4bd0-b9f9-bc9b2571acf5
2025-10-22 15:11:58,498 - DEBUG - Response for create_network : {'network': {'id': '6a56f2b2-0367-4255-8c71-7a4f02458935', 'name': 'ctest-vn-43990069', 'tenant_id': '636bfbdc58054c9785a34a660f9c8808', 'project_id': '636bfbdc58054c9785a34a660f9c8808', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-vn-43990069'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 15:11:58,740 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7d17557-d7a6-4350-9267-061bc14522f0', 'name': '', 'tenant_id': '636bfbdc58054c9785a34a660f9c8808', 'network_id': '6a56f2b2-0367-4255-8c71-7a4f02458935', 'ip_version': 4, 'cidr': '114.110.83.192/26', 'allocation_pools': [{'start': '114.110.83.194', 'end': '114.110.83.254'}], 'gateway_ip': '114.110.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.110.83.194', 'tags': [], 'project_id': '636bfbdc58054c9785a34a660f9c8808'}}
2025-10-22 15:11:58,765 - INFO - Created VN ctest-vn-43990069
2025-10-22 15:11:58,821 - DEBUG - VN ctest-vn-43990069 UUID is 6a56f2b2-0367-4255-8c71-7a4f02458935
2025-10-22 15:11:58,968 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-55260470, 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-58454347:ctest-vn-43990069, 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-10-22 15:11:59,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2705e7b5-a456-4bd0-b9f9-bc9b2571acf5', 'name': 'ctest-vn-55260470', 'tenant_id': '636bfbdc58054c9785a34a660f9c8808', 'project_id': '636bfbdc58054c9785a34a660f9c8808', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc467a1a-7bd1-4239-8311-f889e54e4730'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-vn-55260470'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-policy-allow-all-42163713']], 'subnet_ipam': [{'subnet_cidr': '137.12.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 15:11:59,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a56f2b2-0367-4255-8c71-7a4f02458935', 'name': 'ctest-vn-43990069', 'tenant_id': '636bfbdc58054c9785a34a660f9c8808', 'project_id': '636bfbdc58054c9785a34a660f9c8808', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7d17557-d7a6-4350-9267-061bc14522f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-vn-43990069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-policy-allow-all-42163713']], 'subnet_ipam': [{'subnet_cidr': '114.110.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 15:11:59,777 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 15:12:00,102 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 15:12:00,136 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4
2025-10-22 15:12:00,153 - DEBUG - Requesting: http://10.0.0.141:8082/project/636bfbdc-5805-4c97-85a3-4a660f9c8808
2025-10-22 15:12:00,244 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2705e7b5-a456-4bd0-b9f9-bc9b2571acf5
2025-10-22 15:12:00,266 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2705e7b5-a456-4bd0-b9f9-bc9b2571acf5
2025-10-22 15:12:00,284 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/52b01ade-260e-467f-8382-b02db5a44280
2025-10-22 15:12:00,298 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/52b01ade-260e-467f-8382-b02db5a44280
2025-10-22 15:12:00,312 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4b12c327-54ed-41a4-b794-03cd38bd82c8
2025-10-22 15:12:00,323 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 15:12:00,323 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2705e7b5-a456-4bd0-b9f9-bc9b2571acf5
2025-10-22 15:12:00,342 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/52b01ade-260e-467f-8382-b02db5a44280
2025-10-22 15:12:00,365 - INFO - Verified VN network id 10 for VN 2705e7b5-a456-4bd0-b9f9-bc9b2571acf5
2025-10-22 15:12:00,365 - INFO - Verifications in API Server for VN ctest-vn-55260470 passed
2025-10-22 15:12:00,365 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2705e7b5-a456-4bd0-b9f9-bc9b2571acf5
2025-10-22 15:12:00,381 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/52b01ade-260e-467f-8382-b02db5a44280
2025-10-22 15:12:00,390 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/52b01ade-260e-467f-8382-b02db5a44280
2025-10-22 15:12:00,397 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4b12c327-54ed-41a4-b794-03cd38bd82c8
2025-10-22 15:12:00,413 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-55260470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58454347', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2811908309694958544', 'uuid-lslong': '13400949540751781109'}, 'enable': 'true', 'created': '2025-10-22T15:11:57', 'last-modified': '2025-10-22T15:11:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.119303'}
2025-10-22 15:12:00,422 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 15:12:00,423 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55260470 passed
2025-10-22 15:12:00,423 - DEBUG - ====Verifying policy data for ctest-vn-55260470 in API_Server ======
2025-10-22 15:12:00,423 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 15:12:00,431 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4
2025-10-22 15:12:00,446 - DEBUG - Requesting: http://10.0.0.141:8082/project/636bfbdc-5805-4c97-85a3-4a660f9c8808
2025-10-22 15:12:00,547 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2705e7b5-a456-4bd0-b9f9-bc9b2571acf5
2025-10-22 15:12:00,561 - DEBUG - ==>Verifying data for policy with id: 8a717b23-df66-42cf-8bfc-9c01914fd082, fqn: ['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-policy-allow-all-42163713']
2025-10-22 15:12:00,562 - INFO - VN ctest-vn-55260470 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 15:12:00,562 - DEBUG - Verifying the vn in opserver
2025-10-22 15:12:00,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-55260470 virtual network link through opserver 10.0.0.141
2025-10-22 15:12:00,562 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 15:12:00,913 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 15:12:00,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-55260470', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-55260470?flat'}
2025-10-22 15:12:00,992 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-55260470 is found in opserver
2025-10-22 15:12:01,005 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 15:12:01,015 - DEBUG - VRF ids for VN ctest-vn-55260470: {}
2025-10-22 15:12:01,015 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 15:12:01,022 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4
2025-10-22 15:12:01,038 - DEBUG - Requesting: http://10.0.0.141:8082/project/636bfbdc-5805-4c97-85a3-4a660f9c8808
2025-10-22 15:12:01,133 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6a56f2b2-0367-4255-8c71-7a4f02458935
2025-10-22 15:12:01,154 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6a56f2b2-0367-4255-8c71-7a4f02458935
2025-10-22 15:12:01,167 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/25eb4226-765d-493a-84e4-b8d816006622
2025-10-22 15:12:01,178 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/25eb4226-765d-493a-84e4-b8d816006622
2025-10-22 15:12:01,189 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3d997f64-367b-49e9-ad08-518f755d5194
2025-10-22 15:12:01,199 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 15:12:01,199 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6a56f2b2-0367-4255-8c71-7a4f02458935
2025-10-22 15:12:01,211 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/25eb4226-765d-493a-84e4-b8d816006622
2025-10-22 15:12:01,229 - INFO - Verified VN network id 11 for VN 6a56f2b2-0367-4255-8c71-7a4f02458935
2025-10-22 15:12:01,229 - INFO - Verifications in API Server for VN ctest-vn-43990069 passed
2025-10-22 15:12:01,229 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6a56f2b2-0367-4255-8c71-7a4f02458935
2025-10-22 15:12:01,243 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/25eb4226-765d-493a-84e4-b8d816006622
2025-10-22 15:12:01,253 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/25eb4226-765d-493a-84e4-b8d816006622
2025-10-22 15:12:01,262 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3d997f64-367b-49e9-ad08-518f755d5194
2025-10-22 15:12:01,283 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-43990069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58454347', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7662578662392676949', 'uuid-lslong': '10120004317437331765'}, 'enable': 'true', 'created': '2025-10-22T15:11:58', 'last-modified': '2025-10-22T15:11:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.722181'}
2025-10-22 15:12:01,296 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 15:12:01,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43990069 passed
2025-10-22 15:12:01,297 - DEBUG - ====Verifying policy data for ctest-vn-43990069 in API_Server ======
2025-10-22 15:12:01,297 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-22 15:12:01,307 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4
2025-10-22 15:12:01,328 - DEBUG - Requesting: http://10.0.0.141:8082/project/636bfbdc-5805-4c97-85a3-4a660f9c8808
2025-10-22 15:12:01,434 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6a56f2b2-0367-4255-8c71-7a4f02458935
2025-10-22 15:12:01,448 - DEBUG - ==>Verifying data for policy with id: 8a717b23-df66-42cf-8bfc-9c01914fd082, fqn: ['default-domain', 'ctest-TestBasicPolicy-58454347', 'ctest-policy-allow-all-42163713']
2025-10-22 15:12:01,448 - INFO - VN ctest-vn-43990069 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 15:12:01,448 - DEBUG - Verifying the vn in opserver
2025-10-22 15:12:01,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-43990069 virtual network link through opserver 10.0.0.141
2025-10-22 15:12:01,448 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-22 15:12:01,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-43990069', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-43990069?flat'}
2025-10-22 15:12:01,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58454347:ctest-vn-43990069 is found in opserver
2025-10-22 15:12:01,485 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 15:12:01,495 - DEBUG - VRF ids for VN ctest-vn-43990069: {}
2025-10-22 15:12:01,595 - DEBUG - Services list from nova: [