2024-09-13 11:38:19,058 - INFO - Domain Default found not creating 2024-09-13 11:38:19,260 - INFO - Project ctest-TestBasicPolicy-56460208 not found, creating it 2024-09-13 11:38:19,815 - INFO - Created Project:ctest-TestBasicPolicy-56460208, ID : 0830e650-0aeb-46df-98e7-ecb76f34a510 2024-09-13 11:38:21,463 - INFO - ================================================================================ 2024-09-13 11:38:21,463 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 11:38:21,464 - 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-13 11:38:21,726 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.10': '0'}} with 2024-09-13 11:38:21,726 - INFO - Initial checks done. Running the testcase now 2024-09-13 11:38:21,726 - INFO - 2024-09-13 11:38:22,692 - DEBUG - Response for create_network : {'network': {'id': '7b7968c6-b71b-495f-9714-b00073374da4', 'name': 'ctest-vn-40368442', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-40368442'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 11:38:23,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc41fe7a-b613-4884-9b3b-e2ff4416d3ce', 'name': '', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'network_id': '7b7968c6-b71b-495f-9714-b00073374da4', 'ip_version': 4, 'cidr': '121.241.52.128/26', 'allocation_pools': [{'start': '121.241.52.130', 'end': '121.241.52.190'}], 'gateway_ip': '121.241.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.241.52.130', 'tags': [], 'project_id': '0830e6500aeb46df98e7ecb76f34a510'}} 2024-09-13 11:38:23,097 - INFO - Created VN ctest-vn-40368442 2024-09-13 11:38:23,159 - DEBUG - VN ctest-vn-40368442 UUID is 7b7968c6-b71b-495f-9714-b00073374da4 2024-09-13 11:38:23,517 - DEBUG - Response for create_network : {'network': {'id': '168d2545-a1ea-4d57-8847-9a5f6b6f9b5d', 'name': 'ctest-vn-33350240', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-33350240'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 11:38:23,707 - DEBUG - Response for create_subnet : {'subnet': {'id': '41c955bb-b072-42bf-a5c7-c1aa99e8c296', 'name': '', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'network_id': '168d2545-a1ea-4d57-8847-9a5f6b6f9b5d', 'ip_version': 4, 'cidr': '3.231.244.128/26', 'allocation_pools': [{'start': '3.231.244.130', 'end': '3.231.244.190'}], 'gateway_ip': '3.231.244.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.231.244.130', 'tags': [], 'project_id': '0830e6500aeb46df98e7ecb76f34a510'}} 2024-09-13 11:38:23,729 - INFO - Created VN ctest-vn-33350240 2024-09-13 11:38:23,791 - DEBUG - VN ctest-vn-33350240 UUID is 168d2545-a1ea-4d57-8847-9a5f6b6f9b5d 2024-09-13 11:38:23,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442, 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-56460208:ctest-vn-33350240, 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-13 11:38:24,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b7968c6-b71b-495f-9714-b00073374da4', 'name': 'ctest-vn-40368442', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc41fe7a-b613-4884-9b3b-e2ff4416d3ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-40368442'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327']], 'subnet_ipam': [{'subnet_cidr': '121.241.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 11:38:24,488 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '168d2545-a1ea-4d57-8847-9a5f6b6f9b5d', 'name': 'ctest-vn-33350240', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41c955bb-b072-42bf-a5c7-c1aa99e8c296'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-33350240'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327']], 'subnet_ipam': [{'subnet_cidr': '3.231.244.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 11:38:24,639 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 11:38:24,946 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 11:38:24,980 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e 2024-09-13 11:38:24,999 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510 2024-09-13 11:38:25,085 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4 2024-09-13 11:38:25,104 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4 2024-09-13 11:38:25,118 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634 2024-09-13 11:38:25,127 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634 2024-09-13 11:38:25,136 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/b2cb3089-b479-4279-8bd2-8ee65d1244cd 2024-09-13 11:38:25,145 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 11:38:25,146 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4 2024-09-13 11:38:25,160 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634 2024-09-13 11:38:25,182 - INFO - Verified VN network id 9 for VN 7b7968c6-b71b-495f-9714-b00073374da4 2024-09-13 11:38:25,182 - INFO - Verifications in API Server for VN ctest-vn-40368442 passed 2024-09-13 11:38:25,183 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4 2024-09-13 11:38:25,202 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634 2024-09-13 11:38:25,217 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634 2024-09-13 11:38:25,228 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/b2cb3089-b479-4279-8bd2-8ee65d1244cd 2024-09-13 11:38:25,247 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56460208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8897257741531957599', 'uuid-lslong': '10886519715240824228'}, 'enable': 'true', 'created': '2024-09-13T11:38:22', 'last-modified': '2024-09-13T11:38:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035694'} 2024-09-13 11:38:25,257 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 11:38:25,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40368442 passed 2024-09-13 11:38:25,258 - DEBUG - ====Verifying policy data for ctest-vn-40368442 in API_Server ====== 2024-09-13 11:38:25,258 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 11:38:25,266 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e 2024-09-13 11:38:25,291 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510 2024-09-13 11:38:25,375 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4 2024-09-13 11:38:25,391 - DEBUG - ==>Verifying data for policy with id: b036866d-ac14-4e45-97aa-181d964cedf5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327'] 2024-09-13 11:38:25,391 - INFO - VN ctest-vn-40368442 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 11:38:25,391 - DEBUG - Verifying the vn in opserver 2024-09-13 11:38:25,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442 virtual network link through opserver 10.0.0.40 2024-09-13 11:38:25,391 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-13 11:38:25,690 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-13 11:38:25,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442?flat'} 2024-09-13 11:38:25,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442 is found in opserver 2024-09-13 11:38:25,781 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 11:38:25,787 - DEBUG - VRF ids for VN ctest-vn-40368442: {} 2024-09-13 11:38:25,787 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 11:38:25,794 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e 2024-09-13 11:38:25,809 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510 2024-09-13 11:38:25,895 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d 2024-09-13 11:38:25,912 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d 2024-09-13 11:38:25,927 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2 2024-09-13 11:38:25,938 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2 2024-09-13 11:38:25,948 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/277b6b4f-c1ce-4109-b83b-5e1c767e1fc8 2024-09-13 11:38:25,958 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 11:38:25,958 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d 2024-09-13 11:38:25,974 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2 2024-09-13 11:38:25,998 - INFO - Verified VN network id 10 for VN 168d2545-a1ea-4d57-8847-9a5f6b6f9b5d 2024-09-13 11:38:25,998 - INFO - Verifications in API Server for VN ctest-vn-33350240 passed 2024-09-13 11:38:25,998 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d 2024-09-13 11:38:26,016 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2 2024-09-13 11:38:26,026 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2 2024-09-13 11:38:26,037 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/277b6b4f-c1ce-4109-b83b-5e1c767e1fc8 2024-09-13 11:38:26,054 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56460208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1624996021550075223', 'uuid-lslong': '9819987247119702877'}, 'enable': 'true', 'created': '2024-09-13T11:38:23', 'last-modified': '2024-09-13T11:38:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.587078'} 2024-09-13 11:38:26,061 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 11:38:26,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33350240 passed 2024-09-13 11:38:26,061 - DEBUG - ====Verifying policy data for ctest-vn-33350240 in API_Server ====== 2024-09-13 11:38:26,061 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 11:38:26,069 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e 2024-09-13 11:38:26,084 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510 2024-09-13 11:38:26,170 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d 2024-09-13 11:38:26,187 - DEBUG - ==>Verifying data for policy with id: b036866d-ac14-4e45-97aa-181d964cedf5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327'] 2024-09-13 11:38:26,187 - INFO - VN ctest-vn-33350240 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 11:38:26,187 - DEBUG - Verifying the vn in opserver 2024-09-13 11:38:26,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240 virtual network link through opserver 10.0.0.40 2024-09-13 11:38:26,187 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-13 11:38:26,199 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240?flat'} 2024-09-13 11:38:26,199 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240 is found in opserver 2024-09-13 11:38:26,212 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 11:38:26,218 - DEBUG - VRF ids for VN ctest-vn-33350240: {} 2024-09-13 11:38:26,277 - DEBUG - Services list from nova: [, , ] 2024-09-13 11:38:27,362 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1916-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1916-1) 2024-09-13 11:38:28,670 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1916-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1916-1) 2024-09-13 11:38:28,670 - INFO - Waiting for VM ctest-TestBasicPolicy-56460208-75457140 to be up.. 2024-09-13 11:38:28,774 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 11:38:33,877 - DEBUG - VM is in ACTIVE state now 2024-09-13 11:38:33,877 - INFO - VM name : ctest-TestBasicPolicy-56460208-75457140 2024-09-13 11:38:33,978 - DEBUG - VM ctest-TestBasicPolicy-56460208-75457140 ID is cf6c9cb2-2796-4025-9dd0-380706076f9c 2024-09-13 11:38:34,003 - DEBUG - VM ctest-TestBasicPolicy-56460208-75457140 launched on Node cn-jenkins-deploy-platform-ansible-os-1916-1 2024-09-13 11:38:34,123 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/cf6c9cb2-2796-4025-9dd0-380706076f9c 2024-09-13 11:38:34,135 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/1ec2e81e-3b99-4dde-a2d7-4816ac58341e 2024-09-13 11:38:37,367 - 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 1001ms') 2024-09-13 11:38:37,367 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56460208-75457140 failed! 2024-09-13 11:38:37,431 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442 is 121.241.52.129 and allocation pool is NOT set 2024-09-13 11:38:39,495 - 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=4.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.12 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 = 2.118/3.447/4.777/1.329 ms') 2024-09-13 11:38:39,495 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56460208-75457140 passed 2024-09-13 11:38:39,655 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 11:38:39,655 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56460208-75457140, IP 121.241.52.131, Port 22 2024-09-13 11:38:39,822 - DEBUG - VM ctest-TestBasicPolicy-56460208-75457140 is ready for SSH connections 2024-09-13 11:38:39,822 - INFO - Waiting for VM ctest-TestBasicPolicy-56460208-10310957 to be up.. 2024-09-13 11:38:39,935 - DEBUG - VM is in ACTIVE state now 2024-09-13 11:38:39,935 - INFO - VM name : ctest-TestBasicPolicy-56460208-10310957 2024-09-13 11:38:40,029 - DEBUG - VM ctest-TestBasicPolicy-56460208-10310957 ID is aaeecdcd-ca67-4572-b299-39328abe880f 2024-09-13 11:38:40,029 - DEBUG - VM ctest-TestBasicPolicy-56460208-10310957 launched on Node cn-jenkins-deploy-platform-ansible-os-1916-1 2024-09-13 11:38:40,130 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/aaeecdcd-ca67-4572-b299-39328abe880f 2024-09-13 11:38:40,142 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/e9e0afd6-c5b4-4341-8473-b40d243257f5 2024-09-13 11:38:41,405 - 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.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.740 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.740/1.925/3.111/1.185 ms') 2024-09-13 11:38:41,405 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56460208-10310957 passed 2024-09-13 11:38:41,571 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 11:38:41,571 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56460208-10310957, IP 3.231.244.131, Port 22 2024-09-13 11:38:41,727 - DEBUG - VM ctest-TestBasicPolicy-56460208-10310957 is ready for SSH connections 2024-09-13 11:38:41,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 11:38:41,727 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.231.244.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-13 11:38:41,727 - DEBUG - ping -s 56 -c 3 -W 1 3.231.244.131 2024-09-13 11:38:45,826 - DEBUG - PING 3.231.244.131 (3.231.244.131): 56 data bytes 64 bytes from 3.231.244.131: seq=0 ttl=63 time=4.234 ms 64 bytes from 3.231.244.131: seq=1 ttl=63 time=0.931 ms 64 bytes from 3.231.244.131: seq=2 ttl=63 time=1.345 ms --- 3.231.244.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/2.170/4.234 ms 2024-09-13 11:38:45,826 - INFO - Ping to IP 3.231.244.131 from VM ctest-TestBasicPolicy-56460208-75457140 passed 2024-09-13 11:38:46,035 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b036866d-ac14-4e45-97aa-181d964cedf5", "href": "http://10.0.0.40:8082/network-policy/b036866d-ac14-4e45-97aa-181d964cedf5"}} 2024-09-13 11:38:46,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 11:38:46,035 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.231.244.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-13 11:38:46,035 - DEBUG - ping -s 56 -c 3 -W 1 3.231.244.131 2024-09-13 11:38:49,254 - DEBUG - PING 3.231.244.131 (3.231.244.131): 56 data bytes 64 bytes from 3.231.244.131: seq=0 ttl=63 time=1.938 ms --- 3.231.244.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.938/1.938/1.938 ms 2024-09-13 11:38:49,254 - WARNING - Ping to IP 3.231.244.131 from VM ctest-TestBasicPolicy-56460208-75457140 failed 2024-09-13 11:38:49,254 - INFO - Deleting VM ctest-TestBasicPolicy-56460208-10310957 2024-09-13 11:38:49,325 - INFO - Deleting VM ctest-TestBasicPolicy-56460208-75457140 2024-09-13 11:38:49,829 - INFO - Deleted policy ctest-policy-allow-all-36491327 2024-09-13 11:38:49,830 - INFO - Deleting VN ctest-vn-33350240 2024-09-13 11:38:49,881 - DEBUG - VN 168d2545-a1ea-4d57-8847-9a5f6b6f9b5d still in use: Unable to complete operation on network 168d2545-a1ea-4d57-8847-9a5f6b6f9b5d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7c86d7d0-7d13-4a58-ac5a-921b36873571'] 2024-09-13 11:38:49,881 - WARNING - Deleting VN ctest-vn-33350240 failed..Will retry 2024-09-13 11:38:52,023 - DEBUG - Response for deleting network () 2024-09-13 11:38:52,023 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2 2024-09-13 11:38:52,030 - DEBUG - Response Code: 404 2024-09-13 11:38:52,031 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 11:38:52,041 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e 2024-09-13 11:38:52,097 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510 2024-09-13 11:38:52,186 - INFO - Validated that VN ctest-vn-33350240 is not found in API Server 2024-09-13 11:38:52,199 - DEBUG - VN ctest-vn-33350240 is not present in Agent 10.0.0.40 2024-09-13 11:38:52,200 - INFO - Validated that VN ctest-vn-33350240 is not in any agent 2024-09-13 11:38:52,217 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33350240 info 2024-09-13 11:38:52,217 - INFO - Deleting VN ctest-vn-40368442 2024-09-13 11:38:52,354 - DEBUG - Response for deleting network () 2024-09-13 11:38:52,354 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634 2024-09-13 11:38:52,364 - DEBUG - Response Code: 404 2024-09-13 11:38:52,364 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 11:38:52,370 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e 2024-09-13 11:38:52,425 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510 2024-09-13 11:38:52,508 - INFO - Validated that VN ctest-vn-40368442 is not found in API Server 2024-09-13 11:38:52,521 - DEBUG - VN ctest-vn-40368442 is not present in Agent 10.0.0.40 2024-09-13 11:38:52,521 - INFO - Validated that VN ctest-vn-40368442 is not in any agent 2024-09-13 11:38:52,539 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40368442 info 2024-09-13 11:38:52,796 - DEBUG - No XMPP flaps were noticed during the test 2024-09-13 11:38:52,796 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-09-13 11:38:52,796 - INFO - -------------------------------------------------------------------------------- 2024-09-13 11:38:53,536 - INFO - Deleted project: ctest-TestBasicPolicy-56460208, ID : 0830e650-0aeb-46df-98e7-ecb76f34a510