2024-11-14 18:02:07,980 - INFO - Domain Default found not creating 2024-11-14 18:02:08,152 - INFO - Project ctest-TestBasicPolicy-08375752 not found, creating it 2024-11-14 18:02:08,641 - INFO - Created Project:ctest-TestBasicPolicy-08375752, ID : bada6a57-2013-4bba-9262-8fc36dc89168 2024-11-14 18:02:10,228 - INFO - ================================================================================ 2024-11-14 18:02:10,228 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-14 18:02:10,228 - 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 18:02:10,489 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.14': '0'}} with 2024-11-14 18:02:10,489 - INFO - Initial checks done. Running the testcase now 2024-11-14 18:02:10,489 - INFO - 2024-11-14 18:02:11,069 - DEBUG - Response for create_network : {'network': {'id': '21b290d2-42b5-49db-b125-c86e0f3027f0', 'name': 'ctest-vn-79582299', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-79582299'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 18:02:11,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '426bdcc0-bc54-460f-8078-4ed78f999418', 'name': '', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'network_id': '21b290d2-42b5-49db-b125-c86e0f3027f0', 'ip_version': 4, 'cidr': '67.81.175.192/26', 'allocation_pools': [{'start': '67.81.175.194', 'end': '67.81.175.254'}], 'gateway_ip': '67.81.175.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.81.175.194', 'tags': [], 'project_id': 'bada6a5720134bba92628fc36dc89168'}} 2024-11-14 18:02:11,258 - INFO - Created VN ctest-vn-79582299 2024-11-14 18:02:11,315 - DEBUG - VN ctest-vn-79582299 UUID is 21b290d2-42b5-49db-b125-c86e0f3027f0 2024-11-14 18:02:11,649 - DEBUG - Response for create_network : {'network': {'id': 'b575a4c2-a79b-4000-a526-86eb53c27bd6', 'name': 'ctest-vn-19651961', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-19651961'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 18:02:11,844 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7f5fc59-828d-4783-970b-0a3240df588b', 'name': '', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'network_id': 'b575a4c2-a79b-4000-a526-86eb53c27bd6', 'ip_version': 4, 'cidr': '27.218.111.64/26', 'allocation_pools': [{'start': '27.218.111.66', 'end': '27.218.111.126'}], 'gateway_ip': '27.218.111.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.218.111.66', 'tags': [], 'project_id': 'bada6a5720134bba92628fc36dc89168'}} 2024-11-14 18:02:11,865 - INFO - Created VN ctest-vn-19651961 2024-11-14 18:02:11,922 - DEBUG - VN ctest-vn-19651961 UUID is b575a4c2-a79b-4000-a526-86eb53c27bd6 2024-11-14 18:02:12,047 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299, 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-08375752:ctest-vn-19651961, 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 18:02:12,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21b290d2-42b5-49db-b125-c86e0f3027f0', 'name': 'ctest-vn-79582299', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['426bdcc0-bc54-460f-8078-4ed78f999418'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-79582299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278']], 'subnet_ipam': [{'subnet_cidr': '67.81.175.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-14 18:02:12,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b575a4c2-a79b-4000-a526-86eb53c27bd6', 'name': 'ctest-vn-19651961', 'tenant_id': 'bada6a5720134bba92628fc36dc89168', 'project_id': 'bada6a5720134bba92628fc36dc89168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7f5fc59-828d-4783-970b-0a3240df588b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-vn-19651961'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278']], 'subnet_ipam': [{'subnet_cidr': '27.218.111.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-14 18:02:12,819 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-14 18:02:13,114 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-14 18:02:13,148 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54 2024-11-14 18:02:13,165 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168 2024-11-14 18:02:13,254 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0 2024-11-14 18:02:13,273 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0 2024-11-14 18:02:13,288 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a 2024-11-14 18:02:13,300 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a 2024-11-14 18:02:13,311 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ded8e917-4f39-46d4-8662-e01bf7275f35 2024-11-14 18:02:13,320 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-14 18:02:13,320 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0 2024-11-14 18:02:13,334 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a 2024-11-14 18:02:13,355 - INFO - Verified VN network id 8 for VN 21b290d2-42b5-49db-b125-c86e0f3027f0 2024-11-14 18:02:13,355 - INFO - Verifications in API Server for VN ctest-vn-79582299 passed 2024-11-14 18:02:13,355 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0 2024-11-14 18:02:13,371 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a 2024-11-14 18:02:13,380 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a 2024-11-14 18:02:13,389 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ded8e917-4f39-46d4-8662-e01bf7275f35 2024-11-14 18:02:13,405 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375752', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2428162381842827739', 'uuid-lslong': '12764829093878310896'}, 'enable': 'true', 'created': '2024-11-14T18:02:11', 'last-modified': '2024-11-14T18:02:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047537'} 2024-11-14 18:02:13,416 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-14 18:02:13,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79582299 passed 2024-11-14 18:02:13,416 - DEBUG - ====Verifying policy data for ctest-vn-79582299 in API_Server ====== 2024-11-14 18:02:13,416 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-14 18:02:13,424 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54 2024-11-14 18:02:13,441 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168 2024-11-14 18:02:13,532 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/21b290d2-42b5-49db-b125-c86e0f3027f0 2024-11-14 18:02:13,554 - DEBUG - ==>Verifying data for policy with id: 8078bfb1-47c2-4375-8e1f-ef8b850f0b45, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278'] 2024-11-14 18:02:13,554 - INFO - VN ctest-vn-79582299 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-14 18:02:13,554 - DEBUG - Verifying the vn in opserver 2024-11-14 18:02:13,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299 virtual network link through opserver 10.0.0.43 2024-11-14 18:02:13,555 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-11-14 18:02:13,852 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-11-14 18:02:13,918 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299?flat'} 2024-11-14 18:02:13,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299 is found in opserver 2024-11-14 18:02:13,929 - DEBUG - Do not have enough data to verify VN in agent 2024-11-14 18:02:13,935 - DEBUG - VRF ids for VN ctest-vn-79582299: {} 2024-11-14 18:02:13,935 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-14 18:02:13,941 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54 2024-11-14 18:02:13,954 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168 2024-11-14 18:02:14,031 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6 2024-11-14 18:02:14,048 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6 2024-11-14 18:02:14,062 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb 2024-11-14 18:02:14,074 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb 2024-11-14 18:02:14,084 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/12d45878-0770-4b7e-a2cf-8eab420db2fc 2024-11-14 18:02:14,092 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-14 18:02:14,092 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6 2024-11-14 18:02:14,106 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb 2024-11-14 18:02:14,134 - INFO - Verified VN network id 9 for VN b575a4c2-a79b-4000-a526-86eb53c27bd6 2024-11-14 18:02:14,135 - INFO - Verifications in API Server for VN ctest-vn-19651961 passed 2024-11-14 18:02:14,135 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6 2024-11-14 18:02:14,155 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb 2024-11-14 18:02:14,164 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb 2024-11-14 18:02:14,173 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/12d45878-0770-4b7e-a2cf-8eab420db2fc 2024-11-14 18:02:14,188 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375752', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13075538249082683392', 'uuid-lslong': '11900347410653805526'}, 'enable': 'true', 'created': '2024-11-14T18:02:11', 'last-modified': '2024-11-14T18:02:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.576391'} 2024-11-14 18:02:14,195 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-14 18:02:14,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19651961 passed 2024-11-14 18:02:14,195 - DEBUG - ====Verifying policy data for ctest-vn-19651961 in API_Server ====== 2024-11-14 18:02:14,195 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-14 18:02:14,202 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54 2024-11-14 18:02:14,224 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168 2024-11-14 18:02:14,303 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b575a4c2-a79b-4000-a526-86eb53c27bd6 2024-11-14 18:02:14,317 - DEBUG - ==>Verifying data for policy with id: 8078bfb1-47c2-4375-8e1f-ef8b850f0b45, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375752', 'ctest-policy-allow-all-98019278'] 2024-11-14 18:02:14,317 - INFO - VN ctest-vn-19651961 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-14 18:02:14,317 - DEBUG - Verifying the vn in opserver 2024-11-14 18:02:14,317 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961 virtual network link through opserver 10.0.0.43 2024-11-14 18:02:14,317 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-11-14 18:02:14,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961?flat'} 2024-11-14 18:02:14,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-19651961 is found in opserver 2024-11-14 18:02:14,341 - DEBUG - Do not have enough data to verify VN in agent 2024-11-14 18:02:14,346 - DEBUG - VRF ids for VN ctest-vn-19651961: {} 2024-11-14 18:02:14,404 - DEBUG - Services list from nova: [, , ] 2024-11-14 18:02:15,487 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2302-1) 2024-11-14 18:02:16,853 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2302-1) 2024-11-14 18:02:16,853 - INFO - Waiting for VM ctest-TestBasicPolicy-08375752-57737146 to be up.. 2024-11-14 18:02:16,964 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-14 18:02:22,061 - DEBUG - VM is in ACTIVE state now 2024-11-14 18:02:22,061 - INFO - VM name : ctest-TestBasicPolicy-08375752-57737146 2024-11-14 18:02:22,164 - DEBUG - VM ctest-TestBasicPolicy-08375752-57737146 ID is 67a48d9a-bf49-4165-b07b-7e95a7ddf0d3 2024-11-14 18:02:22,184 - DEBUG - VM ctest-TestBasicPolicy-08375752-57737146 launched on Node cn-jenkins-deploy-platform-ansible-os-2302-1 2024-11-14 18:02:22,279 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/67a48d9a-bf49-4165-b07b-7e95a7ddf0d3 2024-11-14 18:02:22,291 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/d4e83450-5adf-4f3e-8483-d5e37cbe4be8 2024-11-14 18:02:25,569 - 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 1015ms') 2024-11-14 18:02:25,569 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08375752-57737146 failed! 2024-11-14 18:02:25,631 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08375752:ctest-vn-79582299 is 67.81.175.193 and allocation pool is NOT set 2024-11-14 18:02:27,690 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.454 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.454/3.892/7.330/3.438 ms') 2024-11-14 18:02:27,691 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08375752-57737146 passed 2024-11-14 18:02:27,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 18:02:27,847 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08375752-57737146, IP 67.81.175.195, Port 22 2024-11-14 18:02:28,003 - DEBUG - VM ctest-TestBasicPolicy-08375752-57737146 is ready for SSH connections 2024-11-14 18:02:28,003 - INFO - Waiting for VM ctest-TestBasicPolicy-08375752-33281456 to be up.. 2024-11-14 18:02:28,094 - DEBUG - VM is in ACTIVE state now 2024-11-14 18:02:28,094 - INFO - VM name : ctest-TestBasicPolicy-08375752-33281456 2024-11-14 18:02:28,182 - DEBUG - VM ctest-TestBasicPolicy-08375752-33281456 ID is 54e33694-67b7-49d2-8514-17be5ffcb72c 2024-11-14 18:02:28,183 - DEBUG - VM ctest-TestBasicPolicy-08375752-33281456 launched on Node cn-jenkins-deploy-platform-ansible-os-2302-1 2024-11-14 18:02:28,264 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/54e33694-67b7-49d2-8514-17be5ffcb72c 2024-11-14 18:02:28,274 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/0289685b-c212-409c-9e4e-88b5d1f36e90 2024-11-14 18:02:29,532 - 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.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.25 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 = 1.246/2.884/4.522/1.638 ms') 2024-11-14 18:02:29,532 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08375752-33281456 passed 2024-11-14 18:02:29,691 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 18:02:29,691 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08375752-33281456, IP 27.218.111.67, Port 22 2024-11-14 18:02:29,850 - DEBUG - VM ctest-TestBasicPolicy-08375752-33281456 is ready for SSH connections 2024-11-14 18:02:29,850 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 18:02:29,850 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.218.111.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-11-14 18:02:29,850 - DEBUG - ping -s 56 -c 3 -W 1 27.218.111.67 2024-11-14 18:02:33,846 - DEBUG - PING 27.218.111.67 (27.218.111.67): 56 data bytes 64 bytes from 27.218.111.67: seq=0 ttl=63 time=3.971 ms 64 bytes from 27.218.111.67: seq=1 ttl=63 time=1.043 ms 64 bytes from 27.218.111.67: seq=2 ttl=63 time=1.040 ms --- 27.218.111.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.040/2.018/3.971 ms 2024-11-14 18:02:33,846 - INFO - Ping to IP 27.218.111.67 from VM ctest-TestBasicPolicy-08375752-57737146 passed 2024-11-14 18:02:34,034 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8078bfb1-47c2-4375-8e1f-ef8b850f0b45", "href": "http://10.0.0.43:8082/network-policy/8078bfb1-47c2-4375-8e1f-ef8b850f0b45"}} 2024-11-14 18:02:34,034 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 18:02:34,035 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.218.111.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-11-14 18:02:34,035 - DEBUG - ping -s 56 -c 3 -W 1 27.218.111.67 2024-11-14 18:02:37,268 - DEBUG - PING 27.218.111.67 (27.218.111.67): 56 data bytes 64 bytes from 27.218.111.67: seq=0 ttl=63 time=1.453 ms --- 27.218.111.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.453/1.453/1.453 ms 2024-11-14 18:02:37,268 - WARNING - Ping to IP 27.218.111.67 from VM ctest-TestBasicPolicy-08375752-57737146 failed 2024-11-14 18:02:37,268 - INFO - Deleting VM ctest-TestBasicPolicy-08375752-33281456 2024-11-14 18:02:37,344 - INFO - Deleting VM ctest-TestBasicPolicy-08375752-57737146 2024-11-14 18:02:37,758 - INFO - Deleted policy ctest-policy-allow-all-98019278 2024-11-14 18:02:37,758 - INFO - Deleting VN ctest-vn-19651961 2024-11-14 18:02:37,796 - DEBUG - VN b575a4c2-a79b-4000-a526-86eb53c27bd6 still in use: Unable to complete operation on network b575a4c2-a79b-4000-a526-86eb53c27bd6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e1ad396d-ae65-4c3e-9f4d-38a096f86d3c'] 2024-11-14 18:02:37,796 - WARNING - Deleting VN ctest-vn-19651961 failed..Will retry 2024-11-14 18:02:39,945 - DEBUG - Response for deleting network () 2024-11-14 18:02:39,945 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/8b94a073-a385-42fd-a8da-27e048279dbb 2024-11-14 18:02:39,952 - DEBUG - Response Code: 404 2024-11-14 18:02:39,953 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-14 18:02:39,961 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54 2024-11-14 18:02:40,018 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168 2024-11-14 18:02:40,100 - INFO - Validated that VN ctest-vn-19651961 is not found in API Server 2024-11-14 18:02:40,111 - DEBUG - VN ctest-vn-19651961 is not present in Agent 10.0.0.43 2024-11-14 18:02:40,111 - INFO - Validated that VN ctest-vn-19651961 is not in any agent 2024-11-14 18:02:40,128 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19651961 info 2024-11-14 18:02:40,128 - INFO - Deleting VN ctest-vn-79582299 2024-11-14 18:02:40,251 - DEBUG - Response for deleting network () 2024-11-14 18:02:40,251 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/3419dfe8-8466-4175-950e-aa3343cec36a 2024-11-14 18:02:40,258 - DEBUG - Response Code: 404 2024-11-14 18:02:40,258 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-11-14 18:02:40,264 - DEBUG - Requesting: http://10.0.0.43:8082/domain/a40fbc93-851d-4f87-8b58-bf77ed8e2d54 2024-11-14 18:02:40,321 - DEBUG - Requesting: http://10.0.0.43:8082/project/bada6a57-2013-4bba-9262-8fc36dc89168 2024-11-14 18:02:40,401 - INFO - Validated that VN ctest-vn-79582299 is not found in API Server 2024-11-14 18:02:40,413 - DEBUG - VN ctest-vn-79582299 is not present in Agent 10.0.0.43 2024-11-14 18:02:40,413 - INFO - Validated that VN ctest-vn-79582299 is not in any agent 2024-11-14 18:02:40,433 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79582299 info 2024-11-14 18:02:40,693 - DEBUG - No XMPP flaps were noticed during the test
2024-11-14 18:02:40,693 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-14 18:02:40,693 - INFO - -------------------------------------------------------------------------------- 2024-11-14 18:02:41,444 - INFO - Deleted project: ctest-TestBasicPolicy-08375752, ID : bada6a57-2013-4bba-9262-8fc36dc89168