2024-10-31 02:27:05,163 - INFO - Domain Default found not creating 2024-10-31 02:27:05,345 - INFO - Project ctest-TestBasicPolicy-46768958 not found, creating it 2024-10-31 02:27:05,873 - INFO - Created Project:ctest-TestBasicPolicy-46768958, ID : ea519837-aa42-4d53-9f0e-6024ac7e143a 2024-10-31 02:27:08,061 - INFO - ================================================================================ 2024-10-31 02:27:08,061 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-31 02:27:08,061 - 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-31 02:27:08,319 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.0.0.31': '0'}} with 2024-10-31 02:27:08,319 - INFO - Initial checks done. Running the testcase now 2024-10-31 02:27:08,319 - INFO - 2024-10-31 02:27:08,912 - DEBUG - Response for create_network : {'network': {'id': '7a7c84e9-97a0-475c-a596-deaa61dc2a88', 'name': 'ctest-vn-93950208', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-93950208'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:09,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dcdc433-f064-4b04-86a1-ed08ea11e47a', 'name': '', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'network_id': '7a7c84e9-97a0-475c-a596-deaa61dc2a88', 'ip_version': 4, 'cidr': '222.218.26.64/26', 'allocation_pools': [{'start': '222.218.26.66', 'end': '222.218.26.126'}], 'gateway_ip': '222.218.26.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.218.26.66', 'tags': [], 'project_id': 'ea519837aa424d539f0e6024ac7e143a'}} 2024-10-31 02:27:09,144 - INFO - Created VN ctest-vn-93950208 2024-10-31 02:27:09,201 - DEBUG - VN ctest-vn-93950208 UUID is 7a7c84e9-97a0-475c-a596-deaa61dc2a88 2024-10-31 02:27:09,507 - DEBUG - Response for create_network : {'network': {'id': '11986ae4-8a2e-48a3-a481-47d66476e645', 'name': 'ctest-vn-58759369', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-58759369'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:09,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f449ee99-26d9-4d32-85b2-646925effaec', 'name': '', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'network_id': '11986ae4-8a2e-48a3-a481-47d66476e645', 'ip_version': 4, 'cidr': '68.80.21.128/26', 'allocation_pools': [{'start': '68.80.21.130', 'end': '68.80.21.190'}], 'gateway_ip': '68.80.21.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.80.21.130', 'tags': [], 'project_id': 'ea519837aa424d539f0e6024ac7e143a'}} 2024-10-31 02:27:09,722 - INFO - Created VN ctest-vn-58759369 2024-10-31 02:27:09,776 - DEBUG - VN ctest-vn-58759369 UUID is 11986ae4-8a2e-48a3-a481-47d66476e645 2024-10-31 02:27:09,901 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208, 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-46768958:ctest-vn-58759369, 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-31 02:27:10,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a7c84e9-97a0-475c-a596-deaa61dc2a88', 'name': 'ctest-vn-93950208', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8dcdc433-f064-4b04-86a1-ed08ea11e47a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-93950208'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626']], 'subnet_ipam': [{'subnet_cidr': '222.218.26.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:10,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11986ae4-8a2e-48a3-a481-47d66476e645', 'name': 'ctest-vn-58759369', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f449ee99-26d9-4d32-85b2-646925effaec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-58759369'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626']], 'subnet_ipam': [{'subnet_cidr': '68.80.21.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:10,660 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-31 02:27:10,955 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-31 02:27:10,986 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e 2024-10-31 02:27:11,003 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a 2024-10-31 02:27:11,091 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88 2024-10-31 02:27:11,106 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88 2024-10-31 02:27:11,120 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8 2024-10-31 02:27:11,130 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8 2024-10-31 02:27:11,140 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1745adfe-2505-478a-a059-96d4792765fa 2024-10-31 02:27:11,149 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:27:11,149 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88 2024-10-31 02:27:11,163 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8 2024-10-31 02:27:11,185 - INFO - Verified VN network id 8 for VN 7a7c84e9-97a0-475c-a596-deaa61dc2a88 2024-10-31 02:27:11,185 - INFO - Verifications in API Server for VN ctest-vn-93950208 passed 2024-10-31 02:27:11,185 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88 2024-10-31 02:27:11,200 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8 2024-10-31 02:27:11,209 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8 2024-10-31 02:27:11,218 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1745adfe-2505-478a-a059-96d4792765fa 2024-10-31 02:27:11,232 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46768958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8826075508545439580', 'uuid-lslong': '11931969086132333192'}, 'enable': 'true', 'created': '2024-10-31T02:27:08', 'last-modified': '2024-10-31T02:27:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041517'} 2024-10-31 02:27:11,239 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:27:11,239 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93950208 passed 2024-10-31 02:27:11,239 - DEBUG - ====Verifying policy data for ctest-vn-93950208 in API_Server ====== 2024-10-31 02:27:11,239 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-31 02:27:11,246 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e 2024-10-31 02:27:11,260 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a 2024-10-31 02:27:11,341 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88 2024-10-31 02:27:11,357 - DEBUG - ==>Verifying data for policy with id: c036eef5-1f03-4b8c-995d-c717c5f6a7fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626'] 2024-10-31 02:27:11,357 - INFO - VN ctest-vn-93950208 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:27:11,357 - DEBUG - Verifying the vn in opserver 2024-10-31 02:27:11,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208 virtual network link through opserver 10.0.0.31 2024-10-31 02:27:11,357 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-31 02:27:11,653 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-31 02:27:11,715 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208?flat'} 2024-10-31 02:27:11,715 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208 is found in opserver 2024-10-31 02:27:11,728 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:27:11,734 - DEBUG - VRF ids for VN ctest-vn-93950208: {} 2024-10-31 02:27:11,734 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-31 02:27:11,742 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e 2024-10-31 02:27:11,759 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a 2024-10-31 02:27:11,846 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645 2024-10-31 02:27:11,864 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645 2024-10-31 02:27:11,881 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee 2024-10-31 02:27:11,893 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee 2024-10-31 02:27:11,904 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8e8422d-489b-49ee-b96d-269436cc6e14 2024-10-31 02:27:11,913 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:27:11,913 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645 2024-10-31 02:27:11,926 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee 2024-10-31 02:27:11,947 - INFO - Verified VN network id 9 for VN 11986ae4-8a2e-48a3-a481-47d66476e645 2024-10-31 02:27:11,948 - INFO - Verifications in API Server for VN ctest-vn-58759369 passed 2024-10-31 02:27:11,948 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645 2024-10-31 02:27:11,962 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee 2024-10-31 02:27:11,971 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee 2024-10-31 02:27:11,980 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8e8422d-489b-49ee-b96d-269436cc6e14 2024-10-31 02:27:11,994 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46768958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1267880824908171427', 'uuid-lslong': '11853834680349943365'}, 'enable': 'true', 'created': '2024-10-31T02:27:09', 'last-modified': '2024-10-31T02:27:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.556500'} 2024-10-31 02:27:12,000 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:27:12,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58759369 passed 2024-10-31 02:27:12,001 - DEBUG - ====Verifying policy data for ctest-vn-58759369 in API_Server ====== 2024-10-31 02:27:12,001 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-31 02:27:12,007 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e 2024-10-31 02:27:12,020 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a 2024-10-31 02:27:12,106 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645 2024-10-31 02:27:12,120 - DEBUG - ==>Verifying data for policy with id: c036eef5-1f03-4b8c-995d-c717c5f6a7fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626'] 2024-10-31 02:27:12,120 - INFO - VN ctest-vn-58759369 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:27:12,120 - DEBUG - Verifying the vn in opserver 2024-10-31 02:27:12,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369 virtual network link through opserver 10.0.0.31 2024-10-31 02:27:12,120 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-31 02:27:12,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369?flat'} 2024-10-31 02:27:12,132 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369 is found in opserver 2024-10-31 02:27:12,143 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:27:12,149 - DEBUG - VRF ids for VN ctest-vn-58759369: {} 2024-10-31 02:27:12,205 - DEBUG - Services list from nova: [, , ] 2024-10-31 02:27:13,229 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2183-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2183-1) 2024-10-31 02:27:14,480 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2183-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2183-1) 2024-10-31 02:27:14,481 - INFO - Waiting for VM ctest-TestBasicPolicy-46768958-64376606 to be up.. 2024-10-31 02:27:14,578 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-31 02:27:19,670 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:27:19,670 - INFO - VM name : ctest-TestBasicPolicy-46768958-64376606 2024-10-31 02:27:19,763 - DEBUG - VM ctest-TestBasicPolicy-46768958-64376606 ID is 8bedd9a1-6439-4bdf-8db6-6e08723abdb3 2024-10-31 02:27:19,783 - DEBUG - VM ctest-TestBasicPolicy-46768958-64376606 launched on Node cn-jenkins-deploy-platform-ansible-os-2183-1. 2024-10-31 02:27:19,898 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/8bedd9a1-6439-4bdf-8db6-6e08723abdb3 2024-10-31 02:27:19,908 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/dfc34810-320b-451b-b94f-d9f8d8b81631 2024-10-31 02:27:23,178 - 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 1010ms') 2024-10-31 02:27:23,178 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46768958-64376606 failed! 2024-10-31 02:27:23,237 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208 is 222.218.26.65 and allocation pool is NOT set 2024-10-31 02:27:25,296 - 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.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.427 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.427/1.586/2.745/1.159 ms') 2024-10-31 02:27:25,296 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46768958-64376606 passed 2024-10-31 02:27:25,457 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:25,457 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46768958-64376606, IP 222.218.26.67, Port 22 2024-10-31 02:27:25,620 - DEBUG - VM ctest-TestBasicPolicy-46768958-64376606 is ready for SSH connections 2024-10-31 02:27:25,620 - INFO - Waiting for VM ctest-TestBasicPolicy-46768958-76231885 to be up.. 2024-10-31 02:27:25,707 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:27:25,707 - INFO - VM name : ctest-TestBasicPolicy-46768958-76231885 2024-10-31 02:27:25,792 - DEBUG - VM ctest-TestBasicPolicy-46768958-76231885 ID is 1de417c3-50c5-4d72-ad90-87ac0497a380 2024-10-31 02:27:25,792 - DEBUG - VM ctest-TestBasicPolicy-46768958-76231885 launched on Node cn-jenkins-deploy-platform-ansible-os-2183-1. 2024-10-31 02:27:25,873 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/1de417c3-50c5-4d72-ad90-87ac0497a380 2024-10-31 02:27:25,884 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/a27b8005-634d-4a36-9f3f-1ace12b90a26 2024-10-31 02:27:27,138 - 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.31 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.883 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.883/2.095/3.308/1.212 ms') 2024-10-31 02:27:27,138 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-46768958-76231885 passed 2024-10-31 02:27:27,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:27,297 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46768958-76231885, IP 68.80.21.131, Port 22 2024-10-31 02:27:27,453 - DEBUG - VM ctest-TestBasicPolicy-46768958-76231885 is ready for SSH connections 2024-10-31 02:27:27,453 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:27,453 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.80.21.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-31 02:27:27,453 - DEBUG - ping -s 56 -c 3 -W 1 68.80.21.131 2024-10-31 02:27:31,154 - DEBUG - PING 68.80.21.131 (68.80.21.131): 56 data bytes 64 bytes from 68.80.21.131: seq=0 ttl=63 time=3.078 ms 64 bytes from 68.80.21.131: seq=1 ttl=63 time=0.740 ms 64 bytes from 68.80.21.131: seq=2 ttl=63 time=1.927 ms --- 68.80.21.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.740/1.915/3.078 ms 2024-10-31 02:27:31,154 - INFO - Ping to IP 68.80.21.131 from VM ctest-TestBasicPolicy-46768958-64376606 passed 2024-10-31 02:27:31,356 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c036eef5-1f03-4b8c-995d-c717c5f6a7fd", "href": "http://10.0.0.31:8082/network-policy/c036eef5-1f03-4b8c-995d-c717c5f6a7fd"}} 2024-10-31 02:27:31,356 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:31,357 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.80.21.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-31 02:27:31,357 - DEBUG - ping -s 56 -c 3 -W 1 68.80.21.131 2024-10-31 02:27:34,566 - DEBUG - PING 68.80.21.131 (68.80.21.131): 56 data bytes 64 bytes from 68.80.21.131: seq=0 ttl=63 time=1.392 ms --- 68.80.21.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.392/1.392/1.392 ms 2024-10-31 02:27:34,567 - WARNING - Ping to IP 68.80.21.131 from VM ctest-TestBasicPolicy-46768958-64376606 failed 2024-10-31 02:27:34,567 - INFO - Deleting VM ctest-TestBasicPolicy-46768958-76231885 2024-10-31 02:27:34,631 - INFO - Deleting VM ctest-TestBasicPolicy-46768958-64376606 2024-10-31 02:27:35,065 - INFO - Deleted policy ctest-policy-allow-all-05933626 2024-10-31 02:27:35,065 - INFO - Deleting VN ctest-vn-58759369 2024-10-31 02:27:35,109 - DEBUG - VN 11986ae4-8a2e-48a3-a481-47d66476e645 still in use: Unable to complete operation on network 11986ae4-8a2e-48a3-a481-47d66476e645. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f719cfde-1097-4161-85b0-530e6cd057d1'] 2024-10-31 02:27:35,109 - WARNING - Deleting VN ctest-vn-58759369 failed..Will retry 2024-10-31 02:27:37,218 - DEBUG - Response for deleting network () 2024-10-31 02:27:37,218 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee 2024-10-31 02:27:37,225 - DEBUG - Response Code: 404 2024-10-31 02:27:37,225 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-31 02:27:37,232 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e 2024-10-31 02:27:37,292 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a 2024-10-31 02:27:37,378 - INFO - Validated that VN ctest-vn-58759369 is not found in API Server 2024-10-31 02:27:37,389 - DEBUG - VN ctest-vn-58759369 is not present in Agent 10.0.0.31 2024-10-31 02:27:37,389 - INFO - Validated that VN ctest-vn-58759369 is not in any agent 2024-10-31 02:27:37,405 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58759369 info 2024-10-31 02:27:37,405 - INFO - Deleting VN ctest-vn-93950208 2024-10-31 02:27:37,523 - DEBUG - Response for deleting network () 2024-10-31 02:27:37,523 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8 2024-10-31 02:27:37,529 - DEBUG - Response Code: 404 2024-10-31 02:27:37,529 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-31 02:27:37,537 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e 2024-10-31 02:27:37,595 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a 2024-10-31 02:27:37,675 - INFO - Validated that VN ctest-vn-93950208 is not found in API Server 2024-10-31 02:27:37,688 - DEBUG - VN ctest-vn-93950208 is not present in Agent 10.0.0.31 2024-10-31 02:27:37,688 - INFO - Validated that VN ctest-vn-93950208 is not in any agent 2024-10-31 02:27:37,707 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93950208 info 2024-10-31 02:27:37,962 - DEBUG - No XMPP flaps were noticed during the test 2024-10-31 02:27:37,962 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-10-31 02:27:37,963 - INFO - -------------------------------------------------------------------------------- 2024-10-31 02:27:38,677 - INFO - Deleted project: ctest-TestBasicPolicy-46768958, ID : ea519837-aa42-4d53-9f0e-6024ac7e143a