2026-02-23 19:08:31,428 - INFO - Domain Default found not creating
2026-02-23 19:08:31,706 - INFO - Project ctest-TestBasicPolicy-64155924 not found, creating it
2026-02-23 19:08:32,371 - INFO - Created Project:ctest-TestBasicPolicy-64155924, ID : d12dee4a-9190-4c12-9100-2d560263ad78
2026-02-23 19:08:34,575 - INFO - ================================================================================
2026-02-23 19:08:34,575 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-23 19:08:34,575 - 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-23 19:08:34,890 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-23 19:08:34,890 - INFO - Initial checks done. Running the testcase now
2026-02-23 19:08:34,890 - INFO -
2026-02-23 19:08:35,668 - DEBUG - Response for create_network : {'network': {'id': 'f80e660d-4d89-45f6-bd2b-300e6cd5011f', 'name': 'ctest-vn-15820947', 'tenant_id': 'd12dee4a91904c1291002d560263ad78', 'project_id': 'd12dee4a91904c1291002d560263ad78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-vn-15820947'], 'port_security_enabled': True, 'description': ''}}
2026-02-23 19:08:35,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '08e5f95f-482b-4aee-b0dd-6acc654fa299', 'name': '', 'tenant_id': 'd12dee4a91904c1291002d560263ad78', 'network_id': 'f80e660d-4d89-45f6-bd2b-300e6cd5011f', 'ip_version': 4, 'cidr': '53.0.86.128/26', 'allocation_pools': [{'start': '53.0.86.130', 'end': '53.0.86.190'}], 'gateway_ip': '53.0.86.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.0.86.130', 'tags': [], 'project_id': 'd12dee4a91904c1291002d560263ad78'}}
2026-02-23 19:08:35,935 - INFO - Created VN ctest-vn-15820947
2026-02-23 19:08:35,996 - DEBUG - VN ctest-vn-15820947 UUID is f80e660d-4d89-45f6-bd2b-300e6cd5011f
2026-02-23 19:08:36,500 - DEBUG - Response for create_network : {'network': {'id': '553118b7-f883-40c8-9b84-0ceb08c85ff0', 'name': 'ctest-vn-80171492', 'tenant_id': 'd12dee4a91904c1291002d560263ad78', 'project_id': 'd12dee4a91904c1291002d560263ad78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-vn-80171492'], 'port_security_enabled': True, 'description': ''}}
2026-02-23 19:08:36,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '07349aea-100c-4a4e-ad45-5b84e581af49', 'name': '', 'tenant_id': 'd12dee4a91904c1291002d560263ad78', 'network_id': '553118b7-f883-40c8-9b84-0ceb08c85ff0', 'ip_version': 4, 'cidr': '21.36.227.0/26', 'allocation_pools': [{'start': '21.36.227.2', 'end': '21.36.227.62'}], 'gateway_ip': '21.36.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.36.227.2', 'tags': [], 'project_id': 'd12dee4a91904c1291002d560263ad78'}}
2026-02-23 19:08:36,731 - INFO - Created VN ctest-vn-80171492
2026-02-23 19:08:36,784 - DEBUG - VN ctest-vn-80171492 UUID is 553118b7-f883-40c8-9b84-0ceb08c85ff0
2026-02-23 19:08:36,899 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-15820947, 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-64155924:ctest-vn-80171492, 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-23 19:08:37,298 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f80e660d-4d89-45f6-bd2b-300e6cd5011f', 'name': 'ctest-vn-15820947', 'tenant_id': 'd12dee4a91904c1291002d560263ad78', 'project_id': 'd12dee4a91904c1291002d560263ad78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['08e5f95f-482b-4aee-b0dd-6acc654fa299'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-vn-15820947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-policy-allow-all-00663782']], 'subnet_ipam': [{'subnet_cidr': '53.0.86.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-23 19:08:37,715 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '553118b7-f883-40c8-9b84-0ceb08c85ff0', 'name': 'ctest-vn-80171492', 'tenant_id': 'd12dee4a91904c1291002d560263ad78', 'project_id': 'd12dee4a91904c1291002d560263ad78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07349aea-100c-4a4e-ad45-5b84e581af49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-vn-80171492'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-policy-allow-all-00663782']], 'subnet_ipam': [{'subnet_cidr': '21.36.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-23 19:08:37,883 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-23 19:08:38,230 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-23 19:08:38,277 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391
2026-02-23 19:08:38,309 - DEBUG - Requesting: http://10.0.0.50:8082/project/d12dee4a-9190-4c12-9100-2d560263ad78
2026-02-23 19:08:38,431 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f80e660d-4d89-45f6-bd2b-300e6cd5011f
2026-02-23 19:08:38,453 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f80e660d-4d89-45f6-bd2b-300e6cd5011f
2026-02-23 19:08:38,479 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4ac34d60-823c-48cc-9a38-012f234a51bb
2026-02-23 19:08:38,498 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4ac34d60-823c-48cc-9a38-012f234a51bb
2026-02-23 19:08:38,510 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b6dc1a3a-348a-4a49-b79a-fa2e118476fa
2026-02-23 19:08:38,521 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-23 19:08:38,521 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f80e660d-4d89-45f6-bd2b-300e6cd5011f
2026-02-23 19:08:38,536 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4ac34d60-823c-48cc-9a38-012f234a51bb
2026-02-23 19:08:38,562 - INFO - Verified VN network id 11 for VN f80e660d-4d89-45f6-bd2b-300e6cd5011f
2026-02-23 19:08:38,562 - INFO - Verifications in API Server for VN ctest-vn-15820947 passed
2026-02-23 19:08:38,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f80e660d-4d89-45f6-bd2b-300e6cd5011f
2026-02-23 19:08:38,588 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4ac34d60-823c-48cc-9a38-012f234a51bb
2026-02-23 19:08:38,603 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4ac34d60-823c-48cc-9a38-012f234a51bb
2026-02-23 19:08:38,617 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b6dc1a3a-348a-4a49-b79a-fa2e118476fa
2026-02-23 19:08:38,636 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-15820947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64155924', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17874336178401527286', 'uuid-lslong': '13631041535680512287'}, 'enable': 'true', 'created': '2026-02-23T19:08:35', 'last-modified': '2026-02-23T19:08:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372151'}
2026-02-23 19:08:38,646 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-23 19:08:38,646 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15820947 passed
2026-02-23 19:08:38,646 - DEBUG - ====Verifying policy data for ctest-vn-15820947 in API_Server ======
2026-02-23 19:08:38,647 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-23 19:08:38,656 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391
2026-02-23 19:08:38,683 - DEBUG - Requesting: http://10.0.0.50:8082/project/d12dee4a-9190-4c12-9100-2d560263ad78
2026-02-23 19:08:38,805 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f80e660d-4d89-45f6-bd2b-300e6cd5011f
2026-02-23 19:08:38,832 - DEBUG - ==>Verifying data for policy with id: 00f520c7-59f9-477e-8e84-8aa9f90cee07, fqn: ['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-policy-allow-all-00663782']
2026-02-23 19:08:38,832 - INFO - VN ctest-vn-15820947 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-23 19:08:38,833 - DEBUG - Verifying the vn in opserver
2026-02-23 19:08:38,833 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-15820947 virtual network link through opserver 10.0.0.50
2026-02-23 19:08:38,833 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-23 19:08:39,190 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-23 19:08:39,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-15820947', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-15820947?flat'}
2026-02-23 19:08:39,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-15820947 is found in opserver
2026-02-23 19:08:39,373 - DEBUG - Do not have enough data to verify VN in agent
2026-02-23 19:08:39,387 - DEBUG - VRF ids for VN ctest-vn-15820947: {}
2026-02-23 19:08:39,387 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-23 19:08:39,402 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391
2026-02-23 19:08:39,433 - DEBUG - Requesting: http://10.0.0.50:8082/project/d12dee4a-9190-4c12-9100-2d560263ad78
2026-02-23 19:08:39,556 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553118b7-f883-40c8-9b84-0ceb08c85ff0
2026-02-23 19:08:39,586 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553118b7-f883-40c8-9b84-0ceb08c85ff0
2026-02-23 19:08:39,609 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0eb291b7-899c-4eca-9b40-69053e983ce8
2026-02-23 19:08:39,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0eb291b7-899c-4eca-9b40-69053e983ce8
2026-02-23 19:08:39,645 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cf545f92-b1a1-4077-96d9-8d6d1986e0e7
2026-02-23 19:08:39,664 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-23 19:08:39,664 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553118b7-f883-40c8-9b84-0ceb08c85ff0
2026-02-23 19:08:39,684 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0eb291b7-899c-4eca-9b40-69053e983ce8
2026-02-23 19:08:39,724 - INFO - Verified VN network id 12 for VN 553118b7-f883-40c8-9b84-0ceb08c85ff0
2026-02-23 19:08:39,724 - INFO - Verifications in API Server for VN ctest-vn-80171492 passed
2026-02-23 19:08:39,724 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553118b7-f883-40c8-9b84-0ceb08c85ff0
2026-02-23 19:08:39,749 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0eb291b7-899c-4eca-9b40-69053e983ce8
2026-02-23 19:08:39,766 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0eb291b7-899c-4eca-9b40-69053e983ce8
2026-02-23 19:08:39,787 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cf545f92-b1a1-4077-96d9-8d6d1986e0e7
2026-02-23 19:08:39,814 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-80171492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64155924', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6138714945510129864', 'uuid-lslong': '11206095976408834032'}, 'enable': 'true', 'created': '2026-02-23T19:08:36', 'last-modified': '2026-02-23T19:08:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.200214'}
2026-02-23 19:08:39,833 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-23 19:08:39,833 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80171492 passed
2026-02-23 19:08:39,834 - DEBUG - ====Verifying policy data for ctest-vn-80171492 in API_Server ======
2026-02-23 19:08:39,834 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-23 19:08:39,848 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391
2026-02-23 19:08:39,878 - DEBUG - Requesting: http://10.0.0.50:8082/project/d12dee4a-9190-4c12-9100-2d560263ad78
2026-02-23 19:08:39,980 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553118b7-f883-40c8-9b84-0ceb08c85ff0
2026-02-23 19:08:39,996 - DEBUG - ==>Verifying data for policy with id: 00f520c7-59f9-477e-8e84-8aa9f90cee07, fqn: ['default-domain', 'ctest-TestBasicPolicy-64155924', 'ctest-policy-allow-all-00663782']
2026-02-23 19:08:39,997 - INFO - VN ctest-vn-80171492 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-23 19:08:39,997 - DEBUG - Verifying the vn in opserver
2026-02-23 19:08:39,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-80171492 virtual network link through opserver 10.0.0.50
2026-02-23 19:08:39,997 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-23 19:08:40,017 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-80171492', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-80171492?flat'}
2026-02-23 19:08:40,017 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64155924:ctest-vn-80171492 is found in opserver
2026-02-23 19:08:40,037 - DEBUG - Do not have enough data to verify VN in agent
2026-02-23 19:08:40,046 - DEBUG - VRF ids for VN ctest-vn-80171492: {}
2026-02-23 19:08:40,169 - DEBUG - Services list from nova: [