2026-03-19 02:25:18,019 - INFO - Domain Default found not creating
2026-03-19 02:25:18,231 - INFO - Project ctest-TestBasicPolicy-51714712 not found, creating it
2026-03-19 02:25:18,963 - INFO - Created Project:ctest-TestBasicPolicy-51714712, ID : 27cab045-3aab-4325-a762-841adb966c04
2026-03-19 02:25:20,742 - INFO - ================================================================================
2026-03-19 02:25:20,742 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-19 02:25:20,743 - 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
2026-03-19 02:25:21,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-03-19 02:25:21,002 - INFO - Initial checks done. Running the testcase now
2026-03-19 02:25:21,002 - INFO -
2026-03-19 02:25:21,587 - DEBUG - Response for create_network : {'network': {'id': '9da06a0b-2ed9-4653-a42c-1b09908f953e', 'name': 'ctest-vn-80932861', 'tenant_id': '27cab0453aab4325a762841adb966c04', 'project_id': '27cab0453aab4325a762841adb966c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-vn-80932861'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:25:21,802 - DEBUG - Response for create_subnet : {'subnet': {'id': '4245f793-e993-4436-8127-1ceb96a8a528', 'name': '', 'tenant_id': '27cab0453aab4325a762841adb966c04', 'network_id': '9da06a0b-2ed9-4653-a42c-1b09908f953e', 'ip_version': 4, 'cidr': '68.108.165.0/26', 'allocation_pools': [{'start': '68.108.165.2', 'end': '68.108.165.62'}], 'gateway_ip': '68.108.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.108.165.2', 'tags': [], 'project_id': '27cab0453aab4325a762841adb966c04'}}
2026-03-19 02:25:21,821 - INFO - Created VN ctest-vn-80932861
2026-03-19 02:25:21,875 - DEBUG - VN ctest-vn-80932861 UUID is 9da06a0b-2ed9-4653-a42c-1b09908f953e
2026-03-19 02:25:22,173 - DEBUG - Response for create_network : {'network': {'id': '5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab', 'name': 'ctest-vn-67727480', 'tenant_id': '27cab0453aab4325a762841adb966c04', 'project_id': '27cab0453aab4325a762841adb966c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-vn-67727480'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:25:22,328 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bab5f0bb-12f0-4702-b365-0f7c91da0cad', 'name': '', 'tenant_id': '27cab0453aab4325a762841adb966c04', 'network_id': '5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab', 'ip_version': 4, 'cidr': '48.159.189.128/26', 'allocation_pools': [{'start': '48.159.189.130', 'end': '48.159.189.190'}], 'gateway_ip': '48.159.189.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.159.189.130', 'tags': [], 'project_id': '27cab0453aab4325a762841adb966c04'}}
2026-03-19 02:25:22,348 - INFO - Created VN ctest-vn-67727480
2026-03-19 02:25:22,403 - DEBUG - VN ctest-vn-67727480 UUID is 5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab
2026-03-19 02:25:22,522 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-80932861, 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-51714712:ctest-vn-67727480, 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]
2026-03-19 02:25:22,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9da06a0b-2ed9-4653-a42c-1b09908f953e', 'name': 'ctest-vn-80932861', 'tenant_id': '27cab0453aab4325a762841adb966c04', 'project_id': '27cab0453aab4325a762841adb966c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4245f793-e993-4436-8127-1ceb96a8a528'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-vn-80932861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-policy-allow-all-00177459']], 'subnet_ipam': [{'subnet_cidr': '68.108.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:25:23,107 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab', 'name': 'ctest-vn-67727480', 'tenant_id': '27cab0453aab4325a762841adb966c04', 'project_id': '27cab0453aab4325a762841adb966c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bab5f0bb-12f0-4702-b365-0f7c91da0cad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-vn-67727480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-policy-allow-all-00177459']], 'subnet_ipam': [{'subnet_cidr': '48.159.189.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:25:23,259 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-19 02:25:23,569 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-19 02:25:23,605 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e
2026-03-19 02:25:23,617 - DEBUG - Requesting: http://10.0.0.50:8082/project/27cab045-3aab-4325-a762-841adb966c04
2026-03-19 02:25:23,695 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da06a0b-2ed9-4653-a42c-1b09908f953e
2026-03-19 02:25:23,706 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da06a0b-2ed9-4653-a42c-1b09908f953e
2026-03-19 02:25:23,716 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57f26c90-6c6c-4dee-9e84-687695da3c1c
2026-03-19 02:25:23,723 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57f26c90-6c6c-4dee-9e84-687695da3c1c
2026-03-19 02:25:23,732 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/335c31bb-2c12-44e7-9d27-14ff20004b2e
2026-03-19 02:25:23,739 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 02:25:23,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da06a0b-2ed9-4653-a42c-1b09908f953e
2026-03-19 02:25:23,749 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57f26c90-6c6c-4dee-9e84-687695da3c1c
2026-03-19 02:25:23,766 - INFO - Verified VN network id 12 for VN 9da06a0b-2ed9-4653-a42c-1b09908f953e
2026-03-19 02:25:23,766 - INFO - Verifications in API Server for VN ctest-vn-80932861 passed
2026-03-19 02:25:23,766 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da06a0b-2ed9-4653-a42c-1b09908f953e
2026-03-19 02:25:23,777 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57f26c90-6c6c-4dee-9e84-687695da3c1c
2026-03-19 02:25:23,784 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57f26c90-6c6c-4dee-9e84-687695da3c1c
2026-03-19 02:25:23,791 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/335c31bb-2c12-44e7-9d27-14ff20004b2e
2026-03-19 02:25:23,803 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-80932861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51714712', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11358194856491566675', 'uuid-lslong': '11829860049089434942'}, 'enable': 'true', 'created': '2026-03-19T02:25:21', 'last-modified': '2026-03-19T02:25:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011657'}
2026-03-19 02:25:23,810 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 02:25:23,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80932861 passed
2026-03-19 02:25:23,811 - DEBUG - ====Verifying policy data for ctest-vn-80932861 in API_Server ======
2026-03-19 02:25:23,811 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-19 02:25:23,816 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e
2026-03-19 02:25:23,827 - DEBUG - Requesting: http://10.0.0.50:8082/project/27cab045-3aab-4325-a762-841adb966c04
2026-03-19 02:25:23,900 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da06a0b-2ed9-4653-a42c-1b09908f953e
2026-03-19 02:25:23,911 - DEBUG - ==>Verifying data for policy with id: a968e091-36e8-4fba-912e-bafcd5f82a89, fqn: ['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-policy-allow-all-00177459']
2026-03-19 02:25:23,911 - INFO - VN ctest-vn-80932861 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 02:25:23,911 - DEBUG - Verifying the vn in opserver
2026-03-19 02:25:23,911 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-80932861 virtual network link through opserver 10.0.0.50
2026-03-19 02:25:23,911 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-19 02:25:24,220 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-19 02:25:24,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-80932861', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-80932861?flat'}
2026-03-19 02:25:24,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-80932861 is found in opserver
2026-03-19 02:25:24,303 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 02:25:24,310 - DEBUG - VRF ids for VN ctest-vn-80932861: {}
2026-03-19 02:25:24,310 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-19 02:25:24,316 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e
2026-03-19 02:25:24,329 - DEBUG - Requesting: http://10.0.0.50:8082/project/27cab045-3aab-4325-a762-841adb966c04
2026-03-19 02:25:24,405 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab
2026-03-19 02:25:24,419 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab
2026-03-19 02:25:24,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24dd7d6d-07b6-4bf1-8123-12b8726bdfe8
2026-03-19 02:25:24,438 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24dd7d6d-07b6-4bf1-8123-12b8726bdfe8
2026-03-19 02:25:24,447 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/72e00107-126b-459c-b2cc-ec7ee5c62649
2026-03-19 02:25:24,455 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 02:25:24,455 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab
2026-03-19 02:25:24,466 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24dd7d6d-07b6-4bf1-8123-12b8726bdfe8
2026-03-19 02:25:24,483 - INFO - Verified VN network id 13 for VN 5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab
2026-03-19 02:25:24,483 - INFO - Verifications in API Server for VN ctest-vn-67727480 passed
2026-03-19 02:25:24,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab
2026-03-19 02:25:24,495 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24dd7d6d-07b6-4bf1-8123-12b8726bdfe8
2026-03-19 02:25:24,504 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24dd7d6d-07b6-4bf1-8123-12b8726bdfe8
2026-03-19 02:25:24,513 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/72e00107-126b-459c-b2cc-ec7ee5c62649
2026-03-19 02:25:24,528 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-67727480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51714712', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6583210116340141467', 'uuid-lslong': '10257909475978868907'}, 'enable': 'true', 'created': '2026-03-19T02:25:22', 'last-modified': '2026-03-19T02:25:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488078'}
2026-03-19 02:25:24,534 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 02:25:24,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67727480 passed
2026-03-19 02:25:24,534 - DEBUG - ====Verifying policy data for ctest-vn-67727480 in API_Server ======
2026-03-19 02:25:24,534 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-19 02:25:24,540 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e
2026-03-19 02:25:24,551 - DEBUG - Requesting: http://10.0.0.50:8082/project/27cab045-3aab-4325-a762-841adb966c04
2026-03-19 02:25:24,627 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5b5c42b8-b236-4d9b-8e5b-6a51d5d578ab
2026-03-19 02:25:24,637 - DEBUG - ==>Verifying data for policy with id: a968e091-36e8-4fba-912e-bafcd5f82a89, fqn: ['default-domain', 'ctest-TestBasicPolicy-51714712', 'ctest-policy-allow-all-00177459']
2026-03-19 02:25:24,637 - INFO - VN ctest-vn-67727480 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 02:25:24,637 - DEBUG - Verifying the vn in opserver
2026-03-19 02:25:24,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-67727480 virtual network link through opserver 10.0.0.50
2026-03-19 02:25:24,637 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-19 02:25:24,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-67727480', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-67727480?flat'}
2026-03-19 02:25:24,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51714712:ctest-vn-67727480 is found in opserver
2026-03-19 02:25:24,659 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 02:25:24,664 - DEBUG - VRF ids for VN ctest-vn-67727480: {}
2026-03-19 02:25:24,731 - DEBUG - Services list from nova: [