2025-04-07 09:42:07,564 - INFO - Domain Default found not creating
2025-04-07 09:42:07,753 - INFO - Project ctest-TestBasicPolicy-48373245 not found, creating it
2025-04-07 09:42:08,257 - INFO - Created Project:ctest-TestBasicPolicy-48373245, ID : 95513d37-9bc8-4ad8-84a6-99c0759907b8
2025-04-07 09:42:09,906 - INFO - ================================================================================
2025-04-07 09:42:09,906 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-07 09:42:09,906 - 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-04-07 09:42:10,167 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with
2025-04-07 09:42:10,167 - INFO - Initial checks done. Running the testcase now
2025-04-07 09:42:10,167 - INFO -
2025-04-07 09:42:10,805 - DEBUG - Response for create_network : {'network': {'id': 'c4594c47-b492-4323-9bfc-ba35b3811206', 'name': 'ctest-vn-79498325', 'tenant_id': '95513d379bc84ad884a699c0759907b8', 'project_id': '95513d379bc84ad884a699c0759907b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-vn-79498325'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:42:10,981 - DEBUG - Response for create_subnet : {'subnet': {'id': '118d776a-4455-4a63-8310-8ef54c8819a9', 'name': '', 'tenant_id': '95513d379bc84ad884a699c0759907b8', 'network_id': 'c4594c47-b492-4323-9bfc-ba35b3811206', 'ip_version': 4, 'cidr': '212.107.116.192/26', 'allocation_pools': [{'start': '212.107.116.194', 'end': '212.107.116.254'}], 'gateway_ip': '212.107.116.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.107.116.194', 'tags': [], 'project_id': '95513d379bc84ad884a699c0759907b8'}}
2025-04-07 09:42:11,002 - INFO - Created VN ctest-vn-79498325
2025-04-07 09:42:11,056 - DEBUG - VN ctest-vn-79498325 UUID is c4594c47-b492-4323-9bfc-ba35b3811206
2025-04-07 09:42:11,389 - DEBUG - Response for create_network : {'network': {'id': '5a15f3b9-3df3-4d91-83a7-5205fe98be86', 'name': 'ctest-vn-27540682', 'tenant_id': '95513d379bc84ad884a699c0759907b8', 'project_id': '95513d379bc84ad884a699c0759907b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-vn-27540682'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:42:11,607 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bffb9bbb-5bcf-4364-b2ee-57eb986391df', 'name': '', 'tenant_id': '95513d379bc84ad884a699c0759907b8', 'network_id': '5a15f3b9-3df3-4d91-83a7-5205fe98be86', 'ip_version': 4, 'cidr': '84.252.34.128/26', 'allocation_pools': [{'start': '84.252.34.130', 'end': '84.252.34.190'}], 'gateway_ip': '84.252.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.252.34.130', 'tags': [], 'project_id': '95513d379bc84ad884a699c0759907b8'}}
2025-04-07 09:42:11,631 - INFO - Created VN ctest-vn-27540682
2025-04-07 09:42:11,688 - DEBUG - VN ctest-vn-27540682 UUID is 5a15f3b9-3df3-4d91-83a7-5205fe98be86
2025-04-07 09:42:11,812 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-79498325, 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-48373245:ctest-vn-27540682, 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-04-07 09:42:12,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4594c47-b492-4323-9bfc-ba35b3811206', 'name': 'ctest-vn-79498325', 'tenant_id': '95513d379bc84ad884a699c0759907b8', 'project_id': '95513d379bc84ad884a699c0759907b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['118d776a-4455-4a63-8310-8ef54c8819a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-vn-79498325'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-policy-allow-all-45618322']], 'subnet_ipam': [{'subnet_cidr': '212.107.116.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:42:12,375 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a15f3b9-3df3-4d91-83a7-5205fe98be86', 'name': 'ctest-vn-27540682', 'tenant_id': '95513d379bc84ad884a699c0759907b8', 'project_id': '95513d379bc84ad884a699c0759907b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bffb9bbb-5bcf-4364-b2ee-57eb986391df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-vn-27540682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-policy-allow-all-45618322']], 'subnet_ipam': [{'subnet_cidr': '84.252.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 09:42:12,560 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-07 09:42:12,872 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-07 09:42:12,900 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c65be83-6430-4700-9f8b-452004e69499
2025-04-07 09:42:12,915 - DEBUG - Requesting: http://10.0.0.23:8082/project/95513d37-9bc8-4ad8-84a6-99c0759907b8
2025-04-07 09:42:13,009 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c4594c47-b492-4323-9bfc-ba35b3811206
2025-04-07 09:42:13,026 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c4594c47-b492-4323-9bfc-ba35b3811206
2025-04-07 09:42:13,039 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/be7fcf33-01e9-419a-9806-171144464825
2025-04-07 09:42:13,048 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/be7fcf33-01e9-419a-9806-171144464825
2025-04-07 09:42:13,057 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4cf4eba3-ef05-4d85-8e79-ea4c7899e031
2025-04-07 09:42:13,065 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 09:42:13,065 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c4594c47-b492-4323-9bfc-ba35b3811206
2025-04-07 09:42:13,076 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/be7fcf33-01e9-419a-9806-171144464825
2025-04-07 09:42:13,093 - INFO - Verified VN network id 7 for VN c4594c47-b492-4323-9bfc-ba35b3811206
2025-04-07 09:42:13,095 - INFO - Verifications in API Server for VN ctest-vn-79498325 passed
2025-04-07 09:42:13,095 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c4594c47-b492-4323-9bfc-ba35b3811206
2025-04-07 09:42:13,114 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/be7fcf33-01e9-419a-9806-171144464825
2025-04-07 09:42:13,122 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/be7fcf33-01e9-419a-9806-171144464825
2025-04-07 09:42:13,130 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4cf4eba3-ef05-4d85-8e79-ea4c7899e031
2025-04-07 09:42:13,147 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-79498325', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48373245', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14148423575216997155', 'uuid-lslong': '11240063509817528838'}, 'enable': 'true', 'created': '2025-04-07T09:42:10', 'last-modified': '2025-04-07T09:42:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047747'}
2025-04-07 09:42:13,153 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 09:42:13,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79498325 passed
2025-04-07 09:42:13,153 - DEBUG - ====Verifying policy data for ctest-vn-79498325 in API_Server ======
2025-04-07 09:42:13,153 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-07 09:42:13,161 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c65be83-6430-4700-9f8b-452004e69499
2025-04-07 09:42:13,178 - DEBUG - Requesting: http://10.0.0.23:8082/project/95513d37-9bc8-4ad8-84a6-99c0759907b8
2025-04-07 09:42:13,262 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c4594c47-b492-4323-9bfc-ba35b3811206
2025-04-07 09:42:13,274 - DEBUG - ==>Verifying data for policy with id: b10a8ea9-6b46-48d2-87cf-cf48b872deae, fqn: ['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-policy-allow-all-45618322']
2025-04-07 09:42:13,274 - INFO - VN ctest-vn-79498325 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 09:42:13,275 - DEBUG - Verifying the vn in opserver
2025-04-07 09:42:13,275 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-79498325 virtual network link through opserver 10.0.0.23
2025-04-07 09:42:13,275 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-07 09:42:13,579 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-07 09:42:13,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-79498325', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-79498325?flat'}
2025-04-07 09:42:13,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-79498325 is found in opserver
2025-04-07 09:42:13,654 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 09:42:13,661 - DEBUG - VRF ids for VN ctest-vn-79498325: {}
2025-04-07 09:42:13,661 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-07 09:42:13,668 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c65be83-6430-4700-9f8b-452004e69499
2025-04-07 09:42:13,680 - DEBUG - Requesting: http://10.0.0.23:8082/project/95513d37-9bc8-4ad8-84a6-99c0759907b8
2025-04-07 09:42:13,758 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5a15f3b9-3df3-4d91-83a7-5205fe98be86
2025-04-07 09:42:13,771 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5a15f3b9-3df3-4d91-83a7-5205fe98be86
2025-04-07 09:42:13,782 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ae9e8fca-b89c-4016-b2ef-fd0d5159074c
2025-04-07 09:42:13,791 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ae9e8fca-b89c-4016-b2ef-fd0d5159074c
2025-04-07 09:42:13,799 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4030ee00-0f61-4887-93a0-915715d7c582
2025-04-07 09:42:13,816 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 09:42:13,816 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5a15f3b9-3df3-4d91-83a7-5205fe98be86
2025-04-07 09:42:13,828 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ae9e8fca-b89c-4016-b2ef-fd0d5159074c
2025-04-07 09:42:13,846 - INFO - Verified VN network id 8 for VN 5a15f3b9-3df3-4d91-83a7-5205fe98be86
2025-04-07 09:42:13,846 - INFO - Verifications in API Server for VN ctest-vn-27540682 passed
2025-04-07 09:42:13,846 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5a15f3b9-3df3-4d91-83a7-5205fe98be86
2025-04-07 09:42:13,860 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ae9e8fca-b89c-4016-b2ef-fd0d5159074c
2025-04-07 09:42:13,869 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/ae9e8fca-b89c-4016-b2ef-fd0d5159074c
2025-04-07 09:42:13,879 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4030ee00-0f61-4887-93a0-915715d7c582
2025-04-07 09:42:13,896 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-27540682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48373245', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6491362414858292625', 'uuid-lslong': '9486641325778976390'}, 'enable': 'true', 'created': '2025-04-07T09:42:11', 'last-modified': '2025-04-07T09:42:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.548457'}
2025-04-07 09:42:13,904 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 09:42:13,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27540682 passed
2025-04-07 09:42:13,905 - DEBUG - ====Verifying policy data for ctest-vn-27540682 in API_Server ======
2025-04-07 09:42:13,905 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-07 09:42:13,912 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c65be83-6430-4700-9f8b-452004e69499
2025-04-07 09:42:13,924 - DEBUG - Requesting: http://10.0.0.23:8082/project/95513d37-9bc8-4ad8-84a6-99c0759907b8
2025-04-07 09:42:13,995 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5a15f3b9-3df3-4d91-83a7-5205fe98be86
2025-04-07 09:42:14,008 - DEBUG - ==>Verifying data for policy with id: b10a8ea9-6b46-48d2-87cf-cf48b872deae, fqn: ['default-domain', 'ctest-TestBasicPolicy-48373245', 'ctest-policy-allow-all-45618322']
2025-04-07 09:42:14,008 - INFO - VN ctest-vn-27540682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 09:42:14,008 - DEBUG - Verifying the vn in opserver
2025-04-07 09:42:14,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-27540682 virtual network link through opserver 10.0.0.23
2025-04-07 09:42:14,008 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-07 09:42:14,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-27540682', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-27540682?flat'}
2025-04-07 09:42:14,029 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48373245:ctest-vn-27540682 is found in opserver
2025-04-07 09:42:14,041 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 09:42:14,047 - DEBUG - VRF ids for VN ctest-vn-27540682: {}
2025-04-07 09:42:14,145 - DEBUG - Services list from nova: [