2025-04-16 16:47:36,176 - INFO - Domain Default found not creating 2025-04-16 16:47:36,337 - INFO - Project ctest-TestBasicPolicy-40194212 not found, creating it 2025-04-16 16:47:36,861 - INFO - Created Project:ctest-TestBasicPolicy-40194212, ID : 01b60d56-918e-4f69-8028-26d18d50e9bc 2025-04-16 16:47:38,467 - INFO - ================================================================================ 2025-04-16 16:47:38,468 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-16 16:47:38,468 - 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-16 16:47:38,723 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-04-16 16:47:38,723 - INFO - Initial checks done. Running the testcase now 2025-04-16 16:47:38,723 - INFO - 2025-04-16 16:47:39,340 - DEBUG - Response for create_network : {'network': {'id': 'c6e7493c-fb2e-42ae-9755-8f3802433a2c', 'name': 'ctest-vn-30832557', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-30832557'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 16:47:39,555 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b36f3b3-be2c-4db2-bf36-5dde7fa528ab', 'name': '', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'network_id': 'c6e7493c-fb2e-42ae-9755-8f3802433a2c', 'ip_version': 4, 'cidr': '96.125.29.64/26', 'allocation_pools': [{'start': '96.125.29.66', 'end': '96.125.29.126'}], 'gateway_ip': '96.125.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.125.29.66', 'tags': [], 'project_id': '01b60d56918e4f69802826d18d50e9bc'}} 2025-04-16 16:47:39,573 - INFO - Created VN ctest-vn-30832557 2025-04-16 16:47:39,624 - DEBUG - VN ctest-vn-30832557 UUID is c6e7493c-fb2e-42ae-9755-8f3802433a2c 2025-04-16 16:47:39,918 - DEBUG - Response for create_network : {'network': {'id': 'd9e89132-ddd7-4958-bc83-4c46923655de', 'name': 'ctest-vn-80672839', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-80672839'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 16:47:40,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '996d0ce7-d4a0-490e-9866-c3e54d6be11e', 'name': '', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'network_id': 'd9e89132-ddd7-4958-bc83-4c46923655de', 'ip_version': 4, 'cidr': '93.101.179.128/26', 'allocation_pools': [{'start': '93.101.179.130', 'end': '93.101.179.190'}], 'gateway_ip': '93.101.179.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.101.179.130', 'tags': [], 'project_id': '01b60d56918e4f69802826d18d50e9bc'}} 2025-04-16 16:47:40,118 - INFO - Created VN ctest-vn-80672839 2025-04-16 16:47:40,172 - DEBUG - VN ctest-vn-80672839 UUID is d9e89132-ddd7-4958-bc83-4c46923655de 2025-04-16 16:47:40,284 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557, 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-40194212:ctest-vn-80672839, 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-16 16:47:40,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6e7493c-fb2e-42ae-9755-8f3802433a2c', 'name': 'ctest-vn-30832557', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b36f3b3-be2c-4db2-bf36-5dde7fa528ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-30832557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432']], 'subnet_ipam': [{'subnet_cidr': '96.125.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 16:47:40,861 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9e89132-ddd7-4958-bc83-4c46923655de', 'name': 'ctest-vn-80672839', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['996d0ce7-d4a0-490e-9866-c3e54d6be11e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-80672839'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432']], 'subnet_ipam': [{'subnet_cidr': '93.101.179.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 16:47:41,032 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-04-16 16:47:41,372 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-04-16 16:47:41,405 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2 2025-04-16 16:47:41,421 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc 2025-04-16 16:47:41,503 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c 2025-04-16 16:47:41,518 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c 2025-04-16 16:47:41,531 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e 2025-04-16 16:47:41,542 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e 2025-04-16 16:47:41,551 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1f854b31-bb89-44cf-9206-f8a047ec8162 2025-04-16 16:47:41,559 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 16:47:41,559 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c 2025-04-16 16:47:41,573 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e 2025-04-16 16:47:41,591 - INFO - Verified VN network id 8 for VN c6e7493c-fb2e-42ae-9755-8f3802433a2c 2025-04-16 16:47:41,592 - INFO - Verifications in API Server for VN ctest-vn-30832557 passed 2025-04-16 16:47:41,592 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c 2025-04-16 16:47:41,605 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e 2025-04-16 16:47:41,615 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e 2025-04-16 16:47:41,626 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1f854b31-bb89-44cf-9206-f8a047ec8162 2025-04-16 16:47:41,644 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40194212', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14332504865390871214', 'uuid-lslong': '10904779543466424876'}, 'enable': 'true', 'created': '2025-04-16T16:47:39', 'last-modified': '2025-04-16T16:47:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073776'} 2025-04-16 16:47:41,654 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 16:47:41,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30832557 passed 2025-04-16 16:47:41,654 - DEBUG - ====Verifying policy data for ctest-vn-30832557 in API_Server ====== 2025-04-16 16:47:41,655 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-04-16 16:47:41,662 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2 2025-04-16 16:47:41,679 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc 2025-04-16 16:47:41,757 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c 2025-04-16 16:47:41,768 - DEBUG - ==>Verifying data for policy with id: 8e163b3f-582c-4f04-b1e4-ec154b010279, fqn: ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432'] 2025-04-16 16:47:41,768 - INFO - VN ctest-vn-30832557 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 16:47:41,769 - DEBUG - Verifying the vn in opserver 2025-04-16 16:47:41,769 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557 virtual network link through opserver 10.0.0.41 2025-04-16 16:47:41,769 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-04-16 16:47:42,106 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-04-16 16:47:42,167 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557?flat'} 2025-04-16 16:47:42,167 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557 is found in opserver 2025-04-16 16:47:42,182 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 16:47:42,189 - DEBUG - VRF ids for VN ctest-vn-30832557: {} 2025-04-16 16:47:42,189 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-04-16 16:47:42,197 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2 2025-04-16 16:47:42,214 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc 2025-04-16 16:47:42,290 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de 2025-04-16 16:47:42,304 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de 2025-04-16 16:47:42,314 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b 2025-04-16 16:47:42,322 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b 2025-04-16 16:47:42,330 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f5bdc830-b160-4971-aa5e-eff2bcfb211a 2025-04-16 16:47:42,339 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 16:47:42,339 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de 2025-04-16 16:47:42,349 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b 2025-04-16 16:47:42,363 - INFO - Verified VN network id 9 for VN d9e89132-ddd7-4958-bc83-4c46923655de 2025-04-16 16:47:42,364 - INFO - Verifications in API Server for VN ctest-vn-80672839 passed 2025-04-16 16:47:42,364 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de 2025-04-16 16:47:42,374 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b 2025-04-16 16:47:42,381 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b 2025-04-16 16:47:42,388 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f5bdc830-b160-4971-aa5e-eff2bcfb211a 2025-04-16 16:47:42,400 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40194212', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15701959748483500376', 'uuid-lslong': '13583784767064004062'}, 'enable': 'true', 'created': '2025-04-16T16:47:39', 'last-modified': '2025-04-16T16:47:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.572343'} 2025-04-16 16:47:42,407 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 16:47:42,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80672839 passed 2025-04-16 16:47:42,407 - DEBUG - ====Verifying policy data for ctest-vn-80672839 in API_Server ====== 2025-04-16 16:47:42,407 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-04-16 16:47:42,412 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2 2025-04-16 16:47:42,424 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc 2025-04-16 16:47:42,499 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de 2025-04-16 16:47:42,511 - DEBUG - ==>Verifying data for policy with id: 8e163b3f-582c-4f04-b1e4-ec154b010279, fqn: ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432'] 2025-04-16 16:47:42,511 - INFO - VN ctest-vn-80672839 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 16:47:42,511 - DEBUG - Verifying the vn in opserver 2025-04-16 16:47:42,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839 virtual network link through opserver 10.0.0.41 2025-04-16 16:47:42,512 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-04-16 16:47:42,523 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839?flat'} 2025-04-16 16:47:42,523 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839 is found in opserver 2025-04-16 16:47:42,536 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 16:47:42,542 - DEBUG - VRF ids for VN ctest-vn-80672839: {} 2025-04-16 16:47:42,603 - DEBUG - Services list from nova: [, , ] 2025-04-16 16:47:43,721 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3122-1) 2025-04-16 16:47:45,108 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3122-1) 2025-04-16 16:47:45,108 - INFO - Waiting for VM ctest-TestBasicPolicy-40194212-65604021 to be up.. 2025-04-16 16:47:45,193 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 16:47:50,282 - DEBUG - VM is in ACTIVE state now 2025-04-16 16:47:50,282 - INFO - VM name : ctest-TestBasicPolicy-40194212-65604021 2025-04-16 16:47:50,368 - DEBUG - VM ctest-TestBasicPolicy-40194212-65604021 ID is 51998d39-0c2f-42ee-b342-7894573e5655 2025-04-16 16:47:50,391 - DEBUG - VM ctest-TestBasicPolicy-40194212-65604021 launched on Node cn-jenkins-deploy-platform-ansible-os-3122-1 2025-04-16 16:47:50,485 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/51998d39-0c2f-42ee-b342-7894573e5655 2025-04-16 16:47:50,495 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/d3f12359-2dfc-4375-a5e6-a59990116727 2025-04-16 16:47:53,749 - 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-04-16 16:47:53,749 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40194212-65604021 failed! 2025-04-16 16:47:53,808 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557 is 96.125.29.65 and allocation pool is NOT set 2025-04-16 16:47:55,872 - 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=11.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.59 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 = 2.589/6.927/11.266/4.338 ms') 2025-04-16 16:47:55,872 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40194212-65604021 passed 2025-04-16 16:47:56,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:47:56,024 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40194212-65604021, IP 96.125.29.67, Port 22 2025-04-16 16:47:56,090 - 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-16 16:47:56,182 - DEBUG - VM ctest-TestBasicPolicy-40194212-65604021 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 16:48:01,183 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:48:01,183 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40194212-65604021, IP 96.125.29.67, Port 22 2025-04-16 16:48:01,340 - DEBUG - VM ctest-TestBasicPolicy-40194212-65604021 is ready for SSH connections 2025-04-16 16:48:01,340 - INFO - Waiting for VM ctest-TestBasicPolicy-40194212-18000235 to be up.. 2025-04-16 16:48:01,421 - DEBUG - VM is in ACTIVE state now 2025-04-16 16:48:01,421 - INFO - VM name : ctest-TestBasicPolicy-40194212-18000235 2025-04-16 16:48:01,504 - DEBUG - VM ctest-TestBasicPolicy-40194212-18000235 ID is 5b4a1586-4345-4c09-a2b1-c3eb586e17be 2025-04-16 16:48:01,504 - DEBUG - VM ctest-TestBasicPolicy-40194212-18000235 launched on Node cn-jenkins-deploy-platform-ansible-os-3122-1 2025-04-16 16:48:01,588 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/5b4a1586-4345-4c09-a2b1-c3eb586e17be 2025-04-16 16:48:01,599 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/e8adccf4-70cb-4ca1-a603-fa6b4c0a7c14 2025-04-16 16:48:02,850 - 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.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.450 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.450/2.114/3.779/1.664 ms') 2025-04-16 16:48:02,850 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-40194212-18000235 passed 2025-04-16 16:48:03,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:48:03,004 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40194212-18000235, IP 93.101.179.131, Port 22 2025-04-16 16:48:03,164 - DEBUG - VM ctest-TestBasicPolicy-40194212-18000235 is ready for SSH connections 2025-04-16 16:48:03,164 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:48:03,164 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.101.179.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-04-16 16:48:03,165 - DEBUG - ping -s 56 -c 3 -W 1 93.101.179.131 2025-04-16 16:48:07,255 - DEBUG - PING 93.101.179.131 (93.101.179.131): 56 data bytes 64 bytes from 93.101.179.131: seq=0 ttl=63 time=3.801 ms 64 bytes from 93.101.179.131: seq=1 ttl=63 time=0.931 ms 64 bytes from 93.101.179.131: seq=2 ttl=63 time=0.845 ms --- 93.101.179.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.845/1.859/3.801 ms 2025-04-16 16:48:07,255 - INFO - Ping to IP 93.101.179.131 from VM ctest-TestBasicPolicy-40194212-65604021 passed 2025-04-16 16:48:07,440 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8e163b3f-582c-4f04-b1e4-ec154b010279", "href": "http://10.0.0.41:8082/network-policy/8e163b3f-582c-4f04-b1e4-ec154b010279"}} 2025-04-16 16:48:07,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 16:48:07,440 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.101.179.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-04-16 16:48:07,440 - DEBUG - ping -s 56 -c 3 -W 1 93.101.179.131 2025-04-16 16:48:10,663 - DEBUG - PING 93.101.179.131 (93.101.179.131): 56 data bytes 64 bytes from 93.101.179.131: seq=0 ttl=63 time=1.633 ms --- 93.101.179.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.633/1.633/1.633 ms 2025-04-16 16:48:10,663 - WARNING - Ping to IP 93.101.179.131 from VM ctest-TestBasicPolicy-40194212-65604021 failed 2025-04-16 16:48:10,663 - INFO - Deleting VM ctest-TestBasicPolicy-40194212-18000235 2025-04-16 16:48:10,736 - INFO - Deleting VM ctest-TestBasicPolicy-40194212-65604021 2025-04-16 16:48:11,173 - INFO - Deleted policy ctest-policy-allow-all-83275432 2025-04-16 16:48:11,173 - INFO - Deleting VN ctest-vn-80672839 2025-04-16 16:48:11,217 - DEBUG - VN d9e89132-ddd7-4958-bc83-4c46923655de still in use: Unable to complete operation on network d9e89132-ddd7-4958-bc83-4c46923655de. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e1712216-3b9f-4107-a245-b7b75fc6c1b8'] 2025-04-16 16:48:11,217 - WARNING - Deleting VN ctest-vn-80672839 failed..Will retry 2025-04-16 16:48:13,343 - DEBUG - Response for deleting network () 2025-04-16 16:48:13,343 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b 2025-04-16 16:48:13,351 - DEBUG - Response Code: 404 2025-04-16 16:48:13,351 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-04-16 16:48:13,357 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2 2025-04-16 16:48:13,415 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc 2025-04-16 16:48:13,487 - INFO - Validated that VN ctest-vn-80672839 is not found in API Server 2025-04-16 16:48:13,500 - DEBUG - VN ctest-vn-80672839 is not present in Agent 10.0.0.41 2025-04-16 16:48:13,500 - INFO - Validated that VN ctest-vn-80672839 is not in any agent 2025-04-16 16:48:13,518 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80672839 info 2025-04-16 16:48:13,518 - INFO - Deleting VN ctest-vn-30832557 2025-04-16 16:48:13,634 - DEBUG - Response for deleting network () 2025-04-16 16:48:13,635 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e 2025-04-16 16:48:13,641 - DEBUG - Response Code: 404 2025-04-16 16:48:13,641 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-04-16 16:48:13,647 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2 2025-04-16 16:48:13,702 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc 2025-04-16 16:48:13,778 - INFO - Validated that VN ctest-vn-30832557 is not found in API Server 2025-04-16 16:48:13,790 - DEBUG - VN ctest-vn-30832557 is not present in Agent 10.0.0.41 2025-04-16 16:48:13,790 - INFO - Validated that VN ctest-vn-30832557 is not in any agent 2025-04-16 16:48:13,808 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30832557 info 2025-04-16 16:48:14,063 - DEBUG - No XMPP flaps were noticed during the test 2025-04-16 16:48:14,063 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-04-16 16:48:14,063 - INFO - -------------------------------------------------------------------------------- 2025-04-16 16:48:14,813 - INFO - Deleted project: ctest-TestBasicPolicy-40194212, ID : 01b60d56-918e-4f69-8028-26d18d50e9bc