2026-05-18 01:52:05,785 - INFO - Reading existing Domain with UUID 2d41c0d2-849f-4e48-95a3-b6637df9305b
2026-05-18 01:52:05,797 - INFO - Using existing domain ['admin_domain'](2d41c0d2-849f-4e48-95a3-b6637df9305b)
2026-05-18 01:52:06,018 - INFO - Project ctest-TestBasicPolicy-95698054 not found, creating it
2026-05-18 01:52:06,535 - INFO - Created Project:ctest-TestBasicPolicy-95698054, ID : e5faaa50-f5e4-4351-8ffc-31fea6170d98
2026-05-18 01:52:08,351 - INFO - ================================================================================
2026-05-18 01:52:08,351 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-18 01:52:08,351 - 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-05-18 01:52:08,749 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with
2026-05-18 01:52:08,749 - INFO - Initial checks done. Running the testcase now
2026-05-18 01:52:08,750 - INFO -
2026-05-18 01:52:09,576 - DEBUG - Response for create_network : {'network': {'id': '6809622d-0600-4617-9c37-17f867aa2f3e', 'name': 'ctest-vn-76844020', 'tenant_id': 'e5faaa50f5e443518ffc31fea6170d98', 'project_id': 'e5faaa50f5e443518ffc31fea6170d98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-vn-76844020'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-05-18 01:52:09,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '834bbeb9-a0eb-4ce5-b13d-34af2f5f48f2', 'name': '', 'tenant_id': 'e5faaa50f5e443518ffc31fea6170d98', 'network_id': '6809622d-0600-4617-9c37-17f867aa2f3e', 'ip_version': 4, 'cidr': '51.49.82.128/26', 'allocation_pools': [{'start': '51.49.82.130', 'end': '51.49.82.190'}], 'gateway_ip': '51.49.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-18T01:52:09.708413', 'updated_at': '2026-05-18T01:52:09.708413', 'dns_server_address': '51.49.82.130', 'tags': [], 'project_id': 'e5faaa50f5e443518ffc31fea6170d98'}}
2026-05-18 01:52:09,890 - INFO - Created VN ctest-vn-76844020
2026-05-18 01:52:09,943 - DEBUG - VN ctest-vn-76844020 UUID is 6809622d-0600-4617-9c37-17f867aa2f3e
2026-05-18 01:52:10,467 - DEBUG - Response for create_network : {'network': {'id': '4a199899-b088-46d7-8251-beda3116e909', 'name': 'ctest-vn-68180757', 'tenant_id': 'e5faaa50f5e443518ffc31fea6170d98', 'project_id': 'e5faaa50f5e443518ffc31fea6170d98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-vn-68180757'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-05-18 01:52:10,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd2ab793-aa16-4a9d-b305-920b3b350403', 'name': '', 'tenant_id': 'e5faaa50f5e443518ffc31fea6170d98', 'network_id': '4a199899-b088-46d7-8251-beda3116e909', 'ip_version': 4, 'cidr': '53.83.101.0/26', 'allocation_pools': [{'start': '53.83.101.2', 'end': '53.83.101.62'}], 'gateway_ip': '53.83.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-18T01:52:10.599739', 'updated_at': '2026-05-18T01:52:10.599739', 'dns_server_address': '53.83.101.2', 'tags': [], 'project_id': 'e5faaa50f5e443518ffc31fea6170d98'}}
2026-05-18 01:52:10,774 - INFO - Created VN ctest-vn-68180757
2026-05-18 01:52:10,827 - DEBUG - VN ctest-vn-68180757 UUID is 4a199899-b088-46d7-8251-beda3116e909
2026-05-18 01:52:11,044 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-76844020, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-68180757, 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-05-18 01:52:11,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6809622d-0600-4617-9c37-17f867aa2f3e', 'name': 'ctest-vn-76844020', 'tenant_id': 'e5faaa50f5e443518ffc31fea6170d98', 'project_id': 'e5faaa50f5e443518ffc31fea6170d98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['834bbeb9-a0eb-4ce5-b13d-34af2f5f48f2'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-vn-76844020'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-policy-allow-all-74513953']], 'subnet_ipam': [{'subnet_cidr': '51.49.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-05-18T01:52:09.483252', 'updated_at': '2026-05-18T01:52:09.730490'}}
2026-05-18 01:52:11,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a199899-b088-46d7-8251-beda3116e909', 'name': 'ctest-vn-68180757', 'tenant_id': 'e5faaa50f5e443518ffc31fea6170d98', 'project_id': 'e5faaa50f5e443518ffc31fea6170d98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd2ab793-aa16-4a9d-b305-920b3b350403'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-vn-68180757'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-policy-allow-all-74513953']], 'subnet_ipam': [{'subnet_cidr': '53.83.101.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-05-18T01:52:10.379565', 'updated_at': '2026-05-18T01:52:10.613910'}}
2026-05-18 01:52:11,983 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-05-18 01:52:12,356 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-05-18 01:52:12,444 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b
2026-05-18 01:52:12,504 - DEBUG - Requesting: https://10.0.0.241:8082/project/e5faaa50-f5e4-4351-8ffc-31fea6170d98
2026-05-18 01:52:12,589 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6809622d-0600-4617-9c37-17f867aa2f3e
2026-05-18 01:52:12,649 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6809622d-0600-4617-9c37-17f867aa2f3e
2026-05-18 01:52:12,705 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/7acc7d7b-0420-44e6-bc92-3970e5293877
2026-05-18 01:52:12,760 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/7acc7d7b-0420-44e6-bc92-3970e5293877
2026-05-18 01:52:12,816 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/f68a7494-58b1-4cdc-92b9-ed6d1b509664
2026-05-18 01:52:12,868 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-18 01:52:12,868 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6809622d-0600-4617-9c37-17f867aa2f3e
2026-05-18 01:52:12,925 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/7acc7d7b-0420-44e6-bc92-3970e5293877
2026-05-18 01:52:12,988 - INFO - Verified VN network id 11 for VN 6809622d-0600-4617-9c37-17f867aa2f3e
2026-05-18 01:52:12,988 - INFO - Verifications in API Server for VN ctest-vn-76844020 passed
2026-05-18 01:52:12,988 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6809622d-0600-4617-9c37-17f867aa2f3e
2026-05-18 01:52:13,045 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/7acc7d7b-0420-44e6-bc92-3970e5293877
2026-05-18 01:52:13,100 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/7acc7d7b-0420-44e6-bc92-3970e5293877
2026-05-18 01:52:13,152 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/f68a7494-58b1-4cdc-92b9-ed6d1b509664
2026-05-18 01:52:13,256 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-76844020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95698054', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7496631000248632855', 'uuid-lslong': '11256492149294378814'}, 'enable': 'true', 'created': '2026-05-18T01:52:09', 'last-modified': '2026-05-18T01:52:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.828579'}
2026-05-18 01:52:13,309 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-18 01:52:13,309 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76844020 passed
2026-05-18 01:52:13,309 - DEBUG - ====Verifying policy data for ctest-vn-76844020 in API_Server ======
2026-05-18 01:52:13,309 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-05-18 01:52:13,364 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b
2026-05-18 01:52:13,424 - DEBUG - Requesting: https://10.0.0.241:8082/project/e5faaa50-f5e4-4351-8ffc-31fea6170d98
2026-05-18 01:52:13,504 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6809622d-0600-4617-9c37-17f867aa2f3e
2026-05-18 01:52:13,561 - DEBUG - ==>Verifying data for policy with id: 985b89e4-000f-4f26-93ac-b801ec40c59b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-policy-allow-all-74513953']
2026-05-18 01:52:13,561 - INFO - VN ctest-vn-76844020 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-18 01:52:13,561 - DEBUG - Verifying the vn in opserver
2026-05-18 01:52:13,561 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-76844020 virtual network link through opserver 10.0.0.241
2026-05-18 01:52:13,561 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2026-05-18 01:52:13,912 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2026-05-18 01:52:14,044 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-76844020', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-76844020?flat'}
2026-05-18 01:52:14,044 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-76844020 is found in opserver
2026-05-18 01:52:14,148 - DEBUG - Do not have enough data to verify VN in agent
2026-05-18 01:52:14,196 - DEBUG - VRF ids for VN ctest-vn-76844020: {}
2026-05-18 01:52:14,196 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-05-18 01:52:14,247 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b
2026-05-18 01:52:14,304 - DEBUG - Requesting: https://10.0.0.241:8082/project/e5faaa50-f5e4-4351-8ffc-31fea6170d98
2026-05-18 01:52:14,389 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/4a199899-b088-46d7-8251-beda3116e909
2026-05-18 01:52:14,449 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/4a199899-b088-46d7-8251-beda3116e909
2026-05-18 01:52:14,510 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b764ae20-b816-4cd7-92cd-7f4e16077ed1
2026-05-18 01:52:14,564 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b764ae20-b816-4cd7-92cd-7f4e16077ed1
2026-05-18 01:52:14,620 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/c51279aa-25f4-4552-af0f-ade7806a6062
2026-05-18 01:52:14,676 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-18 01:52:14,676 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/4a199899-b088-46d7-8251-beda3116e909
2026-05-18 01:52:14,737 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b764ae20-b816-4cd7-92cd-7f4e16077ed1
2026-05-18 01:52:14,804 - INFO - Verified VN network id 12 for VN 4a199899-b088-46d7-8251-beda3116e909
2026-05-18 01:52:14,804 - INFO - Verifications in API Server for VN ctest-vn-68180757 passed
2026-05-18 01:52:14,804 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/4a199899-b088-46d7-8251-beda3116e909
2026-05-18 01:52:14,861 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b764ae20-b816-4cd7-92cd-7f4e16077ed1
2026-05-18 01:52:14,921 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/b764ae20-b816-4cd7-92cd-7f4e16077ed1
2026-05-18 01:52:14,980 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/c51279aa-25f4-4552-af0f-ade7806a6062
2026-05-18 01:52:15,084 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-68180757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95698054', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5339466619083572951', 'uuid-lslong': '9390496542379927817'}, 'enable': 'true', 'created': '2026-05-18T01:52:10', 'last-modified': '2026-05-18T01:52:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.320226'}
2026-05-18 01:52:15,137 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-18 01:52:15,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68180757 passed
2026-05-18 01:52:15,137 - DEBUG - ====Verifying policy data for ctest-vn-68180757 in API_Server ======
2026-05-18 01:52:15,137 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-05-18 01:52:15,187 - DEBUG - Requesting: https://10.0.0.241:8082/domain/2d41c0d2-849f-4e48-95a3-b6637df9305b
2026-05-18 01:52:15,244 - DEBUG - Requesting: https://10.0.0.241:8082/project/e5faaa50-f5e4-4351-8ffc-31fea6170d98
2026-05-18 01:52:15,320 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/4a199899-b088-46d7-8251-beda3116e909
2026-05-18 01:52:15,377 - DEBUG - ==>Verifying data for policy with id: 985b89e4-000f-4f26-93ac-b801ec40c59b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-95698054', 'ctest-policy-allow-all-74513953']
2026-05-18 01:52:15,377 - INFO - VN ctest-vn-68180757 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-18 01:52:15,377 - DEBUG - Verifying the vn in opserver
2026-05-18 01:52:15,378 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-68180757 virtual network link through opserver 10.0.0.241
2026-05-18 01:52:15,378 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2026-05-18 01:52:15,432 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-68180757', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-68180757?flat'}
2026-05-18 01:52:15,432 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-95698054:ctest-vn-68180757 is found in opserver
2026-05-18 01:52:15,536 - DEBUG - Do not have enough data to verify VN in agent
2026-05-18 01:52:15,588 - DEBUG - VRF ids for VN ctest-vn-68180757: {}
2026-05-18 01:52:15,661 - DEBUG - Services list from nova: [