2024-11-11 01:51:24,786 - INFO - Domain Default found not creating 2024-11-11 01:51:24,950 - INFO - Project ctest-TestBasicPolicy-85679659 not found, creating it 2024-11-11 01:51:25,446 - INFO - Created Project:ctest-TestBasicPolicy-85679659, ID : 517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb 2024-11-11 01:51:26,949 - INFO - ================================================================================ 2024-11-11 01:51:26,949 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-11 01:51:26,949 - 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-11 01:51:27,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.29': '0'}} with 2024-11-11 01:51:27,214 - INFO - Initial checks done. Running the testcase now 2024-11-11 01:51:27,214 - INFO - 2024-11-11 01:51:27,794 - DEBUG - Response for create_network : {'network': {'id': '6bc5ee73-48f9-49ab-9762-1ba53cf951f2', 'name': 'ctest-vn-92340428', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-92340428'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:51:27,989 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a43fa4ef-94f9-4192-a04a-9fbd7b531c48', 'name': '', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'network_id': '6bc5ee73-48f9-49ab-9762-1ba53cf951f2', 'ip_version': 4, 'cidr': '216.207.102.192/26', 'allocation_pools': [{'start': '216.207.102.194', 'end': '216.207.102.254'}], 'gateway_ip': '216.207.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.207.102.194', 'tags': [], 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb'}} 2024-11-11 01:51:28,010 - INFO - Created VN ctest-vn-92340428 2024-11-11 01:51:28,076 - DEBUG - VN ctest-vn-92340428 UUID is 6bc5ee73-48f9-49ab-9762-1ba53cf951f2 2024-11-11 01:51:28,386 - DEBUG - Response for create_network : {'network': {'id': '612a1b52-98f5-4f53-bfec-dae12abdcc04', 'name': 'ctest-vn-11684928', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-11684928'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:51:28,550 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2a5448b-7ad2-4265-bb59-ee957659c464', 'name': '', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'network_id': '612a1b52-98f5-4f53-bfec-dae12abdcc04', 'ip_version': 4, 'cidr': '198.24.51.0/26', 'allocation_pools': [{'start': '198.24.51.2', 'end': '198.24.51.62'}], 'gateway_ip': '198.24.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.24.51.2', 'tags': [], 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb'}} 2024-11-11 01:51:28,567 - INFO - Created VN ctest-vn-11684928 2024-11-11 01:51:28,624 - DEBUG - VN ctest-vn-11684928 UUID is 612a1b52-98f5-4f53-bfec-dae12abdcc04 2024-11-11 01:51:28,747 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428, 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-85679659:ctest-vn-11684928, 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-11 01:51:29,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bc5ee73-48f9-49ab-9762-1ba53cf951f2', 'name': 'ctest-vn-92340428', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a43fa4ef-94f9-4192-a04a-9fbd7b531c48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-92340428'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528']], 'subnet_ipam': [{'subnet_cidr': '216.207.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:51:29,290 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '612a1b52-98f5-4f53-bfec-dae12abdcc04', 'name': 'ctest-vn-11684928', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2a5448b-7ad2-4265-bb59-ee957659c464'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-11684928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528']], 'subnet_ipam': [{'subnet_cidr': '198.24.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:51:29,548 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-11 01:51:29,855 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-11 01:51:29,904 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969 2024-11-11 01:51:29,998 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb 2024-11-11 01:51:30,143 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2 2024-11-11 01:51:30,170 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2 2024-11-11 01:51:30,190 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8 2024-11-11 01:51:30,202 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8 2024-11-11 01:51:30,220 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c0158166-9fff-4668-a42d-a4ada4622e5a 2024-11-11 01:51:30,236 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-11 01:51:30,236 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2 2024-11-11 01:51:30,253 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8 2024-11-11 01:51:30,279 - INFO - Verified VN network id 9 for VN 6bc5ee73-48f9-49ab-9762-1ba53cf951f2 2024-11-11 01:51:30,279 - INFO - Verifications in API Server for VN ctest-vn-92340428 passed 2024-11-11 01:51:30,279 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2 2024-11-11 01:51:30,298 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8 2024-11-11 01:51:30,310 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8 2024-11-11 01:51:30,321 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c0158166-9fff-4668-a42d-a4ada4622e5a 2024-11-11 01:51:30,356 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85679659', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7765875311383234987', 'uuid-lslong': '10908311643951288818'}, 'enable': 'true', 'created': '2024-11-11T01:51:27', 'last-modified': '2024-11-11T01:51:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333903'} 2024-11-11 01:51:30,363 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-11 01:51:30,363 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92340428 passed 2024-11-11 01:51:30,364 - DEBUG - ====Verifying policy data for ctest-vn-92340428 in API_Server ====== 2024-11-11 01:51:30,364 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-11 01:51:30,387 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969 2024-11-11 01:51:30,406 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb 2024-11-11 01:51:30,498 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2 2024-11-11 01:51:30,513 - DEBUG - ==>Verifying data for policy with id: 8c8131d9-daca-4b7f-bd0c-a891c023d909, fqn: ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528'] 2024-11-11 01:51:30,513 - INFO - VN ctest-vn-92340428 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-11 01:51:30,515 - DEBUG - Verifying the vn in opserver 2024-11-11 01:51:30,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428 virtual network link through opserver 10.0.0.29 2024-11-11 01:51:30,515 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-11 01:51:30,809 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-11 01:51:30,871 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428?flat'} 2024-11-11 01:51:30,871 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428 is found in opserver 2024-11-11 01:51:30,883 - DEBUG - Do not have enough data to verify VN in agent 2024-11-11 01:51:30,889 - DEBUG - VRF ids for VN ctest-vn-92340428: {} 2024-11-11 01:51:30,889 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-11 01:51:30,895 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969 2024-11-11 01:51:30,907 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb 2024-11-11 01:51:30,993 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04 2024-11-11 01:51:31,009 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04 2024-11-11 01:51:31,024 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a 2024-11-11 01:51:31,032 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a 2024-11-11 01:51:31,040 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/aea0816b-5521-4cf9-a68c-aa41953078ea 2024-11-11 01:51:31,047 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-11 01:51:31,047 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04 2024-11-11 01:51:31,059 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a 2024-11-11 01:51:31,079 - INFO - Verified VN network id 10 for VN 612a1b52-98f5-4f53-bfec-dae12abdcc04 2024-11-11 01:51:31,079 - INFO - Verifications in API Server for VN ctest-vn-11684928 passed 2024-11-11 01:51:31,079 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04 2024-11-11 01:51:31,093 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a 2024-11-11 01:51:31,101 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a 2024-11-11 01:51:31,108 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/aea0816b-5521-4cf9-a68c-aa41953078ea 2024-11-11 01:51:31,121 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85679659', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7001438612268339027', 'uuid-lslong': '13829669216367528964'}, 'enable': 'true', 'created': '2024-11-11T01:51:28', 'last-modified': '2024-11-11T01:51:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.856223'} 2024-11-11 01:51:31,127 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-11 01:51:31,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11684928 passed 2024-11-11 01:51:31,127 - DEBUG - ====Verifying policy data for ctest-vn-11684928 in API_Server ====== 2024-11-11 01:51:31,127 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-11 01:51:31,134 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969 2024-11-11 01:51:31,151 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb 2024-11-11 01:51:31,230 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04 2024-11-11 01:51:31,243 - DEBUG - ==>Verifying data for policy with id: 8c8131d9-daca-4b7f-bd0c-a891c023d909, fqn: ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528'] 2024-11-11 01:51:31,243 - INFO - VN ctest-vn-11684928 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-11 01:51:31,243 - DEBUG - Verifying the vn in opserver 2024-11-11 01:51:31,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928 virtual network link through opserver 10.0.0.29 2024-11-11 01:51:31,243 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-11 01:51:31,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928?flat'} 2024-11-11 01:51:31,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928 is found in opserver 2024-11-11 01:51:31,264 - DEBUG - Do not have enough data to verify VN in agent 2024-11-11 01:51:31,269 - DEBUG - VRF ids for VN ctest-vn-11684928: {} 2024-11-11 01:51:31,321 - DEBUG - Services list from nova: [, , ] 2024-11-11 01:51:32,340 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2271-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2271-1) 2024-11-11 01:51:33,667 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2271-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2271-1) 2024-11-11 01:51:33,667 - INFO - Waiting for VM ctest-TestBasicPolicy-85679659-67934040 to be up.. 2024-11-11 01:51:33,745 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-11 01:51:38,830 - DEBUG - VM is in ACTIVE state now 2024-11-11 01:51:38,830 - INFO - VM name : ctest-TestBasicPolicy-85679659-67934040 2024-11-11 01:51:38,905 - DEBUG - VM ctest-TestBasicPolicy-85679659-67934040 ID is 2e9b4f91-d615-48d9-afc5-25ab325eeec5 2024-11-11 01:51:38,923 - DEBUG - VM ctest-TestBasicPolicy-85679659-67934040 launched on Node cn-jenkins-deploy-platform-ansible-os-2271-1 2024-11-11 01:51:39,007 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/2e9b4f91-d615-48d9-afc5-25ab325eeec5 2024-11-11 01:51:39,017 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/4ce8014d-6952-4b75-bcf3-4f94bd12ac97 2024-11-11 01:51:42,285 - 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 1012ms') 2024-11-11 01:51:42,285 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85679659-67934040 failed! 2024-11-11 01:51:42,348 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428 is 216.207.102.193 and allocation pool is NOT set 2024-11-11 01:51:44,412 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.402 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.402/1.620/2.839/1.218 ms') 2024-11-11 01:51:44,412 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85679659-67934040 passed 2024-11-11 01:51:44,568 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:51:44,568 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85679659-67934040, IP 216.207.102.195, Port 22 2024-11-11 01:51:44,739 - DEBUG - VM ctest-TestBasicPolicy-85679659-67934040 is ready for SSH connections 2024-11-11 01:51:44,740 - INFO - Waiting for VM ctest-TestBasicPolicy-85679659-71492486 to be up.. 2024-11-11 01:51:44,821 - DEBUG - VM is in ACTIVE state now 2024-11-11 01:51:44,821 - INFO - VM name : ctest-TestBasicPolicy-85679659-71492486 2024-11-11 01:51:44,897 - DEBUG - VM ctest-TestBasicPolicy-85679659-71492486 ID is 0ea869e5-a196-4088-a0d2-6f4db23cc39d 2024-11-11 01:51:44,897 - DEBUG - VM ctest-TestBasicPolicy-85679659-71492486 launched on Node cn-jenkins-deploy-platform-ansible-os-2271-1 2024-11-11 01:51:44,977 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/0ea869e5-a196-4088-a0d2-6f4db23cc39d 2024-11-11 01:51:44,987 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/75d39b55-27a7-40ee-97f5-7df98d6d3aaa 2024-11-11 01:51:46,233 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.370 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.370/1.857/3.344/1.487 ms') 2024-11-11 01:51:46,233 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85679659-71492486 passed 2024-11-11 01:51:46,400 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:51:46,400 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85679659-71492486, IP 198.24.51.3, Port 22 2024-11-11 01:51:46,566 - DEBUG - VM ctest-TestBasicPolicy-85679659-71492486 is ready for SSH connections 2024-11-11 01:51:46,566 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:51:46,566 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.24.51.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-11 01:51:46,567 - DEBUG - ping -s 56 -c 3 -W 1 198.24.51.3 2024-11-11 01:51:50,231 - DEBUG - PING 198.24.51.3 (198.24.51.3): 56 data bytes 64 bytes from 198.24.51.3: seq=0 ttl=63 time=3.418 ms 64 bytes from 198.24.51.3: seq=1 ttl=63 time=0.769 ms 64 bytes from 198.24.51.3: seq=2 ttl=63 time=0.863 ms --- 198.24.51.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.769/1.683/3.418 ms 2024-11-11 01:51:50,231 - INFO - Ping to IP 198.24.51.3 from VM ctest-TestBasicPolicy-85679659-67934040 passed 2024-11-11 01:51:50,416 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8c8131d9-daca-4b7f-bd0c-a891c023d909", "href": "http://10.0.0.29:8082/network-policy/8c8131d9-daca-4b7f-bd0c-a891c023d909"}} 2024-11-11 01:51:50,416 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:51:50,416 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.24.51.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-11 01:51:50,417 - DEBUG - ping -s 56 -c 3 -W 1 198.24.51.3 2024-11-11 01:51:53,624 - DEBUG - PING 198.24.51.3 (198.24.51.3): 56 data bytes --- 198.24.51.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-11 01:51:53,624 - WARNING - Ping to IP 198.24.51.3 from VM ctest-TestBasicPolicy-85679659-67934040 failed 2024-11-11 01:51:53,624 - INFO - Deleting VM ctest-TestBasicPolicy-85679659-71492486 2024-11-11 01:51:53,684 - INFO - Deleting VM ctest-TestBasicPolicy-85679659-67934040 2024-11-11 01:51:54,066 - INFO - Deleted policy ctest-policy-allow-all-59740528 2024-11-11 01:51:54,066 - INFO - Deleting VN ctest-vn-11684928 2024-11-11 01:51:54,104 - DEBUG - VN 612a1b52-98f5-4f53-bfec-dae12abdcc04 still in use: Unable to complete operation on network 612a1b52-98f5-4f53-bfec-dae12abdcc04. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d029ce5d-8063-4bd3-a41e-f7fd66ca13e4'] 2024-11-11 01:51:54,104 - WARNING - Deleting VN ctest-vn-11684928 failed..Will retry 2024-11-11 01:51:56,210 - DEBUG - Response for deleting network () 2024-11-11 01:51:56,210 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a 2024-11-11 01:51:56,219 - DEBUG - Response Code: 404 2024-11-11 01:51:56,219 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-11 01:51:56,224 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969 2024-11-11 01:51:56,278 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb 2024-11-11 01:51:56,361 - INFO - Validated that VN ctest-vn-11684928 is not found in API Server 2024-11-11 01:51:56,372 - DEBUG - VN ctest-vn-11684928 is not present in Agent 10.0.0.29 2024-11-11 01:51:56,372 - INFO - Validated that VN ctest-vn-11684928 is not in any agent 2024-11-11 01:51:56,387 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11684928 info 2024-11-11 01:51:56,388 - INFO - Deleting VN ctest-vn-92340428 2024-11-11 01:51:56,519 - DEBUG - Response for deleting network () 2024-11-11 01:51:56,519 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8 2024-11-11 01:51:56,530 - DEBUG - Response Code: 404 2024-11-11 01:51:56,530 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-11 01:51:56,536 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969 2024-11-11 01:51:56,590 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb 2024-11-11 01:51:56,670 - INFO - Validated that VN ctest-vn-92340428 is not found in API Server 2024-11-11 01:51:56,681 - DEBUG - VN ctest-vn-92340428 is not present in Agent 10.0.0.29 2024-11-11 01:51:56,681 - INFO - Validated that VN ctest-vn-92340428 is not in any agent 2024-11-11 01:51:56,696 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92340428 info 2024-11-11 01:51:56,950 - DEBUG - No XMPP flaps were noticed during the test 2024-11-11 01:51:56,950 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-11 01:51:56,950 - INFO - -------------------------------------------------------------------------------- 2024-11-11 01:51:57,659 - INFO - Deleted project: ctest-TestBasicPolicy-85679659, ID : 517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb