2026-10-01 15:24:39,022 - INFO - Domain Default found not creating
2026-10-01 15:24:39,226 - INFO - Project ctest-TestBasicPolicy-23874919 not found, creating it
2026-10-01 15:24:39,745 - INFO - Created Project:ctest-TestBasicPolicy-23874919, ID : 405ae51a-38d1-4138-823a-ee4e12f30efc
2026-10-01 15:24:41,610 - INFO - ================================================================================
2026-10-01 15:24:41,610 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-01 15:24:41,611 - 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-10-01 15:24:41,885 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-10-01 15:24:41,885 - INFO - Initial checks done. Running the testcase now
2026-10-01 15:24:41,885 - INFO -
2026-10-01 15:24:42,594 - DEBUG - Response for create_network : {'network': {'id': 'd73e764c-c933-4a6a-afaf-3973eb237dbd', 'name': 'ctest-vn-74409893', 'tenant_id': '405ae51a38d14138823aee4e12f30efc', 'project_id': '405ae51a38d14138823aee4e12f30efc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-vn-74409893'], 'port_security_enabled': True, 'description': ''}}
2026-10-01 15:24:42,843 - DEBUG - Response for create_subnet : {'subnet': {'id': '13653af9-025d-46bf-b182-58d6088cd66e', 'name': '', 'tenant_id': '405ae51a38d14138823aee4e12f30efc', 'network_id': 'd73e764c-c933-4a6a-afaf-3973eb237dbd', 'ip_version': 4, 'cidr': '54.245.87.128/26', 'allocation_pools': [{'start': '54.245.87.130', 'end': '54.245.87.190'}], 'gateway_ip': '54.245.87.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.245.87.130', 'tags': [], 'project_id': '405ae51a38d14138823aee4e12f30efc'}}
2026-10-01 15:24:42,860 - INFO - Created VN ctest-vn-74409893
2026-10-01 15:24:42,916 - DEBUG - VN ctest-vn-74409893 UUID is d73e764c-c933-4a6a-afaf-3973eb237dbd
2026-10-01 15:24:43,287 - DEBUG - Response for create_network : {'network': {'id': '4dec79e4-8195-4c4d-aed8-532fa728b29e', 'name': 'ctest-vn-04317892', 'tenant_id': '405ae51a38d14138823aee4e12f30efc', 'project_id': '405ae51a38d14138823aee4e12f30efc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-vn-04317892'], 'port_security_enabled': True, 'description': ''}}
2026-10-01 15:24:43,510 - DEBUG - Response for create_subnet : {'subnet': {'id': '88e9d40b-871a-44c2-8d9a-d0d65db425bd', 'name': '', 'tenant_id': '405ae51a38d14138823aee4e12f30efc', 'network_id': '4dec79e4-8195-4c4d-aed8-532fa728b29e', 'ip_version': 4, 'cidr': '166.239.61.192/26', 'allocation_pools': [{'start': '166.239.61.194', 'end': '166.239.61.254'}], 'gateway_ip': '166.239.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.239.61.194', 'tags': [], 'project_id': '405ae51a38d14138823aee4e12f30efc'}}
2026-10-01 15:24:43,529 - INFO - Created VN ctest-vn-04317892
2026-10-01 15:24:43,584 - DEBUG - VN ctest-vn-04317892 UUID is 4dec79e4-8195-4c4d-aed8-532fa728b29e
2026-10-01 15:24:43,706 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-74409893, 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-23874919:ctest-vn-04317892, 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-10-01 15:24:44,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd73e764c-c933-4a6a-afaf-3973eb237dbd', 'name': 'ctest-vn-74409893', 'tenant_id': '405ae51a38d14138823aee4e12f30efc', 'project_id': '405ae51a38d14138823aee4e12f30efc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['13653af9-025d-46bf-b182-58d6088cd66e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-vn-74409893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-policy-allow-all-51699563']], 'subnet_ipam': [{'subnet_cidr': '54.245.87.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-01 15:24:44,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4dec79e4-8195-4c4d-aed8-532fa728b29e', 'name': 'ctest-vn-04317892', 'tenant_id': '405ae51a38d14138823aee4e12f30efc', 'project_id': '405ae51a38d14138823aee4e12f30efc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['88e9d40b-871a-44c2-8d9a-d0d65db425bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-vn-04317892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-policy-allow-all-51699563']], 'subnet_ipam': [{'subnet_cidr': '166.239.61.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-01 15:24:44,480 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-01 15:24:44,864 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-01 15:24:44,898 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd25e915-831b-460e-89e9-be5dae3eb79a
2026-10-01 15:24:44,913 - DEBUG - Requesting: http://10.0.0.50:8082/project/405ae51a-38d1-4138-823a-ee4e12f30efc
2026-10-01 15:24:45,000 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d73e764c-c933-4a6a-afaf-3973eb237dbd
2026-10-01 15:24:45,016 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d73e764c-c933-4a6a-afaf-3973eb237dbd
2026-10-01 15:24:45,028 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96c3dcac-47af-4da3-953c-bfc337c927c4
2026-10-01 15:24:45,039 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96c3dcac-47af-4da3-953c-bfc337c927c4
2026-10-01 15:24:45,049 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d38595f2-6df9-4714-bcab-eb8b1b3324c7
2026-10-01 15:24:45,057 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-01 15:24:45,057 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d73e764c-c933-4a6a-afaf-3973eb237dbd
2026-10-01 15:24:45,069 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96c3dcac-47af-4da3-953c-bfc337c927c4
2026-10-01 15:24:45,089 - INFO - Verified VN network id 12 for VN d73e764c-c933-4a6a-afaf-3973eb237dbd
2026-10-01 15:24:45,089 - INFO - Verifications in API Server for VN ctest-vn-74409893 passed
2026-10-01 15:24:45,089 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d73e764c-c933-4a6a-afaf-3973eb237dbd
2026-10-01 15:24:45,102 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96c3dcac-47af-4da3-953c-bfc337c927c4
2026-10-01 15:24:45,111 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96c3dcac-47af-4da3-953c-bfc337c927c4
2026-10-01 15:24:45,121 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d38595f2-6df9-4714-bcab-eb8b1b3324c7
2026-10-01 15:24:45,137 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-74409893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23874919', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15509964238875740778', 'uuid-lslong': '12659400247590747581'}, 'enable': 'true', 'created': '2026-10-01T15:24:42', 'last-modified': '2026-10-01T15:24:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.121483'}
2026-10-01 15:24:45,144 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-01 15:24:45,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74409893 passed
2026-10-01 15:24:45,145 - DEBUG - ====Verifying policy data for ctest-vn-74409893 in API_Server ======
2026-10-01 15:24:45,145 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-01 15:24:45,151 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd25e915-831b-460e-89e9-be5dae3eb79a
2026-10-01 15:24:45,163 - DEBUG - Requesting: http://10.0.0.50:8082/project/405ae51a-38d1-4138-823a-ee4e12f30efc
2026-10-01 15:24:45,243 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d73e764c-c933-4a6a-afaf-3973eb237dbd
2026-10-01 15:24:45,255 - DEBUG - ==>Verifying data for policy with id: b667e717-2f77-4641-b628-1572126bbe7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-policy-allow-all-51699563']
2026-10-01 15:24:45,256 - INFO - VN ctest-vn-74409893 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-01 15:24:45,256 - DEBUG - Verifying the vn in opserver
2026-10-01 15:24:45,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-74409893 virtual network link through opserver 10.0.0.50
2026-10-01 15:24:45,256 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-10-01 15:24:45,637 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-10-01 15:24:45,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-74409893', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-74409893?flat'}
2026-10-01 15:24:45,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-74409893 is found in opserver
2026-10-01 15:24:45,717 - DEBUG - Do not have enough data to verify VN in agent
2026-10-01 15:24:45,722 - DEBUG - VRF ids for VN ctest-vn-74409893: {}
2026-10-01 15:24:45,722 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-01 15:24:45,729 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd25e915-831b-460e-89e9-be5dae3eb79a
2026-10-01 15:24:45,742 - DEBUG - Requesting: http://10.0.0.50:8082/project/405ae51a-38d1-4138-823a-ee4e12f30efc
2026-10-01 15:24:45,826 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dec79e4-8195-4c4d-aed8-532fa728b29e
2026-10-01 15:24:45,842 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dec79e4-8195-4c4d-aed8-532fa728b29e
2026-10-01 15:24:45,854 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1ffe8002-b7d2-4ed0-beb7-69b8b7ea12f9
2026-10-01 15:24:45,862 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1ffe8002-b7d2-4ed0-beb7-69b8b7ea12f9
2026-10-01 15:24:45,871 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fa4a0bda-b9ef-4e1a-b8a9-36ed6dce36ff
2026-10-01 15:24:45,879 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-01 15:24:45,879 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dec79e4-8195-4c4d-aed8-532fa728b29e
2026-10-01 15:24:45,890 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1ffe8002-b7d2-4ed0-beb7-69b8b7ea12f9
2026-10-01 15:24:45,910 - INFO - Verified VN network id 13 for VN 4dec79e4-8195-4c4d-aed8-532fa728b29e
2026-10-01 15:24:45,910 - INFO - Verifications in API Server for VN ctest-vn-04317892 passed
2026-10-01 15:24:45,910 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dec79e4-8195-4c4d-aed8-532fa728b29e
2026-10-01 15:24:45,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1ffe8002-b7d2-4ed0-beb7-69b8b7ea12f9
2026-10-01 15:24:45,930 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1ffe8002-b7d2-4ed0-beb7-69b8b7ea12f9
2026-10-01 15:24:45,938 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fa4a0bda-b9ef-4e1a-b8a9-36ed6dce36ff
2026-10-01 15:24:45,954 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-04317892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23874919', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5614996857757715533', 'uuid-lslong': '12598911421701993118'}, 'enable': 'true', 'created': '2026-10-01T15:24:43', 'last-modified': '2026-10-01T15:24:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.673476'}
2026-10-01 15:24:45,962 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-01 15:24:45,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04317892 passed
2026-10-01 15:24:45,962 - DEBUG - ====Verifying policy data for ctest-vn-04317892 in API_Server ======
2026-10-01 15:24:45,962 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-01 15:24:45,969 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd25e915-831b-460e-89e9-be5dae3eb79a
2026-10-01 15:24:45,986 - DEBUG - Requesting: http://10.0.0.50:8082/project/405ae51a-38d1-4138-823a-ee4e12f30efc
2026-10-01 15:24:46,075 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dec79e4-8195-4c4d-aed8-532fa728b29e
2026-10-01 15:24:46,087 - DEBUG - ==>Verifying data for policy with id: b667e717-2f77-4641-b628-1572126bbe7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-23874919', 'ctest-policy-allow-all-51699563']
2026-10-01 15:24:46,087 - INFO - VN ctest-vn-04317892 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-01 15:24:46,087 - DEBUG - Verifying the vn in opserver
2026-10-01 15:24:46,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-04317892 virtual network link through opserver 10.0.0.50
2026-10-01 15:24:46,088 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-10-01 15:24:46,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-04317892', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-04317892?flat'}
2026-10-01 15:24:46,100 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23874919:ctest-vn-04317892 is found in opserver
2026-10-01 15:24:46,111 - DEBUG - Do not have enough data to verify VN in agent
2026-10-01 15:24:46,119 - DEBUG - VRF ids for VN ctest-vn-04317892: {}
2026-10-01 15:24:46,192 - DEBUG - Services list from nova: [