2024-08-27 08:36:30,767 - INFO - Domain Default found not creating 2024-08-27 08:36:30,964 - INFO - Project ctest-TestBasicPolicy-14303445 not found, creating it 2024-08-27 08:36:31,451 - INFO - Created Project:ctest-TestBasicPolicy-14303445, ID : 3123f160-83e8-4c2c-acbf-c8b25664b194 2024-08-27 08:36:33,082 - INFO - ================================================================================ 2024-08-27 08:36:33,082 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 08:36:33,082 - 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-27 08:36:33,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.5': '0'}} with 2024-08-27 08:36:33,338 - INFO - Initial checks done. Running the testcase now 2024-08-27 08:36:33,338 - INFO - 2024-08-27 08:36:33,983 - DEBUG - Response for create_network : {'network': {'id': '510c6622-cee9-4001-9e1a-4a7902890106', 'name': 'ctest-vn-28515716', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-28515716'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:36:34,208 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dafc0ef3-f4f2-43da-9481-dedc08ce11bf', 'name': '', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'network_id': '510c6622-cee9-4001-9e1a-4a7902890106', 'ip_version': 4, 'cidr': '176.73.175.128/26', 'allocation_pools': [{'start': '176.73.175.130', 'end': '176.73.175.190'}], 'gateway_ip': '176.73.175.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.73.175.130', 'tags': [], 'project_id': '3123f16083e84c2cacbfc8b25664b194'}} 2024-08-27 08:36:34,230 - INFO - Created VN ctest-vn-28515716 2024-08-27 08:36:34,282 - DEBUG - VN ctest-vn-28515716 UUID is 510c6622-cee9-4001-9e1a-4a7902890106 2024-08-27 08:36:34,626 - DEBUG - Response for create_network : {'network': {'id': 'cf73a5af-22fc-417c-9942-2d8dee5c4c88', 'name': 'ctest-vn-12650401', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-12650401'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:36:34,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aef55b06-e1d0-4c9e-8e07-33e70415ba54', 'name': '', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'network_id': 'cf73a5af-22fc-417c-9942-2d8dee5c4c88', 'ip_version': 4, 'cidr': '55.76.215.0/26', 'allocation_pools': [{'start': '55.76.215.2', 'end': '55.76.215.62'}], 'gateway_ip': '55.76.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.76.215.2', 'tags': [], 'project_id': '3123f16083e84c2cacbfc8b25664b194'}} 2024-08-27 08:36:34,843 - INFO - Created VN ctest-vn-12650401 2024-08-27 08:36:34,898 - DEBUG - VN ctest-vn-12650401 UUID is cf73a5af-22fc-417c-9942-2d8dee5c4c88 2024-08-27 08:36:35,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716, 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-14303445:ctest-vn-12650401, 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-27 08:36:35,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '510c6622-cee9-4001-9e1a-4a7902890106', 'name': 'ctest-vn-28515716', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dafc0ef3-f4f2-43da-9481-dedc08ce11bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-28515716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684']], 'subnet_ipam': [{'subnet_cidr': '176.73.175.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:36:35,602 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf73a5af-22fc-417c-9942-2d8dee5c4c88', 'name': 'ctest-vn-12650401', 'tenant_id': '3123f16083e84c2cacbfc8b25664b194', 'project_id': '3123f16083e84c2cacbfc8b25664b194', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aef55b06-e1d0-4c9e-8e07-33e70415ba54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-vn-12650401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684']], 'subnet_ipam': [{'subnet_cidr': '55.76.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:36:35,766 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-08-27 08:36:36,073 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-08-27 08:36:36,108 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9 2024-08-27 08:36:36,133 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194 2024-08-27 08:36:36,223 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106 2024-08-27 08:36:36,235 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106 2024-08-27 08:36:36,243 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e 2024-08-27 08:36:36,255 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e 2024-08-27 08:36:36,263 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/f56b309a-d182-4e2b-9cb6-db41b1e343ae 2024-08-27 08:36:36,272 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 08:36:36,272 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106 2024-08-27 08:36:36,283 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e 2024-08-27 08:36:36,299 - INFO - Verified VN network id 9 for VN 510c6622-cee9-4001-9e1a-4a7902890106 2024-08-27 08:36:36,300 - INFO - Verifications in API Server for VN ctest-vn-28515716 passed 2024-08-27 08:36:36,300 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106 2024-08-27 08:36:36,311 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e 2024-08-27 08:36:36,319 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e 2024-08-27 08:36:36,329 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/f56b309a-d182-4e2b-9cb6-db41b1e343ae 2024-08-27 08:36:36,343 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14303445', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5840155116479004673', 'uuid-lslong': '11392500090981122310'}, 'enable': 'true', 'created': '2024-08-27T08:36:33', 'last-modified': '2024-08-27T08:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028455'} 2024-08-27 08:36:36,350 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 08:36:36,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28515716 passed 2024-08-27 08:36:36,350 - DEBUG - ====Verifying policy data for ctest-vn-28515716 in API_Server ====== 2024-08-27 08:36:36,350 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-08-27 08:36:36,357 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9 2024-08-27 08:36:36,369 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194 2024-08-27 08:36:36,448 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/510c6622-cee9-4001-9e1a-4a7902890106 2024-08-27 08:36:36,458 - DEBUG - ==>Verifying data for policy with id: 8c6854e6-6e75-4d05-88c4-745ba967c2e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684'] 2024-08-27 08:36:36,458 - INFO - VN ctest-vn-28515716 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 08:36:36,458 - DEBUG - Verifying the vn in opserver 2024-08-27 08:36:36,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716 virtual network link through opserver 10.0.0.56 2024-08-27 08:36:36,458 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2024-08-27 08:36:36,757 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2024-08-27 08:36:36,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716?flat'} 2024-08-27 08:36:36,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716 is found in opserver 2024-08-27 08:36:36,888 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 08:36:36,893 - DEBUG - VRF ids for VN ctest-vn-28515716: {} 2024-08-27 08:36:36,893 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-08-27 08:36:36,918 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9 2024-08-27 08:36:36,972 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194 2024-08-27 08:36:37,065 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88 2024-08-27 08:36:37,095 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88 2024-08-27 08:36:37,107 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c 2024-08-27 08:36:37,118 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c 2024-08-27 08:36:37,127 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d4604b26-9386-4d36-a697-11cc42aeea64 2024-08-27 08:36:37,148 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 08:36:37,148 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88 2024-08-27 08:36:37,162 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c 2024-08-27 08:36:37,184 - INFO - Verified VN network id 10 for VN cf73a5af-22fc-417c-9942-2d8dee5c4c88 2024-08-27 08:36:37,184 - INFO - Verifications in API Server for VN ctest-vn-12650401 passed 2024-08-27 08:36:37,184 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88 2024-08-27 08:36:37,203 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c 2024-08-27 08:36:37,221 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c 2024-08-27 08:36:37,237 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d4604b26-9386-4d36-a697-11cc42aeea64 2024-08-27 08:36:37,263 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14303445', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14948473759797625212', 'uuid-lslong': '11043439323878542472'}, 'enable': 'true', 'created': '2024-08-27T08:36:34', 'last-modified': '2024-08-27T08:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.690622'} 2024-08-27 08:36:37,270 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 08:36:37,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12650401 passed 2024-08-27 08:36:37,271 - DEBUG - ====Verifying policy data for ctest-vn-12650401 in API_Server ====== 2024-08-27 08:36:37,271 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-08-27 08:36:37,279 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9 2024-08-27 08:36:37,361 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194 2024-08-27 08:36:37,514 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/cf73a5af-22fc-417c-9942-2d8dee5c4c88 2024-08-27 08:36:37,537 - DEBUG - ==>Verifying data for policy with id: 8c6854e6-6e75-4d05-88c4-745ba967c2e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-14303445', 'ctest-policy-allow-all-19560684'] 2024-08-27 08:36:37,537 - INFO - VN ctest-vn-12650401 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 08:36:37,537 - DEBUG - Verifying the vn in opserver 2024-08-27 08:36:37,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401 virtual network link through opserver 10.0.0.56 2024-08-27 08:36:37,537 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2024-08-27 08:36:37,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401?flat'} 2024-08-27 08:36:37,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-12650401 is found in opserver 2024-08-27 08:36:37,566 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 08:36:37,577 - DEBUG - VRF ids for VN ctest-vn-12650401: {} 2024-08-27 08:36:37,662 - DEBUG - Services list from nova: [, , ] 2024-08-27 08:36:38,822 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1795-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1795-1) 2024-08-27 08:36:40,299 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1795-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1795-1) 2024-08-27 08:36:40,299 - INFO - Waiting for VM ctest-TestBasicPolicy-14303445-34347858 to be up.. 2024-08-27 08:36:40,431 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 08:36:45,526 - DEBUG - VM is in ACTIVE state now 2024-08-27 08:36:45,526 - INFO - VM name : ctest-TestBasicPolicy-14303445-34347858 2024-08-27 08:36:45,610 - DEBUG - VM ctest-TestBasicPolicy-14303445-34347858 ID is 9589db3b-69ff-4d27-a236-b725c1b4c8bf 2024-08-27 08:36:45,629 - DEBUG - VM ctest-TestBasicPolicy-14303445-34347858 launched on Node cn-jenkins-deploy-platform-ansible-os-1795-1 2024-08-27 08:36:45,720 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/9589db3b-69ff-4d27-a236-b725c1b4c8bf 2024-08-27 08:36:45,732 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/f0880eb3-da46-483f-b153-ab14ef5be19c 2024-08-27 08:36:49,011 - 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 1027ms') 2024-08-27 08:36:49,011 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14303445-34347858 failed! 2024-08-27 08:36:49,074 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14303445:ctest-vn-28515716 is 176.73.175.129 and allocation pool is NOT set 2024-08-27 08:36:51,147 - 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.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.574 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.574/4.565/8.556/3.991 ms') 2024-08-27 08:36:51,148 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14303445-34347858 passed 2024-08-27 08:36:51,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:51,307 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14303445-34347858, IP 176.73.175.131, Port 22 2024-08-27 08:36:51,466 - DEBUG - VM ctest-TestBasicPolicy-14303445-34347858 is ready for SSH connections 2024-08-27 08:36:51,466 - INFO - Waiting for VM ctest-TestBasicPolicy-14303445-80260413 to be up.. 2024-08-27 08:36:51,560 - DEBUG - VM is in ACTIVE state now 2024-08-27 08:36:51,560 - INFO - VM name : ctest-TestBasicPolicy-14303445-80260413 2024-08-27 08:36:51,663 - DEBUG - VM ctest-TestBasicPolicy-14303445-80260413 ID is 623b37a2-79bd-4c5b-bee7-f9365807fa8d 2024-08-27 08:36:51,663 - DEBUG - VM ctest-TestBasicPolicy-14303445-80260413 launched on Node cn-jenkins-deploy-platform-ansible-os-1795-1 2024-08-27 08:36:51,751 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/623b37a2-79bd-4c5b-bee7-f9365807fa8d 2024-08-27 08:36:51,762 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/128068be-9a7a-446f-979f-907ce9ddd05d 2024-08-27 08:36:53,015 - 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=5.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.35 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 = 2.354/4.035/5.717/1.681 ms') 2024-08-27 08:36:53,015 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-14303445-80260413 passed 2024-08-27 08:36:53,176 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:53,176 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14303445-80260413, IP 55.76.215.3, Port 22 2024-08-27 08:36:53,337 - DEBUG - VM ctest-TestBasicPolicy-14303445-80260413 is ready for SSH connections 2024-08-27 08:36:53,337 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:53,338 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 55.76.215.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2024-08-27 08:36:53,338 - DEBUG - ping -s 56 -c 3 -W 1 55.76.215.3 2024-08-27 08:36:57,412 - DEBUG - PING 55.76.215.3 (55.76.215.3): 56 data bytes 64 bytes from 55.76.215.3: seq=0 ttl=63 time=4.152 ms 64 bytes from 55.76.215.3: seq=1 ttl=63 time=1.170 ms 64 bytes from 55.76.215.3: seq=2 ttl=63 time=1.175 ms --- 55.76.215.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.170/2.165/4.152 ms 2024-08-27 08:36:57,412 - INFO - Ping to IP 55.76.215.3 from VM ctest-TestBasicPolicy-14303445-34347858 passed 2024-08-27 08:36:57,598 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8c6854e6-6e75-4d05-88c4-745ba967c2e4", "href": "http://10.0.0.56:8082/network-policy/8c6854e6-6e75-4d05-88c4-745ba967c2e4"}} 2024-08-27 08:36:57,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:57,598 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 55.76.215.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2024-08-27 08:36:57,598 - DEBUG - ping -s 56 -c 3 -W 1 55.76.215.3 2024-08-27 08:37:00,821 - DEBUG - PING 55.76.215.3 (55.76.215.3): 56 data bytes 64 bytes from 55.76.215.3: seq=0 ttl=63 time=1.702 ms --- 55.76.215.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.702/1.702/1.702 ms 2024-08-27 08:37:00,821 - WARNING - Ping to IP 55.76.215.3 from VM ctest-TestBasicPolicy-14303445-34347858 failed 2024-08-27 08:37:00,821 - INFO - Deleting VM ctest-TestBasicPolicy-14303445-80260413 2024-08-27 08:37:00,901 - INFO - Deleting VM ctest-TestBasicPolicy-14303445-34347858 2024-08-27 08:37:01,372 - INFO - Deleted policy ctest-policy-allow-all-19560684 2024-08-27 08:37:01,372 - INFO - Deleting VN ctest-vn-12650401 2024-08-27 08:37:01,432 - DEBUG - VN cf73a5af-22fc-417c-9942-2d8dee5c4c88 still in use: Unable to complete operation on network cf73a5af-22fc-417c-9942-2d8dee5c4c88. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6b2f687a-011c-4579-b7d3-d375171dac4c'] 2024-08-27 08:37:01,433 - WARNING - Deleting VN ctest-vn-12650401 failed..Will retry 2024-08-27 08:37:03,560 - DEBUG - Response for deleting network () 2024-08-27 08:37:03,561 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/911b9c52-2d07-4426-ab43-0a381eb33e9c 2024-08-27 08:37:03,571 - DEBUG - Response Code: 404 2024-08-27 08:37:03,571 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-08-27 08:37:03,580 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9 2024-08-27 08:37:03,645 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194 2024-08-27 08:37:03,727 - INFO - Validated that VN ctest-vn-12650401 is not found in API Server 2024-08-27 08:37:03,745 - DEBUG - VN ctest-vn-12650401 is not present in Agent 10.0.0.56 2024-08-27 08:37:03,745 - INFO - Validated that VN ctest-vn-12650401 is not in any agent 2024-08-27 08:37:03,763 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12650401 info 2024-08-27 08:37:03,763 - INFO - Deleting VN ctest-vn-28515716 2024-08-27 08:37:03,892 - DEBUG - Response for deleting network () 2024-08-27 08:37:03,892 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/2e111f10-1fee-4c52-b2bb-cec80e3af69e 2024-08-27 08:37:03,903 - DEBUG - Response Code: 404 2024-08-27 08:37:03,903 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-08-27 08:37:03,915 - DEBUG - Requesting: http://10.0.0.56:8082/domain/c058a212-9d59-4d0d-86e8-cc2f5727ebf9 2024-08-27 08:37:03,972 - DEBUG - Requesting: http://10.0.0.56:8082/project/3123f160-83e8-4c2c-acbf-c8b25664b194 2024-08-27 08:37:04,047 - INFO - Validated that VN ctest-vn-28515716 is not found in API Server 2024-08-27 08:37:04,060 - DEBUG - VN ctest-vn-28515716 is not present in Agent 10.0.0.56 2024-08-27 08:37:04,060 - INFO - Validated that VN ctest-vn-28515716 is not in any agent 2024-08-27 08:37:04,083 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28515716 info 2024-08-27 08:37:04,349 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 08:37:04,349 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-08-27 08:37:04,349 - INFO - -------------------------------------------------------------------------------- 2024-08-27 08:37:05,075 - INFO - Deleted project: ctest-TestBasicPolicy-14303445, ID : 3123f160-83e8-4c2c-acbf-c8b25664b194