2026-02-26 11:12:48,554 - INFO - Domain Default found not creating
2026-02-26 11:12:48,767 - INFO - Project ctest-TestBasicPolicy-55002113 not found, creating it
2026-02-26 11:12:49,221 - INFO - Created Project:ctest-TestBasicPolicy-55002113, ID : 0376c9cf-7e2c-4146-98f3-9e0b5f38f64a
2026-02-26 11:12:50,720 - INFO - ================================================================================
2026-02-26 11:12:50,720 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-26 11:12:50,720 - 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-02-26 11:12:50,981 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-02-26 11:12:50,981 - INFO - Initial checks done. Running the testcase now
2026-02-26 11:12:50,981 - INFO -
2026-02-26 11:12:51,554 - DEBUG - Response for create_network : {'network': {'id': 'd957bf37-f860-4d5a-936d-7d40d16afb20', 'name': 'ctest-vn-85287001', 'tenant_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'project_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-vn-85287001'], 'port_security_enabled': True, 'description': ''}}
2026-02-26 11:12:51,738 - DEBUG - Response for create_subnet : {'subnet': {'id': '51da4a8a-39ff-49ec-88b0-bc27ca0b3211', 'name': '', 'tenant_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'network_id': 'd957bf37-f860-4d5a-936d-7d40d16afb20', 'ip_version': 4, 'cidr': '135.66.220.64/26', 'allocation_pools': [{'start': '135.66.220.66', 'end': '135.66.220.126'}], 'gateway_ip': '135.66.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.66.220.66', 'tags': [], 'project_id': '0376c9cf7e2c414698f39e0b5f38f64a'}}
2026-02-26 11:12:51,758 - INFO - Created VN ctest-vn-85287001
2026-02-26 11:12:51,810 - DEBUG - VN ctest-vn-85287001 UUID is d957bf37-f860-4d5a-936d-7d40d16afb20
2026-02-26 11:12:52,148 - DEBUG - Response for create_network : {'network': {'id': '3d717fc4-e615-4f27-904c-aa3ebd4c3cf6', 'name': 'ctest-vn-70666473', 'tenant_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'project_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-vn-70666473'], 'port_security_enabled': True, 'description': ''}}
2026-02-26 11:12:52,364 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6e733d5-8071-41e2-baf2-d00e9d06b601', 'name': '', 'tenant_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'network_id': '3d717fc4-e615-4f27-904c-aa3ebd4c3cf6', 'ip_version': 4, 'cidr': '213.43.45.0/26', 'allocation_pools': [{'start': '213.43.45.2', 'end': '213.43.45.62'}], 'gateway_ip': '213.43.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.43.45.2', 'tags': [], 'project_id': '0376c9cf7e2c414698f39e0b5f38f64a'}}
2026-02-26 11:12:52,381 - INFO - Created VN ctest-vn-70666473
2026-02-26 11:12:52,430 - DEBUG - VN ctest-vn-70666473 UUID is 3d717fc4-e615-4f27-904c-aa3ebd4c3cf6
2026-02-26 11:12:52,548 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-85287001, 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-55002113:ctest-vn-70666473, 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-02-26 11:12:52,849 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd957bf37-f860-4d5a-936d-7d40d16afb20', 'name': 'ctest-vn-85287001', 'tenant_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'project_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51da4a8a-39ff-49ec-88b0-bc27ca0b3211'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-vn-85287001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-policy-allow-all-37940947']], 'subnet_ipam': [{'subnet_cidr': '135.66.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-26 11:12:53,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d717fc4-e615-4f27-904c-aa3ebd4c3cf6', 'name': 'ctest-vn-70666473', 'tenant_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'project_id': '0376c9cf7e2c414698f39e0b5f38f64a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6e733d5-8071-41e2-baf2-d00e9d06b601'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-vn-70666473'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-policy-allow-all-37940947']], 'subnet_ipam': [{'subnet_cidr': '213.43.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-26 11:12:53,218 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-26 11:12:53,519 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-26 11:12:53,551 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77
2026-02-26 11:12:53,564 - DEBUG - Requesting: http://10.0.0.22:8082/project/0376c9cf-7e2c-4146-98f3-9e0b5f38f64a
2026-02-26 11:12:53,644 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d957bf37-f860-4d5a-936d-7d40d16afb20
2026-02-26 11:12:53,655 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d957bf37-f860-4d5a-936d-7d40d16afb20
2026-02-26 11:12:53,664 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4734813c-9bf2-49dc-ae86-21c41a79856c
2026-02-26 11:12:53,672 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4734813c-9bf2-49dc-ae86-21c41a79856c
2026-02-26 11:12:53,680 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93efc442-622a-4e76-98f8-e9f241c3c888
2026-02-26 11:12:53,686 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-26 11:12:53,687 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d957bf37-f860-4d5a-936d-7d40d16afb20
2026-02-26 11:12:53,696 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4734813c-9bf2-49dc-ae86-21c41a79856c
2026-02-26 11:12:53,711 - INFO - Verified VN network id 11 for VN d957bf37-f860-4d5a-936d-7d40d16afb20
2026-02-26 11:12:53,711 - INFO - Verifications in API Server for VN ctest-vn-85287001 passed
2026-02-26 11:12:53,711 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d957bf37-f860-4d5a-936d-7d40d16afb20
2026-02-26 11:12:53,721 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4734813c-9bf2-49dc-ae86-21c41a79856c
2026-02-26 11:12:53,728 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4734813c-9bf2-49dc-ae86-21c41a79856c
2026-02-26 11:12:53,736 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93efc442-622a-4e76-98f8-e9f241c3c888
2026-02-26 11:12:53,748 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-85287001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55002113', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15661196476315356506', 'uuid-lslong': '10623284813381696288'}, 'enable': 'true', 'created': '2026-02-26T11:12:51', 'last-modified': '2026-02-26T11:12:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921800'}
2026-02-26 11:12:53,754 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-26 11:12:53,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85287001 passed
2026-02-26 11:12:53,754 - DEBUG - ====Verifying policy data for ctest-vn-85287001 in API_Server ======
2026-02-26 11:12:53,754 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-26 11:12:53,760 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77
2026-02-26 11:12:53,771 - DEBUG - Requesting: http://10.0.0.22:8082/project/0376c9cf-7e2c-4146-98f3-9e0b5f38f64a
2026-02-26 11:12:53,842 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d957bf37-f860-4d5a-936d-7d40d16afb20
2026-02-26 11:12:53,852 - DEBUG - ==>Verifying data for policy with id: e9303004-05d3-4b5b-b353-7db5a0ad5712, fqn: ['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-policy-allow-all-37940947']
2026-02-26 11:12:53,852 - INFO - VN ctest-vn-85287001 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-26 11:12:53,852 - DEBUG - Verifying the vn in opserver
2026-02-26 11:12:53,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-85287001 virtual network link through opserver 10.0.0.22
2026-02-26 11:12:53,852 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-26 11:12:54,149 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-26 11:12:54,226 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-85287001', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-85287001?flat'}
2026-02-26 11:12:54,226 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-85287001 is found in opserver
2026-02-26 11:12:54,236 - DEBUG - Do not have enough data to verify VN in agent
2026-02-26 11:12:54,240 - DEBUG - VRF ids for VN ctest-vn-85287001: {}
2026-02-26 11:12:54,240 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-26 11:12:54,246 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77
2026-02-26 11:12:54,258 - DEBUG - Requesting: http://10.0.0.22:8082/project/0376c9cf-7e2c-4146-98f3-9e0b5f38f64a
2026-02-26 11:12:54,330 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d717fc4-e615-4f27-904c-aa3ebd4c3cf6
2026-02-26 11:12:54,341 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d717fc4-e615-4f27-904c-aa3ebd4c3cf6
2026-02-26 11:12:54,350 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0550377-b81b-47e7-8cab-69ae5af5219e
2026-02-26 11:12:54,358 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0550377-b81b-47e7-8cab-69ae5af5219e
2026-02-26 11:12:54,364 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e3ce9ec8-5ee3-42f8-8dec-5bb4c2cd482f
2026-02-26 11:12:54,370 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-26 11:12:54,370 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d717fc4-e615-4f27-904c-aa3ebd4c3cf6
2026-02-26 11:12:54,379 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0550377-b81b-47e7-8cab-69ae5af5219e
2026-02-26 11:12:54,392 - INFO - Verified VN network id 12 for VN 3d717fc4-e615-4f27-904c-aa3ebd4c3cf6
2026-02-26 11:12:54,393 - INFO - Verifications in API Server for VN ctest-vn-70666473 passed
2026-02-26 11:12:54,393 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d717fc4-e615-4f27-904c-aa3ebd4c3cf6
2026-02-26 11:12:54,402 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0550377-b81b-47e7-8cab-69ae5af5219e
2026-02-26 11:12:54,409 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e0550377-b81b-47e7-8cab-69ae5af5219e
2026-02-26 11:12:54,416 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e3ce9ec8-5ee3-42f8-8dec-5bb4c2cd482f
2026-02-26 11:12:54,428 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-70666473', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55002113', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4427460392332381991', 'uuid-lslong': '10397872826132217078'}, 'enable': 'true', 'created': '2026-02-26T11:12:52', 'last-modified': '2026-02-26T11:12:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373261'}
2026-02-26 11:12:54,433 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-26 11:12:54,433 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70666473 passed
2026-02-26 11:12:54,433 - DEBUG - ====Verifying policy data for ctest-vn-70666473 in API_Server ======
2026-02-26 11:12:54,434 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-26 11:12:54,439 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77
2026-02-26 11:12:54,451 - DEBUG - Requesting: http://10.0.0.22:8082/project/0376c9cf-7e2c-4146-98f3-9e0b5f38f64a
2026-02-26 11:12:54,522 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d717fc4-e615-4f27-904c-aa3ebd4c3cf6
2026-02-26 11:12:54,532 - DEBUG - ==>Verifying data for policy with id: e9303004-05d3-4b5b-b353-7db5a0ad5712, fqn: ['default-domain', 'ctest-TestBasicPolicy-55002113', 'ctest-policy-allow-all-37940947']
2026-02-26 11:12:54,532 - INFO - VN ctest-vn-70666473 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-26 11:12:54,532 - DEBUG - Verifying the vn in opserver
2026-02-26 11:12:54,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-70666473 virtual network link through opserver 10.0.0.22
2026-02-26 11:12:54,532 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-26 11:12:54,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-70666473', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-70666473?flat'}
2026-02-26 11:12:54,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55002113:ctest-vn-70666473 is found in opserver
2026-02-26 11:12:54,552 - DEBUG - Do not have enough data to verify VN in agent
2026-02-26 11:12:54,557 - DEBUG - VRF ids for VN ctest-vn-70666473: {}
2026-02-26 11:12:54,618 - DEBUG - Services list from nova: [