2025-10-25 17:43:34,062 - INFO - Domain Default found not creating
2025-10-25 17:43:34,182 - INFO - Project ctest-TestBasicPolicy-01705929 not found, creating it
2025-10-25 17:43:34,587 - INFO - Created Project:ctest-TestBasicPolicy-01705929, ID : 2d81f50c-aafb-4f5e-af42-31468ec51597
2025-10-25 17:43:35,911 - INFO - ================================================================================
2025-10-25 17:43:35,912 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-25 17:43:35,912 - 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
2025-10-25 17:43:36,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-25 17:43:36,160 - INFO - Initial checks done. Running the testcase now
2025-10-25 17:43:36,160 - INFO -
2025-10-25 17:43:36,675 - DEBUG - Response for create_network : {'network': {'id': 'a0124276-047b-448c-97ca-f50ea2f7e810', 'name': 'ctest-vn-20774948', 'tenant_id': '2d81f50caafb4f5eaf4231468ec51597', 'project_id': '2d81f50caafb4f5eaf4231468ec51597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-vn-20774948'], 'port_security_enabled': True, 'description': ''}}
2025-10-25 17:43:36,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c8cf035-f7f8-4f79-9693-2374050cc957', 'name': '', 'tenant_id': '2d81f50caafb4f5eaf4231468ec51597', 'network_id': 'a0124276-047b-448c-97ca-f50ea2f7e810', 'ip_version': 4, 'cidr': '195.113.19.192/26', 'allocation_pools': [{'start': '195.113.19.194', 'end': '195.113.19.254'}], 'gateway_ip': '195.113.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.113.19.194', 'tags': [], 'project_id': '2d81f50caafb4f5eaf4231468ec51597'}}
2025-10-25 17:43:36,876 - INFO - Created VN ctest-vn-20774948
2025-10-25 17:43:36,928 - DEBUG - VN ctest-vn-20774948 UUID is a0124276-047b-448c-97ca-f50ea2f7e810
2025-10-25 17:43:37,216 - DEBUG - Response for create_network : {'network': {'id': 'fce58d92-9221-481d-8163-09549460863f', 'name': 'ctest-vn-21725704', 'tenant_id': '2d81f50caafb4f5eaf4231468ec51597', 'project_id': '2d81f50caafb4f5eaf4231468ec51597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-vn-21725704'], 'port_security_enabled': True, 'description': ''}}
2025-10-25 17:43:37,419 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f15e0ba4-d8f0-4abd-99f0-23a58291566a', 'name': '', 'tenant_id': '2d81f50caafb4f5eaf4231468ec51597', 'network_id': 'fce58d92-9221-481d-8163-09549460863f', 'ip_version': 4, 'cidr': '154.236.103.128/26', 'allocation_pools': [{'start': '154.236.103.130', 'end': '154.236.103.190'}], 'gateway_ip': '154.236.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.236.103.130', 'tags': [], 'project_id': '2d81f50caafb4f5eaf4231468ec51597'}}
2025-10-25 17:43:37,435 - INFO - Created VN ctest-vn-21725704
2025-10-25 17:43:37,484 - DEBUG - VN ctest-vn-21725704 UUID is fce58d92-9221-481d-8163-09549460863f
2025-10-25 17:43:37,628 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-20774948, 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-01705929:ctest-vn-21725704, 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]
2025-10-25 17:43:37,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0124276-047b-448c-97ca-f50ea2f7e810', 'name': 'ctest-vn-20774948', 'tenant_id': '2d81f50caafb4f5eaf4231468ec51597', 'project_id': '2d81f50caafb4f5eaf4231468ec51597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c8cf035-f7f8-4f79-9693-2374050cc957'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-vn-20774948'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-policy-allow-all-81143143']], 'subnet_ipam': [{'subnet_cidr': '195.113.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-25 17:43:38,112 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fce58d92-9221-481d-8163-09549460863f', 'name': 'ctest-vn-21725704', 'tenant_id': '2d81f50caafb4f5eaf4231468ec51597', 'project_id': '2d81f50caafb4f5eaf4231468ec51597', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f15e0ba4-d8f0-4abd-99f0-23a58291566a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-vn-21725704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-policy-allow-all-81143143']], 'subnet_ipam': [{'subnet_cidr': '154.236.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-25 17:43:38,256 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-25 17:43:38,550 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-25 17:43:38,573 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8484a6f-71c0-4555-9c6a-ba16f240e5dc
2025-10-25 17:43:38,586 - DEBUG - Requesting: http://10.0.0.254:8082/project/2d81f50c-aafb-4f5e-af42-31468ec51597
2025-10-25 17:43:38,661 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0124276-047b-448c-97ca-f50ea2f7e810
2025-10-25 17:43:38,673 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0124276-047b-448c-97ca-f50ea2f7e810
2025-10-25 17:43:38,681 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/90e58af4-7f15-4ee5-8de1-2384035d7a11
2025-10-25 17:43:38,686 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/90e58af4-7f15-4ee5-8de1-2384035d7a11
2025-10-25 17:43:38,691 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/54423fc6-1658-480a-a668-4701ca64a683
2025-10-25 17:43:38,696 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-25 17:43:38,696 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0124276-047b-448c-97ca-f50ea2f7e810
2025-10-25 17:43:38,702 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/90e58af4-7f15-4ee5-8de1-2384035d7a11
2025-10-25 17:43:38,713 - INFO - Verified VN network id 12 for VN a0124276-047b-448c-97ca-f50ea2f7e810
2025-10-25 17:43:38,713 - INFO - Verifications in API Server for VN ctest-vn-20774948 passed
2025-10-25 17:43:38,713 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0124276-047b-448c-97ca-f50ea2f7e810
2025-10-25 17:43:38,719 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/90e58af4-7f15-4ee5-8de1-2384035d7a11
2025-10-25 17:43:38,724 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/90e58af4-7f15-4ee5-8de1-2384035d7a11
2025-10-25 17:43:38,729 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/54423fc6-1658-480a-a668-4701ca64a683
2025-10-25 17:43:38,740 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-20774948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01705929', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11534354670298023052', 'uuid-lslong': '10937824088235173904'}, 'enable': 'true', 'created': '2025-10-25T17:43:36', 'last-modified': '2025-10-25T17:43:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.863419'}
2025-10-25 17:43:38,746 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-25 17:43:38,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20774948 passed
2025-10-25 17:43:38,746 - DEBUG - ====Verifying policy data for ctest-vn-20774948 in API_Server ======
2025-10-25 17:43:38,746 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-25 17:43:38,750 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8484a6f-71c0-4555-9c6a-ba16f240e5dc
2025-10-25 17:43:38,759 - DEBUG - Requesting: http://10.0.0.254:8082/project/2d81f50c-aafb-4f5e-af42-31468ec51597
2025-10-25 17:43:38,826 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0124276-047b-448c-97ca-f50ea2f7e810
2025-10-25 17:43:38,834 - DEBUG - ==>Verifying data for policy with id: 26e062d1-12bb-4a03-8f88-9eb0f2a33305, fqn: ['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-policy-allow-all-81143143']
2025-10-25 17:43:38,834 - INFO - VN ctest-vn-20774948 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-25 17:43:38,834 - DEBUG - Verifying the vn in opserver
2025-10-25 17:43:38,834 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-20774948 virtual network link through opserver 10.0.0.254
2025-10-25 17:43:38,834 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-25 17:43:39,122 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-25 17:43:39,168 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-20774948', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-20774948?flat'}
2025-10-25 17:43:39,169 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-20774948 is found in opserver
2025-10-25 17:43:39,177 - DEBUG - Do not have enough data to verify VN in agent
2025-10-25 17:43:39,181 - DEBUG - VRF ids for VN ctest-vn-20774948: {}
2025-10-25 17:43:39,181 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-25 17:43:39,185 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8484a6f-71c0-4555-9c6a-ba16f240e5dc
2025-10-25 17:43:39,194 - DEBUG - Requesting: http://10.0.0.254:8082/project/2d81f50c-aafb-4f5e-af42-31468ec51597
2025-10-25 17:43:39,261 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fce58d92-9221-481d-8163-09549460863f
2025-10-25 17:43:39,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fce58d92-9221-481d-8163-09549460863f
2025-10-25 17:43:39,278 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c287ebb2-7d11-47f9-a1ab-ed9e7fc2a50d
2025-10-25 17:43:39,283 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c287ebb2-7d11-47f9-a1ab-ed9e7fc2a50d
2025-10-25 17:43:39,287 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fef8ab2c-6d59-4d44-8775-b724c3f58f1a
2025-10-25 17:43:39,292 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-25 17:43:39,292 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fce58d92-9221-481d-8163-09549460863f
2025-10-25 17:43:39,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c287ebb2-7d11-47f9-a1ab-ed9e7fc2a50d
2025-10-25 17:43:39,308 - INFO - Verified VN network id 13 for VN fce58d92-9221-481d-8163-09549460863f
2025-10-25 17:43:39,308 - INFO - Verifications in API Server for VN ctest-vn-21725704 passed
2025-10-25 17:43:39,308 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fce58d92-9221-481d-8163-09549460863f
2025-10-25 17:43:39,315 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c287ebb2-7d11-47f9-a1ab-ed9e7fc2a50d
2025-10-25 17:43:39,320 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c287ebb2-7d11-47f9-a1ab-ed9e7fc2a50d
2025-10-25 17:43:39,324 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fef8ab2c-6d59-4d44-8775-b724c3f58f1a
2025-10-25 17:43:39,333 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-21725704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01705929', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18223127127880976413', 'uuid-lslong': '9323305912458315327'}, 'enable': 'true', 'created': '2025-10-25T17:43:37', 'last-modified': '2025-10-25T17:43:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.242254'}
2025-10-25 17:43:39,337 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-25 17:43:39,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21725704 passed
2025-10-25 17:43:39,337 - DEBUG - ====Verifying policy data for ctest-vn-21725704 in API_Server ======
2025-10-25 17:43:39,337 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-25 17:43:39,341 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a8484a6f-71c0-4555-9c6a-ba16f240e5dc
2025-10-25 17:43:39,348 - DEBUG - Requesting: http://10.0.0.254:8082/project/2d81f50c-aafb-4f5e-af42-31468ec51597
2025-10-25 17:43:39,414 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fce58d92-9221-481d-8163-09549460863f
2025-10-25 17:43:39,422 - DEBUG - ==>Verifying data for policy with id: 26e062d1-12bb-4a03-8f88-9eb0f2a33305, fqn: ['default-domain', 'ctest-TestBasicPolicy-01705929', 'ctest-policy-allow-all-81143143']
2025-10-25 17:43:39,422 - INFO - VN ctest-vn-21725704 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-25 17:43:39,422 - DEBUG - Verifying the vn in opserver
2025-10-25 17:43:39,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-21725704 virtual network link through opserver 10.0.0.254
2025-10-25 17:43:39,422 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-25 17:43:39,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-21725704', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-21725704?flat'}
2025-10-25 17:43:39,430 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01705929:ctest-vn-21725704 is found in opserver
2025-10-25 17:43:39,438 - DEBUG - Do not have enough data to verify VN in agent
2025-10-25 17:43:39,442 - DEBUG - VRF ids for VN ctest-vn-21725704: {}
2025-10-25 17:43:39,487 - DEBUG - Services list from nova: [