2025-06-30 17:28:10,223 - INFO - Domain Default found not creating 2025-06-30 17:28:10,586 - INFO - Project ctest-TestBasicPolicy-79313848 not found, creating it 2025-06-30 17:28:11,428 - INFO - Created Project:ctest-TestBasicPolicy-79313848, ID : 4438d2b5-d98f-4103-b03b-a63ed106ac63 2025-06-30 17:28:13,962 - INFO - ================================================================================ 2025-06-30 17:28:13,962 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-30 17:28:13,962 - 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-06-30 17:28:14,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-06-30 17:28:14,290 - INFO - Initial checks done. Running the testcase now 2025-06-30 17:28:14,290 - INFO - 2025-06-30 17:28:15,063 - DEBUG - Response for create_network : {'network': {'id': '2a3c11ec-3781-4a3d-8742-d3c67a46838a', 'name': 'ctest-vn-89942333', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-89942333'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:28:15,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '45ddf501-bf12-4d8a-afe4-208e74bab778', 'name': '', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'network_id': '2a3c11ec-3781-4a3d-8742-d3c67a46838a', 'ip_version': 4, 'cidr': '171.194.219.128/26', 'allocation_pools': [{'start': '171.194.219.130', 'end': '171.194.219.190'}], 'gateway_ip': '171.194.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.194.219.130', 'tags': [], 'project_id': '4438d2b5d98f4103b03ba63ed106ac63'}} 2025-06-30 17:28:15,351 - INFO - Created VN ctest-vn-89942333 2025-06-30 17:28:15,418 - DEBUG - VN ctest-vn-89942333 UUID is 2a3c11ec-3781-4a3d-8742-d3c67a46838a 2025-06-30 17:28:15,865 - DEBUG - Response for create_network : {'network': {'id': '833f47db-a4a1-4aab-8fea-0fdb378a572c', 'name': 'ctest-vn-19896906', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-19896906'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:28:16,097 - DEBUG - Response for create_subnet : {'subnet': {'id': '9eeb85ea-2599-445d-8c46-ca96842da354', 'name': '', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'network_id': '833f47db-a4a1-4aab-8fea-0fdb378a572c', 'ip_version': 4, 'cidr': '21.196.70.128/26', 'allocation_pools': [{'start': '21.196.70.130', 'end': '21.196.70.190'}], 'gateway_ip': '21.196.70.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.196.70.130', 'tags': [], 'project_id': '4438d2b5d98f4103b03ba63ed106ac63'}} 2025-06-30 17:28:16,116 - INFO - Created VN ctest-vn-19896906 2025-06-30 17:28:16,174 - DEBUG - VN ctest-vn-19896906 UUID is 833f47db-a4a1-4aab-8fea-0fdb378a572c 2025-06-30 17:28:16,336 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333, 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-79313848:ctest-vn-19896906, 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-06-30 17:28:17,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a3c11ec-3781-4a3d-8742-d3c67a46838a', 'name': 'ctest-vn-89942333', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45ddf501-bf12-4d8a-afe4-208e74bab778'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-89942333'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589']], 'subnet_ipam': [{'subnet_cidr': '171.194.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:28:17,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '833f47db-a4a1-4aab-8fea-0fdb378a572c', 'name': 'ctest-vn-19896906', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9eeb85ea-2599-445d-8c46-ca96842da354'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-19896906'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589']], 'subnet_ipam': [{'subnet_cidr': '21.196.70.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-30 17:28:17,498 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-30 17:28:17,815 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-30 17:28:17,857 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a 2025-06-30 17:28:17,874 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63 2025-06-30 17:28:17,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a 2025-06-30 17:28:17,972 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a 2025-06-30 17:28:17,985 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f 2025-06-30 17:28:17,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f 2025-06-30 17:28:18,003 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/220d2552-f142-4026-b451-865e67db03a9 2025-06-30 17:28:18,010 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-30 17:28:18,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a 2025-06-30 17:28:18,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f 2025-06-30 17:28:18,041 - INFO - Verified VN network id 9 for VN 2a3c11ec-3781-4a3d-8742-d3c67a46838a 2025-06-30 17:28:18,041 - INFO - Verifications in API Server for VN ctest-vn-89942333 passed 2025-06-30 17:28:18,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a 2025-06-30 17:28:18,052 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f 2025-06-30 17:28:18,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f 2025-06-30 17:28:18,067 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/220d2552-f142-4026-b451-865e67db03a9 2025-06-30 17:28:18,082 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79313848', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3043327154436786749', 'uuid-lslong': '9746585392991601546'}, 'enable': 'true', 'created': '2025-06-30T17:28:15', 'last-modified': '2025-06-30T17:28:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.140152'} 2025-06-30 17:28:18,090 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-30 17:28:18,090 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89942333 passed 2025-06-30 17:28:18,090 - DEBUG - ====Verifying policy data for ctest-vn-89942333 in API_Server ====== 2025-06-30 17:28:18,090 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-30 17:28:18,097 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a 2025-06-30 17:28:18,112 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63 2025-06-30 17:28:18,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a 2025-06-30 17:28:18,214 - DEBUG - ==>Verifying data for policy with id: a445d7c7-c077-460f-a936-6564925b537c, fqn: ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589'] 2025-06-30 17:28:18,215 - INFO - VN ctest-vn-89942333 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-30 17:28:18,215 - DEBUG - Verifying the vn in opserver 2025-06-30 17:28:18,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333 virtual network link through opserver 10.0.0.38 2025-06-30 17:28:18,215 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-30 17:28:18,510 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-30 17:28:18,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333?flat'} 2025-06-30 17:28:18,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333 is found in opserver 2025-06-30 17:28:18,625 - DEBUG - Do not have enough data to verify VN in agent 2025-06-30 17:28:18,637 - DEBUG - VRF ids for VN ctest-vn-89942333: {} 2025-06-30 17:28:18,637 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-30 17:28:18,649 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a 2025-06-30 17:28:18,680 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63 2025-06-30 17:28:18,814 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c 2025-06-30 17:28:18,855 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c 2025-06-30 17:28:18,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5 2025-06-30 17:28:18,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5 2025-06-30 17:28:18,937 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03ced8d1-66d2-4e6c-b74e-1e431cb25adf 2025-06-30 17:28:18,961 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-30 17:28:18,961 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c 2025-06-30 17:28:18,996 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5 2025-06-30 17:28:19,038 - INFO - Verified VN network id 10 for VN 833f47db-a4a1-4aab-8fea-0fdb378a572c 2025-06-30 17:28:19,038 - INFO - Verifications in API Server for VN ctest-vn-19896906 passed 2025-06-30 17:28:19,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c 2025-06-30 17:28:19,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5 2025-06-30 17:28:19,082 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5 2025-06-30 17:28:19,098 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03ced8d1-66d2-4e6c-b74e-1e431cb25adf 2025-06-30 17:28:19,124 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79313848', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9457356751186774699', 'uuid-lslong': '10370118526178055980'}, 'enable': 'true', 'created': '2025-06-30T17:28:15', 'last-modified': '2025-06-30T17:28:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.810693'} 2025-06-30 17:28:19,140 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-30 17:28:19,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19896906 passed 2025-06-30 17:28:19,140 - DEBUG - ====Verifying policy data for ctest-vn-19896906 in API_Server ====== 2025-06-30 17:28:19,141 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-30 17:28:19,152 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a 2025-06-30 17:28:19,175 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63 2025-06-30 17:28:19,291 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c 2025-06-30 17:28:19,319 - DEBUG - ==>Verifying data for policy with id: a445d7c7-c077-460f-a936-6564925b537c, fqn: ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589'] 2025-06-30 17:28:19,320 - INFO - VN ctest-vn-19896906 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-30 17:28:19,320 - DEBUG - Verifying the vn in opserver 2025-06-30 17:28:19,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906 virtual network link through opserver 10.0.0.38 2025-06-30 17:28:19,320 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-30 17:28:19,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906?flat'} 2025-06-30 17:28:19,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906 is found in opserver 2025-06-30 17:28:19,377 - DEBUG - Do not have enough data to verify VN in agent 2025-06-30 17:28:19,394 - DEBUG - VRF ids for VN ctest-vn-19896906: {} 2025-06-30 17:28:19,536 - DEBUG - Services list from nova: [, , ] 2025-06-30 17:28:21,120 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3583-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3583-1) 2025-06-30 17:28:22,677 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3583-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3583-1) 2025-06-30 17:28:22,677 - INFO - Waiting for VM ctest-TestBasicPolicy-79313848-74996055 to be up.. 2025-06-30 17:28:22,783 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-30 17:28:27,927 - DEBUG - VM is in ACTIVE state now 2025-06-30 17:28:27,927 - INFO - VM name : ctest-TestBasicPolicy-79313848-74996055 2025-06-30 17:28:28,037 - DEBUG - VM ctest-TestBasicPolicy-79313848-74996055 ID is 949e1147-c22f-4967-ae1d-9e29511b15dc 2025-06-30 17:28:28,064 - DEBUG - VM ctest-TestBasicPolicy-79313848-74996055 launched on Node cn-jenkins-deploy-platform-ansible-os-3583-1 2025-06-30 17:28:28,204 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/949e1147-c22f-4967-ae1d-9e29511b15dc 2025-06-30 17:28:28,219 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/238b727b-bd9f-4fbf-9a21-5e0ed31adbbf 2025-06-30 17:28:31,511 - 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 1013ms') 2025-06-30 17:28:31,511 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79313848-74996055 failed! 2025-06-30 17:28:31,566 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333 is 171.194.219.129 and allocation pool is NOT set 2025-06-30 17:28:33,635 - 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=4.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.73 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.725/3.098/4.471/1.373 ms') 2025-06-30 17:28:33,636 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79313848-74996055 passed 2025-06-30 17:28:33,830 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:28:33,831 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79313848-74996055, IP 171.194.219.131, Port 22 2025-06-30 17:28:34,017 - DEBUG - VM ctest-TestBasicPolicy-79313848-74996055 is ready for SSH connections 2025-06-30 17:28:34,017 - INFO - Waiting for VM ctest-TestBasicPolicy-79313848-49726814 to be up.. 2025-06-30 17:28:34,172 - DEBUG - VM is in ACTIVE state now 2025-06-30 17:28:34,172 - INFO - VM name : ctest-TestBasicPolicy-79313848-49726814 2025-06-30 17:28:34,343 - DEBUG - VM ctest-TestBasicPolicy-79313848-49726814 ID is 789ffe8c-d803-4256-91ea-4db05811bc1c 2025-06-30 17:28:34,343 - DEBUG - VM ctest-TestBasicPolicy-79313848-49726814 launched on Node cn-jenkins-deploy-platform-ansible-os-3583-1 2025-06-30 17:28:34,496 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/789ffe8c-d803-4256-91ea-4db05811bc1c 2025-06-30 17:28:34,511 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/06f9032a-202a-4c7d-952e-b43ba9375d23 2025-06-30 17:28:35,828 - 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=3.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.769 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 = 0.769/2.251/3.733/1.482 ms') 2025-06-30 17:28:35,828 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-79313848-49726814 passed 2025-06-30 17:28:36,014 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:28:36,015 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79313848-49726814, IP 21.196.70.131, Port 22 2025-06-30 17:28:36,096 - 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-06-30 17:28:36,274 - DEBUG - VM ctest-TestBasicPolicy-79313848-49726814 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-30 17:28:41,276 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:28:41,276 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79313848-49726814, IP 21.196.70.131, Port 22 2025-06-30 17:28:41,481 - DEBUG - VM ctest-TestBasicPolicy-79313848-49726814 is ready for SSH connections 2025-06-30 17:28:41,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:28:41,481 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 21.196.70.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-30 17:28:41,481 - DEBUG - ping -s 56 -c 3 -W 1 21.196.70.131 2025-06-30 17:28:45,958 - DEBUG - PING 21.196.70.131 (21.196.70.131): 56 data bytes 64 bytes from 21.196.70.131: seq=0 ttl=63 time=9.357 ms 64 bytes from 21.196.70.131: seq=1 ttl=63 time=1.972 ms 64 bytes from 21.196.70.131: seq=2 ttl=63 time=2.313 ms --- 21.196.70.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.972/4.547/9.357 ms 2025-06-30 17:28:45,958 - INFO - Ping to IP 21.196.70.131 from VM ctest-TestBasicPolicy-79313848-74996055 passed 2025-06-30 17:28:46,238 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a445d7c7-c077-460f-a936-6564925b537c", "href": "http://10.0.0.38:8082/network-policy/a445d7c7-c077-460f-a936-6564925b537c"}} 2025-06-30 17:28:46,238 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 17:28:46,239 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 21.196.70.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-30 17:28:46,239 - DEBUG - ping -s 56 -c 3 -W 1 21.196.70.131 2025-06-30 17:28:49,521 - DEBUG - PING 21.196.70.131 (21.196.70.131): 56 data bytes --- 21.196.70.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-30 17:28:49,521 - WARNING - Ping to IP 21.196.70.131 from VM ctest-TestBasicPolicy-79313848-74996055 failed 2025-06-30 17:28:49,521 - INFO - Deleting VM ctest-TestBasicPolicy-79313848-49726814 2025-06-30 17:28:49,685 - INFO - Deleting VM ctest-TestBasicPolicy-79313848-74996055 2025-06-30 17:28:50,292 - INFO - Deleted policy ctest-policy-allow-all-64563589 2025-06-30 17:28:50,292 - INFO - Deleting VN ctest-vn-19896906 2025-06-30 17:28:50,344 - DEBUG - VN 833f47db-a4a1-4aab-8fea-0fdb378a572c still in use: Unable to complete operation on network 833f47db-a4a1-4aab-8fea-0fdb378a572c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-21fcf591-35b9-4483-ae90-c0ede7973d5f'] 2025-06-30 17:28:50,345 - WARNING - Deleting VN ctest-vn-19896906 failed..Will retry 2025-06-30 17:28:52,581 - DEBUG - Response for deleting network () 2025-06-30 17:28:52,581 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5 2025-06-30 17:28:52,591 - DEBUG - Response Code: 404 2025-06-30 17:28:52,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-30 17:28:52,600 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a 2025-06-30 17:28:52,661 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63 2025-06-30 17:28:52,785 - INFO - Validated that VN ctest-vn-19896906 is not found in API Server 2025-06-30 17:28:52,811 - DEBUG - VN ctest-vn-19896906 is not present in Agent 10.0.0.38 2025-06-30 17:28:52,811 - INFO - Validated that VN ctest-vn-19896906 is not in any agent 2025-06-30 17:28:52,859 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19896906 info 2025-06-30 17:28:52,860 - INFO - Deleting VN ctest-vn-89942333 2025-06-30 17:28:53,094 - DEBUG - Response for deleting network () 2025-06-30 17:28:53,095 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f 2025-06-30 17:28:53,105 - DEBUG - Response Code: 404 2025-06-30 17:28:53,105 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-30 17:28:53,116 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a 2025-06-30 17:28:53,137 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63 2025-06-30 17:28:53,250 - INFO - Validated that VN ctest-vn-89942333 is not found in API Server 2025-06-30 17:28:53,277 - DEBUG - VN ctest-vn-89942333 is not present in Agent 10.0.0.38 2025-06-30 17:28:53,277 - INFO - Validated that VN ctest-vn-89942333 is not in any agent 2025-06-30 17:28:53,324 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89942333 info 2025-06-30 17:28:53,665 - DEBUG - No XMPP flaps were noticed during the test
2025-06-30 17:28:53,665 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2025-06-30 17:28:53,666 - INFO - -------------------------------------------------------------------------------- 2025-06-30 17:28:54,601 - INFO - Deleted project: ctest-TestBasicPolicy-79313848, ID : 4438d2b5-d98f-4103-b03b-a63ed106ac63