2025-10-15 16:18:24,423 - INFO - Domain Default found not creating 2025-10-15 16:18:24,567 - INFO - Project ctest-TestBasicPolicy-08961104 not found, creating it 2025-10-15 16:18:25,070 - INFO - Created Project:ctest-TestBasicPolicy-08961104, ID : c003357b-7acf-4423-98c0-a499452f32e0 2025-10-15 16:18:26,499 - INFO - ================================================================================ 2025-10-15 16:18:26,499 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-15 16:18:26,500 - 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-10-15 16:18:27,800 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.5': '0', '10.20.0.18': '0'}, '10.0.0.33': {'10.20.0.18': '0', '10.20.0.252': '0'}} with 2025-10-15 16:18:27,800 - INFO - Initial checks done. Running the testcase now 2025-10-15 16:18:27,800 - INFO - 2025-10-15 16:18:28,506 - DEBUG - Response for create_network : {'network': {'id': 'e8e89ce9-99cb-4536-9c4a-7984026eca9d', 'name': 'ctest-vn-72449232', 'tenant_id': 'c003357b7acf442398c0a499452f32e0', 'project_id': 'c003357b7acf442398c0a499452f32e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-vn-72449232'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:18:28,767 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0f0a895-ecb3-4413-bf09-8fc0c824fe8b', 'name': '', 'tenant_id': 'c003357b7acf442398c0a499452f32e0', 'network_id': 'e8e89ce9-99cb-4536-9c4a-7984026eca9d', 'ip_version': 4, 'cidr': '220.84.65.64/26', 'allocation_pools': [{'start': '220.84.65.66', 'end': '220.84.65.126'}], 'gateway_ip': '220.84.65.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.84.65.66', 'tags': [], 'project_id': 'c003357b7acf442398c0a499452f32e0'}} 2025-10-15 16:18:28,791 - INFO - Created VN ctest-vn-72449232 2025-10-15 16:18:28,810 - DEBUG - VN ctest-vn-72449232 UUID is e8e89ce9-99cb-4536-9c4a-7984026eca9d 2025-10-15 16:18:29,169 - DEBUG - Response for create_network : {'network': {'id': '6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849', 'name': 'ctest-vn-03410368', 'tenant_id': 'c003357b7acf442398c0a499452f32e0', 'project_id': 'c003357b7acf442398c0a499452f32e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-vn-03410368'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:18:29,409 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e8a56b5-5e9c-470a-8815-7332a3a6e2ae', 'name': '', 'tenant_id': 'c003357b7acf442398c0a499452f32e0', 'network_id': '6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849', 'ip_version': 4, 'cidr': '15.147.129.128/26', 'allocation_pools': [{'start': '15.147.129.130', 'end': '15.147.129.190'}], 'gateway_ip': '15.147.129.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.147.129.130', 'tags': [], 'project_id': 'c003357b7acf442398c0a499452f32e0'}} 2025-10-15 16:18:29,432 - INFO - Created VN ctest-vn-03410368 2025-10-15 16:18:29,447 - DEBUG - VN ctest-vn-03410368 UUID is 6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 2025-10-15 16:18:29,534 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232, 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-08961104:ctest-vn-03410368, 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-10-15 16:18:29,892 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8e89ce9-99cb-4536-9c4a-7984026eca9d', 'name': 'ctest-vn-72449232', 'tenant_id': 'c003357b7acf442398c0a499452f32e0', 'project_id': 'c003357b7acf442398c0a499452f32e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a0f0a895-ecb3-4413-bf09-8fc0c824fe8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-vn-72449232'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-policy-allow-all-53055318']], 'subnet_ipam': [{'subnet_cidr': '220.84.65.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:18:30,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849', 'name': 'ctest-vn-03410368', 'tenant_id': 'c003357b7acf442398c0a499452f32e0', 'project_id': 'c003357b7acf442398c0a499452f32e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e8a56b5-5e9c-470a-8815-7332a3a6e2ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-vn-03410368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-policy-allow-all-53055318']], 'subnet_ipam': [{'subnet_cidr': '15.147.129.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:18:30,186 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-15 16:18:30,477 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-15 16:18:30,504 - DEBUG - Requesting: http://10.0.0.130:8082/domain/424b027d-9a59-4bc3-a9ea-fd1131d532cb 2025-10-15 16:18:30,521 - DEBUG - Requesting: http://10.0.0.130:8082/project/c003357b-7acf-4423-98c0-a499452f32e0 2025-10-15 16:18:30,610 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e8e89ce9-99cb-4536-9c4a-7984026eca9d 2025-10-15 16:18:30,625 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e8e89ce9-99cb-4536-9c4a-7984026eca9d 2025-10-15 16:18:30,634 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/60fccb91-582d-4249-8ac5-5f08e8ae4ba7 2025-10-15 16:18:30,642 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/60fccb91-582d-4249-8ac5-5f08e8ae4ba7 2025-10-15 16:18:30,650 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/29aab869-07ff-434f-97c3-573f26acc81d 2025-10-15 16:18:30,657 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:18:30,657 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e8e89ce9-99cb-4536-9c4a-7984026eca9d 2025-10-15 16:18:30,667 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/60fccb91-582d-4249-8ac5-5f08e8ae4ba7 2025-10-15 16:18:30,685 - INFO - Verified VN network id 15 for VN e8e89ce9-99cb-4536-9c4a-7984026eca9d 2025-10-15 16:18:30,686 - INFO - Verifications in API Server for VN ctest-vn-72449232 passed 2025-10-15 16:18:30,686 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e8e89ce9-99cb-4536-9c4a-7984026eca9d 2025-10-15 16:18:30,696 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/60fccb91-582d-4249-8ac5-5f08e8ae4ba7 2025-10-15 16:18:30,705 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/60fccb91-582d-4249-8ac5-5f08e8ae4ba7 2025-10-15 16:18:30,713 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/29aab869-07ff-434f-97c3-573f26acc81d 2025-10-15 16:18:30,725 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08961104', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16782836538517701942', 'uuid-lslong': '11261947426076805789'}, 'enable': 'true', 'created': '2025-10-15T16:18:28', 'last-modified': '2025-10-15T16:18:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867361'} 2025-10-15 16:18:30,731 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:18:30,736 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08961104', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16782836538517701942', 'uuid-lslong': '11261947426076805789'}, 'enable': 'true', 'created': '2025-10-15T16:18:28', 'last-modified': '2025-10-15T16:18:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.878916'} 2025-10-15 16:18:30,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:18:30,750 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08961104', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16782836538517701942', 'uuid-lslong': '11261947426076805789'}, 'enable': 'true', 'created': '2025-10-15T16:18:28', 'last-modified': '2025-10-15T16:18:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890680'} 2025-10-15 16:18:30,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:18:30,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72449232 passed 2025-10-15 16:18:30,756 - DEBUG - ====Verifying policy data for ctest-vn-72449232 in API_Server ====== 2025-10-15 16:18:30,757 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-15 16:18:30,763 - DEBUG - Requesting: http://10.0.0.130:8082/domain/424b027d-9a59-4bc3-a9ea-fd1131d532cb 2025-10-15 16:18:30,776 - DEBUG - Requesting: http://10.0.0.130:8082/project/c003357b-7acf-4423-98c0-a499452f32e0 2025-10-15 16:18:30,864 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e8e89ce9-99cb-4536-9c4a-7984026eca9d 2025-10-15 16:18:30,873 - DEBUG - ==>Verifying data for policy with id: 93af2bb6-f5af-40f2-86d9-e58db528957f, fqn: ['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-policy-allow-all-53055318'] 2025-10-15 16:18:30,873 - INFO - VN ctest-vn-72449232 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 16:18:30,874 - DEBUG - Verifying the vn in opserver 2025-10-15 16:18:30,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 virtual network link through opserver 10.0.0.130 2025-10-15 16:18:30,874 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-15 16:18:31,166 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-15 16:18:31,227 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232?flat'} 2025-10-15 16:18:31,227 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 virtual network link through opserver 10.0.0.131 2025-10-15 16:18:31,227 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-15 16:18:31,519 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-15 16:18:31,575 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232?flat'} 2025-10-15 16:18:31,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 virtual network link through opserver 10.0.0.137 2025-10-15 16:18:31,575 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-15 16:18:31,870 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-15 16:18:31,929 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232?flat'} 2025-10-15 16:18:31,929 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is found in opserver 2025-10-15 16:18:31,949 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 16:18:31,960 - DEBUG - VRF ids for VN ctest-vn-72449232: {} 2025-10-15 16:18:31,960 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-15 16:18:31,968 - DEBUG - Requesting: http://10.0.0.130:8082/domain/424b027d-9a59-4bc3-a9ea-fd1131d532cb 2025-10-15 16:18:31,984 - DEBUG - Requesting: http://10.0.0.130:8082/project/c003357b-7acf-4423-98c0-a499452f32e0 2025-10-15 16:18:32,072 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 2025-10-15 16:18:32,086 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 2025-10-15 16:18:32,097 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/027f6881-dbdd-4149-83d2-901be5ca3b56 2025-10-15 16:18:32,105 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/027f6881-dbdd-4149-83d2-901be5ca3b56 2025-10-15 16:18:32,113 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/aaafff6b-b0be-484e-b7a3-c27959fe99a1 2025-10-15 16:18:32,119 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-15 16:18:32,119 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 2025-10-15 16:18:32,129 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/027f6881-dbdd-4149-83d2-901be5ca3b56 2025-10-15 16:18:32,146 - INFO - Verified VN network id 16 for VN 6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 2025-10-15 16:18:32,146 - INFO - Verifications in API Server for VN ctest-vn-03410368 passed 2025-10-15 16:18:32,146 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 2025-10-15 16:18:32,156 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/027f6881-dbdd-4149-83d2-901be5ca3b56 2025-10-15 16:18:32,163 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/027f6881-dbdd-4149-83d2-901be5ca3b56 2025-10-15 16:18:32,171 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/aaafff6b-b0be-484e-b7a3-c27959fe99a1 2025-10-15 16:18:32,184 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08961104', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8057584572761591392', 'uuid-lslong': '11419703022456817737'}, 'enable': 'true', 'created': '2025-10-15T16:18:29', 'last-modified': '2025-10-15T16:18:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.120474'} 2025-10-15 16:18:32,189 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-15 16:18:32,195 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08961104', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8057584572761591392', 'uuid-lslong': '11419703022456817737'}, 'enable': 'true', 'created': '2025-10-15T16:18:29', 'last-modified': '2025-10-15T16:18:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.133089'} 2025-10-15 16:18:32,201 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-15 16:18:32,206 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08961104', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8057584572761591392', 'uuid-lslong': '11419703022456817737'}, 'enable': 'true', 'created': '2025-10-15T16:18:29', 'last-modified': '2025-10-15T16:18:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.144800'} 2025-10-15 16:18:32,213 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-15 16:18:32,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03410368 passed 2025-10-15 16:18:32,214 - DEBUG - ====Verifying policy data for ctest-vn-03410368 in API_Server ====== 2025-10-15 16:18:32,214 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-15 16:18:32,222 - DEBUG - Requesting: http://10.0.0.130:8082/domain/424b027d-9a59-4bc3-a9ea-fd1131d532cb 2025-10-15 16:18:32,236 - DEBUG - Requesting: http://10.0.0.130:8082/project/c003357b-7acf-4423-98c0-a499452f32e0 2025-10-15 16:18:32,322 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 2025-10-15 16:18:32,332 - DEBUG - ==>Verifying data for policy with id: 93af2bb6-f5af-40f2-86d9-e58db528957f, fqn: ['default-domain', 'ctest-TestBasicPolicy-08961104', 'ctest-policy-allow-all-53055318'] 2025-10-15 16:18:32,332 - INFO - VN ctest-vn-03410368 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 16:18:32,332 - DEBUG - Verifying the vn in opserver 2025-10-15 16:18:32,332 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368 virtual network link through opserver 10.0.0.130 2025-10-15 16:18:32,332 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-15 16:18:32,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368?flat'} 2025-10-15 16:18:32,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368 virtual network link through opserver 10.0.0.131 2025-10-15 16:18:32,397 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-15 16:18:32,456 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368?flat'} 2025-10-15 16:18:32,456 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368 virtual network link through opserver 10.0.0.137 2025-10-15 16:18:32,456 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-15 16:18:32,530 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368?flat'} 2025-10-15 16:18:32,530 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-03410368 is found in opserver 2025-10-15 16:18:32,556 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 16:18:32,567 - DEBUG - VRF ids for VN ctest-vn-03410368: {} 2025-10-15 16:18:32,640 - DEBUG - Services list from nova: [, , , ] 2025-10-15 16:18:33,669 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4330-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4330-1) 2025-10-15 16:18:34,878 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4330-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4330-2) 2025-10-15 16:18:34,878 - INFO - Waiting for VM ctest-TestBasicPolicy-08961104-11643732 to be up.. 2025-10-15 16:18:34,978 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-15 16:18:40,103 - DEBUG - VM is in ACTIVE state now 2025-10-15 16:18:40,103 - INFO - VM name : ctest-TestBasicPolicy-08961104-11643732 2025-10-15 16:18:40,225 - DEBUG - VM ctest-TestBasicPolicy-08961104-11643732 ID is efb47525-428a-41db-907b-a2c6e86e4e98 2025-10-15 16:18:40,259 - DEBUG - VM ctest-TestBasicPolicy-08961104-11643732 launched on Node an-jenkins-deploy-platform-ansible-os-4330-1 2025-10-15 16:18:40,371 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/efb47525-428a-41db-907b-a2c6e86e4e98 2025-10-15 16:18:40,665 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/efb47525-428a-41db-907b-a2c6e86e4e98 2025-10-15 16:18:40,699 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/e8253be4-f0eb-4976-b915-60bca6b9b752 2025-10-15 16:18:43,887 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-15 16:18:43,888 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 failed! 2025-10-15 16:18:43,905 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is 220.84.65.65 and allocation pool is NOT set 2025-10-15 16:18:47,978 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2025-10-15 16:18:47,978 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 failed! 2025-10-15 16:18:47,994 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is 220.84.65.65 and allocation pool is NOT set 2025-10-15 16:18:52,072 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-15 16:18:52,073 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 failed! 2025-10-15 16:18:52,090 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is 220.84.65.65 and allocation pool is NOT set 2025-10-15 16:18:56,174 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-10-15 16:18:56,175 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 failed! 2025-10-15 16:18:56,193 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is 220.84.65.65 and allocation pool is NOT set 2025-10-15 16:19:00,269 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-15 16:19:00,270 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 failed! 2025-10-15 16:19:00,286 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is 220.84.65.65 and allocation pool is NOT set 2025-10-15 16:19:04,364 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-15 16:19:04,365 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 failed! 2025-10-15 16:19:04,380 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is 220.84.65.65 and allocation pool is NOT set 2025-10-15 16:19:08,464 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-10-15 16:19:08,465 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 failed! 2025-10-15 16:19:08,483 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08961104:ctest-vn-72449232 is 220.84.65.65 and allocation pool is NOT set 2025-10-15 16:19:12,559 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=12.1 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1011ms\r\nrtt min/avg/max/mdev = 12.096/12.096/12.096/0.000 ms') 2025-10-15 16:19:12,559 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-11643732 passed 2025-10-15 16:19:12,632 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:12,632 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08961104-11643732, IP 220.84.65.67, Port 22 2025-10-15 16:19:12,700 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-15 16:19:12,791 - DEBUG - VM ctest-TestBasicPolicy-08961104-11643732 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-15 16:19:17,791 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:17,792 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08961104-11643732, IP 220.84.65.67, Port 22 2025-10-15 16:19:17,860 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-15 16:19:17,949 - DEBUG - VM ctest-TestBasicPolicy-08961104-11643732 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-15 16:19:22,950 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:22,950 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08961104-11643732, IP 220.84.65.67, Port 22 2025-10-15 16:19:23,019 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-15 16:19:23,100 - DEBUG - VM ctest-TestBasicPolicy-08961104-11643732 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-15 16:19:28,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:28,102 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08961104-11643732, IP 220.84.65.67, Port 22 2025-10-15 16:19:28,157 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-15 16:19:28,239 - DEBUG - VM ctest-TestBasicPolicy-08961104-11643732 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-15 16:19:33,240 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:33,240 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08961104-11643732, IP 220.84.65.67, Port 22 2025-10-15 16:19:33,407 - DEBUG - VM ctest-TestBasicPolicy-08961104-11643732 is ready for SSH connections 2025-10-15 16:19:33,407 - INFO - Waiting for VM ctest-TestBasicPolicy-08961104-03523056 to be up.. 2025-10-15 16:19:33,490 - DEBUG - VM is in ACTIVE state now 2025-10-15 16:19:33,490 - INFO - VM name : ctest-TestBasicPolicy-08961104-03523056 2025-10-15 16:19:33,572 - DEBUG - VM ctest-TestBasicPolicy-08961104-03523056 ID is 59533c6b-7b02-4f01-83ca-8af4b7fcabed 2025-10-15 16:19:33,572 - DEBUG - VM ctest-TestBasicPolicy-08961104-03523056 launched on Node an-jenkins-deploy-platform-ansible-os-4330-2 2025-10-15 16:19:33,660 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/59533c6b-7b02-4f01-83ca-8af4b7fcabed 2025-10-15 16:19:33,672 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/b8700cff-59b8-401d-8b82-bee5bde34172 2025-10-15 16:19:34,846 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=1.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.67 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.854/2.762/3.671/0.908 ms') 2025-10-15 16:19:34,846 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08961104-03523056 passed 2025-10-15 16:19:34,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:34,921 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08961104-03523056, IP 15.147.129.131, Port 22 2025-10-15 16:19:35,091 - DEBUG - VM ctest-TestBasicPolicy-08961104-03523056 is ready for SSH connections 2025-10-15 16:19:35,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:35,091 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.147.129.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-15 16:19:35,091 - DEBUG - ping -s 56 -c 3 -W 1 15.147.129.131 2025-10-15 16:19:55,514 - DEBUG - PING 15.147.129.131 (15.147.129.131) 56(84) bytes of data. 64 bytes from 15.147.129.131: icmp_req=1 ttl=63 time=11.0 ms 64 bytes from 15.147.129.131: icmp_req=2 ttl=63 time=1.21 ms 64 bytes from 15.147.129.131: icmp_req=3 ttl=63 time=5.46 ms --- 15.147.129.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.210/5.916/11.078/4.041 ms 2025-10-15 16:19:55,514 - INFO - Ping to IP 15.147.129.131 from VM ctest-TestBasicPolicy-08961104-11643732 passed 2025-10-15 16:19:55,725 - DEBUG - Policy Update Response {"network-policy": {"uuid": "93af2bb6-f5af-40f2-86d9-e58db528957f", "href": "http://10.0.0.137:8082/network-policy/93af2bb6-f5af-40f2-86d9-e58db528957f"}} 2025-10-15 16:19:55,725 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:19:55,725 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.147.129.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-15 16:19:55,725 - DEBUG - ping -s 56 -c 3 -W 1 15.147.129.131 2025-10-15 16:19:59,204 - DEBUG - PING 15.147.129.131 (15.147.129.131) 56(84) bytes of data. 64 bytes from 15.147.129.131: icmp_req=1 ttl=63 time=2.49 ms --- 15.147.129.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2008ms rtt min/avg/max/mdev = 2.498/2.498/2.498/0.000 ms 2025-10-15 16:19:59,204 - WARNING - Ping to IP 15.147.129.131 from VM ctest-TestBasicPolicy-08961104-11643732 failed 2025-10-15 16:19:59,204 - INFO - Deleting VM ctest-TestBasicPolicy-08961104-03523056 2025-10-15 16:19:59,268 - INFO - Deleting VM ctest-TestBasicPolicy-08961104-11643732 2025-10-15 16:19:59,644 - INFO - Deleted policy ctest-policy-allow-all-53055318 2025-10-15 16:19:59,644 - INFO - Deleting VN ctest-vn-03410368 2025-10-15 16:19:59,689 - DEBUG - VN 6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849 still in use: Unable to complete operation on network 6fd24a7a-5f1f-4e60-9e7a-ef650dfe4849. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-15e12c54-e656-4a92-8ddc-51afe68b50e7'] 2025-10-15 16:19:59,689 - WARNING - Deleting VN ctest-vn-03410368 failed..Will retry 2025-10-15 16:20:01,898 - DEBUG - Response for deleting network () 2025-10-15 16:20:01,898 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/027f6881-dbdd-4149-83d2-901be5ca3b56 2025-10-15 16:20:01,906 - DEBUG - Response Code: 404 2025-10-15 16:20:01,907 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-15 16:20:01,923 - DEBUG - Requesting: http://10.0.0.130:8082/domain/424b027d-9a59-4bc3-a9ea-fd1131d532cb 2025-10-15 16:20:01,935 - DEBUG - Requesting: http://10.0.0.130:8082/project/c003357b-7acf-4423-98c0-a499452f32e0 2025-10-15 16:20:02,031 - INFO - Validated that VN ctest-vn-03410368 is not found in API Server 2025-10-15 16:20:02,041 - DEBUG - VN ctest-vn-03410368 is not present in Agent 10.0.0.141 2025-10-15 16:20:02,053 - DEBUG - VN ctest-vn-03410368 is not present in Agent 10.0.0.33 2025-10-15 16:20:02,053 - INFO - Validated that VN ctest-vn-03410368 is not in any agent 2025-10-15 16:20:02,093 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03410368 info 2025-10-15 16:20:02,093 - INFO - Deleting VN ctest-vn-72449232 2025-10-15 16:20:02,274 - DEBUG - Response for deleting network () 2025-10-15 16:20:02,274 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/60fccb91-582d-4249-8ac5-5f08e8ae4ba7 2025-10-15 16:20:02,282 - DEBUG - Response Code: 404 2025-10-15 16:20:02,282 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-15 16:20:02,290 - DEBUG - Requesting: http://10.0.0.130:8082/domain/424b027d-9a59-4bc3-a9ea-fd1131d532cb 2025-10-15 16:20:02,310 - DEBUG - Requesting: http://10.0.0.130:8082/project/c003357b-7acf-4423-98c0-a499452f32e0 2025-10-15 16:20:02,397 - INFO - Validated that VN ctest-vn-72449232 is not found in API Server 2025-10-15 16:20:02,409 - DEBUG - VN ctest-vn-72449232 is not present in Agent 10.0.0.141 2025-10-15 16:20:02,422 - DEBUG - VN ctest-vn-72449232 is not present in Agent 10.0.0.33 2025-10-15 16:20:02,422 - INFO - Validated that VN ctest-vn-72449232 is not in any agent 2025-10-15 16:20:02,458 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72449232 info 2025-10-15 16:20:03,768 - DEBUG - No XMPP flaps were noticed during the test 2025-10-15 16:20:03,768 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:37] 2025-10-15 16:20:03,768 - INFO - -------------------------------------------------------------------------------- 2025-10-15 16:20:04,497 - INFO - Deleted project: ctest-TestBasicPolicy-08961104, ID : c003357b-7acf-4423-98c0-a499452f32e0