2026-02-05 20:45:27,608 - INFO - Domain Default found not creating
2026-02-05 20:45:27,766 - INFO - Project ctest-TestBasicPolicy-84603069 not found, creating it
2026-02-05 20:45:28,231 - INFO - Created Project:ctest-TestBasicPolicy-84603069, ID : b4340171-1304-4f35-99a6-29e65ee4796d
2026-02-05 20:45:29,725 - INFO - ================================================================================
2026-02-05 20:45:29,725 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-05 20:45:29,726 - 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-02-05 20:45:29,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-02-05 20:45:29,991 - INFO - Initial checks done. Running the testcase now
2026-02-05 20:45:29,991 - INFO -
2026-02-05 20:45:30,566 - DEBUG - Response for create_network : {'network': {'id': 'b2b65ac0-c273-4dc3-9934-9b1124be8927', 'name': 'ctest-vn-79539081', 'tenant_id': 'b434017113044f3599a629e65ee4796d', 'project_id': 'b434017113044f3599a629e65ee4796d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-vn-79539081'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 20:45:30,783 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f120253e-7f4d-411f-8bac-320363cdb010', 'name': '', 'tenant_id': 'b434017113044f3599a629e65ee4796d', 'network_id': 'b2b65ac0-c273-4dc3-9934-9b1124be8927', 'ip_version': 4, 'cidr': '211.93.52.128/26', 'allocation_pools': [{'start': '211.93.52.130', 'end': '211.93.52.190'}], 'gateway_ip': '211.93.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.93.52.130', 'tags': [], 'project_id': 'b434017113044f3599a629e65ee4796d'}}
2026-02-05 20:45:30,802 - INFO - Created VN ctest-vn-79539081
2026-02-05 20:45:30,854 - DEBUG - VN ctest-vn-79539081 UUID is b2b65ac0-c273-4dc3-9934-9b1124be8927
2026-02-05 20:45:31,140 - DEBUG - Response for create_network : {'network': {'id': '3eb2028b-735c-4187-9dbb-792f7a52856a', 'name': 'ctest-vn-33468054', 'tenant_id': 'b434017113044f3599a629e65ee4796d', 'project_id': 'b434017113044f3599a629e65ee4796d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-vn-33468054'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 20:45:31,325 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad6ee6f1-4810-453c-aadc-73a9dc1f7002', 'name': '', 'tenant_id': 'b434017113044f3599a629e65ee4796d', 'network_id': '3eb2028b-735c-4187-9dbb-792f7a52856a', 'ip_version': 4, 'cidr': '214.234.186.64/26', 'allocation_pools': [{'start': '214.234.186.66', 'end': '214.234.186.126'}], 'gateway_ip': '214.234.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.234.186.66', 'tags': [], 'project_id': 'b434017113044f3599a629e65ee4796d'}}
2026-02-05 20:45:31,343 - INFO - Created VN ctest-vn-33468054
2026-02-05 20:45:31,398 - DEBUG - VN ctest-vn-33468054 UUID is 3eb2028b-735c-4187-9dbb-792f7a52856a
2026-02-05 20:45:31,550 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-79539081, 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-84603069:ctest-vn-33468054, 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-02-05 20:45:31,845 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2b65ac0-c273-4dc3-9934-9b1124be8927', 'name': 'ctest-vn-79539081', 'tenant_id': 'b434017113044f3599a629e65ee4796d', 'project_id': 'b434017113044f3599a629e65ee4796d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f120253e-7f4d-411f-8bac-320363cdb010'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-vn-79539081'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-policy-allow-all-35270005']], 'subnet_ipam': [{'subnet_cidr': '211.93.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 20:45:32,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3eb2028b-735c-4187-9dbb-792f7a52856a', 'name': 'ctest-vn-33468054', 'tenant_id': 'b434017113044f3599a629e65ee4796d', 'project_id': 'b434017113044f3599a629e65ee4796d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad6ee6f1-4810-453c-aadc-73a9dc1f7002'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-vn-33468054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-policy-allow-all-35270005']], 'subnet_ipam': [{'subnet_cidr': '214.234.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 20:45:32,238 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 20:45:32,538 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 20:45:32,568 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860
2026-02-05 20:45:32,581 - DEBUG - Requesting: http://10.0.0.22:8082/project/b4340171-1304-4f35-99a6-29e65ee4796d
2026-02-05 20:45:32,655 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2b65ac0-c273-4dc3-9934-9b1124be8927
2026-02-05 20:45:32,665 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2b65ac0-c273-4dc3-9934-9b1124be8927
2026-02-05 20:45:32,674 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6043e83-2c53-40ef-a59a-e8c8ddaf9de2
2026-02-05 20:45:32,682 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6043e83-2c53-40ef-a59a-e8c8ddaf9de2
2026-02-05 20:45:32,688 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/50f19b81-8f34-4e42-ae40-f06fe0c56158
2026-02-05 20:45:32,696 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 20:45:32,696 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2b65ac0-c273-4dc3-9934-9b1124be8927
2026-02-05 20:45:32,705 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6043e83-2c53-40ef-a59a-e8c8ddaf9de2
2026-02-05 20:45:32,718 - INFO - Verified VN network id 11 for VN b2b65ac0-c273-4dc3-9934-9b1124be8927
2026-02-05 20:45:32,718 - INFO - Verifications in API Server for VN ctest-vn-79539081 passed
2026-02-05 20:45:32,719 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2b65ac0-c273-4dc3-9934-9b1124be8927
2026-02-05 20:45:32,727 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6043e83-2c53-40ef-a59a-e8c8ddaf9de2
2026-02-05 20:45:32,734 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d6043e83-2c53-40ef-a59a-e8c8ddaf9de2
2026-02-05 20:45:32,742 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/50f19b81-8f34-4e42-ae40-f06fe0c56158
2026-02-05 20:45:32,755 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-79539081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84603069', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12877579968455069123', 'uuid-lslong': '11039619084525144359'}, 'enable': 'true', 'created': '2026-02-05T20:45:30', 'last-modified': '2026-02-05T20:45:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932907'}
2026-02-05 20:45:32,762 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 20:45:32,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79539081 passed
2026-02-05 20:45:32,762 - DEBUG - ====Verifying policy data for ctest-vn-79539081 in API_Server ======
2026-02-05 20:45:32,762 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 20:45:32,768 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860
2026-02-05 20:45:32,780 - DEBUG - Requesting: http://10.0.0.22:8082/project/b4340171-1304-4f35-99a6-29e65ee4796d
2026-02-05 20:45:32,845 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b2b65ac0-c273-4dc3-9934-9b1124be8927
2026-02-05 20:45:32,854 - DEBUG - ==>Verifying data for policy with id: 7940030a-95d0-43d1-ad42-122bf129d74d, fqn: ['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-policy-allow-all-35270005']
2026-02-05 20:45:32,854 - INFO - VN ctest-vn-79539081 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 20:45:32,854 - DEBUG - Verifying the vn in opserver
2026-02-05 20:45:32,855 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-79539081 virtual network link through opserver 10.0.0.22
2026-02-05 20:45:32,855 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-05 20:45:33,154 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-05 20:45:33,225 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-79539081', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-79539081?flat'}
2026-02-05 20:45:33,225 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-79539081 is found in opserver
2026-02-05 20:45:33,235 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 20:45:33,240 - DEBUG - VRF ids for VN ctest-vn-79539081: {}
2026-02-05 20:45:33,240 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 20:45:33,246 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860
2026-02-05 20:45:33,258 - DEBUG - Requesting: http://10.0.0.22:8082/project/b4340171-1304-4f35-99a6-29e65ee4796d
2026-02-05 20:45:33,328 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3eb2028b-735c-4187-9dbb-792f7a52856a
2026-02-05 20:45:33,340 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3eb2028b-735c-4187-9dbb-792f7a52856a
2026-02-05 20:45:33,348 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92fab3c6-9ab5-45d7-8c7e-b12dca7e79e7
2026-02-05 20:45:33,355 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92fab3c6-9ab5-45d7-8c7e-b12dca7e79e7
2026-02-05 20:45:33,362 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fff92703-aeb9-4259-a8e7-b8005597833d
2026-02-05 20:45:33,369 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 20:45:33,369 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3eb2028b-735c-4187-9dbb-792f7a52856a
2026-02-05 20:45:33,377 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92fab3c6-9ab5-45d7-8c7e-b12dca7e79e7
2026-02-05 20:45:33,390 - INFO - Verified VN network id 12 for VN 3eb2028b-735c-4187-9dbb-792f7a52856a
2026-02-05 20:45:33,390 - INFO - Verifications in API Server for VN ctest-vn-33468054 passed
2026-02-05 20:45:33,391 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3eb2028b-735c-4187-9dbb-792f7a52856a
2026-02-05 20:45:33,399 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92fab3c6-9ab5-45d7-8c7e-b12dca7e79e7
2026-02-05 20:45:33,407 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92fab3c6-9ab5-45d7-8c7e-b12dca7e79e7
2026-02-05 20:45:33,415 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fff92703-aeb9-4259-a8e7-b8005597833d
2026-02-05 20:45:33,430 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-33468054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84603069', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4517676174165164423', 'uuid-lslong': '11365811329422230890'}, 'enable': 'true', 'created': '2026-02-05T20:45:31', 'last-modified': '2026-02-05T20:45:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371462'}
2026-02-05 20:45:33,436 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 20:45:33,436 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33468054 passed
2026-02-05 20:45:33,436 - DEBUG - ====Verifying policy data for ctest-vn-33468054 in API_Server ======
2026-02-05 20:45:33,436 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 20:45:33,443 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fe3ce7fb-1b37-425b-89db-eb009a175860
2026-02-05 20:45:33,457 - DEBUG - Requesting: http://10.0.0.22:8082/project/b4340171-1304-4f35-99a6-29e65ee4796d
2026-02-05 20:45:33,528 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3eb2028b-735c-4187-9dbb-792f7a52856a
2026-02-05 20:45:33,539 - DEBUG - ==>Verifying data for policy with id: 7940030a-95d0-43d1-ad42-122bf129d74d, fqn: ['default-domain', 'ctest-TestBasicPolicy-84603069', 'ctest-policy-allow-all-35270005']
2026-02-05 20:45:33,539 - INFO - VN ctest-vn-33468054 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 20:45:33,539 - DEBUG - Verifying the vn in opserver
2026-02-05 20:45:33,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-33468054 virtual network link through opserver 10.0.0.22
2026-02-05 20:45:33,539 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-05 20:45:33,549 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-33468054', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-33468054?flat'}
2026-02-05 20:45:33,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84603069:ctest-vn-33468054 is found in opserver
2026-02-05 20:45:33,561 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 20:45:33,565 - DEBUG - VRF ids for VN ctest-vn-33468054: {}
2026-02-05 20:45:33,625 - DEBUG - Services list from nova: [