2024-09-04 20:43:59,417 - INFO - Domain Default found not creating 2024-09-04 20:43:59,611 - INFO - Project ctest-TestBasicPolicy-88662079 not found, creating it 2024-09-04 20:44:00,105 - INFO - Created Project:ctest-TestBasicPolicy-88662079, ID : f2d9c589-f44e-4922-8321-f826bb5985a6 2024-09-04 20:44:01,698 - INFO - ================================================================================ 2024-09-04 20:44:01,698 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-04 20:44:01,699 - 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-04 20:44:01,957 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.7': '0'}} with 2024-09-04 20:44:01,957 - INFO - Initial checks done. Running the testcase now 2024-09-04 20:44:01,957 - INFO - 2024-09-04 20:44:02,541 - DEBUG - Response for create_network : {'network': {'id': '07e76a24-2109-41ae-a5a8-725c534cc91f', 'name': 'ctest-vn-57162817', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-57162817'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 20:44:02,719 - DEBUG - Response for create_subnet : {'subnet': {'id': '35de523d-69bb-4090-b460-a6f349307d38', 'name': '', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'network_id': '07e76a24-2109-41ae-a5a8-725c534cc91f', 'ip_version': 4, 'cidr': '201.211.82.192/26', 'allocation_pools': [{'start': '201.211.82.194', 'end': '201.211.82.254'}], 'gateway_ip': '201.211.82.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.211.82.194', 'tags': [], 'project_id': 'f2d9c589f44e49228321f826bb5985a6'}} 2024-09-04 20:44:02,741 - INFO - Created VN ctest-vn-57162817 2024-09-04 20:44:02,795 - DEBUG - VN ctest-vn-57162817 UUID is 07e76a24-2109-41ae-a5a8-725c534cc91f 2024-09-04 20:44:03,112 - DEBUG - Response for create_network : {'network': {'id': 'd868f6ce-820b-40e9-8e45-de76e5f6df0c', 'name': 'ctest-vn-62082890', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-62082890'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 20:44:03,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a309903b-eb82-4dcb-ba07-995a0e586a3e', 'name': '', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'network_id': 'd868f6ce-820b-40e9-8e45-de76e5f6df0c', 'ip_version': 4, 'cidr': '136.118.149.64/26', 'allocation_pools': [{'start': '136.118.149.66', 'end': '136.118.149.126'}], 'gateway_ip': '136.118.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.118.149.66', 'tags': [], 'project_id': 'f2d9c589f44e49228321f826bb5985a6'}} 2024-09-04 20:44:03,313 - INFO - Created VN ctest-vn-62082890 2024-09-04 20:44:03,366 - DEBUG - VN ctest-vn-62082890 UUID is d868f6ce-820b-40e9-8e45-de76e5f6df0c 2024-09-04 20:44:03,492 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817, 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-88662079:ctest-vn-62082890, 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-04 20:44:03,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07e76a24-2109-41ae-a5a8-725c534cc91f', 'name': 'ctest-vn-57162817', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35de523d-69bb-4090-b460-a6f349307d38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-57162817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017']], 'subnet_ipam': [{'subnet_cidr': '201.211.82.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 20:44:04,057 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd868f6ce-820b-40e9-8e45-de76e5f6df0c', 'name': 'ctest-vn-62082890', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a309903b-eb82-4dcb-ba07-995a0e586a3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-62082890'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017']], 'subnet_ipam': [{'subnet_cidr': '136.118.149.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 20:44:04,223 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-04 20:44:04,523 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-04 20:44:04,559 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586 2024-09-04 20:44:04,574 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6 2024-09-04 20:44:04,649 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f 2024-09-04 20:44:04,659 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f 2024-09-04 20:44:04,671 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac 2024-09-04 20:44:04,681 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac 2024-09-04 20:44:04,691 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/56121a53-61e9-4c82-9882-f679645ed0c4 2024-09-04 20:44:04,699 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 20:44:04,699 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f 2024-09-04 20:44:04,709 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac 2024-09-04 20:44:04,724 - INFO - Verified VN network id 8 for VN 07e76a24-2109-41ae-a5a8-725c534cc91f 2024-09-04 20:44:04,724 - INFO - Verifications in API Server for VN ctest-vn-57162817 passed 2024-09-04 20:44:04,724 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f 2024-09-04 20:44:04,734 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac 2024-09-04 20:44:04,743 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac 2024-09-04 20:44:04,752 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/56121a53-61e9-4c82-9882-f679645ed0c4 2024-09-04 20:44:04,767 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88662079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '569540581291278766', 'uuid-lslong': '11936916553205598495'}, 'enable': 'true', 'created': '2024-09-04T20:44:02', 'last-modified': '2024-09-04T20:44:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978945'} 2024-09-04 20:44:04,774 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 20:44:04,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57162817 passed 2024-09-04 20:44:04,774 - DEBUG - ====Verifying policy data for ctest-vn-57162817 in API_Server ====== 2024-09-04 20:44:04,774 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-04 20:44:04,781 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586 2024-09-04 20:44:04,794 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6 2024-09-04 20:44:04,870 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f 2024-09-04 20:44:04,879 - DEBUG - ==>Verifying data for policy with id: 206648aa-6b3e-4e93-90b4-fac1678f29d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017'] 2024-09-04 20:44:04,879 - INFO - VN ctest-vn-57162817 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 20:44:04,879 - DEBUG - Verifying the vn in opserver 2024-09-04 20:44:04,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817 virtual network link through opserver 10.0.0.48 2024-09-04 20:44:04,879 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2024-09-04 20:44:05,180 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2024-09-04 20:44:05,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817?flat'} 2024-09-04 20:44:05,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817 is found in opserver 2024-09-04 20:44:05,261 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 20:44:05,268 - DEBUG - VRF ids for VN ctest-vn-57162817: {} 2024-09-04 20:44:05,268 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-04 20:44:05,276 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586 2024-09-04 20:44:05,288 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6 2024-09-04 20:44:05,360 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c 2024-09-04 20:44:05,372 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c 2024-09-04 20:44:05,380 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88 2024-09-04 20:44:05,389 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88 2024-09-04 20:44:05,398 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/72a377a1-3968-4b40-9e2e-f45746ee1bd6 2024-09-04 20:44:05,405 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 20:44:05,405 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c 2024-09-04 20:44:05,414 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88 2024-09-04 20:44:05,428 - INFO - Verified VN network id 9 for VN d868f6ce-820b-40e9-8e45-de76e5f6df0c 2024-09-04 20:44:05,428 - INFO - Verifications in API Server for VN ctest-vn-62082890 passed 2024-09-04 20:44:05,428 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c 2024-09-04 20:44:05,437 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88 2024-09-04 20:44:05,445 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88 2024-09-04 20:44:05,452 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/72a377a1-3968-4b40-9e2e-f45746ee1bd6 2024-09-04 20:44:05,466 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88662079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15593985076575813865', 'uuid-lslong': '10251844729024470796'}, 'enable': 'true', 'created': '2024-09-04T20:44:03', 'last-modified': '2024-09-04T20:44:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434964'} 2024-09-04 20:44:05,474 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 20:44:05,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62082890 passed 2024-09-04 20:44:05,475 - DEBUG - ====Verifying policy data for ctest-vn-62082890 in API_Server ====== 2024-09-04 20:44:05,475 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-04 20:44:05,482 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586 2024-09-04 20:44:05,496 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6 2024-09-04 20:44:05,573 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c 2024-09-04 20:44:05,582 - DEBUG - ==>Verifying data for policy with id: 206648aa-6b3e-4e93-90b4-fac1678f29d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017'] 2024-09-04 20:44:05,582 - INFO - VN ctest-vn-62082890 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 20:44:05,582 - DEBUG - Verifying the vn in opserver 2024-09-04 20:44:05,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890 virtual network link through opserver 10.0.0.48 2024-09-04 20:44:05,582 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2024-09-04 20:44:05,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890?flat'} 2024-09-04 20:44:05,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890 is found in opserver 2024-09-04 20:44:05,605 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 20:44:05,618 - DEBUG - VRF ids for VN ctest-vn-62082890: {} 2024-09-04 20:44:05,680 - DEBUG - Services list from nova: [, , ] 2024-09-04 20:44:06,749 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1847-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1847-1) 2024-09-04 20:44:08,091 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1847-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1847-1) 2024-09-04 20:44:08,091 - INFO - Waiting for VM ctest-TestBasicPolicy-88662079-99800050 to be up.. 2024-09-04 20:44:08,187 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 20:44:13,279 - DEBUG - VM is in ACTIVE state now 2024-09-04 20:44:13,279 - INFO - VM name : ctest-TestBasicPolicy-88662079-99800050 2024-09-04 20:44:13,388 - DEBUG - VM ctest-TestBasicPolicy-88662079-99800050 ID is 2d6e1522-8728-414e-8c05-8944ea1cbaa4 2024-09-04 20:44:13,413 - DEBUG - VM ctest-TestBasicPolicy-88662079-99800050 launched on Node cn-jenkins-deploy-platform-ansible-os-1847-1 2024-09-04 20:44:13,499 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/2d6e1522-8728-414e-8c05-8944ea1cbaa4 2024-09-04 20:44:13,509 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/21ee53e8-c09e-4d7d-8763-f392a38d7331 2024-09-04 20:44:16,753 - 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 1006ms') 2024-09-04 20:44:16,753 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88662079-99800050 failed! 2024-09-04 20:44:16,810 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817 is 201.211.82.193 and allocation pool is NOT set 2024-09-04 20:44:18,867 - 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=9.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.702 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.702/5.037/9.373/4.335 ms') 2024-09-04 20:44:18,867 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88662079-99800050 passed 2024-09-04 20:44:19,018 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:44:19,019 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88662079-99800050, IP 201.211.82.195, Port 22 2024-09-04 20:44:19,185 - DEBUG - VM ctest-TestBasicPolicy-88662079-99800050 is ready for SSH connections 2024-09-04 20:44:19,185 - INFO - Waiting for VM ctest-TestBasicPolicy-88662079-32998862 to be up.. 2024-09-04 20:44:19,276 - DEBUG - VM is in ACTIVE state now 2024-09-04 20:44:19,276 - INFO - VM name : ctest-TestBasicPolicy-88662079-32998862 2024-09-04 20:44:19,362 - DEBUG - VM ctest-TestBasicPolicy-88662079-32998862 ID is 2db1c085-d397-4594-b8a5-31411f84aef0 2024-09-04 20:44:19,362 - DEBUG - VM ctest-TestBasicPolicy-88662079-32998862 launched on Node cn-jenkins-deploy-platform-ansible-os-1847-1 2024-09-04 20:44:19,451 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/2db1c085-d397-4594-b8a5-31411f84aef0 2024-09-04 20:44:19,463 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/eed789c3-ef9a-433a-ad3c-d2cb834724c2 2024-09-04 20:44:20,703 - 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=5.18 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.00 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 = 2.001/3.591/5.182/1.590 ms') 2024-09-04 20:44:20,703 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-88662079-32998862 passed 2024-09-04 20:44:20,858 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:44:20,859 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88662079-32998862, IP 136.118.149.67, Port 22 2024-09-04 20:44:20,914 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-04 20:44:21,023 - DEBUG - VM ctest-TestBasicPolicy-88662079-32998862 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-04 20:44:26,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:44:26,024 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88662079-32998862, IP 136.118.149.67, Port 22 2024-09-04 20:44:26,178 - DEBUG - VM ctest-TestBasicPolicy-88662079-32998862 is ready for SSH connections 2024-09-04 20:44:26,178 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:44:26,179 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 136.118.149.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-09-04 20:44:26,179 - DEBUG - ping -s 56 -c 3 -W 1 136.118.149.67 2024-09-04 20:44:30,195 - DEBUG - PING 136.118.149.67 (136.118.149.67): 56 data bytes 64 bytes from 136.118.149.67: seq=0 ttl=63 time=3.993 ms 64 bytes from 136.118.149.67: seq=1 ttl=63 time=1.138 ms 64 bytes from 136.118.149.67: seq=2 ttl=63 time=0.914 ms --- 136.118.149.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.914/2.015/3.993 ms 2024-09-04 20:44:30,195 - INFO - Ping to IP 136.118.149.67 from VM ctest-TestBasicPolicy-88662079-99800050 passed 2024-09-04 20:44:30,374 - DEBUG - Policy Update Response {"network-policy": {"uuid": "206648aa-6b3e-4e93-90b4-fac1678f29d2", "href": "http://10.0.0.48:8082/network-policy/206648aa-6b3e-4e93-90b4-fac1678f29d2"}} 2024-09-04 20:44:30,374 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 20:44:30,375 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 136.118.149.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-09-04 20:44:30,375 - DEBUG - ping -s 56 -c 3 -W 1 136.118.149.67 2024-09-04 20:44:33,587 - DEBUG - PING 136.118.149.67 (136.118.149.67): 56 data bytes 64 bytes from 136.118.149.67: seq=0 ttl=63 time=1.561 ms --- 136.118.149.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.561/1.561/1.561 ms 2024-09-04 20:44:33,587 - WARNING - Ping to IP 136.118.149.67 from VM ctest-TestBasicPolicy-88662079-99800050 failed 2024-09-04 20:44:33,587 - INFO - Deleting VM ctest-TestBasicPolicy-88662079-32998862 2024-09-04 20:44:33,659 - INFO - Deleting VM ctest-TestBasicPolicy-88662079-99800050 2024-09-04 20:44:34,079 - INFO - Deleted policy ctest-policy-allow-all-61775017 2024-09-04 20:44:34,079 - INFO - Deleting VN ctest-vn-62082890 2024-09-04 20:44:34,132 - DEBUG - VN d868f6ce-820b-40e9-8e45-de76e5f6df0c still in use: Unable to complete operation on network d868f6ce-820b-40e9-8e45-de76e5f6df0c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a4a36a70-696c-4ba0-9646-92d332d86057'] 2024-09-04 20:44:34,132 - WARNING - Deleting VN ctest-vn-62082890 failed..Will retry 2024-09-04 20:44:36,243 - DEBUG - Response for deleting network () 2024-09-04 20:44:36,243 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88 2024-09-04 20:44:36,251 - DEBUG - Response Code: 404 2024-09-04 20:44:36,251 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-04 20:44:36,263 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586 2024-09-04 20:44:36,279 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6 2024-09-04 20:44:36,349 - INFO - Validated that VN ctest-vn-62082890 is not found in API Server 2024-09-04 20:44:36,361 - DEBUG - VN ctest-vn-62082890 is not present in Agent 10.0.0.48 2024-09-04 20:44:36,361 - INFO - Validated that VN ctest-vn-62082890 is not in any agent 2024-09-04 20:44:36,378 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62082890 info 2024-09-04 20:44:36,379 - INFO - Deleting VN ctest-vn-57162817 2024-09-04 20:44:36,492 - DEBUG - Response for deleting network () 2024-09-04 20:44:36,492 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac 2024-09-04 20:44:36,497 - DEBUG - Response Code: 404 2024-09-04 20:44:36,498 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2024-09-04 20:44:36,510 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586 2024-09-04 20:44:36,565 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6 2024-09-04 20:44:36,639 - INFO - Validated that VN ctest-vn-57162817 is not found in API Server 2024-09-04 20:44:36,653 - DEBUG - VN ctest-vn-57162817 is not present in Agent 10.0.0.48 2024-09-04 20:44:36,653 - INFO - Validated that VN ctest-vn-57162817 is not in any agent 2024-09-04 20:44:36,672 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57162817 info 2024-09-04 20:44:36,929 - DEBUG - No XMPP flaps were noticed during the test 2024-09-04 20:44:36,929 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-09-04 20:44:36,929 - INFO - -------------------------------------------------------------------------------- 2024-09-04 20:44:37,618 - INFO - Deleted project: ctest-TestBasicPolicy-88662079, ID : f2d9c589-f44e-4922-8321-f826bb5985a6