2026-03-30 13:34:05,074 - INFO - Domain Default found not creating
2026-03-30 13:34:05,282 - INFO - Project ctest-TestBasicPolicy-01289985 not found, creating it
2026-03-30 13:34:05,799 - INFO - Created Project:ctest-TestBasicPolicy-01289985, ID : 001a2f8b-acd2-41d9-a308-0b75ea11478f
2026-03-30 13:34:07,410 - INFO - ================================================================================
2026-03-30 13:34:07,410 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-30 13:34:07,410 - 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-03-30 13:34:07,684 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0'}} with
2026-03-30 13:34:07,684 - INFO - Initial checks done. Running the testcase now
2026-03-30 13:34:07,684 - INFO -
2026-03-30 13:34:08,302 - DEBUG - Response for create_network : {'network': {'id': 'bc687a3f-e78c-4749-a573-abbfe29a731f', 'name': 'ctest-vn-68581990', 'tenant_id': '001a2f8bacd241d9a3080b75ea11478f', 'project_id': '001a2f8bacd241d9a3080b75ea11478f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-vn-68581990'], 'port_security_enabled': True, 'description': ''}}
2026-03-30 13:34:08,503 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a332f940-5617-4e6b-ab56-cbf8b42b3845', 'name': '', 'tenant_id': '001a2f8bacd241d9a3080b75ea11478f', 'network_id': 'bc687a3f-e78c-4749-a573-abbfe29a731f', 'ip_version': 4, 'cidr': '48.251.112.128/26', 'allocation_pools': [{'start': '48.251.112.130', 'end': '48.251.112.190'}], 'gateway_ip': '48.251.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.251.112.130', 'tags': [], 'project_id': '001a2f8bacd241d9a3080b75ea11478f'}}
2026-03-30 13:34:08,525 - INFO - Created VN ctest-vn-68581990
2026-03-30 13:34:08,578 - DEBUG - VN ctest-vn-68581990 UUID is bc687a3f-e78c-4749-a573-abbfe29a731f
2026-03-30 13:34:08,917 - DEBUG - Response for create_network : {'network': {'id': '58361bfa-c672-41af-9621-79b3999f4563', 'name': 'ctest-vn-89074803', 'tenant_id': '001a2f8bacd241d9a3080b75ea11478f', 'project_id': '001a2f8bacd241d9a3080b75ea11478f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-vn-89074803'], 'port_security_enabled': True, 'description': ''}}
2026-03-30 13:34:09,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f478ad6-563e-4058-8c7b-13ba7cb210eb', 'name': '', 'tenant_id': '001a2f8bacd241d9a3080b75ea11478f', 'network_id': '58361bfa-c672-41af-9621-79b3999f4563', 'ip_version': 4, 'cidr': '150.62.122.192/26', 'allocation_pools': [{'start': '150.62.122.194', 'end': '150.62.122.254'}], 'gateway_ip': '150.62.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.62.122.194', 'tags': [], 'project_id': '001a2f8bacd241d9a3080b75ea11478f'}}
2026-03-30 13:34:09,091 - INFO - Created VN ctest-vn-89074803
2026-03-30 13:34:09,146 - DEBUG - VN ctest-vn-89074803 UUID is 58361bfa-c672-41af-9621-79b3999f4563
2026-03-30 13:34:09,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-68581990, 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-01289985:ctest-vn-89074803, 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-03-30 13:34:09,577 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc687a3f-e78c-4749-a573-abbfe29a731f', 'name': 'ctest-vn-68581990', 'tenant_id': '001a2f8bacd241d9a3080b75ea11478f', 'project_id': '001a2f8bacd241d9a3080b75ea11478f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a332f940-5617-4e6b-ab56-cbf8b42b3845'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-vn-68581990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-policy-allow-all-27580210']], 'subnet_ipam': [{'subnet_cidr': '48.251.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-30 13:34:09,820 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58361bfa-c672-41af-9621-79b3999f4563', 'name': 'ctest-vn-89074803', 'tenant_id': '001a2f8bacd241d9a3080b75ea11478f', 'project_id': '001a2f8bacd241d9a3080b75ea11478f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f478ad6-563e-4058-8c7b-13ba7cb210eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-vn-89074803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-policy-allow-all-27580210']], 'subnet_ipam': [{'subnet_cidr': '150.62.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-30 13:34:09,978 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 13:34:10,291 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 13:34:10,326 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f
2026-03-30 13:34:10,340 - DEBUG - Requesting: http://10.0.0.41:8082/project/001a2f8b-acd2-41d9-a308-0b75ea11478f
2026-03-30 13:34:10,418 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/bc687a3f-e78c-4749-a573-abbfe29a731f
2026-03-30 13:34:10,428 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/bc687a3f-e78c-4749-a573-abbfe29a731f
2026-03-30 13:34:10,437 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/390880f5-4de9-40a1-b5c0-6577639429c0
2026-03-30 13:34:10,445 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/390880f5-4de9-40a1-b5c0-6577639429c0
2026-03-30 13:34:10,452 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c9bf4626-79a5-416f-b6a8-e0866c96944a
2026-03-30 13:34:10,459 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-30 13:34:10,459 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/bc687a3f-e78c-4749-a573-abbfe29a731f
2026-03-30 13:34:10,468 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/390880f5-4de9-40a1-b5c0-6577639429c0
2026-03-30 13:34:10,484 - INFO - Verified VN network id 12 for VN bc687a3f-e78c-4749-a573-abbfe29a731f
2026-03-30 13:34:10,484 - INFO - Verifications in API Server for VN ctest-vn-68581990 passed
2026-03-30 13:34:10,484 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/bc687a3f-e78c-4749-a573-abbfe29a731f
2026-03-30 13:34:10,493 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/390880f5-4de9-40a1-b5c0-6577639429c0
2026-03-30 13:34:10,499 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/390880f5-4de9-40a1-b5c0-6577639429c0
2026-03-30 13:34:10,506 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c9bf4626-79a5-416f-b6a8-e0866c96944a
2026-03-30 13:34:10,519 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-68581990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01289985', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13576235491594618697', 'uuid-lslong': '11922061479208710943'}, 'enable': 'true', 'created': '2026-03-30T13:34:08', 'last-modified': '2026-03-30T13:34:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968904'}
2026-03-30 13:34:10,525 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-30 13:34:10,525 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68581990 passed
2026-03-30 13:34:10,525 - DEBUG - ====Verifying policy data for ctest-vn-68581990 in API_Server ======
2026-03-30 13:34:10,525 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 13:34:10,532 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f
2026-03-30 13:34:10,543 - DEBUG - Requesting: http://10.0.0.41:8082/project/001a2f8b-acd2-41d9-a308-0b75ea11478f
2026-03-30 13:34:10,613 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/bc687a3f-e78c-4749-a573-abbfe29a731f
2026-03-30 13:34:10,622 - DEBUG - ==>Verifying data for policy with id: fd16454f-0b18-48f1-858a-a5ccf5453f23, fqn: ['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-policy-allow-all-27580210']
2026-03-30 13:34:10,622 - INFO - VN ctest-vn-68581990 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-30 13:34:10,622 - DEBUG - Verifying the vn in opserver
2026-03-30 13:34:10,622 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-68581990 virtual network link through opserver 10.0.0.41
2026-03-30 13:34:10,622 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-30 13:34:10,922 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-30 13:34:10,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-68581990', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-68581990?flat'}
2026-03-30 13:34:10,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-68581990 is found in opserver
2026-03-30 13:34:11,007 - DEBUG - Do not have enough data to verify VN in agent
2026-03-30 13:34:11,012 - DEBUG - VRF ids for VN ctest-vn-68581990: {}
2026-03-30 13:34:11,012 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 13:34:11,018 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f
2026-03-30 13:34:11,029 - DEBUG - Requesting: http://10.0.0.41:8082/project/001a2f8b-acd2-41d9-a308-0b75ea11478f
2026-03-30 13:34:11,099 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/58361bfa-c672-41af-9621-79b3999f4563
2026-03-30 13:34:11,113 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/58361bfa-c672-41af-9621-79b3999f4563
2026-03-30 13:34:11,127 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cc9c450e-43cf-4ce8-b6c4-b16520504e1d
2026-03-30 13:34:11,137 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cc9c450e-43cf-4ce8-b6c4-b16520504e1d
2026-03-30 13:34:11,145 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/4db3d00d-4574-4023-becf-7779522ca496
2026-03-30 13:34:11,153 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-30 13:34:11,153 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/58361bfa-c672-41af-9621-79b3999f4563
2026-03-30 13:34:11,163 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cc9c450e-43cf-4ce8-b6c4-b16520504e1d
2026-03-30 13:34:11,177 - INFO - Verified VN network id 13 for VN 58361bfa-c672-41af-9621-79b3999f4563
2026-03-30 13:34:11,177 - INFO - Verifications in API Server for VN ctest-vn-89074803 passed
2026-03-30 13:34:11,178 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/58361bfa-c672-41af-9621-79b3999f4563
2026-03-30 13:34:11,187 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cc9c450e-43cf-4ce8-b6c4-b16520504e1d
2026-03-30 13:34:11,194 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cc9c450e-43cf-4ce8-b6c4-b16520504e1d
2026-03-30 13:34:11,202 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/4db3d00d-4574-4023-becf-7779522ca496
2026-03-30 13:34:11,216 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-89074803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01289985', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6356298687965184431', 'uuid-lslong': '10818061592204100963'}, 'enable': 'true', 'created': '2026-03-30T13:34:08', 'last-modified': '2026-03-30T13:34:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.420690'}
2026-03-30 13:34:11,221 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-30 13:34:11,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89074803 passed
2026-03-30 13:34:11,222 - DEBUG - ====Verifying policy data for ctest-vn-89074803 in API_Server ======
2026-03-30 13:34:11,222 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 13:34:11,227 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f
2026-03-30 13:34:11,237 - DEBUG - Requesting: http://10.0.0.41:8082/project/001a2f8b-acd2-41d9-a308-0b75ea11478f
2026-03-30 13:34:11,311 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/58361bfa-c672-41af-9621-79b3999f4563
2026-03-30 13:34:11,320 - DEBUG - ==>Verifying data for policy with id: fd16454f-0b18-48f1-858a-a5ccf5453f23, fqn: ['default-domain', 'ctest-TestBasicPolicy-01289985', 'ctest-policy-allow-all-27580210']
2026-03-30 13:34:11,320 - INFO - VN ctest-vn-89074803 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-30 13:34:11,320 - DEBUG - Verifying the vn in opserver
2026-03-30 13:34:11,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-89074803 virtual network link through opserver 10.0.0.41
2026-03-30 13:34:11,321 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-30 13:34:11,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-89074803', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-89074803?flat'}
2026-03-30 13:34:11,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01289985:ctest-vn-89074803 is found in opserver
2026-03-30 13:34:11,340 - DEBUG - Do not have enough data to verify VN in agent
2026-03-30 13:34:11,344 - DEBUG - VRF ids for VN ctest-vn-89074803: {}
2026-03-30 13:34:11,402 - DEBUG - Services list from nova: [