2024-09-11 15:25:38,470 - INFO - Domain Default found not creating 2024-09-11 15:25:38,626 - INFO - Project ctest-TestBasicPolicy-57099532 not found, creating it 2024-09-11 15:25:39,092 - INFO - Created Project:ctest-TestBasicPolicy-57099532, ID : 8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff 2024-09-11 15:25:40,723 - INFO - ================================================================================ 2024-09-11 15:25:40,723 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-11 15:25:40,723 - 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 2024-09-11 15:25:40,978 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.20': '0'}} with 2024-09-11 15:25:40,978 - INFO - Initial checks done. Running the testcase now 2024-09-11 15:25:40,978 - INFO - 2024-09-11 15:25:41,545 - DEBUG - Response for create_network : {'network': {'id': '1fc9e5d6-de54-4deb-a4e7-844d45921389', 'name': 'ctest-vn-82523696', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-82523696'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 15:25:41,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c910e1b-6a06-40f5-9a85-b2de92264dc4', 'name': '', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'network_id': '1fc9e5d6-de54-4deb-a4e7-844d45921389', 'ip_version': 4, 'cidr': '170.241.88.64/26', 'allocation_pools': [{'start': '170.241.88.66', 'end': '170.241.88.126'}], 'gateway_ip': '170.241.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.241.88.66', 'tags': [], 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff'}} 2024-09-11 15:25:41,773 - INFO - Created VN ctest-vn-82523696 2024-09-11 15:25:41,825 - DEBUG - VN ctest-vn-82523696 UUID is 1fc9e5d6-de54-4deb-a4e7-844d45921389 2024-09-11 15:25:42,100 - DEBUG - Response for create_network : {'network': {'id': '21b90a63-dcef-4878-92cc-fb076d05bc15', 'name': 'ctest-vn-77220251', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-77220251'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 15:25:42,284 - DEBUG - Response for create_subnet : {'subnet': {'id': '62ea6984-b847-4772-a8cb-c44dcaa24ae2', 'name': '', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'network_id': '21b90a63-dcef-4878-92cc-fb076d05bc15', 'ip_version': 4, 'cidr': '134.27.178.192/26', 'allocation_pools': [{'start': '134.27.178.194', 'end': '134.27.178.254'}], 'gateway_ip': '134.27.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.27.178.194', 'tags': [], 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff'}} 2024-09-11 15:25:42,303 - INFO - Created VN ctest-vn-77220251 2024-09-11 15:25:42,353 - DEBUG - VN ctest-vn-77220251 UUID is 21b90a63-dcef-4878-92cc-fb076d05bc15 2024-09-11 15:25:42,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696, 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-57099532:ctest-vn-77220251, 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] 2024-09-11 15:25:42,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fc9e5d6-de54-4deb-a4e7-844d45921389', 'name': 'ctest-vn-82523696', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c910e1b-6a06-40f5-9a85-b2de92264dc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-82523696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778']], 'subnet_ipam': [{'subnet_cidr': '170.241.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 15:25:42,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21b90a63-dcef-4878-92cc-fb076d05bc15', 'name': 'ctest-vn-77220251', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62ea6984-b847-4772-a8cb-c44dcaa24ae2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-77220251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778']], 'subnet_ipam': [{'subnet_cidr': '134.27.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 15:25:43,165 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-11 15:25:43,460 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-11 15:25:43,491 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67 2024-09-11 15:25:43,504 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff 2024-09-11 15:25:43,576 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389 2024-09-11 15:25:43,587 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389 2024-09-11 15:25:43,596 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29 2024-09-11 15:25:43,605 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29 2024-09-11 15:25:43,613 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/dfcb48dc-3bbb-438d-a73c-fa50e5bb8cb4 2024-09-11 15:25:43,620 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 15:25:43,620 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389 2024-09-11 15:25:43,628 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29 2024-09-11 15:25:43,641 - INFO - Verified VN network id 9 for VN 1fc9e5d6-de54-4deb-a4e7-844d45921389 2024-09-11 15:25:43,641 - INFO - Verifications in API Server for VN ctest-vn-82523696 passed 2024-09-11 15:25:43,641 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389 2024-09-11 15:25:43,650 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29 2024-09-11 15:25:43,658 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29 2024-09-11 15:25:43,665 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/dfcb48dc-3bbb-438d-a73c-fa50e5bb8cb4 2024-09-11 15:25:43,677 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57099532', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2290614596510436843', 'uuid-lslong': '11882611609254892425'}, 'enable': 'true', 'created': '2024-09-11T15:25:41', 'last-modified': '2024-09-11T15:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938392'} 2024-09-11 15:25:43,684 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 15:25:43,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82523696 passed 2024-09-11 15:25:43,684 - DEBUG - ====Verifying policy data for ctest-vn-82523696 in API_Server ====== 2024-09-11 15:25:43,685 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-11 15:25:43,690 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67 2024-09-11 15:25:43,702 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff 2024-09-11 15:25:43,772 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389 2024-09-11 15:25:43,779 - DEBUG - ==>Verifying data for policy with id: a91218a3-f012-4f67-80a2-daa04e87f68e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778'] 2024-09-11 15:25:43,779 - INFO - VN ctest-vn-82523696 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 15:25:43,780 - DEBUG - Verifying the vn in opserver 2024-09-11 15:25:43,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696 virtual network link through opserver 10.0.0.37 2024-09-11 15:25:43,780 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-11 15:25:44,078 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-11 15:25:44,154 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696?flat'} 2024-09-11 15:25:44,155 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696 is found in opserver 2024-09-11 15:25:44,166 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 15:25:44,171 - DEBUG - VRF ids for VN ctest-vn-82523696: {} 2024-09-11 15:25:44,171 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-11 15:25:44,177 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67 2024-09-11 15:25:44,191 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff 2024-09-11 15:25:44,261 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15 2024-09-11 15:25:44,272 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15 2024-09-11 15:25:44,281 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94 2024-09-11 15:25:44,289 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94 2024-09-11 15:25:44,296 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7c6d5aa8-76d1-4093-b836-9ee6cae4d8b6 2024-09-11 15:25:44,303 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 15:25:44,303 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15 2024-09-11 15:25:44,312 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94 2024-09-11 15:25:44,324 - INFO - Verified VN network id 10 for VN 21b90a63-dcef-4878-92cc-fb076d05bc15 2024-09-11 15:25:44,324 - INFO - Verifications in API Server for VN ctest-vn-77220251 passed 2024-09-11 15:25:44,324 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15 2024-09-11 15:25:44,333 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94 2024-09-11 15:25:44,340 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94 2024-09-11 15:25:44,346 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7c6d5aa8-76d1-4093-b836-9ee6cae4d8b6 2024-09-11 15:25:44,357 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57099532', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2429984897967802488', 'uuid-lslong': '10578105634098887701'}, 'enable': 'true', 'created': '2024-09-11T15:25:42', 'last-modified': '2024-09-11T15:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385140'} 2024-09-11 15:25:44,364 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 15:25:44,364 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77220251 passed 2024-09-11 15:25:44,365 - DEBUG - ====Verifying policy data for ctest-vn-77220251 in API_Server ====== 2024-09-11 15:25:44,365 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-11 15:25:44,371 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67 2024-09-11 15:25:44,382 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff 2024-09-11 15:25:44,452 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15 2024-09-11 15:25:44,461 - DEBUG - ==>Verifying data for policy with id: a91218a3-f012-4f67-80a2-daa04e87f68e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778'] 2024-09-11 15:25:44,461 - INFO - VN ctest-vn-77220251 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 15:25:44,461 - DEBUG - Verifying the vn in opserver 2024-09-11 15:25:44,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251 virtual network link through opserver 10.0.0.37 2024-09-11 15:25:44,461 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-11 15:25:44,472 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251?flat'} 2024-09-11 15:25:44,472 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251 is found in opserver 2024-09-11 15:25:44,483 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 15:25:44,488 - DEBUG - VRF ids for VN ctest-vn-77220251: {} 2024-09-11 15:25:44,546 - DEBUG - Services list from nova: [, , ] 2024-09-11 15:25:45,557 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1895-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1895-1) 2024-09-11 15:25:46,812 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1895-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1895-1) 2024-09-11 15:25:46,812 - INFO - Waiting for VM ctest-TestBasicPolicy-57099532-27168081 to be up.. 2024-09-11 15:25:46,893 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 15:25:51,990 - DEBUG - VM is in ACTIVE state now 2024-09-11 15:25:51,990 - INFO - VM name : ctest-TestBasicPolicy-57099532-27168081 2024-09-11 15:25:52,077 - DEBUG - VM ctest-TestBasicPolicy-57099532-27168081 ID is cac47b19-c25b-4e57-9186-df67bddcaf02 2024-09-11 15:25:52,097 - DEBUG - VM ctest-TestBasicPolicy-57099532-27168081 launched on Node cn-jenkins-deploy-platform-ansible-os-1895-1 2024-09-11 15:25:52,185 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/cac47b19-c25b-4e57-9186-df67bddcaf02 2024-09-11 15:25:52,194 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/6b93e377-4ae5-4d01-b471-5e7f88a9e773 2024-09-11 15:25:55,451 - 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 1027ms') 2024-09-11 15:25:55,451 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57099532-27168081 failed! 2024-09-11 15:25:55,505 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696 is 170.241.88.65 and allocation pool is NOT set 2024-09-11 15:25:57,573 - 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=3.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.585 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 = 0.585/1.848/3.112/1.263 ms') 2024-09-11 15:25:57,573 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57099532-27168081 passed 2024-09-11 15:25:57,729 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 15:25:57,729 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57099532-27168081, IP 170.241.88.67, Port 22 2024-09-11 15:25:57,893 - DEBUG - VM ctest-TestBasicPolicy-57099532-27168081 is ready for SSH connections 2024-09-11 15:25:57,893 - INFO - Waiting for VM ctest-TestBasicPolicy-57099532-12114284 to be up.. 2024-09-11 15:25:57,973 - DEBUG - VM is in ACTIVE state now 2024-09-11 15:25:57,974 - INFO - VM name : ctest-TestBasicPolicy-57099532-12114284 2024-09-11 15:25:58,047 - DEBUG - VM ctest-TestBasicPolicy-57099532-12114284 ID is dfb10978-896c-4fec-b62d-0ff7c0370fa6 2024-09-11 15:25:58,047 - DEBUG - VM ctest-TestBasicPolicy-57099532-12114284 launched on Node cn-jenkins-deploy-platform-ansible-os-1895-1 2024-09-11 15:25:58,130 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/dfb10978-896c-4fec-b62d-0ff7c0370fa6 2024-09-11 15:25:58,138 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/e5d6602b-ca1c-4b3d-925c-c94d15962b57 2024-09-11 15:25:59,377 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.640 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.640/2.082/3.525/1.442 ms') 2024-09-11 15:25:59,378 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-57099532-12114284 passed 2024-09-11 15:25:59,525 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 15:25:59,525 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57099532-12114284, IP 134.27.178.195, Port 22 2024-09-11 15:25:59,680 - DEBUG - VM ctest-TestBasicPolicy-57099532-12114284 is ready for SSH connections 2024-09-11 15:25:59,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 15:25:59,680 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.27.178.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-11 15:25:59,680 - DEBUG - ping -s 56 -c 3 -W 1 134.27.178.195 2024-09-11 15:26:03,354 - DEBUG - PING 134.27.178.195 (134.27.178.195): 56 data bytes 64 bytes from 134.27.178.195: seq=0 ttl=63 time=3.182 ms 64 bytes from 134.27.178.195: seq=1 ttl=63 time=0.834 ms 64 bytes from 134.27.178.195: seq=2 ttl=63 time=0.782 ms --- 134.27.178.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.782/1.599/3.182 ms 2024-09-11 15:26:03,354 - INFO - Ping to IP 134.27.178.195 from VM ctest-TestBasicPolicy-57099532-27168081 passed 2024-09-11 15:26:03,532 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a91218a3-f012-4f67-80a2-daa04e87f68e", "href": "http://10.0.0.37:8082/network-policy/a91218a3-f012-4f67-80a2-daa04e87f68e"}} 2024-09-11 15:26:03,533 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 15:26:03,533 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.27.178.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-11 15:26:03,533 - DEBUG - ping -s 56 -c 3 -W 1 134.27.178.195 2024-09-11 15:26:06,776 - DEBUG - PING 134.27.178.195 (134.27.178.195): 56 data bytes 64 bytes from 134.27.178.195: seq=0 ttl=63 time=1.449 ms --- 134.27.178.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.449/1.449/1.449 ms 2024-09-11 15:26:06,776 - WARNING - Ping to IP 134.27.178.195 from VM ctest-TestBasicPolicy-57099532-27168081 failed 2024-09-11 15:26:06,776 - INFO - Deleting VM ctest-TestBasicPolicy-57099532-12114284 2024-09-11 15:26:06,847 - INFO - Deleting VM ctest-TestBasicPolicy-57099532-27168081 2024-09-11 15:26:07,266 - INFO - Deleted policy ctest-policy-allow-all-85257778 2024-09-11 15:26:07,267 - INFO - Deleting VN ctest-vn-77220251 2024-09-11 15:26:07,307 - DEBUG - VN 21b90a63-dcef-4878-92cc-fb076d05bc15 still in use: Unable to complete operation on network 21b90a63-dcef-4878-92cc-fb076d05bc15. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-38148b53-48df-44e9-8386-865c4094d121'] 2024-09-11 15:26:07,307 - WARNING - Deleting VN ctest-vn-77220251 failed..Will retry 2024-09-11 15:26:09,411 - DEBUG - Response for deleting network () 2024-09-11 15:26:09,412 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94 2024-09-11 15:26:09,417 - DEBUG - Response Code: 404 2024-09-11 15:26:09,417 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-11 15:26:09,423 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67 2024-09-11 15:26:09,478 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff 2024-09-11 15:26:09,552 - INFO - Validated that VN ctest-vn-77220251 is not found in API Server 2024-09-11 15:26:09,564 - DEBUG - VN ctest-vn-77220251 is not present in Agent 10.0.0.37 2024-09-11 15:26:09,564 - INFO - Validated that VN ctest-vn-77220251 is not in any agent 2024-09-11 15:26:09,580 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-77220251 info 2024-09-11 15:26:09,580 - INFO - Deleting VN ctest-vn-82523696 2024-09-11 15:26:09,692 - DEBUG - Response for deleting network () 2024-09-11 15:26:09,693 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29 2024-09-11 15:26:09,701 - DEBUG - Response Code: 404 2024-09-11 15:26:09,701 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-11 15:26:09,706 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67 2024-09-11 15:26:09,761 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff 2024-09-11 15:26:09,832 - INFO - Validated that VN ctest-vn-82523696 is not found in API Server 2024-09-11 15:26:09,843 - DEBUG - VN ctest-vn-82523696 is not present in Agent 10.0.0.37 2024-09-11 15:26:09,843 - INFO - Validated that VN ctest-vn-82523696 is not in any agent 2024-09-11 15:26:09,859 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82523696 info 2024-09-11 15:26:10,118 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 15:26:10,118 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-11 15:26:10,118 - INFO - -------------------------------------------------------------------------------- 2024-09-11 15:26:10,770 - INFO - Deleted project: ctest-TestBasicPolicy-57099532, ID : 8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff