2024-09-04 23:18:54,723 - INFO - Domain Default found not creating 2024-09-04 23:18:55,122 - INFO - Project ctest-TestBasicPolicy-48005697 not found, creating it 2024-09-04 23:18:55,697 - INFO - Created Project:ctest-TestBasicPolicy-48005697, ID : 53abf12e-42ac-4cd6-81ab-fdf3a2857d30 2024-09-04 23:18:58,052 - INFO - ================================================================================ 2024-09-04 23:18:58,052 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-04 23:18:58,053 - 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-04 23:18:58,361 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.5': '0'}} with 2024-09-04 23:18:58,362 - INFO - Initial checks done. Running the testcase now 2024-09-04 23:18:58,362 - INFO - 2024-09-04 23:18:59,194 - DEBUG - Response for create_network : {'network': {'id': 'e231ec7b-0349-4c39-8d2f-84d7b511165b', 'name': 'ctest-vn-65252943', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-65252943'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 23:18:59,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '45f3a90c-be20-4748-9ac5-fa41c75f3f0a', 'name': '', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'network_id': 'e231ec7b-0349-4c39-8d2f-84d7b511165b', 'ip_version': 4, 'cidr': '221.248.34.128/26', 'allocation_pools': [{'start': '221.248.34.130', 'end': '221.248.34.190'}], 'gateway_ip': '221.248.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.248.34.130', 'tags': [], 'project_id': '53abf12e42ac4cd681abfdf3a2857d30'}} 2024-09-04 23:18:59,530 - INFO - Created VN ctest-vn-65252943 2024-09-04 23:18:59,604 - DEBUG - VN ctest-vn-65252943 UUID is e231ec7b-0349-4c39-8d2f-84d7b511165b 2024-09-04 23:19:00,159 - DEBUG - Response for create_network : {'network': {'id': 'cb7b6680-890a-4f70-a7b8-14361cfcdbd3', 'name': 'ctest-vn-59826924', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-59826924'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 23:19:00,412 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd250aab-09b9-4c05-9df6-a2cf718db311', 'name': '', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'network_id': 'cb7b6680-890a-4f70-a7b8-14361cfcdbd3', 'ip_version': 4, 'cidr': '65.154.231.0/26', 'allocation_pools': [{'start': '65.154.231.2', 'end': '65.154.231.62'}], 'gateway_ip': '65.154.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.154.231.2', 'tags': [], 'project_id': '53abf12e42ac4cd681abfdf3a2857d30'}} 2024-09-04 23:19:00,470 - INFO - Created VN ctest-vn-59826924 2024-09-04 23:19:00,531 - DEBUG - VN ctest-vn-59826924 UUID is cb7b6680-890a-4f70-a7b8-14361cfcdbd3 2024-09-04 23:19:00,732 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943, 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-48005697:ctest-vn-59826924, 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-04 23:19:01,171 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e231ec7b-0349-4c39-8d2f-84d7b511165b', 'name': 'ctest-vn-65252943', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45f3a90c-be20-4748-9ac5-fa41c75f3f0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-65252943'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482']], 'subnet_ipam': [{'subnet_cidr': '221.248.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 23:19:01,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb7b6680-890a-4f70-a7b8-14361cfcdbd3', 'name': 'ctest-vn-59826924', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd250aab-09b9-4c05-9df6-a2cf718db311'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-59826924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482']], 'subnet_ipam': [{'subnet_cidr': '65.154.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 23:19:01,635 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-04 23:19:01,972 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-04 23:19:02,025 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9 2024-09-04 23:19:02,087 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30 2024-09-04 23:19:02,170 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b 2024-09-04 23:19:02,186 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b 2024-09-04 23:19:02,198 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700 2024-09-04 23:19:02,207 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700 2024-09-04 23:19:02,221 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/2c698ede-6ef9-40e8-a5d5-1c99be878fcc 2024-09-04 23:19:02,228 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 23:19:02,228 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b 2024-09-04 23:19:02,237 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700 2024-09-04 23:19:02,251 - INFO - Verified VN network id 8 for VN e231ec7b-0349-4c39-8d2f-84d7b511165b 2024-09-04 23:19:02,252 - INFO - Verifications in API Server for VN ctest-vn-65252943 passed 2024-09-04 23:19:02,252 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b 2024-09-04 23:19:02,263 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700 2024-09-04 23:19:02,273 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700 2024-09-04 23:19:02,284 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/2c698ede-6ef9-40e8-a5d5-1c99be878fcc 2024-09-04 23:19:02,301 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48005697', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16299068539510803513', 'uuid-lslong': '10173496145243870811'}, 'enable': 'true', 'created': '2024-09-04T23:18:59', 'last-modified': '2024-09-04T23:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.170320'} 2024-09-04 23:19:02,310 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 23:19:02,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65252943 passed 2024-09-04 23:19:02,311 - DEBUG - ====Verifying policy data for ctest-vn-65252943 in API_Server ====== 2024-09-04 23:19:02,311 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-04 23:19:02,319 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9 2024-09-04 23:19:02,338 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30 2024-09-04 23:19:02,430 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b 2024-09-04 23:19:02,448 - DEBUG - ==>Verifying data for policy with id: b7a2db9a-208d-4c45-b025-344f2e80fecc, fqn: ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482'] 2024-09-04 23:19:02,448 - INFO - VN ctest-vn-65252943 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 23:19:02,448 - DEBUG - Verifying the vn in opserver 2024-09-04 23:19:02,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943 virtual network link through opserver 10.0.0.28 2024-09-04 23:19:02,449 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-04 23:19:02,806 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-04 23:19:02,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943?flat'} 2024-09-04 23:19:02,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943 is found in opserver 2024-09-04 23:19:02,975 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 23:19:02,994 - DEBUG - VRF ids for VN ctest-vn-65252943: {} 2024-09-04 23:19:02,994 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-04 23:19:03,017 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9 2024-09-04 23:19:03,041 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30 2024-09-04 23:19:03,149 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3 2024-09-04 23:19:03,172 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3 2024-09-04 23:19:03,197 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab 2024-09-04 23:19:03,219 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab 2024-09-04 23:19:03,241 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/50f0c7d0-8111-4d3f-a747-02755cf499d2 2024-09-04 23:19:03,260 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 23:19:03,260 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3 2024-09-04 23:19:03,284 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab 2024-09-04 23:19:03,322 - INFO - Verified VN network id 9 for VN cb7b6680-890a-4f70-a7b8-14361cfcdbd3 2024-09-04 23:19:03,323 - INFO - Verifications in API Server for VN ctest-vn-59826924 passed 2024-09-04 23:19:03,323 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3 2024-09-04 23:19:03,344 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab 2024-09-04 23:19:03,360 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab 2024-09-04 23:19:03,381 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/50f0c7d0-8111-4d3f-a747-02755cf499d2 2024-09-04 23:19:03,417 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48005697', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14662425714075783024', 'uuid-lslong': '12085431822695848915'}, 'enable': 'true', 'created': '2024-09-04T23:19:00', 'last-modified': '2024-09-04T23:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.976917'} 2024-09-04 23:19:03,434 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 23:19:03,434 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59826924 passed 2024-09-04 23:19:03,435 - DEBUG - ====Verifying policy data for ctest-vn-59826924 in API_Server ====== 2024-09-04 23:19:03,435 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-04 23:19:03,452 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9 2024-09-04 23:19:03,476 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30 2024-09-04 23:19:03,580 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3 2024-09-04 23:19:03,599 - DEBUG - ==>Verifying data for policy with id: b7a2db9a-208d-4c45-b025-344f2e80fecc, fqn: ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482'] 2024-09-04 23:19:03,600 - INFO - VN ctest-vn-59826924 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 23:19:03,600 - DEBUG - Verifying the vn in opserver 2024-09-04 23:19:03,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924 virtual network link through opserver 10.0.0.28 2024-09-04 23:19:03,600 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-04 23:19:03,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924?flat'} 2024-09-04 23:19:03,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924 is found in opserver 2024-09-04 23:19:03,645 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 23:19:03,655 - DEBUG - VRF ids for VN ctest-vn-59826924: {} 2024-09-04 23:19:03,769 - DEBUG - Services list from nova: [, , ] 2024-09-04 23:19:05,460 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1849-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1849-1) 2024-09-04 23:19:07,107 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1849-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1849-1) 2024-09-04 23:19:07,107 - INFO - Waiting for VM ctest-TestBasicPolicy-48005697-73311652 to be up.. 2024-09-04 23:19:07,216 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 23:19:12,427 - DEBUG - VM is in ACTIVE state now 2024-09-04 23:19:12,427 - INFO - VM name : ctest-TestBasicPolicy-48005697-73311652 2024-09-04 23:19:12,610 - DEBUG - VM ctest-TestBasicPolicy-48005697-73311652 ID is e1fcd147-dc73-4d1c-9dc2-a66197556823 2024-09-04 23:19:12,644 - DEBUG - VM ctest-TestBasicPolicy-48005697-73311652 launched on Node cn-jenkins-deploy-platform-ansible-os-1849-1 2024-09-04 23:19:12,827 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e1fcd147-dc73-4d1c-9dc2-a66197556823 2024-09-04 23:19:12,843 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/b7b0f55e-8e19-4a5d-b3b5-4b1582e088b9 2024-09-04 23:19:16,123 - 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 1017ms') 2024-09-04 23:19:16,124 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48005697-73311652 failed! 2024-09-04 23:19:16,183 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943 is 221.248.34.129 and allocation pool is NOT set 2024-09-04 23:19:18,259 - 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=7.40 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.07 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 = 1.066/4.233/7.400/3.167 ms') 2024-09-04 23:19:18,259 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48005697-73311652 passed 2024-09-04 23:19:18,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 23:19:18,456 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48005697-73311652, IP 221.248.34.131, Port 22 2024-09-04 23:19:18,663 - DEBUG - VM ctest-TestBasicPolicy-48005697-73311652 is ready for SSH connections 2024-09-04 23:19:18,664 - INFO - Waiting for VM ctest-TestBasicPolicy-48005697-54380916 to be up.. 2024-09-04 23:19:18,817 - DEBUG - VM is in ACTIVE state now 2024-09-04 23:19:18,817 - INFO - VM name : ctest-TestBasicPolicy-48005697-54380916 2024-09-04 23:19:19,011 - DEBUG - VM ctest-TestBasicPolicy-48005697-54380916 ID is 57359552-de7b-492d-8241-c2be4d7ef8f0 2024-09-04 23:19:19,012 - DEBUG - VM ctest-TestBasicPolicy-48005697-54380916 launched on Node cn-jenkins-deploy-platform-ansible-os-1849-1 2024-09-04 23:19:19,206 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/57359552-de7b-492d-8241-c2be4d7ef8f0 2024-09-04 23:19:19,234 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/04a27c08-9f8d-43b8-906e-f02df31ba7d5 2024-09-04 23:19:20,598 - 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=12.6 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.72 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 = 3.715/8.149/12.583/4.434 ms') 2024-09-04 23:19:20,598 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-48005697-54380916 passed 2024-09-04 23:19:20,791 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 23:19:20,791 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48005697-54380916, IP 65.154.231.3, Port 22 2024-09-04 23:19:20,997 - DEBUG - VM ctest-TestBasicPolicy-48005697-54380916 is ready for SSH connections 2024-09-04 23:19:20,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 23:19:20,998 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.154.231.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-04 23:19:20,999 - DEBUG - ping -s 56 -c 3 -W 1 65.154.231.3 2024-09-04 23:19:25,496 - DEBUG - PING 65.154.231.3 (65.154.231.3): 56 data bytes 64 bytes from 65.154.231.3: seq=0 ttl=63 time=8.006 ms 64 bytes from 65.154.231.3: seq=1 ttl=63 time=2.042 ms 64 bytes from 65.154.231.3: seq=2 ttl=63 time=1.933 ms --- 65.154.231.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.933/3.993/8.006 ms 2024-09-04 23:19:25,497 - INFO - Ping to IP 65.154.231.3 from VM ctest-TestBasicPolicy-48005697-73311652 passed 2024-09-04 23:19:25,755 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b7a2db9a-208d-4c45-b025-344f2e80fecc", "href": "http://10.0.0.28:8082/network-policy/b7a2db9a-208d-4c45-b025-344f2e80fecc"}} 2024-09-04 23:19:25,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 23:19:25,756 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.154.231.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-04 23:19:25,756 - DEBUG - ping -s 56 -c 3 -W 1 65.154.231.3 2024-09-04 23:19:29,076 - DEBUG - PING 65.154.231.3 (65.154.231.3): 56 data bytes --- 65.154.231.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-04 23:19:29,076 - WARNING - Ping to IP 65.154.231.3 from VM ctest-TestBasicPolicy-48005697-73311652 failed 2024-09-04 23:19:29,077 - INFO - Deleting VM ctest-TestBasicPolicy-48005697-54380916 2024-09-04 23:19:29,281 - INFO - Deleting VM ctest-TestBasicPolicy-48005697-73311652 2024-09-04 23:19:29,931 - INFO - Deleted policy ctest-policy-allow-all-58780482 2024-09-04 23:19:29,931 - INFO - Deleting VN ctest-vn-59826924 2024-09-04 23:19:29,983 - DEBUG - VN cb7b6680-890a-4f70-a7b8-14361cfcdbd3 still in use: Unable to complete operation on network cb7b6680-890a-4f70-a7b8-14361cfcdbd3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-252058b8-7c9f-4656-8ae5-d99fd04aaed5'] 2024-09-04 23:19:29,983 - WARNING - Deleting VN ctest-vn-59826924 failed..Will retry 2024-09-04 23:19:32,266 - DEBUG - Response for deleting network () 2024-09-04 23:19:32,266 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab 2024-09-04 23:19:32,280 - DEBUG - Response Code: 404 2024-09-04 23:19:32,281 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-04 23:19:32,291 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9 2024-09-04 23:19:32,322 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30 2024-09-04 23:19:32,438 - INFO - Validated that VN ctest-vn-59826924 is not found in API Server 2024-09-04 23:19:32,471 - DEBUG - VN ctest-vn-59826924 is not present in Agent 10.0.0.28 2024-09-04 23:19:32,471 - INFO - Validated that VN ctest-vn-59826924 is not in any agent 2024-09-04 23:19:32,528 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59826924 info 2024-09-04 23:19:32,528 - INFO - Deleting VN ctest-vn-65252943 2024-09-04 23:19:32,807 - DEBUG - Response for deleting network () 2024-09-04 23:19:32,808 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700 2024-09-04 23:19:32,828 - DEBUG - Response Code: 404 2024-09-04 23:19:32,828 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-04 23:19:32,839 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9 2024-09-04 23:19:32,866 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30 2024-09-04 23:19:32,987 - INFO - Validated that VN ctest-vn-65252943 is not found in API Server 2024-09-04 23:19:33,012 - DEBUG - VN ctest-vn-65252943 is not present in Agent 10.0.0.28 2024-09-04 23:19:33,013 - INFO - Validated that VN ctest-vn-65252943 is not in any agent 2024-09-04 23:19:33,058 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65252943 info 2024-09-04 23:19:33,387 - DEBUG - No XMPP flaps were noticed during the test 2024-09-04 23:19:33,387 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-09-04 23:19:33,387 - INFO - -------------------------------------------------------------------------------- 2024-09-04 23:19:34,458 - INFO - Deleted project: ctest-TestBasicPolicy-48005697, ID : 53abf12e-42ac-4cd6-81ab-fdf3a2857d30