2025-10-09 14:56:56,464 - INFO - Domain Default found not creating
2025-10-09 14:56:56,614 - INFO - Project ctest-TestBasicPolicy-90914698 not found, creating it
2025-10-09 14:56:57,057 - INFO - Created Project:ctest-TestBasicPolicy-90914698, ID : 72aa5d39-e009-419d-b0b6-6464d3916514
2025-10-09 14:56:58,576 - INFO - ================================================================================
2025-10-09 14:56:58,576 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 14:56:58,576 - 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-09 14:56:58,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with
2025-10-09 14:56:58,829 - INFO - Initial checks done. Running the testcase now
2025-10-09 14:56:58,829 - INFO -
2025-10-09 14:56:59,368 - DEBUG - Response for create_network : {'network': {'id': 'f2cead0b-dae3-4016-8408-6a992169e555', 'name': 'ctest-vn-14928687', 'tenant_id': '72aa5d39e009419db0b66464d3916514', 'project_id': '72aa5d39e009419db0b66464d3916514', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-vn-14928687'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:56:59,556 - DEBUG - Response for create_subnet : {'subnet': {'id': '537efb11-db16-4664-b2bf-01ad30f5aaa5', 'name': '', 'tenant_id': '72aa5d39e009419db0b66464d3916514', 'network_id': 'f2cead0b-dae3-4016-8408-6a992169e555', 'ip_version': 4, 'cidr': '191.253.107.192/26', 'allocation_pools': [{'start': '191.253.107.194', 'end': '191.253.107.254'}], 'gateway_ip': '191.253.107.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.253.107.194', 'tags': [], 'project_id': '72aa5d39e009419db0b66464d3916514'}}
2025-10-09 14:56:59,572 - INFO - Created VN ctest-vn-14928687
2025-10-09 14:56:59,623 - DEBUG - VN ctest-vn-14928687 UUID is f2cead0b-dae3-4016-8408-6a992169e555
2025-10-09 14:56:59,957 - DEBUG - Response for create_network : {'network': {'id': '9bf61b81-2405-4c2e-b386-16ab1275f0c2', 'name': 'ctest-vn-59644586', 'tenant_id': '72aa5d39e009419db0b66464d3916514', 'project_id': '72aa5d39e009419db0b66464d3916514', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-vn-59644586'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:57:00,146 - DEBUG - Response for create_subnet : {'subnet': {'id': '268eae71-dd98-4398-832d-d4e16844b629', 'name': '', 'tenant_id': '72aa5d39e009419db0b66464d3916514', 'network_id': '9bf61b81-2405-4c2e-b386-16ab1275f0c2', 'ip_version': 4, 'cidr': '206.125.108.128/26', 'allocation_pools': [{'start': '206.125.108.130', 'end': '206.125.108.190'}], 'gateway_ip': '206.125.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.125.108.130', 'tags': [], 'project_id': '72aa5d39e009419db0b66464d3916514'}}
2025-10-09 14:57:00,164 - INFO - Created VN ctest-vn-59644586
2025-10-09 14:57:00,215 - DEBUG - VN ctest-vn-59644586 UUID is 9bf61b81-2405-4c2e-b386-16ab1275f0c2
2025-10-09 14:57:00,326 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-14928687, 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-90914698:ctest-vn-59644586, 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-09 14:57:00,619 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2cead0b-dae3-4016-8408-6a992169e555', 'name': 'ctest-vn-14928687', 'tenant_id': '72aa5d39e009419db0b66464d3916514', 'project_id': '72aa5d39e009419db0b66464d3916514', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['537efb11-db16-4664-b2bf-01ad30f5aaa5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-vn-14928687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-policy-allow-all-42896795']], 'subnet_ipam': [{'subnet_cidr': '191.253.107.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:57:00,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bf61b81-2405-4c2e-b386-16ab1275f0c2', 'name': 'ctest-vn-59644586', 'tenant_id': '72aa5d39e009419db0b66464d3916514', 'project_id': '72aa5d39e009419db0b66464d3916514', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['268eae71-dd98-4398-832d-d4e16844b629'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-vn-59644586'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-policy-allow-all-42896795']], 'subnet_ipam': [{'subnet_cidr': '206.125.108.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:57:01,051 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-09 14:57:01,350 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-09 14:57:01,387 - DEBUG - Requesting: http://10.0.0.41:8082/domain/66199fcc-9340-4cc1-a28c-5d2a41fd4874
2025-10-09 14:57:01,399 - DEBUG - Requesting: http://10.0.0.41:8082/project/72aa5d39-e009-419d-b0b6-6464d3916514
2025-10-09 14:57:01,543 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2cead0b-dae3-4016-8408-6a992169e555
2025-10-09 14:57:01,563 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2cead0b-dae3-4016-8408-6a992169e555
2025-10-09 14:57:01,584 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ce2c4667-f2ff-45e4-ac9f-7e5fe9964cf9
2025-10-09 14:57:01,593 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ce2c4667-f2ff-45e4-ac9f-7e5fe9964cf9
2025-10-09 14:57:01,601 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/692bbfcd-ed12-4b35-baa5-3b461a68d6df
2025-10-09 14:57:01,609 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:57:01,609 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2cead0b-dae3-4016-8408-6a992169e555
2025-10-09 14:57:01,625 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ce2c4667-f2ff-45e4-ac9f-7e5fe9964cf9
2025-10-09 14:57:01,653 - INFO - Verified VN network id 9 for VN f2cead0b-dae3-4016-8408-6a992169e555
2025-10-09 14:57:01,653 - INFO - Verifications in API Server for VN ctest-vn-14928687 passed
2025-10-09 14:57:01,653 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2cead0b-dae3-4016-8408-6a992169e555
2025-10-09 14:57:01,670 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ce2c4667-f2ff-45e4-ac9f-7e5fe9964cf9
2025-10-09 14:57:01,690 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ce2c4667-f2ff-45e4-ac9f-7e5fe9964cf9
2025-10-09 14:57:01,710 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/692bbfcd-ed12-4b35-baa5-3b461a68d6df
2025-10-09 14:57:01,727 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-14928687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90914698', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17496111868809527318', 'uuid-lslong': '9513971418743301461'}, 'enable': 'true', 'created': '2025-10-09T14:56:59', 'last-modified': '2025-10-09T14:57:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.127453'}
2025-10-09 14:57:01,741 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:57:01,741 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14928687 passed
2025-10-09 14:57:01,741 - DEBUG - ====Verifying policy data for ctest-vn-14928687 in API_Server ======
2025-10-09 14:57:01,741 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-09 14:57:01,751 - DEBUG - Requesting: http://10.0.0.41:8082/domain/66199fcc-9340-4cc1-a28c-5d2a41fd4874
2025-10-09 14:57:01,822 - DEBUG - Requesting: http://10.0.0.41:8082/project/72aa5d39-e009-419d-b0b6-6464d3916514
2025-10-09 14:57:01,931 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f2cead0b-dae3-4016-8408-6a992169e555
2025-10-09 14:57:01,943 - DEBUG - ==>Verifying data for policy with id: 3c369d13-18a1-43be-9066-80e3ff82249d, fqn: ['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-policy-allow-all-42896795']
2025-10-09 14:57:01,943 - INFO - VN ctest-vn-14928687 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:57:01,944 - DEBUG - Verifying the vn in opserver
2025-10-09 14:57:01,944 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-14928687 virtual network link through opserver 10.0.0.41
2025-10-09 14:57:01,944 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-09 14:57:02,260 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-09 14:57:02,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-14928687', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-14928687?flat'}
2025-10-09 14:57:02,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-14928687 is found in opserver
2025-10-09 14:57:02,322 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:57:02,326 - DEBUG - VRF ids for VN ctest-vn-14928687: {}
2025-10-09 14:57:02,326 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-09 14:57:02,331 - DEBUG - Requesting: http://10.0.0.41:8082/domain/66199fcc-9340-4cc1-a28c-5d2a41fd4874
2025-10-09 14:57:02,341 - DEBUG - Requesting: http://10.0.0.41:8082/project/72aa5d39-e009-419d-b0b6-6464d3916514
2025-10-09 14:57:02,412 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9bf61b81-2405-4c2e-b386-16ab1275f0c2
2025-10-09 14:57:02,422 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9bf61b81-2405-4c2e-b386-16ab1275f0c2
2025-10-09 14:57:02,431 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bb3d8289-06b5-4660-b489-9c8c9849fc3f
2025-10-09 14:57:02,437 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bb3d8289-06b5-4660-b489-9c8c9849fc3f
2025-10-09 14:57:02,443 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1b826322-0dfe-4c4a-af82-400e0696bb95
2025-10-09 14:57:02,449 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:57:02,449 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9bf61b81-2405-4c2e-b386-16ab1275f0c2
2025-10-09 14:57:02,457 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bb3d8289-06b5-4660-b489-9c8c9849fc3f
2025-10-09 14:57:02,470 - INFO - Verified VN network id 10 for VN 9bf61b81-2405-4c2e-b386-16ab1275f0c2
2025-10-09 14:57:02,470 - INFO - Verifications in API Server for VN ctest-vn-59644586 passed
2025-10-09 14:57:02,470 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9bf61b81-2405-4c2e-b386-16ab1275f0c2
2025-10-09 14:57:02,479 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bb3d8289-06b5-4660-b489-9c8c9849fc3f
2025-10-09 14:57:02,486 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bb3d8289-06b5-4660-b489-9c8c9849fc3f
2025-10-09 14:57:02,493 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1b826322-0dfe-4c4a-af82-400e0696bb95
2025-10-09 14:57:02,504 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-59644586', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90914698', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11238200161618709550', 'uuid-lslong': '12936051903673266370'}, 'enable': 'true', 'created': '2025-10-09T14:56:59', 'last-modified': '2025-10-09T14:57:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.680203'}
2025-10-09 14:57:02,510 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:57:02,510 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59644586 passed
2025-10-09 14:57:02,511 - DEBUG - ====Verifying policy data for ctest-vn-59644586 in API_Server ======
2025-10-09 14:57:02,511 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-09 14:57:02,517 - DEBUG - Requesting: http://10.0.0.41:8082/domain/66199fcc-9340-4cc1-a28c-5d2a41fd4874
2025-10-09 14:57:02,527 - DEBUG - Requesting: http://10.0.0.41:8082/project/72aa5d39-e009-419d-b0b6-6464d3916514
2025-10-09 14:57:02,597 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9bf61b81-2405-4c2e-b386-16ab1275f0c2
2025-10-09 14:57:02,605 - DEBUG - ==>Verifying data for policy with id: 3c369d13-18a1-43be-9066-80e3ff82249d, fqn: ['default-domain', 'ctest-TestBasicPolicy-90914698', 'ctest-policy-allow-all-42896795']
2025-10-09 14:57:02,605 - INFO - VN ctest-vn-59644586 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:57:02,605 - DEBUG - Verifying the vn in opserver
2025-10-09 14:57:02,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-59644586 virtual network link through opserver 10.0.0.41
2025-10-09 14:57:02,605 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-09 14:57:02,614 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-59644586', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-59644586?flat'}
2025-10-09 14:57:02,614 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90914698:ctest-vn-59644586 is found in opserver
2025-10-09 14:57:02,623 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:57:02,627 - DEBUG - VRF ids for VN ctest-vn-59644586: {}
2025-10-09 14:57:02,684 - DEBUG - Services list from nova: [