2025-08-28 17:23:16,023 - INFO - Domain Default found not creating 2025-08-28 17:23:16,177 - INFO - Project ctest-TestBasicPolicy-84963894 not found, creating it 2025-08-28 17:23:16,634 - INFO - Created Project:ctest-TestBasicPolicy-84963894, ID : 0a8bb95f-d260-45f1-860d-af7fbc46ae2a 2025-08-28 17:23:18,306 - INFO - ================================================================================ 2025-08-28 17:23:18,306 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-28 17:23:18,306 - 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-08-28 17:23:18,562 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-08-28 17:23:18,562 - INFO - Initial checks done. Running the testcase now 2025-08-28 17:23:18,562 - INFO - 2025-08-28 17:23:19,142 - DEBUG - Response for create_network : {'network': {'id': '954b15a9-d294-4415-b0f9-229a7a8caa5a', 'name': 'ctest-vn-57325101', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-57325101'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:23:19,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c59d05d-e7c6-4628-8cb0-06f4f6f50b8b', 'name': '', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'network_id': '954b15a9-d294-4415-b0f9-229a7a8caa5a', 'ip_version': 4, 'cidr': '196.168.114.0/26', 'allocation_pools': [{'start': '196.168.114.2', 'end': '196.168.114.62'}], 'gateway_ip': '196.168.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.168.114.2', 'tags': [], 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a'}} 2025-08-28 17:23:19,393 - INFO - Created VN ctest-vn-57325101 2025-08-28 17:23:19,447 - DEBUG - VN ctest-vn-57325101 UUID is 954b15a9-d294-4415-b0f9-229a7a8caa5a 2025-08-28 17:23:19,750 - DEBUG - Response for create_network : {'network': {'id': 'b39435f1-b63f-44e6-b202-718bc89c794a', 'name': 'ctest-vn-24485972', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-24485972'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:23:19,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a1d0d57-d8b3-4a1e-9a7f-5c0d452d09a4', 'name': '', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'network_id': 'b39435f1-b63f-44e6-b202-718bc89c794a', 'ip_version': 4, 'cidr': '104.187.14.64/26', 'allocation_pools': [{'start': '104.187.14.66', 'end': '104.187.14.126'}], 'gateway_ip': '104.187.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.187.14.66', 'tags': [], 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a'}} 2025-08-28 17:23:19,986 - INFO - Created VN ctest-vn-24485972 2025-08-28 17:23:20,039 - DEBUG - VN ctest-vn-24485972 UUID is b39435f1-b63f-44e6-b202-718bc89c794a 2025-08-28 17:23:20,161 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101, 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-84963894:ctest-vn-24485972, 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-08-28 17:23:20,467 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '954b15a9-d294-4415-b0f9-229a7a8caa5a', 'name': 'ctest-vn-57325101', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c59d05d-e7c6-4628-8cb0-06f4f6f50b8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-57325101'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213']], 'subnet_ipam': [{'subnet_cidr': '196.168.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:23:20,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b39435f1-b63f-44e6-b202-718bc89c794a', 'name': 'ctest-vn-24485972', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a1d0d57-d8b3-4a1e-9a7f-5c0d452d09a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-24485972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213']], 'subnet_ipam': [{'subnet_cidr': '104.187.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:23:20,875 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:21,217 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:21,246 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:21,259 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a 2025-08-28 17:23:21,331 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a 2025-08-28 17:23:21,343 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a 2025-08-28 17:23:21,353 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84 2025-08-28 17:23:21,360 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84 2025-08-28 17:23:21,367 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6826bb32-9706-4f78-8d61-968deec4d44a 2025-08-28 17:23:21,374 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 17:23:21,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a 2025-08-28 17:23:21,385 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84 2025-08-28 17:23:21,401 - INFO - Verified VN network id 10 for VN 954b15a9-d294-4415-b0f9-229a7a8caa5a 2025-08-28 17:23:21,401 - INFO - Verifications in API Server for VN ctest-vn-57325101 passed 2025-08-28 17:23:21,402 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a 2025-08-28 17:23:21,411 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84 2025-08-28 17:23:21,418 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84 2025-08-28 17:23:21,425 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6826bb32-9706-4f78-8d61-968deec4d44a 2025-08-28 17:23:21,438 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84963894', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10757715954031150101', 'uuid-lslong': '12752261866752617050'}, 'enable': 'true', 'created': '2025-08-28T17:23:19', 'last-modified': '2025-08-28T17:23:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996153'} 2025-08-28 17:23:21,445 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 17:23:21,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57325101 passed 2025-08-28 17:23:21,445 - DEBUG - ====Verifying policy data for ctest-vn-57325101 in API_Server ====== 2025-08-28 17:23:21,445 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:21,452 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:21,463 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a 2025-08-28 17:23:21,531 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a 2025-08-28 17:23:21,543 - DEBUG - ==>Verifying data for policy with id: 456a49a3-cbd3-41f6-9657-fa27a5cae870, fqn: ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213'] 2025-08-28 17:23:21,543 - INFO - VN ctest-vn-57325101 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 17:23:21,544 - DEBUG - Verifying the vn in opserver 2025-08-28 17:23:21,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101 virtual network link through opserver 10.0.0.254 2025-08-28 17:23:21,544 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-28 17:23:21,879 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-28 17:23:21,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101?flat'} 2025-08-28 17:23:21,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101 is found in opserver 2025-08-28 17:23:21,946 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 17:23:21,951 - DEBUG - VRF ids for VN ctest-vn-57325101: {} 2025-08-28 17:23:21,951 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:21,957 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:21,968 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a 2025-08-28 17:23:22,039 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a 2025-08-28 17:23:22,052 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a 2025-08-28 17:23:22,063 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5 2025-08-28 17:23:22,071 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5 2025-08-28 17:23:22,079 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c15439a-0a59-4a65-b794-276dd39045bc 2025-08-28 17:23:22,087 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 17:23:22,087 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a 2025-08-28 17:23:22,098 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5 2025-08-28 17:23:22,116 - INFO - Verified VN network id 11 for VN b39435f1-b63f-44e6-b202-718bc89c794a 2025-08-28 17:23:22,117 - INFO - Verifications in API Server for VN ctest-vn-24485972 passed 2025-08-28 17:23:22,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a 2025-08-28 17:23:22,129 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5 2025-08-28 17:23:22,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5 2025-08-28 17:23:22,146 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c15439a-0a59-4a65-b794-276dd39045bc 2025-08-28 17:23:22,161 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84963894', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12940026941603267814', 'uuid-lslong': '12826939533884684618'}, 'enable': 'true', 'created': '2025-08-28T17:23:19', 'last-modified': '2025-08-28T17:23:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479556'} 2025-08-28 17:23:22,167 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 17:23:22,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24485972 passed 2025-08-28 17:23:22,167 - DEBUG - ====Verifying policy data for ctest-vn-24485972 in API_Server ====== 2025-08-28 17:23:22,167 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:22,175 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:22,189 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a 2025-08-28 17:23:22,266 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a 2025-08-28 17:23:22,275 - DEBUG - ==>Verifying data for policy with id: 456a49a3-cbd3-41f6-9657-fa27a5cae870, fqn: ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213'] 2025-08-28 17:23:22,275 - INFO - VN ctest-vn-24485972 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 17:23:22,276 - DEBUG - Verifying the vn in opserver 2025-08-28 17:23:22,276 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972 virtual network link through opserver 10.0.0.254 2025-08-28 17:23:22,276 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-28 17:23:22,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972?flat'} 2025-08-28 17:23:22,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972 is found in opserver 2025-08-28 17:23:22,297 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 17:23:22,303 - DEBUG - VRF ids for VN ctest-vn-24485972: {} 2025-08-28 17:23:22,365 - DEBUG - Services list from nova: [, , ] 2025-08-28 17:23:23,484 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3963-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3963-1) 2025-08-28 17:23:24,738 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3963-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3963-1) 2025-08-28 17:23:24,738 - INFO - Waiting for VM ctest-TestBasicPolicy-84963894-15294622 to be up.. 2025-08-28 17:23:24,823 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-28 17:23:29,918 - DEBUG - VM is in ACTIVE state now 2025-08-28 17:23:29,918 - INFO - VM name : ctest-TestBasicPolicy-84963894-15294622 2025-08-28 17:23:30,005 - DEBUG - VM ctest-TestBasicPolicy-84963894-15294622 ID is 77eb8e04-7141-40be-af8b-ba11c4388064 2025-08-28 17:23:30,027 - DEBUG - VM ctest-TestBasicPolicy-84963894-15294622 launched on Node cn-jenkins-deploy-platform-ansible-os-3963-1 2025-08-28 17:23:30,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/77eb8e04-7141-40be-af8b-ba11c4388064 2025-08-28 17:23:30,125 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7f8e91c5-d2e9-4344-9eac-54c80067e616 2025-08-28 17:23:33,394 - 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 1026ms') 2025-08-28 17:23:33,394 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84963894-15294622 failed! 2025-08-28 17:23:33,451 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101 is 196.168.114.1 and allocation pool is NOT set 2025-08-28 17:23:35,513 - 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=5.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.02 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 = 3.021/4.254/5.487/1.233 ms') 2025-08-28 17:23:35,514 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84963894-15294622 passed 2025-08-28 17:23:35,667 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:23:35,667 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84963894-15294622, IP 196.168.114.3, Port 22 2025-08-28 17:23:35,733 - DEBUG - Error on ssh to cirros@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-08-28 17:23:35,817 - DEBUG - VM ctest-TestBasicPolicy-84963894-15294622 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 17:23:40,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:23:40,818 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84963894-15294622, IP 196.168.114.3, Port 22 2025-08-28 17:23:40,985 - DEBUG - VM ctest-TestBasicPolicy-84963894-15294622 is ready for SSH connections 2025-08-28 17:23:40,986 - INFO - Waiting for VM ctest-TestBasicPolicy-84963894-20478470 to be up.. 2025-08-28 17:23:41,073 - DEBUG - VM is in ACTIVE state now 2025-08-28 17:23:41,073 - INFO - VM name : ctest-TestBasicPolicy-84963894-20478470 2025-08-28 17:23:41,156 - DEBUG - VM ctest-TestBasicPolicy-84963894-20478470 ID is 4421081a-5f89-4f0c-abb4-aae81c4a3699 2025-08-28 17:23:41,157 - DEBUG - VM ctest-TestBasicPolicy-84963894-20478470 launched on Node cn-jenkins-deploy-platform-ansible-os-3963-1 2025-08-28 17:23:41,252 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4421081a-5f89-4f0c-abb4-aae81c4a3699 2025-08-28 17:23:41,262 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e5c581dc-ff90-438b-ae7e-e127d9ed7053 2025-08-28 17:23:42,511 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.593 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.593/1.865/3.137/1.272 ms') 2025-08-28 17:23:42,511 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84963894-20478470 passed 2025-08-28 17:23:42,667 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:23:42,667 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84963894-20478470, IP 104.187.14.67, Port 22 2025-08-28 17:23:42,823 - DEBUG - VM ctest-TestBasicPolicy-84963894-20478470 is ready for SSH connections 2025-08-28 17:23:42,823 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:23:42,823 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.187.14.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-28 17:23:42,823 - DEBUG - ping -s 56 -c 3 -W 1 104.187.14.67 2025-08-28 17:23:46,967 - DEBUG - PING 104.187.14.67 (104.187.14.67): 56 data bytes 64 bytes from 104.187.14.67: seq=0 ttl=63 time=4.271 ms 64 bytes from 104.187.14.67: seq=1 ttl=63 time=0.963 ms 64 bytes from 104.187.14.67: seq=2 ttl=63 time=1.013 ms --- 104.187.14.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.963/2.082/4.271 ms 2025-08-28 17:23:46,967 - INFO - Ping to IP 104.187.14.67 from VM ctest-TestBasicPolicy-84963894-15294622 passed 2025-08-28 17:23:47,155 - DEBUG - Policy Update Response {"network-policy": {"uuid": "456a49a3-cbd3-41f6-9657-fa27a5cae870", "href": "http://10.0.0.254:8082/network-policy/456a49a3-cbd3-41f6-9657-fa27a5cae870"}} 2025-08-28 17:23:47,155 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:23:47,155 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.187.14.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-28 17:23:47,155 - DEBUG - ping -s 56 -c 3 -W 1 104.187.14.67 2025-08-28 17:23:50,415 - DEBUG - PING 104.187.14.67 (104.187.14.67): 56 data bytes --- 104.187.14.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-28 17:23:50,416 - WARNING - Ping to IP 104.187.14.67 from VM ctest-TestBasicPolicy-84963894-15294622 failed 2025-08-28 17:23:50,416 - INFO - Deleting VM ctest-TestBasicPolicy-84963894-20478470 2025-08-28 17:23:50,523 - INFO - Deleting VM ctest-TestBasicPolicy-84963894-15294622 2025-08-28 17:23:50,969 - INFO - Deleted policy ctest-policy-allow-all-57637213 2025-08-28 17:23:50,969 - INFO - Deleting VN ctest-vn-24485972 2025-08-28 17:23:51,014 - DEBUG - VN b39435f1-b63f-44e6-b202-718bc89c794a still in use: Unable to complete operation on network b39435f1-b63f-44e6-b202-718bc89c794a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bc8f64e2-970c-4c61-8219-826f8bdb89ee'] 2025-08-28 17:23:51,014 - WARNING - Deleting VN ctest-vn-24485972 failed..Will retry 2025-08-28 17:23:53,160 - DEBUG - Response for deleting network () 2025-08-28 17:23:53,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5 2025-08-28 17:23:53,171 - DEBUG - Response Code: 404 2025-08-28 17:23:53,172 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:53,180 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:53,237 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a 2025-08-28 17:23:53,318 - INFO - Validated that VN ctest-vn-24485972 is not found in API Server 2025-08-28 17:23:53,329 - DEBUG - VN ctest-vn-24485972 is not present in Agent 10.0.0.254 2025-08-28 17:23:53,329 - INFO - Validated that VN ctest-vn-24485972 is not in any agent 2025-08-28 17:23:53,344 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24485972 info 2025-08-28 17:23:53,344 - INFO - Deleting VN ctest-vn-57325101 2025-08-28 17:23:53,472 - DEBUG - Response for deleting network () 2025-08-28 17:23:53,473 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84 2025-08-28 17:23:53,479 - DEBUG - Response Code: 404 2025-08-28 17:23:53,479 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:53,488 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:53,544 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a 2025-08-28 17:23:53,617 - INFO - Validated that VN ctest-vn-57325101 is not found in API Server 2025-08-28 17:23:53,629 - DEBUG - VN ctest-vn-57325101 is not present in Agent 10.0.0.254 2025-08-28 17:23:53,629 - INFO - Validated that VN ctest-vn-57325101 is not in any agent 2025-08-28 17:23:53,647 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57325101 info 2025-08-28 17:23:53,905 - DEBUG - No XMPP flaps were noticed during the test 2025-08-28 17:23:53,905 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-08-28 17:23:53,905 - INFO - -------------------------------------------------------------------------------- 2025-08-28 17:23:54,723 - INFO - Deleted project: ctest-TestBasicPolicy-84963894, ID : 0a8bb95f-d260-45f1-860d-af7fbc46ae2a