2026-01-29 04:52:46,386 - INFO - Domain Default found not creating
2026-01-29 04:52:46,547 - INFO - Project ctest-TestBasicPolicy-01661103 not found, creating it
2026-01-29 04:52:46,986 - INFO - Created Project:ctest-TestBasicPolicy-01661103, ID : 774642c0-d045-4153-9a2c-6cd5efb6808a
2026-01-29 04:52:48,396 - INFO - ================================================================================
2026-01-29 04:52:48,396 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 04:52:48,396 - 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-01-29 04:52:48,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with
2026-01-29 04:52:48,653 - INFO - Initial checks done. Running the testcase now
2026-01-29 04:52:48,653 - INFO -
2026-01-29 04:52:49,185 - DEBUG - Response for create_network : {'network': {'id': '687490b0-51fe-43be-bc62-6ab9847c38a3', 'name': 'ctest-vn-33830810', 'tenant_id': '774642c0d04541539a2c6cd5efb6808a', 'project_id': '774642c0d04541539a2c6cd5efb6808a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-vn-33830810'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 04:52:49,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f5650ec-944c-4e53-ab21-91d61b6277a1', 'name': '', 'tenant_id': '774642c0d04541539a2c6cd5efb6808a', 'network_id': '687490b0-51fe-43be-bc62-6ab9847c38a3', 'ip_version': 4, 'cidr': '111.171.57.64/26', 'allocation_pools': [{'start': '111.171.57.66', 'end': '111.171.57.126'}], 'gateway_ip': '111.171.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.171.57.66', 'tags': [], 'project_id': '774642c0d04541539a2c6cd5efb6808a'}}
2026-01-29 04:52:49,364 - INFO - Created VN ctest-vn-33830810
2026-01-29 04:52:49,413 - DEBUG - VN ctest-vn-33830810 UUID is 687490b0-51fe-43be-bc62-6ab9847c38a3
2026-01-29 04:52:49,714 - DEBUG - Response for create_network : {'network': {'id': '003abe05-6275-428c-a045-24b5ceccf70b', 'name': 'ctest-vn-42894689', 'tenant_id': '774642c0d04541539a2c6cd5efb6808a', 'project_id': '774642c0d04541539a2c6cd5efb6808a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-vn-42894689'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 04:52:49,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b97f2f2d-1cb5-4b6c-be77-be689e9c7c94', 'name': '', 'tenant_id': '774642c0d04541539a2c6cd5efb6808a', 'network_id': '003abe05-6275-428c-a045-24b5ceccf70b', 'ip_version': 4, 'cidr': '208.85.254.192/26', 'allocation_pools': [{'start': '208.85.254.194', 'end': '208.85.254.254'}], 'gateway_ip': '208.85.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.85.254.194', 'tags': [], 'project_id': '774642c0d04541539a2c6cd5efb6808a'}}
2026-01-29 04:52:49,933 - INFO - Created VN ctest-vn-42894689
2026-01-29 04:52:49,985 - DEBUG - VN ctest-vn-42894689 UUID is 003abe05-6275-428c-a045-24b5ceccf70b
2026-01-29 04:52:50,096 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-33830810, 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-01661103:ctest-vn-42894689, 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-01-29 04:52:50,376 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '687490b0-51fe-43be-bc62-6ab9847c38a3', 'name': 'ctest-vn-33830810', 'tenant_id': '774642c0d04541539a2c6cd5efb6808a', 'project_id': '774642c0d04541539a2c6cd5efb6808a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f5650ec-944c-4e53-ab21-91d61b6277a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-vn-33830810'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-policy-allow-all-75948473']], 'subnet_ipam': [{'subnet_cidr': '111.171.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 04:52:50,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '003abe05-6275-428c-a045-24b5ceccf70b', 'name': 'ctest-vn-42894689', 'tenant_id': '774642c0d04541539a2c6cd5efb6808a', 'project_id': '774642c0d04541539a2c6cd5efb6808a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b97f2f2d-1cb5-4b6c-be77-be689e9c7c94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-vn-42894689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-policy-allow-all-75948473']], 'subnet_ipam': [{'subnet_cidr': '208.85.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 04:52:50,745 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 04:52:51,037 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 04:52:51,065 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a
2026-01-29 04:52:51,075 - DEBUG - Requesting: http://10.0.0.22:8082/project/774642c0-d045-4153-9a2c-6cd5efb6808a
2026-01-29 04:52:51,143 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/687490b0-51fe-43be-bc62-6ab9847c38a3
2026-01-29 04:52:51,152 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/687490b0-51fe-43be-bc62-6ab9847c38a3
2026-01-29 04:52:51,160 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/41ed2eee-0a90-4c56-b0ca-2e0855231261
2026-01-29 04:52:51,166 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/41ed2eee-0a90-4c56-b0ca-2e0855231261
2026-01-29 04:52:51,172 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/47a6fbd2-2a46-4cf6-b0bc-61b216d757e8
2026-01-29 04:52:51,178 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 04:52:51,178 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/687490b0-51fe-43be-bc62-6ab9847c38a3
2026-01-29 04:52:51,186 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/41ed2eee-0a90-4c56-b0ca-2e0855231261
2026-01-29 04:52:51,197 - INFO - Verified VN network id 12 for VN 687490b0-51fe-43be-bc62-6ab9847c38a3
2026-01-29 04:52:51,197 - INFO - Verifications in API Server for VN ctest-vn-33830810 passed
2026-01-29 04:52:51,197 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/687490b0-51fe-43be-bc62-6ab9847c38a3
2026-01-29 04:52:51,205 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/41ed2eee-0a90-4c56-b0ca-2e0855231261
2026-01-29 04:52:51,210 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/41ed2eee-0a90-4c56-b0ca-2e0855231261
2026-01-29 04:52:51,217 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/47a6fbd2-2a46-4cf6-b0bc-61b216d757e8
2026-01-29 04:52:51,227 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-33830810', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01661103', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7526799964207203262', 'uuid-lslong': '13574529571872323747'}, 'enable': 'true', 'created': '2026-01-29T04:52:49', 'last-modified': '2026-01-29T04:52:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.874143'}
2026-01-29 04:52:51,231 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 04:52:51,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33830810 passed
2026-01-29 04:52:51,232 - DEBUG - ====Verifying policy data for ctest-vn-33830810 in API_Server ======
2026-01-29 04:52:51,232 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 04:52:51,236 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a
2026-01-29 04:52:51,246 - DEBUG - Requesting: http://10.0.0.22:8082/project/774642c0-d045-4153-9a2c-6cd5efb6808a
2026-01-29 04:52:51,316 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/687490b0-51fe-43be-bc62-6ab9847c38a3
2026-01-29 04:52:51,327 - DEBUG - ==>Verifying data for policy with id: 28d8970e-31aa-419a-adea-d826f1c6b8f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-policy-allow-all-75948473']
2026-01-29 04:52:51,327 - INFO - VN ctest-vn-33830810 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 04:52:51,327 - DEBUG - Verifying the vn in opserver
2026-01-29 04:52:51,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-33830810 virtual network link through opserver 10.0.0.22
2026-01-29 04:52:51,327 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 04:52:51,618 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 04:52:51,676 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-33830810', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-33830810?flat'}
2026-01-29 04:52:51,676 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-33830810 is found in opserver
2026-01-29 04:52:51,685 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 04:52:51,689 - DEBUG - VRF ids for VN ctest-vn-33830810: {}
2026-01-29 04:52:51,689 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 04:52:51,694 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a
2026-01-29 04:52:51,703 - DEBUG - Requesting: http://10.0.0.22:8082/project/774642c0-d045-4153-9a2c-6cd5efb6808a
2026-01-29 04:52:51,766 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/003abe05-6275-428c-a045-24b5ceccf70b
2026-01-29 04:52:51,776 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/003abe05-6275-428c-a045-24b5ceccf70b
2026-01-29 04:52:51,783 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db165b2-153f-4db8-ac5d-76797f5cfcac
2026-01-29 04:52:51,790 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db165b2-153f-4db8-ac5d-76797f5cfcac
2026-01-29 04:52:51,795 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/14b1277a-6093-4f2c-be75-7f0da7f49f12
2026-01-29 04:52:51,800 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 04:52:51,800 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/003abe05-6275-428c-a045-24b5ceccf70b
2026-01-29 04:52:51,808 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db165b2-153f-4db8-ac5d-76797f5cfcac
2026-01-29 04:52:51,819 - INFO - Verified VN network id 13 for VN 003abe05-6275-428c-a045-24b5ceccf70b
2026-01-29 04:52:51,819 - INFO - Verifications in API Server for VN ctest-vn-42894689 passed
2026-01-29 04:52:51,819 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/003abe05-6275-428c-a045-24b5ceccf70b
2026-01-29 04:52:51,827 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db165b2-153f-4db8-ac5d-76797f5cfcac
2026-01-29 04:52:51,833 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db165b2-153f-4db8-ac5d-76797f5cfcac
2026-01-29 04:52:51,838 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/14b1277a-6093-4f2c-be75-7f0da7f49f12
2026-01-29 04:52:51,848 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-42894689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01661103', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16534478985183884', 'uuid-lslong': '11548677182738724619'}, 'enable': 'true', 'created': '2026-01-29T04:52:49', 'last-modified': '2026-01-29T04:52:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.279503'}
2026-01-29 04:52:51,854 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 04:52:51,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42894689 passed
2026-01-29 04:52:51,854 - DEBUG - ====Verifying policy data for ctest-vn-42894689 in API_Server ======
2026-01-29 04:52:51,854 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 04:52:51,858 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a
2026-01-29 04:52:51,869 - DEBUG - Requesting: http://10.0.0.22:8082/project/774642c0-d045-4153-9a2c-6cd5efb6808a
2026-01-29 04:52:51,936 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/003abe05-6275-428c-a045-24b5ceccf70b
2026-01-29 04:52:51,944 - DEBUG - ==>Verifying data for policy with id: 28d8970e-31aa-419a-adea-d826f1c6b8f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-01661103', 'ctest-policy-allow-all-75948473']
2026-01-29 04:52:51,944 - INFO - VN ctest-vn-42894689 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 04:52:51,944 - DEBUG - Verifying the vn in opserver
2026-01-29 04:52:51,944 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-42894689 virtual network link through opserver 10.0.0.22
2026-01-29 04:52:51,944 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 04:52:51,952 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-42894689', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-42894689?flat'}
2026-01-29 04:52:51,953 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01661103:ctest-vn-42894689 is found in opserver
2026-01-29 04:52:51,961 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 04:52:51,965 - DEBUG - VRF ids for VN ctest-vn-42894689: {}
2026-01-29 04:52:52,021 - DEBUG - Services list from nova: [