2024-09-19 02:41:20,759 - INFO - Domain Default found not creating 2024-09-19 02:41:21,059 - INFO - Project ctest-TestBasicPolicy-48998383 not found, creating it 2024-09-19 02:41:21,560 - INFO - Created Project:ctest-TestBasicPolicy-48998383, ID : 6e33e0a5-42ed-4cdd-9a38-22750be7efd4 2024-09-19 02:41:23,307 - INFO - ================================================================================ 2024-09-19 02:41:23,307 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-19 02:41:23,307 - 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-19 02:41:23,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.12': '0'}} with 2024-09-19 02:41:23,563 - INFO - Initial checks done. Running the testcase now 2024-09-19 02:41:23,563 - INFO - 2024-09-19 02:41:24,204 - DEBUG - Response for create_network : {'network': {'id': '7e590c12-4a65-4000-829e-cd82fabe8eed', 'name': 'ctest-vn-44092196', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-44092196'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:41:24,411 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa67e671-fb2b-444d-8293-011fe8646ddd', 'name': '', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'network_id': '7e590c12-4a65-4000-829e-cd82fabe8eed', 'ip_version': 4, 'cidr': '109.155.6.64/26', 'allocation_pools': [{'start': '109.155.6.66', 'end': '109.155.6.126'}], 'gateway_ip': '109.155.6.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.155.6.66', 'tags': [], 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4'}} 2024-09-19 02:41:24,433 - INFO - Created VN ctest-vn-44092196 2024-09-19 02:41:24,492 - DEBUG - VN ctest-vn-44092196 UUID is 7e590c12-4a65-4000-829e-cd82fabe8eed 2024-09-19 02:41:24,825 - DEBUG - Response for create_network : {'network': {'id': 'cd1e9550-dd3d-4e53-a6e7-ba2392e2c495', 'name': 'ctest-vn-75433895', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-75433895'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:41:24,997 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f68b338-fd37-4eeb-b5be-8fed452b1a49', 'name': '', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'network_id': 'cd1e9550-dd3d-4e53-a6e7-ba2392e2c495', 'ip_version': 4, 'cidr': '62.90.98.192/26', 'allocation_pools': [{'start': '62.90.98.194', 'end': '62.90.98.254'}], 'gateway_ip': '62.90.98.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.90.98.194', 'tags': [], 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4'}} 2024-09-19 02:41:25,021 - INFO - Created VN ctest-vn-75433895 2024-09-19 02:41:25,080 - DEBUG - VN ctest-vn-75433895 UUID is cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 2024-09-19 02:41:25,207 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196, 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-48998383:ctest-vn-75433895, 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-19 02:41:25,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e590c12-4a65-4000-829e-cd82fabe8eed', 'name': 'ctest-vn-44092196', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa67e671-fb2b-444d-8293-011fe8646ddd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-44092196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898']], 'subnet_ipam': [{'subnet_cidr': '109.155.6.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:41:25,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd1e9550-dd3d-4e53-a6e7-ba2392e2c495', 'name': 'ctest-vn-75433895', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f68b338-fd37-4eeb-b5be-8fed452b1a49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-75433895'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898']], 'subnet_ipam': [{'subnet_cidr': '62.90.98.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:41:25,972 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-09-19 02:41:26,326 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-09-19 02:41:26,361 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b 2024-09-19 02:41:26,379 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4 2024-09-19 02:41:26,466 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed 2024-09-19 02:41:26,483 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed 2024-09-19 02:41:26,498 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3 2024-09-19 02:41:26,509 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3 2024-09-19 02:41:26,519 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b608b1f6-8fc4-4e95-b2fd-1ad93d6a54c1 2024-09-19 02:41:26,527 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 02:41:26,527 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed 2024-09-19 02:41:26,541 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3 2024-09-19 02:41:26,564 - INFO - Verified VN network id 7 for VN 7e590c12-4a65-4000-829e-cd82fabe8eed 2024-09-19 02:41:26,564 - INFO - Verifications in API Server for VN ctest-vn-44092196 passed 2024-09-19 02:41:26,564 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed 2024-09-19 02:41:26,581 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3 2024-09-19 02:41:26,591 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3 2024-09-19 02:41:26,602 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b608b1f6-8fc4-4e95-b2fd-1ad93d6a54c1 2024-09-19 02:41:26,621 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48998383', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9104321394403262464', 'uuid-lslong': '9412186233687150317'}, 'enable': 'true', 'created': '2024-09-19T02:41:24', 'last-modified': '2024-09-19T02:41:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.102481'} 2024-09-19 02:41:26,630 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 02:41:26,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44092196 passed 2024-09-19 02:41:26,630 - DEBUG - ====Verifying policy data for ctest-vn-44092196 in API_Server ====== 2024-09-19 02:41:26,630 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-09-19 02:41:26,636 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b 2024-09-19 02:41:26,652 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4 2024-09-19 02:41:26,745 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed 2024-09-19 02:41:26,763 - DEBUG - ==>Verifying data for policy with id: 5ddb15bd-7749-4258-9e7d-2a4b06100874, fqn: ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898'] 2024-09-19 02:41:26,763 - INFO - VN ctest-vn-44092196 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 02:41:26,763 - DEBUG - Verifying the vn in opserver 2024-09-19 02:41:26,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196 virtual network link through opserver 10.0.0.24 2024-09-19 02:41:26,763 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-09-19 02:41:27,105 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-09-19 02:41:27,174 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196?flat'} 2024-09-19 02:41:27,174 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196 is found in opserver 2024-09-19 02:41:27,188 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 02:41:27,195 - DEBUG - VRF ids for VN ctest-vn-44092196: {} 2024-09-19 02:41:27,195 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-09-19 02:41:27,203 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b 2024-09-19 02:41:27,220 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4 2024-09-19 02:41:27,309 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 2024-09-19 02:41:27,327 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 2024-09-19 02:41:27,342 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8 2024-09-19 02:41:27,352 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8 2024-09-19 02:41:27,363 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/96c93c80-c6ab-4771-99d8-eb0f4a63c5e0 2024-09-19 02:41:27,373 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 02:41:27,373 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 2024-09-19 02:41:27,392 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8 2024-09-19 02:41:27,420 - INFO - Verified VN network id 8 for VN cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 2024-09-19 02:41:27,420 - INFO - Verifications in API Server for VN ctest-vn-75433895 passed 2024-09-19 02:41:27,421 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 2024-09-19 02:41:27,441 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8 2024-09-19 02:41:27,454 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8 2024-09-19 02:41:27,465 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/96c93c80-c6ab-4771-99d8-eb0f4a63c5e0 2024-09-19 02:41:27,481 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48998383', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14780415201618251347', 'uuid-lslong': '12026785991867155605'}, 'enable': 'true', 'created': '2024-09-19T02:41:24', 'last-modified': '2024-09-19T02:41:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.693513'} 2024-09-19 02:41:27,489 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 02:41:27,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75433895 passed 2024-09-19 02:41:27,490 - DEBUG - ====Verifying policy data for ctest-vn-75433895 in API_Server ====== 2024-09-19 02:41:27,490 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-09-19 02:41:27,498 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b 2024-09-19 02:41:27,518 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4 2024-09-19 02:41:27,609 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 2024-09-19 02:41:27,624 - DEBUG - ==>Verifying data for policy with id: 5ddb15bd-7749-4258-9e7d-2a4b06100874, fqn: ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898'] 2024-09-19 02:41:27,625 - INFO - VN ctest-vn-75433895 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 02:41:27,625 - DEBUG - Verifying the vn in opserver 2024-09-19 02:41:27,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895 virtual network link through opserver 10.0.0.24 2024-09-19 02:41:27,625 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-09-19 02:41:27,638 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895?flat'} 2024-09-19 02:41:27,638 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895 is found in opserver 2024-09-19 02:41:27,652 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 02:41:27,658 - DEBUG - VRF ids for VN ctest-vn-75433895: {} 2024-09-19 02:41:27,721 - DEBUG - Services list from nova: [, , ] 2024-09-19 02:41:28,888 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1997-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1997-1) 2024-09-19 02:41:30,335 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1997-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1997-1) 2024-09-19 02:41:30,336 - INFO - Waiting for VM ctest-TestBasicPolicy-48998383-68922034 to be up.. 2024-09-19 02:41:30,449 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 02:41:35,537 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:41:35,537 - INFO - VM name : ctest-TestBasicPolicy-48998383-68922034 2024-09-19 02:41:35,636 - DEBUG - VM ctest-TestBasicPolicy-48998383-68922034 ID is 1b65f9d2-0822-4bcc-8e54-080f3af5e4f7 2024-09-19 02:41:35,666 - DEBUG - VM ctest-TestBasicPolicy-48998383-68922034 launched on Node cn-jenkins-deploy-platform-ansible-os-1997-1 2024-09-19 02:41:35,764 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/1b65f9d2-0822-4bcc-8e54-080f3af5e4f7 2024-09-19 02:41:35,775 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/14e72b7e-edea-42c7-ab4d-5df649e1a94f 2024-09-19 02:41:39,052 - 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 1018ms') 2024-09-19 02:41:39,052 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48998383-68922034 failed! 2024-09-19 02:41:39,116 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196 is 109.155.6.65 and allocation pool is NOT set 2024-09-19 02:41:41,183 - 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=17.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.29 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 = 2.292/9.711/17.131/7.419 ms') 2024-09-19 02:41:41,183 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48998383-68922034 passed 2024-09-19 02:41:41,348 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:41,348 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48998383-68922034, IP 109.155.6.67, Port 22 2024-09-19 02:41:41,515 - DEBUG - VM ctest-TestBasicPolicy-48998383-68922034 is ready for SSH connections 2024-09-19 02:41:41,515 - INFO - Waiting for VM ctest-TestBasicPolicy-48998383-73561625 to be up.. 2024-09-19 02:41:41,642 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:41:41,642 - INFO - VM name : ctest-TestBasicPolicy-48998383-73561625 2024-09-19 02:41:41,744 - DEBUG - VM ctest-TestBasicPolicy-48998383-73561625 ID is af98e644-4aa0-4669-8cd4-bdb5f4567a35 2024-09-19 02:41:41,744 - DEBUG - VM ctest-TestBasicPolicy-48998383-73561625 launched on Node cn-jenkins-deploy-platform-ansible-os-1997-1 2024-09-19 02:41:41,853 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/af98e644-4aa0-4669-8cd4-bdb5f4567a35 2024-09-19 02:41:41,868 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/12b995de-8a9f-4aad-a944-f9726b8bb011 2024-09-19 02:41:43,154 - 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.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.06 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 = 2.062/3.496/4.930/1.434 ms') 2024-09-19 02:41:43,155 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-48998383-73561625 passed 2024-09-19 02:41:43,324 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:43,324 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48998383-73561625, IP 62.90.98.195, Port 22 2024-09-19 02:41:43,390 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-19 02:41:43,496 - DEBUG - VM ctest-TestBasicPolicy-48998383-73561625 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-19 02:41:48,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:48,498 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48998383-73561625, IP 62.90.98.195, Port 22 2024-09-19 02:41:48,656 - DEBUG - VM ctest-TestBasicPolicy-48998383-73561625 is ready for SSH connections 2024-09-19 02:41:48,656 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:48,656 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.90.98.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-09-19 02:41:48,657 - DEBUG - ping -s 56 -c 3 -W 1 62.90.98.195 2024-09-19 02:41:52,754 - DEBUG - PING 62.90.98.195 (62.90.98.195): 56 data bytes 64 bytes from 62.90.98.195: seq=0 ttl=63 time=4.311 ms 64 bytes from 62.90.98.195: seq=1 ttl=63 time=0.839 ms 64 bytes from 62.90.98.195: seq=2 ttl=63 time=0.821 ms --- 62.90.98.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.821/1.990/4.311 ms 2024-09-19 02:41:52,754 - INFO - Ping to IP 62.90.98.195 from VM ctest-TestBasicPolicy-48998383-68922034 passed 2024-09-19 02:41:52,956 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5ddb15bd-7749-4258-9e7d-2a4b06100874", "href": "http://10.0.0.24:8082/network-policy/5ddb15bd-7749-4258-9e7d-2a4b06100874"}} 2024-09-19 02:41:52,956 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:52,956 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.90.98.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-09-19 02:41:52,956 - DEBUG - ping -s 56 -c 3 -W 1 62.90.98.195 2024-09-19 02:41:56,188 - DEBUG - PING 62.90.98.195 (62.90.98.195): 56 data bytes --- 62.90.98.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-19 02:41:56,188 - WARNING - Ping to IP 62.90.98.195 from VM ctest-TestBasicPolicy-48998383-68922034 failed 2024-09-19 02:41:56,188 - INFO - Deleting VM ctest-TestBasicPolicy-48998383-73561625 2024-09-19 02:41:56,280 - INFO - Deleting VM ctest-TestBasicPolicy-48998383-68922034 2024-09-19 02:41:56,826 - INFO - Deleted policy ctest-policy-allow-all-87085898 2024-09-19 02:41:56,827 - INFO - Deleting VN ctest-vn-75433895 2024-09-19 02:41:56,880 - DEBUG - VN cd1e9550-dd3d-4e53-a6e7-ba2392e2c495 still in use: Unable to complete operation on network cd1e9550-dd3d-4e53-a6e7-ba2392e2c495. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6e687341-1738-415e-9d60-f717779defe0'] 2024-09-19 02:41:56,881 - WARNING - Deleting VN ctest-vn-75433895 failed..Will retry 2024-09-19 02:41:59,018 - DEBUG - Response for deleting network () 2024-09-19 02:41:59,018 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8 2024-09-19 02:41:59,027 - DEBUG - Response Code: 404 2024-09-19 02:41:59,027 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-09-19 02:41:59,034 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b 2024-09-19 02:41:59,099 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4 2024-09-19 02:41:59,186 - INFO - Validated that VN ctest-vn-75433895 is not found in API Server 2024-09-19 02:41:59,199 - DEBUG - VN ctest-vn-75433895 is not present in Agent 10.0.0.24 2024-09-19 02:41:59,199 - INFO - Validated that VN ctest-vn-75433895 is not in any agent 2024-09-19 02:41:59,219 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75433895 info 2024-09-19 02:41:59,219 - INFO - Deleting VN ctest-vn-44092196 2024-09-19 02:41:59,339 - DEBUG - Response for deleting network () 2024-09-19 02:41:59,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3 2024-09-19 02:41:59,353 - DEBUG - Response Code: 404 2024-09-19 02:41:59,353 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-09-19 02:41:59,359 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b 2024-09-19 02:41:59,415 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4 2024-09-19 02:41:59,499 - INFO - Validated that VN ctest-vn-44092196 is not found in API Server 2024-09-19 02:41:59,514 - DEBUG - VN ctest-vn-44092196 is not present in Agent 10.0.0.24 2024-09-19 02:41:59,514 - INFO - Validated that VN ctest-vn-44092196 is not in any agent 2024-09-19 02:41:59,532 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44092196 info 2024-09-19 02:41:59,802 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 02:41:59,802 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-09-19 02:41:59,803 - INFO - -------------------------------------------------------------------------------- 2024-09-19 02:42:00,617 - INFO - Deleted project: ctest-TestBasicPolicy-48998383, ID : 6e33e0a5-42ed-4cdd-9a38-22750be7efd4