2026-02-03 21:30:19,586 - INFO - Domain Default found not creating
2026-02-03 21:30:19,728 - INFO - Project ctest-TestBasicPolicy-74604970 not found, creating it
2026-02-03 21:30:20,156 - INFO - Created Project:ctest-TestBasicPolicy-74604970, ID : 6d21649b-cec7-451c-bb18-4a19a910b348
2026-02-03 21:30:21,555 - INFO - ================================================================================
2026-02-03 21:30:21,555 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-03 21:30:21,555 - 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-02-03 21:30:21,819 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with
2026-02-03 21:30:21,819 - INFO - Initial checks done. Running the testcase now
2026-02-03 21:30:21,819 - INFO -
2026-02-03 21:30:22,345 - DEBUG - Response for create_network : {'network': {'id': 'a7d101c4-c359-4f97-9922-d40dc8e76f86', 'name': 'ctest-vn-74981559', 'tenant_id': '6d21649bcec7451cbb184a19a910b348', 'project_id': '6d21649bcec7451cbb184a19a910b348', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-vn-74981559'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:30:22,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '121a6c26-8025-4313-bbc4-18b46db99748', 'name': '', 'tenant_id': '6d21649bcec7451cbb184a19a910b348', 'network_id': 'a7d101c4-c359-4f97-9922-d40dc8e76f86', 'ip_version': 4, 'cidr': '1.152.185.192/26', 'allocation_pools': [{'start': '1.152.185.194', 'end': '1.152.185.254'}], 'gateway_ip': '1.152.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.152.185.194', 'tags': [], 'project_id': '6d21649bcec7451cbb184a19a910b348'}}
2026-02-03 21:30:22,495 - INFO - Created VN ctest-vn-74981559
2026-02-03 21:30:22,545 - DEBUG - VN ctest-vn-74981559 UUID is a7d101c4-c359-4f97-9922-d40dc8e76f86
2026-02-03 21:30:22,854 - DEBUG - Response for create_network : {'network': {'id': 'd2658fad-ff3d-4b81-8886-b822be352c80', 'name': 'ctest-vn-52789119', 'tenant_id': '6d21649bcec7451cbb184a19a910b348', 'project_id': '6d21649bcec7451cbb184a19a910b348', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-vn-52789119'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:30:23,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f17429b-15ca-4ad6-8e6b-09df75488ffa', 'name': '', 'tenant_id': '6d21649bcec7451cbb184a19a910b348', 'network_id': 'd2658fad-ff3d-4b81-8886-b822be352c80', 'ip_version': 4, 'cidr': '117.88.188.0/26', 'allocation_pools': [{'start': '117.88.188.2', 'end': '117.88.188.62'}], 'gateway_ip': '117.88.188.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.88.188.2', 'tags': [], 'project_id': '6d21649bcec7451cbb184a19a910b348'}}
2026-02-03 21:30:23,039 - INFO - Created VN ctest-vn-52789119
2026-02-03 21:30:23,089 - DEBUG - VN ctest-vn-52789119 UUID is d2658fad-ff3d-4b81-8886-b822be352c80
2026-02-03 21:30:23,237 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-74981559, 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-74604970:ctest-vn-52789119, 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-02-03 21:30:23,513 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7d101c4-c359-4f97-9922-d40dc8e76f86', 'name': 'ctest-vn-74981559', 'tenant_id': '6d21649bcec7451cbb184a19a910b348', 'project_id': '6d21649bcec7451cbb184a19a910b348', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['121a6c26-8025-4313-bbc4-18b46db99748'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-vn-74981559'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-policy-allow-all-96602657']], 'subnet_ipam': [{'subnet_cidr': '1.152.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:30:23,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2658fad-ff3d-4b81-8886-b822be352c80', 'name': 'ctest-vn-52789119', 'tenant_id': '6d21649bcec7451cbb184a19a910b348', 'project_id': '6d21649bcec7451cbb184a19a910b348', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f17429b-15ca-4ad6-8e6b-09df75488ffa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-vn-52789119'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-policy-allow-all-96602657']], 'subnet_ipam': [{'subnet_cidr': '117.88.188.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:30:23,889 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-03 21:30:24,181 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-03 21:30:24,214 - DEBUG - Requesting: http://10.0.0.33:8082/domain/898bf28b-82a4-4e04-8e57-03b116403bd4
2026-02-03 21:30:24,224 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d21649b-cec7-451c-bb18-4a19a910b348
2026-02-03 21:30:24,293 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7d101c4-c359-4f97-9922-d40dc8e76f86
2026-02-03 21:30:24,301 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7d101c4-c359-4f97-9922-d40dc8e76f86
2026-02-03 21:30:24,309 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/df026edc-c001-4f7a-825c-9c942a1172d9
2026-02-03 21:30:24,314 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/df026edc-c001-4f7a-825c-9c942a1172d9
2026-02-03 21:30:24,319 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/693678f0-f336-4fbf-8514-03b7228709ee
2026-02-03 21:30:24,323 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 21:30:24,324 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7d101c4-c359-4f97-9922-d40dc8e76f86
2026-02-03 21:30:24,330 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/df026edc-c001-4f7a-825c-9c942a1172d9
2026-02-03 21:30:24,341 - INFO - Verified VN network id 11 for VN a7d101c4-c359-4f97-9922-d40dc8e76f86
2026-02-03 21:30:24,341 - INFO - Verifications in API Server for VN ctest-vn-74981559 passed
2026-02-03 21:30:24,341 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7d101c4-c359-4f97-9922-d40dc8e76f86
2026-02-03 21:30:24,348 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/df026edc-c001-4f7a-825c-9c942a1172d9
2026-02-03 21:30:24,353 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/df026edc-c001-4f7a-825c-9c942a1172d9
2026-02-03 21:30:24,357 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/693678f0-f336-4fbf-8514-03b7228709ee
2026-02-03 21:30:24,366 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-74981559', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74604970', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12092448419069120407', 'uuid-lslong': '11034615192681410438'}, 'enable': 'true', 'created': '2026-02-03T21:30:22', 'last-modified': '2026-02-03T21:30:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.873113'}
2026-02-03 21:30:24,371 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 21:30:24,371 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74981559 passed
2026-02-03 21:30:24,371 - DEBUG - ====Verifying policy data for ctest-vn-74981559 in API_Server ======
2026-02-03 21:30:24,371 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-03 21:30:24,375 - DEBUG - Requesting: http://10.0.0.33:8082/domain/898bf28b-82a4-4e04-8e57-03b116403bd4
2026-02-03 21:30:24,384 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d21649b-cec7-451c-bb18-4a19a910b348
2026-02-03 21:30:24,450 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7d101c4-c359-4f97-9922-d40dc8e76f86
2026-02-03 21:30:24,457 - DEBUG - ==>Verifying data for policy with id: fc9fa03b-7bf0-44fa-9df5-6c473dda699b, fqn: ['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-policy-allow-all-96602657']
2026-02-03 21:30:24,457 - INFO - VN ctest-vn-74981559 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 21:30:24,458 - DEBUG - Verifying the vn in opserver
2026-02-03 21:30:24,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-74981559 virtual network link through opserver 10.0.0.33
2026-02-03 21:30:24,458 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-03 21:30:24,749 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-03 21:30:24,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-74981559', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-74981559?flat'}
2026-02-03 21:30:24,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-74981559 is found in opserver
2026-02-03 21:30:24,813 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 21:30:24,817 - DEBUG - VRF ids for VN ctest-vn-74981559: {}
2026-02-03 21:30:24,817 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-03 21:30:24,822 - DEBUG - Requesting: http://10.0.0.33:8082/domain/898bf28b-82a4-4e04-8e57-03b116403bd4
2026-02-03 21:30:24,831 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d21649b-cec7-451c-bb18-4a19a910b348
2026-02-03 21:30:24,903 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2658fad-ff3d-4b81-8886-b822be352c80
2026-02-03 21:30:24,914 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2658fad-ff3d-4b81-8886-b822be352c80
2026-02-03 21:30:24,922 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/07581c07-1e9c-44fb-81fb-364faa4b7982
2026-02-03 21:30:24,928 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/07581c07-1e9c-44fb-81fb-364faa4b7982
2026-02-03 21:30:24,933 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/44b63f2c-53c5-471a-8298-29db0bd0325d
2026-02-03 21:30:24,939 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 21:30:24,939 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2658fad-ff3d-4b81-8886-b822be352c80
2026-02-03 21:30:24,946 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/07581c07-1e9c-44fb-81fb-364faa4b7982
2026-02-03 21:30:24,956 - INFO - Verified VN network id 12 for VN d2658fad-ff3d-4b81-8886-b822be352c80
2026-02-03 21:30:24,956 - INFO - Verifications in API Server for VN ctest-vn-52789119 passed
2026-02-03 21:30:24,957 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2658fad-ff3d-4b81-8886-b822be352c80
2026-02-03 21:30:24,964 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/07581c07-1e9c-44fb-81fb-364faa4b7982
2026-02-03 21:30:24,969 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/07581c07-1e9c-44fb-81fb-364faa4b7982
2026-02-03 21:30:24,974 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/44b63f2c-53c5-471a-8298-29db0bd0325d
2026-02-03 21:30:24,983 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-52789119', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74604970', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15160681698086964097', 'uuid-lslong': '9837752895396981888'}, 'enable': 'true', 'created': '2026-02-03T21:30:22', 'last-modified': '2026-02-03T21:30:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.276767'}
2026-02-03 21:30:24,988 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 21:30:24,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52789119 passed
2026-02-03 21:30:24,988 - DEBUG - ====Verifying policy data for ctest-vn-52789119 in API_Server ======
2026-02-03 21:30:24,988 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-03 21:30:24,992 - DEBUG - Requesting: http://10.0.0.33:8082/domain/898bf28b-82a4-4e04-8e57-03b116403bd4
2026-02-03 21:30:25,001 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d21649b-cec7-451c-bb18-4a19a910b348
2026-02-03 21:30:25,072 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2658fad-ff3d-4b81-8886-b822be352c80
2026-02-03 21:30:25,080 - DEBUG - ==>Verifying data for policy with id: fc9fa03b-7bf0-44fa-9df5-6c473dda699b, fqn: ['default-domain', 'ctest-TestBasicPolicy-74604970', 'ctest-policy-allow-all-96602657']
2026-02-03 21:30:25,080 - INFO - VN ctest-vn-52789119 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 21:30:25,080 - DEBUG - Verifying the vn in opserver
2026-02-03 21:30:25,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-52789119 virtual network link through opserver 10.0.0.33
2026-02-03 21:30:25,080 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-03 21:30:25,088 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-52789119', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-52789119?flat'}
2026-02-03 21:30:25,088 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74604970:ctest-vn-52789119 is found in opserver
2026-02-03 21:30:25,096 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 21:30:25,100 - DEBUG - VRF ids for VN ctest-vn-52789119: {}
2026-02-03 21:30:25,150 - DEBUG - Services list from nova: [