2024-11-06 11:46:26,798 - INFO - Domain Default found not creating 2024-11-06 11:46:26,991 - INFO - Project ctest-TestBasicPolicy-19999665 not found, creating it 2024-11-06 11:46:27,478 - INFO - Created Project:ctest-TestBasicPolicy-19999665, ID : a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2 2024-11-06 11:46:29,224 - INFO - ================================================================================ 2024-11-06 11:46:29,225 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-06 11:46:29,225 - 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-06 11:46:29,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.12': '0'}} with 2024-11-06 11:46:29,484 - INFO - Initial checks done. Running the testcase now 2024-11-06 11:46:29,484 - INFO - 2024-11-06 11:46:30,146 - DEBUG - Response for create_network : {'network': {'id': 'fc1b7aab-6a84-4ce3-aa30-a1164367b05b', 'name': 'ctest-vn-51734868', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-51734868'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 11:46:30,366 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad908691-d769-46b3-9927-e8f519baf4a2', 'name': '', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'network_id': 'fc1b7aab-6a84-4ce3-aa30-a1164367b05b', 'ip_version': 4, 'cidr': '150.145.157.192/26', 'allocation_pools': [{'start': '150.145.157.194', 'end': '150.145.157.254'}], 'gateway_ip': '150.145.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.145.157.194', 'tags': [], 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2'}} 2024-11-06 11:46:30,398 - INFO - Created VN ctest-vn-51734868 2024-11-06 11:46:30,453 - DEBUG - VN ctest-vn-51734868 UUID is fc1b7aab-6a84-4ce3-aa30-a1164367b05b 2024-11-06 11:46:30,808 - DEBUG - Response for create_network : {'network': {'id': 'fc3cad17-16c5-49bc-a470-a8562da41f5e', 'name': 'ctest-vn-33602686', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-33602686'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 11:46:31,048 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3da5df7-392e-4477-ad4c-5a036bccddab', 'name': '', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'network_id': 'fc3cad17-16c5-49bc-a470-a8562da41f5e', 'ip_version': 4, 'cidr': '93.167.208.128/26', 'allocation_pools': [{'start': '93.167.208.130', 'end': '93.167.208.190'}], 'gateway_ip': '93.167.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.167.208.130', 'tags': [], 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2'}} 2024-11-06 11:46:31,072 - INFO - Created VN ctest-vn-33602686 2024-11-06 11:46:31,125 - DEBUG - VN ctest-vn-33602686 UUID is fc3cad17-16c5-49bc-a470-a8562da41f5e 2024-11-06 11:46:31,260 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868, 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-19999665:ctest-vn-33602686, 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-06 11:46:31,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc1b7aab-6a84-4ce3-aa30-a1164367b05b', 'name': 'ctest-vn-51734868', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad908691-d769-46b3-9927-e8f519baf4a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-51734868'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160']], 'subnet_ipam': [{'subnet_cidr': '150.145.157.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 11:46:31,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc3cad17-16c5-49bc-a470-a8562da41f5e', 'name': 'ctest-vn-33602686', 'tenant_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'project_id': 'a6ae0f1d433e47138a8a76cb8c9adbd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3da5df7-392e-4477-ad4c-5a036bccddab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-vn-33602686'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160']], 'subnet_ipam': [{'subnet_cidr': '93.167.208.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 11:46:32,017 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 11:46:32,361 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 11:46:32,401 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d 2024-11-06 11:46:32,422 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2 2024-11-06 11:46:32,505 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b 2024-11-06 11:46:32,520 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b 2024-11-06 11:46:32,534 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0 2024-11-06 11:46:32,545 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0 2024-11-06 11:46:32,555 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5e7a78b5-00b8-4a87-b3f9-c1ffc2f4f821 2024-11-06 11:46:32,565 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 11:46:32,565 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b 2024-11-06 11:46:32,578 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0 2024-11-06 11:46:32,597 - INFO - Verified VN network id 8 for VN fc1b7aab-6a84-4ce3-aa30-a1164367b05b 2024-11-06 11:46:32,598 - INFO - Verifications in API Server for VN ctest-vn-51734868 passed 2024-11-06 11:46:32,598 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b 2024-11-06 11:46:32,611 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0 2024-11-06 11:46:32,621 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0 2024-11-06 11:46:32,629 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5e7a78b5-00b8-4a87-b3f9-c1ffc2f4f821 2024-11-06 11:46:32,643 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19999665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18166248398574079203', 'uuid-lslong': '12263478902322081883'}, 'enable': 'true', 'created': '2024-11-06T11:46:30', 'last-modified': '2024-11-06T11:46:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.081821'} 2024-11-06 11:46:32,651 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 11:46:32,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51734868 passed 2024-11-06 11:46:32,651 - DEBUG - ====Verifying policy data for ctest-vn-51734868 in API_Server ====== 2024-11-06 11:46:32,651 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 11:46:32,660 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d 2024-11-06 11:46:32,674 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2 2024-11-06 11:46:32,748 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc1b7aab-6a84-4ce3-aa30-a1164367b05b 2024-11-06 11:46:32,757 - DEBUG - ==>Verifying data for policy with id: 80830134-d04a-405d-9d36-f19f7bd1d100, fqn: ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160'] 2024-11-06 11:46:32,758 - INFO - VN ctest-vn-51734868 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 11:46:32,758 - DEBUG - Verifying the vn in opserver 2024-11-06 11:46:32,758 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868 virtual network link through opserver 10.0.0.22 2024-11-06 11:46:32,758 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-06 11:46:33,107 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-06 11:46:33,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868?flat'} 2024-11-06 11:46:33,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868 is found in opserver 2024-11-06 11:46:33,194 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 11:46:33,202 - DEBUG - VRF ids for VN ctest-vn-51734868: {} 2024-11-06 11:46:33,202 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 11:46:33,210 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d 2024-11-06 11:46:33,228 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2 2024-11-06 11:46:33,310 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e 2024-11-06 11:46:33,325 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e 2024-11-06 11:46:33,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f 2024-11-06 11:46:33,349 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f 2024-11-06 11:46:33,359 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/76f0b5c0-929c-4542-a434-4a807f0cf2fa 2024-11-06 11:46:33,369 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 11:46:33,369 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e 2024-11-06 11:46:33,382 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f 2024-11-06 11:46:33,401 - INFO - Verified VN network id 9 for VN fc3cad17-16c5-49bc-a470-a8562da41f5e 2024-11-06 11:46:33,402 - INFO - Verifications in API Server for VN ctest-vn-33602686 passed 2024-11-06 11:46:33,402 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e 2024-11-06 11:46:33,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f 2024-11-06 11:46:33,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f 2024-11-06 11:46:33,433 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/76f0b5c0-929c-4542-a434-4a807f0cf2fa 2024-11-06 11:46:33,449 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19999665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18175592510838360508', 'uuid-lslong': '11849155707698159454'}, 'enable': 'true', 'created': '2024-11-06T11:46:30', 'last-modified': '2024-11-06T11:46:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.625168'} 2024-11-06 11:46:33,458 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 11:46:33,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33602686 passed 2024-11-06 11:46:33,459 - DEBUG - ====Verifying policy data for ctest-vn-33602686 in API_Server ====== 2024-11-06 11:46:33,459 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 11:46:33,467 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d 2024-11-06 11:46:33,484 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2 2024-11-06 11:46:33,566 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc3cad17-16c5-49bc-a470-a8562da41f5e 2024-11-06 11:46:33,578 - DEBUG - ==>Verifying data for policy with id: 80830134-d04a-405d-9d36-f19f7bd1d100, fqn: ['default-domain', 'ctest-TestBasicPolicy-19999665', 'ctest-policy-allow-all-25695160'] 2024-11-06 11:46:33,578 - INFO - VN ctest-vn-33602686 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 11:46:33,579 - DEBUG - Verifying the vn in opserver 2024-11-06 11:46:33,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686 virtual network link through opserver 10.0.0.22 2024-11-06 11:46:33,579 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-06 11:46:33,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686?flat'} 2024-11-06 11:46:33,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-33602686 is found in opserver 2024-11-06 11:46:33,610 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 11:46:33,617 - DEBUG - VRF ids for VN ctest-vn-33602686: {} 2024-11-06 11:46:33,707 - DEBUG - Services list from nova: [, , ] 2024-11-06 11:46:34,936 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2201-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2201-1) 2024-11-06 11:46:36,435 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2201-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2201-1) 2024-11-06 11:46:36,436 - INFO - Waiting for VM ctest-TestBasicPolicy-19999665-35761457 to be up.. 2024-11-06 11:46:36,560 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 11:46:41,671 - DEBUG - VM is in ACTIVE state now 2024-11-06 11:46:41,671 - INFO - VM name : ctest-TestBasicPolicy-19999665-35761457 2024-11-06 11:46:41,774 - DEBUG - VM ctest-TestBasicPolicy-19999665-35761457 ID is 28504937-496f-4c19-b235-9afdb2689f99 2024-11-06 11:46:41,801 - DEBUG - VM ctest-TestBasicPolicy-19999665-35761457 launched on Node cn-jenkins-deploy-platform-ansible-os-2201-1 2024-11-06 11:46:41,909 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/28504937-496f-4c19-b235-9afdb2689f99 2024-11-06 11:46:41,922 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/3d4819be-b4de-4066-817c-718cfee0980e 2024-11-06 11:46:45,197 - 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 1019ms') 2024-11-06 11:46:45,197 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19999665-35761457 failed! 2024-11-06 11:46:45,257 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19999665:ctest-vn-51734868 is 150.145.157.193 and allocation pool is NOT set 2024-11-06 11:46:47,336 - 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=14.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.31 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 = 3.310/8.997/14.685/5.687 ms') 2024-11-06 11:46:47,337 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19999665-35761457 passed 2024-11-06 11:46:47,501 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 11:46:47,501 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19999665-35761457, IP 150.145.157.195, Port 22 2024-11-06 11:46:47,557 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-06 11:46:47,667 - DEBUG - VM ctest-TestBasicPolicy-19999665-35761457 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-06 11:46:52,668 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 11:46:52,668 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19999665-35761457, IP 150.145.157.195, Port 22 2024-11-06 11:46:52,837 - DEBUG - VM ctest-TestBasicPolicy-19999665-35761457 is ready for SSH connections 2024-11-06 11:46:52,838 - INFO - Waiting for VM ctest-TestBasicPolicy-19999665-16725972 to be up.. 2024-11-06 11:46:52,957 - DEBUG - VM is in ACTIVE state now 2024-11-06 11:46:52,957 - INFO - VM name : ctest-TestBasicPolicy-19999665-16725972 2024-11-06 11:46:53,061 - DEBUG - VM ctest-TestBasicPolicy-19999665-16725972 ID is 534188c4-4e78-4eaa-9758-a45250752745 2024-11-06 11:46:53,061 - DEBUG - VM ctest-TestBasicPolicy-19999665-16725972 launched on Node cn-jenkins-deploy-platform-ansible-os-2201-1 2024-11-06 11:46:53,170 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/534188c4-4e78-4eaa-9758-a45250752745 2024-11-06 11:46:53,181 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/f30b955c-d393-4840-95a9-c4e3fb30f933 2024-11-06 11:46:54,445 - 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=5.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.421 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.421/3.151/5.881/2.730 ms') 2024-11-06 11:46:54,445 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-19999665-16725972 passed 2024-11-06 11:46:54,597 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 11:46:54,597 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19999665-16725972, IP 93.167.208.131, Port 22 2024-11-06 11:46:54,767 - DEBUG - VM ctest-TestBasicPolicy-19999665-16725972 is ready for SSH connections 2024-11-06 11:46:54,767 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 11:46:54,767 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.167.208.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-06 11:46:54,767 - DEBUG - ping -s 56 -c 3 -W 1 93.167.208.131 2024-11-06 11:46:58,961 - DEBUG - PING 93.167.208.131 (93.167.208.131): 56 data bytes 64 bytes from 93.167.208.131: seq=0 ttl=63 time=4.491 ms 64 bytes from 93.167.208.131: seq=1 ttl=63 time=0.819 ms 64 bytes from 93.167.208.131: seq=2 ttl=63 time=1.176 ms --- 93.167.208.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.819/2.162/4.491 ms 2024-11-06 11:46:58,961 - INFO - Ping to IP 93.167.208.131 from VM ctest-TestBasicPolicy-19999665-35761457 passed 2024-11-06 11:46:59,152 - DEBUG - Policy Update Response {"network-policy": {"uuid": "80830134-d04a-405d-9d36-f19f7bd1d100", "href": "http://10.0.0.22:8082/network-policy/80830134-d04a-405d-9d36-f19f7bd1d100"}} 2024-11-06 11:46:59,153 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 11:46:59,153 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.167.208.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-06 11:46:59,153 - DEBUG - ping -s 56 -c 3 -W 1 93.167.208.131 2024-11-06 11:47:02,389 - DEBUG - PING 93.167.208.131 (93.167.208.131): 56 data bytes 64 bytes from 93.167.208.131: seq=0 ttl=63 time=1.778 ms --- 93.167.208.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.778/1.778/1.778 ms 2024-11-06 11:47:02,389 - WARNING - Ping to IP 93.167.208.131 from VM ctest-TestBasicPolicy-19999665-35761457 failed 2024-11-06 11:47:02,390 - INFO - Deleting VM ctest-TestBasicPolicy-19999665-16725972 2024-11-06 11:47:02,479 - INFO - Deleting VM ctest-TestBasicPolicy-19999665-35761457 2024-11-06 11:47:02,978 - INFO - Deleted policy ctest-policy-allow-all-25695160 2024-11-06 11:47:02,979 - INFO - Deleting VN ctest-vn-33602686 2024-11-06 11:47:03,035 - DEBUG - VN fc3cad17-16c5-49bc-a470-a8562da41f5e still in use: Unable to complete operation on network fc3cad17-16c5-49bc-a470-a8562da41f5e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fa9515bd-11ab-426d-8557-3cdbba3f0522'] 2024-11-06 11:47:03,035 - WARNING - Deleting VN ctest-vn-33602686 failed..Will retry 2024-11-06 11:47:05,188 - DEBUG - Response for deleting network () 2024-11-06 11:47:05,188 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/676373f8-c1d7-4dfd-9d35-93fb4887a36f 2024-11-06 11:47:05,199 - DEBUG - Response Code: 404 2024-11-06 11:47:05,200 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 11:47:05,209 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d 2024-11-06 11:47:05,231 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2 2024-11-06 11:47:05,308 - INFO - Validated that VN ctest-vn-33602686 is not found in API Server 2024-11-06 11:47:05,323 - DEBUG - VN ctest-vn-33602686 is not present in Agent 10.0.0.22 2024-11-06 11:47:05,323 - INFO - Validated that VN ctest-vn-33602686 is not in any agent 2024-11-06 11:47:05,344 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33602686 info 2024-11-06 11:47:05,345 - INFO - Deleting VN ctest-vn-51734868 2024-11-06 11:47:05,503 - DEBUG - Response for deleting network () 2024-11-06 11:47:05,503 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f28f385d-3d89-4ece-b5b9-a3f1ce9cc3e0 2024-11-06 11:47:05,511 - DEBUG - Response Code: 404 2024-11-06 11:47:05,511 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-06 11:47:05,518 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d7ca2727-631a-4765-b009-db03ffd4590d 2024-11-06 11:47:05,577 - DEBUG - Requesting: http://10.0.0.22:8082/project/a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2 2024-11-06 11:47:05,649 - INFO - Validated that VN ctest-vn-51734868 is not found in API Server 2024-11-06 11:47:05,663 - DEBUG - VN ctest-vn-51734868 is not present in Agent 10.0.0.22 2024-11-06 11:47:05,663 - INFO - Validated that VN ctest-vn-51734868 is not in any agent 2024-11-06 11:47:05,683 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51734868 info 2024-11-06 11:47:05,955 - DEBUG - No XMPP flaps were noticed during the test 2024-11-06 11:47:05,955 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-11-06 11:47:05,955 - INFO - -------------------------------------------------------------------------------- 2024-11-06 11:47:06,736 - INFO - Deleted project: ctest-TestBasicPolicy-19999665, ID : a6ae0f1d-433e-4713-8a8a-76cb8c9adbd2