2024-08-29 18:07:06,886 - INFO - Domain Default found not creating 2024-08-29 18:07:07,086 - INFO - Project ctest-TestBasicPolicy-15379491 not found, creating it 2024-08-29 18:07:07,586 - INFO - Created Project:ctest-TestBasicPolicy-15379491, ID : 6a2288c1-811e-41e2-b4d0-6170c5330136 2024-08-29 18:07:09,377 - INFO - ================================================================================ 2024-08-29 18:07:09,377 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 18:07:09,377 - 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-08-29 18:07:09,651 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.10': '0'}} with 2024-08-29 18:07:09,651 - INFO - Initial checks done. Running the testcase now 2024-08-29 18:07:09,651 - INFO - 2024-08-29 18:07:10,551 - DEBUG - Response for create_network : {'network': {'id': '8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8', 'name': 'ctest-vn-09642938', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-09642938'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 18:07:10,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c37538c4-aecd-4846-9bbd-f50508927711', 'name': '', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'network_id': '8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8', 'ip_version': 4, 'cidr': '49.229.6.192/26', 'allocation_pools': [{'start': '49.229.6.194', 'end': '49.229.6.254'}], 'gateway_ip': '49.229.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.229.6.194', 'tags': [], 'project_id': '6a2288c1811e41e2b4d06170c5330136'}} 2024-08-29 18:07:10,770 - INFO - Created VN ctest-vn-09642938 2024-08-29 18:07:10,825 - DEBUG - VN ctest-vn-09642938 UUID is 8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8 2024-08-29 18:07:11,184 - DEBUG - Response for create_network : {'network': {'id': '10764eb0-92d0-4f2d-bc6e-a01920c91087', 'name': 'ctest-vn-00457729', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-00457729'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 18:07:11,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a3cb5d0-ed47-41b4-bd49-880a1deb0c86', 'name': '', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'network_id': '10764eb0-92d0-4f2d-bc6e-a01920c91087', 'ip_version': 4, 'cidr': '16.6.49.128/26', 'allocation_pools': [{'start': '16.6.49.130', 'end': '16.6.49.190'}], 'gateway_ip': '16.6.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.6.49.130', 'tags': [], 'project_id': '6a2288c1811e41e2b4d06170c5330136'}} 2024-08-29 18:07:11,437 - INFO - Created VN ctest-vn-00457729 2024-08-29 18:07:11,492 - DEBUG - VN ctest-vn-00457729 UUID is 10764eb0-92d0-4f2d-bc6e-a01920c91087 2024-08-29 18:07:11,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938, 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-15379491:ctest-vn-00457729, 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-08-29 18:07:11,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8', 'name': 'ctest-vn-09642938', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c37538c4-aecd-4846-9bbd-f50508927711'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-09642938'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912']], 'subnet_ipam': [{'subnet_cidr': '49.229.6.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 18:07:12,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10764eb0-92d0-4f2d-bc6e-a01920c91087', 'name': 'ctest-vn-00457729', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a3cb5d0-ed47-41b4-bd49-880a1deb0c86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-00457729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912']], 'subnet_ipam': [{'subnet_cidr': '16.6.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 18:07:12,401 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-29 18:07:12,719 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-29 18:07:12,757 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b 2024-08-29 18:07:12,772 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136 2024-08-29 18:07:12,851 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8 2024-08-29 18:07:12,862 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8 2024-08-29 18:07:12,871 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376 2024-08-29 18:07:12,879 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376 2024-08-29 18:07:12,887 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/c64bb63a-ff76-4a3c-ac51-d912bdf3451a 2024-08-29 18:07:12,895 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 18:07:12,895 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8 2024-08-29 18:07:12,904 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376 2024-08-29 18:07:12,919 - INFO - Verified VN network id 8 for VN 8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8 2024-08-29 18:07:12,919 - INFO - Verifications in API Server for VN ctest-vn-09642938 passed 2024-08-29 18:07:12,919 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8 2024-08-29 18:07:12,929 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376 2024-08-29 18:07:12,938 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376 2024-08-29 18:07:12,947 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/c64bb63a-ff76-4a3c-ac51-d912bdf3451a 2024-08-29 18:07:12,962 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15379491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9735017711163951272', 'uuid-lslong': '13033817293726589624'}, 'enable': 'true', 'created': '2024-08-29T18:07:10', 'last-modified': '2024-08-29T18:07:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030576'} 2024-08-29 18:07:12,970 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 18:07:12,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09642938 passed 2024-08-29 18:07:12,971 - DEBUG - ====Verifying policy data for ctest-vn-09642938 in API_Server ====== 2024-08-29 18:07:12,971 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-29 18:07:12,978 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b 2024-08-29 18:07:12,995 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136 2024-08-29 18:07:13,072 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8 2024-08-29 18:07:13,083 - DEBUG - ==>Verifying data for policy with id: 7d6858e2-095b-4dd9-80b3-1bec26e7b6d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912'] 2024-08-29 18:07:13,083 - INFO - VN ctest-vn-09642938 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 18:07:13,083 - DEBUG - Verifying the vn in opserver 2024-08-29 18:07:13,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938 virtual network link through opserver 10.0.0.24 2024-08-29 18:07:13,083 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-29 18:07:13,401 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-29 18:07:13,485 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938?flat'} 2024-08-29 18:07:13,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938 is found in opserver 2024-08-29 18:07:13,498 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 18:07:13,505 - DEBUG - VRF ids for VN ctest-vn-09642938: {} 2024-08-29 18:07:13,505 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-29 18:07:13,513 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b 2024-08-29 18:07:13,531 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136 2024-08-29 18:07:13,610 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087 2024-08-29 18:07:13,623 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087 2024-08-29 18:07:13,633 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2 2024-08-29 18:07:13,641 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2 2024-08-29 18:07:13,649 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de3e0bcf-3faa-4f18-b529-49e6f54a76d8 2024-08-29 18:07:13,656 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 18:07:13,656 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087 2024-08-29 18:07:13,667 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2 2024-08-29 18:07:13,683 - INFO - Verified VN network id 9 for VN 10764eb0-92d0-4f2d-bc6e-a01920c91087 2024-08-29 18:07:13,683 - INFO - Verifications in API Server for VN ctest-vn-00457729 passed 2024-08-29 18:07:13,683 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087 2024-08-29 18:07:13,695 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2 2024-08-29 18:07:13,704 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2 2024-08-29 18:07:13,715 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de3e0bcf-3faa-4f18-b529-49e6f54a76d8 2024-08-29 18:07:13,734 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15379491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1186222072143040301', 'uuid-lslong': '13577965956353298567'}, 'enable': 'true', 'created': '2024-08-29T18:07:11', 'last-modified': '2024-08-29T18:07:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528191'} 2024-08-29 18:07:13,743 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 18:07:13,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00457729 passed 2024-08-29 18:07:13,744 - DEBUG - ====Verifying policy data for ctest-vn-00457729 in API_Server ====== 2024-08-29 18:07:13,744 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-29 18:07:13,756 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b 2024-08-29 18:07:13,780 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136 2024-08-29 18:07:13,860 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087 2024-08-29 18:07:13,871 - DEBUG - ==>Verifying data for policy with id: 7d6858e2-095b-4dd9-80b3-1bec26e7b6d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912'] 2024-08-29 18:07:13,871 - INFO - VN ctest-vn-00457729 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 18:07:13,871 - DEBUG - Verifying the vn in opserver 2024-08-29 18:07:13,871 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729 virtual network link through opserver 10.0.0.24 2024-08-29 18:07:13,871 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-29 18:07:13,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729?flat'} 2024-08-29 18:07:13,889 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729 is found in opserver 2024-08-29 18:07:13,906 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 18:07:13,915 - DEBUG - VRF ids for VN ctest-vn-00457729: {} 2024-08-29 18:07:14,019 - DEBUG - Services list from nova: [, , ] 2024-08-29 18:07:15,315 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1816-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1816-1) 2024-08-29 18:07:16,768 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1816-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1816-1) 2024-08-29 18:07:16,768 - INFO - Waiting for VM ctest-TestBasicPolicy-15379491-05383106 to be up.. 2024-08-29 18:07:16,871 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 18:07:21,979 - DEBUG - VM is in ACTIVE state now 2024-08-29 18:07:21,980 - INFO - VM name : ctest-TestBasicPolicy-15379491-05383106 2024-08-29 18:07:22,075 - DEBUG - VM ctest-TestBasicPolicy-15379491-05383106 ID is 7ec36a0e-1f95-4be5-84da-8f06ee75f27d 2024-08-29 18:07:22,102 - DEBUG - VM ctest-TestBasicPolicy-15379491-05383106 launched on Node cn-jenkins-deploy-platform-ansible-os-1816-1 2024-08-29 18:07:22,213 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/7ec36a0e-1f95-4be5-84da-8f06ee75f27d 2024-08-29 18:07:22,227 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/e2fa88d1-4108-4d5d-9d18-d34573b05a30 2024-08-29 18:07:25,531 - 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 1028ms') 2024-08-29 18:07:25,531 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15379491-05383106 failed! 2024-08-29 18:07:25,588 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938 is 49.229.6.193 and allocation pool is NOT set 2024-08-29 18:07:27,654 - 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.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.495 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.495/5.808/11.121/5.313 ms') 2024-08-29 18:07:27,654 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15379491-05383106 passed 2024-08-29 18:07:27,809 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:07:27,809 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15379491-05383106, IP 49.229.6.195, Port 22 2024-08-29 18:07:27,975 - DEBUG - VM ctest-TestBasicPolicy-15379491-05383106 is ready for SSH connections 2024-08-29 18:07:27,975 - INFO - Waiting for VM ctest-TestBasicPolicy-15379491-94436564 to be up.. 2024-08-29 18:07:28,088 - DEBUG - VM is in ACTIVE state now 2024-08-29 18:07:28,088 - INFO - VM name : ctest-TestBasicPolicy-15379491-94436564 2024-08-29 18:07:28,196 - DEBUG - VM ctest-TestBasicPolicy-15379491-94436564 ID is 6056f3d9-a56f-4dcf-aa7d-64f7b9bc4349 2024-08-29 18:07:28,196 - DEBUG - VM ctest-TestBasicPolicy-15379491-94436564 launched on Node cn-jenkins-deploy-platform-ansible-os-1816-1 2024-08-29 18:07:28,299 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/6056f3d9-a56f-4dcf-aa7d-64f7b9bc4349 2024-08-29 18:07:28,314 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/fb366152-5cc7-450f-a78c-e93cdeb1c778 2024-08-29 18:07:29,583 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.99 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 = 1.993/2.886/3.779/0.893 ms') 2024-08-29 18:07:29,583 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15379491-94436564 passed 2024-08-29 18:07:29,737 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:07:29,737 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15379491-94436564, IP 16.6.49.131, Port 22 2024-08-29 18:07:29,803 - 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-08-29 18:07:29,916 - DEBUG - VM ctest-TestBasicPolicy-15379491-94436564 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-29 18:07:34,917 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:07:34,917 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15379491-94436564, IP 16.6.49.131, Port 22 2024-08-29 18:07:35,078 - DEBUG - VM ctest-TestBasicPolicy-15379491-94436564 is ready for SSH connections 2024-08-29 18:07:35,078 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:07:35,078 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.6.49.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-29 18:07:35,078 - DEBUG - ping -s 56 -c 3 -W 1 16.6.49.131 2024-08-29 18:07:39,258 - DEBUG - PING 16.6.49.131 (16.6.49.131): 56 data bytes 64 bytes from 16.6.49.131: seq=0 ttl=63 time=4.753 ms 64 bytes from 16.6.49.131: seq=1 ttl=63 time=1.048 ms 64 bytes from 16.6.49.131: seq=2 ttl=63 time=1.357 ms --- 16.6.49.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.048/2.386/4.753 ms 2024-08-29 18:07:39,258 - INFO - Ping to IP 16.6.49.131 from VM ctest-TestBasicPolicy-15379491-05383106 passed 2024-08-29 18:07:39,452 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7d6858e2-095b-4dd9-80b3-1bec26e7b6d6", "href": "http://10.0.0.24:8082/network-policy/7d6858e2-095b-4dd9-80b3-1bec26e7b6d6"}} 2024-08-29 18:07:39,453 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 18:07:39,453 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.6.49.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-29 18:07:39,453 - DEBUG - ping -s 56 -c 3 -W 1 16.6.49.131 2024-08-29 18:07:42,745 - DEBUG - PING 16.6.49.131 (16.6.49.131): 56 data bytes --- 16.6.49.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-29 18:07:42,745 - WARNING - Ping to IP 16.6.49.131 from VM ctest-TestBasicPolicy-15379491-05383106 failed 2024-08-29 18:07:42,745 - INFO - Deleting VM ctest-TestBasicPolicy-15379491-94436564 2024-08-29 18:07:42,835 - INFO - Deleting VM ctest-TestBasicPolicy-15379491-05383106 2024-08-29 18:07:43,335 - INFO - Deleted policy ctest-policy-allow-all-10299912 2024-08-29 18:07:43,336 - INFO - Deleting VN ctest-vn-00457729 2024-08-29 18:07:43,389 - DEBUG - VN 10764eb0-92d0-4f2d-bc6e-a01920c91087 still in use: Unable to complete operation on network 10764eb0-92d0-4f2d-bc6e-a01920c91087. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-519fbb00-8c37-4d35-ae02-d029cc825110'] 2024-08-29 18:07:43,389 - WARNING - Deleting VN ctest-vn-00457729 failed..Will retry 2024-08-29 18:07:45,535 - DEBUG - Response for deleting network () 2024-08-29 18:07:45,535 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2 2024-08-29 18:07:45,545 - DEBUG - Response Code: 404 2024-08-29 18:07:45,546 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-29 18:07:45,553 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b 2024-08-29 18:07:45,614 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136 2024-08-29 18:07:45,694 - INFO - Validated that VN ctest-vn-00457729 is not found in API Server 2024-08-29 18:07:45,708 - DEBUG - VN ctest-vn-00457729 is not present in Agent 10.0.0.24 2024-08-29 18:07:45,708 - INFO - Validated that VN ctest-vn-00457729 is not in any agent 2024-08-29 18:07:45,732 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-00457729 info 2024-08-29 18:07:45,732 - INFO - Deleting VN ctest-vn-09642938 2024-08-29 18:07:45,869 - DEBUG - Response for deleting network () 2024-08-29 18:07:45,869 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376 2024-08-29 18:07:45,877 - DEBUG - Response Code: 404 2024-08-29 18:07:45,877 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-29 18:07:45,888 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b 2024-08-29 18:07:45,946 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136 2024-08-29 18:07:46,019 - INFO - Validated that VN ctest-vn-09642938 is not found in API Server 2024-08-29 18:07:46,031 - DEBUG - VN ctest-vn-09642938 is not present in Agent 10.0.0.24 2024-08-29 18:07:46,031 - INFO - Validated that VN ctest-vn-09642938 is not in any agent 2024-08-29 18:07:46,049 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09642938 info 2024-08-29 18:07:46,308 - DEBUG - No XMPP flaps were noticed during the test
2024-08-29 18:07:46,308 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-08-29 18:07:46,308 - INFO - -------------------------------------------------------------------------------- 2024-08-29 18:07:47,429 - INFO - Deleted project: ctest-TestBasicPolicy-15379491, ID : 6a2288c1-811e-41e2-b4d0-6170c5330136