2024-09-03 10:37:30,321 - INFO - Domain Default found not creating 2024-09-03 10:37:30,485 - INFO - Project ctest-TestBasicPolicy-59533449 not found, creating it 2024-09-03 10:37:30,971 - INFO - Created Project:ctest-TestBasicPolicy-59533449, ID : c5e04d56-80cf-41d0-9056-640831d26803 2024-09-03 10:37:32,499 - INFO - ================================================================================ 2024-09-03 10:37:32,499 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-03 10:37:32,499 - 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-03 10:37:32,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.7': '0'}} with 2024-09-03 10:37:32,754 - INFO - Initial checks done. Running the testcase now 2024-09-03 10:37:32,755 - INFO - 2024-09-03 10:37:33,314 - DEBUG - Response for create_network : {'network': {'id': '5182131e-9e58-4b5e-9791-e7e0e5168cdd', 'name': 'ctest-vn-56460650', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-56460650'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 10:37:33,496 - DEBUG - Response for create_subnet : {'subnet': {'id': '3af0d377-59cc-43e7-8b99-f5cfea9d3fc7', 'name': '', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'network_id': '5182131e-9e58-4b5e-9791-e7e0e5168cdd', 'ip_version': 4, 'cidr': '153.28.151.128/26', 'allocation_pools': [{'start': '153.28.151.130', 'end': '153.28.151.190'}], 'gateway_ip': '153.28.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.28.151.130', 'tags': [], 'project_id': 'c5e04d5680cf41d09056640831d26803'}} 2024-09-03 10:37:33,526 - INFO - Created VN ctest-vn-56460650 2024-09-03 10:37:33,579 - DEBUG - VN ctest-vn-56460650 UUID is 5182131e-9e58-4b5e-9791-e7e0e5168cdd 2024-09-03 10:37:33,866 - DEBUG - Response for create_network : {'network': {'id': '45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c', 'name': 'ctest-vn-06136443', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-06136443'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 10:37:34,070 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d58720d-f884-4b5b-ac52-7bc464f0584e', 'name': '', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'network_id': '45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c', 'ip_version': 4, 'cidr': '103.76.146.192/26', 'allocation_pools': [{'start': '103.76.146.194', 'end': '103.76.146.254'}], 'gateway_ip': '103.76.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.76.146.194', 'tags': [], 'project_id': 'c5e04d5680cf41d09056640831d26803'}} 2024-09-03 10:37:34,089 - INFO - Created VN ctest-vn-06136443 2024-09-03 10:37:34,139 - DEBUG - VN ctest-vn-06136443 UUID is 45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c 2024-09-03 10:37:34,253 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650, 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-59533449:ctest-vn-06136443, 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-03 10:37:34,554 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5182131e-9e58-4b5e-9791-e7e0e5168cdd', 'name': 'ctest-vn-56460650', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3af0d377-59cc-43e7-8b99-f5cfea9d3fc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-56460650'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948']], 'subnet_ipam': [{'subnet_cidr': '153.28.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 10:37:34,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c', 'name': 'ctest-vn-06136443', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d58720d-f884-4b5b-ac52-7bc464f0584e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-06136443'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948']], 'subnet_ipam': [{'subnet_cidr': '103.76.146.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 10:37:34,983 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-03 10:37:35,287 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-03 10:37:35,320 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd 2024-09-03 10:37:35,336 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803 2024-09-03 10:37:35,409 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd 2024-09-03 10:37:35,421 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd 2024-09-03 10:37:35,431 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3 2024-09-03 10:37:35,440 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3 2024-09-03 10:37:35,448 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/939e1567-8777-4f3b-8032-583b52a79d9b 2024-09-03 10:37:35,457 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 10:37:35,457 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd 2024-09-03 10:37:35,467 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3 2024-09-03 10:37:35,483 - INFO - Verified VN network id 9 for VN 5182131e-9e58-4b5e-9791-e7e0e5168cdd 2024-09-03 10:37:35,483 - INFO - Verifications in API Server for VN ctest-vn-56460650 passed 2024-09-03 10:37:35,483 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd 2024-09-03 10:37:35,495 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3 2024-09-03 10:37:35,503 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3 2024-09-03 10:37:35,511 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/939e1567-8777-4f3b-8032-583b52a79d9b 2024-09-03 10:37:35,524 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59533449', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5873277886271081310', 'uuid-lslong': '10921765524452314333'}, 'enable': 'true', 'created': '2024-09-03T10:37:33', 'last-modified': '2024-09-03T10:37:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997638'} 2024-09-03 10:37:35,531 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 10:37:35,531 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56460650 passed 2024-09-03 10:37:35,531 - DEBUG - ====Verifying policy data for ctest-vn-56460650 in API_Server ====== 2024-09-03 10:37:35,531 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-03 10:37:35,537 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd 2024-09-03 10:37:35,550 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803 2024-09-03 10:37:35,618 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd 2024-09-03 10:37:35,626 - DEBUG - ==>Verifying data for policy with id: 342a2235-5bc3-4188-afa0-10f064a530ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948'] 2024-09-03 10:37:35,626 - INFO - VN ctest-vn-56460650 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 10:37:35,626 - DEBUG - Verifying the vn in opserver 2024-09-03 10:37:35,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650 virtual network link through opserver 10.0.0.31 2024-09-03 10:37:35,626 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-03 10:37:35,923 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-03 10:37:35,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650?flat'} 2024-09-03 10:37:35,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650 is found in opserver 2024-09-03 10:37:36,002 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 10:37:36,009 - DEBUG - VRF ids for VN ctest-vn-56460650: {} 2024-09-03 10:37:36,009 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-03 10:37:36,016 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd 2024-09-03 10:37:36,029 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803 2024-09-03 10:37:36,102 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c 2024-09-03 10:37:36,114 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c 2024-09-03 10:37:36,123 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d 2024-09-03 10:37:36,130 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d 2024-09-03 10:37:36,137 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/cd5a2d78-6793-4fb5-8885-3afd7a77edb6 2024-09-03 10:37:36,144 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 10:37:36,144 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c 2024-09-03 10:37:36,152 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d 2024-09-03 10:37:36,164 - INFO - Verified VN network id 10 for VN 45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c 2024-09-03 10:37:36,165 - INFO - Verifications in API Server for VN ctest-vn-06136443 passed 2024-09-03 10:37:36,165 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c 2024-09-03 10:37:36,174 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d 2024-09-03 10:37:36,180 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d 2024-09-03 10:37:36,187 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/cd5a2d78-6793-4fb5-8885-3afd7a77edb6 2024-09-03 10:37:36,199 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59533449', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5025936705270730431', 'uuid-lslong': '13713340123995043644'}, 'enable': 'true', 'created': '2024-09-03T10:37:33', 'last-modified': '2024-09-03T10:37:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439130'} 2024-09-03 10:37:36,205 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 10:37:36,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06136443 passed 2024-09-03 10:37:36,206 - DEBUG - ====Verifying policy data for ctest-vn-06136443 in API_Server ====== 2024-09-03 10:37:36,206 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-03 10:37:36,212 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd 2024-09-03 10:37:36,225 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803 2024-09-03 10:37:36,299 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c 2024-09-03 10:37:36,309 - DEBUG - ==>Verifying data for policy with id: 342a2235-5bc3-4188-afa0-10f064a530ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948'] 2024-09-03 10:37:36,309 - INFO - VN ctest-vn-06136443 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 10:37:36,309 - DEBUG - Verifying the vn in opserver 2024-09-03 10:37:36,309 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443 virtual network link through opserver 10.0.0.31 2024-09-03 10:37:36,309 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-03 10:37:36,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443?flat'} 2024-09-03 10:37:36,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443 is found in opserver 2024-09-03 10:37:36,335 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 10:37:36,341 - DEBUG - VRF ids for VN ctest-vn-06136443: {} 2024-09-03 10:37:36,394 - DEBUG - Services list from nova: [, , ] 2024-09-03 10:37:37,440 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1833-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1833-1) 2024-09-03 10:37:38,767 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1833-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1833-1) 2024-09-03 10:37:38,767 - INFO - Waiting for VM ctest-TestBasicPolicy-59533449-82273303 to be up.. 2024-09-03 10:37:38,868 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 10:37:44,095 - DEBUG - VM is in ACTIVE state now 2024-09-03 10:37:44,095 - INFO - VM name : ctest-TestBasicPolicy-59533449-82273303 2024-09-03 10:37:44,265 - DEBUG - VM ctest-TestBasicPolicy-59533449-82273303 ID is 2d3675b2-a97a-4a4e-ba61-82b0fc021cb9 2024-09-03 10:37:44,287 - DEBUG - VM ctest-TestBasicPolicy-59533449-82273303 launched on Node cn-jenkins-deploy-platform-ansible-os-1833-1 2024-09-03 10:37:44,371 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/2d3675b2-a97a-4a4e-ba61-82b0fc021cb9 2024-09-03 10:37:44,382 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/6a1ac79a-999f-45a0-9006-ed6a184a04d5 2024-09-03 10:37:47,640 - 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 1011ms') 2024-09-03 10:37:47,640 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59533449-82273303 failed! 2024-09-03 10:37:47,695 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650 is 153.28.151.129 and allocation pool is NOT set 2024-09-03 10:37:49,759 - 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.29 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.440 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.440/1.865/3.290/1.425 ms') 2024-09-03 10:37:49,759 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59533449-82273303 passed 2024-09-03 10:37:49,907 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 10:37:49,907 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59533449-82273303, IP 153.28.151.131, Port 22 2024-09-03 10:37:50,058 - DEBUG - VM ctest-TestBasicPolicy-59533449-82273303 is ready for SSH connections 2024-09-03 10:37:50,058 - INFO - Waiting for VM ctest-TestBasicPolicy-59533449-05471390 to be up.. 2024-09-03 10:37:50,135 - DEBUG - VM is in ACTIVE state now 2024-09-03 10:37:50,136 - INFO - VM name : ctest-TestBasicPolicy-59533449-05471390 2024-09-03 10:37:50,216 - DEBUG - VM ctest-TestBasicPolicy-59533449-05471390 ID is 76a9db9e-2094-44c4-84fc-e0917c0f59d7 2024-09-03 10:37:50,216 - DEBUG - VM ctest-TestBasicPolicy-59533449-05471390 launched on Node cn-jenkins-deploy-platform-ansible-os-1833-1 2024-09-03 10:37:50,292 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/76a9db9e-2094-44c4-84fc-e0917c0f59d7 2024-09-03 10:37:50,302 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/20950849-1cf3-4dc1-af8b-5f6680191c87 2024-09-03 10:37:51,543 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.417 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.417/1.677/2.938/1.260 ms') 2024-09-03 10:37:51,543 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59533449-05471390 passed 2024-09-03 10:37:51,699 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 10:37:51,700 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59533449-05471390, IP 103.76.146.195, Port 22 2024-09-03 10:37:51,850 - DEBUG - VM ctest-TestBasicPolicy-59533449-05471390 is ready for SSH connections 2024-09-03 10:37:51,850 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 10:37:51,851 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.76.146.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-03 10:37:51,851 - DEBUG - ping -s 56 -c 3 -W 1 103.76.146.195 2024-09-03 10:37:55,536 - DEBUG - PING 103.76.146.195 (103.76.146.195): 56 data bytes 64 bytes from 103.76.146.195: seq=0 ttl=63 time=3.450 ms 64 bytes from 103.76.146.195: seq=1 ttl=63 time=0.785 ms 64 bytes from 103.76.146.195: seq=2 ttl=63 time=0.863 ms --- 103.76.146.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.785/1.699/3.450 ms 2024-09-03 10:37:55,536 - INFO - Ping to IP 103.76.146.195 from VM ctest-TestBasicPolicy-59533449-82273303 passed 2024-09-03 10:37:55,715 - DEBUG - Policy Update Response {"network-policy": {"uuid": "342a2235-5bc3-4188-afa0-10f064a530ca", "href": "http://10.0.0.31:8082/network-policy/342a2235-5bc3-4188-afa0-10f064a530ca"}} 2024-09-03 10:37:55,715 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 10:37:55,715 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.76.146.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-03 10:37:55,715 - DEBUG - ping -s 56 -c 3 -W 1 103.76.146.195 2024-09-03 10:37:58,919 - DEBUG - PING 103.76.146.195 (103.76.146.195): 56 data bytes 64 bytes from 103.76.146.195: seq=0 ttl=63 time=1.599 ms --- 103.76.146.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.599/1.599/1.599 ms 2024-09-03 10:37:58,919 - WARNING - Ping to IP 103.76.146.195 from VM ctest-TestBasicPolicy-59533449-82273303 failed 2024-09-03 10:37:58,919 - INFO - Deleting VM ctest-TestBasicPolicy-59533449-05471390 2024-09-03 10:37:58,983 - INFO - Deleting VM ctest-TestBasicPolicy-59533449-82273303 2024-09-03 10:37:59,376 - INFO - Deleted policy ctest-policy-allow-all-02236948 2024-09-03 10:37:59,376 - INFO - Deleting VN ctest-vn-06136443 2024-09-03 10:37:59,412 - DEBUG - VN 45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c still in use: Unable to complete operation on network 45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7564a9d4-34e3-4cf9-9e69-ed9c2b6756dd'] 2024-09-03 10:37:59,412 - WARNING - Deleting VN ctest-vn-06136443 failed..Will retry 2024-09-03 10:38:01,526 - DEBUG - Response for deleting network () 2024-09-03 10:38:01,526 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d 2024-09-03 10:38:01,532 - DEBUG - Response Code: 404 2024-09-03 10:38:01,532 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-03 10:38:01,539 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd 2024-09-03 10:38:01,601 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803 2024-09-03 10:38:01,679 - INFO - Validated that VN ctest-vn-06136443 is not found in API Server 2024-09-03 10:38:01,691 - DEBUG - VN ctest-vn-06136443 is not present in Agent 10.0.0.31 2024-09-03 10:38:01,691 - INFO - Validated that VN ctest-vn-06136443 is not in any agent 2024-09-03 10:38:01,710 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06136443 info 2024-09-03 10:38:01,710 - INFO - Deleting VN ctest-vn-56460650 2024-09-03 10:38:01,854 - DEBUG - Response for deleting network () 2024-09-03 10:38:01,854 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3 2024-09-03 10:38:01,862 - DEBUG - Response Code: 404 2024-09-03 10:38:01,863 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-03 10:38:01,868 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd 2024-09-03 10:38:01,925 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803 2024-09-03 10:38:01,992 - INFO - Validated that VN ctest-vn-56460650 is not found in API Server 2024-09-03 10:38:02,004 - DEBUG - VN ctest-vn-56460650 is not present in Agent 10.0.0.31 2024-09-03 10:38:02,004 - INFO - Validated that VN ctest-vn-56460650 is not in any agent 2024-09-03 10:38:02,021 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56460650 info 2024-09-03 10:38:02,278 - DEBUG - No XMPP flaps were noticed during the test
2024-09-03 10:38:02,278 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-03 10:38:02,278 - INFO - -------------------------------------------------------------------------------- 2024-09-03 10:38:02,957 - INFO - Deleted project: ctest-TestBasicPolicy-59533449, ID : c5e04d56-80cf-41d0-9056-640831d26803