2025-05-26 11:40:11,131 - INFO - Domain Default found not creating 2025-05-26 11:40:11,290 - INFO - Project ctest-TestBasicPolicy-98123824 not found, creating it 2025-05-26 11:40:11,763 - INFO - Created Project:ctest-TestBasicPolicy-98123824, ID : 7f9d65f2-9884-45f8-97e8-c184e9f2aac0 2025-05-26 11:40:13,423 - INFO - ================================================================================ 2025-05-26 11:40:13,423 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-26 11:40:13,423 - 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-26 11:40:13,686 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-26 11:40:13,687 - INFO - Initial checks done. Running the testcase now 2025-05-26 11:40:13,687 - INFO - 2025-05-26 11:40:14,296 - DEBUG - Response for create_network : {'network': {'id': '6c7d26c5-c2c7-4e28-b422-f83be926d30b', 'name': 'ctest-vn-07006970', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-07006970'], 'port_security_enabled': True, 'description': ''}} 2025-05-26 11:40:14,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '2db85a2f-c24f-4d98-9039-0e2cb4e58def', 'name': '', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'network_id': '6c7d26c5-c2c7-4e28-b422-f83be926d30b', 'ip_version': 4, 'cidr': '52.41.147.64/26', 'allocation_pools': [{'start': '52.41.147.66', 'end': '52.41.147.126'}], 'gateway_ip': '52.41.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.41.147.66', 'tags': [], 'project_id': '7f9d65f2988445f897e8c184e9f2aac0'}} 2025-05-26 11:40:14,525 - INFO - Created VN ctest-vn-07006970 2025-05-26 11:40:14,577 - DEBUG - VN ctest-vn-07006970 UUID is 6c7d26c5-c2c7-4e28-b422-f83be926d30b 2025-05-26 11:40:14,900 - DEBUG - Response for create_network : {'network': {'id': 'aa4a7a58-c3bc-46cc-bcad-970af724c9dc', 'name': 'ctest-vn-82365291', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-82365291'], 'port_security_enabled': True, 'description': ''}} 2025-05-26 11:40:15,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '62e0c17c-1ca3-4640-a6cb-fb047a5b26a2', 'name': '', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'network_id': 'aa4a7a58-c3bc-46cc-bcad-970af724c9dc', 'ip_version': 4, 'cidr': '32.29.155.192/26', 'allocation_pools': [{'start': '32.29.155.194', 'end': '32.29.155.254'}], 'gateway_ip': '32.29.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.29.155.194', 'tags': [], 'project_id': '7f9d65f2988445f897e8c184e9f2aac0'}} 2025-05-26 11:40:15,093 - INFO - Created VN ctest-vn-82365291 2025-05-26 11:40:15,149 - DEBUG - VN ctest-vn-82365291 UUID is aa4a7a58-c3bc-46cc-bcad-970af724c9dc 2025-05-26 11:40:15,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970, 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-98123824:ctest-vn-82365291, 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-26 11:40:15,574 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c7d26c5-c2c7-4e28-b422-f83be926d30b', 'name': 'ctest-vn-07006970', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2db85a2f-c24f-4d98-9039-0e2cb4e58def'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-07006970'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408']], 'subnet_ipam': [{'subnet_cidr': '52.41.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-26 11:40:15,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa4a7a58-c3bc-46cc-bcad-970af724c9dc', 'name': 'ctest-vn-82365291', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62e0c17c-1ca3-4640-a6cb-fb047a5b26a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-82365291'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408']], 'subnet_ipam': [{'subnet_cidr': '32.29.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-26 11:40:15,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 11:40:16,329 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 11:40:16,360 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9 2025-05-26 11:40:16,375 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0 2025-05-26 11:40:16,450 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b 2025-05-26 11:40:16,463 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b 2025-05-26 11:40:16,474 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd 2025-05-26 11:40:16,483 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd 2025-05-26 11:40:16,493 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e66596e4-3f6a-4d26-bbe3-fa6c54dce3a7 2025-05-26 11:40:16,500 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-26 11:40:16,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b 2025-05-26 11:40:16,510 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd 2025-05-26 11:40:16,527 - INFO - Verified VN network id 8 for VN 6c7d26c5-c2c7-4e28-b422-f83be926d30b 2025-05-26 11:40:16,527 - INFO - Verifications in API Server for VN ctest-vn-07006970 passed 2025-05-26 11:40:16,527 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b 2025-05-26 11:40:16,537 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd 2025-05-26 11:40:16,545 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd 2025-05-26 11:40:16,552 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e66596e4-3f6a-4d26-bbe3-fa6c54dce3a7 2025-05-26 11:40:16,569 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98123824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7817447159003303464', 'uuid-lslong': '12980210012233585419'}, 'enable': 'true', 'created': '2025-05-26T11:40:14', 'last-modified': '2025-05-26T11:40:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018002'} 2025-05-26 11:40:16,578 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-26 11:40:16,578 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07006970 passed 2025-05-26 11:40:16,578 - DEBUG - ====Verifying policy data for ctest-vn-07006970 in API_Server ====== 2025-05-26 11:40:16,578 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 11:40:16,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9 2025-05-26 11:40:16,598 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0 2025-05-26 11:40:16,678 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b 2025-05-26 11:40:16,690 - DEBUG - ==>Verifying data for policy with id: 3a692d7b-bf37-4532-bf46-6fdbb839f892, fqn: ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408'] 2025-05-26 11:40:16,690 - INFO - VN ctest-vn-07006970 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-26 11:40:16,690 - DEBUG - Verifying the vn in opserver 2025-05-26 11:40:16,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970 virtual network link through opserver 10.0.0.254 2025-05-26 11:40:16,690 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-26 11:40:17,024 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-26 11:40:17,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970?flat'} 2025-05-26 11:40:17,084 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970 is found in opserver 2025-05-26 11:40:17,096 - DEBUG - Do not have enough data to verify VN in agent 2025-05-26 11:40:17,102 - DEBUG - VRF ids for VN ctest-vn-07006970: {} 2025-05-26 11:40:17,102 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 11:40:17,109 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9 2025-05-26 11:40:17,123 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0 2025-05-26 11:40:17,202 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc 2025-05-26 11:40:17,217 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc 2025-05-26 11:40:17,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9 2025-05-26 11:40:17,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9 2025-05-26 11:40:17,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a2b5bf0-ea7f-4876-a1ec-a8d765ef2dde 2025-05-26 11:40:17,252 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-26 11:40:17,252 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc 2025-05-26 11:40:17,262 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9 2025-05-26 11:40:17,277 - INFO - Verified VN network id 9 for VN aa4a7a58-c3bc-46cc-bcad-970af724c9dc 2025-05-26 11:40:17,277 - INFO - Verifications in API Server for VN ctest-vn-82365291 passed 2025-05-26 11:40:17,277 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc 2025-05-26 11:40:17,287 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9 2025-05-26 11:40:17,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9 2025-05-26 11:40:17,302 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a2b5bf0-ea7f-4876-a1ec-a8d765ef2dde 2025-05-26 11:40:17,316 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98123824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12270754656383944396', 'uuid-lslong': '13595688923453245916'}, 'enable': 'true', 'created': '2025-05-26T11:40:14', 'last-modified': '2025-05-26T11:40:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.525216'} 2025-05-26 11:40:17,323 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-26 11:40:17,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82365291 passed 2025-05-26 11:40:17,323 - DEBUG - ====Verifying policy data for ctest-vn-82365291 in API_Server ====== 2025-05-26 11:40:17,323 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 11:40:17,330 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9 2025-05-26 11:40:17,343 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0 2025-05-26 11:40:17,423 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc 2025-05-26 11:40:17,433 - DEBUG - ==>Verifying data for policy with id: 3a692d7b-bf37-4532-bf46-6fdbb839f892, fqn: ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408'] 2025-05-26 11:40:17,433 - INFO - VN ctest-vn-82365291 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-26 11:40:17,433 - DEBUG - Verifying the vn in opserver 2025-05-26 11:40:17,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291 virtual network link through opserver 10.0.0.254 2025-05-26 11:40:17,433 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-26 11:40:17,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291?flat'} 2025-05-26 11:40:17,445 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291 is found in opserver 2025-05-26 11:40:17,457 - DEBUG - Do not have enough data to verify VN in agent 2025-05-26 11:40:17,463 - DEBUG - VRF ids for VN ctest-vn-82365291: {} 2025-05-26 11:40:17,524 - DEBUG - Services list from nova: [, , ] 2025-05-26 11:40:18,632 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3339-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3339-1) 2025-05-26 11:40:19,977 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3339-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3339-1) 2025-05-26 11:40:19,979 - INFO - Waiting for VM ctest-TestBasicPolicy-98123824-80966127 to be up.. 2025-05-26 11:40:20,073 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-26 11:40:25,154 - DEBUG - VM is in ACTIVE state now 2025-05-26 11:40:25,154 - INFO - VM name : ctest-TestBasicPolicy-98123824-80966127 2025-05-26 11:40:25,234 - DEBUG - VM ctest-TestBasicPolicy-98123824-80966127 ID is 95e1df4c-b24c-49ba-aeae-9ab05b7fbe20 2025-05-26 11:40:25,253 - DEBUG - VM ctest-TestBasicPolicy-98123824-80966127 launched on Node cn-jenkins-deploy-platform-ansible-os-3339-1 2025-05-26 11:40:25,328 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/95e1df4c-b24c-49ba-aeae-9ab05b7fbe20 2025-05-26 11:40:25,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/9aea31c0-dad9-4781-8cc6-0b525d7b01bc 2025-05-26 11:40:28,609 - 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-05-26 11:40:28,609 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98123824-80966127 failed! 2025-05-26 11:40:28,669 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970 is 52.41.147.65 and allocation pool is NOT set 2025-05-26 11:40:30,726 - 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=7.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.316 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.316/3.754/7.192/3.438 ms') 2025-05-26 11:40:30,726 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98123824-80966127 passed 2025-05-26 11:40:30,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 11:40:30,881 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98123824-80966127, IP 52.41.147.67, Port 22 2025-05-26 11:40:31,036 - DEBUG - VM ctest-TestBasicPolicy-98123824-80966127 is ready for SSH connections 2025-05-26 11:40:31,036 - INFO - Waiting for VM ctest-TestBasicPolicy-98123824-31205002 to be up.. 2025-05-26 11:40:31,120 - DEBUG - VM is in ACTIVE state now 2025-05-26 11:40:31,121 - INFO - VM name : ctest-TestBasicPolicy-98123824-31205002 2025-05-26 11:40:31,199 - DEBUG - VM ctest-TestBasicPolicy-98123824-31205002 ID is 35a8fa95-6b9b-422b-9012-304930c4c38a 2025-05-26 11:40:31,199 - DEBUG - VM ctest-TestBasicPolicy-98123824-31205002 launched on Node cn-jenkins-deploy-platform-ansible-os-3339-1 2025-05-26 11:40:31,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/35a8fa95-6b9b-422b-9012-304930c4c38a 2025-05-26 11:40:31,284 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/02dfe23c-362d-4d7e-a15b-51f430e0ee1e 2025-05-26 11:40:32,531 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.99 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.903/2.947/2.992/0.044 ms') 2025-05-26 11:40:32,531 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98123824-31205002 passed 2025-05-26 11:40:32,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 11:40:32,689 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98123824-31205002, IP 32.29.155.195, Port 22 2025-05-26 11:40:32,744 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-05-26 11:40:32,821 - DEBUG - VM ctest-TestBasicPolicy-98123824-31205002 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-26 11:40:37,821 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 11:40:37,821 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98123824-31205002, IP 32.29.155.195, Port 22 2025-05-26 11:40:37,981 - DEBUG - VM ctest-TestBasicPolicy-98123824-31205002 is ready for SSH connections 2025-05-26 11:40:37,981 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 11:40:37,981 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 32.29.155.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-26 11:40:37,981 - DEBUG - ping -s 56 -c 3 -W 1 32.29.155.195 2025-05-26 11:40:42,031 - DEBUG - PING 32.29.155.195 (32.29.155.195): 56 data bytes 64 bytes from 32.29.155.195: seq=0 ttl=63 time=4.043 ms 64 bytes from 32.29.155.195: seq=1 ttl=63 time=0.904 ms 64 bytes from 32.29.155.195: seq=2 ttl=63 time=0.806 ms --- 32.29.155.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.806/1.917/4.043 ms 2025-05-26 11:40:42,031 - INFO - Ping to IP 32.29.155.195 from VM ctest-TestBasicPolicy-98123824-80966127 passed 2025-05-26 11:40:42,212 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3a692d7b-bf37-4532-bf46-6fdbb839f892", "href": "http://10.0.0.254:8082/network-policy/3a692d7b-bf37-4532-bf46-6fdbb839f892"}} 2025-05-26 11:40:42,213 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-26 11:40:42,213 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 32.29.155.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-26 11:40:42,213 - DEBUG - ping -s 56 -c 3 -W 1 32.29.155.195 2025-05-26 11:40:45,448 - DEBUG - PING 32.29.155.195 (32.29.155.195): 56 data bytes 64 bytes from 32.29.155.195: seq=0 ttl=63 time=1.728 ms --- 32.29.155.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.728/1.728/1.728 ms 2025-05-26 11:40:45,449 - WARNING - Ping to IP 32.29.155.195 from VM ctest-TestBasicPolicy-98123824-80966127 failed 2025-05-26 11:40:45,449 - INFO - Deleting VM ctest-TestBasicPolicy-98123824-31205002 2025-05-26 11:40:45,522 - INFO - Deleting VM ctest-TestBasicPolicy-98123824-80966127 2025-05-26 11:40:45,940 - INFO - Deleted policy ctest-policy-allow-all-56830408 2025-05-26 11:40:45,940 - INFO - Deleting VN ctest-vn-82365291 2025-05-26 11:40:45,980 - DEBUG - VN aa4a7a58-c3bc-46cc-bcad-970af724c9dc still in use: Unable to complete operation on network aa4a7a58-c3bc-46cc-bcad-970af724c9dc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bf50bd57-10b2-4e5b-8b60-9e00d249361b'] 2025-05-26 11:40:45,980 - WARNING - Deleting VN ctest-vn-82365291 failed..Will retry 2025-05-26 11:40:48,107 - DEBUG - Response for deleting network () 2025-05-26 11:40:48,107 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9 2025-05-26 11:40:48,116 - DEBUG - Response Code: 404 2025-05-26 11:40:48,117 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 11:40:48,124 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9 2025-05-26 11:40:48,179 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0 2025-05-26 11:40:48,252 - INFO - Validated that VN ctest-vn-82365291 is not found in API Server 2025-05-26 11:40:48,266 - DEBUG - VN ctest-vn-82365291 is not present in Agent 10.0.0.254 2025-05-26 11:40:48,266 - INFO - Validated that VN ctest-vn-82365291 is not in any agent 2025-05-26 11:40:48,282 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82365291 info 2025-05-26 11:40:48,282 - INFO - Deleting VN ctest-vn-07006970 2025-05-26 11:40:48,394 - DEBUG - Response for deleting network () 2025-05-26 11:40:48,394 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd 2025-05-26 11:40:48,399 - DEBUG - Response Code: 404 2025-05-26 11:40:48,399 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-26 11:40:48,409 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9 2025-05-26 11:40:48,462 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0 2025-05-26 11:40:48,535 - INFO - Validated that VN ctest-vn-07006970 is not found in API Server 2025-05-26 11:40:48,547 - DEBUG - VN ctest-vn-07006970 is not present in Agent 10.0.0.254 2025-05-26 11:40:48,547 - INFO - Validated that VN ctest-vn-07006970 is not in any agent 2025-05-26 11:40:48,564 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-07006970 info 2025-05-26 11:40:48,819 - DEBUG - No XMPP flaps were noticed during the test
2025-05-26 11:40:48,819 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-05-26 11:40:48,819 - INFO - -------------------------------------------------------------------------------- 2025-05-26 11:40:49,550 - INFO - Deleted project: ctest-TestBasicPolicy-98123824, ID : 7f9d65f2-9884-45f8-97e8-c184e9f2aac0