2025-05-09 04:43:47,044 - INFO - Domain Default found not creating
2025-05-09 04:43:47,194 - INFO - Project ctest-TestBasicPolicy-27678113 not found, creating it
2025-05-09 04:43:47,658 - INFO - Created Project:ctest-TestBasicPolicy-27678113, ID : 3ff5d562-0ac8-481e-9921-ceba9926af09
2025-05-09 04:43:49,196 - INFO - ================================================================================
2025-05-09 04:43:49,196 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-09 04:43:49,196 - 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-09 04:43:49,456 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-09 04:43:49,456 - INFO - Initial checks done. Running the testcase now
2025-05-09 04:43:49,457 - INFO -
2025-05-09 04:43:50,047 - DEBUG - Response for create_network : {'network': {'id': '30a95176-b932-46d7-9065-c940949336de', 'name': 'ctest-vn-83939670', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-83939670'], 'port_security_enabled': True, 'description': ''}}
2025-05-09 04:43:50,256 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea2e167e-5385-4b6d-a484-b5c518ddb8b1', 'name': '', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'network_id': '30a95176-b932-46d7-9065-c940949336de', 'ip_version': 4, 'cidr': '77.12.13.128/26', 'allocation_pools': [{'start': '77.12.13.130', 'end': '77.12.13.190'}], 'gateway_ip': '77.12.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.12.13.130', 'tags': [], 'project_id': '3ff5d5620ac8481e9921ceba9926af09'}}
2025-05-09 04:43:50,276 - INFO - Created VN ctest-vn-83939670
2025-05-09 04:43:50,330 - DEBUG - VN ctest-vn-83939670 UUID is 30a95176-b932-46d7-9065-c940949336de
2025-05-09 04:43:50,643 - DEBUG - Response for create_network : {'network': {'id': '6e4819b6-fe7f-4bef-b91f-d46a9dd86d06', 'name': 'ctest-vn-20883600', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-20883600'], 'port_security_enabled': True, 'description': ''}}
2025-05-09 04:43:50,830 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e2d0c5a-a4dc-44dd-83fb-e4b5fa029e72', 'name': '', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'network_id': '6e4819b6-fe7f-4bef-b91f-d46a9dd86d06', 'ip_version': 4, 'cidr': '38.20.89.128/26', 'allocation_pools': [{'start': '38.20.89.130', 'end': '38.20.89.190'}], 'gateway_ip': '38.20.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.20.89.130', 'tags': [], 'project_id': '3ff5d5620ac8481e9921ceba9926af09'}}
2025-05-09 04:43:50,968 - INFO - Created VN ctest-vn-20883600
2025-05-09 04:43:51,022 - DEBUG - VN ctest-vn-20883600 UUID is 6e4819b6-fe7f-4bef-b91f-d46a9dd86d06
2025-05-09 04:43:51,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670, 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-27678113:ctest-vn-20883600, 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-09 04:43:51,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30a95176-b932-46d7-9065-c940949336de', 'name': 'ctest-vn-83939670', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea2e167e-5385-4b6d-a484-b5c518ddb8b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-83939670'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983']], 'subnet_ipam': [{'subnet_cidr': '77.12.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-09 04:43:51,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e4819b6-fe7f-4bef-b91f-d46a9dd86d06', 'name': 'ctest-vn-20883600', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e2d0c5a-a4dc-44dd-83fb-e4b5fa029e72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-20883600'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983']], 'subnet_ipam': [{'subnet_cidr': '38.20.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-09 04:43:51,862 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 04:43:52,203 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 04:43:52,231 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877
2025-05-09 04:43:52,244 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09
2025-05-09 04:43:52,319 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de
2025-05-09 04:43:52,330 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de
2025-05-09 04:43:52,339 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab
2025-05-09 04:43:52,347 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab
2025-05-09 04:43:52,353 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ba29accb-88f4-4e31-8e8d-0746c54f8554
2025-05-09 04:43:52,360 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-09 04:43:52,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de
2025-05-09 04:43:52,372 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab
2025-05-09 04:43:52,386 - INFO - Verified VN network id 8 for VN 30a95176-b932-46d7-9065-c940949336de
2025-05-09 04:43:52,386 - INFO - Verifications in API Server for VN ctest-vn-83939670 passed
2025-05-09 04:43:52,386 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de
2025-05-09 04:43:52,395 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab
2025-05-09 04:43:52,403 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab
2025-05-09 04:43:52,412 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ba29accb-88f4-4e31-8e8d-0746c54f8554
2025-05-09 04:43:52,424 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27678113', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3506423355239712471', 'uuid-lslong': '10404943793317164766'}, 'enable': 'true', 'created': '2025-05-09T04:43:50', 'last-modified': '2025-05-09T04:43:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982815'}
2025-05-09 04:43:52,432 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-09 04:43:52,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83939670 passed
2025-05-09 04:43:52,432 - DEBUG - ====Verifying policy data for ctest-vn-83939670 in API_Server ======
2025-05-09 04:43:52,432 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 04:43:52,438 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877
2025-05-09 04:43:52,449 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09
2025-05-09 04:43:52,527 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de
2025-05-09 04:43:52,537 - DEBUG - ==>Verifying data for policy with id: d4b5726f-3f5e-453b-a019-13dfe63b661f, fqn: ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983']
2025-05-09 04:43:52,537 - INFO - VN ctest-vn-83939670 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-09 04:43:52,537 - DEBUG - Verifying the vn in opserver
2025-05-09 04:43:52,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670 virtual network link through opserver 10.0.0.254
2025-05-09 04:43:52,537 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-09 04:43:52,867 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-09 04:43:52,918 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670?flat'}
2025-05-09 04:43:52,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670 is found in opserver
2025-05-09 04:43:52,930 - DEBUG - Do not have enough data to verify VN in agent
2025-05-09 04:43:52,935 - DEBUG - VRF ids for VN ctest-vn-83939670: {}
2025-05-09 04:43:52,936 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 04:43:52,941 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877
2025-05-09 04:43:52,955 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09
2025-05-09 04:43:53,028 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06
2025-05-09 04:43:53,040 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06
2025-05-09 04:43:53,050 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78
2025-05-09 04:43:53,058 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78
2025-05-09 04:43:53,066 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7d04d0c-25f7-4ebe-885b-72f69cb5b67a
2025-05-09 04:43:53,072 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-09 04:43:53,073 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06
2025-05-09 04:43:53,082 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78
2025-05-09 04:43:53,096 - INFO - Verified VN network id 9 for VN 6e4819b6-fe7f-4bef-b91f-d46a9dd86d06
2025-05-09 04:43:53,096 - INFO - Verifications in API Server for VN ctest-vn-20883600 passed
2025-05-09 04:43:53,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06
2025-05-09 04:43:53,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78
2025-05-09 04:43:53,113 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78
2025-05-09 04:43:53,120 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7d04d0c-25f7-4ebe-885b-72f69cb5b67a
2025-05-09 04:43:53,132 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27678113', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7946629816239737839', 'uuid-lslong': '13339614175674526982'}, 'enable': 'true', 'created': '2025-05-09T04:43:50', 'last-modified': '2025-05-09T04:43:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454415'}
2025-05-09 04:43:53,139 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-09 04:43:53,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20883600 passed
2025-05-09 04:43:53,139 - DEBUG - ====Verifying policy data for ctest-vn-20883600 in API_Server ======
2025-05-09 04:43:53,139 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-09 04:43:53,145 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877
2025-05-09 04:43:53,157 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09
2025-05-09 04:43:53,232 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06
2025-05-09 04:43:53,243 - DEBUG - ==>Verifying data for policy with id: d4b5726f-3f5e-453b-a019-13dfe63b661f, fqn: ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983']
2025-05-09 04:43:53,243 - INFO - VN ctest-vn-20883600 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-09 04:43:53,243 - DEBUG - Verifying the vn in opserver
2025-05-09 04:43:53,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600 virtual network link through opserver 10.0.0.254
2025-05-09 04:43:53,244 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-09 04:43:53,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600?flat'}
2025-05-09 04:43:53,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600 is found in opserver
2025-05-09 04:43:53,266 - DEBUG - Do not have enough data to verify VN in agent
2025-05-09 04:43:53,271 - DEBUG - VRF ids for VN ctest-vn-20883600: {}
2025-05-09 04:43:53,330 - DEBUG - Services list from nova: [