2026-03-02 02:08:48,413 - INFO - Domain Default found not creating
2026-03-02 02:08:48,609 - INFO - Project ctest-TestBasicPolicy-60007874 not found, creating it
2026-03-02 02:08:49,098 - INFO - Created Project:ctest-TestBasicPolicy-60007874, ID : 382fa46b-b109-42ae-9817-597ff1c6dcbd
2026-03-02 02:08:50,820 - INFO - ================================================================================
2026-03-02 02:08:50,820 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-02 02:08:50,820 - 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-03-02 02:08:51,080 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-03-02 02:08:51,081 - INFO - Initial checks done. Running the testcase now
2026-03-02 02:08:51,081 - INFO -
2026-03-02 02:08:51,705 - DEBUG - Response for create_network : {'network': {'id': 'f19feb13-41bb-450b-bce1-c4a60df4012e', 'name': 'ctest-vn-66890087', 'tenant_id': '382fa46bb10942ae9817597ff1c6dcbd', 'project_id': '382fa46bb10942ae9817597ff1c6dcbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-vn-66890087'], 'port_security_enabled': True, 'description': ''}}
2026-03-02 02:08:51,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '50a5e911-3568-4454-8e85-027689fff3d8', 'name': '', 'tenant_id': '382fa46bb10942ae9817597ff1c6dcbd', 'network_id': 'f19feb13-41bb-450b-bce1-c4a60df4012e', 'ip_version': 4, 'cidr': '139.28.163.64/26', 'allocation_pools': [{'start': '139.28.163.66', 'end': '139.28.163.126'}], 'gateway_ip': '139.28.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.28.163.66', 'tags': [], 'project_id': '382fa46bb10942ae9817597ff1c6dcbd'}}
2026-03-02 02:08:51,900 - INFO - Created VN ctest-vn-66890087
2026-03-02 02:08:51,957 - DEBUG - VN ctest-vn-66890087 UUID is f19feb13-41bb-450b-bce1-c4a60df4012e
2026-03-02 02:08:52,265 - DEBUG - Response for create_network : {'network': {'id': '241b1383-f0bf-4460-bfd6-8ff0a30fd134', 'name': 'ctest-vn-93591423', 'tenant_id': '382fa46bb10942ae9817597ff1c6dcbd', 'project_id': '382fa46bb10942ae9817597ff1c6dcbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-vn-93591423'], 'port_security_enabled': True, 'description': ''}}
2026-03-02 02:08:52,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f5d9d1d-8774-4dfd-a9ec-e4368e67c65b', 'name': '', 'tenant_id': '382fa46bb10942ae9817597ff1c6dcbd', 'network_id': '241b1383-f0bf-4460-bfd6-8ff0a30fd134', 'ip_version': 4, 'cidr': '43.230.15.192/26', 'allocation_pools': [{'start': '43.230.15.194', 'end': '43.230.15.254'}], 'gateway_ip': '43.230.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.230.15.194', 'tags': [], 'project_id': '382fa46bb10942ae9817597ff1c6dcbd'}}
2026-03-02 02:08:52,491 - INFO - Created VN ctest-vn-93591423
2026-03-02 02:08:52,549 - DEBUG - VN ctest-vn-93591423 UUID is 241b1383-f0bf-4460-bfd6-8ff0a30fd134
2026-03-02 02:08:52,668 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-66890087, 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-60007874:ctest-vn-93591423, 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-03-02 02:08:52,977 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f19feb13-41bb-450b-bce1-c4a60df4012e', 'name': 'ctest-vn-66890087', 'tenant_id': '382fa46bb10942ae9817597ff1c6dcbd', 'project_id': '382fa46bb10942ae9817597ff1c6dcbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50a5e911-3568-4454-8e85-027689fff3d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-vn-66890087'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-policy-allow-all-72633591']], 'subnet_ipam': [{'subnet_cidr': '139.28.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-02 02:08:53,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '241b1383-f0bf-4460-bfd6-8ff0a30fd134', 'name': 'ctest-vn-93591423', 'tenant_id': '382fa46bb10942ae9817597ff1c6dcbd', 'project_id': '382fa46bb10942ae9817597ff1c6dcbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f5d9d1d-8774-4dfd-a9ec-e4368e67c65b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-vn-93591423'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-policy-allow-all-72633591']], 'subnet_ipam': [{'subnet_cidr': '43.230.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-02 02:08:53,410 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-02 02:08:53,753 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-02 02:08:53,787 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8691ebb9-2e9c-4034-97ba-6b32566d9ef2
2026-03-02 02:08:53,800 - DEBUG - Requesting: http://10.0.0.50:8082/project/382fa46b-b109-42ae-9817-597ff1c6dcbd
2026-03-02 02:08:53,874 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f19feb13-41bb-450b-bce1-c4a60df4012e
2026-03-02 02:08:53,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f19feb13-41bb-450b-bce1-c4a60df4012e
2026-03-02 02:08:53,896 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd5ceb59-f271-4606-b40c-1ba273da7f45
2026-03-02 02:08:53,904 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd5ceb59-f271-4606-b40c-1ba273da7f45
2026-03-02 02:08:53,912 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e133c5da-3e8b-44de-983c-092c2220e134
2026-03-02 02:08:53,918 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-02 02:08:53,918 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f19feb13-41bb-450b-bce1-c4a60df4012e
2026-03-02 02:08:53,926 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd5ceb59-f271-4606-b40c-1ba273da7f45
2026-03-02 02:08:53,941 - INFO - Verified VN network id 11 for VN f19feb13-41bb-450b-bce1-c4a60df4012e
2026-03-02 02:08:53,941 - INFO - Verifications in API Server for VN ctest-vn-66890087 passed
2026-03-02 02:08:53,941 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f19feb13-41bb-450b-bce1-c4a60df4012e
2026-03-02 02:08:53,951 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd5ceb59-f271-4606-b40c-1ba273da7f45
2026-03-02 02:08:53,958 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bd5ceb59-f271-4606-b40c-1ba273da7f45
2026-03-02 02:08:53,966 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e133c5da-3e8b-44de-983c-092c2220e134
2026-03-02 02:08:53,980 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-66890087', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60007874', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17410893152377324811', 'uuid-lslong': '13610375766368059694'}, 'enable': 'true', 'created': '2026-03-02T02:08:51', 'last-modified': '2026-03-02T02:08:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029259'}
2026-03-02 02:08:53,986 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-02 02:08:53,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66890087 passed
2026-03-02 02:08:53,987 - DEBUG - ====Verifying policy data for ctest-vn-66890087 in API_Server ======
2026-03-02 02:08:53,987 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-02 02:08:53,992 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8691ebb9-2e9c-4034-97ba-6b32566d9ef2
2026-03-02 02:08:54,004 - DEBUG - Requesting: http://10.0.0.50:8082/project/382fa46b-b109-42ae-9817-597ff1c6dcbd
2026-03-02 02:08:54,075 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f19feb13-41bb-450b-bce1-c4a60df4012e
2026-03-02 02:08:54,087 - DEBUG - ==>Verifying data for policy with id: b4dae0a1-55f5-4b4b-8a68-d6df940ee8ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-policy-allow-all-72633591']
2026-03-02 02:08:54,087 - INFO - VN ctest-vn-66890087 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-02 02:08:54,087 - DEBUG - Verifying the vn in opserver
2026-03-02 02:08:54,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-66890087 virtual network link through opserver 10.0.0.50
2026-03-02 02:08:54,087 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-02 02:08:54,425 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-02 02:08:54,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-66890087', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-66890087?flat'}
2026-03-02 02:08:54,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-66890087 is found in opserver
2026-03-02 02:08:54,511 - DEBUG - Do not have enough data to verify VN in agent
2026-03-02 02:08:54,516 - DEBUG - VRF ids for VN ctest-vn-66890087: {}
2026-03-02 02:08:54,516 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-02 02:08:54,522 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8691ebb9-2e9c-4034-97ba-6b32566d9ef2
2026-03-02 02:08:54,536 - DEBUG - Requesting: http://10.0.0.50:8082/project/382fa46b-b109-42ae-9817-597ff1c6dcbd
2026-03-02 02:08:54,610 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/241b1383-f0bf-4460-bfd6-8ff0a30fd134
2026-03-02 02:08:54,623 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/241b1383-f0bf-4460-bfd6-8ff0a30fd134
2026-03-02 02:08:54,635 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b2ce48a-32e0-4a92-84fd-4f14a6fc42b7
2026-03-02 02:08:54,643 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b2ce48a-32e0-4a92-84fd-4f14a6fc42b7
2026-03-02 02:08:54,651 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c667c6ed-9fb7-42c9-8101-08550647e3dd
2026-03-02 02:08:54,659 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-02 02:08:54,659 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/241b1383-f0bf-4460-bfd6-8ff0a30fd134
2026-03-02 02:08:54,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b2ce48a-32e0-4a92-84fd-4f14a6fc42b7
2026-03-02 02:08:54,686 - INFO - Verified VN network id 12 for VN 241b1383-f0bf-4460-bfd6-8ff0a30fd134
2026-03-02 02:08:54,686 - INFO - Verifications in API Server for VN ctest-vn-93591423 passed
2026-03-02 02:08:54,686 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/241b1383-f0bf-4460-bfd6-8ff0a30fd134
2026-03-02 02:08:54,697 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b2ce48a-32e0-4a92-84fd-4f14a6fc42b7
2026-03-02 02:08:54,704 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b2ce48a-32e0-4a92-84fd-4f14a6fc42b7
2026-03-02 02:08:54,713 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c667c6ed-9fb7-42c9-8101-08550647e3dd
2026-03-02 02:08:54,728 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-93591423', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60007874', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2601694667137303648', 'uuid-lslong': '13823394369950961972'}, 'enable': 'true', 'created': '2026-03-02T02:08:52', 'last-modified': '2026-03-02T02:08:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534083'}
2026-03-02 02:08:54,735 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-02 02:08:54,735 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93591423 passed
2026-03-02 02:08:54,735 - DEBUG - ====Verifying policy data for ctest-vn-93591423 in API_Server ======
2026-03-02 02:08:54,735 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-02 02:08:54,741 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8691ebb9-2e9c-4034-97ba-6b32566d9ef2
2026-03-02 02:08:54,753 - DEBUG - Requesting: http://10.0.0.50:8082/project/382fa46b-b109-42ae-9817-597ff1c6dcbd
2026-03-02 02:08:54,827 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/241b1383-f0bf-4460-bfd6-8ff0a30fd134
2026-03-02 02:08:54,836 - DEBUG - ==>Verifying data for policy with id: b4dae0a1-55f5-4b4b-8a68-d6df940ee8ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-60007874', 'ctest-policy-allow-all-72633591']
2026-03-02 02:08:54,836 - INFO - VN ctest-vn-93591423 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-02 02:08:54,836 - DEBUG - Verifying the vn in opserver
2026-03-02 02:08:54,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-93591423 virtual network link through opserver 10.0.0.50
2026-03-02 02:08:54,836 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-02 02:08:54,847 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-93591423', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-93591423?flat'}
2026-03-02 02:08:54,847 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60007874:ctest-vn-93591423 is found in opserver
2026-03-02 02:08:54,858 - DEBUG - Do not have enough data to verify VN in agent
2026-03-02 02:08:54,863 - DEBUG - VRF ids for VN ctest-vn-93591423: {}
2026-03-02 02:08:54,930 - DEBUG - Services list from nova: [