2024-09-20 16:29:42,795 - INFO - Domain Default found not creating 2024-09-20 16:29:42,972 - INFO - Project ctest-TestBasicPolicy-16731886 not found, creating it 2024-09-20 16:29:43,492 - INFO - Created Project:ctest-TestBasicPolicy-16731886, ID : ba20c0a0-c429-488e-a074-ddfffdb6345e 2024-09-20 16:29:45,113 - INFO - ================================================================================ 2024-09-20 16:29:45,113 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-20 16:29:45,113 - 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-20 16:29:45,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.22': '0'}} with 2024-09-20 16:29:45,368 - INFO - Initial checks done. Running the testcase now 2024-09-20 16:29:45,368 - INFO - 2024-09-20 16:29:45,969 - DEBUG - Response for create_network : {'network': {'id': 'c119fbd9-e57f-4b22-b30e-9674f9f2d276', 'name': 'ctest-vn-19608567', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-19608567'], 'port_security_enabled': True, 'description': ''}} 2024-09-20 16:29:46,192 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8cb0772-e07e-4bc2-a516-d4b0706ebded', 'name': '', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'network_id': 'c119fbd9-e57f-4b22-b30e-9674f9f2d276', 'ip_version': 4, 'cidr': '196.95.185.128/26', 'allocation_pools': [{'start': '196.95.185.130', 'end': '196.95.185.190'}], 'gateway_ip': '196.95.185.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.95.185.130', 'tags': [], 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e'}} 2024-09-20 16:29:46,212 - INFO - Created VN ctest-vn-19608567 2024-09-20 16:29:46,270 - DEBUG - VN ctest-vn-19608567 UUID is c119fbd9-e57f-4b22-b30e-9674f9f2d276 2024-09-20 16:29:46,593 - DEBUG - Response for create_network : {'network': {'id': '7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66', 'name': 'ctest-vn-53249799', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-53249799'], 'port_security_enabled': True, 'description': ''}} 2024-09-20 16:29:46,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec5e8b70-e39e-46a3-8bdd-2dded6b11028', 'name': '', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'network_id': '7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66', 'ip_version': 4, 'cidr': '137.126.59.128/26', 'allocation_pools': [{'start': '137.126.59.130', 'end': '137.126.59.190'}], 'gateway_ip': '137.126.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.126.59.130', 'tags': [], 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e'}} 2024-09-20 16:29:46,785 - INFO - Created VN ctest-vn-53249799 2024-09-20 16:29:46,842 - DEBUG - VN ctest-vn-53249799 UUID is 7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 2024-09-20 16:29:46,972 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567, 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-16731886:ctest-vn-53249799, 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-20 16:29:47,298 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c119fbd9-e57f-4b22-b30e-9674f9f2d276', 'name': 'ctest-vn-19608567', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8cb0772-e07e-4bc2-a516-d4b0706ebded'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-19608567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576']], 'subnet_ipam': [{'subnet_cidr': '196.95.185.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-20 16:29:47,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66', 'name': 'ctest-vn-53249799', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec5e8b70-e39e-46a3-8bdd-2dded6b11028'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-53249799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576']], 'subnet_ipam': [{'subnet_cidr': '137.126.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-20 16:29:47,738 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-20 16:29:48,045 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-20 16:29:48,083 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e 2024-09-20 16:29:48,099 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e 2024-09-20 16:29:48,183 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276 2024-09-20 16:29:48,199 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276 2024-09-20 16:29:48,214 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c 2024-09-20 16:29:48,223 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c 2024-09-20 16:29:48,232 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7129fe20-6d4f-407a-a8ad-649482440256 2024-09-20 16:29:48,242 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-20 16:29:48,242 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276 2024-09-20 16:29:48,257 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c 2024-09-20 16:29:48,279 - INFO - Verified VN network id 8 for VN c119fbd9-e57f-4b22-b30e-9674f9f2d276 2024-09-20 16:29:48,279 - INFO - Verifications in API Server for VN ctest-vn-19608567 passed 2024-09-20 16:29:48,280 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276 2024-09-20 16:29:48,297 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c 2024-09-20 16:29:48,307 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c 2024-09-20 16:29:48,316 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7129fe20-6d4f-407a-a8ad-649482440256 2024-09-20 16:29:48,334 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16731886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13914429437014657826', 'uuid-lslong': '12902415411616862838'}, 'enable': 'true', 'created': '2024-09-20T16:29:45', 'last-modified': '2024-09-20T16:29:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068246'} 2024-09-20 16:29:48,343 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-20 16:29:48,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19608567 passed 2024-09-20 16:29:48,343 - DEBUG - ====Verifying policy data for ctest-vn-19608567 in API_Server ====== 2024-09-20 16:29:48,343 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-20 16:29:48,350 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e 2024-09-20 16:29:48,365 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e 2024-09-20 16:29:48,450 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276 2024-09-20 16:29:48,465 - DEBUG - ==>Verifying data for policy with id: f56e63b1-0a1f-4a81-8d21-44030d301825, fqn: ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576'] 2024-09-20 16:29:48,465 - INFO - VN ctest-vn-19608567 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-20 16:29:48,466 - DEBUG - Verifying the vn in opserver 2024-09-20 16:29:48,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567 virtual network link through opserver 10.0.0.23 2024-09-20 16:29:48,466 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-20 16:29:48,767 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-20 16:29:48,838 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567?flat'} 2024-09-20 16:29:48,838 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567 is found in opserver 2024-09-20 16:29:48,851 - DEBUG - Do not have enough data to verify VN in agent 2024-09-20 16:29:48,857 - DEBUG - VRF ids for VN ctest-vn-19608567: {} 2024-09-20 16:29:48,857 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-20 16:29:48,864 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e 2024-09-20 16:29:48,890 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e 2024-09-20 16:29:48,975 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 2024-09-20 16:29:48,993 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 2024-09-20 16:29:49,009 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243 2024-09-20 16:29:49,020 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243 2024-09-20 16:29:49,030 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/416ac220-7888-48b3-94fc-cd120a500aa9 2024-09-20 16:29:49,038 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-20 16:29:49,038 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 2024-09-20 16:29:49,053 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243 2024-09-20 16:29:49,079 - INFO - Verified VN network id 9 for VN 7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 2024-09-20 16:29:49,079 - INFO - Verifications in API Server for VN ctest-vn-53249799 passed 2024-09-20 16:29:49,080 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 2024-09-20 16:29:49,095 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243 2024-09-20 16:29:49,105 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243 2024-09-20 16:29:49,115 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/416ac220-7888-48b3-94fc-cd120a500aa9 2024-09-20 16:29:49,131 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16731886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8870451625743896528', 'uuid-lslong': '13827513554381270374'}, 'enable': 'true', 'created': '2024-09-20T16:29:46', 'last-modified': '2024-09-20T16:29:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.602713'} 2024-09-20 16:29:49,137 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-20 16:29:49,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53249799 passed 2024-09-20 16:29:49,138 - DEBUG - ====Verifying policy data for ctest-vn-53249799 in API_Server ====== 2024-09-20 16:29:49,138 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-20 16:29:49,145 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e 2024-09-20 16:29:49,159 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e 2024-09-20 16:29:49,243 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 2024-09-20 16:29:49,258 - DEBUG - ==>Verifying data for policy with id: f56e63b1-0a1f-4a81-8d21-44030d301825, fqn: ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576'] 2024-09-20 16:29:49,258 - INFO - VN ctest-vn-53249799 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-20 16:29:49,258 - DEBUG - Verifying the vn in opserver 2024-09-20 16:29:49,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799 virtual network link through opserver 10.0.0.23 2024-09-20 16:29:49,258 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-20 16:29:49,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799?flat'} 2024-09-20 16:29:49,271 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799 is found in opserver 2024-09-20 16:29:49,283 - DEBUG - Do not have enough data to verify VN in agent 2024-09-20 16:29:49,290 - DEBUG - VRF ids for VN ctest-vn-53249799: {} 2024-09-20 16:29:49,351 - DEBUG - Services list from nova: [, , ] 2024-09-20 16:29:50,598 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2009-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2009-1) 2024-09-20 16:29:51,881 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2009-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2009-1) 2024-09-20 16:29:51,882 - INFO - Waiting for VM ctest-TestBasicPolicy-16731886-17838051 to be up.. 2024-09-20 16:29:51,968 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-20 16:29:57,064 - DEBUG - VM is in ACTIVE state now 2024-09-20 16:29:57,065 - INFO - VM name : ctest-TestBasicPolicy-16731886-17838051 2024-09-20 16:29:57,157 - DEBUG - VM ctest-TestBasicPolicy-16731886-17838051 ID is 95123606-1c6f-4e00-b0ec-7fe14e66b793 2024-09-20 16:29:57,183 - DEBUG - VM ctest-TestBasicPolicy-16731886-17838051 launched on Node cn-jenkins-deploy-platform-ansible-os-2009-1 2024-09-20 16:29:57,279 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/95123606-1c6f-4e00-b0ec-7fe14e66b793 2024-09-20 16:29:57,293 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/1b53e2ce-76af-456b-b85c-66af38a3edc4 2024-09-20 16:30:00,535 - 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 1021ms') 2024-09-20 16:30:00,535 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16731886-17838051 failed! 2024-09-20 16:30:00,594 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567 is 196.95.185.129 and allocation pool is NOT set 2024-09-20 16:30:02,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=7.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.719 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.719/4.351/7.983/3.632 ms') 2024-09-20 16:30:02,654 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16731886-17838051 passed 2024-09-20 16:30:02,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-20 16:30:02,819 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16731886-17838051, IP 196.95.185.131, Port 22 2024-09-20 16:30:02,974 - DEBUG - VM ctest-TestBasicPolicy-16731886-17838051 is ready for SSH connections 2024-09-20 16:30:02,974 - INFO - Waiting for VM ctest-TestBasicPolicy-16731886-86131915 to be up.. 2024-09-20 16:30:03,060 - DEBUG - VM is in ACTIVE state now 2024-09-20 16:30:03,060 - INFO - VM name : ctest-TestBasicPolicy-16731886-86131915 2024-09-20 16:30:03,171 - DEBUG - VM ctest-TestBasicPolicy-16731886-86131915 ID is afaaaee4-dd8b-4929-997a-dd88199eeba8 2024-09-20 16:30:03,171 - DEBUG - VM ctest-TestBasicPolicy-16731886-86131915 launched on Node cn-jenkins-deploy-platform-ansible-os-2009-1 2024-09-20 16:30:03,261 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/afaaaee4-dd8b-4929-997a-dd88199eeba8 2024-09-20 16:30:03,273 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/568d6cc4-1df8-4938-85fd-cdf7cc3b7d9e 2024-09-20 16:30:04,533 - 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=11.5 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.534 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.534/6.006/11.478/5.472 ms') 2024-09-20 16:30:04,534 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-16731886-86131915 passed 2024-09-20 16:30:04,699 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-20 16:30:04,699 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16731886-86131915, IP 137.126.59.131, Port 22 2024-09-20 16:30:04,858 - DEBUG - VM ctest-TestBasicPolicy-16731886-86131915 is ready for SSH connections 2024-09-20 16:30:04,858 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-20 16:30:04,858 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.126.59.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-20 16:30:04,858 - DEBUG - ping -s 56 -c 3 -W 1 137.126.59.131 2024-09-20 16:30:08,565 - DEBUG - PING 137.126.59.131 (137.126.59.131): 56 data bytes 64 bytes from 137.126.59.131: seq=0 ttl=63 time=3.432 ms 64 bytes from 137.126.59.131: seq=1 ttl=63 time=1.169 ms 64 bytes from 137.126.59.131: seq=2 ttl=63 time=1.180 ms --- 137.126.59.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.169/1.927/3.432 ms 2024-09-20 16:30:08,565 - INFO - Ping to IP 137.126.59.131 from VM ctest-TestBasicPolicy-16731886-17838051 passed 2024-09-20 16:30:08,758 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f56e63b1-0a1f-4a81-8d21-44030d301825", "href": "http://10.0.0.23:8082/network-policy/f56e63b1-0a1f-4a81-8d21-44030d301825"}} 2024-09-20 16:30:08,758 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-20 16:30:08,758 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.126.59.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-20 16:30:08,759 - DEBUG - ping -s 56 -c 3 -W 1 137.126.59.131 2024-09-20 16:30:11,992 - DEBUG - PING 137.126.59.131 (137.126.59.131): 56 data bytes 64 bytes from 137.126.59.131: seq=0 ttl=63 time=1.748 ms --- 137.126.59.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.748/1.748/1.748 ms 2024-09-20 16:30:11,992 - WARNING - Ping to IP 137.126.59.131 from VM ctest-TestBasicPolicy-16731886-17838051 failed 2024-09-20 16:30:11,992 - INFO - Deleting VM ctest-TestBasicPolicy-16731886-86131915 2024-09-20 16:30:12,062 - INFO - Deleting VM ctest-TestBasicPolicy-16731886-17838051 2024-09-20 16:30:12,517 - INFO - Deleted policy ctest-policy-allow-all-44297576 2024-09-20 16:30:12,517 - INFO - Deleting VN ctest-vn-53249799 2024-09-20 16:30:12,562 - DEBUG - VN 7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66 still in use: Unable to complete operation on network 7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6a91d076-46a8-47fb-b22a-40693e53cb16'] 2024-09-20 16:30:12,562 - WARNING - Deleting VN ctest-vn-53249799 failed..Will retry 2024-09-20 16:30:14,712 - DEBUG - Response for deleting network () 2024-09-20 16:30:14,713 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243 2024-09-20 16:30:14,719 - DEBUG - Response Code: 404 2024-09-20 16:30:14,719 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-20 16:30:14,726 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e 2024-09-20 16:30:14,786 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e 2024-09-20 16:30:14,878 - INFO - Validated that VN ctest-vn-53249799 is not found in API Server 2024-09-20 16:30:14,891 - DEBUG - VN ctest-vn-53249799 is not present in Agent 10.0.0.23 2024-09-20 16:30:14,891 - INFO - Validated that VN ctest-vn-53249799 is not in any agent 2024-09-20 16:30:14,906 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53249799 info 2024-09-20 16:30:14,906 - INFO - Deleting VN ctest-vn-19608567 2024-09-20 16:30:15,029 - DEBUG - Response for deleting network () 2024-09-20 16:30:15,030 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c 2024-09-20 16:30:15,039 - DEBUG - Response Code: 404 2024-09-20 16:30:15,039 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-20 16:30:15,046 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e 2024-09-20 16:30:15,102 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e 2024-09-20 16:30:15,193 - INFO - Validated that VN ctest-vn-19608567 is not found in API Server 2024-09-20 16:30:15,207 - DEBUG - VN ctest-vn-19608567 is not present in Agent 10.0.0.23 2024-09-20 16:30:15,207 - INFO - Validated that VN ctest-vn-19608567 is not in any agent 2024-09-20 16:30:15,230 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19608567 info 2024-09-20 16:30:15,490 - DEBUG - No XMPP flaps were noticed during the test
2024-09-20 16:30:15,490 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-20 16:30:15,490 - INFO - -------------------------------------------------------------------------------- 2024-09-20 16:30:16,223 - INFO - Deleted project: ctest-TestBasicPolicy-16731886, ID : ba20c0a0-c429-488e-a074-ddfffdb6345e