2026-05-04 02:22:54,034 - INFO - Domain Default found not creating
2026-05-04 02:22:54,219 - INFO - Project ctest-TestBasicPolicy-55574965 not found, creating it
2026-05-04 02:22:54,709 - INFO - Created Project:ctest-TestBasicPolicy-55574965, ID : bc6d6a05-3bdf-435b-9a0e-1c0a9b149cd2
2026-05-04 02:22:56,226 - INFO - ================================================================================
2026-05-04 02:22:56,226 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-04 02:22:56,226 - 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-04 02:22:56,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0'}} with
2026-05-04 02:22:56,495 - INFO - Initial checks done. Running the testcase now
2026-05-04 02:22:56,495 - INFO -
2026-05-04 02:22:57,102 - DEBUG - Response for create_network : {'network': {'id': '8069057f-3f6c-4122-b5b5-a6f9f296b10f', 'name': 'ctest-vn-39550233', 'tenant_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'project_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-vn-39550233'], 'port_security_enabled': True, 'description': ''}}
2026-05-04 02:22:57,304 - DEBUG - Response for create_subnet : {'subnet': {'id': '7080c5e5-e163-46a0-838a-baa2d36b56d2', 'name': '', 'tenant_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'network_id': '8069057f-3f6c-4122-b5b5-a6f9f296b10f', 'ip_version': 4, 'cidr': '37.5.195.0/26', 'allocation_pools': [{'start': '37.5.195.2', 'end': '37.5.195.62'}], 'gateway_ip': '37.5.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.5.195.2', 'tags': [], 'project_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2'}}
2026-05-04 02:22:57,323 - INFO - Created VN ctest-vn-39550233
2026-05-04 02:22:57,377 - DEBUG - VN ctest-vn-39550233 UUID is 8069057f-3f6c-4122-b5b5-a6f9f296b10f
2026-05-04 02:22:57,690 - DEBUG - Response for create_network : {'network': {'id': '3fa53019-cc40-40eb-8df3-533aa07c18fa', 'name': 'ctest-vn-28448869', 'tenant_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'project_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-vn-28448869'], 'port_security_enabled': True, 'description': ''}}
2026-05-04 02:22:57,853 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0237a53-0e4c-4cbd-bb87-266ea49dc8f4', 'name': '', 'tenant_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'network_id': '3fa53019-cc40-40eb-8df3-533aa07c18fa', 'ip_version': 4, 'cidr': '202.197.77.0/26', 'allocation_pools': [{'start': '202.197.77.2', 'end': '202.197.77.62'}], 'gateway_ip': '202.197.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.197.77.2', 'tags': [], 'project_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2'}}
2026-05-04 02:22:57,869 - INFO - Created VN ctest-vn-28448869
2026-05-04 02:22:57,921 - DEBUG - VN ctest-vn-28448869 UUID is 3fa53019-cc40-40eb-8df3-533aa07c18fa
2026-05-04 02:22:58,033 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-39550233, 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-55574965:ctest-vn-28448869, 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-04 02:22:58,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8069057f-3f6c-4122-b5b5-a6f9f296b10f', 'name': 'ctest-vn-39550233', 'tenant_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'project_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7080c5e5-e163-46a0-838a-baa2d36b56d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-vn-39550233'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-policy-allow-all-95605390']], 'subnet_ipam': [{'subnet_cidr': '37.5.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-04 02:22:58,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fa53019-cc40-40eb-8df3-533aa07c18fa', 'name': 'ctest-vn-28448869', 'tenant_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'project_id': 'bc6d6a053bdf435b9a0e1c0a9b149cd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0237a53-0e4c-4cbd-bb87-266ea49dc8f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-vn-28448869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-policy-allow-all-95605390']], 'subnet_ipam': [{'subnet_cidr': '202.197.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-04 02:22:58,725 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-05-04 02:22:59,025 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-05-04 02:22:59,062 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e
2026-05-04 02:22:59,074 - DEBUG - Requesting: http://10.0.0.241:8082/project/bc6d6a05-3bdf-435b-9a0e-1c0a9b149cd2
2026-05-04 02:22:59,149 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/8069057f-3f6c-4122-b5b5-a6f9f296b10f
2026-05-04 02:22:59,161 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/8069057f-3f6c-4122-b5b5-a6f9f296b10f
2026-05-04 02:22:59,170 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7994a39d-3c52-4d8a-b478-06b01f0172ba
2026-05-04 02:22:59,176 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7994a39d-3c52-4d8a-b478-06b01f0172ba
2026-05-04 02:22:59,185 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/d65989e8-4fe0-42df-8655-2a8803b14d90
2026-05-04 02:22:59,190 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-04 02:22:59,190 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/8069057f-3f6c-4122-b5b5-a6f9f296b10f
2026-05-04 02:22:59,200 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7994a39d-3c52-4d8a-b478-06b01f0172ba
2026-05-04 02:22:59,215 - INFO - Verified VN network id 11 for VN 8069057f-3f6c-4122-b5b5-a6f9f296b10f
2026-05-04 02:22:59,215 - INFO - Verifications in API Server for VN ctest-vn-39550233 passed
2026-05-04 02:22:59,215 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/8069057f-3f6c-4122-b5b5-a6f9f296b10f
2026-05-04 02:22:59,225 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7994a39d-3c52-4d8a-b478-06b01f0172ba
2026-05-04 02:22:59,232 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7994a39d-3c52-4d8a-b478-06b01f0172ba
2026-05-04 02:22:59,238 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/d65989e8-4fe0-42df-8655-2a8803b14d90
2026-05-04 02:22:59,251 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-39550233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55574965', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9252932953492439330', 'uuid-lslong': '13093555084096614671'}, 'enable': 'true', 'created': '2026-05-04T02:22:57', 'last-modified': '2026-05-04T02:22:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949627'}
2026-05-04 02:22:59,257 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-04 02:22:59,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39550233 passed
2026-05-04 02:22:59,257 - DEBUG - ====Verifying policy data for ctest-vn-39550233 in API_Server ======
2026-05-04 02:22:59,257 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-05-04 02:22:59,263 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e
2026-05-04 02:22:59,273 - DEBUG - Requesting: http://10.0.0.241:8082/project/bc6d6a05-3bdf-435b-9a0e-1c0a9b149cd2
2026-05-04 02:22:59,344 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/8069057f-3f6c-4122-b5b5-a6f9f296b10f
2026-05-04 02:22:59,354 - DEBUG - ==>Verifying data for policy with id: 1d9e1ad8-3761-4f80-9dc2-386068e0182d, fqn: ['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-policy-allow-all-95605390']
2026-05-04 02:22:59,354 - INFO - VN ctest-vn-39550233 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-04 02:22:59,354 - DEBUG - Verifying the vn in opserver
2026-05-04 02:22:59,354 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-39550233 virtual network link through opserver 10.0.0.241
2026-05-04 02:22:59,354 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2026-05-04 02:22:59,658 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2026-05-04 02:22:59,721 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-39550233', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-39550233?flat'}
2026-05-04 02:22:59,721 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-39550233 is found in opserver
2026-05-04 02:22:59,732 - DEBUG - Do not have enough data to verify VN in agent
2026-05-04 02:22:59,737 - DEBUG - VRF ids for VN ctest-vn-39550233: {}
2026-05-04 02:22:59,737 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-05-04 02:22:59,742 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e
2026-05-04 02:22:59,752 - DEBUG - Requesting: http://10.0.0.241:8082/project/bc6d6a05-3bdf-435b-9a0e-1c0a9b149cd2
2026-05-04 02:22:59,822 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fa53019-cc40-40eb-8df3-533aa07c18fa
2026-05-04 02:22:59,833 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fa53019-cc40-40eb-8df3-533aa07c18fa
2026-05-04 02:22:59,841 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fcea1d34-d567-4085-acbd-37723f163ee0
2026-05-04 02:22:59,848 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fcea1d34-d567-4085-acbd-37723f163ee0
2026-05-04 02:22:59,854 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/2dcdb3b2-a4eb-4ef4-941a-11d99eeebdce
2026-05-04 02:22:59,860 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-04 02:22:59,860 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fa53019-cc40-40eb-8df3-533aa07c18fa
2026-05-04 02:22:59,868 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fcea1d34-d567-4085-acbd-37723f163ee0
2026-05-04 02:22:59,881 - INFO - Verified VN network id 12 for VN 3fa53019-cc40-40eb-8df3-533aa07c18fa
2026-05-04 02:22:59,881 - INFO - Verifications in API Server for VN ctest-vn-28448869 passed
2026-05-04 02:22:59,881 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fa53019-cc40-40eb-8df3-533aa07c18fa
2026-05-04 02:22:59,889 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fcea1d34-d567-4085-acbd-37723f163ee0
2026-05-04 02:22:59,895 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fcea1d34-d567-4085-acbd-37723f163ee0
2026-05-04 02:22:59,902 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/2dcdb3b2-a4eb-4ef4-941a-11d99eeebdce
2026-05-04 02:22:59,913 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-28448869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55574965', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4586124682905796843', 'uuid-lslong': '10228610689954224378'}, 'enable': 'true', 'created': '2026-05-04T02:22:57', 'last-modified': '2026-05-04T02:22:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379749'}
2026-05-04 02:22:59,919 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-04 02:22:59,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28448869 passed
2026-05-04 02:22:59,919 - DEBUG - ====Verifying policy data for ctest-vn-28448869 in API_Server ======
2026-05-04 02:22:59,919 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-05-04 02:22:59,925 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e
2026-05-04 02:22:59,936 - DEBUG - Requesting: http://10.0.0.241:8082/project/bc6d6a05-3bdf-435b-9a0e-1c0a9b149cd2
2026-05-04 02:23:00,009 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3fa53019-cc40-40eb-8df3-533aa07c18fa
2026-05-04 02:23:00,018 - DEBUG - ==>Verifying data for policy with id: 1d9e1ad8-3761-4f80-9dc2-386068e0182d, fqn: ['default-domain', 'ctest-TestBasicPolicy-55574965', 'ctest-policy-allow-all-95605390']
2026-05-04 02:23:00,018 - INFO - VN ctest-vn-28448869 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-04 02:23:00,018 - DEBUG - Verifying the vn in opserver
2026-05-04 02:23:00,019 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-28448869 virtual network link through opserver 10.0.0.241
2026-05-04 02:23:00,019 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2026-05-04 02:23:00,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-28448869', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-28448869?flat'}
2026-05-04 02:23:00,029 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55574965:ctest-vn-28448869 is found in opserver
2026-05-04 02:23:00,039 - DEBUG - Do not have enough data to verify VN in agent
2026-05-04 02:23:00,044 - DEBUG - VRF ids for VN ctest-vn-28448869: {}
2026-05-04 02:23:00,110 - DEBUG - Services list from nova: [