2026-04-02 17:53:47,975 - INFO - Domain Default found not creating
2026-04-02 17:53:48,140 - INFO - Project ctest-TestBasicPolicy-69001626 not found, creating it
2026-04-02 17:53:48,589 - INFO - Created Project:ctest-TestBasicPolicy-69001626, ID : a1829416-bd27-4681-afd3-5afbde24a789
2026-04-02 17:53:50,068 - INFO - ================================================================================
2026-04-02 17:53:50,068 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-02 17:53:50,068 - 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-04-02 17:53:50,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-02 17:53:50,324 - INFO - Initial checks done. Running the testcase now
2026-04-02 17:53:50,324 - INFO -
2026-04-02 17:53:50,898 - DEBUG - Response for create_network : {'network': {'id': 'b6823da9-a359-4900-9b12-7ca19373b4a4', 'name': 'ctest-vn-65051078', 'tenant_id': 'a1829416bd274681afd35afbde24a789', 'project_id': 'a1829416bd274681afd35afbde24a789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-vn-65051078'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 17:53:51,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bbae06b-02f4-49a9-9619-45a40cc4743d', 'name': '', 'tenant_id': 'a1829416bd274681afd35afbde24a789', 'network_id': 'b6823da9-a359-4900-9b12-7ca19373b4a4', 'ip_version': 4, 'cidr': '60.159.35.192/26', 'allocation_pools': [{'start': '60.159.35.194', 'end': '60.159.35.254'}], 'gateway_ip': '60.159.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.159.35.194', 'tags': [], 'project_id': 'a1829416bd274681afd35afbde24a789'}}
2026-04-02 17:53:51,072 - INFO - Created VN ctest-vn-65051078
2026-04-02 17:53:51,125 - DEBUG - VN ctest-vn-65051078 UUID is b6823da9-a359-4900-9b12-7ca19373b4a4
2026-04-02 17:53:51,425 - DEBUG - Response for create_network : {'network': {'id': '82b08ab1-4f9b-402c-a04d-5149e69136c8', 'name': 'ctest-vn-46642639', 'tenant_id': 'a1829416bd274681afd35afbde24a789', 'project_id': 'a1829416bd274681afd35afbde24a789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-vn-46642639'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 17:53:51,612 - DEBUG - Response for create_subnet : {'subnet': {'id': '49bafc85-f83b-4fa1-81af-d946bfaec7e1', 'name': '', 'tenant_id': 'a1829416bd274681afd35afbde24a789', 'network_id': '82b08ab1-4f9b-402c-a04d-5149e69136c8', 'ip_version': 4, 'cidr': '139.17.164.128/26', 'allocation_pools': [{'start': '139.17.164.130', 'end': '139.17.164.190'}], 'gateway_ip': '139.17.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.17.164.130', 'tags': [], 'project_id': 'a1829416bd274681afd35afbde24a789'}}
2026-04-02 17:53:51,633 - INFO - Created VN ctest-vn-46642639
2026-04-02 17:53:51,685 - DEBUG - VN ctest-vn-46642639 UUID is 82b08ab1-4f9b-402c-a04d-5149e69136c8
2026-04-02 17:53:51,801 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-65051078, 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-69001626:ctest-vn-46642639, 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-04-02 17:53:52,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6823da9-a359-4900-9b12-7ca19373b4a4', 'name': 'ctest-vn-65051078', 'tenant_id': 'a1829416bd274681afd35afbde24a789', 'project_id': 'a1829416bd274681afd35afbde24a789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bbae06b-02f4-49a9-9619-45a40cc4743d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-vn-65051078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-policy-allow-all-05597045']], 'subnet_ipam': [{'subnet_cidr': '60.159.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 17:53:52,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82b08ab1-4f9b-402c-a04d-5149e69136c8', 'name': 'ctest-vn-46642639', 'tenant_id': 'a1829416bd274681afd35afbde24a789', 'project_id': 'a1829416bd274681afd35afbde24a789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49bafc85-f83b-4fa1-81af-d946bfaec7e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-vn-46642639'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-policy-allow-all-05597045']], 'subnet_ipam': [{'subnet_cidr': '139.17.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 17:53:52,545 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 17:53:52,842 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 17:53:52,872 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0
2026-04-02 17:53:52,890 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1829416-bd27-4681-afd3-5afbde24a789
2026-04-02 17:53:52,961 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b6823da9-a359-4900-9b12-7ca19373b4a4
2026-04-02 17:53:52,972 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b6823da9-a359-4900-9b12-7ca19373b4a4
2026-04-02 17:53:52,984 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5843462f-760c-49c7-a754-399b653deb0d
2026-04-02 17:53:52,992 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5843462f-760c-49c7-a754-399b653deb0d
2026-04-02 17:53:52,999 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63fa7592-7d86-478a-9125-8b515bdb2e34
2026-04-02 17:53:53,006 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 17:53:53,007 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b6823da9-a359-4900-9b12-7ca19373b4a4
2026-04-02 17:53:53,016 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5843462f-760c-49c7-a754-399b653deb0d
2026-04-02 17:53:53,031 - INFO - Verified VN network id 11 for VN b6823da9-a359-4900-9b12-7ca19373b4a4
2026-04-02 17:53:53,031 - INFO - Verifications in API Server for VN ctest-vn-65051078 passed
2026-04-02 17:53:53,031 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b6823da9-a359-4900-9b12-7ca19373b4a4
2026-04-02 17:53:53,040 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5843462f-760c-49c7-a754-399b653deb0d
2026-04-02 17:53:53,048 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5843462f-760c-49c7-a754-399b653deb0d
2026-04-02 17:53:53,055 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63fa7592-7d86-478a-9125-8b515bdb2e34
2026-04-02 17:53:53,066 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-65051078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69001626', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13151141660674574592', 'uuid-lslong': '11174130658865034404'}, 'enable': 'true', 'created': '2026-04-02T17:53:50', 'last-modified': '2026-04-02T17:53:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984125'}
2026-04-02 17:53:53,072 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 17:53:53,072 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65051078 passed
2026-04-02 17:53:53,072 - DEBUG - ====Verifying policy data for ctest-vn-65051078 in API_Server ======
2026-04-02 17:53:53,072 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 17:53:53,078 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0
2026-04-02 17:53:53,089 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1829416-bd27-4681-afd3-5afbde24a789
2026-04-02 17:53:53,162 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b6823da9-a359-4900-9b12-7ca19373b4a4
2026-04-02 17:53:53,171 - DEBUG - ==>Verifying data for policy with id: d23c2ddc-1af1-4dd7-bd4a-44d84340949b, fqn: ['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-policy-allow-all-05597045']
2026-04-02 17:53:53,171 - INFO - VN ctest-vn-65051078 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 17:53:53,171 - DEBUG - Verifying the vn in opserver
2026-04-02 17:53:53,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-65051078 virtual network link through opserver 10.0.0.50
2026-04-02 17:53:53,172 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-02 17:53:53,466 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-02 17:53:53,529 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-65051078', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-65051078?flat'}
2026-04-02 17:53:53,529 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-65051078 is found in opserver
2026-04-02 17:53:53,539 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 17:53:53,543 - DEBUG - VRF ids for VN ctest-vn-65051078: {}
2026-04-02 17:53:53,543 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 17:53:53,549 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0
2026-04-02 17:53:53,559 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1829416-bd27-4681-afd3-5afbde24a789
2026-04-02 17:53:53,625 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82b08ab1-4f9b-402c-a04d-5149e69136c8
2026-04-02 17:53:53,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82b08ab1-4f9b-402c-a04d-5149e69136c8
2026-04-02 17:53:53,648 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3518121c-00a6-4baa-b34b-72c8b9c5dbf8
2026-04-02 17:53:53,656 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3518121c-00a6-4baa-b34b-72c8b9c5dbf8
2026-04-02 17:53:53,663 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/de8bb143-ad84-4656-a97f-91c9bb17f13d
2026-04-02 17:53:53,671 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 17:53:53,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82b08ab1-4f9b-402c-a04d-5149e69136c8
2026-04-02 17:53:53,681 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3518121c-00a6-4baa-b34b-72c8b9c5dbf8
2026-04-02 17:53:53,696 - INFO - Verified VN network id 12 for VN 82b08ab1-4f9b-402c-a04d-5149e69136c8
2026-04-02 17:53:53,696 - INFO - Verifications in API Server for VN ctest-vn-46642639 passed
2026-04-02 17:53:53,696 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82b08ab1-4f9b-402c-a04d-5149e69136c8
2026-04-02 17:53:53,704 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3518121c-00a6-4baa-b34b-72c8b9c5dbf8
2026-04-02 17:53:53,711 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3518121c-00a6-4baa-b34b-72c8b9c5dbf8
2026-04-02 17:53:53,718 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/de8bb143-ad84-4656-a97f-91c9bb17f13d
2026-04-02 17:53:53,729 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-46642639', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69001626', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9417179314981126188', 'uuid-lslong': '11550977997117929160'}, 'enable': 'true', 'created': '2026-04-02T17:53:51', 'last-modified': '2026-04-02T17:53:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405360'}
2026-04-02 17:53:53,734 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 17:53:53,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46642639 passed
2026-04-02 17:53:53,735 - DEBUG - ====Verifying policy data for ctest-vn-46642639 in API_Server ======
2026-04-02 17:53:53,735 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-02 17:53:53,740 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dfeab000-f59b-47ef-9f0e-fcf45df100a0
2026-04-02 17:53:53,750 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1829416-bd27-4681-afd3-5afbde24a789
2026-04-02 17:53:53,818 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82b08ab1-4f9b-402c-a04d-5149e69136c8
2026-04-02 17:53:53,827 - DEBUG - ==>Verifying data for policy with id: d23c2ddc-1af1-4dd7-bd4a-44d84340949b, fqn: ['default-domain', 'ctest-TestBasicPolicy-69001626', 'ctest-policy-allow-all-05597045']
2026-04-02 17:53:53,827 - INFO - VN ctest-vn-46642639 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 17:53:53,827 - DEBUG - Verifying the vn in opserver
2026-04-02 17:53:53,827 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-46642639 virtual network link through opserver 10.0.0.50
2026-04-02 17:53:53,827 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-02 17:53:53,836 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-46642639', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-46642639?flat'}
2026-04-02 17:53:53,836 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69001626:ctest-vn-46642639 is found in opserver
2026-04-02 17:53:53,845 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 17:53:53,849 - DEBUG - VRF ids for VN ctest-vn-46642639: {}
2026-04-02 17:53:53,905 - DEBUG - Services list from nova: [