2025-10-22 12:58:04,550 - INFO - Domain Default found not creating
2025-10-22 12:58:04,711 - INFO - Project ctest-TestBasicPolicy-04135110 not found, creating it
2025-10-22 12:58:05,182 - INFO - Created Project:ctest-TestBasicPolicy-04135110, ID : b9cd33ef-1dd0-4221-bde4-8267d9cea06d
2025-10-22 12:58:06,743 - INFO - ================================================================================
2025-10-22 12:58:06,743 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 12:58:06,743 - 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 12:58:07,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2025-10-22 12:58:07,000 - INFO - Initial checks done. Running the testcase now
2025-10-22 12:58:07,000 - INFO -
2025-10-22 12:58:07,575 - DEBUG - Response for create_network : {'network': {'id': '8113f116-bca6-4006-b6b9-04a33a0b087d', 'name': 'ctest-vn-62719876', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-62719876'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:58:07,742 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0f7be4b-e3a8-4085-8900-a472767be755', 'name': '', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'network_id': '8113f116-bca6-4006-b6b9-04a33a0b087d', 'ip_version': 4, 'cidr': '29.252.225.0/26', 'allocation_pools': [{'start': '29.252.225.2', 'end': '29.252.225.62'}], 'gateway_ip': '29.252.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.252.225.2', 'tags': [], 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d'}}
2025-10-22 12:58:07,763 - INFO - Created VN ctest-vn-62719876
2025-10-22 12:58:07,814 - DEBUG - VN ctest-vn-62719876 UUID is 8113f116-bca6-4006-b6b9-04a33a0b087d
2025-10-22 12:58:08,123 - DEBUG - Response for create_network : {'network': {'id': '24a739cf-2f52-4145-8212-932293fe2f09', 'name': 'ctest-vn-65414643', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-65414643'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:58:08,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '4383cd61-15a6-47c8-926e-4abe0b397e34', 'name': '', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'network_id': '24a739cf-2f52-4145-8212-932293fe2f09', 'ip_version': 4, 'cidr': '193.6.222.64/26', 'allocation_pools': [{'start': '193.6.222.66', 'end': '193.6.222.126'}], 'gateway_ip': '193.6.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.6.222.66', 'tags': [], 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d'}}
2025-10-22 12:58:08,326 - INFO - Created VN ctest-vn-65414643
2025-10-22 12:58:08,378 - DEBUG - VN ctest-vn-65414643 UUID is 24a739cf-2f52-4145-8212-932293fe2f09
2025-10-22 12:58:08,530 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876, 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-04135110:ctest-vn-65414643, 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 12:58:08,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8113f116-bca6-4006-b6b9-04a33a0b087d', 'name': 'ctest-vn-62719876', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0f7be4b-e3a8-4085-8900-a472767be755'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-62719876'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778']], 'subnet_ipam': [{'subnet_cidr': '29.252.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:58:09,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24a739cf-2f52-4145-8212-932293fe2f09', 'name': 'ctest-vn-65414643', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4383cd61-15a6-47c8-926e-4abe0b397e34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-65414643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778']], 'subnet_ipam': [{'subnet_cidr': '193.6.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:58:09,268 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-10-22 12:58:09,616 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-10-22 12:58:09,644 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237
2025-10-22 12:58:09,656 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d
2025-10-22 12:58:09,728 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d
2025-10-22 12:58:09,739 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d
2025-10-22 12:58:09,749 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5
2025-10-22 12:58:09,755 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5
2025-10-22 12:58:09,761 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b128cc08-22e7-4036-83e6-ee3fd10abf94
2025-10-22 12:58:09,767 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 12:58:09,767 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d
2025-10-22 12:58:09,775 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5
2025-10-22 12:58:09,789 - INFO - Verified VN network id 11 for VN 8113f116-bca6-4006-b6b9-04a33a0b087d
2025-10-22 12:58:09,789 - INFO - Verifications in API Server for VN ctest-vn-62719876 passed
2025-10-22 12:58:09,789 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d
2025-10-22 12:58:09,798 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5
2025-10-22 12:58:09,804 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5
2025-10-22 12:58:09,810 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b128cc08-22e7-4036-83e6-ee3fd10abf94
2025-10-22 12:58:09,821 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04135110', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9301042735406792710', 'uuid-lslong': '13166560084694337661'}, 'enable': 'true', 'created': '2025-10-22T12:58:07', 'last-modified': '2025-10-22T12:58:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999983'}
2025-10-22 12:58:09,828 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 12:58:09,828 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62719876 passed
2025-10-22 12:58:09,828 - DEBUG - ====Verifying policy data for ctest-vn-62719876 in API_Server ======
2025-10-22 12:58:09,828 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-10-22 12:58:09,833 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237
2025-10-22 12:58:09,844 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d
2025-10-22 12:58:09,916 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d
2025-10-22 12:58:09,926 - DEBUG - ==>Verifying data for policy with id: 9290de4b-4fcc-4240-b088-6a5e7e65e30a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778']
2025-10-22 12:58:09,926 - INFO - VN ctest-vn-62719876 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 12:58:09,926 - DEBUG - Verifying the vn in opserver
2025-10-22 12:58:09,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876 virtual network link through opserver 10.0.0.19
2025-10-22 12:58:09,926 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-10-22 12:58:10,260 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-10-22 12:58:10,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876?flat'}
2025-10-22 12:58:10,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876 is found in opserver
2025-10-22 12:58:10,337 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 12:58:10,341 - DEBUG - VRF ids for VN ctest-vn-62719876: {}
2025-10-22 12:58:10,341 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-10-22 12:58:10,347 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237
2025-10-22 12:58:10,358 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d
2025-10-22 12:58:10,428 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09
2025-10-22 12:58:10,441 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09
2025-10-22 12:58:10,450 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00
2025-10-22 12:58:10,457 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00
2025-10-22 12:58:10,464 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7847c591-d202-42b9-9b4a-c4bfe1403d6a
2025-10-22 12:58:10,472 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 12:58:10,472 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09
2025-10-22 12:58:10,482 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00
2025-10-22 12:58:10,496 - INFO - Verified VN network id 12 for VN 24a739cf-2f52-4145-8212-932293fe2f09
2025-10-22 12:58:10,496 - INFO - Verifications in API Server for VN ctest-vn-65414643 passed
2025-10-22 12:58:10,496 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09
2025-10-22 12:58:10,506 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00
2025-10-22 12:58:10,513 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00
2025-10-22 12:58:10,519 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7847c591-d202-42b9-9b4a-c4bfe1403d6a
2025-10-22 12:58:10,532 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04135110', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2641143268491018565', 'uuid-lslong': '9372715551232503561'}, 'enable': 'true', 'created': '2025-10-22T12:58:08', 'last-modified': '2025-10-22T12:58:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458548'}
2025-10-22 12:58:10,537 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 12:58:10,537 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65414643 passed
2025-10-22 12:58:10,538 - DEBUG - ====Verifying policy data for ctest-vn-65414643 in API_Server ======
2025-10-22 12:58:10,538 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-10-22 12:58:10,543 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237
2025-10-22 12:58:10,553 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d
2025-10-22 12:58:10,624 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09
2025-10-22 12:58:10,635 - DEBUG - ==>Verifying data for policy with id: 9290de4b-4fcc-4240-b088-6a5e7e65e30a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778']
2025-10-22 12:58:10,635 - INFO - VN ctest-vn-65414643 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 12:58:10,635 - DEBUG - Verifying the vn in opserver
2025-10-22 12:58:10,635 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643 virtual network link through opserver 10.0.0.19
2025-10-22 12:58:10,635 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-10-22 12:58:10,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643?flat'}
2025-10-22 12:58:10,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643 is found in opserver
2025-10-22 12:58:10,655 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 12:58:10,659 - DEBUG - VRF ids for VN ctest-vn-65414643: {}
2025-10-22 12:58:10,719 - DEBUG - Services list from nova: [