2026-08-21 05:17:47,904 - INFO - Domain Default found not creating
2026-08-21 05:17:48,064 - INFO - Project ctest-TestBasicPolicy-90834018 not found, creating it
2026-08-21 05:17:48,545 - INFO - Created Project:ctest-TestBasicPolicy-90834018, ID : 28547bbf-286f-4793-be05-6de92d5afa2c
2026-08-21 05:17:50,081 - INFO - ================================================================================
2026-08-21 05:17:50,081 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-21 05:17:50,081 - 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-08-21 05:17:50,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with
2026-08-21 05:17:50,342 - INFO - Initial checks done. Running the testcase now
2026-08-21 05:17:50,342 - INFO -
2026-08-21 05:17:50,922 - DEBUG - Response for create_network : {'network': {'id': '968e2ca4-cde8-44c1-ad24-60208e5e6258', 'name': 'ctest-vn-50878818', 'tenant_id': '28547bbf286f4793be056de92d5afa2c', 'project_id': '28547bbf286f4793be056de92d5afa2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-vn-50878818'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:17:51,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bce4dee-478b-4bcc-99ae-5bc4e5ff6a3b', 'name': '', 'tenant_id': '28547bbf286f4793be056de92d5afa2c', 'network_id': '968e2ca4-cde8-44c1-ad24-60208e5e6258', 'ip_version': 4, 'cidr': '79.119.131.64/26', 'allocation_pools': [{'start': '79.119.131.66', 'end': '79.119.131.126'}], 'gateway_ip': '79.119.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.119.131.66', 'tags': [], 'project_id': '28547bbf286f4793be056de92d5afa2c'}}
2026-08-21 05:17:51,123 - INFO - Created VN ctest-vn-50878818
2026-08-21 05:17:51,173 - DEBUG - VN ctest-vn-50878818 UUID is 968e2ca4-cde8-44c1-ad24-60208e5e6258
2026-08-21 05:17:51,457 - DEBUG - Response for create_network : {'network': {'id': '268c3bda-b729-481c-a9f0-458f35b81e7a', 'name': 'ctest-vn-73657249', 'tenant_id': '28547bbf286f4793be056de92d5afa2c', 'project_id': '28547bbf286f4793be056de92d5afa2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-vn-73657249'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:17:51,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '3771c61b-0a1f-45ab-aee0-a9c6ab9ffd80', 'name': '', 'tenant_id': '28547bbf286f4793be056de92d5afa2c', 'network_id': '268c3bda-b729-481c-a9f0-458f35b81e7a', 'ip_version': 4, 'cidr': '136.62.226.192/26', 'allocation_pools': [{'start': '136.62.226.194', 'end': '136.62.226.254'}], 'gateway_ip': '136.62.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.62.226.194', 'tags': [], 'project_id': '28547bbf286f4793be056de92d5afa2c'}}
2026-08-21 05:17:51,676 - INFO - Created VN ctest-vn-73657249
2026-08-21 05:17:51,733 - DEBUG - VN ctest-vn-73657249 UUID is 268c3bda-b729-481c-a9f0-458f35b81e7a
2026-08-21 05:17:51,889 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-50878818, 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-90834018:ctest-vn-73657249, 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-08-21 05:17:52,197 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '968e2ca4-cde8-44c1-ad24-60208e5e6258', 'name': 'ctest-vn-50878818', 'tenant_id': '28547bbf286f4793be056de92d5afa2c', 'project_id': '28547bbf286f4793be056de92d5afa2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9bce4dee-478b-4bcc-99ae-5bc4e5ff6a3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-vn-50878818'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-policy-allow-all-39650695']], 'subnet_ipam': [{'subnet_cidr': '79.119.131.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:17:52,445 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '268c3bda-b729-481c-a9f0-458f35b81e7a', 'name': 'ctest-vn-73657249', 'tenant_id': '28547bbf286f4793be056de92d5afa2c', 'project_id': '28547bbf286f4793be056de92d5afa2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['3771c61b-0a1f-45ab-aee0-a9c6ab9ffd80'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-vn-73657249'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-policy-allow-all-39650695']], 'subnet_ipam': [{'subnet_cidr': '136.62.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 05:17:52,601 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 05:17:52,934 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 05:17:52,964 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9
2026-08-21 05:17:52,975 - DEBUG - Requesting: http://10.0.0.162:8082/project/28547bbf-286f-4793-be05-6de92d5afa2c
2026-08-21 05:17:53,057 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/968e2ca4-cde8-44c1-ad24-60208e5e6258
2026-08-21 05:17:53,068 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/968e2ca4-cde8-44c1-ad24-60208e5e6258
2026-08-21 05:17:53,078 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/00ed123e-b758-4f9e-8581-337e85624517
2026-08-21 05:17:53,086 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/00ed123e-b758-4f9e-8581-337e85624517
2026-08-21 05:17:53,093 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/7ece24f0-f172-45fb-8825-c125ec85e911
2026-08-21 05:17:53,100 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 05:17:53,100 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/968e2ca4-cde8-44c1-ad24-60208e5e6258
2026-08-21 05:17:53,109 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/00ed123e-b758-4f9e-8581-337e85624517
2026-08-21 05:17:53,124 - INFO - Verified VN network id 10 for VN 968e2ca4-cde8-44c1-ad24-60208e5e6258
2026-08-21 05:17:53,124 - INFO - Verifications in API Server for VN ctest-vn-50878818 passed
2026-08-21 05:17:53,124 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/968e2ca4-cde8-44c1-ad24-60208e5e6258
2026-08-21 05:17:53,133 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/00ed123e-b758-4f9e-8581-337e85624517
2026-08-21 05:17:53,142 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/00ed123e-b758-4f9e-8581-337e85624517
2026-08-21 05:17:53,152 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/7ece24f0-f172-45fb-8825-c125ec85e911
2026-08-21 05:17:53,165 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-50878818', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90834018', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10848657638722913473', 'uuid-lslong': '12476202560666886744'}, 'enable': 'true', 'created': '2026-08-21T05:17:50', 'last-modified': '2026-08-21T05:17:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993797'}
2026-08-21 05:17:53,172 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 05:17:53,172 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50878818 passed
2026-08-21 05:17:53,173 - DEBUG - ====Verifying policy data for ctest-vn-50878818 in API_Server ======
2026-08-21 05:17:53,173 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 05:17:53,178 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9
2026-08-21 05:17:53,189 - DEBUG - Requesting: http://10.0.0.162:8082/project/28547bbf-286f-4793-be05-6de92d5afa2c
2026-08-21 05:17:53,261 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/968e2ca4-cde8-44c1-ad24-60208e5e6258
2026-08-21 05:17:53,272 - DEBUG - ==>Verifying data for policy with id: c4eadac0-9f59-4639-b9b4-f96043960f72, fqn: ['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-policy-allow-all-39650695']
2026-08-21 05:17:53,272 - INFO - VN ctest-vn-50878818 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 05:17:53,272 - DEBUG - Verifying the vn in opserver
2026-08-21 05:17:53,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-50878818 virtual network link through opserver 10.0.0.162
2026-08-21 05:17:53,273 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-21 05:17:53,596 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-21 05:17:53,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-50878818', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-50878818?flat'}
2026-08-21 05:17:53,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-50878818 is found in opserver
2026-08-21 05:17:53,659 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 05:17:53,664 - DEBUG - VRF ids for VN ctest-vn-50878818: {}
2026-08-21 05:17:53,664 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 05:17:53,669 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9
2026-08-21 05:17:53,680 - DEBUG - Requesting: http://10.0.0.162:8082/project/28547bbf-286f-4793-be05-6de92d5afa2c
2026-08-21 05:17:53,759 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/268c3bda-b729-481c-a9f0-458f35b81e7a
2026-08-21 05:17:53,770 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/268c3bda-b729-481c-a9f0-458f35b81e7a
2026-08-21 05:17:53,779 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/3843f68e-dd77-47ae-a58d-7c55e3256dce
2026-08-21 05:17:53,787 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/3843f68e-dd77-47ae-a58d-7c55e3256dce
2026-08-21 05:17:53,796 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/b949cf2e-eb77-4aba-8e7a-bc8aa243d6bc
2026-08-21 05:17:53,804 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 05:17:53,804 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/268c3bda-b729-481c-a9f0-458f35b81e7a
2026-08-21 05:17:53,815 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/3843f68e-dd77-47ae-a58d-7c55e3256dce
2026-08-21 05:17:53,830 - INFO - Verified VN network id 11 for VN 268c3bda-b729-481c-a9f0-458f35b81e7a
2026-08-21 05:17:53,831 - INFO - Verifications in API Server for VN ctest-vn-73657249 passed
2026-08-21 05:17:53,831 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/268c3bda-b729-481c-a9f0-458f35b81e7a
2026-08-21 05:17:53,841 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/3843f68e-dd77-47ae-a58d-7c55e3256dce
2026-08-21 05:17:53,848 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/3843f68e-dd77-47ae-a58d-7c55e3256dce
2026-08-21 05:17:53,855 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/b949cf2e-eb77-4aba-8e7a-bc8aa243d6bc
2026-08-21 05:17:53,867 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-73657249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90834018', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2777660880742598684', 'uuid-lslong': '12245363868204277370'}, 'enable': 'true', 'created': '2026-08-21T05:17:51', 'last-modified': '2026-08-21T05:17:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459307'}
2026-08-21 05:17:53,873 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 05:17:53,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73657249 passed
2026-08-21 05:17:53,873 - DEBUG - ====Verifying policy data for ctest-vn-73657249 in API_Server ======
2026-08-21 05:17:53,873 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-21 05:17:53,879 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9
2026-08-21 05:17:53,892 - DEBUG - Requesting: http://10.0.0.162:8082/project/28547bbf-286f-4793-be05-6de92d5afa2c
2026-08-21 05:17:53,967 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/268c3bda-b729-481c-a9f0-458f35b81e7a
2026-08-21 05:17:53,978 - DEBUG - ==>Verifying data for policy with id: c4eadac0-9f59-4639-b9b4-f96043960f72, fqn: ['default-domain', 'ctest-TestBasicPolicy-90834018', 'ctest-policy-allow-all-39650695']
2026-08-21 05:17:53,978 - INFO - VN ctest-vn-73657249 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 05:17:53,978 - DEBUG - Verifying the vn in opserver
2026-08-21 05:17:53,978 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-73657249 virtual network link through opserver 10.0.0.162
2026-08-21 05:17:53,978 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-21 05:17:53,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-73657249', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-73657249?flat'}
2026-08-21 05:17:53,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90834018:ctest-vn-73657249 is found in opserver
2026-08-21 05:17:54,000 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 05:17:54,008 - DEBUG - VRF ids for VN ctest-vn-73657249: {}
2026-08-21 05:17:54,071 - DEBUG - Services list from nova: [