2025-03-22 09:28:08,033 - INFO - Domain Default found not creating
2025-03-22 09:28:08,197 - INFO - Project ctest-TestBasicPolicy-86937666 not found, creating it
2025-03-22 09:28:08,714 - INFO - Created Project:ctest-TestBasicPolicy-86937666, ID : 19cd765e-6c13-4d18-b85a-1ee270b4e69b
2025-03-22 09:28:10,351 - INFO - ================================================================================
2025-03-22 09:28:10,351 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-22 09:28:10,351 - 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-03-22 09:28:10,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.11': '0'}} with
2025-03-22 09:28:10,606 - INFO - Initial checks done. Running the testcase now
2025-03-22 09:28:10,606 - INFO -
2025-03-22 09:28:11,215 - DEBUG - Response for create_network : {'network': {'id': '8f601647-3541-415b-8076-d214120f3c9b', 'name': 'ctest-vn-93049605', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-93049605'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:28:11,385 - DEBUG - Response for create_subnet : {'subnet': {'id': '23d98535-a404-41f7-90f1-91d98b1b97b5', 'name': '', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'network_id': '8f601647-3541-415b-8076-d214120f3c9b', 'ip_version': 4, 'cidr': '31.221.137.192/26', 'allocation_pools': [{'start': '31.221.137.194', 'end': '31.221.137.254'}], 'gateway_ip': '31.221.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.221.137.194', 'tags': [], 'project_id': '19cd765e6c134d18b85a1ee270b4e69b'}}
2025-03-22 09:28:11,406 - INFO - Created VN ctest-vn-93049605
2025-03-22 09:28:11,459 - DEBUG - VN ctest-vn-93049605 UUID is 8f601647-3541-415b-8076-d214120f3c9b
2025-03-22 09:28:11,787 - DEBUG - Response for create_network : {'network': {'id': '1d739ad7-439f-4075-832c-e3bf8be94a13', 'name': 'ctest-vn-20973900', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-20973900'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:28:11,941 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b41ee6f-aa28-4610-b7a1-d31c056e8da3', 'name': '', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'network_id': '1d739ad7-439f-4075-832c-e3bf8be94a13', 'ip_version': 4, 'cidr': '105.78.116.0/26', 'allocation_pools': [{'start': '105.78.116.2', 'end': '105.78.116.62'}], 'gateway_ip': '105.78.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.78.116.2', 'tags': [], 'project_id': '19cd765e6c134d18b85a1ee270b4e69b'}}
2025-03-22 09:28:11,964 - INFO - Created VN ctest-vn-20973900
2025-03-22 09:28:12,019 - DEBUG - VN ctest-vn-20973900 UUID is 1d739ad7-439f-4075-832c-e3bf8be94a13
2025-03-22 09:28:12,140 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605, 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-86937666:ctest-vn-20973900, 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-03-22 09:28:12,451 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f601647-3541-415b-8076-d214120f3c9b', 'name': 'ctest-vn-93049605', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23d98535-a404-41f7-90f1-91d98b1b97b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-93049605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608']], 'subnet_ipam': [{'subnet_cidr': '31.221.137.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:28:12,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d739ad7-439f-4075-832c-e3bf8be94a13', 'name': 'ctest-vn-20973900', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b41ee6f-aa28-4610-b7a1-d31c056e8da3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-20973900'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608']], 'subnet_ipam': [{'subnet_cidr': '105.78.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:28:12,875 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-22 09:28:13,221 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-22 09:28:13,251 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3
2025-03-22 09:28:13,267 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b
2025-03-22 09:28:13,354 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b
2025-03-22 09:28:13,367 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b
2025-03-22 09:28:13,378 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789
2025-03-22 09:28:13,387 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789
2025-03-22 09:28:13,396 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/e888b933-4631-4a4c-a60d-259fe2ce619c
2025-03-22 09:28:13,405 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 09:28:13,405 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b
2025-03-22 09:28:13,416 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789
2025-03-22 09:28:13,432 - INFO - Verified VN network id 8 for VN 8f601647-3541-415b-8076-d214120f3c9b
2025-03-22 09:28:13,433 - INFO - Verifications in API Server for VN ctest-vn-93049605 passed
2025-03-22 09:28:13,433 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b
2025-03-22 09:28:13,445 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789
2025-03-22 09:28:13,453 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789
2025-03-22 09:28:13,460 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/e888b933-4631-4a4c-a60d-259fe2ce619c
2025-03-22 09:28:13,473 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86937666', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10331282040279875931', 'uuid-lslong': '9256817067750800539'}, 'enable': 'true', 'created': '2025-03-22T09:28:11', 'last-modified': '2025-03-22T09:28:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048672'}
2025-03-22 09:28:13,480 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 09:28:13,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93049605 passed
2025-03-22 09:28:13,480 - DEBUG - ====Verifying policy data for ctest-vn-93049605 in API_Server ======
2025-03-22 09:28:13,480 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-22 09:28:13,486 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3
2025-03-22 09:28:13,499 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b
2025-03-22 09:28:13,577 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b
2025-03-22 09:28:13,588 - DEBUG - ==>Verifying data for policy with id: 5f66fc78-1741-4168-ae71-e34c95aea46c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608']
2025-03-22 09:28:13,588 - INFO - VN ctest-vn-93049605 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 09:28:13,588 - DEBUG - Verifying the vn in opserver
2025-03-22 09:28:13,588 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605 virtual network link through opserver 10.0.0.29
2025-03-22 09:28:13,589 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-22 09:28:13,924 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-22 09:28:13,990 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605?flat'}
2025-03-22 09:28:13,990 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605 is found in opserver
2025-03-22 09:28:14,003 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 09:28:14,009 - DEBUG - VRF ids for VN ctest-vn-93049605: {}
2025-03-22 09:28:14,009 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-22 09:28:14,016 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3
2025-03-22 09:28:14,029 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b
2025-03-22 09:28:14,104 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13
2025-03-22 09:28:14,117 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13
2025-03-22 09:28:14,128 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839
2025-03-22 09:28:14,137 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839
2025-03-22 09:28:14,145 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/5d89d2a1-e3d7-4e62-97f7-530017e83fcd
2025-03-22 09:28:14,152 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 09:28:14,152 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13
2025-03-22 09:28:14,162 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839
2025-03-22 09:28:14,178 - INFO - Verified VN network id 9 for VN 1d739ad7-439f-4075-832c-e3bf8be94a13
2025-03-22 09:28:14,178 - INFO - Verifications in API Server for VN ctest-vn-20973900 passed
2025-03-22 09:28:14,178 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13
2025-03-22 09:28:14,190 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839
2025-03-22 09:28:14,198 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839
2025-03-22 09:28:14,205 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/5d89d2a1-e3d7-4e62-97f7-530017e83fcd
2025-03-22 09:28:14,218 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86937666', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2122210098764791925', 'uuid-lslong': '9452180129769409043'}, 'enable': 'true', 'created': '2025-03-22T09:28:11', 'last-modified': '2025-03-22T09:28:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540089'}
2025-03-22 09:28:14,225 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 09:28:14,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20973900 passed
2025-03-22 09:28:14,226 - DEBUG - ====Verifying policy data for ctest-vn-20973900 in API_Server ======
2025-03-22 09:28:14,226 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-22 09:28:14,232 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3
2025-03-22 09:28:14,245 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b
2025-03-22 09:28:14,331 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13
2025-03-22 09:28:14,345 - DEBUG - ==>Verifying data for policy with id: 5f66fc78-1741-4168-ae71-e34c95aea46c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608']
2025-03-22 09:28:14,345 - INFO - VN ctest-vn-20973900 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 09:28:14,345 - DEBUG - Verifying the vn in opserver
2025-03-22 09:28:14,345 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900 virtual network link through opserver 10.0.0.29
2025-03-22 09:28:14,345 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-22 09:28:14,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900?flat'}
2025-03-22 09:28:14,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900 is found in opserver
2025-03-22 09:28:14,370 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 09:28:14,375 - DEBUG - VRF ids for VN ctest-vn-20973900: {}
2025-03-22 09:28:14,434 - DEBUG - Services list from nova: [