2025-10-22 08:19:51,525 - INFO - Domain Default found not creating
2025-10-22 08:19:51,677 - INFO - Project ctest-TestBasicPolicy-73209495 not found, creating it
2025-10-22 08:19:52,134 - INFO - Created Project:ctest-TestBasicPolicy-73209495, ID : 9fe6356e-1413-41f7-b774-a546f172c5c2
2025-10-22 08:19:53,633 - INFO - ================================================================================
2025-10-22 08:19:53,633 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 08:19:53,633 - 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-22 08:19:53,889 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.25': '0'}} with
2025-10-22 08:19:53,889 - INFO - Initial checks done. Running the testcase now
2025-10-22 08:19:53,889 - INFO -
2025-10-22 08:19:54,436 - DEBUG - Response for create_network : {'network': {'id': '3892cadd-80f2-4728-9013-dfeb30dfff8e', 'name': 'ctest-vn-17504419', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-17504419'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:19:54,593 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b915419b-672c-4728-ba13-0b70ef956d44', 'name': '', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'network_id': '3892cadd-80f2-4728-9013-dfeb30dfff8e', 'ip_version': 4, 'cidr': '148.171.76.192/26', 'allocation_pools': [{'start': '148.171.76.194', 'end': '148.171.76.254'}], 'gateway_ip': '148.171.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.171.76.194', 'tags': [], 'project_id': '9fe6356e141341f7b774a546f172c5c2'}}
2025-10-22 08:19:54,613 - INFO - Created VN ctest-vn-17504419
2025-10-22 08:19:54,667 - DEBUG - VN ctest-vn-17504419 UUID is 3892cadd-80f2-4728-9013-dfeb30dfff8e
2025-10-22 08:19:54,949 - DEBUG - Response for create_network : {'network': {'id': 'd47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb', 'name': 'ctest-vn-61046696', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-61046696'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:19:55,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '013a5591-0e20-404a-991a-f56b65a26cc1', 'name': '', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'network_id': 'd47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb', 'ip_version': 4, 'cidr': '185.66.29.64/26', 'allocation_pools': [{'start': '185.66.29.66', 'end': '185.66.29.126'}], 'gateway_ip': '185.66.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.66.29.66', 'tags': [], 'project_id': '9fe6356e141341f7b774a546f172c5c2'}}
2025-10-22 08:19:55,183 - INFO - Created VN ctest-vn-61046696
2025-10-22 08:19:55,236 - DEBUG - VN ctest-vn-61046696 UUID is d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb
2025-10-22 08:19:55,391 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419, 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-73209495:ctest-vn-61046696, 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-22 08:19:55,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3892cadd-80f2-4728-9013-dfeb30dfff8e', 'name': 'ctest-vn-17504419', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b915419b-672c-4728-ba13-0b70ef956d44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-17504419'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064']], 'subnet_ipam': [{'subnet_cidr': '148.171.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:19:55,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb', 'name': 'ctest-vn-61046696', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['013a5591-0e20-404a-991a-f56b65a26cc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-61046696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064']], 'subnet_ipam': [{'subnet_cidr': '185.66.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 08:19:56,027 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 08:19:56,326 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 08:19:56,355 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a
2025-10-22 08:19:56,366 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2
2025-10-22 08:19:56,439 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e
2025-10-22 08:19:56,450 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e
2025-10-22 08:19:56,460 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb
2025-10-22 08:19:56,469 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb
2025-10-22 08:19:56,476 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/da42e439-1850-426b-bc86-e495f5ce1956
2025-10-22 08:19:56,484 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 08:19:56,484 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e
2025-10-22 08:19:56,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb
2025-10-22 08:19:56,519 - INFO - Verified VN network id 11 for VN 3892cadd-80f2-4728-9013-dfeb30dfff8e
2025-10-22 08:19:56,519 - INFO - Verifications in API Server for VN ctest-vn-17504419 passed
2025-10-22 08:19:56,519 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e
2025-10-22 08:19:56,528 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb
2025-10-22 08:19:56,535 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb
2025-10-22 08:19:56,541 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/da42e439-1850-426b-bc86-e495f5ce1956
2025-10-22 08:19:56,554 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73209495', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4076543665423664936', 'uuid-lslong': '10381887767249420174'}, 'enable': 'true', 'created': '2025-10-22T08:19:54', 'last-modified': '2025-10-22T08:19:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891442'}
2025-10-22 08:19:56,560 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 08:19:56,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17504419 passed
2025-10-22 08:19:56,561 - DEBUG - ====Verifying policy data for ctest-vn-17504419 in API_Server ======
2025-10-22 08:19:56,561 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 08:19:56,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a
2025-10-22 08:19:56,577 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2
2025-10-22 08:19:56,647 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e
2025-10-22 08:19:56,655 - DEBUG - ==>Verifying data for policy with id: a399b864-6035-45b1-8080-0321d2347c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064']
2025-10-22 08:19:56,655 - INFO - VN ctest-vn-17504419 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 08:19:56,655 - DEBUG - Verifying the vn in opserver
2025-10-22 08:19:56,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419 virtual network link through opserver 10.0.0.254
2025-10-22 08:19:56,655 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 08:19:56,950 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 08:19:57,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419?flat'}
2025-10-22 08:19:57,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419 is found in opserver
2025-10-22 08:19:57,018 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 08:19:57,023 - DEBUG - VRF ids for VN ctest-vn-17504419: {}
2025-10-22 08:19:57,023 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 08:19:57,029 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a
2025-10-22 08:19:57,040 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2
2025-10-22 08:19:57,110 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb
2025-10-22 08:19:57,121 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb
2025-10-22 08:19:57,130 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92
2025-10-22 08:19:57,139 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92
2025-10-22 08:19:57,149 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc308475-da14-4cb0-b34a-c1d788d57e49
2025-10-22 08:19:57,157 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 08:19:57,157 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb
2025-10-22 08:19:57,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92
2025-10-22 08:19:57,180 - INFO - Verified VN network id 12 for VN d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb
2025-10-22 08:19:57,180 - INFO - Verifications in API Server for VN ctest-vn-61046696 passed
2025-10-22 08:19:57,180 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb
2025-10-22 08:19:57,189 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92
2025-10-22 08:19:57,196 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92
2025-10-22 08:19:57,203 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc308475-da14-4cb0-b34a-c1d788d57e49
2025-10-22 08:19:57,216 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73209495', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15310634911722655070', 'uuid-lslong': '10067980368011869659'}, 'enable': 'true', 'created': '2025-10-22T08:19:54', 'last-modified': '2025-10-22T08:19:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.328104'}
2025-10-22 08:19:57,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 08:19:57,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61046696 passed
2025-10-22 08:19:57,222 - DEBUG - ====Verifying policy data for ctest-vn-61046696 in API_Server ======
2025-10-22 08:19:57,222 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 08:19:57,227 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a
2025-10-22 08:19:57,237 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2
2025-10-22 08:19:57,309 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb
2025-10-22 08:19:57,318 - DEBUG - ==>Verifying data for policy with id: a399b864-6035-45b1-8080-0321d2347c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064']
2025-10-22 08:19:57,318 - INFO - VN ctest-vn-61046696 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 08:19:57,318 - DEBUG - Verifying the vn in opserver
2025-10-22 08:19:57,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696 virtual network link through opserver 10.0.0.254
2025-10-22 08:19:57,318 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 08:19:57,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696?flat'}
2025-10-22 08:19:57,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696 is found in opserver
2025-10-22 08:19:57,336 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 08:19:57,341 - DEBUG - VRF ids for VN ctest-vn-61046696: {}
2025-10-22 08:19:57,400 - DEBUG - Services list from nova: [