2025-01-13 18:58:03,605 - INFO - Domain Default found not creating 2025-01-13 18:58:03,771 - INFO - Project ctest-TestBasicPolicy-75388431 not found, creating it 2025-01-13 18:58:04,257 - INFO - Created Project:ctest-TestBasicPolicy-75388431, ID : bd931da2-52ac-424a-92af-cba0efd8a708 2025-01-13 18:58:05,775 - INFO - ================================================================================ 2025-01-13 18:58:05,776 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-13 18:58:05,776 - 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-01-13 18:58:06,040 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.34': '0'}} with 2025-01-13 18:58:06,040 - INFO - Initial checks done. Running the testcase now 2025-01-13 18:58:06,040 - INFO - 2025-01-13 18:58:06,621 - DEBUG - Response for create_network : {'network': {'id': '31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c', 'name': 'ctest-vn-17768352', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-17768352'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:58:06,814 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fdab6af-f5ec-4e72-a39a-5de8e7837a50', 'name': '', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'network_id': '31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c', 'ip_version': 4, 'cidr': '192.165.252.128/26', 'allocation_pools': [{'start': '192.165.252.130', 'end': '192.165.252.190'}], 'gateway_ip': '192.165.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.165.252.130', 'tags': [], 'project_id': 'bd931da252ac424a92afcba0efd8a708'}} 2025-01-13 18:58:06,835 - INFO - Created VN ctest-vn-17768352 2025-01-13 18:58:06,889 - DEBUG - VN ctest-vn-17768352 UUID is 31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c 2025-01-13 18:58:07,206 - DEBUG - Response for create_network : {'network': {'id': 'edd8e641-cb15-4be6-85e3-4d76153e358e', 'name': 'ctest-vn-91756004', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-91756004'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:58:07,395 - DEBUG - Response for create_subnet : {'subnet': {'id': '17dfd665-9b5f-47a2-b8c8-11d1eecfa081', 'name': '', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'network_id': 'edd8e641-cb15-4be6-85e3-4d76153e358e', 'ip_version': 4, 'cidr': '62.241.156.64/26', 'allocation_pools': [{'start': '62.241.156.66', 'end': '62.241.156.126'}], 'gateway_ip': '62.241.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.241.156.66', 'tags': [], 'project_id': 'bd931da252ac424a92afcba0efd8a708'}} 2025-01-13 18:58:07,415 - INFO - Created VN ctest-vn-91756004 2025-01-13 18:58:07,470 - DEBUG - VN ctest-vn-91756004 UUID is edd8e641-cb15-4be6-85e3-4d76153e358e 2025-01-13 18:58:07,592 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352, 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-75388431:ctest-vn-91756004, 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-01-13 18:58:07,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c', 'name': 'ctest-vn-17768352', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7fdab6af-f5ec-4e72-a39a-5de8e7837a50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-17768352'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491']], 'subnet_ipam': [{'subnet_cidr': '192.165.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:58:08,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edd8e641-cb15-4be6-85e3-4d76153e358e', 'name': 'ctest-vn-91756004', 'tenant_id': 'bd931da252ac424a92afcba0efd8a708', 'project_id': 'bd931da252ac424a92afcba0efd8a708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17dfd665-9b5f-47a2-b8c8-11d1eecfa081'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-vn-91756004'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491']], 'subnet_ipam': [{'subnet_cidr': '62.241.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:58:08,325 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-13 18:58:08,626 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-13 18:58:08,657 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e 2025-01-13 18:58:08,671 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708 2025-01-13 18:58:08,750 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c 2025-01-13 18:58:08,762 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c 2025-01-13 18:58:08,773 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335 2025-01-13 18:58:08,782 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335 2025-01-13 18:58:08,790 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d54ce8c3-e106-4f6b-bd0b-c08d0fde61bd 2025-01-13 18:58:08,798 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 18:58:08,798 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c 2025-01-13 18:58:08,809 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335 2025-01-13 18:58:08,826 - INFO - Verified VN network id 7 for VN 31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c 2025-01-13 18:58:08,826 - INFO - Verifications in API Server for VN ctest-vn-17768352 passed 2025-01-13 18:58:08,827 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c 2025-01-13 18:58:08,839 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335 2025-01-13 18:58:08,847 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335 2025-01-13 18:58:08,855 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d54ce8c3-e106-4f6b-bd0b-c08d0fde61bd 2025-01-13 18:58:08,871 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75388431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3595557881398053799', 'uuid-lslong': '12956104035278466108'}, 'enable': 'true', 'created': '2025-01-13T18:58:06', 'last-modified': '2025-01-13T18:58:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.992839'} 2025-01-13 18:58:08,879 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 18:58:08,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17768352 passed 2025-01-13 18:58:08,879 - DEBUG - ====Verifying policy data for ctest-vn-17768352 in API_Server ====== 2025-01-13 18:58:08,879 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-13 18:58:08,886 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e 2025-01-13 18:58:08,902 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708 2025-01-13 18:58:08,991 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/31e5fcd7-d216-4ba7-b3cd-53f9c7c72c3c 2025-01-13 18:58:09,006 - DEBUG - ==>Verifying data for policy with id: 20e35974-d785-441d-a50f-210eb7f46a4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491'] 2025-01-13 18:58:09,006 - INFO - VN ctest-vn-17768352 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 18:58:09,006 - DEBUG - Verifying the vn in opserver 2025-01-13 18:58:09,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352 virtual network link through opserver 10.0.0.17 2025-01-13 18:58:09,006 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-13 18:58:09,307 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-13 18:58:09,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352?flat'} 2025-01-13 18:58:09,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352 is found in opserver 2025-01-13 18:58:09,386 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 18:58:09,392 - DEBUG - VRF ids for VN ctest-vn-17768352: {} 2025-01-13 18:58:09,392 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-13 18:58:09,400 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e 2025-01-13 18:58:09,417 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708 2025-01-13 18:58:09,497 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e 2025-01-13 18:58:09,515 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e 2025-01-13 18:58:09,528 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813 2025-01-13 18:58:09,538 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813 2025-01-13 18:58:09,546 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/08e12107-9522-4168-982a-b9b0e57a4f86 2025-01-13 18:58:09,555 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 18:58:09,555 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e 2025-01-13 18:58:09,567 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813 2025-01-13 18:58:09,587 - INFO - Verified VN network id 8 for VN edd8e641-cb15-4be6-85e3-4d76153e358e 2025-01-13 18:58:09,587 - INFO - Verifications in API Server for VN ctest-vn-91756004 passed 2025-01-13 18:58:09,587 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e 2025-01-13 18:58:09,599 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813 2025-01-13 18:58:09,608 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813 2025-01-13 18:58:09,619 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/08e12107-9522-4168-982a-b9b0e57a4f86 2025-01-13 18:58:09,636 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75388431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17138701552212855782', 'uuid-lslong': '9647639996315612558'}, 'enable': 'true', 'created': '2025-01-13T18:58:07', 'last-modified': '2025-01-13T18:58:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494484'} 2025-01-13 18:58:09,644 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 18:58:09,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91756004 passed 2025-01-13 18:58:09,645 - DEBUG - ====Verifying policy data for ctest-vn-91756004 in API_Server ====== 2025-01-13 18:58:09,645 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-13 18:58:09,652 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e 2025-01-13 18:58:09,666 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708 2025-01-13 18:58:09,740 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/edd8e641-cb15-4be6-85e3-4d76153e358e 2025-01-13 18:58:09,751 - DEBUG - ==>Verifying data for policy with id: 20e35974-d785-441d-a50f-210eb7f46a4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-75388431', 'ctest-policy-allow-all-97510491'] 2025-01-13 18:58:09,751 - INFO - VN ctest-vn-91756004 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 18:58:09,751 - DEBUG - Verifying the vn in opserver 2025-01-13 18:58:09,751 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004 virtual network link through opserver 10.0.0.17 2025-01-13 18:58:09,751 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-13 18:58:09,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004?flat'} 2025-01-13 18:58:09,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-91756004 is found in opserver 2025-01-13 18:58:09,775 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 18:58:09,780 - DEBUG - VRF ids for VN ctest-vn-91756004: {} 2025-01-13 18:58:09,847 - DEBUG - Services list from nova: [, , ] 2025-01-13 18:58:11,044 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2616-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2616-1) 2025-01-13 18:58:12,264 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2616-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2616-1) 2025-01-13 18:58:12,265 - INFO - Waiting for VM ctest-TestBasicPolicy-75388431-57272513 to be up.. 2025-01-13 18:58:12,366 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 18:58:17,449 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 18:58:22,549 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 18:58:27,630 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 18:58:32,729 - DEBUG - VM is in ACTIVE state now 2025-01-13 18:58:32,729 - INFO - VM name : ctest-TestBasicPolicy-75388431-57272513 2025-01-13 18:58:32,825 - DEBUG - VM ctest-TestBasicPolicy-75388431-57272513 ID is 210c659e-fe74-483d-83bf-935be090337d 2025-01-13 18:58:32,864 - DEBUG - VM ctest-TestBasicPolicy-75388431-57272513 launched on Node cn-jenkins-deploy-platform-ansible-os-2616-1 2025-01-13 18:58:32,971 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/210c659e-fe74-483d-83bf-935be090337d 2025-01-13 18:58:32,982 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/68e1baa7-a11f-4a60-8e8d-4991a051e52f 2025-01-13 18:58:36,259 - 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 1021ms') 2025-01-13 18:58:36,259 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-75388431-57272513 failed! 2025-01-13 18:58:36,317 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-75388431:ctest-vn-17768352 is 192.165.252.129 and allocation pool is NOT set 2025-01-13 18:58:38,384 - 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.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.38 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.377/6.657/11.937/5.280 ms') 2025-01-13 18:58:38,384 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-75388431-57272513 passed 2025-01-13 18:58:38,538 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:58:38,538 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-75388431-57272513, IP 192.165.252.131, Port 22 2025-01-13 18:58:38,604 - 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-01-13 18:58:38,686 - DEBUG - VM ctest-TestBasicPolicy-75388431-57272513 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-13 18:58:43,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:58:43,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-75388431-57272513, IP 192.165.252.131, Port 22 2025-01-13 18:58:43,845 - DEBUG - VM ctest-TestBasicPolicy-75388431-57272513 is ready for SSH connections 2025-01-13 18:58:43,846 - INFO - Waiting for VM ctest-TestBasicPolicy-75388431-24130938 to be up.. 2025-01-13 18:58:43,935 - DEBUG - VM is in ACTIVE state now 2025-01-13 18:58:43,935 - INFO - VM name : ctest-TestBasicPolicy-75388431-24130938 2025-01-13 18:58:44,034 - DEBUG - VM ctest-TestBasicPolicy-75388431-24130938 ID is affc410a-5729-49a6-ba81-fdf91652e281 2025-01-13 18:58:44,034 - DEBUG - VM ctest-TestBasicPolicy-75388431-24130938 launched on Node cn-jenkins-deploy-platform-ansible-os-2616-1 2025-01-13 18:58:44,120 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/affc410a-5729-49a6-ba81-fdf91652e281 2025-01-13 18:58:44,131 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/cfc8c248-0d1b-4547-bcd2-376ba53a9aa4 2025-01-13 18:58:45,393 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.704 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.704/2.022/3.341/1.318 ms') 2025-01-13 18:58:45,394 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-75388431-24130938 passed 2025-01-13 18:58:45,545 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:58:45,546 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-75388431-24130938, IP 62.241.156.67, Port 22 2025-01-13 18:58:45,716 - DEBUG - VM ctest-TestBasicPolicy-75388431-24130938 is ready for SSH connections 2025-01-13 18:58:45,717 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:58:45,717 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.241.156.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-13 18:58:45,717 - DEBUG - ping -s 56 -c 3 -W 1 62.241.156.67 2025-01-13 18:58:49,758 - DEBUG - PING 62.241.156.67 (62.241.156.67): 56 data bytes 64 bytes from 62.241.156.67: seq=0 ttl=63 time=5.249 ms 64 bytes from 62.241.156.67: seq=1 ttl=63 time=0.958 ms 64 bytes from 62.241.156.67: seq=2 ttl=63 time=1.378 ms --- 62.241.156.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.958/2.528/5.249 ms 2025-01-13 18:58:49,758 - INFO - Ping to IP 62.241.156.67 from VM ctest-TestBasicPolicy-75388431-57272513 passed 2025-01-13 18:58:49,949 - DEBUG - Policy Update Response {"network-policy": {"uuid": "20e35974-d785-441d-a50f-210eb7f46a4a", "href": "http://10.0.0.17:8082/network-policy/20e35974-d785-441d-a50f-210eb7f46a4a"}} 2025-01-13 18:58:49,949 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:58:49,950 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.241.156.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-13 18:58:49,950 - DEBUG - ping -s 56 -c 3 -W 1 62.241.156.67 2025-01-13 18:58:53,199 - DEBUG - PING 62.241.156.67 (62.241.156.67): 56 data bytes --- 62.241.156.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-13 18:58:53,199 - WARNING - Ping to IP 62.241.156.67 from VM ctest-TestBasicPolicy-75388431-57272513 failed 2025-01-13 18:58:53,199 - INFO - Deleting VM ctest-TestBasicPolicy-75388431-24130938 2025-01-13 18:58:53,267 - INFO - Deleting VM ctest-TestBasicPolicy-75388431-57272513 2025-01-13 18:58:53,650 - INFO - Deleted policy ctest-policy-allow-all-97510491 2025-01-13 18:58:53,650 - INFO - Deleting VN ctest-vn-91756004 2025-01-13 18:58:53,690 - DEBUG - VN edd8e641-cb15-4be6-85e3-4d76153e358e still in use: Unable to complete operation on network edd8e641-cb15-4be6-85e3-4d76153e358e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5b162853-3e65-4e7a-9c48-9649aa2c2196'] 2025-01-13 18:58:53,690 - WARNING - Deleting VN ctest-vn-91756004 failed..Will retry 2025-01-13 18:58:55,809 - DEBUG - Response for deleting network () 2025-01-13 18:58:55,809 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9bde7744-030e-49a3-acd0-cdf3267d5813 2025-01-13 18:58:55,818 - DEBUG - Response Code: 404 2025-01-13 18:58:55,818 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-13 18:58:55,825 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e 2025-01-13 18:58:55,881 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708 2025-01-13 18:58:55,954 - INFO - Validated that VN ctest-vn-91756004 is not found in API Server 2025-01-13 18:58:55,965 - DEBUG - VN ctest-vn-91756004 is not present in Agent 10.0.0.17 2025-01-13 18:58:55,965 - INFO - Validated that VN ctest-vn-91756004 is not in any agent 2025-01-13 18:58:55,982 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91756004 info 2025-01-13 18:58:55,982 - INFO - Deleting VN ctest-vn-17768352 2025-01-13 18:58:56,101 - DEBUG - Response for deleting network () 2025-01-13 18:58:56,101 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/406360d9-dab6-4b3d-a76c-b964da15f335 2025-01-13 18:58:56,106 - DEBUG - Response Code: 404 2025-01-13 18:58:56,106 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-13 18:58:56,118 - DEBUG - Requesting: http://10.0.0.17:8082/domain/da898e45-9973-48dc-98ab-89c1cbffdb0e 2025-01-13 18:58:56,171 - DEBUG - Requesting: http://10.0.0.17:8082/project/bd931da2-52ac-424a-92af-cba0efd8a708 2025-01-13 18:58:56,243 - INFO - Validated that VN ctest-vn-17768352 is not found in API Server 2025-01-13 18:58:56,255 - DEBUG - VN ctest-vn-17768352 is not present in Agent 10.0.0.17 2025-01-13 18:58:56,255 - INFO - Validated that VN ctest-vn-17768352 is not in any agent 2025-01-13 18:58:56,271 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17768352 info 2025-01-13 18:58:56,528 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 18:58:56,528 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:51] 2025-01-13 18:58:56,528 - INFO - -------------------------------------------------------------------------------- 2025-01-13 18:58:57,232 - INFO - Deleted project: ctest-TestBasicPolicy-75388431, ID : bd931da2-52ac-424a-92af-cba0efd8a708