2024-11-14 17:57:24,692 - INFO - Domain Default found not creating 2024-11-14 17:57:24,856 - INFO - Project ctest-TestBasicPolicy-80358388 not found, creating it 2024-11-14 17:57:25,375 - INFO - Created Project:ctest-TestBasicPolicy-80358388, ID : ef840314-6723-4d58-b2ea-ff2564e069da 2024-11-14 17:57:26,913 - INFO - ================================================================================ 2024-11-14 17:57:26,913 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-14 17:57:26,913 - 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-14 17:57:27,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.8': '0'}} with 2024-11-14 17:57:27,171 - INFO - Initial checks done. Running the testcase now 2024-11-14 17:57:27,171 - INFO - 2024-11-14 17:57:27,768 - DEBUG - Response for create_network : {'network': {'id': 'b9338616-5c1c-4c8e-8586-a0b8d2f4d498', 'name': 'ctest-vn-48503577', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-48503577'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 17:57:27,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '60351aa6-0773-48da-bb45-37a31d3048e3', 'name': '', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'network_id': 'b9338616-5c1c-4c8e-8586-a0b8d2f4d498', 'ip_version': 4, 'cidr': '221.60.189.192/26', 'allocation_pools': [{'start': '221.60.189.194', 'end': '221.60.189.254'}], 'gateway_ip': '221.60.189.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.60.189.194', 'tags': [], 'project_id': 'ef84031467234d58b2eaff2564e069da'}} 2024-11-14 17:57:27,980 - INFO - Created VN ctest-vn-48503577 2024-11-14 17:57:28,040 - DEBUG - VN ctest-vn-48503577 UUID is b9338616-5c1c-4c8e-8586-a0b8d2f4d498 2024-11-14 17:57:28,355 - DEBUG - Response for create_network : {'network': {'id': '9a83609c-c94f-4a82-85cd-25fa8c649f22', 'name': 'ctest-vn-25681172', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-25681172'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 17:57:28,562 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bff2c109-2ef5-4a29-8ea2-f9efcddb7ea6', 'name': '', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'network_id': '9a83609c-c94f-4a82-85cd-25fa8c649f22', 'ip_version': 4, 'cidr': '105.114.52.128/26', 'allocation_pools': [{'start': '105.114.52.130', 'end': '105.114.52.190'}], 'gateway_ip': '105.114.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.114.52.130', 'tags': [], 'project_id': 'ef84031467234d58b2eaff2564e069da'}} 2024-11-14 17:57:28,584 - INFO - Created VN ctest-vn-25681172 2024-11-14 17:57:28,640 - DEBUG - VN ctest-vn-25681172 UUID is 9a83609c-c94f-4a82-85cd-25fa8c649f22 2024-11-14 17:57:28,761 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577, 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-80358388:ctest-vn-25681172, 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-14 17:57:29,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9338616-5c1c-4c8e-8586-a0b8d2f4d498', 'name': 'ctest-vn-48503577', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60351aa6-0773-48da-bb45-37a31d3048e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-48503577'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345']], 'subnet_ipam': [{'subnet_cidr': '221.60.189.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-14 17:57:29,307 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a83609c-c94f-4a82-85cd-25fa8c649f22', 'name': 'ctest-vn-25681172', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bff2c109-2ef5-4a29-8ea2-f9efcddb7ea6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-25681172'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345']], 'subnet_ipam': [{'subnet_cidr': '105.114.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-14 17:57:29,488 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-14 17:57:29,807 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-14 17:57:29,839 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb 2024-11-14 17:57:29,854 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da 2024-11-14 17:57:29,946 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498 2024-11-14 17:57:29,963 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498 2024-11-14 17:57:29,980 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa 2024-11-14 17:57:29,989 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa 2024-11-14 17:57:29,999 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d51f862c-fc93-4615-9085-5695682bbfc6 2024-11-14 17:57:30,009 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-14 17:57:30,009 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498 2024-11-14 17:57:30,026 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa 2024-11-14 17:57:30,056 - INFO - Verified VN network id 8 for VN b9338616-5c1c-4c8e-8586-a0b8d2f4d498 2024-11-14 17:57:30,057 - INFO - Verifications in API Server for VN ctest-vn-48503577 passed 2024-11-14 17:57:30,057 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498 2024-11-14 17:57:30,075 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa 2024-11-14 17:57:30,088 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa 2024-11-14 17:57:30,101 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d51f862c-fc93-4615-9085-5695682bbfc6 2024-11-14 17:57:30,117 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80358388', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13345157551421672590', 'uuid-lslong': '9621554369597330584'}, 'enable': 'true', 'created': '2024-11-14T17:57:27', 'last-modified': '2024-11-14T17:57:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072809'} 2024-11-14 17:57:30,127 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-14 17:57:30,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48503577 passed 2024-11-14 17:57:30,128 - DEBUG - ====Verifying policy data for ctest-vn-48503577 in API_Server ====== 2024-11-14 17:57:30,128 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-14 17:57:30,136 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb 2024-11-14 17:57:30,154 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da 2024-11-14 17:57:30,237 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498 2024-11-14 17:57:30,251 - DEBUG - ==>Verifying data for policy with id: f96b322c-c6e0-42c4-8a5d-0ba05c1029ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345'] 2024-11-14 17:57:30,252 - INFO - VN ctest-vn-48503577 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-14 17:57:30,252 - DEBUG - Verifying the vn in opserver 2024-11-14 17:57:30,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577 virtual network link through opserver 10.0.0.17 2024-11-14 17:57:30,252 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-11-14 17:57:30,547 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-11-14 17:57:30,615 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577?flat'} 2024-11-14 17:57:30,615 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577 is found in opserver 2024-11-14 17:57:30,629 - DEBUG - Do not have enough data to verify VN in agent 2024-11-14 17:57:30,636 - DEBUG - VRF ids for VN ctest-vn-48503577: {} 2024-11-14 17:57:30,636 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-14 17:57:30,644 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb 2024-11-14 17:57:30,662 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da 2024-11-14 17:57:30,745 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22 2024-11-14 17:57:30,768 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22 2024-11-14 17:57:30,783 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d 2024-11-14 17:57:30,804 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d 2024-11-14 17:57:30,814 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/dc43c2ee-ea50-418a-aa2c-2a095a88167b 2024-11-14 17:57:30,822 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-14 17:57:30,822 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22 2024-11-14 17:57:30,840 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d 2024-11-14 17:57:30,862 - INFO - Verified VN network id 9 for VN 9a83609c-c94f-4a82-85cd-25fa8c649f22 2024-11-14 17:57:30,862 - INFO - Verifications in API Server for VN ctest-vn-25681172 passed 2024-11-14 17:57:30,862 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22 2024-11-14 17:57:30,878 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d 2024-11-14 17:57:30,887 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d 2024-11-14 17:57:30,897 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/dc43c2ee-ea50-418a-aa2c-2a095a88167b 2024-11-14 17:57:30,913 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80358388', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11133848930298579586', 'uuid-lslong': '9641404135297556258'}, 'enable': 'true', 'created': '2024-11-14T17:57:28', 'last-modified': '2024-11-14T17:57:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.627871'} 2024-11-14 17:57:30,921 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-14 17:57:30,921 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25681172 passed 2024-11-14 17:57:30,921 - DEBUG - ====Verifying policy data for ctest-vn-25681172 in API_Server ====== 2024-11-14 17:57:30,921 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-14 17:57:30,929 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb 2024-11-14 17:57:30,947 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da 2024-11-14 17:57:31,034 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22 2024-11-14 17:57:31,049 - DEBUG - ==>Verifying data for policy with id: f96b322c-c6e0-42c4-8a5d-0ba05c1029ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345'] 2024-11-14 17:57:31,049 - INFO - VN ctest-vn-25681172 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-14 17:57:31,050 - DEBUG - Verifying the vn in opserver 2024-11-14 17:57:31,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172 virtual network link through opserver 10.0.0.17 2024-11-14 17:57:31,050 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-11-14 17:57:31,062 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172?flat'} 2024-11-14 17:57:31,062 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172 is found in opserver 2024-11-14 17:57:31,074 - DEBUG - Do not have enough data to verify VN in agent 2024-11-14 17:57:31,080 - DEBUG - VRF ids for VN ctest-vn-25681172: {} 2024-11-14 17:57:31,134 - DEBUG - Services list from nova: [, , ] 2024-11-14 17:57:32,187 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2301-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2301-1) 2024-11-14 17:57:33,534 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2301-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2301-1) 2024-11-14 17:57:33,534 - INFO - Waiting for VM ctest-TestBasicPolicy-80358388-41568207 to be up.. 2024-11-14 17:57:33,635 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-14 17:57:38,716 - DEBUG - VM is in ACTIVE state now 2024-11-14 17:57:38,716 - INFO - VM name : ctest-TestBasicPolicy-80358388-41568207 2024-11-14 17:57:38,799 - DEBUG - VM ctest-TestBasicPolicy-80358388-41568207 ID is e9260f4b-8c6c-4dbc-8ae6-739b05ea2539 2024-11-14 17:57:38,818 - DEBUG - VM ctest-TestBasicPolicy-80358388-41568207 launched on Node cn-jenkins-deploy-platform-ansible-os-2301-1 2024-11-14 17:57:38,894 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/e9260f4b-8c6c-4dbc-8ae6-739b05ea2539 2024-11-14 17:57:38,906 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/65a7f330-c553-41cd-875c-af3f470ce6f6 2024-11-14 17:57:42,169 - 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 1007ms') 2024-11-14 17:57:42,170 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80358388-41568207 failed! 2024-11-14 17:57:42,228 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577 is 221.60.189.193 and allocation pool is NOT set 2024-11-14 17:57:44,289 - 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.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.399 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.399/1.853/3.308/1.454 ms') 2024-11-14 17:57:44,290 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80358388-41568207 passed 2024-11-14 17:57:44,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 17:57:44,448 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80358388-41568207, IP 221.60.189.195, Port 22 2024-11-14 17:57:44,603 - DEBUG - VM ctest-TestBasicPolicy-80358388-41568207 is ready for SSH connections 2024-11-14 17:57:44,603 - INFO - Waiting for VM ctest-TestBasicPolicy-80358388-33727508 to be up.. 2024-11-14 17:57:44,680 - DEBUG - VM is in ACTIVE state now 2024-11-14 17:57:44,680 - INFO - VM name : ctest-TestBasicPolicy-80358388-33727508 2024-11-14 17:57:44,760 - DEBUG - VM ctest-TestBasicPolicy-80358388-33727508 ID is 66d1145c-867f-4210-9cfb-f36b84260316 2024-11-14 17:57:44,760 - DEBUG - VM ctest-TestBasicPolicy-80358388-33727508 launched on Node cn-jenkins-deploy-platform-ansible-os-2301-1 2024-11-14 17:57:44,838 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/66d1145c-867f-4210-9cfb-f36b84260316 2024-11-14 17:57:44,849 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/7f5ba5ad-39d9-4b53-86a9-afbff9ac4559 2024-11-14 17:57:46,108 - 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.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.424 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.424/1.941/3.458/1.517 ms') 2024-11-14 17:57:46,108 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-80358388-33727508 passed 2024-11-14 17:57:46,264 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 17:57:46,264 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80358388-33727508, IP 105.114.52.131, Port 22 2024-11-14 17:57:46,424 - DEBUG - VM ctest-TestBasicPolicy-80358388-33727508 is ready for SSH connections 2024-11-14 17:57:46,424 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 17:57:46,424 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.114.52.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-11-14 17:57:46,424 - DEBUG - ping -s 56 -c 3 -W 1 105.114.52.131 2024-11-14 17:57:50,438 - DEBUG - PING 105.114.52.131 (105.114.52.131): 56 data bytes 64 bytes from 105.114.52.131: seq=0 ttl=63 time=3.751 ms 64 bytes from 105.114.52.131: seq=1 ttl=63 time=0.855 ms 64 bytes from 105.114.52.131: seq=2 ttl=63 time=0.861 ms --- 105.114.52.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.855/1.822/3.751 ms 2024-11-14 17:57:50,438 - INFO - Ping to IP 105.114.52.131 from VM ctest-TestBasicPolicy-80358388-41568207 passed 2024-11-14 17:57:50,624 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f96b322c-c6e0-42c4-8a5d-0ba05c1029ee", "href": "http://10.0.0.17:8082/network-policy/f96b322c-c6e0-42c4-8a5d-0ba05c1029ee"}} 2024-11-14 17:57:50,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 17:57:50,624 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.114.52.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-11-14 17:57:50,624 - DEBUG - ping -s 56 -c 3 -W 1 105.114.52.131 2024-11-14 17:57:53,830 - DEBUG - PING 105.114.52.131 (105.114.52.131): 56 data bytes --- 105.114.52.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-14 17:57:53,830 - WARNING - Ping to IP 105.114.52.131 from VM ctest-TestBasicPolicy-80358388-41568207 failed 2024-11-14 17:57:53,830 - INFO - Deleting VM ctest-TestBasicPolicy-80358388-33727508 2024-11-14 17:57:53,895 - INFO - Deleting VM ctest-TestBasicPolicy-80358388-41568207 2024-11-14 17:57:54,338 - INFO - Deleted policy ctest-policy-allow-all-59879345 2024-11-14 17:57:54,338 - INFO - Deleting VN ctest-vn-25681172 2024-11-14 17:57:54,387 - DEBUG - VN 9a83609c-c94f-4a82-85cd-25fa8c649f22 still in use: Unable to complete operation on network 9a83609c-c94f-4a82-85cd-25fa8c649f22. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3fb1b3aa-d892-4205-95df-a632590b2ec9'] 2024-11-14 17:57:54,387 - WARNING - Deleting VN ctest-vn-25681172 failed..Will retry 2024-11-14 17:57:56,571 - DEBUG - Response for deleting network () 2024-11-14 17:57:56,571 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d 2024-11-14 17:57:56,577 - DEBUG - Response Code: 404 2024-11-14 17:57:56,577 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-14 17:57:56,583 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb 2024-11-14 17:57:56,647 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da 2024-11-14 17:57:56,734 - INFO - Validated that VN ctest-vn-25681172 is not found in API Server 2024-11-14 17:57:56,746 - DEBUG - VN ctest-vn-25681172 is not present in Agent 10.0.0.17 2024-11-14 17:57:56,746 - INFO - Validated that VN ctest-vn-25681172 is not in any agent 2024-11-14 17:57:56,762 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25681172 info 2024-11-14 17:57:56,762 - INFO - Deleting VN ctest-vn-48503577 2024-11-14 17:57:56,897 - DEBUG - Response for deleting network () 2024-11-14 17:57:56,897 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa 2024-11-14 17:57:56,909 - DEBUG - Response Code: 404 2024-11-14 17:57:56,910 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-14 17:57:56,916 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb 2024-11-14 17:57:56,974 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da 2024-11-14 17:57:57,055 - INFO - Validated that VN ctest-vn-48503577 is not found in API Server 2024-11-14 17:57:57,066 - DEBUG - VN ctest-vn-48503577 is not present in Agent 10.0.0.17 2024-11-14 17:57:57,066 - INFO - Validated that VN ctest-vn-48503577 is not in any agent 2024-11-14 17:57:57,083 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48503577 info 2024-11-14 17:57:57,343 - DEBUG - No XMPP flaps were noticed during the test
2024-11-14 17:57:57,343 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-14 17:57:57,343 - INFO - -------------------------------------------------------------------------------- 2024-11-14 17:57:58,169 - INFO - Deleted project: ctest-TestBasicPolicy-80358388, ID : ef840314-6723-4d58-b2ea-ff2564e069da