2026-01-29 22:29:11,927 - INFO - Domain Default found not creating
2026-01-29 22:29:12,106 - INFO - Project ctest-TestBasicPolicy-10003168 not found, creating it
2026-01-29 22:29:12,561 - INFO - Created Project:ctest-TestBasicPolicy-10003168, ID : 1ea3d121-cdde-456d-ac14-9831fbaa129d
2026-01-29 22:29:14,078 - INFO - ================================================================================
2026-01-29 22:29:14,078 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 22:29:14,078 - 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-01-29 22:29:14,335 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-01-29 22:29:14,335 - INFO - Initial checks done. Running the testcase now
2026-01-29 22:29:14,335 - INFO -
2026-01-29 22:29:14,886 - DEBUG - Response for create_network : {'network': {'id': '720cb48c-cb36-4a79-9717-4b4da93fa3d5', 'name': 'ctest-vn-49395750', 'tenant_id': '1ea3d121cdde456dac149831fbaa129d', 'project_id': '1ea3d121cdde456dac149831fbaa129d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-vn-49395750'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 22:29:15,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e097903-33b4-4d38-99dc-71d58e530e0a', 'name': '', 'tenant_id': '1ea3d121cdde456dac149831fbaa129d', 'network_id': '720cb48c-cb36-4a79-9717-4b4da93fa3d5', 'ip_version': 4, 'cidr': '18.251.161.128/26', 'allocation_pools': [{'start': '18.251.161.130', 'end': '18.251.161.190'}], 'gateway_ip': '18.251.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.251.161.130', 'tags': [], 'project_id': '1ea3d121cdde456dac149831fbaa129d'}}
2026-01-29 22:29:15,118 - INFO - Created VN ctest-vn-49395750
2026-01-29 22:29:15,171 - DEBUG - VN ctest-vn-49395750 UUID is 720cb48c-cb36-4a79-9717-4b4da93fa3d5
2026-01-29 22:29:15,454 - DEBUG - Response for create_network : {'network': {'id': '675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e', 'name': 'ctest-vn-20975474', 'tenant_id': '1ea3d121cdde456dac149831fbaa129d', 'project_id': '1ea3d121cdde456dac149831fbaa129d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-vn-20975474'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 22:29:15,623 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4bedfac-1baa-4e20-9874-ce63b44b03bc', 'name': '', 'tenant_id': '1ea3d121cdde456dac149831fbaa129d', 'network_id': '675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e', 'ip_version': 4, 'cidr': '124.198.246.64/26', 'allocation_pools': [{'start': '124.198.246.66', 'end': '124.198.246.126'}], 'gateway_ip': '124.198.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.198.246.66', 'tags': [], 'project_id': '1ea3d121cdde456dac149831fbaa129d'}}
2026-01-29 22:29:15,643 - INFO - Created VN ctest-vn-20975474
2026-01-29 22:29:15,694 - DEBUG - VN ctest-vn-20975474 UUID is 675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e
2026-01-29 22:29:15,847 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-49395750, 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-10003168:ctest-vn-20975474, 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-01-29 22:29:16,137 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '720cb48c-cb36-4a79-9717-4b4da93fa3d5', 'name': 'ctest-vn-49395750', 'tenant_id': '1ea3d121cdde456dac149831fbaa129d', 'project_id': '1ea3d121cdde456dac149831fbaa129d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e097903-33b4-4d38-99dc-71d58e530e0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-vn-49395750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-policy-allow-all-20629421']], 'subnet_ipam': [{'subnet_cidr': '18.251.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 22:29:16,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e', 'name': 'ctest-vn-20975474', 'tenant_id': '1ea3d121cdde456dac149831fbaa129d', 'project_id': '1ea3d121cdde456dac149831fbaa129d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4bedfac-1baa-4e20-9874-ce63b44b03bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-vn-20975474'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-policy-allow-all-20629421']], 'subnet_ipam': [{'subnet_cidr': '124.198.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 22:29:16,556 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 22:29:16,874 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 22:29:16,923 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe
2026-01-29 22:29:16,935 - DEBUG - Requesting: http://10.0.0.22:8082/project/1ea3d121-cdde-456d-ac14-9831fbaa129d
2026-01-29 22:29:17,011 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/720cb48c-cb36-4a79-9717-4b4da93fa3d5
2026-01-29 22:29:17,027 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/720cb48c-cb36-4a79-9717-4b4da93fa3d5
2026-01-29 22:29:17,039 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e1c5cc0-76a8-42d6-8494-8f7181bed507
2026-01-29 22:29:17,047 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e1c5cc0-76a8-42d6-8494-8f7181bed507
2026-01-29 22:29:17,054 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b41b58db-c740-48fe-8490-b724a679a2dd
2026-01-29 22:29:17,060 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 22:29:17,060 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/720cb48c-cb36-4a79-9717-4b4da93fa3d5
2026-01-29 22:29:17,069 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e1c5cc0-76a8-42d6-8494-8f7181bed507
2026-01-29 22:29:17,082 - INFO - Verified VN network id 12 for VN 720cb48c-cb36-4a79-9717-4b4da93fa3d5
2026-01-29 22:29:17,082 - INFO - Verifications in API Server for VN ctest-vn-49395750 passed
2026-01-29 22:29:17,082 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/720cb48c-cb36-4a79-9717-4b4da93fa3d5
2026-01-29 22:29:17,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e1c5cc0-76a8-42d6-8494-8f7181bed507
2026-01-29 22:29:17,098 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e1c5cc0-76a8-42d6-8494-8f7181bed507
2026-01-29 22:29:17,104 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b41b58db-c740-48fe-8490-b724a679a2dd
2026-01-29 22:29:17,116 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-49395750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10003168', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8218141936842066553', 'uuid-lslong': '10887253421115548629'}, 'enable': 'true', 'created': '2026-01-29T22:29:14', 'last-modified': '2026-01-29T22:29:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004255'}
2026-01-29 22:29:17,121 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 22:29:17,121 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49395750 passed
2026-01-29 22:29:17,121 - DEBUG - ====Verifying policy data for ctest-vn-49395750 in API_Server ======
2026-01-29 22:29:17,121 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 22:29:17,126 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe
2026-01-29 22:29:17,136 - DEBUG - Requesting: http://10.0.0.22:8082/project/1ea3d121-cdde-456d-ac14-9831fbaa129d
2026-01-29 22:29:17,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/720cb48c-cb36-4a79-9717-4b4da93fa3d5
2026-01-29 22:29:17,216 - DEBUG - ==>Verifying data for policy with id: 42b132cb-bfd4-41ac-902b-5eefec44fb58, fqn: ['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-policy-allow-all-20629421']
2026-01-29 22:29:17,216 - INFO - VN ctest-vn-49395750 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 22:29:17,216 - DEBUG - Verifying the vn in opserver
2026-01-29 22:29:17,216 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-49395750 virtual network link through opserver 10.0.0.22
2026-01-29 22:29:17,216 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 22:29:17,524 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 22:29:17,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-49395750', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-49395750?flat'}
2026-01-29 22:29:17,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-49395750 is found in opserver
2026-01-29 22:29:17,595 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 22:29:17,600 - DEBUG - VRF ids for VN ctest-vn-49395750: {}
2026-01-29 22:29:17,600 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 22:29:17,606 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe
2026-01-29 22:29:17,616 - DEBUG - Requesting: http://10.0.0.22:8082/project/1ea3d121-cdde-456d-ac14-9831fbaa129d
2026-01-29 22:29:17,685 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e
2026-01-29 22:29:17,696 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e
2026-01-29 22:29:17,704 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/34c8ef47-93db-4ef3-81b8-698501d3b171
2026-01-29 22:29:17,709 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/34c8ef47-93db-4ef3-81b8-698501d3b171
2026-01-29 22:29:17,715 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e436c3df-32fe-4764-8572-21bbd8965649
2026-01-29 22:29:17,720 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 22:29:17,720 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e
2026-01-29 22:29:17,728 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/34c8ef47-93db-4ef3-81b8-698501d3b171
2026-01-29 22:29:17,741 - INFO - Verified VN network id 13 for VN 675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e
2026-01-29 22:29:17,741 - INFO - Verifications in API Server for VN ctest-vn-20975474 passed
2026-01-29 22:29:17,741 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e
2026-01-29 22:29:17,750 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/34c8ef47-93db-4ef3-81b8-698501d3b171
2026-01-29 22:29:17,758 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/34c8ef47-93db-4ef3-81b8-698501d3b171
2026-01-29 22:29:17,765 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e436c3df-32fe-4764-8572-21bbd8965649
2026-01-29 22:29:17,775 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-20975474', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10003168', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7448343324894580407', 'uuid-lslong': '13427488866513427854'}, 'enable': 'true', 'created': '2026-01-29T22:29:15', 'last-modified': '2026-01-29T22:29:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438404'}
2026-01-29 22:29:17,779 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 22:29:17,780 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20975474 passed
2026-01-29 22:29:17,780 - DEBUG - ====Verifying policy data for ctest-vn-20975474 in API_Server ======
2026-01-29 22:29:17,780 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-29 22:29:17,786 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe
2026-01-29 22:29:17,796 - DEBUG - Requesting: http://10.0.0.22:8082/project/1ea3d121-cdde-456d-ac14-9831fbaa129d
2026-01-29 22:29:17,869 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/675dd4ca-7d7e-4eb7-ba58-05fb720b9d8e
2026-01-29 22:29:17,880 - DEBUG - ==>Verifying data for policy with id: 42b132cb-bfd4-41ac-902b-5eefec44fb58, fqn: ['default-domain', 'ctest-TestBasicPolicy-10003168', 'ctest-policy-allow-all-20629421']
2026-01-29 22:29:17,880 - INFO - VN ctest-vn-20975474 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 22:29:17,880 - DEBUG - Verifying the vn in opserver
2026-01-29 22:29:17,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-20975474 virtual network link through opserver 10.0.0.22
2026-01-29 22:29:17,880 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-29 22:29:17,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-20975474', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-20975474?flat'}
2026-01-29 22:29:17,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10003168:ctest-vn-20975474 is found in opserver
2026-01-29 22:29:17,901 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 22:29:17,905 - DEBUG - VRF ids for VN ctest-vn-20975474: {}
2026-01-29 22:29:17,966 - DEBUG - Services list from nova: [