2024-11-07 11:53:46,332 - INFO - Domain Default found not creating 2024-11-07 11:53:46,516 - INFO - Project ctest-TestBasicPolicy-96744063 not found, creating it 2024-11-07 11:53:47,043 - INFO - Created Project:ctest-TestBasicPolicy-96744063, ID : 96a619d7-85f7-4a6a-9c49-0e5173e1d9d0 2024-11-07 11:53:48,671 - INFO - ================================================================================ 2024-11-07 11:53:48,671 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 11:53:48,671 - 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-11-07 11:53:48,935 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.8': '0'}} with 2024-11-07 11:53:48,935 - INFO - Initial checks done. Running the testcase now 2024-11-07 11:53:48,935 - INFO - 2024-11-07 11:53:49,541 - DEBUG - Response for create_network : {'network': {'id': '6e3d1fbd-9f50-432e-bcd6-6bd827d727fc', 'name': 'ctest-vn-03241798', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-03241798'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 11:53:49,791 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3752338-373d-4326-986f-ed694ea8b7d0', 'name': '', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'network_id': '6e3d1fbd-9f50-432e-bcd6-6bd827d727fc', 'ip_version': 4, 'cidr': '168.104.146.0/26', 'allocation_pools': [{'start': '168.104.146.2', 'end': '168.104.146.62'}], 'gateway_ip': '168.104.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.104.146.2', 'tags': [], 'project_id': '96a619d785f74a6a9c490e5173e1d9d0'}} 2024-11-07 11:53:49,817 - INFO - Created VN ctest-vn-03241798 2024-11-07 11:53:49,880 - DEBUG - VN ctest-vn-03241798 UUID is 6e3d1fbd-9f50-432e-bcd6-6bd827d727fc 2024-11-07 11:53:50,258 - DEBUG - Response for create_network : {'network': {'id': '1da21105-580e-4cbe-af38-a10de76f84ed', 'name': 'ctest-vn-33486561', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-33486561'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 11:53:50,481 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35837c4-741b-4bfe-879e-daba93014c13', 'name': '', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'network_id': '1da21105-580e-4cbe-af38-a10de76f84ed', 'ip_version': 4, 'cidr': '177.224.147.0/26', 'allocation_pools': [{'start': '177.224.147.2', 'end': '177.224.147.62'}], 'gateway_ip': '177.224.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.224.147.2', 'tags': [], 'project_id': '96a619d785f74a6a9c490e5173e1d9d0'}} 2024-11-07 11:53:50,503 - INFO - Created VN ctest-vn-33486561 2024-11-07 11:53:50,564 - DEBUG - VN ctest-vn-33486561 UUID is 1da21105-580e-4cbe-af38-a10de76f84ed 2024-11-07 11:53:50,694 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798, 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-96744063:ctest-vn-33486561, 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-11-07 11:53:51,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e3d1fbd-9f50-432e-bcd6-6bd827d727fc', 'name': 'ctest-vn-03241798', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3752338-373d-4326-986f-ed694ea8b7d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-03241798'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570']], 'subnet_ipam': [{'subnet_cidr': '168.104.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 11:53:51,334 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1da21105-580e-4cbe-af38-a10de76f84ed', 'name': 'ctest-vn-33486561', 'tenant_id': '96a619d785f74a6a9c490e5173e1d9d0', 'project_id': '96a619d785f74a6a9c490e5173e1d9d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b35837c4-741b-4bfe-879e-daba93014c13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-vn-33486561'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570']], 'subnet_ipam': [{'subnet_cidr': '177.224.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 11:53:51,500 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-07 11:53:51,811 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-07 11:53:51,847 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7 2024-11-07 11:53:51,864 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0 2024-11-07 11:53:51,962 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc 2024-11-07 11:53:51,979 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc 2024-11-07 11:53:51,995 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6 2024-11-07 11:53:52,004 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6 2024-11-07 11:53:52,014 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/593543c4-824e-481f-ac9a-ee1420abc8d1 2024-11-07 11:53:52,023 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 11:53:52,023 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc 2024-11-07 11:53:52,040 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6 2024-11-07 11:53:52,063 - INFO - Verified VN network id 8 for VN 6e3d1fbd-9f50-432e-bcd6-6bd827d727fc 2024-11-07 11:53:52,063 - INFO - Verifications in API Server for VN ctest-vn-03241798 passed 2024-11-07 11:53:52,063 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc 2024-11-07 11:53:52,079 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6 2024-11-07 11:53:52,088 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6 2024-11-07 11:53:52,099 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/593543c4-824e-481f-ac9a-ee1420abc8d1 2024-11-07 11:53:52,113 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96744063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7943540217033540398', 'uuid-lslong': '13607181900272052220'}, 'enable': 'true', 'created': '2024-11-07T11:53:49', 'last-modified': '2024-11-07T11:53:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.123069'} 2024-11-07 11:53:52,120 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 11:53:52,120 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03241798 passed 2024-11-07 11:53:52,121 - DEBUG - ====Verifying policy data for ctest-vn-03241798 in API_Server ====== 2024-11-07 11:53:52,121 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-07 11:53:52,127 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7 2024-11-07 11:53:52,142 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0 2024-11-07 11:53:52,228 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/6e3d1fbd-9f50-432e-bcd6-6bd827d727fc 2024-11-07 11:53:52,246 - DEBUG - ==>Verifying data for policy with id: 83367fd2-f07e-4add-8236-25d5f3786931, fqn: ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570'] 2024-11-07 11:53:52,246 - INFO - VN ctest-vn-03241798 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 11:53:52,246 - DEBUG - Verifying the vn in opserver 2024-11-07 11:53:52,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798 virtual network link through opserver 10.0.0.28 2024-11-07 11:53:52,247 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-11-07 11:53:52,552 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-11-07 11:53:52,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798?flat'} 2024-11-07 11:53:52,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798 is found in opserver 2024-11-07 11:53:52,634 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 11:53:52,641 - DEBUG - VRF ids for VN ctest-vn-03241798: {} 2024-11-07 11:53:52,641 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-07 11:53:52,648 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7 2024-11-07 11:53:52,663 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0 2024-11-07 11:53:52,749 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed 2024-11-07 11:53:52,769 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed 2024-11-07 11:53:52,784 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac 2024-11-07 11:53:52,793 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac 2024-11-07 11:53:52,802 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/61623685-7ad1-4098-80f7-e236d8e6c304 2024-11-07 11:53:52,810 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 11:53:52,810 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed 2024-11-07 11:53:52,825 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac 2024-11-07 11:53:52,851 - INFO - Verified VN network id 9 for VN 1da21105-580e-4cbe-af38-a10de76f84ed 2024-11-07 11:53:52,851 - INFO - Verifications in API Server for VN ctest-vn-33486561 passed 2024-11-07 11:53:52,851 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed 2024-11-07 11:53:52,867 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac 2024-11-07 11:53:52,878 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac 2024-11-07 11:53:52,888 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/61623685-7ad1-4098-80f7-e236d8e6c304 2024-11-07 11:53:52,904 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96744063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2135287887976877246', 'uuid-lslong': '12626018636422677741'}, 'enable': 'true', 'created': '2024-11-07T11:53:50', 'last-modified': '2024-11-07T11:53:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.647837'} 2024-11-07 11:53:52,911 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 11:53:52,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33486561 passed 2024-11-07 11:53:52,911 - DEBUG - ====Verifying policy data for ctest-vn-33486561 in API_Server ====== 2024-11-07 11:53:52,912 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-07 11:53:52,919 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7 2024-11-07 11:53:52,933 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0 2024-11-07 11:53:53,017 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/1da21105-580e-4cbe-af38-a10de76f84ed 2024-11-07 11:53:53,033 - DEBUG - ==>Verifying data for policy with id: 83367fd2-f07e-4add-8236-25d5f3786931, fqn: ['default-domain', 'ctest-TestBasicPolicy-96744063', 'ctest-policy-allow-all-38313570'] 2024-11-07 11:53:53,033 - INFO - VN ctest-vn-33486561 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 11:53:53,033 - DEBUG - Verifying the vn in opserver 2024-11-07 11:53:53,033 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561 virtual network link through opserver 10.0.0.28 2024-11-07 11:53:53,033 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-11-07 11:53:53,046 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561?flat'} 2024-11-07 11:53:53,046 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-33486561 is found in opserver 2024-11-07 11:53:53,058 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 11:53:53,064 - DEBUG - VRF ids for VN ctest-vn-33486561: {} 2024-11-07 11:53:53,127 - DEBUG - Services list from nova: [, , ] 2024-11-07 11:53:54,330 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2217-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2217-1) 2024-11-07 11:53:55,549 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2217-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2217-1) 2024-11-07 11:53:55,549 - INFO - Waiting for VM ctest-TestBasicPolicy-96744063-53856524 to be up.. 2024-11-07 11:53:55,646 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 11:54:00,753 - DEBUG - VM is in ACTIVE state now 2024-11-07 11:54:00,754 - INFO - VM name : ctest-TestBasicPolicy-96744063-53856524 2024-11-07 11:54:00,853 - DEBUG - VM ctest-TestBasicPolicy-96744063-53856524 ID is e1db1e81-75bd-4641-92ed-361e8bf49cae 2024-11-07 11:54:00,875 - DEBUG - VM ctest-TestBasicPolicy-96744063-53856524 launched on Node cn-jenkins-deploy-platform-ansible-os-2217-1 2024-11-07 11:54:00,980 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e1db1e81-75bd-4641-92ed-361e8bf49cae 2024-11-07 11:54:00,993 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/dc143384-ca29-4dc0-86b5-ab87cb8a9e02 2024-11-07 11:54:04,277 - 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-11-07 11:54:04,277 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96744063-53856524 failed! 2024-11-07 11:54:04,344 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-96744063:ctest-vn-03241798 is 168.104.146.1 and allocation pool is NOT set 2024-11-07 11:54:06,403 - 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.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.64 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 = 2.640/5.819/8.998/3.179 ms') 2024-11-07 11:54:06,404 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96744063-53856524 passed 2024-11-07 11:54:06,568 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 11:54:06,568 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96744063-53856524, IP 168.104.146.3, Port 22 2024-11-07 11:54:06,757 - DEBUG - VM ctest-TestBasicPolicy-96744063-53856524 is ready for SSH connections 2024-11-07 11:54:06,757 - INFO - Waiting for VM ctest-TestBasicPolicy-96744063-75499838 to be up.. 2024-11-07 11:54:06,842 - DEBUG - VM is in ACTIVE state now 2024-11-07 11:54:06,842 - INFO - VM name : ctest-TestBasicPolicy-96744063-75499838 2024-11-07 11:54:06,934 - DEBUG - VM ctest-TestBasicPolicy-96744063-75499838 ID is 8ad4b43f-d35f-4425-a34f-fabed630bdcd 2024-11-07 11:54:06,934 - DEBUG - VM ctest-TestBasicPolicy-96744063-75499838 launched on Node cn-jenkins-deploy-platform-ansible-os-2217-1 2024-11-07 11:54:07,029 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/8ad4b43f-d35f-4425-a34f-fabed630bdcd 2024-11-07 11:54:07,043 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/9ea4745e-50a9-4ed9-b37c-b40855819fdf 2024-11-07 11:54:08,320 - 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.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.983 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.983/3.189/5.396/2.206 ms') 2024-11-07 11:54:08,321 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-96744063-75499838 passed 2024-11-07 11:54:08,492 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 11:54:08,492 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96744063-75499838, IP 177.224.147.3, Port 22 2024-11-07 11:54:08,655 - DEBUG - VM ctest-TestBasicPolicy-96744063-75499838 is ready for SSH connections 2024-11-07 11:54:08,655 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 11:54:08,655 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.224.147.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-11-07 11:54:08,656 - DEBUG - ping -s 56 -c 3 -W 1 177.224.147.3 2024-11-07 11:54:12,703 - DEBUG - PING 177.224.147.3 (177.224.147.3): 56 data bytes 64 bytes from 177.224.147.3: seq=0 ttl=63 time=4.665 ms 64 bytes from 177.224.147.3: seq=1 ttl=63 time=0.991 ms 64 bytes from 177.224.147.3: seq=2 ttl=63 time=1.088 ms --- 177.224.147.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.991/2.248/4.665 ms 2024-11-07 11:54:12,703 - INFO - Ping to IP 177.224.147.3 from VM ctest-TestBasicPolicy-96744063-53856524 passed 2024-11-07 11:54:12,891 - DEBUG - Policy Update Response {"network-policy": {"uuid": "83367fd2-f07e-4add-8236-25d5f3786931", "href": "http://10.0.0.28:8082/network-policy/83367fd2-f07e-4add-8236-25d5f3786931"}} 2024-11-07 11:54:12,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 11:54:12,892 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.224.147.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-11-07 11:54:12,892 - DEBUG - ping -s 56 -c 3 -W 1 177.224.147.3 2024-11-07 11:54:16,116 - DEBUG - PING 177.224.147.3 (177.224.147.3): 56 data bytes --- 177.224.147.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-07 11:54:16,116 - WARNING - Ping to IP 177.224.147.3 from VM ctest-TestBasicPolicy-96744063-53856524 failed 2024-11-07 11:54:16,116 - INFO - Deleting VM ctest-TestBasicPolicy-96744063-75499838 2024-11-07 11:54:16,199 - INFO - Deleting VM ctest-TestBasicPolicy-96744063-53856524 2024-11-07 11:54:16,692 - INFO - Deleted policy ctest-policy-allow-all-38313570 2024-11-07 11:54:16,692 - INFO - Deleting VN ctest-vn-33486561 2024-11-07 11:54:16,739 - DEBUG - VN 1da21105-580e-4cbe-af38-a10de76f84ed still in use: Unable to complete operation on network 1da21105-580e-4cbe-af38-a10de76f84ed. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5cf53b71-0148-435c-be5b-7b52b466e258'] 2024-11-07 11:54:16,739 - WARNING - Deleting VN ctest-vn-33486561 failed..Will retry 2024-11-07 11:54:18,883 - DEBUG - Response for deleting network () 2024-11-07 11:54:18,883 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2b7a747a-141c-433b-be55-91be2fae58ac 2024-11-07 11:54:18,891 - DEBUG - Response Code: 404 2024-11-07 11:54:18,891 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-07 11:54:18,898 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7 2024-11-07 11:54:18,971 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0 2024-11-07 11:54:19,059 - INFO - Validated that VN ctest-vn-33486561 is not found in API Server 2024-11-07 11:54:19,074 - DEBUG - VN ctest-vn-33486561 is not present in Agent 10.0.0.28 2024-11-07 11:54:19,074 - INFO - Validated that VN ctest-vn-33486561 is not in any agent 2024-11-07 11:54:19,096 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33486561 info 2024-11-07 11:54:19,096 - INFO - Deleting VN ctest-vn-03241798 2024-11-07 11:54:19,247 - DEBUG - Response for deleting network () 2024-11-07 11:54:19,247 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/de47d55a-c916-40f6-83df-b5e5df3e03f6 2024-11-07 11:54:19,253 - DEBUG - Response Code: 404 2024-11-07 11:54:19,253 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-11-07 11:54:19,263 - DEBUG - Requesting: http://10.0.0.28:8082/domain/f2b229e5-5762-4814-86c2-9a51dc8fe3b7 2024-11-07 11:54:19,323 - DEBUG - Requesting: http://10.0.0.28:8082/project/96a619d7-85f7-4a6a-9c49-0e5173e1d9d0 2024-11-07 11:54:19,411 - INFO - Validated that VN ctest-vn-03241798 is not found in API Server 2024-11-07 11:54:19,424 - DEBUG - VN ctest-vn-03241798 is not present in Agent 10.0.0.28 2024-11-07 11:54:19,424 - INFO - Validated that VN ctest-vn-03241798 is not in any agent 2024-11-07 11:54:19,453 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03241798 info 2024-11-07 11:54:19,716 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 11:54:19,716 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-07 11:54:19,716 - INFO - -------------------------------------------------------------------------------- 2024-11-07 11:54:20,468 - INFO - Deleted project: ctest-TestBasicPolicy-96744063, ID : 96a619d7-85f7-4a6a-9c49-0e5173e1d9d0