2025-04-15 12:27:59,097 - INFO - Domain Default found not creating 2025-04-15 12:27:59,287 - INFO - Project ctest-TestBasicPolicy-80456494 not found, creating it 2025-04-15 12:27:59,855 - INFO - Created Project:ctest-TestBasicPolicy-80456494, ID : c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96 2025-04-15 12:28:02,365 - INFO - ================================================================================ 2025-04-15 12:28:02,366 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-15 12:28:02,366 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-04-15 12:28:02,635 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with 2025-04-15 12:28:02,636 - INFO - Initial checks done. Running the testcase now 2025-04-15 12:28:02,636 - INFO - 2025-04-15 12:28:03,225 - DEBUG - Response for create_network : {'network': {'id': 'c9a442f6-5d3c-407b-945d-fd494f3e20ec', 'name': 'ctest-vn-30720167', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-30720167'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:28:03,416 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0ae8f16-9b55-42eb-a294-2e5a302bc6b9', 'name': '', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'network_id': 'c9a442f6-5d3c-407b-945d-fd494f3e20ec', 'ip_version': 4, 'cidr': '26.14.180.64/26', 'allocation_pools': [{'start': '26.14.180.66', 'end': '26.14.180.126'}], 'gateway_ip': '26.14.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.14.180.66', 'tags': [], 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96'}} 2025-04-15 12:28:03,434 - INFO - Created VN ctest-vn-30720167 2025-04-15 12:28:03,486 - DEBUG - VN ctest-vn-30720167 UUID is c9a442f6-5d3c-407b-945d-fd494f3e20ec 2025-04-15 12:28:03,793 - DEBUG - Response for create_network : {'network': {'id': '11f249c4-fa1f-4f41-af24-c9c4914c9a48', 'name': 'ctest-vn-15352913', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-15352913'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:28:03,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '99da4557-9fad-446d-a11f-9f19ae6a924c', 'name': '', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'network_id': '11f249c4-fa1f-4f41-af24-c9c4914c9a48', 'ip_version': 4, 'cidr': '192.103.231.128/26', 'allocation_pools': [{'start': '192.103.231.130', 'end': '192.103.231.190'}], 'gateway_ip': '192.103.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.103.231.130', 'tags': [], 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96'}} 2025-04-15 12:28:04,009 - INFO - Created VN ctest-vn-15352913 2025-04-15 12:28:04,062 - DEBUG - VN ctest-vn-15352913 UUID is 11f249c4-fa1f-4f41-af24-c9c4914c9a48 2025-04-15 12:28:04,179 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167, 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-80456494:ctest-vn-15352913, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-04-15 12:28:04,497 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9a442f6-5d3c-407b-945d-fd494f3e20ec', 'name': 'ctest-vn-30720167', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0ae8f16-9b55-42eb-a294-2e5a302bc6b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-30720167'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761']], 'subnet_ipam': [{'subnet_cidr': '26.14.180.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:28:04,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11f249c4-fa1f-4f41-af24-c9c4914c9a48', 'name': 'ctest-vn-15352913', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99da4557-9fad-446d-a11f-9f19ae6a924c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-15352913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761']], 'subnet_ipam': [{'subnet_cidr': '192.103.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:28:04,886 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-15 12:28:05,223 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-15 12:28:05,261 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd 2025-04-15 12:28:05,275 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96 2025-04-15 12:28:05,367 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec 2025-04-15 12:28:05,378 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec 2025-04-15 12:28:05,389 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454 2025-04-15 12:28:05,396 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454 2025-04-15 12:28:05,404 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1002ac04-8854-4e8c-922e-770f8d881839 2025-04-15 12:28:05,411 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 12:28:05,411 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec 2025-04-15 12:28:05,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454 2025-04-15 12:28:05,435 - INFO - Verified VN network id 8 for VN c9a442f6-5d3c-407b-945d-fd494f3e20ec 2025-04-15 12:28:05,435 - INFO - Verifications in API Server for VN ctest-vn-30720167 passed 2025-04-15 12:28:05,435 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec 2025-04-15 12:28:05,446 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454 2025-04-15 12:28:05,455 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454 2025-04-15 12:28:05,464 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1002ac04-8854-4e8c-922e-770f8d881839 2025-04-15 12:28:05,479 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80456494', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14529811923697680507', 'uuid-lslong': '10690979581751337196'}, 'enable': 'true', 'created': '2025-04-15T12:28:03', 'last-modified': '2025-04-15T12:28:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013528'} 2025-04-15 12:28:05,485 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 12:28:05,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30720167 passed 2025-04-15 12:28:05,486 - DEBUG - ====Verifying policy data for ctest-vn-30720167 in API_Server ====== 2025-04-15 12:28:05,486 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-15 12:28:05,492 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd 2025-04-15 12:28:05,505 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96 2025-04-15 12:28:05,594 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec 2025-04-15 12:28:05,606 - DEBUG - ==>Verifying data for policy with id: 800b8dac-5753-474e-a92c-1eeb2cb7f8f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761'] 2025-04-15 12:28:05,606 - INFO - VN ctest-vn-30720167 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 12:28:05,606 - DEBUG - Verifying the vn in opserver 2025-04-15 12:28:05,607 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167 virtual network link through opserver 10.0.0.50 2025-04-15 12:28:05,607 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-15 12:28:05,948 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-15 12:28:06,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167?flat'} 2025-04-15 12:28:06,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167 is found in opserver 2025-04-15 12:28:06,015 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 12:28:06,020 - DEBUG - VRF ids for VN ctest-vn-30720167: {} 2025-04-15 12:28:06,020 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-15 12:28:06,026 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd 2025-04-15 12:28:06,037 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96 2025-04-15 12:28:06,114 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48 2025-04-15 12:28:06,130 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48 2025-04-15 12:28:06,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db 2025-04-15 12:28:06,150 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db 2025-04-15 12:28:06,157 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e00ded8f-b592-4032-a94d-700c24925979 2025-04-15 12:28:06,164 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 12:28:06,164 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48 2025-04-15 12:28:06,174 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db 2025-04-15 12:28:06,190 - INFO - Verified VN network id 9 for VN 11f249c4-fa1f-4f41-af24-c9c4914c9a48 2025-04-15 12:28:06,190 - INFO - Verifications in API Server for VN ctest-vn-15352913 passed 2025-04-15 12:28:06,190 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48 2025-04-15 12:28:06,203 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db 2025-04-15 12:28:06,212 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db 2025-04-15 12:28:06,219 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e00ded8f-b592-4032-a94d-700c24925979 2025-04-15 12:28:06,231 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80456494', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1293177153367527233', 'uuid-lslong': '12620433901887461960'}, 'enable': 'true', 'created': '2025-04-15T12:28:03', 'last-modified': '2025-04-15T12:28:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.505412'} 2025-04-15 12:28:06,237 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 12:28:06,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15352913 passed 2025-04-15 12:28:06,237 - DEBUG - ====Verifying policy data for ctest-vn-15352913 in API_Server ====== 2025-04-15 12:28:06,237 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-15 12:28:06,243 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd 2025-04-15 12:28:06,254 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96 2025-04-15 12:28:06,336 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48 2025-04-15 12:28:06,347 - DEBUG - ==>Verifying data for policy with id: 800b8dac-5753-474e-a92c-1eeb2cb7f8f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761'] 2025-04-15 12:28:06,347 - INFO - VN ctest-vn-15352913 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 12:28:06,347 - DEBUG - Verifying the vn in opserver 2025-04-15 12:28:06,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913 virtual network link through opserver 10.0.0.50 2025-04-15 12:28:06,347 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-15 12:28:06,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913?flat'} 2025-04-15 12:28:06,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913 is found in opserver 2025-04-15 12:28:06,367 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 12:28:06,372 - DEBUG - VRF ids for VN ctest-vn-15352913: {} 2025-04-15 12:28:06,438 - DEBUG - Services list from nova: [, , ] 2025-04-15 12:28:07,571 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3117-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3117-1) 2025-04-15 12:28:09,027 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3117-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3117-1) 2025-04-15 12:28:09,027 - INFO - Waiting for VM ctest-TestBasicPolicy-80456494-85760167 to be up.. 2025-04-15 12:28:09,122 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-15 12:28:14,248 - DEBUG - VM is in ACTIVE state now 2025-04-15 12:28:14,248 - INFO - VM name : ctest-TestBasicPolicy-80456494-85760167 2025-04-15 12:28:14,347 - DEBUG - VM ctest-TestBasicPolicy-80456494-85760167 ID is 23e0e2b7-a3a6-430f-b05d-3ace510c4c1b 2025-04-15 12:28:14,370 - DEBUG - VM ctest-TestBasicPolicy-80456494-85760167 launched on Node cn-jenkins-deploy-platform-ansible-os-3117-1. 2025-04-15 12:28:14,472 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/23e0e2b7-a3a6-430f-b05d-3ace510c4c1b 2025-04-15 12:28:14,481 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/3ac68e72-2fa3-4a1d-bb0c-2781ded9e1d8 2025-04-15 12:28:17,781 - 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-04-15 12:28:17,781 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80456494-85760167 failed! 2025-04-15 12:28:17,838 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167 is 26.14.180.65 and allocation pool is NOT set 2025-04-15 12:28:19,907 - 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=10.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.10 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 = 3.097/6.868/10.639/3.771 ms') 2025-04-15 12:28:19,907 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80456494-85760167 passed 2025-04-15 12:28:20,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:28:20,062 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80456494-85760167, IP 26.14.180.67, Port 22 2025-04-15 12:28:20,128 - 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-04-15 12:28:20,228 - DEBUG - VM ctest-TestBasicPolicy-80456494-85760167 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-15 12:28:25,228 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:28:25,228 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80456494-85760167, IP 26.14.180.67, Port 22 2025-04-15 12:28:25,403 - DEBUG - VM ctest-TestBasicPolicy-80456494-85760167 is ready for SSH connections 2025-04-15 12:28:25,403 - INFO - Waiting for VM ctest-TestBasicPolicy-80456494-48246146 to be up.. 2025-04-15 12:28:25,496 - DEBUG - VM is in ACTIVE state now 2025-04-15 12:28:25,496 - INFO - VM name : ctest-TestBasicPolicy-80456494-48246146 2025-04-15 12:28:25,580 - DEBUG - VM ctest-TestBasicPolicy-80456494-48246146 ID is 5de34dda-451e-4560-816d-9fd6dc82f743 2025-04-15 12:28:25,581 - DEBUG - VM ctest-TestBasicPolicy-80456494-48246146 launched on Node cn-jenkins-deploy-platform-ansible-os-3117-1. 2025-04-15 12:28:25,661 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/5de34dda-451e-4560-816d-9fd6dc82f743 2025-04-15 12:28:25,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/ef6728d8-dea9-4782-b389-1f54b70bdcad 2025-04-15 12:28:26,918 - 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.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.372 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.372/1.791/3.211/1.419 ms') 2025-04-15 12:28:26,918 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-80456494-48246146 passed 2025-04-15 12:28:27,070 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:28:27,070 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80456494-48246146, IP 192.103.231.131, Port 22 2025-04-15 12:28:27,226 - DEBUG - VM ctest-TestBasicPolicy-80456494-48246146 is ready for SSH connections 2025-04-15 12:28:27,226 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:28:27,226 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 192.103.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-15 12:28:27,226 - DEBUG - ping -s 56 -c 3 -W 1 192.103.231.131 2025-04-15 12:28:31,340 - DEBUG - PING 192.103.231.131 (192.103.231.131): 56 data bytes 64 bytes from 192.103.231.131: seq=0 ttl=63 time=3.616 ms 64 bytes from 192.103.231.131: seq=1 ttl=63 time=0.906 ms 64 bytes from 192.103.231.131: seq=2 ttl=63 time=1.050 ms --- 192.103.231.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.906/1.857/3.616 ms 2025-04-15 12:28:31,340 - INFO - Ping to IP 192.103.231.131 from VM ctest-TestBasicPolicy-80456494-85760167 passed 2025-04-15 12:28:31,517 - DEBUG - Policy Update Response {"network-policy": {"uuid": "800b8dac-5753-474e-a92c-1eeb2cb7f8f4", "href": "http://10.0.0.50:8082/network-policy/800b8dac-5753-474e-a92c-1eeb2cb7f8f4"}} 2025-04-15 12:28:31,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:28:31,518 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 192.103.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-15 12:28:31,518 - DEBUG - ping -s 56 -c 3 -W 1 192.103.231.131 2025-04-15 12:28:34,754 - DEBUG - PING 192.103.231.131 (192.103.231.131): 56 data bytes --- 192.103.231.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-15 12:28:34,754 - WARNING - Ping to IP 192.103.231.131 from VM ctest-TestBasicPolicy-80456494-85760167 failed 2025-04-15 12:28:34,754 - INFO - Deleting VM ctest-TestBasicPolicy-80456494-48246146 2025-04-15 12:28:34,834 - INFO - Deleting VM ctest-TestBasicPolicy-80456494-85760167 2025-04-15 12:28:35,302 - INFO - Deleted policy ctest-policy-allow-all-26181761 2025-04-15 12:28:35,302 - INFO - Deleting VN ctest-vn-15352913 2025-04-15 12:28:35,354 - DEBUG - VN 11f249c4-fa1f-4f41-af24-c9c4914c9a48 still in use: Unable to complete operation on network 11f249c4-fa1f-4f41-af24-c9c4914c9a48. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e024d290-47f8-49f8-b39d-7a8349fcdbce'] 2025-04-15 12:28:35,355 - WARNING - Deleting VN ctest-vn-15352913 failed..Will retry 2025-04-15 12:28:37,505 - DEBUG - Response for deleting network () 2025-04-15 12:28:37,505 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db 2025-04-15 12:28:37,511 - DEBUG - Response Code: 404 2025-04-15 12:28:37,511 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-15 12:28:37,516 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd 2025-04-15 12:28:37,572 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96 2025-04-15 12:28:37,654 - INFO - Validated that VN ctest-vn-15352913 is not found in API Server 2025-04-15 12:28:37,665 - DEBUG - VN ctest-vn-15352913 is not present in Agent 10.0.0.50 2025-04-15 12:28:37,665 - INFO - Validated that VN ctest-vn-15352913 is not in any agent 2025-04-15 12:28:37,679 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15352913 info 2025-04-15 12:28:37,679 - INFO - Deleting VN ctest-vn-30720167 2025-04-15 12:28:37,821 - DEBUG - Response for deleting network () 2025-04-15 12:28:37,821 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454 2025-04-15 12:28:37,830 - DEBUG - Response Code: 404 2025-04-15 12:28:37,830 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-15 12:28:37,836 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd 2025-04-15 12:28:37,893 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96 2025-04-15 12:28:37,984 - INFO - Validated that VN ctest-vn-30720167 is not found in API Server 2025-04-15 12:28:37,998 - DEBUG - VN ctest-vn-30720167 is not present in Agent 10.0.0.50 2025-04-15 12:28:37,998 - INFO - Validated that VN ctest-vn-30720167 is not in any agent 2025-04-15 12:28:38,014 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30720167 info 2025-04-15 12:28:38,282 - DEBUG - No XMPP flaps were noticed during the test 2025-04-15 12:28:38,282 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-04-15 12:28:38,282 - INFO - -------------------------------------------------------------------------------- 2025-04-15 12:28:39,107 - INFO - Deleted project: ctest-TestBasicPolicy-80456494, ID : c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96