2026-05-12 11:46:39,895 - INFO - Domain Default found not creating
2026-05-12 11:46:40,091 - INFO - Project ctest-TestBasicPolicy-51784064 not found, creating it
2026-05-12 11:46:40,530 - INFO - Created Project:ctest-TestBasicPolicy-51784064, ID : 32c7b53d-beab-4ecb-abb6-896691dca8c5
2026-05-12 11:46:42,137 - INFO - ================================================================================
2026-05-12 11:46:42,137 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-12 11:46:42,137 - 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-12 11:46:42,395 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-05-12 11:46:42,396 - INFO - Initial checks done. Running the testcase now
2026-05-12 11:46:42,396 - INFO -
2026-05-12 11:46:42,964 - DEBUG - Response for create_network : {'network': {'id': '021bbd8b-64fe-41f7-aa0c-4ea9244255fb', 'name': 'ctest-vn-65619269', 'tenant_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'project_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-vn-65619269'], 'port_security_enabled': True, 'description': ''}}
2026-05-12 11:46:43,145 - DEBUG - Response for create_subnet : {'subnet': {'id': '32b8605c-0892-41ea-a484-88ca9dfd9d90', 'name': '', 'tenant_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'network_id': '021bbd8b-64fe-41f7-aa0c-4ea9244255fb', 'ip_version': 4, 'cidr': '75.58.8.128/26', 'allocation_pools': [{'start': '75.58.8.130', 'end': '75.58.8.190'}], 'gateway_ip': '75.58.8.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.58.8.130', 'tags': [], 'project_id': '32c7b53dbeab4ecbabb6896691dca8c5'}}
2026-05-12 11:46:43,163 - INFO - Created VN ctest-vn-65619269
2026-05-12 11:46:43,214 - DEBUG - VN ctest-vn-65619269 UUID is 021bbd8b-64fe-41f7-aa0c-4ea9244255fb
2026-05-12 11:46:43,507 - DEBUG - Response for create_network : {'network': {'id': 'd13d216f-2744-434d-8b6e-ac156725dff0', 'name': 'ctest-vn-31148817', 'tenant_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'project_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-vn-31148817'], 'port_security_enabled': True, 'description': ''}}
2026-05-12 11:46:43,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '71853423-7b44-4c42-87d6-222766bffdcd', 'name': '', 'tenant_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'network_id': 'd13d216f-2744-434d-8b6e-ac156725dff0', 'ip_version': 4, 'cidr': '200.129.50.64/26', 'allocation_pools': [{'start': '200.129.50.66', 'end': '200.129.50.126'}], 'gateway_ip': '200.129.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.129.50.66', 'tags': [], 'project_id': '32c7b53dbeab4ecbabb6896691dca8c5'}}
2026-05-12 11:46:43,733 - INFO - Created VN ctest-vn-31148817
2026-05-12 11:46:43,786 - DEBUG - VN ctest-vn-31148817 UUID is d13d216f-2744-434d-8b6e-ac156725dff0
2026-05-12 11:46:43,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-65619269, 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-51784064:ctest-vn-31148817, 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-12 11:46:44,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '021bbd8b-64fe-41f7-aa0c-4ea9244255fb', 'name': 'ctest-vn-65619269', 'tenant_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'project_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32b8605c-0892-41ea-a484-88ca9dfd9d90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-vn-65619269'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-policy-allow-all-89455975']], 'subnet_ipam': [{'subnet_cidr': '75.58.8.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-12 11:46:44,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd13d216f-2744-434d-8b6e-ac156725dff0', 'name': 'ctest-vn-31148817', 'tenant_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'project_id': '32c7b53dbeab4ecbabb6896691dca8c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71853423-7b44-4c42-87d6-222766bffdcd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-vn-31148817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-policy-allow-all-89455975']], 'subnet_ipam': [{'subnet_cidr': '200.129.50.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-12 11:46:44,618 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 11:46:44,915 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 11:46:44,953 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b8a4053e-aa32-465c-8270-30f4025ea045
2026-05-12 11:46:44,965 - DEBUG - Requesting: http://10.0.0.22:8082/project/32c7b53d-beab-4ecb-abb6-896691dca8c5
2026-05-12 11:46:45,045 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021bbd8b-64fe-41f7-aa0c-4ea9244255fb
2026-05-12 11:46:45,057 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021bbd8b-64fe-41f7-aa0c-4ea9244255fb
2026-05-12 11:46:45,068 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc527347-6f3f-4952-9ccb-9b726d7e01ac
2026-05-12 11:46:45,076 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc527347-6f3f-4952-9ccb-9b726d7e01ac
2026-05-12 11:46:45,083 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/944555da-72ad-41b6-b69f-1f84ddb886d0
2026-05-12 11:46:45,091 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-12 11:46:45,091 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021bbd8b-64fe-41f7-aa0c-4ea9244255fb
2026-05-12 11:46:45,103 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc527347-6f3f-4952-9ccb-9b726d7e01ac
2026-05-12 11:46:45,118 - INFO - Verified VN network id 11 for VN 021bbd8b-64fe-41f7-aa0c-4ea9244255fb
2026-05-12 11:46:45,118 - INFO - Verifications in API Server for VN ctest-vn-65619269 passed
2026-05-12 11:46:45,118 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021bbd8b-64fe-41f7-aa0c-4ea9244255fb
2026-05-12 11:46:45,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc527347-6f3f-4952-9ccb-9b726d7e01ac
2026-05-12 11:46:45,139 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc527347-6f3f-4952-9ccb-9b726d7e01ac
2026-05-12 11:46:45,147 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/944555da-72ad-41b6-b69f-1f84ddb886d0
2026-05-12 11:46:45,161 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-65619269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51784064', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '151923418839532023', 'uuid-lslong': '12253255174533043707'}, 'enable': 'true', 'created': '2026-05-12T11:46:42', 'last-modified': '2026-05-12T11:46:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972165'}
2026-05-12 11:46:45,169 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-12 11:46:45,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65619269 passed
2026-05-12 11:46:45,170 - DEBUG - ====Verifying policy data for ctest-vn-65619269 in API_Server ======
2026-05-12 11:46:45,170 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 11:46:45,176 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b8a4053e-aa32-465c-8270-30f4025ea045
2026-05-12 11:46:45,190 - DEBUG - Requesting: http://10.0.0.22:8082/project/32c7b53d-beab-4ecb-abb6-896691dca8c5
2026-05-12 11:46:45,264 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021bbd8b-64fe-41f7-aa0c-4ea9244255fb
2026-05-12 11:46:45,273 - DEBUG - ==>Verifying data for policy with id: e685b514-7d9e-425b-bd6c-1e9567471776, fqn: ['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-policy-allow-all-89455975']
2026-05-12 11:46:45,273 - INFO - VN ctest-vn-65619269 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-12 11:46:45,273 - DEBUG - Verifying the vn in opserver
2026-05-12 11:46:45,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-65619269 virtual network link through opserver 10.0.0.22
2026-05-12 11:46:45,273 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-12 11:46:45,576 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-12 11:46:45,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-65619269', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-65619269?flat'}
2026-05-12 11:46:45,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-65619269 is found in opserver
2026-05-12 11:46:45,656 - DEBUG - Do not have enough data to verify VN in agent
2026-05-12 11:46:45,662 - DEBUG - VRF ids for VN ctest-vn-65619269: {}
2026-05-12 11:46:45,662 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 11:46:45,668 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b8a4053e-aa32-465c-8270-30f4025ea045
2026-05-12 11:46:45,680 - DEBUG - Requesting: http://10.0.0.22:8082/project/32c7b53d-beab-4ecb-abb6-896691dca8c5
2026-05-12 11:46:45,761 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d13d216f-2744-434d-8b6e-ac156725dff0
2026-05-12 11:46:45,775 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d13d216f-2744-434d-8b6e-ac156725dff0
2026-05-12 11:46:45,791 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1c6c6f0f-fdbb-424e-9d90-e624f964c5a5
2026-05-12 11:46:45,800 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1c6c6f0f-fdbb-424e-9d90-e624f964c5a5
2026-05-12 11:46:45,808 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3bcd2a42-e2dc-474a-8386-2eec6435af82
2026-05-12 11:46:45,815 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-12 11:46:45,816 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d13d216f-2744-434d-8b6e-ac156725dff0
2026-05-12 11:46:45,826 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1c6c6f0f-fdbb-424e-9d90-e624f964c5a5
2026-05-12 11:46:45,844 - INFO - Verified VN network id 12 for VN d13d216f-2744-434d-8b6e-ac156725dff0
2026-05-12 11:46:45,844 - INFO - Verifications in API Server for VN ctest-vn-31148817 passed
2026-05-12 11:46:45,844 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d13d216f-2744-434d-8b6e-ac156725dff0
2026-05-12 11:46:45,856 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1c6c6f0f-fdbb-424e-9d90-e624f964c5a5
2026-05-12 11:46:45,865 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1c6c6f0f-fdbb-424e-9d90-e624f964c5a5
2026-05-12 11:46:45,874 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3bcd2a42-e2dc-474a-8386-2eec6435af82
2026-05-12 11:46:45,886 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-31148817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51784064', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15077243888790160205', 'uuid-lslong': '10047157026634981360'}, 'enable': 'true', 'created': '2026-05-12T11:46:43', 'last-modified': '2026-05-12T11:46:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464820'}
2026-05-12 11:46:45,893 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-12 11:46:45,894 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31148817 passed
2026-05-12 11:46:45,894 - DEBUG - ====Verifying policy data for ctest-vn-31148817 in API_Server ======
2026-05-12 11:46:45,894 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-12 11:46:45,900 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b8a4053e-aa32-465c-8270-30f4025ea045
2026-05-12 11:46:45,912 - DEBUG - Requesting: http://10.0.0.22:8082/project/32c7b53d-beab-4ecb-abb6-896691dca8c5
2026-05-12 11:46:45,990 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d13d216f-2744-434d-8b6e-ac156725dff0
2026-05-12 11:46:46,000 - DEBUG - ==>Verifying data for policy with id: e685b514-7d9e-425b-bd6c-1e9567471776, fqn: ['default-domain', 'ctest-TestBasicPolicy-51784064', 'ctest-policy-allow-all-89455975']
2026-05-12 11:46:46,000 - INFO - VN ctest-vn-31148817 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-12 11:46:46,000 - DEBUG - Verifying the vn in opserver
2026-05-12 11:46:46,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-31148817 virtual network link through opserver 10.0.0.22
2026-05-12 11:46:46,000 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-12 11:46:46,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-31148817', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-31148817?flat'}
2026-05-12 11:46:46,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51784064:ctest-vn-31148817 is found in opserver
2026-05-12 11:46:46,021 - DEBUG - Do not have enough data to verify VN in agent
2026-05-12 11:46:46,026 - DEBUG - VRF ids for VN ctest-vn-31148817: {}
2026-05-12 11:46:46,091 - DEBUG - Services list from nova: [