2026-05-20 15:37:48,840 - INFO - Domain Default found not creating
2026-05-20 15:37:49,014 - INFO - Project ctest-TestBasicPolicy-40975183 not found, creating it
2026-05-20 15:37:49,486 - INFO - Created Project:ctest-TestBasicPolicy-40975183, ID : 7e59996f-2374-4e0e-b02f-f953c191062a
2026-05-20 15:37:51,021 - INFO - ================================================================================
2026-05-20 15:37:51,023 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-20 15:37:51,023 - 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-20 15:37:51,278 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-05-20 15:37:51,278 - INFO - Initial checks done. Running the testcase now
2026-05-20 15:37:51,278 - INFO -
2026-05-20 15:37:51,857 - DEBUG - Response for create_network : {'network': {'id': '7e636527-8415-48d3-a46e-70acc7e405dd', 'name': 'ctest-vn-04523880', 'tenant_id': '7e59996f23744e0eb02ff953c191062a', 'project_id': '7e59996f23744e0eb02ff953c191062a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-vn-04523880'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 15:37:52,081 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd23a42c-1c31-4442-a8ab-d071b9343c4d', 'name': '', 'tenant_id': '7e59996f23744e0eb02ff953c191062a', 'network_id': '7e636527-8415-48d3-a46e-70acc7e405dd', 'ip_version': 4, 'cidr': '167.91.114.0/26', 'allocation_pools': [{'start': '167.91.114.2', 'end': '167.91.114.62'}], 'gateway_ip': '167.91.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.91.114.2', 'tags': [], 'project_id': '7e59996f23744e0eb02ff953c191062a'}}
2026-05-20 15:37:52,102 - INFO - Created VN ctest-vn-04523880
2026-05-20 15:37:52,157 - DEBUG - VN ctest-vn-04523880 UUID is 7e636527-8415-48d3-a46e-70acc7e405dd
2026-05-20 15:37:52,473 - DEBUG - Response for create_network : {'network': {'id': '82bd5a07-9508-4fa4-8206-5e23d2e512ed', 'name': 'ctest-vn-27475797', 'tenant_id': '7e59996f23744e0eb02ff953c191062a', 'project_id': '7e59996f23744e0eb02ff953c191062a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-vn-27475797'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 15:37:52,670 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8bc891b-37c4-43a6-96d2-c2bd1a549103', 'name': '', 'tenant_id': '7e59996f23744e0eb02ff953c191062a', 'network_id': '82bd5a07-9508-4fa4-8206-5e23d2e512ed', 'ip_version': 4, 'cidr': '83.202.39.0/26', 'allocation_pools': [{'start': '83.202.39.2', 'end': '83.202.39.62'}], 'gateway_ip': '83.202.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.202.39.2', 'tags': [], 'project_id': '7e59996f23744e0eb02ff953c191062a'}}
2026-05-20 15:37:52,689 - INFO - Created VN ctest-vn-27475797
2026-05-20 15:37:52,741 - DEBUG - VN ctest-vn-27475797 UUID is 82bd5a07-9508-4fa4-8206-5e23d2e512ed
2026-05-20 15:37:52,863 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-04523880, 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-40975183:ctest-vn-27475797, 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-20 15:37:53,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e636527-8415-48d3-a46e-70acc7e405dd', 'name': 'ctest-vn-04523880', 'tenant_id': '7e59996f23744e0eb02ff953c191062a', 'project_id': '7e59996f23744e0eb02ff953c191062a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd23a42c-1c31-4442-a8ab-d071b9343c4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-vn-04523880'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-policy-allow-all-87814469']], 'subnet_ipam': [{'subnet_cidr': '167.91.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 15:37:53,406 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82bd5a07-9508-4fa4-8206-5e23d2e512ed', 'name': 'ctest-vn-27475797', 'tenant_id': '7e59996f23744e0eb02ff953c191062a', 'project_id': '7e59996f23744e0eb02ff953c191062a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8bc891b-37c4-43a6-96d2-c2bd1a549103'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-vn-27475797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-policy-allow-all-87814469']], 'subnet_ipam': [{'subnet_cidr': '83.202.39.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 15:37:53,577 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 15:37:53,883 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 15:37:53,918 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea
2026-05-20 15:37:53,934 - DEBUG - Requesting: http://10.0.0.50:8082/project/7e59996f-2374-4e0e-b02f-f953c191062a
2026-05-20 15:37:54,014 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e636527-8415-48d3-a46e-70acc7e405dd
2026-05-20 15:37:54,027 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e636527-8415-48d3-a46e-70acc7e405dd
2026-05-20 15:37:54,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e923757-d2ef-46ba-abaa-a39628349c63
2026-05-20 15:37:54,044 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e923757-d2ef-46ba-abaa-a39628349c63
2026-05-20 15:37:54,052 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9cce008-769a-4fb8-91f4-9c924e42ba46
2026-05-20 15:37:54,059 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 15:37:54,059 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e636527-8415-48d3-a46e-70acc7e405dd
2026-05-20 15:37:54,069 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e923757-d2ef-46ba-abaa-a39628349c63
2026-05-20 15:37:54,085 - INFO - Verified VN network id 12 for VN 7e636527-8415-48d3-a46e-70acc7e405dd
2026-05-20 15:37:54,085 - INFO - Verifications in API Server for VN ctest-vn-04523880 passed
2026-05-20 15:37:54,085 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e636527-8415-48d3-a46e-70acc7e405dd
2026-05-20 15:37:54,096 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e923757-d2ef-46ba-abaa-a39628349c63
2026-05-20 15:37:54,105 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e923757-d2ef-46ba-abaa-a39628349c63
2026-05-20 15:37:54,113 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9cce008-769a-4fb8-91f4-9c924e42ba46
2026-05-20 15:37:54,126 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-04523880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40975183', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9107234091867392211', 'uuid-lslong': '11848531557048649181'}, 'enable': 'true', 'created': '2026-05-20T15:37:51', 'last-modified': '2026-05-20T15:37:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984745'}
2026-05-20 15:37:54,133 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 15:37:54,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04523880 passed
2026-05-20 15:37:54,133 - DEBUG - ====Verifying policy data for ctest-vn-04523880 in API_Server ======
2026-05-20 15:37:54,133 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 15:37:54,139 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea
2026-05-20 15:37:54,151 - DEBUG - Requesting: http://10.0.0.50:8082/project/7e59996f-2374-4e0e-b02f-f953c191062a
2026-05-20 15:37:54,228 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e636527-8415-48d3-a46e-70acc7e405dd
2026-05-20 15:37:54,237 - DEBUG - ==>Verifying data for policy with id: ea5ebd32-cd15-4892-afa9-1e984e71e75f, fqn: ['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-policy-allow-all-87814469']
2026-05-20 15:37:54,237 - INFO - VN ctest-vn-04523880 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 15:37:54,237 - DEBUG - Verifying the vn in opserver
2026-05-20 15:37:54,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-04523880 virtual network link through opserver 10.0.0.50
2026-05-20 15:37:54,238 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-20 15:37:54,532 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-20 15:37:54,595 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-04523880', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-04523880?flat'}
2026-05-20 15:37:54,595 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-04523880 is found in opserver
2026-05-20 15:37:54,607 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 15:37:54,611 - DEBUG - VRF ids for VN ctest-vn-04523880: {}
2026-05-20 15:37:54,611 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 15:37:54,618 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea
2026-05-20 15:37:54,630 - DEBUG - Requesting: http://10.0.0.50:8082/project/7e59996f-2374-4e0e-b02f-f953c191062a
2026-05-20 15:37:54,701 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82bd5a07-9508-4fa4-8206-5e23d2e512ed
2026-05-20 15:37:54,712 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82bd5a07-9508-4fa4-8206-5e23d2e512ed
2026-05-20 15:37:54,721 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eeb94d9f-981c-485d-868f-17a95de27282
2026-05-20 15:37:54,729 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eeb94d9f-981c-485d-868f-17a95de27282
2026-05-20 15:37:54,736 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f713802b-65a3-49d5-a134-07ca96495cf4
2026-05-20 15:37:54,742 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 15:37:54,742 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82bd5a07-9508-4fa4-8206-5e23d2e512ed
2026-05-20 15:37:54,751 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eeb94d9f-981c-485d-868f-17a95de27282
2026-05-20 15:37:54,770 - INFO - Verified VN network id 13 for VN 82bd5a07-9508-4fa4-8206-5e23d2e512ed
2026-05-20 15:37:54,770 - INFO - Verifications in API Server for VN ctest-vn-27475797 passed
2026-05-20 15:37:54,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82bd5a07-9508-4fa4-8206-5e23d2e512ed
2026-05-20 15:37:54,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eeb94d9f-981c-485d-868f-17a95de27282
2026-05-20 15:37:54,787 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eeb94d9f-981c-485d-868f-17a95de27282
2026-05-20 15:37:54,794 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f713802b-65a3-49d5-a134-07ca96495cf4
2026-05-20 15:37:54,807 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-27475797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40975183', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9420784984140566436', 'uuid-lslong': '9369279582745989869'}, 'enable': 'true', 'created': '2026-05-20T15:37:52', 'last-modified': '2026-05-20T15:37:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.426631'}
2026-05-20 15:37:54,813 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 15:37:54,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27475797 passed
2026-05-20 15:37:54,813 - DEBUG - ====Verifying policy data for ctest-vn-27475797 in API_Server ======
2026-05-20 15:37:54,813 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-20 15:37:54,819 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7fb72ccf-a47a-4c54-94dc-99a14d6243ea
2026-05-20 15:37:54,830 - DEBUG - Requesting: http://10.0.0.50:8082/project/7e59996f-2374-4e0e-b02f-f953c191062a
2026-05-20 15:37:54,901 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82bd5a07-9508-4fa4-8206-5e23d2e512ed
2026-05-20 15:37:54,911 - DEBUG - ==>Verifying data for policy with id: ea5ebd32-cd15-4892-afa9-1e984e71e75f, fqn: ['default-domain', 'ctest-TestBasicPolicy-40975183', 'ctest-policy-allow-all-87814469']
2026-05-20 15:37:54,911 - INFO - VN ctest-vn-27475797 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 15:37:54,911 - DEBUG - Verifying the vn in opserver
2026-05-20 15:37:54,911 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-27475797 virtual network link through opserver 10.0.0.50
2026-05-20 15:37:54,911 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-20 15:37:54,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-27475797', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-27475797?flat'}
2026-05-20 15:37:54,921 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40975183:ctest-vn-27475797 is found in opserver
2026-05-20 15:37:54,930 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 15:37:54,935 - DEBUG - VRF ids for VN ctest-vn-27475797: {}
2026-05-20 15:37:54,994 - DEBUG - Services list from nova: [