2024-09-13 14:03:23,922 - INFO - Domain Default found not creating 2024-09-13 14:03:24,096 - INFO - Project ctest-TestBasicPolicy-78032801 not found, creating it 2024-09-13 14:03:24,565 - INFO - Created Project:ctest-TestBasicPolicy-78032801, ID : 5f2ed4c5-19a5-47a1-8b1c-2c555e136b56 2024-09-13 14:03:26,094 - INFO - ================================================================================ 2024-09-13 14:03:26,094 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 14:03:26,094 - 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 14:03:26,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.29': '0'}} with 2024-09-13 14:03:26,353 - INFO - Initial checks done. Running the testcase now 2024-09-13 14:03:26,353 - INFO - 2024-09-13 14:03:26,952 - DEBUG - Response for create_network : {'network': {'id': 'bff82eeb-413b-4ba1-a0cf-fe4335862933', 'name': 'ctest-vn-32335797', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-32335797'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:03:27,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e9f757e-430f-45a7-8dd0-80fcdd3222ff', 'name': '', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'network_id': 'bff82eeb-413b-4ba1-a0cf-fe4335862933', 'ip_version': 4, 'cidr': '106.13.229.64/26', 'allocation_pools': [{'start': '106.13.229.66', 'end': '106.13.229.126'}], 'gateway_ip': '106.13.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.13.229.66', 'tags': [], 'project_id': '5f2ed4c519a547a18b1c2c555e136b56'}} 2024-09-13 14:03:27,197 - INFO - Created VN ctest-vn-32335797 2024-09-13 14:03:27,255 - DEBUG - VN ctest-vn-32335797 UUID is bff82eeb-413b-4ba1-a0cf-fe4335862933 2024-09-13 14:03:27,625 - DEBUG - Response for create_network : {'network': {'id': 'e83885d3-e8d2-45c4-95ec-9540853efbc5', 'name': 'ctest-vn-51316814', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-51316814'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:03:27,831 - DEBUG - Response for create_subnet : {'subnet': {'id': '3835c6b9-6545-401b-979e-6f5d65c7f8f3', 'name': '', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'network_id': 'e83885d3-e8d2-45c4-95ec-9540853efbc5', 'ip_version': 4, 'cidr': '48.190.67.64/26', 'allocation_pools': [{'start': '48.190.67.66', 'end': '48.190.67.126'}], 'gateway_ip': '48.190.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.190.67.66', 'tags': [], 'project_id': '5f2ed4c519a547a18b1c2c555e136b56'}} 2024-09-13 14:03:27,857 - INFO - Created VN ctest-vn-51316814 2024-09-13 14:03:27,923 - DEBUG - VN ctest-vn-51316814 UUID is e83885d3-e8d2-45c4-95ec-9540853efbc5 2024-09-13 14:03:28,060 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797, 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-78032801:ctest-vn-51316814, 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 14:03:28,402 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bff82eeb-413b-4ba1-a0cf-fe4335862933', 'name': 'ctest-vn-32335797', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e9f757e-430f-45a7-8dd0-80fcdd3222ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-32335797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722']], 'subnet_ipam': [{'subnet_cidr': '106.13.229.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:03:28,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e83885d3-e8d2-45c4-95ec-9540853efbc5', 'name': 'ctest-vn-51316814', 'tenant_id': '5f2ed4c519a547a18b1c2c555e136b56', 'project_id': '5f2ed4c519a547a18b1c2c555e136b56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3835c6b9-6545-401b-979e-6f5d65c7f8f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-vn-51316814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722']], 'subnet_ipam': [{'subnet_cidr': '48.190.67.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:03:28,843 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-13 14:03:29,150 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-13 14:03:29,182 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896 2024-09-13 14:03:29,198 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56 2024-09-13 14:03:29,287 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933 2024-09-13 14:03:29,303 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933 2024-09-13 14:03:29,316 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911 2024-09-13 14:03:29,326 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911 2024-09-13 14:03:29,335 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e5d50c4f-1726-4a96-ac30-d6af1a0c822d 2024-09-13 14:03:29,342 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 14:03:29,342 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933 2024-09-13 14:03:29,358 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911 2024-09-13 14:03:29,381 - INFO - Verified VN network id 8 for VN bff82eeb-413b-4ba1-a0cf-fe4335862933 2024-09-13 14:03:29,381 - INFO - Verifications in API Server for VN ctest-vn-32335797 passed 2024-09-13 14:03:29,382 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933 2024-09-13 14:03:29,397 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911 2024-09-13 14:03:29,406 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911 2024-09-13 14:03:29,416 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e5d50c4f-1726-4a96-ac30-d6af1a0c822d 2024-09-13 14:03:29,431 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78032801', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13832857843415075745', 'uuid-lslong': '11587759930861824307'}, 'enable': 'true', 'created': '2024-09-13T14:03:26', 'last-modified': '2024-09-13T14:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058975'} 2024-09-13 14:03:29,438 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 14:03:29,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32335797 passed 2024-09-13 14:03:29,438 - DEBUG - ====Verifying policy data for ctest-vn-32335797 in API_Server ====== 2024-09-13 14:03:29,438 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-13 14:03:29,444 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896 2024-09-13 14:03:29,458 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56 2024-09-13 14:03:29,541 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/bff82eeb-413b-4ba1-a0cf-fe4335862933 2024-09-13 14:03:29,556 - DEBUG - ==>Verifying data for policy with id: 8e04d845-ddb5-4976-97bd-4b504d1c75b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722'] 2024-09-13 14:03:29,557 - INFO - VN ctest-vn-32335797 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 14:03:29,557 - DEBUG - Verifying the vn in opserver 2024-09-13 14:03:29,557 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797 virtual network link through opserver 10.0.0.30 2024-09-13 14:03:29,557 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-09-13 14:03:29,855 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-09-13 14:03:29,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797?flat'} 2024-09-13 14:03:29,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797 is found in opserver 2024-09-13 14:03:29,930 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 14:03:29,935 - DEBUG - VRF ids for VN ctest-vn-32335797: {} 2024-09-13 14:03:29,935 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-13 14:03:29,942 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896 2024-09-13 14:03:29,959 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56 2024-09-13 14:03:30,048 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5 2024-09-13 14:03:30,067 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5 2024-09-13 14:03:30,081 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006 2024-09-13 14:03:30,090 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006 2024-09-13 14:03:30,098 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/97c5401b-5e6d-4312-ab24-df8505ad7e2b 2024-09-13 14:03:30,106 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 14:03:30,106 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5 2024-09-13 14:03:30,122 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006 2024-09-13 14:03:30,142 - INFO - Verified VN network id 9 for VN e83885d3-e8d2-45c4-95ec-9540853efbc5 2024-09-13 14:03:30,142 - INFO - Verifications in API Server for VN ctest-vn-51316814 passed 2024-09-13 14:03:30,142 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5 2024-09-13 14:03:30,157 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006 2024-09-13 14:03:30,168 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006 2024-09-13 14:03:30,177 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/97c5401b-5e6d-4312-ab24-df8505ad7e2b 2024-09-13 14:03:30,191 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78032801', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16733271560685766084', 'uuid-lslong': '10803173710500920261'}, 'enable': 'true', 'created': '2024-09-13T14:03:27', 'last-modified': '2024-09-13T14:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.553011'} 2024-09-13 14:03:30,199 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 14:03:30,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51316814 passed 2024-09-13 14:03:30,199 - DEBUG - ====Verifying policy data for ctest-vn-51316814 in API_Server ====== 2024-09-13 14:03:30,199 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-13 14:03:30,205 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896 2024-09-13 14:03:30,220 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56 2024-09-13 14:03:30,306 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e83885d3-e8d2-45c4-95ec-9540853efbc5 2024-09-13 14:03:30,321 - DEBUG - ==>Verifying data for policy with id: 8e04d845-ddb5-4976-97bd-4b504d1c75b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-78032801', 'ctest-policy-allow-all-61801722'] 2024-09-13 14:03:30,321 - INFO - VN ctest-vn-51316814 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 14:03:30,321 - DEBUG - Verifying the vn in opserver 2024-09-13 14:03:30,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814 virtual network link through opserver 10.0.0.30 2024-09-13 14:03:30,321 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-09-13 14:03:30,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814?flat'} 2024-09-13 14:03:30,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-51316814 is found in opserver 2024-09-13 14:03:30,344 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 14:03:30,349 - DEBUG - VRF ids for VN ctest-vn-51316814: {} 2024-09-13 14:03:30,407 - DEBUG - Services list from nova: [, , ] 2024-09-13 14:03:31,457 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1921-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1921-1) 2024-09-13 14:03:32,773 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1921-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1921-1) 2024-09-13 14:03:32,773 - INFO - Waiting for VM ctest-TestBasicPolicy-78032801-89103107 to be up.. 2024-09-13 14:03:32,946 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 14:03:38,039 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:03:38,039 - INFO - VM name : ctest-TestBasicPolicy-78032801-89103107 2024-09-13 14:03:38,149 - DEBUG - VM ctest-TestBasicPolicy-78032801-89103107 ID is e4c4945c-9c8e-4c8c-9e24-5fcffecdff2a 2024-09-13 14:03:38,175 - DEBUG - VM ctest-TestBasicPolicy-78032801-89103107 launched on Node cn-jenkins-deploy-platform-ansible-os-1921-1 2024-09-13 14:03:38,272 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/e4c4945c-9c8e-4c8c-9e24-5fcffecdff2a 2024-09-13 14:03:38,283 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/033912f5-89b2-4b81-9e26-fc791d5e42a3 2024-09-13 14:03:41,550 - 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 1015ms') 2024-09-13 14:03:41,550 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78032801-89103107 failed! 2024-09-13 14:03:41,611 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-78032801:ctest-vn-32335797 is 106.13.229.65 and allocation pool is NOT set 2024-09-13 14:03:43,666 - 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=3.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.407 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.407/2.188/3.969/1.781 ms') 2024-09-13 14:03:43,667 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78032801-89103107 passed 2024-09-13 14:03:43,831 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:03:43,831 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78032801-89103107, IP 106.13.229.67, Port 22 2024-09-13 14:03:43,990 - DEBUG - VM ctest-TestBasicPolicy-78032801-89103107 is ready for SSH connections 2024-09-13 14:03:43,990 - INFO - Waiting for VM ctest-TestBasicPolicy-78032801-35313917 to be up.. 2024-09-13 14:03:44,085 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:03:44,086 - INFO - VM name : ctest-TestBasicPolicy-78032801-35313917 2024-09-13 14:03:44,169 - DEBUG - VM ctest-TestBasicPolicy-78032801-35313917 ID is c5111d54-b5f4-4211-8e58-2675e3d84928 2024-09-13 14:03:44,169 - DEBUG - VM ctest-TestBasicPolicy-78032801-35313917 launched on Node cn-jenkins-deploy-platform-ansible-os-1921-1 2024-09-13 14:03:44,258 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/c5111d54-b5f4-4211-8e58-2675e3d84928 2024-09-13 14:03:44,285 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/936c9f5f-7d52-4aac-8fa7-fbcd4f4b2c60 2024-09-13 14:03:45,536 - 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.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.972 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.972/1.962/2.953/0.990 ms') 2024-09-13 14:03:45,536 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-78032801-35313917 passed 2024-09-13 14:03:45,691 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:03:45,691 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78032801-35313917, IP 48.190.67.67, Port 22 2024-09-13 14:03:45,859 - DEBUG - VM ctest-TestBasicPolicy-78032801-35313917 is ready for SSH connections 2024-09-13 14:03:45,859 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:03:45,859 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.190.67.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-09-13 14:03:45,859 - DEBUG - ping -s 56 -c 3 -W 1 48.190.67.67 2024-09-13 14:03:49,847 - DEBUG - PING 48.190.67.67 (48.190.67.67): 56 data bytes 64 bytes from 48.190.67.67: seq=0 ttl=63 time=4.010 ms 64 bytes from 48.190.67.67: seq=1 ttl=63 time=1.091 ms 64 bytes from 48.190.67.67: seq=2 ttl=63 time=0.806 ms --- 48.190.67.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.806/1.969/4.010 ms 2024-09-13 14:03:49,847 - INFO - Ping to IP 48.190.67.67 from VM ctest-TestBasicPolicy-78032801-89103107 passed 2024-09-13 14:03:50,039 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8e04d845-ddb5-4976-97bd-4b504d1c75b5", "href": "http://10.0.0.30:8082/network-policy/8e04d845-ddb5-4976-97bd-4b504d1c75b5"}} 2024-09-13 14:03:50,039 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:03:50,039 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.190.67.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-09-13 14:03:50,039 - DEBUG - ping -s 56 -c 3 -W 1 48.190.67.67 2024-09-13 14:03:53,251 - DEBUG - PING 48.190.67.67 (48.190.67.67): 56 data bytes 64 bytes from 48.190.67.67: seq=0 ttl=63 time=2.404 ms --- 48.190.67.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.404/2.404/2.404 ms 2024-09-13 14:03:53,251 - WARNING - Ping to IP 48.190.67.67 from VM ctest-TestBasicPolicy-78032801-89103107 failed 2024-09-13 14:03:53,252 - INFO - Deleting VM ctest-TestBasicPolicy-78032801-35313917 2024-09-13 14:03:53,320 - INFO - Deleting VM ctest-TestBasicPolicy-78032801-89103107 2024-09-13 14:03:53,733 - INFO - Deleted policy ctest-policy-allow-all-61801722 2024-09-13 14:03:53,733 - INFO - Deleting VN ctest-vn-51316814 2024-09-13 14:03:53,778 - DEBUG - VN e83885d3-e8d2-45c4-95ec-9540853efbc5 still in use: Unable to complete operation on network e83885d3-e8d2-45c4-95ec-9540853efbc5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d5398305-c82b-497d-85ce-37215d030e7a'] 2024-09-13 14:03:53,778 - WARNING - Deleting VN ctest-vn-51316814 failed..Will retry 2024-09-13 14:03:55,891 - DEBUG - Response for deleting network () 2024-09-13 14:03:55,891 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1e42aefe-7687-49ae-afed-08586ec32006 2024-09-13 14:03:55,898 - DEBUG - Response Code: 404 2024-09-13 14:03:55,898 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-13 14:03:55,905 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896 2024-09-13 14:03:55,963 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56 2024-09-13 14:03:56,043 - INFO - Validated that VN ctest-vn-51316814 is not found in API Server 2024-09-13 14:03:56,054 - DEBUG - VN ctest-vn-51316814 is not present in Agent 10.0.0.30 2024-09-13 14:03:56,054 - INFO - Validated that VN ctest-vn-51316814 is not in any agent 2024-09-13 14:03:56,071 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51316814 info 2024-09-13 14:03:56,071 - INFO - Deleting VN ctest-vn-32335797 2024-09-13 14:03:56,195 - DEBUG - Response for deleting network () 2024-09-13 14:03:56,196 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/41fb110a-050e-40e3-8b65-c8f08637e911 2024-09-13 14:03:56,206 - DEBUG - Response Code: 404 2024-09-13 14:03:56,207 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-13 14:03:56,213 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5a2ac64b-d0a2-487e-928e-e9257a6b6896 2024-09-13 14:03:56,269 - DEBUG - Requesting: http://10.0.0.30:8082/project/5f2ed4c5-19a5-47a1-8b1c-2c555e136b56 2024-09-13 14:03:56,349 - INFO - Validated that VN ctest-vn-32335797 is not found in API Server 2024-09-13 14:03:56,360 - DEBUG - VN ctest-vn-32335797 is not present in Agent 10.0.0.30 2024-09-13 14:03:56,360 - INFO - Validated that VN ctest-vn-32335797 is not in any agent 2024-09-13 14:03:56,375 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32335797 info 2024-09-13 14:03:56,629 - DEBUG - No XMPP flaps were noticed during the test
2024-09-13 14:03:56,629 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-13 14:03:56,629 - INFO - -------------------------------------------------------------------------------- 2024-09-13 14:03:57,352 - INFO - Deleted project: ctest-TestBasicPolicy-78032801, ID : 5f2ed4c5-19a5-47a1-8b1c-2c555e136b56