2024-09-17 18:31:58,753 - INFO - Domain Default found not creating 2024-09-17 18:31:58,934 - INFO - Project ctest-TestBasicPolicy-76425764 not found, creating it 2024-09-17 18:31:59,435 - INFO - Created Project:ctest-TestBasicPolicy-76425764, ID : 0664ae48-f2f4-4a10-8211-6e01314318df 2024-09-17 18:32:00,939 - INFO - ================================================================================ 2024-09-17 18:32:00,939 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 18:32:00,940 - 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-17 18:32:01,197 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2024-09-17 18:32:01,197 - INFO - Initial checks done. Running the testcase now 2024-09-17 18:32:01,197 - INFO - 2024-09-17 18:32:01,778 - DEBUG - Response for create_network : {'network': {'id': '3c729da4-dfa5-405f-9c9b-d0923626f0ec', 'name': 'ctest-vn-97895518', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-97895518'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 18:32:01,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a8fd266-d53e-448a-90d8-925167dcf95a', 'name': '', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'network_id': '3c729da4-dfa5-405f-9c9b-d0923626f0ec', 'ip_version': 4, 'cidr': '200.128.122.192/26', 'allocation_pools': [{'start': '200.128.122.194', 'end': '200.128.122.254'}], 'gateway_ip': '200.128.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.128.122.194', 'tags': [], 'project_id': '0664ae48f2f44a1082116e01314318df'}} 2024-09-17 18:32:02,004 - INFO - Created VN ctest-vn-97895518 2024-09-17 18:32:02,063 - DEBUG - VN ctest-vn-97895518 UUID is 3c729da4-dfa5-405f-9c9b-d0923626f0ec 2024-09-17 18:32:02,391 - DEBUG - Response for create_network : {'network': {'id': 'ddd5f14d-81ba-42b8-8bb9-4375a602ddd8', 'name': 'ctest-vn-53377482', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-53377482'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 18:32:02,621 - DEBUG - Response for create_subnet : {'subnet': {'id': '03de2d33-1d7b-4485-b3d3-3cd7eab97b37', 'name': '', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'network_id': 'ddd5f14d-81ba-42b8-8bb9-4375a602ddd8', 'ip_version': 4, 'cidr': '114.153.213.128/26', 'allocation_pools': [{'start': '114.153.213.130', 'end': '114.153.213.190'}], 'gateway_ip': '114.153.213.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.153.213.130', 'tags': [], 'project_id': '0664ae48f2f44a1082116e01314318df'}} 2024-09-17 18:32:02,640 - INFO - Created VN ctest-vn-53377482 2024-09-17 18:32:02,695 - DEBUG - VN ctest-vn-53377482 UUID is ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 2024-09-17 18:32:02,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518, 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-76425764:ctest-vn-53377482, 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-17 18:32:03,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c729da4-dfa5-405f-9c9b-d0923626f0ec', 'name': 'ctest-vn-97895518', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a8fd266-d53e-448a-90d8-925167dcf95a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-97895518'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974']], 'subnet_ipam': [{'subnet_cidr': '200.128.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 18:32:03,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddd5f14d-81ba-42b8-8bb9-4375a602ddd8', 'name': 'ctest-vn-53377482', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03de2d33-1d7b-4485-b3d3-3cd7eab97b37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-53377482'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974']], 'subnet_ipam': [{'subnet_cidr': '114.153.213.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 18:32:03,611 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 18:32:03,919 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 18:32:03,950 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea 2024-09-17 18:32:03,965 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df 2024-09-17 18:32:04,061 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec 2024-09-17 18:32:04,083 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec 2024-09-17 18:32:04,103 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755 2024-09-17 18:32:04,115 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755 2024-09-17 18:32:04,126 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f8d4cdf3-1aae-4c8b-a234-b37af5bca1c3 2024-09-17 18:32:04,134 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 18:32:04,134 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec 2024-09-17 18:32:04,147 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755 2024-09-17 18:32:04,168 - INFO - Verified VN network id 8 for VN 3c729da4-dfa5-405f-9c9b-d0923626f0ec 2024-09-17 18:32:04,168 - INFO - Verifications in API Server for VN ctest-vn-97895518 passed 2024-09-17 18:32:04,168 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec 2024-09-17 18:32:04,184 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755 2024-09-17 18:32:04,193 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755 2024-09-17 18:32:04,203 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f8d4cdf3-1aae-4c8b-a234-b37af5bca1c3 2024-09-17 18:32:04,218 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76425764', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4355717121073037407', 'uuid-lslong': '11284842617699234028'}, 'enable': 'true', 'created': '2024-09-17T18:32:01', 'last-modified': '2024-09-17T18:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074027'} 2024-09-17 18:32:04,226 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 18:32:04,226 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97895518 passed 2024-09-17 18:32:04,227 - DEBUG - ====Verifying policy data for ctest-vn-97895518 in API_Server ====== 2024-09-17 18:32:04,227 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 18:32:04,233 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea 2024-09-17 18:32:04,246 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df 2024-09-17 18:32:04,330 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec 2024-09-17 18:32:04,356 - DEBUG - ==>Verifying data for policy with id: 3d0dd318-c6dd-4199-8b40-b4b318e28858, fqn: ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974'] 2024-09-17 18:32:04,356 - INFO - VN ctest-vn-97895518 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 18:32:04,356 - DEBUG - Verifying the vn in opserver 2024-09-17 18:32:04,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518 virtual network link through opserver 10.0.0.41 2024-09-17 18:32:04,356 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-17 18:32:04,654 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-17 18:32:04,715 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518?flat'} 2024-09-17 18:32:04,715 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518 is found in opserver 2024-09-17 18:32:04,726 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 18:32:04,731 - DEBUG - VRF ids for VN ctest-vn-97895518: {} 2024-09-17 18:32:04,731 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 18:32:04,738 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea 2024-09-17 18:32:04,752 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df 2024-09-17 18:32:04,838 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 2024-09-17 18:32:04,854 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 2024-09-17 18:32:04,867 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589 2024-09-17 18:32:04,875 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589 2024-09-17 18:32:04,883 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c040ce6c-a813-41b5-b018-f3df820d0a4b 2024-09-17 18:32:04,890 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 18:32:04,891 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 2024-09-17 18:32:04,904 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589 2024-09-17 18:32:04,925 - INFO - Verified VN network id 9 for VN ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 2024-09-17 18:32:04,925 - INFO - Verifications in API Server for VN ctest-vn-53377482 passed 2024-09-17 18:32:04,925 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 2024-09-17 18:32:04,940 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589 2024-09-17 18:32:04,948 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589 2024-09-17 18:32:04,957 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c040ce6c-a813-41b5-b018-f3df820d0a4b 2024-09-17 18:32:04,971 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76425764', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15984947767612687032', 'uuid-lslong': '10068152614538894808'}, 'enable': 'true', 'created': '2024-09-17T18:32:02', 'last-modified': '2024-09-17T18:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.562781'} 2024-09-17 18:32:04,977 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 18:32:04,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53377482 passed 2024-09-17 18:32:04,978 - DEBUG - ====Verifying policy data for ctest-vn-53377482 in API_Server ====== 2024-09-17 18:32:04,978 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 18:32:04,984 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea 2024-09-17 18:32:04,997 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df 2024-09-17 18:32:05,088 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 2024-09-17 18:32:05,102 - DEBUG - ==>Verifying data for policy with id: 3d0dd318-c6dd-4199-8b40-b4b318e28858, fqn: ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974'] 2024-09-17 18:32:05,102 - INFO - VN ctest-vn-53377482 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 18:32:05,102 - DEBUG - Verifying the vn in opserver 2024-09-17 18:32:05,102 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482 virtual network link through opserver 10.0.0.41 2024-09-17 18:32:05,102 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-17 18:32:05,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482?flat'} 2024-09-17 18:32:05,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482 is found in opserver 2024-09-17 18:32:05,127 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 18:32:05,133 - DEBUG - VRF ids for VN ctest-vn-53377482: {} 2024-09-17 18:32:05,192 - DEBUG - Services list from nova: [, , ] 2024-09-17 18:32:06,262 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1966-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1966-1) 2024-09-17 18:32:07,680 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1966-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1966-1) 2024-09-17 18:32:07,680 - INFO - Waiting for VM ctest-TestBasicPolicy-76425764-49707317 to be up.. 2024-09-17 18:32:07,769 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 18:32:12,871 - DEBUG - VM is in ACTIVE state now 2024-09-17 18:32:12,871 - INFO - VM name : ctest-TestBasicPolicy-76425764-49707317 2024-09-17 18:32:12,973 - DEBUG - VM ctest-TestBasicPolicy-76425764-49707317 ID is 5809c2dc-eb68-4199-84c7-66478110192b 2024-09-17 18:32:13,000 - DEBUG - VM ctest-TestBasicPolicy-76425764-49707317 launched on Node cn-jenkins-deploy-platform-ansible-os-1966-1 2024-09-17 18:32:13,099 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/5809c2dc-eb68-4199-84c7-66478110192b 2024-09-17 18:32:13,112 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/bb7ec38e-5f17-4890-955c-cb5961f64e3e 2024-09-17 18:32:16,330 - 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 1005ms') 2024-09-17 18:32:16,330 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76425764-49707317 failed! 2024-09-17 18:32:16,391 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518 is 200.128.122.193 and allocation pool is NOT set 2024-09-17 18:32:18,456 - 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=9.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.415 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.415/5.137/9.859/4.722 ms') 2024-09-17 18:32:18,456 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76425764-49707317 passed 2024-09-17 18:32:18,611 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 18:32:18,611 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76425764-49707317, IP 200.128.122.195, Port 22 2024-09-17 18:32:18,767 - DEBUG - VM ctest-TestBasicPolicy-76425764-49707317 is ready for SSH connections 2024-09-17 18:32:18,767 - INFO - Waiting for VM ctest-TestBasicPolicy-76425764-97831212 to be up.. 2024-09-17 18:32:18,849 - DEBUG - VM is in ACTIVE state now 2024-09-17 18:32:18,849 - INFO - VM name : ctest-TestBasicPolicy-76425764-97831212 2024-09-17 18:32:18,933 - DEBUG - VM ctest-TestBasicPolicy-76425764-97831212 ID is 61b0302e-46e9-4f35-abf6-17cd2da4708e 2024-09-17 18:32:18,933 - DEBUG - VM ctest-TestBasicPolicy-76425764-97831212 launched on Node cn-jenkins-deploy-platform-ansible-os-1966-1 2024-09-17 18:32:19,012 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/61b0302e-46e9-4f35-abf6-17cd2da4708e 2024-09-17 18:32:19,024 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/d328c8a6-fd86-4ba8-a9db-e7f4f529770a 2024-09-17 18:32:20,275 - 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=2.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.466 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 = 0.466/1.623/2.780/1.157 ms') 2024-09-17 18:32:20,276 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-76425764-97831212 passed 2024-09-17 18:32:20,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 18:32:20,435 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76425764-97831212, IP 114.153.213.131, Port 22 2024-09-17 18:32:20,590 - DEBUG - VM ctest-TestBasicPolicy-76425764-97831212 is ready for SSH connections 2024-09-17 18:32:20,590 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 18:32:20,590 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.153.213.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-17 18:32:20,590 - DEBUG - ping -s 56 -c 3 -W 1 114.153.213.131 2024-09-17 18:32:24,576 - DEBUG - PING 114.153.213.131 (114.153.213.131): 56 data bytes 64 bytes from 114.153.213.131: seq=0 ttl=63 time=3.202 ms 64 bytes from 114.153.213.131: seq=1 ttl=63 time=1.047 ms 64 bytes from 114.153.213.131: seq=2 ttl=63 time=0.938 ms --- 114.153.213.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.938/1.729/3.202 ms 2024-09-17 18:32:24,576 - INFO - Ping to IP 114.153.213.131 from VM ctest-TestBasicPolicy-76425764-49707317 passed 2024-09-17 18:32:24,770 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3d0dd318-c6dd-4199-8b40-b4b318e28858", "href": "http://10.0.0.41:8082/network-policy/3d0dd318-c6dd-4199-8b40-b4b318e28858"}} 2024-09-17 18:32:24,771 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 18:32:24,771 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.153.213.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-17 18:32:24,771 - DEBUG - ping -s 56 -c 3 -W 1 114.153.213.131 2024-09-17 18:32:27,983 - DEBUG - PING 114.153.213.131 (114.153.213.131): 56 data bytes 64 bytes from 114.153.213.131: seq=0 ttl=63 time=1.386 ms --- 114.153.213.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.386/1.386/1.386 ms 2024-09-17 18:32:27,983 - WARNING - Ping to IP 114.153.213.131 from VM ctest-TestBasicPolicy-76425764-49707317 failed 2024-09-17 18:32:27,983 - INFO - Deleting VM ctest-TestBasicPolicy-76425764-97831212 2024-09-17 18:32:28,058 - INFO - Deleting VM ctest-TestBasicPolicy-76425764-49707317 2024-09-17 18:32:28,466 - INFO - Deleted policy ctest-policy-allow-all-80240974 2024-09-17 18:32:28,467 - INFO - Deleting VN ctest-vn-53377482 2024-09-17 18:32:28,512 - DEBUG - VN ddd5f14d-81ba-42b8-8bb9-4375a602ddd8 still in use: Unable to complete operation on network ddd5f14d-81ba-42b8-8bb9-4375a602ddd8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-69d9147a-e207-411c-81e4-129471fb4b86'] 2024-09-17 18:32:28,512 - WARNING - Deleting VN ctest-vn-53377482 failed..Will retry 2024-09-17 18:32:30,625 - DEBUG - Response for deleting network () 2024-09-17 18:32:30,625 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589 2024-09-17 18:32:30,634 - DEBUG - Response Code: 404 2024-09-17 18:32:30,634 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 18:32:30,640 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea 2024-09-17 18:32:30,698 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df 2024-09-17 18:32:30,777 - INFO - Validated that VN ctest-vn-53377482 is not found in API Server 2024-09-17 18:32:30,788 - DEBUG - VN ctest-vn-53377482 is not present in Agent 10.0.0.41 2024-09-17 18:32:30,788 - INFO - Validated that VN ctest-vn-53377482 is not in any agent 2024-09-17 18:32:30,803 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53377482 info 2024-09-17 18:32:30,803 - INFO - Deleting VN ctest-vn-97895518 2024-09-17 18:32:30,906 - DEBUG - Response for deleting network () 2024-09-17 18:32:30,906 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755 2024-09-17 18:32:30,912 - DEBUG - Response Code: 404 2024-09-17 18:32:30,912 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-17 18:32:30,917 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea 2024-09-17 18:32:30,973 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df 2024-09-17 18:32:31,059 - INFO - Validated that VN ctest-vn-97895518 is not found in API Server 2024-09-17 18:32:31,069 - DEBUG - VN ctest-vn-97895518 is not present in Agent 10.0.0.41 2024-09-17 18:32:31,069 - INFO - Validated that VN ctest-vn-97895518 is not in any agent 2024-09-17 18:32:31,084 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97895518 info 2024-09-17 18:32:31,337 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 18:32:31,337 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-09-17 18:32:31,337 - INFO - -------------------------------------------------------------------------------- 2024-09-17 18:32:32,065 - INFO - Deleted project: ctest-TestBasicPolicy-76425764, ID : 0664ae48-f2f4-4a10-8211-6e01314318df