2024-10-17 02:35:48,413 - INFO - Domain Default found not creating 2024-10-17 02:35:48,611 - INFO - Project ctest-TestBasicPolicy-58502622 not found, creating it 2024-10-17 02:35:49,130 - INFO - Created Project:ctest-TestBasicPolicy-58502622, ID : 948f9b17-4091-496d-8674-26cc811afc47 2024-10-17 02:35:50,984 - INFO - ================================================================================ 2024-10-17 02:35:50,985 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-17 02:35:50,985 - 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-10-17 02:35:51,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2024-10-17 02:35:51,245 - INFO - Initial checks done. Running the testcase now 2024-10-17 02:35:51,245 - INFO - 2024-10-17 02:35:51,902 - DEBUG - Response for create_network : {'network': {'id': '4ab60242-e326-4364-9d1e-af342c347d8b', 'name': 'ctest-vn-57754955', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-57754955'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:35:52,187 - DEBUG - Response for create_subnet : {'subnet': {'id': '043ee7bf-a8fc-498d-adf1-d3be6b7e1240', 'name': '', 'tenant_id': '948f9b174091496d867426cc811afc47', 'network_id': '4ab60242-e326-4364-9d1e-af342c347d8b', 'ip_version': 4, 'cidr': '202.204.44.192/26', 'allocation_pools': [{'start': '202.204.44.194', 'end': '202.204.44.254'}], 'gateway_ip': '202.204.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.204.44.194', 'tags': [], 'project_id': '948f9b174091496d867426cc811afc47'}} 2024-10-17 02:35:52,211 - INFO - Created VN ctest-vn-57754955 2024-10-17 02:35:52,278 - DEBUG - VN ctest-vn-57754955 UUID is 4ab60242-e326-4364-9d1e-af342c347d8b 2024-10-17 02:35:52,633 - DEBUG - Response for create_network : {'network': {'id': 'c303610b-7c2b-4941-bca3-c754c62d7855', 'name': 'ctest-vn-42338996', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-42338996'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:35:52,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f462760-f80f-48aa-a96c-4e0229258097', 'name': '', 'tenant_id': '948f9b174091496d867426cc811afc47', 'network_id': 'c303610b-7c2b-4941-bca3-c754c62d7855', 'ip_version': 4, 'cidr': '103.247.231.128/26', 'allocation_pools': [{'start': '103.247.231.130', 'end': '103.247.231.190'}], 'gateway_ip': '103.247.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.247.231.130', 'tags': [], 'project_id': '948f9b174091496d867426cc811afc47'}} 2024-10-17 02:35:52,837 - INFO - Created VN ctest-vn-42338996 2024-10-17 02:35:52,906 - DEBUG - VN ctest-vn-42338996 UUID is c303610b-7c2b-4941-bca3-c754c62d7855 2024-10-17 02:35:53,039 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955, 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-58502622:ctest-vn-42338996, 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-10-17 02:35:53,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ab60242-e326-4364-9d1e-af342c347d8b', 'name': 'ctest-vn-57754955', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['043ee7bf-a8fc-498d-adf1-d3be6b7e1240'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-57754955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133']], 'subnet_ipam': [{'subnet_cidr': '202.204.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:35:53,871 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c303610b-7c2b-4941-bca3-c754c62d7855', 'name': 'ctest-vn-42338996', 'tenant_id': '948f9b174091496d867426cc811afc47', 'project_id': '948f9b174091496d867426cc811afc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f462760-f80f-48aa-a96c-4e0229258097'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-vn-42338996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133']], 'subnet_ipam': [{'subnet_cidr': '103.247.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:35:54,074 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-17 02:35:54,413 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-17 02:35:54,449 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a 2024-10-17 02:35:54,465 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47 2024-10-17 02:35:54,550 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b 2024-10-17 02:35:54,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b 2024-10-17 02:35:54,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607 2024-10-17 02:35:54,596 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607 2024-10-17 02:35:54,606 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e6fd7f9e-b30b-4c35-a757-5f18d89d13be 2024-10-17 02:35:54,615 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 02:35:54,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b 2024-10-17 02:35:54,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607 2024-10-17 02:35:54,652 - INFO - Verified VN network id 9 for VN 4ab60242-e326-4364-9d1e-af342c347d8b 2024-10-17 02:35:54,652 - INFO - Verifications in API Server for VN ctest-vn-57754955 passed 2024-10-17 02:35:54,653 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b 2024-10-17 02:35:54,668 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607 2024-10-17 02:35:54,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607 2024-10-17 02:35:54,688 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e6fd7f9e-b30b-4c35-a757-5f18d89d13be 2024-10-17 02:35:54,704 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58502622', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5383492890870039396', 'uuid-lslong': '11321679151870803339'}, 'enable': 'true', 'created': '2024-10-17T02:35:51', 'last-modified': '2024-10-17T02:35:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.127254'} 2024-10-17 02:35:54,711 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 02:35:54,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57754955 passed 2024-10-17 02:35:54,711 - DEBUG - ====Verifying policy data for ctest-vn-57754955 in API_Server ====== 2024-10-17 02:35:54,711 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-17 02:35:54,719 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a 2024-10-17 02:35:54,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47 2024-10-17 02:35:54,823 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4ab60242-e326-4364-9d1e-af342c347d8b 2024-10-17 02:35:54,842 - DEBUG - ==>Verifying data for policy with id: 3f32ee7b-6898-4fbe-9d45-9c41c92e4030, fqn: ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133'] 2024-10-17 02:35:54,842 - INFO - VN ctest-vn-57754955 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 02:35:54,842 - DEBUG - Verifying the vn in opserver 2024-10-17 02:35:54,842 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955 virtual network link through opserver 10.0.0.38 2024-10-17 02:35:54,843 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-10-17 02:35:55,183 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-10-17 02:35:55,255 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955?flat'} 2024-10-17 02:35:55,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955 is found in opserver 2024-10-17 02:35:55,268 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 02:35:55,274 - DEBUG - VRF ids for VN ctest-vn-57754955: {} 2024-10-17 02:35:55,274 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-17 02:35:55,281 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a 2024-10-17 02:35:55,296 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47 2024-10-17 02:35:55,406 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855 2024-10-17 02:35:55,429 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855 2024-10-17 02:35:55,445 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d 2024-10-17 02:35:55,456 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d 2024-10-17 02:35:55,466 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22cbca54-af45-49a7-8a69-2eb80b680ef2 2024-10-17 02:35:55,474 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 02:35:55,474 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855 2024-10-17 02:35:55,492 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d 2024-10-17 02:35:55,520 - INFO - Verified VN network id 10 for VN c303610b-7c2b-4941-bca3-c754c62d7855 2024-10-17 02:35:55,520 - INFO - Verifications in API Server for VN ctest-vn-42338996 passed 2024-10-17 02:35:55,520 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855 2024-10-17 02:35:55,539 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d 2024-10-17 02:35:55,550 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d 2024-10-17 02:35:55,561 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22cbca54-af45-49a7-8a69-2eb80b680ef2 2024-10-17 02:35:55,577 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58502622', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14052181964281825601', 'uuid-lslong': '13592927267250337877'}, 'enable': 'true', 'created': '2024-10-17T02:35:52', 'last-modified': '2024-10-17T02:35:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.731941'} 2024-10-17 02:35:55,584 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 02:35:55,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42338996 passed 2024-10-17 02:35:55,585 - DEBUG - ====Verifying policy data for ctest-vn-42338996 in API_Server ====== 2024-10-17 02:35:55,585 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-17 02:35:55,592 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a 2024-10-17 02:35:55,609 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47 2024-10-17 02:35:55,694 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c303610b-7c2b-4941-bca3-c754c62d7855 2024-10-17 02:35:55,709 - DEBUG - ==>Verifying data for policy with id: 3f32ee7b-6898-4fbe-9d45-9c41c92e4030, fqn: ['default-domain', 'ctest-TestBasicPolicy-58502622', 'ctest-policy-allow-all-88739133'] 2024-10-17 02:35:55,709 - INFO - VN ctest-vn-42338996 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 02:35:55,709 - DEBUG - Verifying the vn in opserver 2024-10-17 02:35:55,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996 virtual network link through opserver 10.0.0.38 2024-10-17 02:35:55,709 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-10-17 02:35:55,722 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996?flat'} 2024-10-17 02:35:55,722 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-42338996 is found in opserver 2024-10-17 02:35:55,733 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 02:35:55,739 - DEBUG - VRF ids for VN ctest-vn-42338996: {} 2024-10-17 02:35:55,800 - DEBUG - Services list from nova: [, , ] 2024-10-17 02:35:56,962 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2106-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2106-1) 2024-10-17 02:35:58,737 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2106-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2106-1) 2024-10-17 02:35:58,737 - INFO - Waiting for VM ctest-TestBasicPolicy-58502622-90190556 to be up.. 2024-10-17 02:35:58,825 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-17 02:36:03,930 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:36:03,931 - INFO - VM name : ctest-TestBasicPolicy-58502622-90190556 2024-10-17 02:36:04,046 - DEBUG - VM ctest-TestBasicPolicy-58502622-90190556 ID is 7b0f7ef5-e272-4a32-a33b-647c057a596b 2024-10-17 02:36:04,068 - DEBUG - VM ctest-TestBasicPolicy-58502622-90190556 launched on Node cn-jenkins-deploy-platform-ansible-os-2106-1. 2024-10-17 02:36:04,172 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/7b0f7ef5-e272-4a32-a33b-647c057a596b 2024-10-17 02:36:04,187 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/f3ba2256-e51c-48e7-9143-191aa01a41f9 2024-10-17 02:36:07,485 - 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 1026ms') 2024-10-17 02:36:07,486 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58502622-90190556 failed! 2024-10-17 02:36:07,546 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58502622:ctest-vn-57754955 is 202.204.44.193 and allocation pool is NOT set 2024-10-17 02:36:09,618 - 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.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.598 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.598/2.141/3.685/1.543 ms') 2024-10-17 02:36:09,618 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58502622-90190556 passed 2024-10-17 02:36:09,782 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:36:09,783 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58502622-90190556, IP 202.204.44.195, Port 22 2024-10-17 02:36:09,938 - DEBUG - VM ctest-TestBasicPolicy-58502622-90190556 is ready for SSH connections 2024-10-17 02:36:09,938 - INFO - Waiting for VM ctest-TestBasicPolicy-58502622-49730124 to be up.. 2024-10-17 02:36:10,032 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:36:10,033 - INFO - VM name : ctest-TestBasicPolicy-58502622-49730124 2024-10-17 02:36:10,124 - DEBUG - VM ctest-TestBasicPolicy-58502622-49730124 ID is 72973e73-ca6d-495d-94c3-8473a4c769bd 2024-10-17 02:36:10,124 - DEBUG - VM ctest-TestBasicPolicy-58502622-49730124 launched on Node cn-jenkins-deploy-platform-ansible-os-2106-1. 2024-10-17 02:36:10,217 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/72973e73-ca6d-495d-94c3-8473a4c769bd 2024-10-17 02:36:10,231 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7abfd034-201c-4c3e-85f5-99df21141fd0 2024-10-17 02:36:11,497 - 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.45 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.728 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.728/2.088/3.448/1.360 ms') 2024-10-17 02:36:11,497 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58502622-49730124 passed 2024-10-17 02:36:11,662 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:36:11,663 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58502622-49730124, IP 103.247.231.131, Port 22 2024-10-17 02:36:11,822 - DEBUG - VM ctest-TestBasicPolicy-58502622-49730124 is ready for SSH connections 2024-10-17 02:36:11,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:36:11,822 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.247.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-10-17 02:36:11,822 - DEBUG - ping -s 56 -c 3 -W 1 103.247.231.131 2024-10-17 02:36:15,950 - DEBUG - PING 103.247.231.131 (103.247.231.131): 56 data bytes 64 bytes from 103.247.231.131: seq=0 ttl=63 time=4.048 ms 64 bytes from 103.247.231.131: seq=1 ttl=63 time=0.817 ms 64 bytes from 103.247.231.131: seq=2 ttl=63 time=0.964 ms --- 103.247.231.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.817/1.943/4.048 ms 2024-10-17 02:36:15,950 - INFO - Ping to IP 103.247.231.131 from VM ctest-TestBasicPolicy-58502622-90190556 passed 2024-10-17 02:36:16,166 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3f32ee7b-6898-4fbe-9d45-9c41c92e4030", "href": "http://10.0.0.38:8082/network-policy/3f32ee7b-6898-4fbe-9d45-9c41c92e4030"}} 2024-10-17 02:36:16,166 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:36:16,166 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.247.231.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-10-17 02:36:16,166 - DEBUG - ping -s 56 -c 3 -W 1 103.247.231.131 2024-10-17 02:36:19,403 - DEBUG - PING 103.247.231.131 (103.247.231.131): 56 data bytes --- 103.247.231.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-17 02:36:19,403 - WARNING - Ping to IP 103.247.231.131 from VM ctest-TestBasicPolicy-58502622-90190556 failed 2024-10-17 02:36:19,403 - INFO - Deleting VM ctest-TestBasicPolicy-58502622-49730124 2024-10-17 02:36:19,487 - INFO - Deleting VM ctest-TestBasicPolicy-58502622-90190556 2024-10-17 02:36:19,984 - INFO - Deleted policy ctest-policy-allow-all-88739133 2024-10-17 02:36:19,985 - INFO - Deleting VN ctest-vn-42338996 2024-10-17 02:36:20,030 - DEBUG - VN c303610b-7c2b-4941-bca3-c754c62d7855 still in use: Unable to complete operation on network c303610b-7c2b-4941-bca3-c754c62d7855. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-72e89ec6-f611-4974-ada2-a455acddd30f'] 2024-10-17 02:36:20,030 - WARNING - Deleting VN ctest-vn-42338996 failed..Will retry 2024-10-17 02:36:22,155 - DEBUG - Response for deleting network () 2024-10-17 02:36:22,155 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e819d46b-29c5-48a6-8ba7-8f7467b01e5d 2024-10-17 02:36:22,162 - DEBUG - Response Code: 404 2024-10-17 02:36:22,162 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-17 02:36:22,169 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a 2024-10-17 02:36:22,232 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47 2024-10-17 02:36:22,318 - INFO - Validated that VN ctest-vn-42338996 is not found in API Server 2024-10-17 02:36:22,333 - DEBUG - VN ctest-vn-42338996 is not present in Agent 10.0.0.38 2024-10-17 02:36:22,333 - INFO - Validated that VN ctest-vn-42338996 is not in any agent 2024-10-17 02:36:22,354 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42338996 info 2024-10-17 02:36:22,355 - INFO - Deleting VN ctest-vn-57754955 2024-10-17 02:36:22,484 - DEBUG - Response for deleting network () 2024-10-17 02:36:22,485 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5c2c81-5bd3-48dc-a598-acf503c0e607 2024-10-17 02:36:22,497 - DEBUG - Response Code: 404 2024-10-17 02:36:22,497 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-10-17 02:36:22,505 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4533b9d8-5df3-430d-a3c0-a6c02037285a 2024-10-17 02:36:22,567 - DEBUG - Requesting: http://10.0.0.38:8082/project/948f9b17-4091-496d-8674-26cc811afc47 2024-10-17 02:36:22,662 - INFO - Validated that VN ctest-vn-57754955 is not found in API Server 2024-10-17 02:36:22,679 - DEBUG - VN ctest-vn-57754955 is not present in Agent 10.0.0.38 2024-10-17 02:36:22,679 - INFO - Validated that VN ctest-vn-57754955 is not in any agent 2024-10-17 02:36:22,705 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57754955 info 2024-10-17 02:36:22,977 - DEBUG - No XMPP flaps were noticed during the test 2024-10-17 02:36:22,977 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32] 2024-10-17 02:36:22,977 - INFO - -------------------------------------------------------------------------------- 2024-10-17 02:36:23,764 - INFO - Deleted project: ctest-TestBasicPolicy-58502622, ID : 948f9b17-4091-496d-8674-26cc811afc47