2024-11-10 23:23:38,262 - INFO - Domain Default found not creating 2024-11-10 23:23:38,548 - INFO - Project ctest-TestBasicPolicy-00147455 not found, creating it 2024-11-10 23:23:39,401 - INFO - Created Project:ctest-TestBasicPolicy-00147455, ID : 2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f 2024-11-10 23:23:41,998 - INFO - ================================================================================ 2024-11-10 23:23:41,998 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 23:23:41,998 - 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-10 23:23:42,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.13': '0'}} with 2024-11-10 23:23:42,323 - INFO - Initial checks done. Running the testcase now 2024-11-10 23:23:42,323 - INFO - 2024-11-10 23:23:43,140 - DEBUG - Response for create_network : {'network': {'id': '6e11a851-e893-42d5-b317-d3e96466c526', 'name': 'ctest-vn-38581972', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-38581972'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 23:23:43,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eed0f3ef-5997-4361-84f8-a992e6cb64f5', 'name': '', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'network_id': '6e11a851-e893-42d5-b317-d3e96466c526', 'ip_version': 4, 'cidr': '185.127.178.0/26', 'allocation_pools': [{'start': '185.127.178.2', 'end': '185.127.178.62'}], 'gateway_ip': '185.127.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.127.178.2', 'tags': [], 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f'}} 2024-11-10 23:23:43,396 - INFO - Created VN ctest-vn-38581972 2024-11-10 23:23:43,461 - DEBUG - VN ctest-vn-38581972 UUID is 6e11a851-e893-42d5-b317-d3e96466c526 2024-11-10 23:23:43,974 - DEBUG - Response for create_network : {'network': {'id': '7cd9e4fc-f54a-47a6-af9b-74242ee94da3', 'name': 'ctest-vn-10714447', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-10714447'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 23:23:44,226 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8b908ff-b755-4717-9847-a4a776f9b880', 'name': '', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'network_id': '7cd9e4fc-f54a-47a6-af9b-74242ee94da3', 'ip_version': 4, 'cidr': '83.8.146.64/26', 'allocation_pools': [{'start': '83.8.146.66', 'end': '83.8.146.126'}], 'gateway_ip': '83.8.146.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.8.146.66', 'tags': [], 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f'}} 2024-11-10 23:23:44,248 - INFO - Created VN ctest-vn-10714447 2024-11-10 23:23:44,309 - DEBUG - VN ctest-vn-10714447 UUID is 7cd9e4fc-f54a-47a6-af9b-74242ee94da3 2024-11-10 23:23:44,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972, 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-00147455:ctest-vn-10714447, 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-10 23:23:44,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e11a851-e893-42d5-b317-d3e96466c526', 'name': 'ctest-vn-38581972', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eed0f3ef-5997-4361-84f8-a992e6cb64f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-38581972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160']], 'subnet_ipam': [{'subnet_cidr': '185.127.178.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 23:23:45,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cd9e4fc-f54a-47a6-af9b-74242ee94da3', 'name': 'ctest-vn-10714447', 'tenant_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'project_id': '2aaedbf0586b4af39d0ccb0b6eb0fc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8b908ff-b755-4717-9847-a4a776f9b880'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-vn-10714447'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160']], 'subnet_ipam': [{'subnet_cidr': '83.8.146.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 23:23:45,417 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-10 23:23:45,735 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-10 23:23:45,783 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff 2024-11-10 23:23:45,815 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f 2024-11-10 23:23:45,953 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526 2024-11-10 23:23:45,976 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526 2024-11-10 23:23:45,995 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f 2024-11-10 23:23:46,009 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f 2024-11-10 23:23:46,023 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9993eb31-0fa9-4136-be0f-98423390057f 2024-11-10 23:23:46,035 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 23:23:46,035 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526 2024-11-10 23:23:46,057 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f 2024-11-10 23:23:46,103 - INFO - Verified VN network id 7 for VN 6e11a851-e893-42d5-b317-d3e96466c526 2024-11-10 23:23:46,103 - INFO - Verifications in API Server for VN ctest-vn-38581972 passed 2024-11-10 23:23:46,103 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526 2024-11-10 23:23:46,127 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f 2024-11-10 23:23:46,139 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f 2024-11-10 23:23:46,150 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9993eb31-0fa9-4136-be0f-98423390057f 2024-11-10 23:23:46,172 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00147455', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7931305488523936469', 'uuid-lslong': '12905016256618743078'}, 'enable': 'true', 'created': '2024-11-10T23:23:43', 'last-modified': '2024-11-10T23:23:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262669'} 2024-11-10 23:23:46,194 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 23:23:46,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38581972 passed 2024-11-10 23:23:46,195 - DEBUG - ====Verifying policy data for ctest-vn-38581972 in API_Server ====== 2024-11-10 23:23:46,195 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-10 23:23:46,207 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff 2024-11-10 23:23:46,234 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f 2024-11-10 23:23:46,358 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6e11a851-e893-42d5-b317-d3e96466c526 2024-11-10 23:23:46,385 - DEBUG - ==>Verifying data for policy with id: f03625bc-8a70-45d0-bcd1-d085aae9e79a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160'] 2024-11-10 23:23:46,385 - INFO - VN ctest-vn-38581972 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 23:23:46,385 - DEBUG - Verifying the vn in opserver 2024-11-10 23:23:46,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972 virtual network link through opserver 10.0.0.17 2024-11-10 23:23:46,386 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-11-10 23:23:46,695 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-11-10 23:23:46,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972?flat'} 2024-11-10 23:23:46,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972 is found in opserver 2024-11-10 23:23:46,890 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 23:23:46,899 - DEBUG - VRF ids for VN ctest-vn-38581972: {} 2024-11-10 23:23:46,899 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-10 23:23:46,910 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff 2024-11-10 23:23:46,944 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f 2024-11-10 23:23:47,083 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3 2024-11-10 23:23:47,099 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3 2024-11-10 23:23:47,113 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e 2024-11-10 23:23:47,123 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e 2024-11-10 23:23:47,133 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/ee32b75d-546b-4554-a78b-22abc69d5c38 2024-11-10 23:23:47,140 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 23:23:47,141 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3 2024-11-10 23:23:47,154 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e 2024-11-10 23:23:47,174 - INFO - Verified VN network id 8 for VN 7cd9e4fc-f54a-47a6-af9b-74242ee94da3 2024-11-10 23:23:47,174 - INFO - Verifications in API Server for VN ctest-vn-10714447 passed 2024-11-10 23:23:47,174 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3 2024-11-10 23:23:47,190 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e 2024-11-10 23:23:47,203 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e 2024-11-10 23:23:47,216 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/ee32b75d-546b-4554-a78b-22abc69d5c38 2024-11-10 23:23:47,232 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00147455', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8996473505747453862', 'uuid-lslong': '12653835276782226851'}, 'enable': 'true', 'created': '2024-11-10T23:23:43', 'last-modified': '2024-11-10T23:23:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.048177'} 2024-11-10 23:23:47,242 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 23:23:47,243 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10714447 passed 2024-11-10 23:23:47,243 - DEBUG - ====Verifying policy data for ctest-vn-10714447 in API_Server ====== 2024-11-10 23:23:47,243 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-10 23:23:47,254 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff 2024-11-10 23:23:47,280 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f 2024-11-10 23:23:47,413 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7cd9e4fc-f54a-47a6-af9b-74242ee94da3 2024-11-10 23:23:47,446 - DEBUG - ==>Verifying data for policy with id: f03625bc-8a70-45d0-bcd1-d085aae9e79a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00147455', 'ctest-policy-allow-all-39120160'] 2024-11-10 23:23:47,446 - INFO - VN ctest-vn-10714447 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 23:23:47,446 - DEBUG - Verifying the vn in opserver 2024-11-10 23:23:47,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447 virtual network link through opserver 10.0.0.17 2024-11-10 23:23:47,446 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-11-10 23:23:47,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447?flat'} 2024-11-10 23:23:47,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-10714447 is found in opserver 2024-11-10 23:23:47,490 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 23:23:47,498 - DEBUG - VRF ids for VN ctest-vn-10714447: {} 2024-11-10 23:23:47,585 - DEBUG - Services list from nova: [, , ] 2024-11-10 23:23:49,200 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2268-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2268-1) 2024-11-10 23:23:50,750 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2268-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2268-1) 2024-11-10 23:23:50,750 - INFO - Waiting for VM ctest-TestBasicPolicy-00147455-97409811 to be up.. 2024-11-10 23:23:50,866 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 23:23:56,115 - DEBUG - VM is in ACTIVE state now 2024-11-10 23:23:56,115 - INFO - VM name : ctest-TestBasicPolicy-00147455-97409811 2024-11-10 23:23:56,267 - DEBUG - VM ctest-TestBasicPolicy-00147455-97409811 ID is e6ca3869-1e00-4248-a757-a136c9de87f4 2024-11-10 23:23:56,292 - DEBUG - VM ctest-TestBasicPolicy-00147455-97409811 launched on Node cn-jenkins-deploy-platform-ansible-os-2268-1 2024-11-10 23:23:56,472 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/e6ca3869-1e00-4248-a757-a136c9de87f4 2024-11-10 23:23:56,509 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/6ce124c9-ae0f-405f-bcf8-4f2cb8505e91 2024-11-10 23:23:59,841 - 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 1022ms') 2024-11-10 23:23:59,842 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00147455-97409811 failed! 2024-11-10 23:23:59,921 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00147455:ctest-vn-38581972 is 185.127.178.1 and allocation pool is NOT set 2024-11-10 23:24:01,979 - 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=11.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.488 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 = 0.488/6.014/11.540/5.526 ms') 2024-11-10 23:24:01,979 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00147455-97409811 passed 2024-11-10 23:24:02,153 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:24:02,153 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00147455-97409811, IP 185.127.178.3, Port 22 2024-11-10 23:24:02,324 - DEBUG - VM ctest-TestBasicPolicy-00147455-97409811 is ready for SSH connections 2024-11-10 23:24:02,324 - INFO - Waiting for VM ctest-TestBasicPolicy-00147455-66258887 to be up.. 2024-11-10 23:24:02,422 - DEBUG - VM is in ACTIVE state now 2024-11-10 23:24:02,422 - INFO - VM name : ctest-TestBasicPolicy-00147455-66258887 2024-11-10 23:24:02,529 - DEBUG - VM ctest-TestBasicPolicy-00147455-66258887 ID is 899ab2c1-e238-4651-ac3b-645d808509c2 2024-11-10 23:24:02,529 - DEBUG - VM ctest-TestBasicPolicy-00147455-66258887 launched on Node cn-jenkins-deploy-platform-ansible-os-2268-1 2024-11-10 23:24:02,632 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/899ab2c1-e238-4651-ac3b-645d808509c2 2024-11-10 23:24:02,657 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/ed5f7f18-f92d-478f-b436-6055a0248325 2024-11-10 23:24:03,929 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.25 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.249/3.499/4.750/1.250 ms') 2024-11-10 23:24:03,929 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00147455-66258887 passed 2024-11-10 23:24:04,154 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:24:04,154 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00147455-66258887, IP 83.8.146.67, Port 22 2024-11-10 23:24:04,345 - DEBUG - VM ctest-TestBasicPolicy-00147455-66258887 is ready for SSH connections 2024-11-10 23:24:04,346 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:24:04,346 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 83.8.146.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-11-10 23:24:04,346 - DEBUG - ping -s 56 -c 3 -W 1 83.8.146.67 2024-11-10 23:24:08,781 - DEBUG - PING 83.8.146.67 (83.8.146.67): 56 data bytes 64 bytes from 83.8.146.67: seq=0 ttl=63 time=3.719 ms 64 bytes from 83.8.146.67: seq=1 ttl=63 time=1.928 ms 64 bytes from 83.8.146.67: seq=2 ttl=63 time=1.566 ms --- 83.8.146.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.566/2.404/3.719 ms 2024-11-10 23:24:08,782 - INFO - Ping to IP 83.8.146.67 from VM ctest-TestBasicPolicy-00147455-97409811 passed 2024-11-10 23:24:09,037 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f03625bc-8a70-45d0-bcd1-d085aae9e79a", "href": "http://10.0.0.17:8082/network-policy/f03625bc-8a70-45d0-bcd1-d085aae9e79a"}} 2024-11-10 23:24:09,037 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:24:09,037 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 83.8.146.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-11-10 23:24:09,037 - DEBUG - ping -s 56 -c 3 -W 1 83.8.146.67 2024-11-10 23:24:12,274 - DEBUG - PING 83.8.146.67 (83.8.146.67): 56 data bytes --- 83.8.146.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-10 23:24:12,275 - WARNING - Ping to IP 83.8.146.67 from VM ctest-TestBasicPolicy-00147455-97409811 failed 2024-11-10 23:24:12,275 - INFO - Deleting VM ctest-TestBasicPolicy-00147455-66258887 2024-11-10 23:24:12,434 - INFO - Deleting VM ctest-TestBasicPolicy-00147455-97409811 2024-11-10 23:24:12,946 - INFO - Deleted policy ctest-policy-allow-all-39120160 2024-11-10 23:24:12,946 - INFO - Deleting VN ctest-vn-10714447 2024-11-10 23:24:12,987 - DEBUG - VN 7cd9e4fc-f54a-47a6-af9b-74242ee94da3 still in use: Unable to complete operation on network 7cd9e4fc-f54a-47a6-af9b-74242ee94da3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ce532946-c673-4226-a612-91af6b81ae57'] 2024-11-10 23:24:12,989 - WARNING - Deleting VN ctest-vn-10714447 failed..Will retry 2024-11-10 23:24:15,228 - DEBUG - Response for deleting network () 2024-11-10 23:24:15,228 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/5ea1ea0b-38a8-4a6e-bf30-fff29510ab6e 2024-11-10 23:24:15,245 - DEBUG - Response Code: 404 2024-11-10 23:24:15,246 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-10 23:24:15,254 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff 2024-11-10 23:24:15,279 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f 2024-11-10 23:24:15,389 - INFO - Validated that VN ctest-vn-10714447 is not found in API Server 2024-11-10 23:24:15,403 - DEBUG - VN ctest-vn-10714447 is not present in Agent 10.0.0.17 2024-11-10 23:24:15,403 - INFO - Validated that VN ctest-vn-10714447 is not in any agent 2024-11-10 23:24:15,428 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10714447 info 2024-11-10 23:24:15,428 - INFO - Deleting VN ctest-vn-38581972 2024-11-10 23:24:15,566 - DEBUG - Response for deleting network () 2024-11-10 23:24:15,566 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4a4f438f-8b5a-4d15-8050-01bb503eda1f 2024-11-10 23:24:15,577 - DEBUG - Response Code: 404 2024-11-10 23:24:15,577 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-11-10 23:24:15,583 - DEBUG - Requesting: http://10.0.0.17:8082/domain/d0fc9618-aa89-4b50-afb5-61e62b09a7ff 2024-11-10 23:24:15,650 - DEBUG - Requesting: http://10.0.0.17:8082/project/2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f 2024-11-10 23:24:15,764 - INFO - Validated that VN ctest-vn-38581972 is not found in API Server 2024-11-10 23:24:15,787 - DEBUG - VN ctest-vn-38581972 is not present in Agent 10.0.0.17 2024-11-10 23:24:15,787 - INFO - Validated that VN ctest-vn-38581972 is not in any agent 2024-11-10 23:24:15,819 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38581972 info 2024-11-10 23:24:16,140 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 23:24:16,140 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-11-10 23:24:16,140 - INFO - -------------------------------------------------------------------------------- 2024-11-10 23:24:17,121 - INFO - Deleted project: ctest-TestBasicPolicy-00147455, ID : 2aaedbf0-586b-4af3-9d0c-cb0b6eb0fc3f