2025-11-04 21:52:27,350 - INFO - Domain Default found not creating
2025-11-04 21:52:27,476 - INFO - Project ctest-TestBasicPolicy-65717456 not found, creating it
2025-11-04 21:52:27,903 - INFO - Created Project:ctest-TestBasicPolicy-65717456, ID : 185f3e06-cb06-492d-911c-d7dcead8221b
2025-11-04 21:52:29,294 - INFO - ================================================================================
2025-11-04 21:52:29,294 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 21:52:29,294 - 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-11-04 21:52:29,549 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-11-04 21:52:29,549 - INFO - Initial checks done. Running the testcase now
2025-11-04 21:52:29,549 - INFO -
2025-11-04 21:52:30,386 - DEBUG - Response for create_network : {'network': {'id': '26d72251-bca8-446e-a3d7-4d63dcd21bb0', 'name': 'ctest-vn-21817083', 'tenant_id': '185f3e06cb06492d911cd7dcead8221b', 'project_id': '185f3e06cb06492d911cd7dcead8221b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-vn-21817083'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:52:30,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '07a20a1b-2d3f-457c-b54e-489053700d01', 'name': '', 'tenant_id': '185f3e06cb06492d911cd7dcead8221b', 'network_id': '26d72251-bca8-446e-a3d7-4d63dcd21bb0', 'ip_version': 4, 'cidr': '160.89.158.192/26', 'allocation_pools': [{'start': '160.89.158.194', 'end': '160.89.158.254'}], 'gateway_ip': '160.89.158.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.89.158.194', 'tags': [], 'project_id': '185f3e06cb06492d911cd7dcead8221b'}}
2025-11-04 21:52:30,659 - INFO - Created VN ctest-vn-21817083
2025-11-04 21:52:30,711 - DEBUG - VN ctest-vn-21817083 UUID is 26d72251-bca8-446e-a3d7-4d63dcd21bb0
2025-11-04 21:52:31,021 - DEBUG - Response for create_network : {'network': {'id': 'ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae', 'name': 'ctest-vn-51582605', 'tenant_id': '185f3e06cb06492d911cd7dcead8221b', 'project_id': '185f3e06cb06492d911cd7dcead8221b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-vn-51582605'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:52:31,184 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eff33cf7-f97b-4ae3-8cec-fe5b2068339e', 'name': '', 'tenant_id': '185f3e06cb06492d911cd7dcead8221b', 'network_id': 'ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae', 'ip_version': 4, 'cidr': '70.187.226.192/26', 'allocation_pools': [{'start': '70.187.226.194', 'end': '70.187.226.254'}], 'gateway_ip': '70.187.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.187.226.194', 'tags': [], 'project_id': '185f3e06cb06492d911cd7dcead8221b'}}
2025-11-04 21:52:31,198 - INFO - Created VN ctest-vn-51582605
2025-11-04 21:52:31,252 - DEBUG - VN ctest-vn-51582605 UUID is ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae
2025-11-04 21:52:31,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-21817083, 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-65717456:ctest-vn-51582605, 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-11-04 21:52:31,680 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26d72251-bca8-446e-a3d7-4d63dcd21bb0', 'name': 'ctest-vn-21817083', 'tenant_id': '185f3e06cb06492d911cd7dcead8221b', 'project_id': '185f3e06cb06492d911cd7dcead8221b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07a20a1b-2d3f-457c-b54e-489053700d01'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-vn-21817083'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-policy-allow-all-94381013']], 'subnet_ipam': [{'subnet_cidr': '160.89.158.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:52:31,940 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae', 'name': 'ctest-vn-51582605', 'tenant_id': '185f3e06cb06492d911cd7dcead8221b', 'project_id': '185f3e06cb06492d911cd7dcead8221b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eff33cf7-f97b-4ae3-8cec-fe5b2068339e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-vn-51582605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-policy-allow-all-94381013']], 'subnet_ipam': [{'subnet_cidr': '70.187.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 21:52:32,087 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-04 21:52:32,405 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-04 21:52:32,433 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8b9e7181-8652-4ca8-aa51-033c5d612cfe
2025-11-04 21:52:32,444 - DEBUG - Requesting: http://10.0.0.130:8082/project/185f3e06-cb06-492d-911c-d7dcead8221b
2025-11-04 21:52:32,512 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/26d72251-bca8-446e-a3d7-4d63dcd21bb0
2025-11-04 21:52:32,522 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/26d72251-bca8-446e-a3d7-4d63dcd21bb0
2025-11-04 21:52:32,532 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6c6f5d99-7305-4b7b-bbe2-0f3d7252445e
2025-11-04 21:52:32,538 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6c6f5d99-7305-4b7b-bbe2-0f3d7252445e
2025-11-04 21:52:32,544 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/3adaf758-bc2e-4265-a638-8a92e0dde51b
2025-11-04 21:52:32,549 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 21:52:32,549 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/26d72251-bca8-446e-a3d7-4d63dcd21bb0
2025-11-04 21:52:32,556 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6c6f5d99-7305-4b7b-bbe2-0f3d7252445e
2025-11-04 21:52:32,568 - INFO - Verified VN network id 11 for VN 26d72251-bca8-446e-a3d7-4d63dcd21bb0
2025-11-04 21:52:32,568 - INFO - Verifications in API Server for VN ctest-vn-21817083 passed
2025-11-04 21:52:32,568 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/26d72251-bca8-446e-a3d7-4d63dcd21bb0
2025-11-04 21:52:32,575 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6c6f5d99-7305-4b7b-bbe2-0f3d7252445e
2025-11-04 21:52:32,580 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/6c6f5d99-7305-4b7b-bbe2-0f3d7252445e
2025-11-04 21:52:32,585 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/3adaf758-bc2e-4265-a638-8a92e0dde51b
2025-11-04 21:52:32,594 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-21817083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65717456', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2798743427886892142', 'uuid-lslong': '11805990039476902832'}, 'enable': 'true', 'created': '2025-11-04T21:52:30', 'last-modified': '2025-11-04T21:52:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935270'}
2025-11-04 21:52:32,599 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 21:52:32,599 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21817083 passed
2025-11-04 21:52:32,600 - DEBUG - ====Verifying policy data for ctest-vn-21817083 in API_Server ======
2025-11-04 21:52:32,600 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-04 21:52:32,604 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8b9e7181-8652-4ca8-aa51-033c5d612cfe
2025-11-04 21:52:32,613 - DEBUG - Requesting: http://10.0.0.130:8082/project/185f3e06-cb06-492d-911c-d7dcead8221b
2025-11-04 21:52:32,683 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/26d72251-bca8-446e-a3d7-4d63dcd21bb0
2025-11-04 21:52:32,691 - DEBUG - ==>Verifying data for policy with id: 617d9e01-598d-420b-832c-67da8b7818cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-policy-allow-all-94381013']
2025-11-04 21:52:32,691 - INFO - VN ctest-vn-21817083 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 21:52:32,691 - DEBUG - Verifying the vn in opserver
2025-11-04 21:52:32,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-21817083 virtual network link through opserver 10.0.0.130
2025-11-04 21:52:32,691 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-11-04 21:52:32,999 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-11-04 21:52:33,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-21817083', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-21817083?flat'}
2025-11-04 21:52:33,050 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-21817083 is found in opserver
2025-11-04 21:52:33,059 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 21:52:33,063 - DEBUG - VRF ids for VN ctest-vn-21817083: {}
2025-11-04 21:52:33,063 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-04 21:52:33,068 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8b9e7181-8652-4ca8-aa51-033c5d612cfe
2025-11-04 21:52:33,079 - DEBUG - Requesting: http://10.0.0.130:8082/project/185f3e06-cb06-492d-911c-d7dcead8221b
2025-11-04 21:52:33,150 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae
2025-11-04 21:52:33,161 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae
2025-11-04 21:52:33,168 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/34fcbd6c-77d6-49fc-8b29-9ade00aa34a7
2025-11-04 21:52:33,178 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/34fcbd6c-77d6-49fc-8b29-9ade00aa34a7
2025-11-04 21:52:33,185 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/88d0ffef-f89f-4e44-ad50-91566d9349d1
2025-11-04 21:52:33,193 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 21:52:33,193 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae
2025-11-04 21:52:33,201 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/34fcbd6c-77d6-49fc-8b29-9ade00aa34a7
2025-11-04 21:52:33,212 - INFO - Verified VN network id 12 for VN ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae
2025-11-04 21:52:33,213 - INFO - Verifications in API Server for VN ctest-vn-51582605 passed
2025-11-04 21:52:33,213 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae
2025-11-04 21:52:33,221 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/34fcbd6c-77d6-49fc-8b29-9ade00aa34a7
2025-11-04 21:52:33,227 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/34fcbd6c-77d6-49fc-8b29-9ade00aa34a7
2025-11-04 21:52:33,234 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/88d0ffef-f89f-4e44-ad50-91566d9349d1
2025-11-04 21:52:33,244 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-51582605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65717456', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14884106426643596970', 'uuid-lslong': '13402269792667650478'}, 'enable': 'true', 'created': '2025-11-04T21:52:30', 'last-modified': '2025-11-04T21:52:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367431'}
2025-11-04 21:52:33,250 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 21:52:33,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51582605 passed
2025-11-04 21:52:33,251 - DEBUG - ====Verifying policy data for ctest-vn-51582605 in API_Server ======
2025-11-04 21:52:33,251 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-11-04 21:52:33,257 - DEBUG - Requesting: http://10.0.0.130:8082/domain/8b9e7181-8652-4ca8-aa51-033c5d612cfe
2025-11-04 21:52:33,268 - DEBUG - Requesting: http://10.0.0.130:8082/project/185f3e06-cb06-492d-911c-d7dcead8221b
2025-11-04 21:52:33,338 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ce8ef7ef-8733-46aa-b9fe-6d5e3fe749ae
2025-11-04 21:52:33,347 - DEBUG - ==>Verifying data for policy with id: 617d9e01-598d-420b-832c-67da8b7818cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-65717456', 'ctest-policy-allow-all-94381013']
2025-11-04 21:52:33,347 - INFO - VN ctest-vn-51582605 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 21:52:33,347 - DEBUG - Verifying the vn in opserver
2025-11-04 21:52:33,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-51582605 virtual network link through opserver 10.0.0.130
2025-11-04 21:52:33,347 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-11-04 21:52:33,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-51582605', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-51582605?flat'}
2025-11-04 21:52:33,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65717456:ctest-vn-51582605 is found in opserver
2025-11-04 21:52:33,366 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 21:52:33,370 - DEBUG - VRF ids for VN ctest-vn-51582605: {}
2025-11-04 21:52:33,426 - DEBUG - Services list from nova: [