2025-01-12 08:40:24,879 - INFO - Domain Default found not creating 2025-01-12 08:40:25,032 - INFO - Project ctest-TestBasicPolicy-10311559 not found, creating it 2025-01-12 08:40:25,496 - INFO - Created Project:ctest-TestBasicPolicy-10311559, ID : 0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155 2025-01-12 08:40:26,973 - INFO - ================================================================================ 2025-01-12 08:40:26,973 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-12 08:40:26,973 - 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-12 08:40:27,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.12': '0'}} with 2025-01-12 08:40:27,233 - INFO - Initial checks done. Running the testcase now 2025-01-12 08:40:27,233 - INFO - 2025-01-12 08:40:27,827 - DEBUG - Response for create_network : {'network': {'id': '8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca', 'name': 'ctest-vn-72010986', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-72010986'], 'port_security_enabled': True, 'description': ''}} 2025-01-12 08:40:27,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '42a59a83-d08f-43d7-a783-2f0fe5731802', 'name': '', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'network_id': '8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca', 'ip_version': 4, 'cidr': '8.153.228.192/26', 'allocation_pools': [{'start': '8.153.228.194', 'end': '8.153.228.254'}], 'gateway_ip': '8.153.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.153.228.194', 'tags': [], 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155'}} 2025-01-12 08:40:28,027 - INFO - Created VN ctest-vn-72010986 2025-01-12 08:40:28,083 - DEBUG - VN ctest-vn-72010986 UUID is 8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca 2025-01-12 08:40:28,372 - DEBUG - Response for create_network : {'network': {'id': '3611639a-a023-4819-9a6d-fd034ea360af', 'name': 'ctest-vn-74390281', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-74390281'], 'port_security_enabled': True, 'description': ''}} 2025-01-12 08:40:28,527 - DEBUG - Response for create_subnet : {'subnet': {'id': '533ecade-2fbb-4dad-9975-e9201380ef3e', 'name': '', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'network_id': '3611639a-a023-4819-9a6d-fd034ea360af', 'ip_version': 4, 'cidr': '133.123.30.64/26', 'allocation_pools': [{'start': '133.123.30.66', 'end': '133.123.30.126'}], 'gateway_ip': '133.123.30.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.123.30.66', 'tags': [], 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155'}} 2025-01-12 08:40:28,546 - INFO - Created VN ctest-vn-74390281 2025-01-12 08:40:28,599 - DEBUG - VN ctest-vn-74390281 UUID is 3611639a-a023-4819-9a6d-fd034ea360af 2025-01-12 08:40:28,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986, 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-10311559:ctest-vn-74390281, 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-12 08:40:29,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca', 'name': 'ctest-vn-72010986', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42a59a83-d08f-43d7-a783-2f0fe5731802'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-72010986'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715']], 'subnet_ipam': [{'subnet_cidr': '8.153.228.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-12 08:40:29,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3611639a-a023-4819-9a6d-fd034ea360af', 'name': 'ctest-vn-74390281', 'tenant_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'project_id': '0a96eeb84ca94c5d9d16e6ef2483c155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['533ecade-2fbb-4dad-9975-e9201380ef3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-vn-74390281'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715']], 'subnet_ipam': [{'subnet_cidr': '133.123.30.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-12 08:40:29,427 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-12 08:40:29,726 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-12 08:40:29,758 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8 2025-01-12 08:40:29,773 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155 2025-01-12 08:40:29,850 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca 2025-01-12 08:40:29,862 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca 2025-01-12 08:40:29,873 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087 2025-01-12 08:40:29,882 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087 2025-01-12 08:40:29,890 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cc0c94fa-f5e3-41d3-b6ff-1f809ad76475 2025-01-12 08:40:29,900 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-12 08:40:29,900 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca 2025-01-12 08:40:29,912 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087 2025-01-12 08:40:29,930 - INFO - Verified VN network id 8 for VN 8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca 2025-01-12 08:40:29,930 - INFO - Verifications in API Server for VN ctest-vn-72010986 passed 2025-01-12 08:40:29,930 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca 2025-01-12 08:40:29,945 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087 2025-01-12 08:40:29,954 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087 2025-01-12 08:40:29,965 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cc0c94fa-f5e3-41d3-b6ff-1f809ad76475 2025-01-12 08:40:29,982 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10311559', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10352587804875378493', 'uuid-lslong': '12277741348319864522'}, 'enable': 'true', 'created': '2025-01-12T08:40:27', 'last-modified': '2025-01-12T08:40:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977077'} 2025-01-12 08:40:29,990 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-12 08:40:29,990 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72010986 passed 2025-01-12 08:40:29,990 - DEBUG - ====Verifying policy data for ctest-vn-72010986 in API_Server ====== 2025-01-12 08:40:29,990 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-12 08:40:29,998 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8 2025-01-12 08:40:30,014 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155 2025-01-12 08:40:30,104 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8fabc7c2-17a3-4f3d-aa63-4cb4bebb26ca 2025-01-12 08:40:30,118 - DEBUG - ==>Verifying data for policy with id: 5835f764-05a7-416a-af33-e9d5b19c367e, fqn: ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715'] 2025-01-12 08:40:30,118 - INFO - VN ctest-vn-72010986 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-12 08:40:30,118 - DEBUG - Verifying the vn in opserver 2025-01-12 08:40:30,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986 virtual network link through opserver 10.0.0.17 2025-01-12 08:40:30,118 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-12 08:40:30,418 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-12 08:40:30,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986?flat'} 2025-01-12 08:40:30,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986 is found in opserver 2025-01-12 08:40:30,502 - DEBUG - Do not have enough data to verify VN in agent 2025-01-12 08:40:30,511 - DEBUG - VRF ids for VN ctest-vn-72010986: {} 2025-01-12 08:40:30,511 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-12 08:40:30,520 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8 2025-01-12 08:40:30,537 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155 2025-01-12 08:40:30,609 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af 2025-01-12 08:40:30,625 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af 2025-01-12 08:40:30,638 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545 2025-01-12 08:40:30,648 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545 2025-01-12 08:40:30,657 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2211577e-461e-4538-a820-08fb2ccaa59a 2025-01-12 08:40:30,664 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-12 08:40:30,664 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af 2025-01-12 08:40:30,675 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545 2025-01-12 08:40:30,692 - INFO - Verified VN network id 9 for VN 3611639a-a023-4819-9a6d-fd034ea360af 2025-01-12 08:40:30,692 - INFO - Verifications in API Server for VN ctest-vn-74390281 passed 2025-01-12 08:40:30,692 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af 2025-01-12 08:40:30,703 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545 2025-01-12 08:40:30,711 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545 2025-01-12 08:40:30,719 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/2211577e-461e-4538-a820-08fb2ccaa59a 2025-01-12 08:40:30,736 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10311559', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3896004668414969881', 'uuid-lslong': '11127828444948422831'}, 'enable': 'true', 'created': '2025-01-12T08:40:28', 'last-modified': '2025-01-12T08:40:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.496294'} 2025-01-12 08:40:30,746 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-12 08:40:30,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74390281 passed 2025-01-12 08:40:30,746 - DEBUG - ====Verifying policy data for ctest-vn-74390281 in API_Server ====== 2025-01-12 08:40:30,746 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-12 08:40:30,754 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8 2025-01-12 08:40:30,770 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155 2025-01-12 08:40:30,852 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/3611639a-a023-4819-9a6d-fd034ea360af 2025-01-12 08:40:30,863 - DEBUG - ==>Verifying data for policy with id: 5835f764-05a7-416a-af33-e9d5b19c367e, fqn: ['default-domain', 'ctest-TestBasicPolicy-10311559', 'ctest-policy-allow-all-21163715'] 2025-01-12 08:40:30,863 - INFO - VN ctest-vn-74390281 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-12 08:40:30,863 - DEBUG - Verifying the vn in opserver 2025-01-12 08:40:30,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281 virtual network link through opserver 10.0.0.17 2025-01-12 08:40:30,863 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-12 08:40:30,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281?flat'} 2025-01-12 08:40:30,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-74390281 is found in opserver 2025-01-12 08:40:30,887 - DEBUG - Do not have enough data to verify VN in agent 2025-01-12 08:40:30,893 - DEBUG - VRF ids for VN ctest-vn-74390281: {} 2025-01-12 08:40:30,961 - DEBUG - Services list from nova: [, , ] 2025-01-12 08:40:31,983 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2602-1) 2025-01-12 08:40:33,315 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2602-1) 2025-01-12 08:40:33,316 - INFO - Waiting for VM ctest-TestBasicPolicy-10311559-14151831 to be up.. 2025-01-12 08:40:33,424 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-12 08:40:38,520 - DEBUG - VM is in ACTIVE state now 2025-01-12 08:40:38,520 - INFO - VM name : ctest-TestBasicPolicy-10311559-14151831 2025-01-12 08:40:38,604 - DEBUG - VM ctest-TestBasicPolicy-10311559-14151831 ID is 3c069c08-3d1e-4aa4-a61a-e77a3b8443c5 2025-01-12 08:40:38,636 - DEBUG - VM ctest-TestBasicPolicy-10311559-14151831 launched on Node cn-jenkins-deploy-platform-ansible-os-2602-1 2025-01-12 08:40:38,730 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/3c069c08-3d1e-4aa4-a61a-e77a3b8443c5 2025-01-12 08:40:38,741 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/aa2f2020-3b62-418f-a702-75088128164e 2025-01-12 08:40:42,013 - 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 1023ms') 2025-01-12 08:40:42,013 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10311559-14151831 failed! 2025-01-12 08:40:42,075 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10311559:ctest-vn-72010986 is 8.153.228.193 and allocation pool is NOT set 2025-01-12 08:40:44,143 - 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=6.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.567 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 = 0.567/3.705/6.844/3.138 ms') 2025-01-12 08:40:44,143 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10311559-14151831 passed 2025-01-12 08:40:44,299 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 08:40:44,299 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10311559-14151831, IP 8.153.228.195, Port 22 2025-01-12 08:40:44,465 - DEBUG - VM ctest-TestBasicPolicy-10311559-14151831 is ready for SSH connections 2025-01-12 08:40:44,465 - INFO - Waiting for VM ctest-TestBasicPolicy-10311559-70695794 to be up.. 2025-01-12 08:40:44,554 - DEBUG - VM is in ACTIVE state now 2025-01-12 08:40:44,554 - INFO - VM name : ctest-TestBasicPolicy-10311559-70695794 2025-01-12 08:40:44,641 - DEBUG - VM ctest-TestBasicPolicy-10311559-70695794 ID is 013b69c6-576c-4c26-acad-f52a3e6510b2 2025-01-12 08:40:44,641 - DEBUG - VM ctest-TestBasicPolicy-10311559-70695794 launched on Node cn-jenkins-deploy-platform-ansible-os-2602-1 2025-01-12 08:40:44,727 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/013b69c6-576c-4c26-acad-f52a3e6510b2 2025-01-12 08:40:44,738 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/ab0e974d-185b-4cb9-88f1-87de30a1edce 2025-01-12 08:40:45,988 - 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=4.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.37 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 = 1.368/2.748/4.129/1.380 ms') 2025-01-12 08:40:45,988 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10311559-70695794 passed 2025-01-12 08:40:46,139 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 08:40:46,139 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10311559-70695794, IP 133.123.30.67, Port 22 2025-01-12 08:40:46,295 - DEBUG - VM ctest-TestBasicPolicy-10311559-70695794 is ready for SSH connections 2025-01-12 08:40:46,295 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 08:40:46,295 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.123.30.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-12 08:40:46,295 - DEBUG - ping -s 56 -c 3 -W 1 133.123.30.67 2025-01-12 08:40:49,992 - DEBUG - PING 133.123.30.67 (133.123.30.67): 56 data bytes 64 bytes from 133.123.30.67: seq=0 ttl=63 time=4.420 ms 64 bytes from 133.123.30.67: seq=1 ttl=63 time=1.121 ms 64 bytes from 133.123.30.67: seq=2 ttl=63 time=1.435 ms --- 133.123.30.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.121/2.325/4.420 ms 2025-01-12 08:40:49,992 - INFO - Ping to IP 133.123.30.67 from VM ctest-TestBasicPolicy-10311559-14151831 passed 2025-01-12 08:40:50,183 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5835f764-05a7-416a-af33-e9d5b19c367e", "href": "http://10.0.0.17:8082/network-policy/5835f764-05a7-416a-af33-e9d5b19c367e"}} 2025-01-12 08:40:50,183 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 08:40:50,183 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.123.30.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-12 08:40:50,183 - DEBUG - ping -s 56 -c 3 -W 1 133.123.30.67 2025-01-12 08:40:53,394 - DEBUG - PING 133.123.30.67 (133.123.30.67): 56 data bytes 64 bytes from 133.123.30.67: seq=0 ttl=63 time=2.038 ms --- 133.123.30.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.038/2.038/2.038 ms 2025-01-12 08:40:53,394 - WARNING - Ping to IP 133.123.30.67 from VM ctest-TestBasicPolicy-10311559-14151831 failed 2025-01-12 08:40:53,394 - INFO - Deleting VM ctest-TestBasicPolicy-10311559-70695794 2025-01-12 08:40:53,473 - INFO - Deleting VM ctest-TestBasicPolicy-10311559-14151831 2025-01-12 08:40:53,897 - INFO - Deleted policy ctest-policy-allow-all-21163715 2025-01-12 08:40:53,897 - INFO - Deleting VN ctest-vn-74390281 2025-01-12 08:40:53,940 - DEBUG - VN 3611639a-a023-4819-9a6d-fd034ea360af still in use: Unable to complete operation on network 3611639a-a023-4819-9a6d-fd034ea360af. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5bd86a63-b1bf-45f6-aabe-b1df950ea0e7'] 2025-01-12 08:40:53,940 - WARNING - Deleting VN ctest-vn-74390281 failed..Will retry 2025-01-12 08:40:56,061 - DEBUG - Response for deleting network () 2025-01-12 08:40:56,061 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/515d5ece-58e6-49da-bcc1-af58b39bb545 2025-01-12 08:40:56,070 - DEBUG - Response Code: 404 2025-01-12 08:40:56,070 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-12 08:40:56,079 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8 2025-01-12 08:40:56,137 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155 2025-01-12 08:40:56,217 - INFO - Validated that VN ctest-vn-74390281 is not found in API Server 2025-01-12 08:40:56,230 - DEBUG - VN ctest-vn-74390281 is not present in Agent 10.0.0.17 2025-01-12 08:40:56,230 - INFO - Validated that VN ctest-vn-74390281 is not in any agent 2025-01-12 08:40:56,245 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74390281 info 2025-01-12 08:40:56,246 - INFO - Deleting VN ctest-vn-72010986 2025-01-12 08:40:56,370 - DEBUG - Response for deleting network () 2025-01-12 08:40:56,370 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7b0f1ab3-1c69-49d8-ba42-4eb6ab490087 2025-01-12 08:40:56,376 - DEBUG - Response Code: 404 2025-01-12 08:40:56,376 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-12 08:40:56,382 - DEBUG - Requesting: http://10.0.0.17:8082/domain/6d5ae103-b048-4908-968e-f4aeacdc84c8 2025-01-12 08:40:56,437 - DEBUG - Requesting: http://10.0.0.17:8082/project/0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155 2025-01-12 08:40:56,510 - INFO - Validated that VN ctest-vn-72010986 is not found in API Server 2025-01-12 08:40:56,525 - DEBUG - VN ctest-vn-72010986 is not present in Agent 10.0.0.17 2025-01-12 08:40:56,525 - INFO - Validated that VN ctest-vn-72010986 is not in any agent 2025-01-12 08:40:56,547 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72010986 info 2025-01-12 08:40:56,808 - DEBUG - No XMPP flaps were noticed during the test
2025-01-12 08:40:56,808 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-01-12 08:40:56,808 - INFO - -------------------------------------------------------------------------------- 2025-01-12 08:40:57,529 - INFO - Deleted project: ctest-TestBasicPolicy-10311559, ID : 0a96eeb8-4ca9-4c5d-9d16-e6ef2483c155