2026-04-29 22:26:51,792 - INFO - Domain Default found not creating
2026-04-29 22:26:51,966 - INFO - Project ctest-TestBasicPolicy-91459545 not found, creating it
2026-04-29 22:26:52,460 - INFO - Created Project:ctest-TestBasicPolicy-91459545, ID : 63d0126a-f984-4de0-8d42-9ad6729166f8
2026-04-29 22:26:54,055 - INFO - ================================================================================
2026-04-29 22:26:54,055 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 22:26:54,055 - 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-29 22:26:54,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-04-29 22:26:54,323 - INFO - Initial checks done. Running the testcase now
2026-04-29 22:26:54,323 - INFO -
2026-04-29 22:26:54,866 - DEBUG - Response for create_network : {'network': {'id': 'a7af3add-c947-4cfb-b72f-417dd637f682', 'name': 'ctest-vn-08269268', 'tenant_id': '63d0126af9844de08d429ad6729166f8', 'project_id': '63d0126af9844de08d429ad6729166f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-vn-08269268'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:26:55,028 - DEBUG - Response for create_subnet : {'subnet': {'id': '78bb7ef2-977d-42f2-bbe1-69f0132bc5e2', 'name': '', 'tenant_id': '63d0126af9844de08d429ad6729166f8', 'network_id': 'a7af3add-c947-4cfb-b72f-417dd637f682', 'ip_version': 4, 'cidr': '35.31.53.128/26', 'allocation_pools': [{'start': '35.31.53.130', 'end': '35.31.53.190'}], 'gateway_ip': '35.31.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.31.53.130', 'tags': [], 'project_id': '63d0126af9844de08d429ad6729166f8'}}
2026-04-29 22:26:55,048 - INFO - Created VN ctest-vn-08269268
2026-04-29 22:26:55,102 - DEBUG - VN ctest-vn-08269268 UUID is a7af3add-c947-4cfb-b72f-417dd637f682
2026-04-29 22:26:55,423 - DEBUG - Response for create_network : {'network': {'id': '1b31eaaf-8fdc-480e-99a9-b948f0d99589', 'name': 'ctest-vn-30425018', 'tenant_id': '63d0126af9844de08d429ad6729166f8', 'project_id': '63d0126af9844de08d429ad6729166f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-vn-30425018'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:26:55,627 - DEBUG - Response for create_subnet : {'subnet': {'id': '410f3076-04e8-4de5-86e9-38a34ac4df3a', 'name': '', 'tenant_id': '63d0126af9844de08d429ad6729166f8', 'network_id': '1b31eaaf-8fdc-480e-99a9-b948f0d99589', 'ip_version': 4, 'cidr': '211.50.48.192/26', 'allocation_pools': [{'start': '211.50.48.194', 'end': '211.50.48.254'}], 'gateway_ip': '211.50.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.50.48.194', 'tags': [], 'project_id': '63d0126af9844de08d429ad6729166f8'}}
2026-04-29 22:26:55,644 - INFO - Created VN ctest-vn-30425018
2026-04-29 22:26:55,694 - DEBUG - VN ctest-vn-30425018 UUID is 1b31eaaf-8fdc-480e-99a9-b948f0d99589
2026-04-29 22:26:55,846 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-08269268, 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-91459545:ctest-vn-30425018, 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-29 22:26:56,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7af3add-c947-4cfb-b72f-417dd637f682', 'name': 'ctest-vn-08269268', 'tenant_id': '63d0126af9844de08d429ad6729166f8', 'project_id': '63d0126af9844de08d429ad6729166f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78bb7ef2-977d-42f2-bbe1-69f0132bc5e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-vn-08269268'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-policy-allow-all-40019228']], 'subnet_ipam': [{'subnet_cidr': '35.31.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:26:56,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b31eaaf-8fdc-480e-99a9-b948f0d99589', 'name': 'ctest-vn-30425018', 'tenant_id': '63d0126af9844de08d429ad6729166f8', 'project_id': '63d0126af9844de08d429ad6729166f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['410f3076-04e8-4de5-86e9-38a34ac4df3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-vn-30425018'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-policy-allow-all-40019228']], 'subnet_ipam': [{'subnet_cidr': '211.50.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:26:56,518 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-29 22:26:56,822 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-29 22:26:56,858 - DEBUG - Requesting: http://10.0.0.22:8082/domain/33a53e9a-2315-4dbf-9ea0-9b80c8a83950
2026-04-29 22:26:56,870 - DEBUG - Requesting: http://10.0.0.22:8082/project/63d0126a-f984-4de0-8d42-9ad6729166f8
2026-04-29 22:26:56,939 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7af3add-c947-4cfb-b72f-417dd637f682
2026-04-29 22:26:56,950 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7af3add-c947-4cfb-b72f-417dd637f682
2026-04-29 22:26:56,959 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/28a4a1c3-a59d-40c4-be8e-4814262e43ff
2026-04-29 22:26:56,966 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/28a4a1c3-a59d-40c4-be8e-4814262e43ff
2026-04-29 22:26:56,972 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/80e798f1-a8ad-4083-8520-d57f9f4db033
2026-04-29 22:26:56,977 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 22:26:56,977 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7af3add-c947-4cfb-b72f-417dd637f682
2026-04-29 22:26:56,985 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/28a4a1c3-a59d-40c4-be8e-4814262e43ff
2026-04-29 22:26:57,000 - INFO - Verified VN network id 9 for VN a7af3add-c947-4cfb-b72f-417dd637f682
2026-04-29 22:26:57,000 - INFO - Verifications in API Server for VN ctest-vn-08269268 passed
2026-04-29 22:26:57,000 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7af3add-c947-4cfb-b72f-417dd637f682
2026-04-29 22:26:57,008 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/28a4a1c3-a59d-40c4-be8e-4814262e43ff
2026-04-29 22:26:57,013 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/28a4a1c3-a59d-40c4-be8e-4814262e43ff
2026-04-29 22:26:57,019 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/80e798f1-a8ad-4083-8520-d57f9f4db033
2026-04-29 22:26:57,029 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-08269268', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91459545', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12082941049497406715', 'uuid-lslong': '13199841041566922370'}, 'enable': 'true', 'created': '2026-04-29T22:26:54', 'last-modified': '2026-04-29T22:26:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919744'}
2026-04-29 22:26:57,035 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 22:26:57,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08269268 passed
2026-04-29 22:26:57,037 - DEBUG - ====Verifying policy data for ctest-vn-08269268 in API_Server ======
2026-04-29 22:26:57,038 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-29 22:26:57,043 - DEBUG - Requesting: http://10.0.0.22:8082/domain/33a53e9a-2315-4dbf-9ea0-9b80c8a83950
2026-04-29 22:26:57,053 - DEBUG - Requesting: http://10.0.0.22:8082/project/63d0126a-f984-4de0-8d42-9ad6729166f8
2026-04-29 22:26:57,125 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7af3add-c947-4cfb-b72f-417dd637f682
2026-04-29 22:26:57,133 - DEBUG - ==>Verifying data for policy with id: 9d7f6db4-9a8f-4c4f-89d6-809b0625222e, fqn: ['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-policy-allow-all-40019228']
2026-04-29 22:26:57,133 - INFO - VN ctest-vn-08269268 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 22:26:57,134 - DEBUG - Verifying the vn in opserver
2026-04-29 22:26:57,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-08269268 virtual network link through opserver 10.0.0.22
2026-04-29 22:26:57,134 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-29 22:26:57,428 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-29 22:26:57,493 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-08269268', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-08269268?flat'}
2026-04-29 22:26:57,493 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-08269268 is found in opserver
2026-04-29 22:26:57,502 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 22:26:57,507 - DEBUG - VRF ids for VN ctest-vn-08269268: {}
2026-04-29 22:26:57,507 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-29 22:26:57,511 - DEBUG - Requesting: http://10.0.0.22:8082/domain/33a53e9a-2315-4dbf-9ea0-9b80c8a83950
2026-04-29 22:26:57,522 - DEBUG - Requesting: http://10.0.0.22:8082/project/63d0126a-f984-4de0-8d42-9ad6729166f8
2026-04-29 22:26:57,594 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1b31eaaf-8fdc-480e-99a9-b948f0d99589
2026-04-29 22:26:57,604 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1b31eaaf-8fdc-480e-99a9-b948f0d99589
2026-04-29 22:26:57,613 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87bdcf40-e48d-40f6-8097-b9352c91388d
2026-04-29 22:26:57,619 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87bdcf40-e48d-40f6-8097-b9352c91388d
2026-04-29 22:26:57,624 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3da91f2e-9ebf-4fa8-819f-37996166a7fd
2026-04-29 22:26:57,631 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 22:26:57,631 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1b31eaaf-8fdc-480e-99a9-b948f0d99589
2026-04-29 22:26:57,640 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87bdcf40-e48d-40f6-8097-b9352c91388d
2026-04-29 22:26:57,652 - INFO - Verified VN network id 10 for VN 1b31eaaf-8fdc-480e-99a9-b948f0d99589
2026-04-29 22:26:57,652 - INFO - Verifications in API Server for VN ctest-vn-30425018 passed
2026-04-29 22:26:57,652 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1b31eaaf-8fdc-480e-99a9-b948f0d99589
2026-04-29 22:26:57,660 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87bdcf40-e48d-40f6-8097-b9352c91388d
2026-04-29 22:26:57,667 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/87bdcf40-e48d-40f6-8097-b9352c91388d
2026-04-29 22:26:57,672 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3da91f2e-9ebf-4fa8-819f-37996166a7fd
2026-04-29 22:26:57,683 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-30425018', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91459545', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1959605352636631054', 'uuid-lslong': '11072584881796650377'}, 'enable': 'true', 'created': '2026-04-29T22:26:55', 'last-modified': '2026-04-29T22:26:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350686'}
2026-04-29 22:26:57,688 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 22:26:57,688 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30425018 passed
2026-04-29 22:26:57,688 - DEBUG - ====Verifying policy data for ctest-vn-30425018 in API_Server ======
2026-04-29 22:26:57,688 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-29 22:26:57,694 - DEBUG - Requesting: http://10.0.0.22:8082/domain/33a53e9a-2315-4dbf-9ea0-9b80c8a83950
2026-04-29 22:26:57,704 - DEBUG - Requesting: http://10.0.0.22:8082/project/63d0126a-f984-4de0-8d42-9ad6729166f8
2026-04-29 22:26:57,770 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1b31eaaf-8fdc-480e-99a9-b948f0d99589
2026-04-29 22:26:57,780 - DEBUG - ==>Verifying data for policy with id: 9d7f6db4-9a8f-4c4f-89d6-809b0625222e, fqn: ['default-domain', 'ctest-TestBasicPolicy-91459545', 'ctest-policy-allow-all-40019228']
2026-04-29 22:26:57,780 - INFO - VN ctest-vn-30425018 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 22:26:57,780 - DEBUG - Verifying the vn in opserver
2026-04-29 22:26:57,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-30425018 virtual network link through opserver 10.0.0.22
2026-04-29 22:26:57,780 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-29 22:26:57,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-30425018', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-30425018?flat'}
2026-04-29 22:26:57,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91459545:ctest-vn-30425018 is found in opserver
2026-04-29 22:26:57,798 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 22:26:57,803 - DEBUG - VRF ids for VN ctest-vn-30425018: {}
2026-04-29 22:26:57,859 - DEBUG - Services list from nova: [