2025-10-27 14:59:42,522 - INFO - Domain Default found not creating
2025-10-27 14:59:42,674 - INFO - Project ctest-TestBasicPolicy-61449217 not found, creating it
2025-10-27 14:59:43,135 - INFO - Created Project:ctest-TestBasicPolicy-61449217, ID : 9dd0e676-91ca-4374-a1b8-b207f4ab3f5a
2025-10-27 14:59:44,684 - INFO - ================================================================================
2025-10-27 14:59:44,684 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 14:59:44,684 - 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-27 14:59:44,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-10-27 14:59:44,941 - INFO - Initial checks done. Running the testcase now
2025-10-27 14:59:44,941 - INFO -
2025-10-27 14:59:45,521 - DEBUG - Response for create_network : {'network': {'id': '7363e446-8a19-478c-990a-24667360a0d2', 'name': 'ctest-vn-55903443', 'tenant_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'project_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-vn-55903443'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 14:59:45,695 - DEBUG - Response for create_subnet : {'subnet': {'id': '64ff2f2e-2565-445c-8853-09e4012565f0', 'name': '', 'tenant_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'network_id': '7363e446-8a19-478c-990a-24667360a0d2', 'ip_version': 4, 'cidr': '8.61.76.64/26', 'allocation_pools': [{'start': '8.61.76.66', 'end': '8.61.76.126'}], 'gateway_ip': '8.61.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.61.76.66', 'tags': [], 'project_id': '9dd0e67691ca4374a1b8b207f4ab3f5a'}}
2025-10-27 14:59:45,714 - INFO - Created VN ctest-vn-55903443
2025-10-27 14:59:45,766 - DEBUG - VN ctest-vn-55903443 UUID is 7363e446-8a19-478c-990a-24667360a0d2
2025-10-27 14:59:46,055 - DEBUG - Response for create_network : {'network': {'id': '437c42b8-8d84-4c08-9366-8b9fd91dba72', 'name': 'ctest-vn-45565975', 'tenant_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'project_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-vn-45565975'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 14:59:46,230 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c3f745c-2f26-4e86-8483-0941e145ca87', 'name': '', 'tenant_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'network_id': '437c42b8-8d84-4c08-9366-8b9fd91dba72', 'ip_version': 4, 'cidr': '80.173.75.192/26', 'allocation_pools': [{'start': '80.173.75.194', 'end': '80.173.75.254'}], 'gateway_ip': '80.173.75.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.173.75.194', 'tags': [], 'project_id': '9dd0e67691ca4374a1b8b207f4ab3f5a'}}
2025-10-27 14:59:46,248 - INFO - Created VN ctest-vn-45565975
2025-10-27 14:59:46,298 - DEBUG - VN ctest-vn-45565975 UUID is 437c42b8-8d84-4c08-9366-8b9fd91dba72
2025-10-27 14:59:46,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-55903443, 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-61449217:ctest-vn-45565975, 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-27 14:59:46,702 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7363e446-8a19-478c-990a-24667360a0d2', 'name': 'ctest-vn-55903443', 'tenant_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'project_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64ff2f2e-2565-445c-8853-09e4012565f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-vn-55903443'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-policy-allow-all-25485634']], 'subnet_ipam': [{'subnet_cidr': '8.61.76.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 14:59:46,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '437c42b8-8d84-4c08-9366-8b9fd91dba72', 'name': 'ctest-vn-45565975', 'tenant_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'project_id': '9dd0e67691ca4374a1b8b207f4ab3f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c3f745c-2f26-4e86-8483-0941e145ca87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-vn-45565975'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-policy-allow-all-25485634']], 'subnet_ipam': [{'subnet_cidr': '80.173.75.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 14:59:47,118 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 14:59:47,457 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 14:59:47,484 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8
2025-10-27 14:59:47,496 - DEBUG - Requesting: http://10.0.0.242:8082/project/9dd0e676-91ca-4374-a1b8-b207f4ab3f5a
2025-10-27 14:59:47,563 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7363e446-8a19-478c-990a-24667360a0d2
2025-10-27 14:59:47,574 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7363e446-8a19-478c-990a-24667360a0d2
2025-10-27 14:59:47,583 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ac0bf43-6db5-4262-917a-4e77bd83a152
2025-10-27 14:59:47,589 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ac0bf43-6db5-4262-917a-4e77bd83a152
2025-10-27 14:59:47,596 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/72ed0798-dfdc-4a37-853d-e650ba420c83
2025-10-27 14:59:47,603 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 14:59:47,603 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7363e446-8a19-478c-990a-24667360a0d2
2025-10-27 14:59:47,613 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ac0bf43-6db5-4262-917a-4e77bd83a152
2025-10-27 14:59:47,628 - INFO - Verified VN network id 11 for VN 7363e446-8a19-478c-990a-24667360a0d2
2025-10-27 14:59:47,628 - INFO - Verifications in API Server for VN ctest-vn-55903443 passed
2025-10-27 14:59:47,628 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7363e446-8a19-478c-990a-24667360a0d2
2025-10-27 14:59:47,637 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ac0bf43-6db5-4262-917a-4e77bd83a152
2025-10-27 14:59:47,645 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ac0bf43-6db5-4262-917a-4e77bd83a152
2025-10-27 14:59:47,652 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/72ed0798-dfdc-4a37-853d-e650ba420c83
2025-10-27 14:59:47,665 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-55903443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61449217', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8314740328671823756', 'uuid-lslong': '11027666660011057362'}, 'enable': 'true', 'created': '2025-10-27T14:59:45', 'last-modified': '2025-10-27T14:59:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987261'}
2025-10-27 14:59:47,672 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 14:59:47,672 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55903443 passed
2025-10-27 14:59:47,672 - DEBUG - ====Verifying policy data for ctest-vn-55903443 in API_Server ======
2025-10-27 14:59:47,672 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 14:59:47,678 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8
2025-10-27 14:59:47,689 - DEBUG - Requesting: http://10.0.0.242:8082/project/9dd0e676-91ca-4374-a1b8-b207f4ab3f5a
2025-10-27 14:59:47,763 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7363e446-8a19-478c-990a-24667360a0d2
2025-10-27 14:59:47,773 - DEBUG - ==>Verifying data for policy with id: e6b45cd0-5391-470b-84c6-ff7bfdb4a749, fqn: ['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-policy-allow-all-25485634']
2025-10-27 14:59:47,773 - INFO - VN ctest-vn-55903443 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 14:59:47,773 - DEBUG - Verifying the vn in opserver
2025-10-27 14:59:47,774 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-55903443 virtual network link through opserver 10.0.0.242
2025-10-27 14:59:47,774 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 14:59:48,108 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 14:59:48,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-55903443', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-55903443?flat'}
2025-10-27 14:59:48,164 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-55903443 is found in opserver
2025-10-27 14:59:48,175 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 14:59:48,179 - DEBUG - VRF ids for VN ctest-vn-55903443: {}
2025-10-27 14:59:48,179 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 14:59:48,184 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8
2025-10-27 14:59:48,198 - DEBUG - Requesting: http://10.0.0.242:8082/project/9dd0e676-91ca-4374-a1b8-b207f4ab3f5a
2025-10-27 14:59:48,269 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/437c42b8-8d84-4c08-9366-8b9fd91dba72
2025-10-27 14:59:48,280 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/437c42b8-8d84-4c08-9366-8b9fd91dba72
2025-10-27 14:59:48,289 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b067139-d746-4cb3-a99f-4080cc4ac2f9
2025-10-27 14:59:48,296 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b067139-d746-4cb3-a99f-4080cc4ac2f9
2025-10-27 14:59:48,303 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8d94ffe4-14bd-40d0-8bb1-03d83773be5a
2025-10-27 14:59:48,310 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 14:59:48,310 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/437c42b8-8d84-4c08-9366-8b9fd91dba72
2025-10-27 14:59:48,319 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b067139-d746-4cb3-a99f-4080cc4ac2f9
2025-10-27 14:59:48,334 - INFO - Verified VN network id 12 for VN 437c42b8-8d84-4c08-9366-8b9fd91dba72
2025-10-27 14:59:48,334 - INFO - Verifications in API Server for VN ctest-vn-45565975 passed
2025-10-27 14:59:48,334 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/437c42b8-8d84-4c08-9366-8b9fd91dba72
2025-10-27 14:59:48,343 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b067139-d746-4cb3-a99f-4080cc4ac2f9
2025-10-27 14:59:48,351 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b067139-d746-4cb3-a99f-4080cc4ac2f9
2025-10-27 14:59:48,357 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8d94ffe4-14bd-40d0-8bb1-03d83773be5a
2025-10-27 14:59:48,371 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-45565975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61449217', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4862835058068966408', 'uuid-lslong': '10621330289858558578'}, 'enable': 'true', 'created': '2025-10-27T14:59:46', 'last-modified': '2025-10-27T14:59:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466119'}
2025-10-27 14:59:48,376 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 14:59:48,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45565975 passed
2025-10-27 14:59:48,377 - DEBUG - ====Verifying policy data for ctest-vn-45565975 in API_Server ======
2025-10-27 14:59:48,377 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 14:59:48,382 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8
2025-10-27 14:59:48,393 - DEBUG - Requesting: http://10.0.0.242:8082/project/9dd0e676-91ca-4374-a1b8-b207f4ab3f5a
2025-10-27 14:59:48,462 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/437c42b8-8d84-4c08-9366-8b9fd91dba72
2025-10-27 14:59:48,474 - DEBUG - ==>Verifying data for policy with id: e6b45cd0-5391-470b-84c6-ff7bfdb4a749, fqn: ['default-domain', 'ctest-TestBasicPolicy-61449217', 'ctest-policy-allow-all-25485634']
2025-10-27 14:59:48,474 - INFO - VN ctest-vn-45565975 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 14:59:48,474 - DEBUG - Verifying the vn in opserver
2025-10-27 14:59:48,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-45565975 virtual network link through opserver 10.0.0.242
2025-10-27 14:59:48,474 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 14:59:48,485 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-45565975', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-45565975?flat'}
2025-10-27 14:59:48,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61449217:ctest-vn-45565975 is found in opserver
2025-10-27 14:59:48,496 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 14:59:48,501 - DEBUG - VRF ids for VN ctest-vn-45565975: {}
2025-10-27 14:59:48,563 - DEBUG - Services list from nova: [