2024-08-23 21:29:06,902 - INFO - Domain Default found not creating 2024-08-23 21:29:07,069 - INFO - Project ctest-TestBasicPolicy-89142478 not found, creating it 2024-08-23 21:29:07,543 - INFO - Created Project:ctest-TestBasicPolicy-89142478, ID : 501f9c58-d976-47d3-a81e-9b5ee866948e 2024-08-23 21:29:09,066 - INFO - ================================================================================ 2024-08-23 21:29:09,067 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-23 21:29:09,067 - 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-08-23 21:29:09,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.7': '0'}} with 2024-08-23 21:29:09,323 - INFO - Initial checks done. Running the testcase now 2024-08-23 21:29:09,323 - INFO - 2024-08-23 21:29:09,884 - DEBUG - Response for create_network : {'network': {'id': 'bd6dd60c-f3d2-4b03-ad46-9e733ddc748a', 'name': 'ctest-vn-54096465', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-54096465'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 21:29:10,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '5fc1d5ea-0f46-45fa-a883-8a269d4d3f38', 'name': '', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'network_id': 'bd6dd60c-f3d2-4b03-ad46-9e733ddc748a', 'ip_version': 4, 'cidr': '126.59.107.128/26', 'allocation_pools': [{'start': '126.59.107.130', 'end': '126.59.107.190'}], 'gateway_ip': '126.59.107.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.59.107.130', 'tags': [], 'project_id': '501f9c58d97647d3a81e9b5ee866948e'}} 2024-08-23 21:29:10,136 - INFO - Created VN ctest-vn-54096465 2024-08-23 21:29:10,189 - DEBUG - VN ctest-vn-54096465 UUID is bd6dd60c-f3d2-4b03-ad46-9e733ddc748a 2024-08-23 21:29:10,481 - DEBUG - Response for create_network : {'network': {'id': 'd7e2bc8a-69b3-44e8-928f-a05f9d0f30a0', 'name': 'ctest-vn-81943293', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-81943293'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 21:29:10,697 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc67ffcb-d2b4-4a6d-9451-1ef2bd20aecc', 'name': '', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'network_id': 'd7e2bc8a-69b3-44e8-928f-a05f9d0f30a0', 'ip_version': 4, 'cidr': '79.37.58.128/26', 'allocation_pools': [{'start': '79.37.58.130', 'end': '79.37.58.190'}], 'gateway_ip': '79.37.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.37.58.130', 'tags': [], 'project_id': '501f9c58d97647d3a81e9b5ee866948e'}} 2024-08-23 21:29:10,719 - INFO - Created VN ctest-vn-81943293 2024-08-23 21:29:10,773 - DEBUG - VN ctest-vn-81943293 UUID is d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 2024-08-23 21:29:10,892 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465, 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-89142478:ctest-vn-81943293, 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-08-23 21:29:11,189 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd6dd60c-f3d2-4b03-ad46-9e733ddc748a', 'name': 'ctest-vn-54096465', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5fc1d5ea-0f46-45fa-a883-8a269d4d3f38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-54096465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223']], 'subnet_ipam': [{'subnet_cidr': '126.59.107.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 21:29:11,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7e2bc8a-69b3-44e8-928f-a05f9d0f30a0', 'name': 'ctest-vn-81943293', 'tenant_id': '501f9c58d97647d3a81e9b5ee866948e', 'project_id': '501f9c58d97647d3a81e9b5ee866948e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc67ffcb-d2b4-4a6d-9451-1ef2bd20aecc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-vn-81943293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223']], 'subnet_ipam': [{'subnet_cidr': '79.37.58.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 21:29:11,577 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 21:29:11,876 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 21:29:11,909 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e 2024-08-23 21:29:11,924 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e 2024-08-23 21:29:11,996 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a 2024-08-23 21:29:12,006 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a 2024-08-23 21:29:12,015 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf 2024-08-23 21:29:12,024 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf 2024-08-23 21:29:12,033 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/1ea7103a-5dbf-4d2d-8453-33c6b7cfa71a 2024-08-23 21:29:12,042 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 21:29:12,043 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a 2024-08-23 21:29:12,060 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf 2024-08-23 21:29:12,080 - INFO - Verified VN network id 8 for VN bd6dd60c-f3d2-4b03-ad46-9e733ddc748a 2024-08-23 21:29:12,080 - INFO - Verifications in API Server for VN ctest-vn-54096465 passed 2024-08-23 21:29:12,080 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a 2024-08-23 21:29:12,092 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf 2024-08-23 21:29:12,100 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf 2024-08-23 21:29:12,109 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/1ea7103a-5dbf-4d2d-8453-33c6b7cfa71a 2024-08-23 21:29:12,124 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89142478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13649801396748438275', 'uuid-lslong': '12485841234727564426'}, 'enable': 'true', 'created': '2024-08-23T21:29:09', 'last-modified': '2024-08-23T21:29:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958283'} 2024-08-23 21:29:12,133 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 21:29:12,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54096465 passed 2024-08-23 21:29:12,134 - DEBUG - ====Verifying policy data for ctest-vn-54096465 in API_Server ====== 2024-08-23 21:29:12,134 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 21:29:12,142 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e 2024-08-23 21:29:12,159 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e 2024-08-23 21:29:12,229 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/bd6dd60c-f3d2-4b03-ad46-9e733ddc748a 2024-08-23 21:29:12,238 - DEBUG - ==>Verifying data for policy with id: eb0b5f52-388f-4c2e-b78b-17d01fee2385, fqn: ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223'] 2024-08-23 21:29:12,238 - INFO - VN ctest-vn-54096465 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 21:29:12,238 - DEBUG - Verifying the vn in opserver 2024-08-23 21:29:12,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465 virtual network link through opserver 10.0.0.36 2024-08-23 21:29:12,239 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-23 21:29:12,534 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-23 21:29:12,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465?flat'} 2024-08-23 21:29:12,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465 is found in opserver 2024-08-23 21:29:12,607 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 21:29:12,612 - DEBUG - VRF ids for VN ctest-vn-54096465: {} 2024-08-23 21:29:12,612 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 21:29:12,619 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e 2024-08-23 21:29:12,632 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e 2024-08-23 21:29:12,702 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 2024-08-23 21:29:12,714 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 2024-08-23 21:29:12,724 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a 2024-08-23 21:29:12,732 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a 2024-08-23 21:29:12,740 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/98b42085-ee6e-4952-a9b1-d7004a372b34 2024-08-23 21:29:12,748 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 21:29:12,748 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 2024-08-23 21:29:12,759 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a 2024-08-23 21:29:12,774 - INFO - Verified VN network id 9 for VN d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 2024-08-23 21:29:12,774 - INFO - Verifications in API Server for VN ctest-vn-81943293 passed 2024-08-23 21:29:12,774 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 2024-08-23 21:29:12,784 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a 2024-08-23 21:29:12,791 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a 2024-08-23 21:29:12,799 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/98b42085-ee6e-4952-a9b1-d7004a372b34 2024-08-23 21:29:12,812 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89142478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15556203365555979496', 'uuid-lslong': '10560835983724458144'}, 'enable': 'true', 'created': '2024-08-23T21:29:10', 'last-modified': '2024-08-23T21:29:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406912'} 2024-08-23 21:29:12,819 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 21:29:12,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81943293 passed 2024-08-23 21:29:12,819 - DEBUG - ====Verifying policy data for ctest-vn-81943293 in API_Server ====== 2024-08-23 21:29:12,820 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 21:29:12,826 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e 2024-08-23 21:29:12,839 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e 2024-08-23 21:29:12,919 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 2024-08-23 21:29:12,929 - DEBUG - ==>Verifying data for policy with id: eb0b5f52-388f-4c2e-b78b-17d01fee2385, fqn: ['default-domain', 'ctest-TestBasicPolicy-89142478', 'ctest-policy-allow-all-48654223'] 2024-08-23 21:29:12,929 - INFO - VN ctest-vn-81943293 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 21:29:12,929 - DEBUG - Verifying the vn in opserver 2024-08-23 21:29:12,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293 virtual network link through opserver 10.0.0.36 2024-08-23 21:29:12,929 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-23 21:29:12,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293?flat'} 2024-08-23 21:29:12,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-81943293 is found in opserver 2024-08-23 21:29:12,952 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 21:29:12,957 - DEBUG - VRF ids for VN ctest-vn-81943293: {} 2024-08-23 21:29:13,014 - DEBUG - Services list from nova: [, , ] 2024-08-23 21:29:14,058 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1730-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1730-1) 2024-08-23 21:29:15,363 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1730-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1730-1) 2024-08-23 21:29:15,363 - INFO - Waiting for VM ctest-TestBasicPolicy-89142478-95313850 to be up.. 2024-08-23 21:29:15,454 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 21:29:20,548 - DEBUG - VM is in ACTIVE state now 2024-08-23 21:29:20,548 - INFO - VM name : ctest-TestBasicPolicy-89142478-95313850 2024-08-23 21:29:20,636 - DEBUG - VM ctest-TestBasicPolicy-89142478-95313850 ID is efb89a5c-3d47-4808-888a-73fff630d7a5 2024-08-23 21:29:20,661 - DEBUG - VM ctest-TestBasicPolicy-89142478-95313850 launched on Node cn-jenkins-deploy-platform-ansible-os-1730-1 2024-08-23 21:29:20,755 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/efb89a5c-3d47-4808-888a-73fff630d7a5 2024-08-23 21:29:20,764 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/9cb244c0-37de-4a74-9674-15b12c6864f6 2024-08-23 21:29:24,035 - 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 1030ms') 2024-08-23 21:29:24,035 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89142478-95313850 failed! 2024-08-23 21:29:24,089 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89142478:ctest-vn-54096465 is 126.59.107.129 and allocation pool is NOT set 2024-08-23 21:29:26,151 - 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=8.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.359 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.359/4.598/8.838/4.239 ms') 2024-08-23 21:29:26,151 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89142478-95313850 passed 2024-08-23 21:29:26,321 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 21:29:26,321 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89142478-95313850, IP 126.59.107.131, Port 22 2024-08-23 21:29:26,486 - DEBUG - VM ctest-TestBasicPolicy-89142478-95313850 is ready for SSH connections 2024-08-23 21:29:26,486 - INFO - Waiting for VM ctest-TestBasicPolicy-89142478-51935421 to be up.. 2024-08-23 21:29:26,573 - DEBUG - VM is in ACTIVE state now 2024-08-23 21:29:26,573 - INFO - VM name : ctest-TestBasicPolicy-89142478-51935421 2024-08-23 21:29:26,667 - DEBUG - VM ctest-TestBasicPolicy-89142478-51935421 ID is 3168b24f-0974-4c6b-a854-d7948d67e217 2024-08-23 21:29:26,667 - DEBUG - VM ctest-TestBasicPolicy-89142478-51935421 launched on Node cn-jenkins-deploy-platform-ansible-os-1730-1 2024-08-23 21:29:26,754 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/3168b24f-0974-4c6b-a854-d7948d67e217 2024-08-23 21:29:26,763 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/c01d67af-2104-4203-87e3-91b014507d82 2024-08-23 21:29:27,998 - 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.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.408 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.408/1.571/2.734/1.163 ms') 2024-08-23 21:29:27,998 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89142478-51935421 passed 2024-08-23 21:29:28,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 21:29:28,149 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89142478-51935421, IP 79.37.58.131, Port 22 2024-08-23 21:29:28,308 - DEBUG - VM ctest-TestBasicPolicy-89142478-51935421 is ready for SSH connections 2024-08-23 21:29:28,308 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 21:29:28,309 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.37.58.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-23 21:29:28,309 - DEBUG - ping -s 56 -c 3 -W 1 79.37.58.131 2024-08-23 21:29:32,307 - DEBUG - PING 79.37.58.131 (79.37.58.131): 56 data bytes 64 bytes from 79.37.58.131: seq=0 ttl=63 time=3.274 ms 64 bytes from 79.37.58.131: seq=1 ttl=63 time=0.858 ms 64 bytes from 79.37.58.131: seq=2 ttl=63 time=0.676 ms --- 79.37.58.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.676/1.602/3.274 ms 2024-08-23 21:29:32,308 - INFO - Ping to IP 79.37.58.131 from VM ctest-TestBasicPolicy-89142478-95313850 passed 2024-08-23 21:29:32,488 - DEBUG - Policy Update Response {"network-policy": {"uuid": "eb0b5f52-388f-4c2e-b78b-17d01fee2385", "href": "http://10.0.0.36:8082/network-policy/eb0b5f52-388f-4c2e-b78b-17d01fee2385"}} 2024-08-23 21:29:32,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 21:29:32,489 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.37.58.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-23 21:29:32,489 - DEBUG - ping -s 56 -c 3 -W 1 79.37.58.131 2024-08-23 21:29:35,712 - DEBUG - PING 79.37.58.131 (79.37.58.131): 56 data bytes 64 bytes from 79.37.58.131: seq=0 ttl=63 time=1.708 ms --- 79.37.58.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.708/1.708/1.708 ms 2024-08-23 21:29:35,712 - WARNING - Ping to IP 79.37.58.131 from VM ctest-TestBasicPolicy-89142478-95313850 failed 2024-08-23 21:29:35,713 - INFO - Deleting VM ctest-TestBasicPolicy-89142478-51935421 2024-08-23 21:29:35,781 - INFO - Deleting VM ctest-TestBasicPolicy-89142478-95313850 2024-08-23 21:29:36,157 - INFO - Deleted policy ctest-policy-allow-all-48654223 2024-08-23 21:29:36,157 - INFO - Deleting VN ctest-vn-81943293 2024-08-23 21:29:36,199 - DEBUG - VN d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0 still in use: Unable to complete operation on network d7e2bc8a-69b3-44e8-928f-a05f9d0f30a0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2ee9e9f3-d2a0-4033-bbd7-aa34b83311e6'] 2024-08-23 21:29:36,199 - WARNING - Deleting VN ctest-vn-81943293 failed..Will retry 2024-08-23 21:29:38,312 - DEBUG - Response for deleting network () 2024-08-23 21:29:38,312 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/21493a8d-f00c-4bc4-951f-4d14a0363d3a 2024-08-23 21:29:38,318 - DEBUG - Response Code: 404 2024-08-23 21:29:38,318 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 21:29:38,323 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e 2024-08-23 21:29:38,378 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e 2024-08-23 21:29:38,447 - INFO - Validated that VN ctest-vn-81943293 is not found in API Server 2024-08-23 21:29:38,458 - DEBUG - VN ctest-vn-81943293 is not present in Agent 10.0.0.36 2024-08-23 21:29:38,458 - INFO - Validated that VN ctest-vn-81943293 is not in any agent 2024-08-23 21:29:38,474 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81943293 info 2024-08-23 21:29:38,474 - INFO - Deleting VN ctest-vn-54096465 2024-08-23 21:29:38,577 - DEBUG - Response for deleting network () 2024-08-23 21:29:38,577 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a67c6ae3-fcbb-435f-95d1-97dedf379fbf 2024-08-23 21:29:38,583 - DEBUG - Response Code: 404 2024-08-23 21:29:38,583 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 21:29:38,594 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a5fcbba1-d82f-42a0-a56e-a8685566f46e 2024-08-23 21:29:38,650 - DEBUG - Requesting: http://10.0.0.36:8082/project/501f9c58-d976-47d3-a81e-9b5ee866948e 2024-08-23 21:29:38,724 - INFO - Validated that VN ctest-vn-54096465 is not found in API Server 2024-08-23 21:29:38,735 - DEBUG - VN ctest-vn-54096465 is not present in Agent 10.0.0.36 2024-08-23 21:29:38,735 - INFO - Validated that VN ctest-vn-54096465 is not in any agent 2024-08-23 21:29:38,752 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54096465 info 2024-08-23 21:29:39,015 - DEBUG - No XMPP flaps were noticed during the test 2024-08-23 21:29:39,015 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-08-23 21:29:39,015 - INFO - -------------------------------------------------------------------------------- 2024-08-23 21:29:39,709 - INFO - Deleted project: ctest-TestBasicPolicy-89142478, ID : 501f9c58-d976-47d3-a81e-9b5ee866948e