2026-07-29 15:35:06,326 - INFO - Domain Default found not creating
2026-07-29 15:35:06,525 - INFO - Project ctest-TestBasicPolicy-82225848 not found, creating it
2026-07-29 15:35:07,032 - INFO - Created Project:ctest-TestBasicPolicy-82225848, ID : 86939739-80b3-466d-b3ed-4b9c45f4deba
2026-07-29 15:35:08,878 - INFO - ================================================================================
2026-07-29 15:35:08,878 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-29 15:35:08,878 - 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-07-29 15:35:09,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-07-29 15:35:09,160 - INFO - Initial checks done. Running the testcase now
2026-07-29 15:35:09,160 - INFO -
2026-07-29 15:35:09,872 - DEBUG - Response for create_network : {'network': {'id': '2c33b4a9-6c02-4e23-92f2-b04eff1251d6', 'name': 'ctest-vn-82432773', 'tenant_id': '8693973980b3466db3ed4b9c45f4deba', 'project_id': '8693973980b3466db3ed4b9c45f4deba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-vn-82432773'], 'port_security_enabled': True, 'description': ''}}
2026-07-29 15:35:10,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '630bb5df-9555-4639-a427-ce8f7bdc2a6f', 'name': '', 'tenant_id': '8693973980b3466db3ed4b9c45f4deba', 'network_id': '2c33b4a9-6c02-4e23-92f2-b04eff1251d6', 'ip_version': 4, 'cidr': '79.137.0.192/26', 'allocation_pools': [{'start': '79.137.0.194', 'end': '79.137.0.254'}], 'gateway_ip': '79.137.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.137.0.194', 'tags': [], 'project_id': '8693973980b3466db3ed4b9c45f4deba'}}
2026-07-29 15:35:10,125 - INFO - Created VN ctest-vn-82432773
2026-07-29 15:35:10,181 - DEBUG - VN ctest-vn-82432773 UUID is 2c33b4a9-6c02-4e23-92f2-b04eff1251d6
2026-07-29 15:35:10,834 - DEBUG - Response for create_network : {'network': {'id': '6e3b4c57-2dc6-45d2-8d44-a62002abb4d5', 'name': 'ctest-vn-72224792', 'tenant_id': '8693973980b3466db3ed4b9c45f4deba', 'project_id': '8693973980b3466db3ed4b9c45f4deba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-vn-72224792'], 'port_security_enabled': True, 'description': ''}}
2026-07-29 15:35:11,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '233f4022-34fe-412a-bcbc-40c61f3205c9', 'name': '', 'tenant_id': '8693973980b3466db3ed4b9c45f4deba', 'network_id': '6e3b4c57-2dc6-45d2-8d44-a62002abb4d5', 'ip_version': 4, 'cidr': '14.233.79.128/26', 'allocation_pools': [{'start': '14.233.79.130', 'end': '14.233.79.190'}], 'gateway_ip': '14.233.79.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.233.79.130', 'tags': [], 'project_id': '8693973980b3466db3ed4b9c45f4deba'}}
2026-07-29 15:35:11,088 - INFO - Created VN ctest-vn-72224792
2026-07-29 15:35:11,145 - DEBUG - VN ctest-vn-72224792 UUID is 6e3b4c57-2dc6-45d2-8d44-a62002abb4d5
2026-07-29 15:35:11,276 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-82432773, 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-82225848:ctest-vn-72224792, 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-07-29 15:35:11,622 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c33b4a9-6c02-4e23-92f2-b04eff1251d6', 'name': 'ctest-vn-82432773', 'tenant_id': '8693973980b3466db3ed4b9c45f4deba', 'project_id': '8693973980b3466db3ed4b9c45f4deba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['630bb5df-9555-4639-a427-ce8f7bdc2a6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-vn-82432773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-policy-allow-all-67577387']], 'subnet_ipam': [{'subnet_cidr': '79.137.0.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-29 15:35:11,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e3b4c57-2dc6-45d2-8d44-a62002abb4d5', 'name': 'ctest-vn-72224792', 'tenant_id': '8693973980b3466db3ed4b9c45f4deba', 'project_id': '8693973980b3466db3ed4b9c45f4deba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['233f4022-34fe-412a-bcbc-40c61f3205c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-vn-72224792'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-policy-allow-all-67577387']], 'subnet_ipam': [{'subnet_cidr': '14.233.79.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-29 15:35:12,053 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 15:35:12,437 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 15:35:12,469 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d0cfa024-0e49-44b6-bd63-52d69750acc1
2026-07-29 15:35:12,484 - DEBUG - Requesting: http://10.0.0.38:8082/project/86939739-80b3-466d-b3ed-4b9c45f4deba
2026-07-29 15:35:12,575 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c33b4a9-6c02-4e23-92f2-b04eff1251d6
2026-07-29 15:35:12,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c33b4a9-6c02-4e23-92f2-b04eff1251d6
2026-07-29 15:35:12,600 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42692b1b-13c6-4c73-a6a4-e470205e7ff2
2026-07-29 15:35:12,608 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42692b1b-13c6-4c73-a6a4-e470205e7ff2
2026-07-29 15:35:12,617 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b568314-56f0-4a50-b706-2d8a25907753
2026-07-29 15:35:12,626 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-29 15:35:12,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c33b4a9-6c02-4e23-92f2-b04eff1251d6
2026-07-29 15:35:12,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42692b1b-13c6-4c73-a6a4-e470205e7ff2
2026-07-29 15:35:12,657 - INFO - Verified VN network id 11 for VN 2c33b4a9-6c02-4e23-92f2-b04eff1251d6
2026-07-29 15:35:12,657 - INFO - Verifications in API Server for VN ctest-vn-82432773 passed
2026-07-29 15:35:12,657 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c33b4a9-6c02-4e23-92f2-b04eff1251d6
2026-07-29 15:35:12,671 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42692b1b-13c6-4c73-a6a4-e470205e7ff2
2026-07-29 15:35:12,680 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/42692b1b-13c6-4c73-a6a4-e470205e7ff2
2026-07-29 15:35:12,689 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b568314-56f0-4a50-b706-2d8a25907753
2026-07-29 15:35:12,703 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-82432773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82225848', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3185088001235635747', 'uuid-lslong': '10588719527234785750'}, 'enable': 'true', 'created': '2026-07-29T15:35:09', 'last-modified': '2026-07-29T15:35:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.104743'}
2026-07-29 15:35:12,711 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-29 15:35:12,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82432773 passed
2026-07-29 15:35:12,712 - DEBUG - ====Verifying policy data for ctest-vn-82432773 in API_Server ======
2026-07-29 15:35:12,712 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 15:35:12,719 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d0cfa024-0e49-44b6-bd63-52d69750acc1
2026-07-29 15:35:12,733 - DEBUG - Requesting: http://10.0.0.38:8082/project/86939739-80b3-466d-b3ed-4b9c45f4deba
2026-07-29 15:35:12,815 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c33b4a9-6c02-4e23-92f2-b04eff1251d6
2026-07-29 15:35:12,826 - DEBUG - ==>Verifying data for policy with id: d815457e-c5f5-438e-a6a7-70f6e1032ca1, fqn: ['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-policy-allow-all-67577387']
2026-07-29 15:35:12,826 - INFO - VN ctest-vn-82432773 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-29 15:35:12,826 - DEBUG - Verifying the vn in opserver
2026-07-29 15:35:12,826 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-82432773 virtual network link through opserver 10.0.0.38
2026-07-29 15:35:12,827 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-29 15:35:13,201 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-29 15:35:13,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-82432773', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-82432773?flat'}
2026-07-29 15:35:13,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-82432773 is found in opserver
2026-07-29 15:35:13,274 - DEBUG - Do not have enough data to verify VN in agent
2026-07-29 15:35:13,279 - DEBUG - VRF ids for VN ctest-vn-82432773: {}
2026-07-29 15:35:13,279 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 15:35:13,286 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d0cfa024-0e49-44b6-bd63-52d69750acc1
2026-07-29 15:35:13,299 - DEBUG - Requesting: http://10.0.0.38:8082/project/86939739-80b3-466d-b3ed-4b9c45f4deba
2026-07-29 15:35:13,381 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e3b4c57-2dc6-45d2-8d44-a62002abb4d5
2026-07-29 15:35:13,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e3b4c57-2dc6-45d2-8d44-a62002abb4d5
2026-07-29 15:35:13,408 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2427ce1f-34fe-4b99-b295-90bfe1ed3532
2026-07-29 15:35:13,418 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2427ce1f-34fe-4b99-b295-90bfe1ed3532
2026-07-29 15:35:13,427 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0846aecf-f2be-4432-9696-b3c988f6d10e
2026-07-29 15:35:13,434 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-29 15:35:13,434 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e3b4c57-2dc6-45d2-8d44-a62002abb4d5
2026-07-29 15:35:13,445 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2427ce1f-34fe-4b99-b295-90bfe1ed3532
2026-07-29 15:35:13,462 - INFO - Verified VN network id 12 for VN 6e3b4c57-2dc6-45d2-8d44-a62002abb4d5
2026-07-29 15:35:13,462 - INFO - Verifications in API Server for VN ctest-vn-72224792 passed
2026-07-29 15:35:13,462 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e3b4c57-2dc6-45d2-8d44-a62002abb4d5
2026-07-29 15:35:13,473 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2427ce1f-34fe-4b99-b295-90bfe1ed3532
2026-07-29 15:35:13,481 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2427ce1f-34fe-4b99-b295-90bfe1ed3532
2026-07-29 15:35:13,490 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0846aecf-f2be-4432-9696-b3c988f6d10e
2026-07-29 15:35:13,505 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-72224792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82225848', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7943026305111836114', 'uuid-lslong': '10179443714178135253'}, 'enable': 'true', 'created': '2026-07-29T15:35:10', 'last-modified': '2026-07-29T15:35:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.649565'}
2026-07-29 15:35:13,513 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-29 15:35:13,513 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72224792 passed
2026-07-29 15:35:13,513 - DEBUG - ====Verifying policy data for ctest-vn-72224792 in API_Server ======
2026-07-29 15:35:13,513 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 15:35:13,521 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d0cfa024-0e49-44b6-bd63-52d69750acc1
2026-07-29 15:35:13,537 - DEBUG - Requesting: http://10.0.0.38:8082/project/86939739-80b3-466d-b3ed-4b9c45f4deba
2026-07-29 15:35:13,620 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e3b4c57-2dc6-45d2-8d44-a62002abb4d5
2026-07-29 15:35:13,634 - DEBUG - ==>Verifying data for policy with id: d815457e-c5f5-438e-a6a7-70f6e1032ca1, fqn: ['default-domain', 'ctest-TestBasicPolicy-82225848', 'ctest-policy-allow-all-67577387']
2026-07-29 15:35:13,634 - INFO - VN ctest-vn-72224792 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-29 15:35:13,635 - DEBUG - Verifying the vn in opserver
2026-07-29 15:35:13,635 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-72224792 virtual network link through opserver 10.0.0.38
2026-07-29 15:35:13,635 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-29 15:35:13,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-72224792', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-72224792?flat'}
2026-07-29 15:35:13,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82225848:ctest-vn-72224792 is found in opserver
2026-07-29 15:35:13,660 - DEBUG - Do not have enough data to verify VN in agent
2026-07-29 15:35:13,666 - DEBUG - VRF ids for VN ctest-vn-72224792: {}
2026-07-29 15:35:13,748 - DEBUG - Services list from nova: [