2025-07-31 12:09:27,893 - INFO - Domain Default found not creating
2025-07-31 12:09:28,053 - INFO - Project ctest-TestBasicPolicy-93189399 not found, creating it
2025-07-31 12:09:28,545 - INFO - Created Project:ctest-TestBasicPolicy-93189399, ID : c761b926-32ad-407c-90fd-ed578eb010da
2025-07-31 12:09:29,999 - INFO - ================================================================================
2025-07-31 12:09:29,999 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 12:09:29,999 - 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-07-31 12:09:30,264 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-07-31 12:09:30,264 - INFO - Initial checks done. Running the testcase now
2025-07-31 12:09:30,264 - INFO -
2025-07-31 12:09:30,880 - DEBUG - Response for create_network : {'network': {'id': '3bd92f82-6e82-446f-8f7f-275971a05768', 'name': 'ctest-vn-97983468', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-97983468'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:09:31,067 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cee9230d-e5a4-4576-83bb-bee2001dbea3', 'name': '', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'network_id': '3bd92f82-6e82-446f-8f7f-275971a05768', 'ip_version': 4, 'cidr': '84.165.122.0/26', 'allocation_pools': [{'start': '84.165.122.2', 'end': '84.165.122.62'}], 'gateway_ip': '84.165.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.165.122.2', 'tags': [], 'project_id': 'c761b92632ad407c90fded578eb010da'}}
2025-07-31 12:09:31,098 - INFO - Created VN ctest-vn-97983468
2025-07-31 12:09:31,159 - DEBUG - VN ctest-vn-97983468 UUID is 3bd92f82-6e82-446f-8f7f-275971a05768
2025-07-31 12:09:31,508 - DEBUG - Response for create_network : {'network': {'id': '24e9cccc-7ef1-4b34-85ea-8f3435837352', 'name': 'ctest-vn-32560263', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-32560263'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:09:31,713 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0f3f15b-8041-444f-82c0-e140d65a2138', 'name': '', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'network_id': '24e9cccc-7ef1-4b34-85ea-8f3435837352', 'ip_version': 4, 'cidr': '67.173.242.0/26', 'allocation_pools': [{'start': '67.173.242.2', 'end': '67.173.242.62'}], 'gateway_ip': '67.173.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.173.242.2', 'tags': [], 'project_id': 'c761b92632ad407c90fded578eb010da'}}
2025-07-31 12:09:31,733 - INFO - Created VN ctest-vn-32560263
2025-07-31 12:09:31,787 - DEBUG - VN ctest-vn-32560263 UUID is 24e9cccc-7ef1-4b34-85ea-8f3435837352
2025-07-31 12:09:31,907 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468, 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-93189399:ctest-vn-32560263, 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-07-31 12:09:32,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bd92f82-6e82-446f-8f7f-275971a05768', 'name': 'ctest-vn-97983468', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cee9230d-e5a4-4576-83bb-bee2001dbea3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-97983468'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018']], 'subnet_ipam': [{'subnet_cidr': '84.165.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:09:32,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24e9cccc-7ef1-4b34-85ea-8f3435837352', 'name': 'ctest-vn-32560263', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0f3f15b-8041-444f-82c0-e140d65a2138'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-32560263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018']], 'subnet_ipam': [{'subnet_cidr': '67.173.242.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:09:32,655 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 12:09:32,953 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 12:09:32,989 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c
2025-07-31 12:09:33,005 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da
2025-07-31 12:09:33,083 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768
2025-07-31 12:09:33,100 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768
2025-07-31 12:09:33,114 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99
2025-07-31 12:09:33,125 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99
2025-07-31 12:09:33,134 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d56ac0e1-0bbf-4743-b362-9b1fba026a47
2025-07-31 12:09:33,142 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 12:09:33,142 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768
2025-07-31 12:09:33,153 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99
2025-07-31 12:09:33,169 - INFO - Verified VN network id 11 for VN 3bd92f82-6e82-446f-8f7f-275971a05768
2025-07-31 12:09:33,169 - INFO - Verifications in API Server for VN ctest-vn-97983468 passed
2025-07-31 12:09:33,169 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768
2025-07-31 12:09:33,180 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99
2025-07-31 12:09:33,190 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99
2025-07-31 12:09:33,199 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d56ac0e1-0bbf-4743-b362-9b1fba026a47
2025-07-31 12:09:33,220 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93189399', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4312530355430245487', 'uuid-lslong': '10340026534577854312'}, 'enable': 'true', 'created': '2025-07-31T12:09:30', 'last-modified': '2025-07-31T12:09:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025963'}
2025-07-31 12:09:33,228 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 12:09:33,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97983468 passed
2025-07-31 12:09:33,228 - DEBUG - ====Verifying policy data for ctest-vn-97983468 in API_Server ======
2025-07-31 12:09:33,228 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 12:09:33,235 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c
2025-07-31 12:09:33,251 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da
2025-07-31 12:09:33,327 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768
2025-07-31 12:09:33,338 - DEBUG - ==>Verifying data for policy with id: 4f52b28d-5ea3-4a99-9133-89de192e585b, fqn: ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018']
2025-07-31 12:09:33,338 - INFO - VN ctest-vn-97983468 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 12:09:33,338 - DEBUG - Verifying the vn in opserver
2025-07-31 12:09:33,338 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468 virtual network link through opserver 10.0.0.65
2025-07-31 12:09:33,338 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-31 12:09:33,635 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-31 12:09:33,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468?flat'}
2025-07-31 12:09:33,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468 is found in opserver
2025-07-31 12:09:33,710 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 12:09:33,716 - DEBUG - VRF ids for VN ctest-vn-97983468: {}
2025-07-31 12:09:33,716 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 12:09:33,723 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c
2025-07-31 12:09:33,736 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da
2025-07-31 12:09:33,813 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352
2025-07-31 12:09:33,827 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352
2025-07-31 12:09:33,838 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7
2025-07-31 12:09:33,846 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7
2025-07-31 12:09:33,854 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/539f0223-d388-4a1a-8689-c739807ee52b
2025-07-31 12:09:33,862 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 12:09:33,862 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352
2025-07-31 12:09:33,873 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7
2025-07-31 12:09:33,894 - INFO - Verified VN network id 12 for VN 24e9cccc-7ef1-4b34-85ea-8f3435837352
2025-07-31 12:09:33,894 - INFO - Verifications in API Server for VN ctest-vn-32560263 passed
2025-07-31 12:09:33,894 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352
2025-07-31 12:09:33,906 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7
2025-07-31 12:09:33,914 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7
2025-07-31 12:09:33,922 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/539f0223-d388-4a1a-8689-c739807ee52b
2025-07-31 12:09:33,935 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93189399', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2659882233614125876', 'uuid-lslong': '9649682605993587538'}, 'enable': 'true', 'created': '2025-07-31T12:09:31', 'last-modified': '2025-07-31T12:09:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.486685'}
2025-07-31 12:09:33,942 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 12:09:33,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32560263 passed
2025-07-31 12:09:33,943 - DEBUG - ====Verifying policy data for ctest-vn-32560263 in API_Server ======
2025-07-31 12:09:33,943 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 12:09:33,949 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c
2025-07-31 12:09:33,963 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da
2025-07-31 12:09:34,037 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352
2025-07-31 12:09:34,049 - DEBUG - ==>Verifying data for policy with id: 4f52b28d-5ea3-4a99-9133-89de192e585b, fqn: ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018']
2025-07-31 12:09:34,049 - INFO - VN ctest-vn-32560263 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 12:09:34,049 - DEBUG - Verifying the vn in opserver
2025-07-31 12:09:34,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263 virtual network link through opserver 10.0.0.65
2025-07-31 12:09:34,049 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-31 12:09:34,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263?flat'}
2025-07-31 12:09:34,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263 is found in opserver
2025-07-31 12:09:34,083 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 12:09:34,090 - DEBUG - VRF ids for VN ctest-vn-32560263: {}
2025-07-31 12:09:34,155 - DEBUG - Services list from nova: [