2026-08-25 08:52:39,910 - INFO - Domain Default found not creating
2026-08-25 08:52:40,073 - INFO - Project ctest-TestBasicPolicy-97564824 not found, creating it
2026-08-25 08:52:40,576 - INFO - Created Project:ctest-TestBasicPolicy-97564824, ID : 82671ffb-3261-4807-8bb4-4c3ffa031c8e
2026-08-25 08:52:42,194 - INFO - ================================================================================
2026-08-25 08:52:42,194 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-25 08:52:42,195 - 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-08-25 08:52:42,461 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.29': '0'}} with
2026-08-25 08:52:42,461 - INFO - Initial checks done. Running the testcase now
2026-08-25 08:52:42,463 - INFO -
2026-08-25 08:52:43,082 - DEBUG - Response for create_network : {'network': {'id': '5a87ba21-e3e3-433d-94d0-5ae4da725124', 'name': 'ctest-vn-60687892', 'tenant_id': '82671ffb326148078bb44c3ffa031c8e', 'project_id': '82671ffb326148078bb44c3ffa031c8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-vn-60687892'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:52:43,263 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b41478c2-bf5f-48cb-b0d6-99af788c15ae', 'name': '', 'tenant_id': '82671ffb326148078bb44c3ffa031c8e', 'network_id': '5a87ba21-e3e3-433d-94d0-5ae4da725124', 'ip_version': 4, 'cidr': '4.158.34.64/26', 'allocation_pools': [{'start': '4.158.34.66', 'end': '4.158.34.126'}], 'gateway_ip': '4.158.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.158.34.66', 'tags': [], 'project_id': '82671ffb326148078bb44c3ffa031c8e'}}
2026-08-25 08:52:43,279 - INFO - Created VN ctest-vn-60687892
2026-08-25 08:52:43,332 - DEBUG - VN ctest-vn-60687892 UUID is 5a87ba21-e3e3-433d-94d0-5ae4da725124
2026-08-25 08:52:43,677 - DEBUG - Response for create_network : {'network': {'id': '2c8f4129-2018-4afd-9fa0-d10cf720b569', 'name': 'ctest-vn-10527772', 'tenant_id': '82671ffb326148078bb44c3ffa031c8e', 'project_id': '82671ffb326148078bb44c3ffa031c8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-vn-10527772'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:52:43,843 - DEBUG - Response for create_subnet : {'subnet': {'id': '87e8cd52-f068-4dea-9de6-a30eb2e399fa', 'name': '', 'tenant_id': '82671ffb326148078bb44c3ffa031c8e', 'network_id': '2c8f4129-2018-4afd-9fa0-d10cf720b569', 'ip_version': 4, 'cidr': '185.245.30.64/26', 'allocation_pools': [{'start': '185.245.30.66', 'end': '185.245.30.126'}], 'gateway_ip': '185.245.30.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.245.30.66', 'tags': [], 'project_id': '82671ffb326148078bb44c3ffa031c8e'}}
2026-08-25 08:52:43,862 - INFO - Created VN ctest-vn-10527772
2026-08-25 08:52:43,917 - DEBUG - VN ctest-vn-10527772 UUID is 2c8f4129-2018-4afd-9fa0-d10cf720b569
2026-08-25 08:52:44,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-60687892, 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-97564824:ctest-vn-10527772, 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-08-25 08:52:44,366 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a87ba21-e3e3-433d-94d0-5ae4da725124', 'name': 'ctest-vn-60687892', 'tenant_id': '82671ffb326148078bb44c3ffa031c8e', 'project_id': '82671ffb326148078bb44c3ffa031c8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b41478c2-bf5f-48cb-b0d6-99af788c15ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-vn-60687892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-policy-allow-all-79055170']], 'subnet_ipam': [{'subnet_cidr': '4.158.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:52:44,603 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c8f4129-2018-4afd-9fa0-d10cf720b569', 'name': 'ctest-vn-10527772', 'tenant_id': '82671ffb326148078bb44c3ffa031c8e', 'project_id': '82671ffb326148078bb44c3ffa031c8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87e8cd52-f068-4dea-9de6-a30eb2e399fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-vn-10527772'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-policy-allow-all-79055170']], 'subnet_ipam': [{'subnet_cidr': '185.245.30.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 08:52:44,772 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-25 08:52:45,096 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-25 08:52:45,122 - DEBUG - Requesting: http://10.0.0.250:8082/domain/9dc92e69-63ab-4467-8ea2-ccfe1775d7c8
2026-08-25 08:52:45,137 - DEBUG - Requesting: http://10.0.0.250:8082/project/82671ffb-3261-4807-8bb4-4c3ffa031c8e
2026-08-25 08:52:45,217 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/5a87ba21-e3e3-433d-94d0-5ae4da725124
2026-08-25 08:52:45,229 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/5a87ba21-e3e3-433d-94d0-5ae4da725124
2026-08-25 08:52:45,239 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/e611672d-c39c-4db2-b88e-881d7028de15
2026-08-25 08:52:45,247 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/e611672d-c39c-4db2-b88e-881d7028de15
2026-08-25 08:52:45,256 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/f3dd86bd-f4e9-4477-baf0-a81381e118a5
2026-08-25 08:52:45,264 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 08:52:45,265 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/5a87ba21-e3e3-433d-94d0-5ae4da725124
2026-08-25 08:52:45,276 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/e611672d-c39c-4db2-b88e-881d7028de15
2026-08-25 08:52:45,291 - INFO - Verified VN network id 11 for VN 5a87ba21-e3e3-433d-94d0-5ae4da725124
2026-08-25 08:52:45,291 - INFO - Verifications in API Server for VN ctest-vn-60687892 passed
2026-08-25 08:52:45,292 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/5a87ba21-e3e3-433d-94d0-5ae4da725124
2026-08-25 08:52:45,302 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/e611672d-c39c-4db2-b88e-881d7028de15
2026-08-25 08:52:45,310 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/e611672d-c39c-4db2-b88e-881d7028de15
2026-08-25 08:52:45,318 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/f3dd86bd-f4e9-4477-baf0-a81381e118a5
2026-08-25 08:52:45,331 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-60687892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97564824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6523387239989461821', 'uuid-lslong': '10723170651733119268'}, 'enable': 'true', 'created': '2026-08-25T08:52:43', 'last-modified': '2026-08-25T08:52:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.998437'}
2026-08-25 08:52:45,338 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 08:52:45,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60687892 passed
2026-08-25 08:52:45,339 - DEBUG - ====Verifying policy data for ctest-vn-60687892 in API_Server ======
2026-08-25 08:52:45,339 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-25 08:52:45,346 - DEBUG - Requesting: http://10.0.0.250:8082/domain/9dc92e69-63ab-4467-8ea2-ccfe1775d7c8
2026-08-25 08:52:45,359 - DEBUG - Requesting: http://10.0.0.250:8082/project/82671ffb-3261-4807-8bb4-4c3ffa031c8e
2026-08-25 08:52:45,437 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/5a87ba21-e3e3-433d-94d0-5ae4da725124
2026-08-25 08:52:45,448 - DEBUG - ==>Verifying data for policy with id: f507e906-042e-4538-a69f-d2fe78e651de, fqn: ['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-policy-allow-all-79055170']
2026-08-25 08:52:45,448 - INFO - VN ctest-vn-60687892 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 08:52:45,448 - DEBUG - Verifying the vn in opserver
2026-08-25 08:52:45,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-60687892 virtual network link through opserver 10.0.0.250
2026-08-25 08:52:45,448 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks
2026-08-25 08:52:45,775 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks
2026-08-25 08:52:45,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-60687892', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-60687892?flat'}
2026-08-25 08:52:45,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-60687892 is found in opserver
2026-08-25 08:52:45,840 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 08:52:45,847 - DEBUG - VRF ids for VN ctest-vn-60687892: {}
2026-08-25 08:52:45,847 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-25 08:52:45,853 - DEBUG - Requesting: http://10.0.0.250:8082/domain/9dc92e69-63ab-4467-8ea2-ccfe1775d7c8
2026-08-25 08:52:45,865 - DEBUG - Requesting: http://10.0.0.250:8082/project/82671ffb-3261-4807-8bb4-4c3ffa031c8e
2026-08-25 08:52:45,936 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/2c8f4129-2018-4afd-9fa0-d10cf720b569
2026-08-25 08:52:45,949 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/2c8f4129-2018-4afd-9fa0-d10cf720b569
2026-08-25 08:52:45,959 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2ba6718d-c473-4035-99ae-0ef1eb086327
2026-08-25 08:52:45,967 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2ba6718d-c473-4035-99ae-0ef1eb086327
2026-08-25 08:52:45,974 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/27be35ff-9270-48c6-be09-f5d047c733f5
2026-08-25 08:52:45,982 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 08:52:45,982 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/2c8f4129-2018-4afd-9fa0-d10cf720b569
2026-08-25 08:52:45,992 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2ba6718d-c473-4035-99ae-0ef1eb086327
2026-08-25 08:52:46,008 - INFO - Verified VN network id 12 for VN 2c8f4129-2018-4afd-9fa0-d10cf720b569
2026-08-25 08:52:46,008 - INFO - Verifications in API Server for VN ctest-vn-10527772 passed
2026-08-25 08:52:46,008 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/2c8f4129-2018-4afd-9fa0-d10cf720b569
2026-08-25 08:52:46,019 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2ba6718d-c473-4035-99ae-0ef1eb086327
2026-08-25 08:52:46,027 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/2ba6718d-c473-4035-99ae-0ef1eb086327
2026-08-25 08:52:46,037 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/27be35ff-9270-48c6-be09-f5d047c733f5
2026-08-25 08:52:46,052 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-10527772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97564824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3210856704226380541', 'uuid-lslong': '11502423301920175465'}, 'enable': 'true', 'created': '2026-08-25T08:52:43', 'last-modified': '2026-08-25T08:52:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476466'}
2026-08-25 08:52:46,058 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 08:52:46,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10527772 passed
2026-08-25 08:52:46,059 - DEBUG - ====Verifying policy data for ctest-vn-10527772 in API_Server ======
2026-08-25 08:52:46,059 - DEBUG - Requesting: http://10.0.0.250:8082/domains
2026-08-25 08:52:46,064 - DEBUG - Requesting: http://10.0.0.250:8082/domain/9dc92e69-63ab-4467-8ea2-ccfe1775d7c8
2026-08-25 08:52:46,075 - DEBUG - Requesting: http://10.0.0.250:8082/project/82671ffb-3261-4807-8bb4-4c3ffa031c8e
2026-08-25 08:52:46,158 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/2c8f4129-2018-4afd-9fa0-d10cf720b569
2026-08-25 08:52:46,169 - DEBUG - ==>Verifying data for policy with id: f507e906-042e-4538-a69f-d2fe78e651de, fqn: ['default-domain', 'ctest-TestBasicPolicy-97564824', 'ctest-policy-allow-all-79055170']
2026-08-25 08:52:46,169 - INFO - VN ctest-vn-10527772 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 08:52:46,169 - DEBUG - Verifying the vn in opserver
2026-08-25 08:52:46,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-10527772 virtual network link through opserver 10.0.0.250
2026-08-25 08:52:46,169 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks
2026-08-25 08:52:46,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-10527772', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-10527772?flat'}
2026-08-25 08:52:46,179 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97564824:ctest-vn-10527772 is found in opserver
2026-08-25 08:52:46,191 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 08:52:46,196 - DEBUG - VRF ids for VN ctest-vn-10527772: {}
2026-08-25 08:52:46,265 - DEBUG - Services list from nova: [