2024-09-02 17:12:54,124 - INFO - Domain Default found not creating 2024-09-02 17:12:54,272 - INFO - Project ctest-TestBasicPolicy-15804701 not found, creating it 2024-09-02 17:12:54,738 - INFO - Created Project:ctest-TestBasicPolicy-15804701, ID : 7de5c7bd-2277-45b8-a571-58470d1ba33a 2024-09-02 17:12:56,424 - INFO - ================================================================================ 2024-09-02 17:12:56,424 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-02 17:12:56,425 - 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-09-02 17:12:56,706 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.14': '0'}} with 2024-09-02 17:12:56,706 - INFO - Initial checks done. Running the testcase now 2024-09-02 17:12:56,706 - INFO - 2024-09-02 17:12:57,401 - DEBUG - Response for create_network : {'network': {'id': '09a242b9-fbdf-44c6-989c-4522edb33d9a', 'name': 'ctest-vn-31293519', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-31293519'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 17:12:57,621 - DEBUG - Response for create_subnet : {'subnet': {'id': '68189e73-4487-48ab-a935-dc2702a24837', 'name': '', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'network_id': '09a242b9-fbdf-44c6-989c-4522edb33d9a', 'ip_version': 4, 'cidr': '198.147.17.192/26', 'allocation_pools': [{'start': '198.147.17.194', 'end': '198.147.17.254'}], 'gateway_ip': '198.147.17.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.147.17.194', 'tags': [], 'project_id': '7de5c7bd227745b8a57158470d1ba33a'}} 2024-09-02 17:12:57,644 - INFO - Created VN ctest-vn-31293519 2024-09-02 17:12:57,707 - DEBUG - VN ctest-vn-31293519 UUID is 09a242b9-fbdf-44c6-989c-4522edb33d9a 2024-09-02 17:12:57,995 - DEBUG - Response for create_network : {'network': {'id': '463a9062-3401-47b1-91fb-424cc6fd9d24', 'name': 'ctest-vn-48508579', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-48508579'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 17:12:58,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'faeb18eb-482e-491e-b56f-18e20dc7e8d3', 'name': '', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'network_id': '463a9062-3401-47b1-91fb-424cc6fd9d24', 'ip_version': 4, 'cidr': '93.81.168.64/26', 'allocation_pools': [{'start': '93.81.168.66', 'end': '93.81.168.126'}], 'gateway_ip': '93.81.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.81.168.66', 'tags': [], 'project_id': '7de5c7bd227745b8a57158470d1ba33a'}} 2024-09-02 17:12:58,178 - INFO - Created VN ctest-vn-48508579 2024-09-02 17:12:58,227 - DEBUG - VN ctest-vn-48508579 UUID is 463a9062-3401-47b1-91fb-424cc6fd9d24 2024-09-02 17:12:58,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519, 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-15804701:ctest-vn-48508579, 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-09-02 17:12:58,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09a242b9-fbdf-44c6-989c-4522edb33d9a', 'name': 'ctest-vn-31293519', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68189e73-4487-48ab-a935-dc2702a24837'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-31293519'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556']], 'subnet_ipam': [{'subnet_cidr': '198.147.17.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-02 17:12:58,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '463a9062-3401-47b1-91fb-424cc6fd9d24', 'name': 'ctest-vn-48508579', 'tenant_id': '7de5c7bd227745b8a57158470d1ba33a', 'project_id': '7de5c7bd227745b8a57158470d1ba33a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['faeb18eb-482e-491e-b56f-18e20dc7e8d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-vn-48508579'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556']], 'subnet_ipam': [{'subnet_cidr': '93.81.168.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-02 17:12:59,039 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-02 17:12:59,347 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-02 17:12:59,377 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122 2024-09-02 17:12:59,390 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a 2024-09-02 17:12:59,459 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a 2024-09-02 17:12:59,469 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a 2024-09-02 17:12:59,476 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f 2024-09-02 17:12:59,483 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f 2024-09-02 17:12:59,489 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3b79e3f5-b4cc-4cba-9a59-c57005178d11 2024-09-02 17:12:59,495 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 17:12:59,495 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a 2024-09-02 17:12:59,509 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f 2024-09-02 17:12:59,522 - INFO - Verified VN network id 8 for VN 09a242b9-fbdf-44c6-989c-4522edb33d9a 2024-09-02 17:12:59,522 - INFO - Verifications in API Server for VN ctest-vn-31293519 passed 2024-09-02 17:12:59,522 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a 2024-09-02 17:12:59,530 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f 2024-09-02 17:12:59,536 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f 2024-09-02 17:12:59,543 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/3b79e3f5-b4cc-4cba-9a59-c57005178d11 2024-09-02 17:12:59,555 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15804701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '694190659130574022', 'uuid-lslong': '10996740406451060122'}, 'enable': 'true', 'created': '2024-09-02T17:12:57', 'last-modified': '2024-09-02T17:12:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937779'} 2024-09-02 17:12:59,568 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 17:12:59,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31293519 passed 2024-09-02 17:12:59,569 - DEBUG - ====Verifying policy data for ctest-vn-31293519 in API_Server ====== 2024-09-02 17:12:59,569 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-02 17:12:59,576 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122 2024-09-02 17:12:59,589 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a 2024-09-02 17:12:59,659 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/09a242b9-fbdf-44c6-989c-4522edb33d9a 2024-09-02 17:12:59,667 - DEBUG - ==>Verifying data for policy with id: 4a1c6750-fdcc-4d9e-8f44-19c952117647, fqn: ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556'] 2024-09-02 17:12:59,667 - INFO - VN ctest-vn-31293519 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 17:12:59,667 - DEBUG - Verifying the vn in opserver 2024-09-02 17:12:59,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519 virtual network link through opserver 10.0.0.37 2024-09-02 17:12:59,667 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-02 17:12:59,969 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-02 17:13:00,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519?flat'} 2024-09-02 17:13:00,035 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519 is found in opserver 2024-09-02 17:13:00,049 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 17:13:00,056 - DEBUG - VRF ids for VN ctest-vn-31293519: {} 2024-09-02 17:13:00,056 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-02 17:13:00,062 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122 2024-09-02 17:13:00,078 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a 2024-09-02 17:13:00,151 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24 2024-09-02 17:13:00,163 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24 2024-09-02 17:13:00,170 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec 2024-09-02 17:13:00,177 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec 2024-09-02 17:13:00,183 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/092d7e8c-55cb-4630-beb6-544ba7a318e6 2024-09-02 17:13:00,190 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 17:13:00,190 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24 2024-09-02 17:13:00,197 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec 2024-09-02 17:13:00,212 - INFO - Verified VN network id 9 for VN 463a9062-3401-47b1-91fb-424cc6fd9d24 2024-09-02 17:13:00,212 - INFO - Verifications in API Server for VN ctest-vn-48508579 passed 2024-09-02 17:13:00,212 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24 2024-09-02 17:13:00,219 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec 2024-09-02 17:13:00,226 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec 2024-09-02 17:13:00,232 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/092d7e8c-55cb-4630-beb6-544ba7a318e6 2024-09-02 17:13:00,243 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15804701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5060515882757867441', 'uuid-lslong': '10519074252177382692'}, 'enable': 'true', 'created': '2024-09-02T17:12:57', 'last-modified': '2024-09-02T17:12:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.397049'} 2024-09-02 17:13:00,249 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 17:13:00,249 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48508579 passed 2024-09-02 17:13:00,249 - DEBUG - ====Verifying policy data for ctest-vn-48508579 in API_Server ====== 2024-09-02 17:13:00,249 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-02 17:13:00,256 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122 2024-09-02 17:13:00,271 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a 2024-09-02 17:13:00,361 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/463a9062-3401-47b1-91fb-424cc6fd9d24 2024-09-02 17:13:00,369 - DEBUG - ==>Verifying data for policy with id: 4a1c6750-fdcc-4d9e-8f44-19c952117647, fqn: ['default-domain', 'ctest-TestBasicPolicy-15804701', 'ctest-policy-allow-all-34276556'] 2024-09-02 17:13:00,369 - INFO - VN ctest-vn-48508579 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 17:13:00,369 - DEBUG - Verifying the vn in opserver 2024-09-02 17:13:00,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579 virtual network link through opserver 10.0.0.37 2024-09-02 17:13:00,369 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-02 17:13:00,381 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579?flat'} 2024-09-02 17:13:00,381 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-48508579 is found in opserver 2024-09-02 17:13:00,393 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 17:13:00,399 - DEBUG - VRF ids for VN ctest-vn-48508579: {} 2024-09-02 17:13:00,456 - DEBUG - Services list from nova: [, , ] 2024-09-02 17:13:01,610 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1831-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1831-1) 2024-09-02 17:13:02,776 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1831-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1831-1) 2024-09-02 17:13:02,777 - INFO - Waiting for VM ctest-TestBasicPolicy-15804701-35848295 to be up.. 2024-09-02 17:13:02,868 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 17:13:07,980 - DEBUG - VM is in ACTIVE state now 2024-09-02 17:13:07,981 - INFO - VM name : ctest-TestBasicPolicy-15804701-35848295 2024-09-02 17:13:08,099 - DEBUG - VM ctest-TestBasicPolicy-15804701-35848295 ID is 7025db1d-6323-4b71-8d20-1266b980405f 2024-09-02 17:13:08,116 - DEBUG - VM ctest-TestBasicPolicy-15804701-35848295 launched on Node cn-jenkins-deploy-platform-ansible-os-1831-1 2024-09-02 17:13:08,221 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/7025db1d-6323-4b71-8d20-1266b980405f 2024-09-02 17:13:08,231 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/03fb1011-47eb-4c09-84fc-22b42f22f9f5 2024-09-02 17:13:11,476 - 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-09-02 17:13:11,476 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15804701-35848295 failed! 2024-09-02 17:13:11,531 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15804701:ctest-vn-31293519 is 198.147.17.193 and allocation pool is NOT set 2024-09-02 17:13:13,595 - 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=6.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.38 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.384/5.102/6.820/1.718 ms') 2024-09-02 17:13:13,596 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15804701-35848295 passed 2024-09-02 17:13:13,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:13:13,743 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15804701-35848295, IP 198.147.17.195, Port 22 2024-09-02 17:13:13,809 - 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-09-02 17:13:13,893 - DEBUG - VM ctest-TestBasicPolicy-15804701-35848295 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-02 17:13:18,894 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:13:18,895 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15804701-35848295, IP 198.147.17.195, Port 22 2024-09-02 17:13:19,054 - DEBUG - VM ctest-TestBasicPolicy-15804701-35848295 is ready for SSH connections 2024-09-02 17:13:19,054 - INFO - Waiting for VM ctest-TestBasicPolicy-15804701-76831893 to be up.. 2024-09-02 17:13:19,132 - DEBUG - VM is in ACTIVE state now 2024-09-02 17:13:19,132 - INFO - VM name : ctest-TestBasicPolicy-15804701-76831893 2024-09-02 17:13:19,212 - DEBUG - VM ctest-TestBasicPolicy-15804701-76831893 ID is afb77694-f4b1-4a22-a455-f22a95eac499 2024-09-02 17:13:19,212 - DEBUG - VM ctest-TestBasicPolicy-15804701-76831893 launched on Node cn-jenkins-deploy-platform-ansible-os-1831-1 2024-09-02 17:13:19,296 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/afb77694-f4b1-4a22-a455-f22a95eac499 2024-09-02 17:13:19,306 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/31bfc9cf-f7d4-4f6c-9c61-f0b2f6c8f02c 2024-09-02 17:13:20,583 - 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.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.368 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.368/1.850/3.333/1.482 ms') 2024-09-02 17:13:20,583 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15804701-76831893 passed 2024-09-02 17:13:20,735 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:13:20,740 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15804701-76831893, IP 93.81.168.67, Port 22 2024-09-02 17:13:20,973 - DEBUG - VM ctest-TestBasicPolicy-15804701-76831893 is ready for SSH connections 2024-09-02 17:13:20,973 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:13:20,973 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.81.168.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-02 17:13:20,973 - DEBUG - ping -s 56 -c 3 -W 1 93.81.168.67 2024-09-02 17:13:24,877 - DEBUG - PING 93.81.168.67 (93.81.168.67): 56 data bytes 64 bytes from 93.81.168.67: seq=0 ttl=63 time=4.521 ms 64 bytes from 93.81.168.67: seq=1 ttl=63 time=0.819 ms 64 bytes from 93.81.168.67: seq=2 ttl=63 time=1.019 ms --- 93.81.168.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.819/2.119/4.521 ms 2024-09-02 17:13:24,877 - INFO - Ping to IP 93.81.168.67 from VM ctest-TestBasicPolicy-15804701-35848295 passed 2024-09-02 17:13:25,055 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4a1c6750-fdcc-4d9e-8f44-19c952117647", "href": "http://10.0.0.37:8082/network-policy/4a1c6750-fdcc-4d9e-8f44-19c952117647"}} 2024-09-02 17:13:25,055 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:13:25,055 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.81.168.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-02 17:13:25,055 - DEBUG - ping -s 56 -c 3 -W 1 93.81.168.67 2024-09-02 17:13:28,283 - DEBUG - PING 93.81.168.67 (93.81.168.67): 56 data bytes 64 bytes from 93.81.168.67: seq=0 ttl=63 time=1.634 ms --- 93.81.168.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.634/1.634/1.634 ms 2024-09-02 17:13:28,284 - WARNING - Ping to IP 93.81.168.67 from VM ctest-TestBasicPolicy-15804701-35848295 failed 2024-09-02 17:13:28,284 - INFO - Deleting VM ctest-TestBasicPolicy-15804701-76831893 2024-09-02 17:13:28,367 - INFO - Deleting VM ctest-TestBasicPolicy-15804701-35848295 2024-09-02 17:13:28,764 - INFO - Deleted policy ctest-policy-allow-all-34276556 2024-09-02 17:13:28,764 - INFO - Deleting VN ctest-vn-48508579 2024-09-02 17:13:28,812 - DEBUG - VN 463a9062-3401-47b1-91fb-424cc6fd9d24 still in use: Unable to complete operation on network 463a9062-3401-47b1-91fb-424cc6fd9d24. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ab227826-2aea-4da5-90a0-62b5b738c4ac'] 2024-09-02 17:13:28,812 - WARNING - Deleting VN ctest-vn-48508579 failed..Will retry 2024-09-02 17:13:30,913 - DEBUG - Response for deleting network () 2024-09-02 17:13:30,913 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1c5cedc8-c0a1-43dc-98e5-b8a2fa8ab3ec 2024-09-02 17:13:30,918 - DEBUG - Response Code: 404 2024-09-02 17:13:30,918 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-02 17:13:30,925 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122 2024-09-02 17:13:30,981 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a 2024-09-02 17:13:31,047 - INFO - Validated that VN ctest-vn-48508579 is not found in API Server 2024-09-02 17:13:31,060 - DEBUG - VN ctest-vn-48508579 is not present in Agent 10.0.0.37 2024-09-02 17:13:31,060 - INFO - Validated that VN ctest-vn-48508579 is not in any agent 2024-09-02 17:13:31,074 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48508579 info 2024-09-02 17:13:31,075 - INFO - Deleting VN ctest-vn-31293519 2024-09-02 17:13:31,194 - DEBUG - Response for deleting network () 2024-09-02 17:13:31,194 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/00a6b260-c9a3-430d-a11e-c237427ad67f 2024-09-02 17:13:31,200 - DEBUG - Response Code: 404 2024-09-02 17:13:31,200 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-02 17:13:31,205 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c6a90ec2-60fd-41b2-bb64-f989a6260122 2024-09-02 17:13:31,260 - DEBUG - Requesting: http://10.0.0.37:8082/project/7de5c7bd-2277-45b8-a571-58470d1ba33a 2024-09-02 17:13:31,329 - INFO - Validated that VN ctest-vn-31293519 is not found in API Server 2024-09-02 17:13:31,340 - DEBUG - VN ctest-vn-31293519 is not present in Agent 10.0.0.37 2024-09-02 17:13:31,340 - INFO - Validated that VN ctest-vn-31293519 is not in any agent 2024-09-02 17:13:31,354 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31293519 info 2024-09-02 17:13:31,612 - DEBUG - No XMPP flaps were noticed during the test 2024-09-02 17:13:31,612 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-09-02 17:13:31,612 - INFO - -------------------------------------------------------------------------------- 2024-09-02 17:13:32,454 - INFO - Deleted project: ctest-TestBasicPolicy-15804701, ID : 7de5c7bd-2277-45b8-a571-58470d1ba33a