2024-10-23 20:30:40,520 - INFO - Domain Default found not creating 2024-10-23 20:30:40,686 - INFO - Project ctest-TestBasicPolicy-95958009 not found, creating it 2024-10-23 20:30:41,199 - INFO - Created Project:ctest-TestBasicPolicy-95958009, ID : d716fa95-eac2-4dc5-ace6-6779e5492af7 2024-10-23 20:30:42,679 - INFO - ================================================================================ 2024-10-23 20:30:42,679 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-23 20:30:42,679 - 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-23 20:30:42,939 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.5': '0'}} with 2024-10-23 20:30:42,939 - INFO - Initial checks done. Running the testcase now 2024-10-23 20:30:42,939 - INFO - 2024-10-23 20:30:43,513 - DEBUG - Response for create_network : {'network': {'id': 'e5679614-319e-41c3-afc6-52434d685ee3', 'name': 'ctest-vn-67331003', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-67331003'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 20:30:43,717 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16d2683-d5ab-4381-add1-f82fc6227ac0', 'name': '', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'network_id': 'e5679614-319e-41c3-afc6-52434d685ee3', 'ip_version': 4, 'cidr': '175.75.49.0/26', 'allocation_pools': [{'start': '175.75.49.2', 'end': '175.75.49.62'}], 'gateway_ip': '175.75.49.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.75.49.2', 'tags': [], 'project_id': 'd716fa95eac24dc5ace66779e5492af7'}} 2024-10-23 20:30:43,735 - INFO - Created VN ctest-vn-67331003 2024-10-23 20:30:43,794 - DEBUG - VN ctest-vn-67331003 UUID is e5679614-319e-41c3-afc6-52434d685ee3 2024-10-23 20:30:44,119 - DEBUG - Response for create_network : {'network': {'id': '1da042fd-5d78-4cfa-98ae-15a23d1602f3', 'name': 'ctest-vn-99260978', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-99260978'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 20:30:44,354 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8517e86-42bd-4402-9570-b76b03329264', 'name': '', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'network_id': '1da042fd-5d78-4cfa-98ae-15a23d1602f3', 'ip_version': 4, 'cidr': '145.52.39.0/26', 'allocation_pools': [{'start': '145.52.39.2', 'end': '145.52.39.62'}], 'gateway_ip': '145.52.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.52.39.2', 'tags': [], 'project_id': 'd716fa95eac24dc5ace66779e5492af7'}} 2024-10-23 20:30:44,377 - INFO - Created VN ctest-vn-99260978 2024-10-23 20:30:44,434 - DEBUG - VN ctest-vn-99260978 UUID is 1da042fd-5d78-4cfa-98ae-15a23d1602f3 2024-10-23 20:30:44,554 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003, 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-95958009:ctest-vn-99260978, 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-23 20:30:44,882 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5679614-319e-41c3-afc6-52434d685ee3', 'name': 'ctest-vn-67331003', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e16d2683-d5ab-4381-add1-f82fc6227ac0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-67331003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594']], 'subnet_ipam': [{'subnet_cidr': '175.75.49.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 20:30:45,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1da042fd-5d78-4cfa-98ae-15a23d1602f3', 'name': 'ctest-vn-99260978', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8517e86-42bd-4402-9570-b76b03329264'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-99260978'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594']], 'subnet_ipam': [{'subnet_cidr': '145.52.39.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 20:30:45,314 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 20:30:45,609 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 20:30:45,640 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e 2024-10-23 20:30:45,655 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7 2024-10-23 20:30:45,735 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3 2024-10-23 20:30:45,750 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3 2024-10-23 20:30:45,764 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746 2024-10-23 20:30:45,772 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746 2024-10-23 20:30:45,780 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/df6e52c0-e2f0-4f42-9833-eb774539fdac 2024-10-23 20:30:45,788 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 20:30:45,788 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3 2024-10-23 20:30:45,803 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746 2024-10-23 20:30:45,826 - INFO - Verified VN network id 8 for VN e5679614-319e-41c3-afc6-52434d685ee3 2024-10-23 20:30:45,826 - INFO - Verifications in API Server for VN ctest-vn-67331003 passed 2024-10-23 20:30:45,826 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3 2024-10-23 20:30:45,841 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746 2024-10-23 20:30:45,849 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746 2024-10-23 20:30:45,857 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/df6e52c0-e2f0-4f42-9833-eb774539fdac 2024-10-23 20:30:45,871 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95958009', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16530345970762662339', 'uuid-lslong': '12665901451041070819'}, 'enable': 'true', 'created': '2024-10-23T20:30:43', 'last-modified': '2024-10-23T20:30:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019170'} 2024-10-23 20:30:45,878 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 20:30:45,878 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67331003 passed 2024-10-23 20:30:45,878 - DEBUG - ====Verifying policy data for ctest-vn-67331003 in API_Server ====== 2024-10-23 20:30:45,879 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 20:30:45,885 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e 2024-10-23 20:30:45,897 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7 2024-10-23 20:30:45,971 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3 2024-10-23 20:30:45,985 - DEBUG - ==>Verifying data for policy with id: 1d5fed81-7c63-486c-9237-51746f5dee76, fqn: ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594'] 2024-10-23 20:30:45,985 - INFO - VN ctest-vn-67331003 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 20:30:45,986 - DEBUG - Verifying the vn in opserver 2024-10-23 20:30:45,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003 virtual network link through opserver 10.0.0.35 2024-10-23 20:30:45,986 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-10-23 20:30:46,281 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-10-23 20:30:46,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003?flat'} 2024-10-23 20:30:46,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003 is found in opserver 2024-10-23 20:30:46,352 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 20:30:46,358 - DEBUG - VRF ids for VN ctest-vn-67331003: {} 2024-10-23 20:30:46,358 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 20:30:46,373 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e 2024-10-23 20:30:46,389 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7 2024-10-23 20:30:46,478 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3 2024-10-23 20:30:46,500 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3 2024-10-23 20:30:46,517 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875 2024-10-23 20:30:46,527 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875 2024-10-23 20:30:46,536 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/9cea77f2-7c76-494f-a7e4-dbabf9fdeb7c 2024-10-23 20:30:46,544 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 20:30:46,544 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3 2024-10-23 20:30:46,557 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875 2024-10-23 20:30:46,580 - INFO - Verified VN network id 9 for VN 1da042fd-5d78-4cfa-98ae-15a23d1602f3 2024-10-23 20:30:46,580 - INFO - Verifications in API Server for VN ctest-vn-99260978 passed 2024-10-23 20:30:46,580 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3 2024-10-23 20:30:46,595 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875 2024-10-23 20:30:46,605 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875 2024-10-23 20:30:46,613 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/9cea77f2-7c76-494f-a7e4-dbabf9fdeb7c 2024-10-23 20:30:46,626 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95958009', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2134779879335939322', 'uuid-lslong': '11001754726266438387'}, 'enable': 'true', 'created': '2024-10-23T20:30:44', 'last-modified': '2024-10-23T20:30:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.519340'} 2024-10-23 20:30:46,632 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 20:30:46,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99260978 passed 2024-10-23 20:30:46,632 - DEBUG - ====Verifying policy data for ctest-vn-99260978 in API_Server ====== 2024-10-23 20:30:46,632 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 20:30:46,639 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e 2024-10-23 20:30:46,651 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7 2024-10-23 20:30:46,734 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3 2024-10-23 20:30:46,748 - DEBUG - ==>Verifying data for policy with id: 1d5fed81-7c63-486c-9237-51746f5dee76, fqn: ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594'] 2024-10-23 20:30:46,748 - INFO - VN ctest-vn-99260978 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 20:30:46,748 - DEBUG - Verifying the vn in opserver 2024-10-23 20:30:46,748 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978 virtual network link through opserver 10.0.0.35 2024-10-23 20:30:46,749 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-10-23 20:30:46,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978?flat'} 2024-10-23 20:30:46,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978 is found in opserver 2024-10-23 20:30:46,779 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 20:30:46,786 - DEBUG - VRF ids for VN ctest-vn-99260978: {} 2024-10-23 20:30:46,847 - DEBUG - Services list from nova: [, , ] 2024-10-23 20:30:47,973 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2133-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2133-1) 2024-10-23 20:30:49,111 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2133-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2133-1) 2024-10-23 20:30:49,112 - INFO - Waiting for VM ctest-TestBasicPolicy-95958009-86749352 to be up.. 2024-10-23 20:30:49,202 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-23 20:30:54,290 - DEBUG - VM is in ACTIVE state now 2024-10-23 20:30:54,290 - INFO - VM name : ctest-TestBasicPolicy-95958009-86749352 2024-10-23 20:30:54,393 - DEBUG - VM ctest-TestBasicPolicy-95958009-86749352 ID is 0237cf97-fe2a-471e-b971-223622d9dbfb 2024-10-23 20:30:54,421 - DEBUG - VM ctest-TestBasicPolicy-95958009-86749352 launched on Node cn-jenkins-deploy-platform-ansible-os-2133-1 2024-10-23 20:30:54,508 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/0237cf97-fe2a-471e-b971-223622d9dbfb 2024-10-23 20:30:54,530 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/66c37662-e602-44bc-9cc6-e867a98907a2 2024-10-23 20:30:57,806 - 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 1011ms') 2024-10-23 20:30:57,806 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95958009-86749352 failed! 2024-10-23 20:30:57,870 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003 is 175.75.49.1 and allocation pool is NOT set 2024-10-23 20:30:59,929 - 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=2.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.480 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.480/1.718/2.956/1.238 ms') 2024-10-23 20:30:59,929 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95958009-86749352 passed 2024-10-23 20:31:00,094 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 20:31:00,094 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95958009-86749352, IP 175.75.49.3, Port 22 2024-10-23 20:31:00,260 - DEBUG - VM ctest-TestBasicPolicy-95958009-86749352 is ready for SSH connections 2024-10-23 20:31:00,260 - INFO - Waiting for VM ctest-TestBasicPolicy-95958009-65044977 to be up.. 2024-10-23 20:31:00,359 - DEBUG - VM is in ACTIVE state now 2024-10-23 20:31:00,359 - INFO - VM name : ctest-TestBasicPolicy-95958009-65044977 2024-10-23 20:31:00,447 - DEBUG - VM ctest-TestBasicPolicy-95958009-65044977 ID is d5a15364-73d9-4901-a86d-3244b0688607 2024-10-23 20:31:00,448 - DEBUG - VM ctest-TestBasicPolicy-95958009-65044977 launched on Node cn-jenkins-deploy-platform-ansible-os-2133-1 2024-10-23 20:31:00,556 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/d5a15364-73d9-4901-a86d-3244b0688607 2024-10-23 20:31:00,575 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/e428aae2-807f-41df-804d-9d4bf548198a 2024-10-23 20:31:01,824 - 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=4.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.377 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.377/2.282/4.187/1.905 ms') 2024-10-23 20:31:01,825 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-95958009-65044977 passed 2024-10-23 20:31:01,978 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 20:31:01,978 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95958009-65044977, IP 145.52.39.3, Port 22 2024-10-23 20:31:02,141 - DEBUG - VM ctest-TestBasicPolicy-95958009-65044977 is ready for SSH connections 2024-10-23 20:31:02,142 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 20:31:02,142 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 145.52.39.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 20:31:02,142 - DEBUG - ping -s 56 -c 3 -W 1 145.52.39.3 2024-10-23 20:31:05,816 - DEBUG - PING 145.52.39.3 (145.52.39.3): 56 data bytes 64 bytes from 145.52.39.3: seq=0 ttl=63 time=4.069 ms 64 bytes from 145.52.39.3: seq=1 ttl=63 time=0.763 ms 64 bytes from 145.52.39.3: seq=2 ttl=63 time=0.967 ms --- 145.52.39.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.763/1.933/4.069 ms 2024-10-23 20:31:05,816 - INFO - Ping to IP 145.52.39.3 from VM ctest-TestBasicPolicy-95958009-86749352 passed 2024-10-23 20:31:06,010 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1d5fed81-7c63-486c-9237-51746f5dee76", "href": "http://10.0.0.35:8082/network-policy/1d5fed81-7c63-486c-9237-51746f5dee76"}} 2024-10-23 20:31:06,010 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 20:31:06,010 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 145.52.39.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 20:31:06,010 - DEBUG - ping -s 56 -c 3 -W 1 145.52.39.3 2024-10-23 20:31:09,215 - DEBUG - PING 145.52.39.3 (145.52.39.3): 56 data bytes 64 bytes from 145.52.39.3: seq=0 ttl=63 time=1.599 ms --- 145.52.39.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.599/1.599/1.599 ms 2024-10-23 20:31:09,215 - WARNING - Ping to IP 145.52.39.3 from VM ctest-TestBasicPolicy-95958009-86749352 failed 2024-10-23 20:31:09,215 - INFO - Deleting VM ctest-TestBasicPolicy-95958009-65044977 2024-10-23 20:31:09,275 - INFO - Deleting VM ctest-TestBasicPolicy-95958009-86749352 2024-10-23 20:31:09,688 - INFO - Deleted policy ctest-policy-allow-all-54352594 2024-10-23 20:31:09,688 - INFO - Deleting VN ctest-vn-99260978 2024-10-23 20:31:09,724 - DEBUG - VN 1da042fd-5d78-4cfa-98ae-15a23d1602f3 still in use: Unable to complete operation on network 1da042fd-5d78-4cfa-98ae-15a23d1602f3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f0efc6b6-9306-441d-8bef-87fd4027a015'] 2024-10-23 20:31:09,725 - WARNING - Deleting VN ctest-vn-99260978 failed..Will retry 2024-10-23 20:31:11,848 - DEBUG - Response for deleting network () 2024-10-23 20:31:11,848 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875 2024-10-23 20:31:11,860 - DEBUG - Response Code: 404 2024-10-23 20:31:11,860 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 20:31:11,870 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e 2024-10-23 20:31:11,924 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7 2024-10-23 20:31:12,008 - INFO - Validated that VN ctest-vn-99260978 is not found in API Server 2024-10-23 20:31:12,019 - DEBUG - VN ctest-vn-99260978 is not present in Agent 10.0.0.35 2024-10-23 20:31:12,019 - INFO - Validated that VN ctest-vn-99260978 is not in any agent 2024-10-23 20:31:12,036 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99260978 info 2024-10-23 20:31:12,036 - INFO - Deleting VN ctest-vn-67331003 2024-10-23 20:31:12,155 - DEBUG - Response for deleting network () 2024-10-23 20:31:12,155 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746 2024-10-23 20:31:12,162 - DEBUG - Response Code: 404 2024-10-23 20:31:12,162 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 20:31:12,173 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e 2024-10-23 20:31:12,229 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7 2024-10-23 20:31:12,314 - INFO - Validated that VN ctest-vn-67331003 is not found in API Server 2024-10-23 20:31:12,326 - DEBUG - VN ctest-vn-67331003 is not present in Agent 10.0.0.35 2024-10-23 20:31:12,327 - INFO - Validated that VN ctest-vn-67331003 is not in any agent 2024-10-23 20:31:12,341 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67331003 info 2024-10-23 20:31:12,597 - DEBUG - No XMPP flaps were noticed during the test 2024-10-23 20:31:12,597 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-10-23 20:31:12,597 - INFO - -------------------------------------------------------------------------------- 2024-10-23 20:31:13,323 - INFO - Deleted project: ctest-TestBasicPolicy-95958009, ID : d716fa95-eac2-4dc5-ace6-6779e5492af7