2025-04-14 19:49:57,321 - INFO - Domain Default found not creating
2025-04-14 19:49:57,512 - INFO - Project ctest-TestBasicPolicy-16166776 not found, creating it
2025-04-14 19:49:58,021 - INFO - Created Project:ctest-TestBasicPolicy-16166776, ID : e51ab3c1-78b8-4b54-8611-c6b0fe34ae9f
2025-04-14 19:49:59,604 - INFO - ================================================================================
2025-04-14 19:49:59,604 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 19:49:59,604 - 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-14 19:49:59,863 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-14 19:49:59,863 - INFO - Initial checks done. Running the testcase now
2025-04-14 19:49:59,863 - INFO -
2025-04-14 19:50:00,527 - DEBUG - Response for create_network : {'network': {'id': '5fdb3ef4-1bd4-49b6-baec-20a4e855cf76', 'name': 'ctest-vn-03172756', 'tenant_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'project_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-vn-03172756'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:50:00,740 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba6d26ed-e0de-4deb-b8d1-e1b1e241f8f1', 'name': '', 'tenant_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'network_id': '5fdb3ef4-1bd4-49b6-baec-20a4e855cf76', 'ip_version': 4, 'cidr': '128.9.124.0/26', 'allocation_pools': [{'start': '128.9.124.2', 'end': '128.9.124.62'}], 'gateway_ip': '128.9.124.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.9.124.2', 'tags': [], 'project_id': 'e51ab3c178b84b548611c6b0fe34ae9f'}}
2025-04-14 19:50:00,764 - INFO - Created VN ctest-vn-03172756
2025-04-14 19:50:00,820 - DEBUG - VN ctest-vn-03172756 UUID is 5fdb3ef4-1bd4-49b6-baec-20a4e855cf76
2025-04-14 19:50:01,188 - DEBUG - Response for create_network : {'network': {'id': '34a658e7-8117-4178-adb4-50108de856e2', 'name': 'ctest-vn-56654176', 'tenant_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'project_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-vn-56654176'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:50:01,402 - DEBUG - Response for create_subnet : {'subnet': {'id': '83cde5e6-32f8-4d85-b283-989ef8c04562', 'name': '', 'tenant_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'network_id': '34a658e7-8117-4178-adb4-50108de856e2', 'ip_version': 4, 'cidr': '43.135.126.0/26', 'allocation_pools': [{'start': '43.135.126.2', 'end': '43.135.126.62'}], 'gateway_ip': '43.135.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.135.126.2', 'tags': [], 'project_id': 'e51ab3c178b84b548611c6b0fe34ae9f'}}
2025-04-14 19:50:01,425 - INFO - Created VN ctest-vn-56654176
2025-04-14 19:50:01,480 - DEBUG - VN ctest-vn-56654176 UUID is 34a658e7-8117-4178-adb4-50108de856e2
2025-04-14 19:50:01,606 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-03172756, 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-16166776:ctest-vn-56654176, 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-14 19:50:01,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fdb3ef4-1bd4-49b6-baec-20a4e855cf76', 'name': 'ctest-vn-03172756', 'tenant_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'project_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba6d26ed-e0de-4deb-b8d1-e1b1e241f8f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-vn-03172756'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-policy-allow-all-08795440']], 'subnet_ipam': [{'subnet_cidr': '128.9.124.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:50:02,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34a658e7-8117-4178-adb4-50108de856e2', 'name': 'ctest-vn-56654176', 'tenant_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'project_id': 'e51ab3c178b84b548611c6b0fe34ae9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83cde5e6-32f8-4d85-b283-989ef8c04562'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-vn-56654176'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-policy-allow-all-08795440']], 'subnet_ipam': [{'subnet_cidr': '43.135.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:50:02,388 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 19:50:02,692 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 19:50:02,729 - DEBUG - Requesting: http://10.0.0.254:8082/domain/de28f950-c33d-4eab-8525-bdde91f8b540
2025-04-14 19:50:02,745 - DEBUG - Requesting: http://10.0.0.254:8082/project/e51ab3c1-78b8-4b54-8611-c6b0fe34ae9f
2025-04-14 19:50:02,826 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5fdb3ef4-1bd4-49b6-baec-20a4e855cf76
2025-04-14 19:50:02,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5fdb3ef4-1bd4-49b6-baec-20a4e855cf76
2025-04-14 19:50:02,854 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ea26c493-ebd1-425b-b49d-9dc541b8605c
2025-04-14 19:50:02,864 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ea26c493-ebd1-425b-b49d-9dc541b8605c
2025-04-14 19:50:02,874 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/26403597-ac41-4fa4-a354-c4f75fc9878e
2025-04-14 19:50:02,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 19:50:02,886 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5fdb3ef4-1bd4-49b6-baec-20a4e855cf76
2025-04-14 19:50:02,899 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ea26c493-ebd1-425b-b49d-9dc541b8605c
2025-04-14 19:50:02,918 - INFO - Verified VN network id 8 for VN 5fdb3ef4-1bd4-49b6-baec-20a4e855cf76
2025-04-14 19:50:02,918 - INFO - Verifications in API Server for VN ctest-vn-03172756 passed
2025-04-14 19:50:02,918 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5fdb3ef4-1bd4-49b6-baec-20a4e855cf76
2025-04-14 19:50:02,931 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ea26c493-ebd1-425b-b49d-9dc541b8605c
2025-04-14 19:50:02,941 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ea26c493-ebd1-425b-b49d-9dc541b8605c
2025-04-14 19:50:02,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/26403597-ac41-4fa4-a354-c4f75fc9878e
2025-04-14 19:50:02,969 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-03172756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16166776', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6907183671662627254', 'uuid-lslong': '13469176478202974070'}, 'enable': 'true', 'created': '2025-04-14T19:50:00', 'last-modified': '2025-04-14T19:50:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046521'}
2025-04-14 19:50:02,979 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 19:50:02,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03172756 passed
2025-04-14 19:50:02,979 - DEBUG - ====Verifying policy data for ctest-vn-03172756 in API_Server ======
2025-04-14 19:50:02,979 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 19:50:02,989 - DEBUG - Requesting: http://10.0.0.254:8082/domain/de28f950-c33d-4eab-8525-bdde91f8b540
2025-04-14 19:50:03,003 - DEBUG - Requesting: http://10.0.0.254:8082/project/e51ab3c1-78b8-4b54-8611-c6b0fe34ae9f
2025-04-14 19:50:03,081 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5fdb3ef4-1bd4-49b6-baec-20a4e855cf76
2025-04-14 19:50:03,095 - DEBUG - ==>Verifying data for policy with id: c2ebd86f-a83c-41d3-83a3-1a045a1d4bab, fqn: ['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-policy-allow-all-08795440']
2025-04-14 19:50:03,095 - INFO - VN ctest-vn-03172756 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 19:50:03,095 - DEBUG - Verifying the vn in opserver
2025-04-14 19:50:03,095 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-03172756 virtual network link through opserver 10.0.0.254
2025-04-14 19:50:03,095 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 19:50:03,447 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 19:50:03,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-03172756', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-03172756?flat'}
2025-04-14 19:50:03,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-03172756 is found in opserver
2025-04-14 19:50:03,566 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 19:50:03,573 - DEBUG - VRF ids for VN ctest-vn-03172756: {}
2025-04-14 19:50:03,573 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 19:50:03,580 - DEBUG - Requesting: http://10.0.0.254:8082/domain/de28f950-c33d-4eab-8525-bdde91f8b540
2025-04-14 19:50:03,596 - DEBUG - Requesting: http://10.0.0.254:8082/project/e51ab3c1-78b8-4b54-8611-c6b0fe34ae9f
2025-04-14 19:50:03,675 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/34a658e7-8117-4178-adb4-50108de856e2
2025-04-14 19:50:03,690 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/34a658e7-8117-4178-adb4-50108de856e2
2025-04-14 19:50:03,702 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/03b00e56-2ba0-4f69-a251-b1e799aa9f18
2025-04-14 19:50:03,711 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/03b00e56-2ba0-4f69-a251-b1e799aa9f18
2025-04-14 19:50:03,720 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9312d5b8-f587-467f-8444-8f2e6b31eabf
2025-04-14 19:50:03,730 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 19:50:03,730 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/34a658e7-8117-4178-adb4-50108de856e2
2025-04-14 19:50:03,743 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/03b00e56-2ba0-4f69-a251-b1e799aa9f18
2025-04-14 19:50:03,761 - INFO - Verified VN network id 9 for VN 34a658e7-8117-4178-adb4-50108de856e2
2025-04-14 19:50:03,761 - INFO - Verifications in API Server for VN ctest-vn-56654176 passed
2025-04-14 19:50:03,761 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/34a658e7-8117-4178-adb4-50108de856e2
2025-04-14 19:50:03,775 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/03b00e56-2ba0-4f69-a251-b1e799aa9f18
2025-04-14 19:50:03,785 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/03b00e56-2ba0-4f69-a251-b1e799aa9f18
2025-04-14 19:50:03,795 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9312d5b8-f587-467f-8444-8f2e6b31eabf
2025-04-14 19:50:03,812 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-56654176', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16166776', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3793817487432696184', 'uuid-lslong': '12516717296399963874'}, 'enable': 'true', 'created': '2025-04-14T19:50:01', 'last-modified': '2025-04-14T19:50:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.621208'}
2025-04-14 19:50:03,819 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 19:50:03,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56654176 passed
2025-04-14 19:50:03,819 - DEBUG - ====Verifying policy data for ctest-vn-56654176 in API_Server ======
2025-04-14 19:50:03,819 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 19:50:03,827 - DEBUG - Requesting: http://10.0.0.254:8082/domain/de28f950-c33d-4eab-8525-bdde91f8b540
2025-04-14 19:50:03,841 - DEBUG - Requesting: http://10.0.0.254:8082/project/e51ab3c1-78b8-4b54-8611-c6b0fe34ae9f
2025-04-14 19:50:03,925 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/34a658e7-8117-4178-adb4-50108de856e2
2025-04-14 19:50:03,937 - DEBUG - ==>Verifying data for policy with id: c2ebd86f-a83c-41d3-83a3-1a045a1d4bab, fqn: ['default-domain', 'ctest-TestBasicPolicy-16166776', 'ctest-policy-allow-all-08795440']
2025-04-14 19:50:03,937 - INFO - VN ctest-vn-56654176 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 19:50:03,937 - DEBUG - Verifying the vn in opserver
2025-04-14 19:50:03,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-56654176 virtual network link through opserver 10.0.0.254
2025-04-14 19:50:03,938 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 19:50:03,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-56654176', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-56654176?flat'}
2025-04-14 19:50:03,951 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16166776:ctest-vn-56654176 is found in opserver
2025-04-14 19:50:03,965 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 19:50:03,972 - DEBUG - VRF ids for VN ctest-vn-56654176: {}
2025-04-14 19:50:04,046 - DEBUG - Services list from nova: [