2025-05-15 14:27:20,253 - INFO - Domain Default found not creating
2025-05-15 14:27:20,419 - INFO - Project ctest-TestBasicPolicy-46805391 not found, creating it
2025-05-15 14:27:20,898 - INFO - Created Project:ctest-TestBasicPolicy-46805391, ID : 6ee71507-904b-40d0-aaf9-5b5de95277a1
2025-05-15 14:27:22,515 - INFO - ================================================================================
2025-05-15 14:27:22,515 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-15 14:27:22,515 - 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-05-15 14:27:22,774 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-05-15 14:27:22,774 - INFO - Initial checks done. Running the testcase now
2025-05-15 14:27:22,774 - INFO -
2025-05-15 14:27:23,402 - DEBUG - Response for create_network : {'network': {'id': 'bfaa19e9-88c4-438e-9b45-9b98d05468a1', 'name': 'ctest-vn-53986673', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-53986673'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 14:27:23,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '71f2dc70-b93b-4895-b169-aa742dfeed55', 'name': '', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'network_id': 'bfaa19e9-88c4-438e-9b45-9b98d05468a1', 'ip_version': 4, 'cidr': '86.221.145.64/26', 'allocation_pools': [{'start': '86.221.145.66', 'end': '86.221.145.126'}], 'gateway_ip': '86.221.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.221.145.66', 'tags': [], 'project_id': '6ee71507904b40d0aaf95b5de95277a1'}}
2025-05-15 14:27:23,623 - INFO - Created VN ctest-vn-53986673
2025-05-15 14:27:23,679 - DEBUG - VN ctest-vn-53986673 UUID is bfaa19e9-88c4-438e-9b45-9b98d05468a1
2025-05-15 14:27:24,028 - DEBUG - Response for create_network : {'network': {'id': '143c55a5-48f9-48a0-bef8-fafecf19373f', 'name': 'ctest-vn-95337800', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-95337800'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 14:27:24,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ceb54cf-862b-43a1-aabf-c56c7b87d8c4', 'name': '', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'network_id': '143c55a5-48f9-48a0-bef8-fafecf19373f', 'ip_version': 4, 'cidr': '38.229.118.192/26', 'allocation_pools': [{'start': '38.229.118.194', 'end': '38.229.118.254'}], 'gateway_ip': '38.229.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.229.118.194', 'tags': [], 'project_id': '6ee71507904b40d0aaf95b5de95277a1'}}
2025-05-15 14:27:24,288 - INFO - Created VN ctest-vn-95337800
2025-05-15 14:27:24,343 - DEBUG - VN ctest-vn-95337800 UUID is 143c55a5-48f9-48a0-bef8-fafecf19373f
2025-05-15 14:27:24,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673, 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-46805391:ctest-vn-95337800, 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-05-15 14:27:24,825 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfaa19e9-88c4-438e-9b45-9b98d05468a1', 'name': 'ctest-vn-53986673', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71f2dc70-b93b-4895-b169-aa742dfeed55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-53986673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905']], 'subnet_ipam': [{'subnet_cidr': '86.221.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 14:27:25,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '143c55a5-48f9-48a0-bef8-fafecf19373f', 'name': 'ctest-vn-95337800', 'tenant_id': '6ee71507904b40d0aaf95b5de95277a1', 'project_id': '6ee71507904b40d0aaf95b5de95277a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ceb54cf-862b-43a1-aabf-c56c7b87d8c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-vn-95337800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905']], 'subnet_ipam': [{'subnet_cidr': '38.229.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 14:27:25,247 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 14:27:25,588 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 14:27:25,621 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42
2025-05-15 14:27:25,637 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1
2025-05-15 14:27:25,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1
2025-05-15 14:27:25,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1
2025-05-15 14:27:25,740 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5
2025-05-15 14:27:25,749 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5
2025-05-15 14:27:25,759 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5111e669-45b0-476f-a5f3-0c0e5b15e50f
2025-05-15 14:27:25,767 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 14:27:25,767 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1
2025-05-15 14:27:25,779 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5
2025-05-15 14:27:25,799 - INFO - Verified VN network id 9 for VN bfaa19e9-88c4-438e-9b45-9b98d05468a1
2025-05-15 14:27:25,799 - INFO - Verifications in API Server for VN ctest-vn-53986673 passed
2025-05-15 14:27:25,799 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1
2025-05-15 14:27:25,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5
2025-05-15 14:27:25,823 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcc63e86-74dd-4560-ae69-e48f10332fe5
2025-05-15 14:27:25,832 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5111e669-45b0-476f-a5f3-0c0e5b15e50f
2025-05-15 14:27:25,849 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46805391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13810879698097685390', 'uuid-lslong': '11188519929904392353'}, 'enable': 'true', 'created': '2025-05-15T14:27:23', 'last-modified': '2025-05-15T14:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068332'}
2025-05-15 14:27:25,857 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 14:27:25,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53986673 passed
2025-05-15 14:27:25,858 - DEBUG - ====Verifying policy data for ctest-vn-53986673 in API_Server ======
2025-05-15 14:27:25,858 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 14:27:25,865 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42
2025-05-15 14:27:25,878 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1
2025-05-15 14:27:26,024 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bfaa19e9-88c4-438e-9b45-9b98d05468a1
2025-05-15 14:27:26,037 - DEBUG - ==>Verifying data for policy with id: 023227ca-ae0f-4e31-81b3-79fce558538c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905']
2025-05-15 14:27:26,037 - INFO - VN ctest-vn-53986673 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 14:27:26,037 - DEBUG - Verifying the vn in opserver
2025-05-15 14:27:26,037 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673 virtual network link through opserver 10.0.0.50
2025-05-15 14:27:26,037 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-15 14:27:26,372 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-15 14:27:26,434 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673?flat'}
2025-05-15 14:27:26,434 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-53986673 is found in opserver
2025-05-15 14:27:26,447 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 14:27:26,454 - DEBUG - VRF ids for VN ctest-vn-53986673: {}
2025-05-15 14:27:26,454 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 14:27:26,462 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42
2025-05-15 14:27:26,478 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1
2025-05-15 14:27:26,560 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f
2025-05-15 14:27:26,577 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f
2025-05-15 14:27:26,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae
2025-05-15 14:27:26,602 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae
2025-05-15 14:27:26,613 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63ce946d-0874-4fa7-80f4-797396f4328c
2025-05-15 14:27:26,625 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 14:27:26,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f
2025-05-15 14:27:26,639 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae
2025-05-15 14:27:26,658 - INFO - Verified VN network id 10 for VN 143c55a5-48f9-48a0-bef8-fafecf19373f
2025-05-15 14:27:26,658 - INFO - Verifications in API Server for VN ctest-vn-95337800 passed
2025-05-15 14:27:26,658 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f
2025-05-15 14:27:26,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae
2025-05-15 14:27:26,680 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05aefb87-0bb1-4922-80f4-3fb74501e4ae
2025-05-15 14:27:26,689 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63ce946d-0874-4fa7-80f4-797396f4328c
2025-05-15 14:27:26,705 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46805391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1458134547743459488', 'uuid-lslong': '13761024633733723967'}, 'enable': 'true', 'created': '2025-05-15T14:27:23', 'last-modified': '2025-05-15T14:27:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.656819'}
2025-05-15 14:27:26,713 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 14:27:26,713 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95337800 passed
2025-05-15 14:27:26,713 - DEBUG - ====Verifying policy data for ctest-vn-95337800 in API_Server ======
2025-05-15 14:27:26,713 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 14:27:26,720 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fd1687cc-90ba-4a5a-b088-e233b10cff42
2025-05-15 14:27:26,734 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ee71507-904b-40d0-aaf9-5b5de95277a1
2025-05-15 14:27:26,811 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/143c55a5-48f9-48a0-bef8-fafecf19373f
2025-05-15 14:27:26,825 - DEBUG - ==>Verifying data for policy with id: 023227ca-ae0f-4e31-81b3-79fce558538c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46805391', 'ctest-policy-allow-all-14643905']
2025-05-15 14:27:26,825 - INFO - VN ctest-vn-95337800 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 14:27:26,825 - DEBUG - Verifying the vn in opserver
2025-05-15 14:27:26,825 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800 virtual network link through opserver 10.0.0.50
2025-05-15 14:27:26,825 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-15 14:27:26,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800?flat'}
2025-05-15 14:27:26,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46805391:ctest-vn-95337800 is found in opserver
2025-05-15 14:27:26,859 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 14:27:26,865 - DEBUG - VRF ids for VN ctest-vn-95337800: {}
2025-05-15 14:27:26,926 - DEBUG - Services list from nova: [