2025-01-02 23:26:59,386 - INFO - Domain Default found not creating 2025-01-02 23:26:59,528 - INFO - Project ctest-TestBasicPolicy-29237929 not found, creating it 2025-01-02 23:26:59,975 - INFO - Created Project:ctest-TestBasicPolicy-29237929, ID : 3e6fb268-25ac-49ba-a0af-6dfb901cbc2e 2025-01-02 23:27:01,423 - INFO - ================================================================================ 2025-01-02 23:27:01,423 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-02 23:27:01,423 - 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 2025-01-02 23:27:01,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with 2025-01-02 23:27:01,676 - INFO - Initial checks done. Running the testcase now 2025-01-02 23:27:01,676 - INFO - 2025-01-02 23:27:02,210 - DEBUG - Response for create_network : {'network': {'id': 'de7218be-c2c0-4aec-b49d-ff248f67b68b', 'name': 'ctest-vn-89128306', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-89128306'], 'port_security_enabled': True, 'description': ''}} 2025-01-02 23:27:02,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb628d8a-f764-4509-b5ba-9cabb2e3b224', 'name': '', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'network_id': 'de7218be-c2c0-4aec-b49d-ff248f67b68b', 'ip_version': 4, 'cidr': '58.126.30.64/26', 'allocation_pools': [{'start': '58.126.30.66', 'end': '58.126.30.126'}], 'gateway_ip': '58.126.30.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.126.30.66', 'tags': [], 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e'}} 2025-01-02 23:27:02,399 - INFO - Created VN ctest-vn-89128306 2025-01-02 23:27:02,450 - DEBUG - VN ctest-vn-89128306 UUID is de7218be-c2c0-4aec-b49d-ff248f67b68b 2025-01-02 23:27:02,762 - DEBUG - Response for create_network : {'network': {'id': '500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af', 'name': 'ctest-vn-82408345', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-82408345'], 'port_security_enabled': True, 'description': ''}} 2025-01-02 23:27:02,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '78e11b78-649c-41f5-8431-12e7131d5740', 'name': '', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'network_id': '500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af', 'ip_version': 4, 'cidr': '204.244.161.192/26', 'allocation_pools': [{'start': '204.244.161.194', 'end': '204.244.161.254'}], 'gateway_ip': '204.244.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.244.161.194', 'tags': [], 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e'}} 2025-01-02 23:27:02,954 - INFO - Created VN ctest-vn-82408345 2025-01-02 23:27:03,006 - DEBUG - VN ctest-vn-82408345 UUID is 500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af 2025-01-02 23:27:03,154 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306, 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-29237929:ctest-vn-82408345, 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] 2025-01-02 23:27:03,442 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de7218be-c2c0-4aec-b49d-ff248f67b68b', 'name': 'ctest-vn-89128306', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb628d8a-f764-4509-b5ba-9cabb2e3b224'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-89128306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283']], 'subnet_ipam': [{'subnet_cidr': '58.126.30.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-02 23:27:03,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af', 'name': 'ctest-vn-82408345', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78e11b78-649c-41f5-8431-12e7131d5740'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-82408345'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283']], 'subnet_ipam': [{'subnet_cidr': '204.244.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-02 23:27:03,822 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-02 23:27:04,125 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-02 23:27:04,154 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc 2025-01-02 23:27:04,168 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e 2025-01-02 23:27:04,243 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b 2025-01-02 23:27:04,258 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b 2025-01-02 23:27:04,269 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217 2025-01-02 23:27:04,277 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217 2025-01-02 23:27:04,285 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/7798a20b-0dd1-4c71-a199-bb6712a99dea 2025-01-02 23:27:04,293 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 23:27:04,294 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b 2025-01-02 23:27:04,305 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217 2025-01-02 23:27:04,321 - INFO - Verified VN network id 9 for VN de7218be-c2c0-4aec-b49d-ff248f67b68b 2025-01-02 23:27:04,321 - INFO - Verifications in API Server for VN ctest-vn-89128306 passed 2025-01-02 23:27:04,321 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b 2025-01-02 23:27:04,331 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217 2025-01-02 23:27:04,339 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217 2025-01-02 23:27:04,347 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/7798a20b-0dd1-4c71-a199-bb6712a99dea 2025-01-02 23:27:04,359 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29237929', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16028901231355251436', 'uuid-lslong': '13014839030660445835'}, 'enable': 'true', 'created': '2025-01-02T23:27:02', 'last-modified': '2025-01-02T23:27:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932786'} 2025-01-02 23:27:04,366 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 23:27:04,366 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89128306 passed 2025-01-02 23:27:04,366 - DEBUG - ====Verifying policy data for ctest-vn-89128306 in API_Server ====== 2025-01-02 23:27:04,367 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-02 23:27:04,373 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc 2025-01-02 23:27:04,386 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e 2025-01-02 23:27:04,462 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b 2025-01-02 23:27:04,474 - DEBUG - ==>Verifying data for policy with id: c990247b-c0bb-4de5-8a9b-db770d6b4d22, fqn: ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283'] 2025-01-02 23:27:04,474 - INFO - VN ctest-vn-89128306 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 23:27:04,474 - DEBUG - Verifying the vn in opserver 2025-01-02 23:27:04,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306 virtual network link through opserver 10.0.0.17 2025-01-02 23:27:04,474 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-02 23:27:04,764 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-02 23:27:04,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306?flat'} 2025-01-02 23:27:04,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306 is found in opserver 2025-01-02 23:27:04,824 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 23:27:04,829 - DEBUG - VRF ids for VN ctest-vn-89128306: {} 2025-01-02 23:27:04,829 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-02 23:27:04,834 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc 2025-01-02 23:27:04,845 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e 2025-01-02 23:27:04,917 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af 2025-01-02 23:27:04,928 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af 2025-01-02 23:27:04,937 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4 2025-01-02 23:27:04,945 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4 2025-01-02 23:27:04,952 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71b1e263-879e-4cea-85c7-9ab0e93e0dd5 2025-01-02 23:27:04,959 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 23:27:04,959 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af 2025-01-02 23:27:04,968 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4 2025-01-02 23:27:04,981 - INFO - Verified VN network id 10 for VN 500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af 2025-01-02 23:27:04,982 - INFO - Verifications in API Server for VN ctest-vn-82408345 passed 2025-01-02 23:27:04,982 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af 2025-01-02 23:27:04,991 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4 2025-01-02 23:27:04,997 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4 2025-01-02 23:27:05,005 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71b1e263-879e-4cea-85c7-9ab0e93e0dd5 2025-01-02 23:27:05,018 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29237929', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5767456830960192106', 'uuid-lslong': '10267294223707148719'}, 'enable': 'true', 'created': '2025-01-02T23:27:02', 'last-modified': '2025-01-02T23:27:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.370350'} 2025-01-02 23:27:05,024 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 23:27:05,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82408345 passed 2025-01-02 23:27:05,024 - DEBUG - ====Verifying policy data for ctest-vn-82408345 in API_Server ====== 2025-01-02 23:27:05,024 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-02 23:27:05,030 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc 2025-01-02 23:27:05,041 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e 2025-01-02 23:27:05,116 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af 2025-01-02 23:27:05,128 - DEBUG - ==>Verifying data for policy with id: c990247b-c0bb-4de5-8a9b-db770d6b4d22, fqn: ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283'] 2025-01-02 23:27:05,128 - INFO - VN ctest-vn-82408345 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 23:27:05,128 - DEBUG - Verifying the vn in opserver 2025-01-02 23:27:05,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345 virtual network link through opserver 10.0.0.17 2025-01-02 23:27:05,128 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-02 23:27:05,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345?flat'} 2025-01-02 23:27:05,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345 is found in opserver 2025-01-02 23:27:05,152 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 23:27:05,157 - DEBUG - VRF ids for VN ctest-vn-82408345: {} 2025-01-02 23:27:05,216 - DEBUG - Services list from nova: [, , ] 2025-01-02 23:27:06,203 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2517-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2517-1) 2025-01-02 23:27:07,423 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2517-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2517-1) 2025-01-02 23:27:07,424 - INFO - Waiting for VM ctest-TestBasicPolicy-29237929-83229014 to be up.. 2025-01-02 23:27:07,503 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-02 23:27:12,593 - DEBUG - VM is in ACTIVE state now 2025-01-02 23:27:12,593 - INFO - VM name : ctest-TestBasicPolicy-29237929-83229014 2025-01-02 23:27:12,674 - DEBUG - VM ctest-TestBasicPolicy-29237929-83229014 ID is 42930caf-4012-4dc0-bca9-91e01633431b 2025-01-02 23:27:12,697 - DEBUG - VM ctest-TestBasicPolicy-29237929-83229014 launched on Node cn-jenkins-deploy-platform-ansible-os-2517-1 2025-01-02 23:27:12,779 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/42930caf-4012-4dc0-bca9-91e01633431b 2025-01-02 23:27:12,787 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/4f688914-96c8-4357-9031-ba11fa95a2c5 2025-01-02 23:27:16,002 - 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 1020ms') 2025-01-02 23:27:16,003 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29237929-83229014 failed! 2025-01-02 23:27:16,058 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306 is 58.126.30.65 and allocation pool is NOT set 2025-01-02 23:27:18,118 - 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.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.364 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.364/1.657/2.950/1.293 ms') 2025-01-02 23:27:18,118 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29237929-83229014 passed 2025-01-02 23:27:18,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 23:27:18,266 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29237929-83229014, IP 58.126.30.67, Port 22 2025-01-02 23:27:18,422 - DEBUG - VM ctest-TestBasicPolicy-29237929-83229014 is ready for SSH connections 2025-01-02 23:27:18,422 - INFO - Waiting for VM ctest-TestBasicPolicy-29237929-97970145 to be up.. 2025-01-02 23:27:18,492 - DEBUG - VM is in ACTIVE state now 2025-01-02 23:27:18,492 - INFO - VM name : ctest-TestBasicPolicy-29237929-97970145 2025-01-02 23:27:18,564 - DEBUG - VM ctest-TestBasicPolicy-29237929-97970145 ID is 0dbdc5f3-b83b-4919-a0b6-c389c804256b 2025-01-02 23:27:18,564 - DEBUG - VM ctest-TestBasicPolicy-29237929-97970145 launched on Node cn-jenkins-deploy-platform-ansible-os-2517-1 2025-01-02 23:27:18,636 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/0dbdc5f3-b83b-4919-a0b6-c389c804256b 2025-01-02 23:27:18,644 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/5866e172-a6dc-4f2d-8a31-dbcd39e5ab23 2025-01-02 23:27:19,879 - 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.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.07 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 = 1.066/2.279/3.493/1.213 ms') 2025-01-02 23:27:19,879 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-29237929-97970145 passed 2025-01-02 23:27:20,026 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 23:27:20,026 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29237929-97970145, IP 204.244.161.195, Port 22 2025-01-02 23:27:20,082 - 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': ''} 2025-01-02 23:27:20,157 - DEBUG - VM ctest-TestBasicPolicy-29237929-97970145 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-02 23:27:25,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 23:27:25,157 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29237929-97970145, IP 204.244.161.195, Port 22 2025-01-02 23:27:25,314 - DEBUG - VM ctest-TestBasicPolicy-29237929-97970145 is ready for SSH connections 2025-01-02 23:27:25,314 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 23:27:25,315 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.244.161.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-02 23:27:25,315 - DEBUG - ping -s 56 -c 3 -W 1 204.244.161.195 2025-01-02 23:27:28,993 - DEBUG - PING 204.244.161.195 (204.244.161.195): 56 data bytes 64 bytes from 204.244.161.195: seq=0 ttl=63 time=3.543 ms 64 bytes from 204.244.161.195: seq=1 ttl=63 time=1.102 ms 64 bytes from 204.244.161.195: seq=2 ttl=63 time=0.820 ms --- 204.244.161.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.820/1.821/3.543 ms 2025-01-02 23:27:28,994 - INFO - Ping to IP 204.244.161.195 from VM ctest-TestBasicPolicy-29237929-83229014 passed 2025-01-02 23:27:29,174 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c990247b-c0bb-4de5-8a9b-db770d6b4d22", "href": "http://10.0.0.17:8082/network-policy/c990247b-c0bb-4de5-8a9b-db770d6b4d22"}} 2025-01-02 23:27:29,174 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 23:27:29,174 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.244.161.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-02 23:27:29,175 - DEBUG - ping -s 56 -c 3 -W 1 204.244.161.195 2025-01-02 23:27:32,377 - DEBUG - PING 204.244.161.195 (204.244.161.195): 56 data bytes 64 bytes from 204.244.161.195: seq=0 ttl=63 time=1.484 ms --- 204.244.161.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.484/1.484/1.484 ms 2025-01-02 23:27:32,377 - WARNING - Ping to IP 204.244.161.195 from VM ctest-TestBasicPolicy-29237929-83229014 failed 2025-01-02 23:27:32,377 - INFO - Deleting VM ctest-TestBasicPolicy-29237929-97970145 2025-01-02 23:27:32,451 - INFO - Deleting VM ctest-TestBasicPolicy-29237929-83229014 2025-01-02 23:27:32,836 - INFO - Deleted policy ctest-policy-allow-all-88699283 2025-01-02 23:27:32,836 - INFO - Deleting VN ctest-vn-82408345 2025-01-02 23:27:32,873 - DEBUG - VN 500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af still in use: Unable to complete operation on network 500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0b73e91c-372c-4a45-8ee8-1486f11ecd08'] 2025-01-02 23:27:32,873 - WARNING - Deleting VN ctest-vn-82408345 failed..Will retry 2025-01-02 23:27:34,968 - DEBUG - Response for deleting network () 2025-01-02 23:27:34,968 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4 2025-01-02 23:27:34,974 - DEBUG - Response Code: 404 2025-01-02 23:27:34,974 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-02 23:27:34,988 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc 2025-01-02 23:27:35,044 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e 2025-01-02 23:27:35,116 - INFO - Validated that VN ctest-vn-82408345 is not found in API Server 2025-01-02 23:27:35,126 - DEBUG - VN ctest-vn-82408345 is not present in Agent 10.0.0.17 2025-01-02 23:27:35,126 - INFO - Validated that VN ctest-vn-82408345 is not in any agent 2025-01-02 23:27:35,140 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82408345 info 2025-01-02 23:27:35,140 - INFO - Deleting VN ctest-vn-89128306 2025-01-02 23:27:35,235 - DEBUG - Response for deleting network () 2025-01-02 23:27:35,235 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217 2025-01-02 23:27:35,242 - DEBUG - Response Code: 404 2025-01-02 23:27:35,242 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-02 23:27:35,246 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc 2025-01-02 23:27:35,299 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e 2025-01-02 23:27:35,366 - INFO - Validated that VN ctest-vn-89128306 is not found in API Server 2025-01-02 23:27:35,377 - DEBUG - VN ctest-vn-89128306 is not present in Agent 10.0.0.17 2025-01-02 23:27:35,377 - INFO - Validated that VN ctest-vn-89128306 is not in any agent 2025-01-02 23:27:35,392 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89128306 info 2025-01-02 23:27:35,643 - DEBUG - No XMPP flaps were noticed during the test 2025-01-02 23:27:35,644 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-01-02 23:27:35,644 - INFO - -------------------------------------------------------------------------------- 2025-01-02 23:27:36,318 - INFO - Deleted project: ctest-TestBasicPolicy-29237929, ID : 3e6fb268-25ac-49ba-a0af-6dfb901cbc2e