2026-07-06 15:08:45,850 - INFO - Domain Default found not creating
2026-07-06 15:08:46,002 - INFO - Project ctest-TestBasicPolicy-69848528 not found, creating it
2026-07-06 15:08:46,469 - INFO - Created Project:ctest-TestBasicPolicy-69848528, ID : 54ff94bc-9d2b-433e-a3f2-58337a17f89b
2026-07-06 15:08:48,024 - INFO - ================================================================================
2026-07-06 15:08:48,024 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-06 15:08:48,024 - 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-06 15:08:48,280 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2026-07-06 15:08:48,280 - INFO - Initial checks done. Running the testcase now
2026-07-06 15:08:48,280 - INFO -
2026-07-06 15:08:48,867 - DEBUG - Response for create_network : {'network': {'id': 'e37a5eb8-2977-4246-b996-77006abc428e', 'name': 'ctest-vn-68757998', 'tenant_id': '54ff94bc9d2b433ea3f258337a17f89b', 'project_id': '54ff94bc9d2b433ea3f258337a17f89b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-vn-68757998'], 'port_security_enabled': True, 'description': ''}}
2026-07-06 15:08:49,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '3221f9d9-bb73-43c0-9559-863d7c6edc4c', 'name': '', 'tenant_id': '54ff94bc9d2b433ea3f258337a17f89b', 'network_id': 'e37a5eb8-2977-4246-b996-77006abc428e', 'ip_version': 4, 'cidr': '52.90.177.64/26', 'allocation_pools': [{'start': '52.90.177.66', 'end': '52.90.177.126'}], 'gateway_ip': '52.90.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.90.177.66', 'tags': [], 'project_id': '54ff94bc9d2b433ea3f258337a17f89b'}}
2026-07-06 15:08:49,109 - INFO - Created VN ctest-vn-68757998
2026-07-06 15:08:49,161 - DEBUG - VN ctest-vn-68757998 UUID is e37a5eb8-2977-4246-b996-77006abc428e
2026-07-06 15:08:49,465 - DEBUG - Response for create_network : {'network': {'id': '2933c6f2-d9f8-40f2-aba6-46caf99c690f', 'name': 'ctest-vn-05574248', 'tenant_id': '54ff94bc9d2b433ea3f258337a17f89b', 'project_id': '54ff94bc9d2b433ea3f258337a17f89b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-vn-05574248'], 'port_security_enabled': True, 'description': ''}}
2026-07-06 15:08:49,673 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd2b002a-750b-4591-ae4f-cc4f5e2ab272', 'name': '', 'tenant_id': '54ff94bc9d2b433ea3f258337a17f89b', 'network_id': '2933c6f2-d9f8-40f2-aba6-46caf99c690f', 'ip_version': 4, 'cidr': '13.103.125.0/26', 'allocation_pools': [{'start': '13.103.125.2', 'end': '13.103.125.62'}], 'gateway_ip': '13.103.125.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.103.125.2', 'tags': [], 'project_id': '54ff94bc9d2b433ea3f258337a17f89b'}}
2026-07-06 15:08:49,687 - INFO - Created VN ctest-vn-05574248
2026-07-06 15:08:49,737 - DEBUG - VN ctest-vn-05574248 UUID is 2933c6f2-d9f8-40f2-aba6-46caf99c690f
2026-07-06 15:08:49,881 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-68757998, 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-69848528:ctest-vn-05574248, 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-06 15:08:50,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e37a5eb8-2977-4246-b996-77006abc428e', 'name': 'ctest-vn-68757998', 'tenant_id': '54ff94bc9d2b433ea3f258337a17f89b', 'project_id': '54ff94bc9d2b433ea3f258337a17f89b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3221f9d9-bb73-43c0-9559-863d7c6edc4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-vn-68757998'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-policy-allow-all-05479549']], 'subnet_ipam': [{'subnet_cidr': '52.90.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-06 15:08:50,378 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2933c6f2-d9f8-40f2-aba6-46caf99c690f', 'name': 'ctest-vn-05574248', 'tenant_id': '54ff94bc9d2b433ea3f258337a17f89b', 'project_id': '54ff94bc9d2b433ea3f258337a17f89b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd2b002a-750b-4591-ae4f-cc4f5e2ab272'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-vn-05574248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-policy-allow-all-05479549']], 'subnet_ipam': [{'subnet_cidr': '13.103.125.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-06 15:08:50,545 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-07-06 15:08:50,873 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-07-06 15:08:50,900 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0264fbcd-f957-4e90-9c9d-245a715bbdc1
2026-07-06 15:08:50,911 - DEBUG - Requesting: http://10.0.0.249:8082/project/54ff94bc-9d2b-433e-a3f2-58337a17f89b
2026-07-06 15:08:50,983 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e37a5eb8-2977-4246-b996-77006abc428e
2026-07-06 15:08:50,996 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e37a5eb8-2977-4246-b996-77006abc428e
2026-07-06 15:08:51,008 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76efe671-d7d3-4223-8bdd-9e09bfba7c8d
2026-07-06 15:08:51,017 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76efe671-d7d3-4223-8bdd-9e09bfba7c8d
2026-07-06 15:08:51,024 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/82c035f1-1e78-4379-aa6e-d4c25e96f90c
2026-07-06 15:08:51,029 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-06 15:08:51,029 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e37a5eb8-2977-4246-b996-77006abc428e
2026-07-06 15:08:51,038 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76efe671-d7d3-4223-8bdd-9e09bfba7c8d
2026-07-06 15:08:51,052 - INFO - Verified VN network id 10 for VN e37a5eb8-2977-4246-b996-77006abc428e
2026-07-06 15:08:51,052 - INFO - Verifications in API Server for VN ctest-vn-68757998 passed
2026-07-06 15:08:51,052 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e37a5eb8-2977-4246-b996-77006abc428e
2026-07-06 15:08:51,062 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76efe671-d7d3-4223-8bdd-9e09bfba7c8d
2026-07-06 15:08:51,070 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/76efe671-d7d3-4223-8bdd-9e09bfba7c8d
2026-07-06 15:08:51,077 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/82c035f1-1e78-4379-aa6e-d4c25e96f90c
2026-07-06 15:08:51,090 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-68757998', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69848528', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16391517938831016518', 'uuid-lslong': '13373006987197694606'}, 'enable': 'true', 'created': '2026-07-06T15:08:48', 'last-modified': '2026-07-06T15:08:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947892'}
2026-07-06 15:08:51,097 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-06 15:08:51,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68757998 passed
2026-07-06 15:08:51,098 - DEBUG - ====Verifying policy data for ctest-vn-68757998 in API_Server ======
2026-07-06 15:08:51,098 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-07-06 15:08:51,104 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0264fbcd-f957-4e90-9c9d-245a715bbdc1
2026-07-06 15:08:51,114 - DEBUG - Requesting: http://10.0.0.249:8082/project/54ff94bc-9d2b-433e-a3f2-58337a17f89b
2026-07-06 15:08:51,181 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e37a5eb8-2977-4246-b996-77006abc428e
2026-07-06 15:08:51,189 - DEBUG - ==>Verifying data for policy with id: 71916347-d13c-47b9-b2f0-6d8775204a8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-policy-allow-all-05479549']
2026-07-06 15:08:51,189 - INFO - VN ctest-vn-68757998 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-06 15:08:51,190 - DEBUG - Verifying the vn in opserver
2026-07-06 15:08:51,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-68757998 virtual network link through opserver 10.0.0.249
2026-07-06 15:08:51,190 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-07-06 15:08:51,508 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-07-06 15:08:51,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-68757998', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-68757998?flat'}
2026-07-06 15:08:51,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-68757998 is found in opserver
2026-07-06 15:08:51,564 - DEBUG - Do not have enough data to verify VN in agent
2026-07-06 15:08:51,569 - DEBUG - VRF ids for VN ctest-vn-68757998: {}
2026-07-06 15:08:51,569 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-07-06 15:08:51,574 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0264fbcd-f957-4e90-9c9d-245a715bbdc1
2026-07-06 15:08:51,587 - DEBUG - Requesting: http://10.0.0.249:8082/project/54ff94bc-9d2b-433e-a3f2-58337a17f89b
2026-07-06 15:08:51,651 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2933c6f2-d9f8-40f2-aba6-46caf99c690f
2026-07-06 15:08:51,661 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2933c6f2-d9f8-40f2-aba6-46caf99c690f
2026-07-06 15:08:51,669 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cba3bc3e-79d3-4a35-ac30-66b3a85efa5b
2026-07-06 15:08:51,675 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cba3bc3e-79d3-4a35-ac30-66b3a85efa5b
2026-07-06 15:08:51,680 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9d10a73a-9df1-433d-9e1e-7c501fca6622
2026-07-06 15:08:51,686 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-06 15:08:51,686 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2933c6f2-d9f8-40f2-aba6-46caf99c690f
2026-07-06 15:08:51,696 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cba3bc3e-79d3-4a35-ac30-66b3a85efa5b
2026-07-06 15:08:51,709 - INFO - Verified VN network id 11 for VN 2933c6f2-d9f8-40f2-aba6-46caf99c690f
2026-07-06 15:08:51,709 - INFO - Verifications in API Server for VN ctest-vn-05574248 passed
2026-07-06 15:08:51,709 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2933c6f2-d9f8-40f2-aba6-46caf99c690f
2026-07-06 15:08:51,717 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cba3bc3e-79d3-4a35-ac30-66b3a85efa5b
2026-07-06 15:08:51,723 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cba3bc3e-79d3-4a35-ac30-66b3a85efa5b
2026-07-06 15:08:51,729 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9d10a73a-9df1-433d-9e1e-7c501fca6622
2026-07-06 15:08:51,740 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-05574248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69848528', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2968935325708599538', 'uuid-lslong': '12368651264204761359'}, 'enable': 'true', 'created': '2026-07-06T15:08:49', 'last-modified': '2026-07-06T15:08:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384133'}
2026-07-06 15:08:51,745 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-06 15:08:51,745 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05574248 passed
2026-07-06 15:08:51,746 - DEBUG - ====Verifying policy data for ctest-vn-05574248 in API_Server ======
2026-07-06 15:08:51,746 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-07-06 15:08:51,751 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0264fbcd-f957-4e90-9c9d-245a715bbdc1
2026-07-06 15:08:51,760 - DEBUG - Requesting: http://10.0.0.249:8082/project/54ff94bc-9d2b-433e-a3f2-58337a17f89b
2026-07-06 15:08:51,830 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2933c6f2-d9f8-40f2-aba6-46caf99c690f
2026-07-06 15:08:51,838 - DEBUG - ==>Verifying data for policy with id: 71916347-d13c-47b9-b2f0-6d8775204a8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-69848528', 'ctest-policy-allow-all-05479549']
2026-07-06 15:08:51,838 - INFO - VN ctest-vn-05574248 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-06 15:08:51,838 - DEBUG - Verifying the vn in opserver
2026-07-06 15:08:51,838 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-05574248 virtual network link through opserver 10.0.0.249
2026-07-06 15:08:51,838 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-07-06 15:08:51,847 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-05574248', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-05574248?flat'}
2026-07-06 15:08:51,847 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69848528:ctest-vn-05574248 is found in opserver
2026-07-06 15:08:51,855 - DEBUG - Do not have enough data to verify VN in agent
2026-07-06 15:08:51,859 - DEBUG - VRF ids for VN ctest-vn-05574248: {}
2026-07-06 15:08:51,920 - DEBUG - Services list from nova: [