2026-09-03 11:42:23,076 - INFO - Domain Default found not creating
2026-09-03 11:42:23,271 - INFO - Project ctest-TestBasicPolicy-17417376 not found, creating it
2026-09-03 11:42:23,809 - INFO - Created Project:ctest-TestBasicPolicy-17417376, ID : d9c24713-ec6c-445f-80a5-c745effb7cbc
2026-09-03 11:42:25,579 - INFO - ================================================================================
2026-09-03 11:42:25,579 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-03 11:42:25,579 - 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-09-03 11:42:25,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-09-03 11:42:25,855 - INFO - Initial checks done. Running the testcase now
2026-09-03 11:42:25,855 - INFO -
2026-09-03 11:42:26,530 - DEBUG - Response for create_network : {'network': {'id': 'eaaa48c3-93e1-4acb-a647-c7eb62ae6e82', 'name': 'ctest-vn-58670963', 'tenant_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'project_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-vn-58670963'], 'port_security_enabled': True, 'description': ''}}
2026-09-03 11:42:26,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '6475f355-47f9-457c-beb0-195a7440ca1d', 'name': '', 'tenant_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'network_id': 'eaaa48c3-93e1-4acb-a647-c7eb62ae6e82', 'ip_version': 4, 'cidr': '171.188.154.0/26', 'allocation_pools': [{'start': '171.188.154.2', 'end': '171.188.154.62'}], 'gateway_ip': '171.188.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.188.154.2', 'tags': [], 'project_id': 'd9c24713ec6c445f80a5c745effb7cbc'}}
2026-09-03 11:42:26,788 - INFO - Created VN ctest-vn-58670963
2026-09-03 11:42:26,842 - DEBUG - VN ctest-vn-58670963 UUID is eaaa48c3-93e1-4acb-a647-c7eb62ae6e82
2026-09-03 11:42:27,169 - DEBUG - Response for create_network : {'network': {'id': 'b1948288-37e3-46d4-b5c3-e6305a2ddff3', 'name': 'ctest-vn-46738777', 'tenant_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'project_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-vn-46738777'], 'port_security_enabled': True, 'description': ''}}
2026-09-03 11:42:27,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db3308ac-87fa-4d44-8a22-6a16e4ef6989', 'name': '', 'tenant_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'network_id': 'b1948288-37e3-46d4-b5c3-e6305a2ddff3', 'ip_version': 4, 'cidr': '160.180.201.128/26', 'allocation_pools': [{'start': '160.180.201.130', 'end': '160.180.201.190'}], 'gateway_ip': '160.180.201.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.180.201.130', 'tags': [], 'project_id': 'd9c24713ec6c445f80a5c745effb7cbc'}}
2026-09-03 11:42:27,566 - INFO - Created VN ctest-vn-46738777
2026-09-03 11:42:27,626 - DEBUG - VN ctest-vn-46738777 UUID is b1948288-37e3-46d4-b5c3-e6305a2ddff3
2026-09-03 11:42:27,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-58670963, 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-17417376:ctest-vn-46738777, 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-09-03 11:42:28,191 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eaaa48c3-93e1-4acb-a647-c7eb62ae6e82', 'name': 'ctest-vn-58670963', 'tenant_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'project_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6475f355-47f9-457c-beb0-195a7440ca1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-vn-58670963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-policy-allow-all-86693622']], 'subnet_ipam': [{'subnet_cidr': '171.188.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-03 11:42:28,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1948288-37e3-46d4-b5c3-e6305a2ddff3', 'name': 'ctest-vn-46738777', 'tenant_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'project_id': 'd9c24713ec6c445f80a5c745effb7cbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['db3308ac-87fa-4d44-8a22-6a16e4ef6989'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-vn-46738777'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-policy-allow-all-86693622']], 'subnet_ipam': [{'subnet_cidr': '160.180.201.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-03 11:42:28,626 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-03 11:42:28,995 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-03 11:42:29,032 - DEBUG - Requesting: http://10.0.0.50:8082/domain/84463790-1677-41d1-84e4-5eec45b1dadb
2026-09-03 11:42:29,046 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c24713-ec6c-445f-80a5-c745effb7cbc
2026-09-03 11:42:29,133 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eaaa48c3-93e1-4acb-a647-c7eb62ae6e82
2026-09-03 11:42:29,147 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eaaa48c3-93e1-4acb-a647-c7eb62ae6e82
2026-09-03 11:42:29,158 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/827999a5-ab9b-4c05-be41-b69e8575aa3b
2026-09-03 11:42:29,166 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/827999a5-ab9b-4c05-be41-b69e8575aa3b
2026-09-03 11:42:29,174 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1a73ae8f-0a9d-4726-a5e2-1c12c56d8cc6
2026-09-03 11:42:29,181 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-03 11:42:29,181 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eaaa48c3-93e1-4acb-a647-c7eb62ae6e82
2026-09-03 11:42:29,190 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/827999a5-ab9b-4c05-be41-b69e8575aa3b
2026-09-03 11:42:29,205 - INFO - Verified VN network id 12 for VN eaaa48c3-93e1-4acb-a647-c7eb62ae6e82
2026-09-03 11:42:29,206 - INFO - Verifications in API Server for VN ctest-vn-58670963 passed
2026-09-03 11:42:29,206 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eaaa48c3-93e1-4acb-a647-c7eb62ae6e82
2026-09-03 11:42:29,217 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/827999a5-ab9b-4c05-be41-b69e8575aa3b
2026-09-03 11:42:29,224 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/827999a5-ab9b-4c05-be41-b69e8575aa3b
2026-09-03 11:42:29,233 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1a73ae8f-0a9d-4726-a5e2-1c12c56d8cc6
2026-09-03 11:42:29,250 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-58670963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17417376', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16909407755752786635', 'uuid-lslong': '11981765147429334658'}, 'enable': 'true', 'created': '2026-09-03T11:42:26', 'last-modified': '2026-09-03T11:42:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.100908'}
2026-09-03 11:42:29,258 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-03 11:42:29,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58670963 passed
2026-09-03 11:42:29,258 - DEBUG - ====Verifying policy data for ctest-vn-58670963 in API_Server ======
2026-09-03 11:42:29,258 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-03 11:42:29,264 - DEBUG - Requesting: http://10.0.0.50:8082/domain/84463790-1677-41d1-84e4-5eec45b1dadb
2026-09-03 11:42:29,277 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c24713-ec6c-445f-80a5-c745effb7cbc
2026-09-03 11:42:29,361 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eaaa48c3-93e1-4acb-a647-c7eb62ae6e82
2026-09-03 11:42:29,371 - DEBUG - ==>Verifying data for policy with id: a82bd9a1-111c-4717-9567-b4f8984cec3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-policy-allow-all-86693622']
2026-09-03 11:42:29,371 - INFO - VN ctest-vn-58670963 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-03 11:42:29,371 - DEBUG - Verifying the vn in opserver
2026-09-03 11:42:29,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-58670963 virtual network link through opserver 10.0.0.50
2026-09-03 11:42:29,371 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-03 11:42:29,741 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-03 11:42:29,813 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-58670963', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-58670963?flat'}
2026-09-03 11:42:29,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-58670963 is found in opserver
2026-09-03 11:42:29,828 - DEBUG - Do not have enough data to verify VN in agent
2026-09-03 11:42:29,834 - DEBUG - VRF ids for VN ctest-vn-58670963: {}
2026-09-03 11:42:29,835 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-03 11:42:29,842 - DEBUG - Requesting: http://10.0.0.50:8082/domain/84463790-1677-41d1-84e4-5eec45b1dadb
2026-09-03 11:42:29,857 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c24713-ec6c-445f-80a5-c745effb7cbc
2026-09-03 11:42:29,949 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b1948288-37e3-46d4-b5c3-e6305a2ddff3
2026-09-03 11:42:29,964 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b1948288-37e3-46d4-b5c3-e6305a2ddff3
2026-09-03 11:42:29,977 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33ff5cf5-134b-485f-a38d-8f913b636ff0
2026-09-03 11:42:29,987 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33ff5cf5-134b-485f-a38d-8f913b636ff0
2026-09-03 11:42:29,996 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/deb2fdca-4065-4d1a-8787-4a1962dd94d5
2026-09-03 11:42:30,005 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-03 11:42:30,005 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b1948288-37e3-46d4-b5c3-e6305a2ddff3
2026-09-03 11:42:30,015 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33ff5cf5-134b-485f-a38d-8f913b636ff0
2026-09-03 11:42:30,032 - INFO - Verified VN network id 13 for VN b1948288-37e3-46d4-b5c3-e6305a2ddff3
2026-09-03 11:42:30,032 - INFO - Verifications in API Server for VN ctest-vn-46738777 passed
2026-09-03 11:42:30,032 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b1948288-37e3-46d4-b5c3-e6305a2ddff3
2026-09-03 11:42:30,045 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33ff5cf5-134b-485f-a38d-8f913b636ff0
2026-09-03 11:42:30,054 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33ff5cf5-134b-485f-a38d-8f913b636ff0
2026-09-03 11:42:30,062 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/deb2fdca-4065-4d1a-8787-4a1962dd94d5
2026-09-03 11:42:30,077 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-46738777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17417376', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12795995962831226580', 'uuid-lslong': '13097565236669308915'}, 'enable': 'true', 'created': '2026-09-03T11:42:27', 'last-modified': '2026-09-03T11:42:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.664177'}
2026-09-03 11:42:30,084 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-03 11:42:30,085 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46738777 passed
2026-09-03 11:42:30,085 - DEBUG - ====Verifying policy data for ctest-vn-46738777 in API_Server ======
2026-09-03 11:42:30,085 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-03 11:42:30,092 - DEBUG - Requesting: http://10.0.0.50:8082/domain/84463790-1677-41d1-84e4-5eec45b1dadb
2026-09-03 11:42:30,106 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c24713-ec6c-445f-80a5-c745effb7cbc
2026-09-03 11:42:30,200 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b1948288-37e3-46d4-b5c3-e6305a2ddff3
2026-09-03 11:42:30,212 - DEBUG - ==>Verifying data for policy with id: a82bd9a1-111c-4717-9567-b4f8984cec3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-17417376', 'ctest-policy-allow-all-86693622']
2026-09-03 11:42:30,212 - INFO - VN ctest-vn-46738777 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-03 11:42:30,212 - DEBUG - Verifying the vn in opserver
2026-09-03 11:42:30,212 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-46738777 virtual network link through opserver 10.0.0.50
2026-09-03 11:42:30,212 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-03 11:42:30,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-46738777', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-46738777?flat'}
2026-09-03 11:42:30,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17417376:ctest-vn-46738777 is found in opserver
2026-09-03 11:42:30,237 - DEBUG - Do not have enough data to verify VN in agent
2026-09-03 11:42:30,243 - DEBUG - VRF ids for VN ctest-vn-46738777: {}
2026-09-03 11:42:30,317 - DEBUG - Services list from nova: [