2026-04-17 09:01:28,065 - INFO - Domain Default found not creating
2026-04-17 09:01:28,217 - INFO - Project ctest-TestBasicPolicy-97216780 not found, creating it
2026-04-17 09:01:28,660 - INFO - Created Project:ctest-TestBasicPolicy-97216780, ID : b885eb82-68bf-4d68-afbe-306280650012
2026-04-17 09:01:30,098 - INFO - ================================================================================
2026-04-17 09:01:30,098 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-17 09:01:30,098 - 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-04-17 09:01:30,349 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-17 09:01:30,349 - INFO - Initial checks done. Running the testcase now
2026-04-17 09:01:30,350 - INFO -
2026-04-17 09:01:30,895 - DEBUG - Response for create_network : {'network': {'id': '4f7d34b8-698f-4d8b-8a83-670bff3bb0a1', 'name': 'ctest-vn-89402547', 'tenant_id': 'b885eb8268bf4d68afbe306280650012', 'project_id': 'b885eb8268bf4d68afbe306280650012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-vn-89402547'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:01:31,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '96f05f00-9b65-4e73-8c98-148007cd9f3b', 'name': '', 'tenant_id': 'b885eb8268bf4d68afbe306280650012', 'network_id': '4f7d34b8-698f-4d8b-8a83-670bff3bb0a1', 'ip_version': 4, 'cidr': '166.252.178.0/26', 'allocation_pools': [{'start': '166.252.178.2', 'end': '166.252.178.62'}], 'gateway_ip': '166.252.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.252.178.2', 'tags': [], 'project_id': 'b885eb8268bf4d68afbe306280650012'}}
2026-04-17 09:01:31,075 - INFO - Created VN ctest-vn-89402547
2026-04-17 09:01:31,125 - DEBUG - VN ctest-vn-89402547 UUID is 4f7d34b8-698f-4d8b-8a83-670bff3bb0a1
2026-04-17 09:01:31,399 - DEBUG - Response for create_network : {'network': {'id': '3948a58b-8c0a-4741-a9b3-96afe3020c69', 'name': 'ctest-vn-43405698', 'tenant_id': 'b885eb8268bf4d68afbe306280650012', 'project_id': 'b885eb8268bf4d68afbe306280650012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-vn-43405698'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:01:31,553 - DEBUG - Response for create_subnet : {'subnet': {'id': '441fa2ad-198b-46f4-b00d-16140e7d0e37', 'name': '', 'tenant_id': 'b885eb8268bf4d68afbe306280650012', 'network_id': '3948a58b-8c0a-4741-a9b3-96afe3020c69', 'ip_version': 4, 'cidr': '162.246.240.64/26', 'allocation_pools': [{'start': '162.246.240.66', 'end': '162.246.240.126'}], 'gateway_ip': '162.246.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.246.240.66', 'tags': [], 'project_id': 'b885eb8268bf4d68afbe306280650012'}}
2026-04-17 09:01:31,570 - INFO - Created VN ctest-vn-43405698
2026-04-17 09:01:31,624 - DEBUG - VN ctest-vn-43405698 UUID is 3948a58b-8c0a-4741-a9b3-96afe3020c69
2026-04-17 09:01:31,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-89402547, 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-97216780:ctest-vn-43405698, 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-04-17 09:01:32,226 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f7d34b8-698f-4d8b-8a83-670bff3bb0a1', 'name': 'ctest-vn-89402547', 'tenant_id': 'b885eb8268bf4d68afbe306280650012', 'project_id': 'b885eb8268bf4d68afbe306280650012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96f05f00-9b65-4e73-8c98-148007cd9f3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-vn-89402547'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-policy-allow-all-25454901']], 'subnet_ipam': [{'subnet_cidr': '166.252.178.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:01:32,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3948a58b-8c0a-4741-a9b3-96afe3020c69', 'name': 'ctest-vn-43405698', 'tenant_id': 'b885eb8268bf4d68afbe306280650012', 'project_id': 'b885eb8268bf4d68afbe306280650012', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['441fa2ad-198b-46f4-b00d-16140e7d0e37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-vn-43405698'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-policy-allow-all-25454901']], 'subnet_ipam': [{'subnet_cidr': '162.246.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:01:32,565 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 09:01:32,861 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 09:01:32,890 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed
2026-04-17 09:01:32,902 - DEBUG - Requesting: http://10.0.0.38:8082/project/b885eb82-68bf-4d68-afbe-306280650012
2026-04-17 09:01:32,971 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4f7d34b8-698f-4d8b-8a83-670bff3bb0a1
2026-04-17 09:01:32,980 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4f7d34b8-698f-4d8b-8a83-670bff3bb0a1
2026-04-17 09:01:32,988 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33caaee7-032c-4f0e-9dd5-423590f2e4a5
2026-04-17 09:01:32,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33caaee7-032c-4f0e-9dd5-423590f2e4a5
2026-04-17 09:01:32,999 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43c6a116-ee4c-4158-8e7a-c53cc17554b4
2026-04-17 09:01:33,005 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 09:01:33,005 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4f7d34b8-698f-4d8b-8a83-670bff3bb0a1
2026-04-17 09:01:33,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33caaee7-032c-4f0e-9dd5-423590f2e4a5
2026-04-17 09:01:33,022 - INFO - Verified VN network id 9 for VN 4f7d34b8-698f-4d8b-8a83-670bff3bb0a1
2026-04-17 09:01:33,025 - INFO - Verifications in API Server for VN ctest-vn-89402547 passed
2026-04-17 09:01:33,025 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4f7d34b8-698f-4d8b-8a83-670bff3bb0a1
2026-04-17 09:01:33,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33caaee7-032c-4f0e-9dd5-423590f2e4a5
2026-04-17 09:01:33,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33caaee7-032c-4f0e-9dd5-423590f2e4a5
2026-04-17 09:01:33,044 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43c6a116-ee4c-4158-8e7a-c53cc17554b4
2026-04-17 09:01:33,053 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-89402547', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97216780', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5727792267734764939', 'uuid-lslong': '9980934500407554209'}, 'enable': 'true', 'created': '2026-04-17T09:01:30', 'last-modified': '2026-04-17T09:01:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860227'}
2026-04-17 09:01:33,058 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 09:01:33,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89402547 passed
2026-04-17 09:01:33,058 - DEBUG - ====Verifying policy data for ctest-vn-89402547 in API_Server ======
2026-04-17 09:01:33,058 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 09:01:33,063 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed
2026-04-17 09:01:33,071 - DEBUG - Requesting: http://10.0.0.38:8082/project/b885eb82-68bf-4d68-afbe-306280650012
2026-04-17 09:01:33,142 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4f7d34b8-698f-4d8b-8a83-670bff3bb0a1
2026-04-17 09:01:33,152 - DEBUG - ==>Verifying data for policy with id: aa867c15-25b2-45c5-ac28-0493136731f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-policy-allow-all-25454901']
2026-04-17 09:01:33,152 - INFO - VN ctest-vn-89402547 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 09:01:33,152 - DEBUG - Verifying the vn in opserver
2026-04-17 09:01:33,153 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-89402547 virtual network link through opserver 10.0.0.38
2026-04-17 09:01:33,153 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 09:01:33,442 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 09:01:33,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-89402547', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-89402547?flat'}
2026-04-17 09:01:33,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-89402547 is found in opserver
2026-04-17 09:01:33,515 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 09:01:33,520 - DEBUG - VRF ids for VN ctest-vn-89402547: {}
2026-04-17 09:01:33,520 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 09:01:33,526 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed
2026-04-17 09:01:33,536 - DEBUG - Requesting: http://10.0.0.38:8082/project/b885eb82-68bf-4d68-afbe-306280650012
2026-04-17 09:01:33,608 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3948a58b-8c0a-4741-a9b3-96afe3020c69
2026-04-17 09:01:33,620 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3948a58b-8c0a-4741-a9b3-96afe3020c69
2026-04-17 09:01:33,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c334d93d-365c-4298-8899-5ed5a1515a52
2026-04-17 09:01:33,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c334d93d-365c-4298-8899-5ed5a1515a52
2026-04-17 09:01:33,646 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/58d854fd-c7f9-45ba-8ad6-fa45d939e670
2026-04-17 09:01:33,652 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 09:01:33,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3948a58b-8c0a-4741-a9b3-96afe3020c69
2026-04-17 09:01:33,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c334d93d-365c-4298-8899-5ed5a1515a52
2026-04-17 09:01:33,677 - INFO - Verified VN network id 10 for VN 3948a58b-8c0a-4741-a9b3-96afe3020c69
2026-04-17 09:01:33,677 - INFO - Verifications in API Server for VN ctest-vn-43405698 passed
2026-04-17 09:01:33,677 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3948a58b-8c0a-4741-a9b3-96afe3020c69
2026-04-17 09:01:33,686 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c334d93d-365c-4298-8899-5ed5a1515a52
2026-04-17 09:01:33,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c334d93d-365c-4298-8899-5ed5a1515a52
2026-04-17 09:01:33,701 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/58d854fd-c7f9-45ba-8ad6-fa45d939e670
2026-04-17 09:01:33,716 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-43405698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97216780', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4127731077253580609', 'uuid-lslong': '12228283095413034089'}, 'enable': 'true', 'created': '2026-04-17T09:01:31', 'last-modified': '2026-04-17T09:01:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.287017'}
2026-04-17 09:01:33,723 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 09:01:33,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43405698 passed
2026-04-17 09:01:33,723 - DEBUG - ====Verifying policy data for ctest-vn-43405698 in API_Server ======
2026-04-17 09:01:33,723 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 09:01:33,729 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed
2026-04-17 09:01:33,739 - DEBUG - Requesting: http://10.0.0.38:8082/project/b885eb82-68bf-4d68-afbe-306280650012
2026-04-17 09:01:33,811 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3948a58b-8c0a-4741-a9b3-96afe3020c69
2026-04-17 09:01:33,822 - DEBUG - ==>Verifying data for policy with id: aa867c15-25b2-45c5-ac28-0493136731f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-97216780', 'ctest-policy-allow-all-25454901']
2026-04-17 09:01:33,822 - INFO - VN ctest-vn-43405698 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 09:01:33,822 - DEBUG - Verifying the vn in opserver
2026-04-17 09:01:33,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-43405698 virtual network link through opserver 10.0.0.38
2026-04-17 09:01:33,823 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 09:01:33,834 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-43405698', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-43405698?flat'}
2026-04-17 09:01:33,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97216780:ctest-vn-43405698 is found in opserver
2026-04-17 09:01:33,846 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 09:01:33,852 - DEBUG - VRF ids for VN ctest-vn-43405698: {}
2026-04-17 09:01:33,926 - DEBUG - Services list from nova: [