2024-11-08 14:22:29,254 - INFO - Domain Default found not creating 2024-11-08 14:22:29,426 - INFO - Project ctest-TestBasicPolicy-54342304 not found, creating it 2024-11-08 14:22:29,938 - INFO - Created Project:ctest-TestBasicPolicy-54342304, ID : a0207996-8de1-4d1c-b585-08fc7a7f4338 2024-11-08 14:22:31,509 - INFO - ================================================================================ 2024-11-08 14:22:31,509 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 14:22:31,509 - 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-11-08 14:22:31,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.29': '0'}} with 2024-11-08 14:22:31,770 - INFO - Initial checks done. Running the testcase now 2024-11-08 14:22:31,771 - INFO - 2024-11-08 14:22:32,580 - DEBUG - Response for create_network : {'network': {'id': '33a63c28-6b73-4420-a631-b651e353f2ba', 'name': 'ctest-vn-52350203', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-52350203'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:22:32,788 - DEBUG - Response for create_subnet : {'subnet': {'id': '01c7a3a7-b040-40a3-a6cd-cb351c7b9738', 'name': '', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'network_id': '33a63c28-6b73-4420-a631-b651e353f2ba', 'ip_version': 4, 'cidr': '4.140.64.192/26', 'allocation_pools': [{'start': '4.140.64.194', 'end': '4.140.64.254'}], 'gateway_ip': '4.140.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.140.64.194', 'tags': [], 'project_id': 'a02079968de14d1cb58508fc7a7f4338'}} 2024-11-08 14:22:32,809 - INFO - Created VN ctest-vn-52350203 2024-11-08 14:22:32,871 - DEBUG - VN ctest-vn-52350203 UUID is 33a63c28-6b73-4420-a631-b651e353f2ba 2024-11-08 14:22:33,222 - DEBUG - Response for create_network : {'network': {'id': '3a8c03a8-daf4-41d3-960c-14bfb70647ad', 'name': 'ctest-vn-32824439', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-32824439'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:22:33,395 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc1187bc-8a3b-4d7d-914a-21aba0bb9bcd', 'name': '', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'network_id': '3a8c03a8-daf4-41d3-960c-14bfb70647ad', 'ip_version': 4, 'cidr': '20.223.9.64/26', 'allocation_pools': [{'start': '20.223.9.66', 'end': '20.223.9.126'}], 'gateway_ip': '20.223.9.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.223.9.66', 'tags': [], 'project_id': 'a02079968de14d1cb58508fc7a7f4338'}} 2024-11-08 14:22:33,421 - INFO - Created VN ctest-vn-32824439 2024-11-08 14:22:33,479 - DEBUG - VN ctest-vn-32824439 UUID is 3a8c03a8-daf4-41d3-960c-14bfb70647ad 2024-11-08 14:22:33,610 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203, 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-54342304:ctest-vn-32824439, 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-11-08 14:22:33,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33a63c28-6b73-4420-a631-b651e353f2ba', 'name': 'ctest-vn-52350203', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01c7a3a7-b040-40a3-a6cd-cb351c7b9738'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-52350203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011']], 'subnet_ipam': [{'subnet_cidr': '4.140.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:22:34,284 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a8c03a8-daf4-41d3-960c-14bfb70647ad', 'name': 'ctest-vn-32824439', 'tenant_id': 'a02079968de14d1cb58508fc7a7f4338', 'project_id': 'a02079968de14d1cb58508fc7a7f4338', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc1187bc-8a3b-4d7d-914a-21aba0bb9bcd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-vn-32824439'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011']], 'subnet_ipam': [{'subnet_cidr': '20.223.9.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:22:34,439 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-11-08 14:22:34,743 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-11-08 14:22:34,788 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59 2024-11-08 14:22:34,808 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338 2024-11-08 14:22:34,895 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba 2024-11-08 14:22:34,911 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba 2024-11-08 14:22:34,926 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b 2024-11-08 14:22:34,935 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b 2024-11-08 14:22:34,945 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3d147885-34a6-4857-9c86-0bd2c50f8269 2024-11-08 14:22:34,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-11-08 14:22:34,954 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba 2024-11-08 14:22:34,969 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b 2024-11-08 14:22:34,990 - INFO - Verified VN network id 8 for VN 33a63c28-6b73-4420-a631-b651e353f2ba 2024-11-08 14:22:34,990 - INFO - Verifications in API Server for VN ctest-vn-52350203 passed 2024-11-08 14:22:34,991 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba 2024-11-08 14:22:35,006 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b 2024-11-08 14:22:35,018 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b 2024-11-08 14:22:35,027 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3d147885-34a6-4857-9c86-0bd2c50f8269 2024-11-08 14:22:35,041 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54342304', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3721728286367368224', 'uuid-lslong': '11975553346977395386'}, 'enable': 'true', 'created': '2024-11-08T14:22:32', 'last-modified': '2024-11-08T14:22:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.116197'} 2024-11-08 14:22:35,048 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-11-08 14:22:35,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52350203 passed 2024-11-08 14:22:35,048 - DEBUG - ====Verifying policy data for ctest-vn-52350203 in API_Server ====== 2024-11-08 14:22:35,048 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-11-08 14:22:35,055 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59 2024-11-08 14:22:35,074 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338 2024-11-08 14:22:35,155 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/33a63c28-6b73-4420-a631-b651e353f2ba 2024-11-08 14:22:35,172 - DEBUG - ==>Verifying data for policy with id: 2146b10d-84db-4206-84a9-b0acdad1fd40, fqn: ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011'] 2024-11-08 14:22:35,172 - INFO - VN ctest-vn-52350203 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 14:22:35,172 - DEBUG - Verifying the vn in opserver 2024-11-08 14:22:35,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203 virtual network link through opserver 10.0.0.65 2024-11-08 14:22:35,173 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-11-08 14:22:35,473 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-11-08 14:22:35,539 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203?flat'} 2024-11-08 14:22:35,539 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203 is found in opserver 2024-11-08 14:22:35,550 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 14:22:35,556 - DEBUG - VRF ids for VN ctest-vn-52350203: {} 2024-11-08 14:22:35,556 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-11-08 14:22:35,563 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59 2024-11-08 14:22:35,576 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338 2024-11-08 14:22:35,653 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad 2024-11-08 14:22:35,670 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad 2024-11-08 14:22:35,684 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2 2024-11-08 14:22:35,694 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2 2024-11-08 14:22:35,704 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4c2d34ac-2683-43f2-939b-342d7ef1fd6c 2024-11-08 14:22:35,712 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 14:22:35,712 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad 2024-11-08 14:22:35,728 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2 2024-11-08 14:22:35,748 - INFO - Verified VN network id 9 for VN 3a8c03a8-daf4-41d3-960c-14bfb70647ad 2024-11-08 14:22:35,748 - INFO - Verifications in API Server for VN ctest-vn-32824439 passed 2024-11-08 14:22:35,748 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad 2024-11-08 14:22:35,764 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2 2024-11-08 14:22:35,773 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2 2024-11-08 14:22:35,784 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4c2d34ac-2683-43f2-939b-342d7ef1fd6c 2024-11-08 14:22:35,799 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54342304', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4218750974702141907', 'uuid-lslong': '10812039619051669421'}, 'enable': 'true', 'created': '2024-11-08T14:22:33', 'last-modified': '2024-11-08T14:22:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.600482'} 2024-11-08 14:22:35,806 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 14:22:35,806 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32824439 passed 2024-11-08 14:22:35,807 - DEBUG - ====Verifying policy data for ctest-vn-32824439 in API_Server ====== 2024-11-08 14:22:35,807 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-11-08 14:22:35,814 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59 2024-11-08 14:22:35,829 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338 2024-11-08 14:22:35,916 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3a8c03a8-daf4-41d3-960c-14bfb70647ad 2024-11-08 14:22:35,930 - DEBUG - ==>Verifying data for policy with id: 2146b10d-84db-4206-84a9-b0acdad1fd40, fqn: ['default-domain', 'ctest-TestBasicPolicy-54342304', 'ctest-policy-allow-all-49835011'] 2024-11-08 14:22:35,931 - INFO - VN ctest-vn-32824439 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 14:22:35,931 - DEBUG - Verifying the vn in opserver 2024-11-08 14:22:35,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439 virtual network link through opserver 10.0.0.65 2024-11-08 14:22:35,931 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-11-08 14:22:35,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439?flat'} 2024-11-08 14:22:35,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-32824439 is found in opserver 2024-11-08 14:22:35,956 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 14:22:35,962 - DEBUG - VRF ids for VN ctest-vn-32824439: {} 2024-11-08 14:22:36,022 - DEBUG - Services list from nova: [, , ] 2024-11-08 14:22:37,212 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2229-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2229-1) 2024-11-08 14:22:38,429 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2229-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2229-1) 2024-11-08 14:22:38,429 - INFO - Waiting for VM ctest-TestBasicPolicy-54342304-58956258 to be up.. 2024-11-08 14:22:38,534 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 14:22:43,619 - DEBUG - VM is in ACTIVE state now 2024-11-08 14:22:43,620 - INFO - VM name : ctest-TestBasicPolicy-54342304-58956258 2024-11-08 14:22:43,711 - DEBUG - VM ctest-TestBasicPolicy-54342304-58956258 ID is 2c946271-0f54-4f22-8992-51e2355f08af 2024-11-08 14:22:43,731 - DEBUG - VM ctest-TestBasicPolicy-54342304-58956258 launched on Node cn-jenkins-deploy-platform-ansible-os-2229-1 2024-11-08 14:22:43,814 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/2c946271-0f54-4f22-8992-51e2355f08af 2024-11-08 14:22:43,824 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/037bfb5d-7d23-4bd4-9059-0dafe27b3cd7 2024-11-08 14:22:47,108 - 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-11-08 14:22:47,108 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54342304-58956258 failed! 2024-11-08 14:22:47,167 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54342304:ctest-vn-52350203 is 4.140.64.193 and allocation pool is NOT set 2024-11-08 14:22:49,227 - 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.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.473 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.473/1.998/3.523/1.525 ms') 2024-11-08 14:22:49,228 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54342304-58956258 passed 2024-11-08 14:22:49,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:22:49,391 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54342304-58956258, IP 4.140.64.195, Port 22 2024-11-08 14:22:49,546 - DEBUG - VM ctest-TestBasicPolicy-54342304-58956258 is ready for SSH connections 2024-11-08 14:22:49,546 - INFO - Waiting for VM ctest-TestBasicPolicy-54342304-87739223 to be up.. 2024-11-08 14:22:49,635 - DEBUG - VM is in ACTIVE state now 2024-11-08 14:22:49,635 - INFO - VM name : ctest-TestBasicPolicy-54342304-87739223 2024-11-08 14:22:49,721 - DEBUG - VM ctest-TestBasicPolicy-54342304-87739223 ID is f46a1f73-96c2-4f0f-b583-a399189b7a61 2024-11-08 14:22:49,721 - DEBUG - VM ctest-TestBasicPolicy-54342304-87739223 launched on Node cn-jenkins-deploy-platform-ansible-os-2229-1 2024-11-08 14:22:49,810 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/f46a1f73-96c2-4f0f-b583-a399189b7a61 2024-11-08 14:22:49,821 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/b29cd5ec-7894-48b1-9596-2f60f3ca1208 2024-11-08 14:22:51,084 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.362 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1007ms\r\nrtt min/avg/max/mdev = 0.362/1.665/2.968/1.303 ms') 2024-11-08 14:22:51,084 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54342304-87739223 passed 2024-11-08 14:22:51,243 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:22:51,243 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54342304-87739223, IP 20.223.9.67, Port 22 2024-11-08 14:22:51,405 - DEBUG - VM ctest-TestBasicPolicy-54342304-87739223 is ready for SSH connections 2024-11-08 14:22:51,406 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:22:51,406 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.223.9.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-11-08 14:22:51,406 - DEBUG - ping -s 56 -c 3 -W 1 20.223.9.67 2024-11-08 14:22:55,414 - DEBUG - PING 20.223.9.67 (20.223.9.67): 56 data bytes 64 bytes from 20.223.9.67: seq=0 ttl=63 time=3.618 ms 64 bytes from 20.223.9.67: seq=1 ttl=63 time=0.963 ms 64 bytes from 20.223.9.67: seq=2 ttl=63 time=0.811 ms --- 20.223.9.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.811/1.797/3.618 ms 2024-11-08 14:22:55,414 - INFO - Ping to IP 20.223.9.67 from VM ctest-TestBasicPolicy-54342304-58956258 passed 2024-11-08 14:22:55,607 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2146b10d-84db-4206-84a9-b0acdad1fd40", "href": "http://10.0.0.65:8082/network-policy/2146b10d-84db-4206-84a9-b0acdad1fd40"}} 2024-11-08 14:22:55,607 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:22:55,607 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.223.9.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-11-08 14:22:55,607 - DEBUG - ping -s 56 -c 3 -W 1 20.223.9.67 2024-11-08 14:22:58,819 - DEBUG - PING 20.223.9.67 (20.223.9.67): 56 data bytes --- 20.223.9.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-08 14:22:58,820 - WARNING - Ping to IP 20.223.9.67 from VM ctest-TestBasicPolicy-54342304-58956258 failed 2024-11-08 14:22:58,820 - INFO - Deleting VM ctest-TestBasicPolicy-54342304-87739223 2024-11-08 14:22:58,908 - INFO - Deleting VM ctest-TestBasicPolicy-54342304-58956258 2024-11-08 14:22:59,336 - INFO - Deleted policy ctest-policy-allow-all-49835011 2024-11-08 14:22:59,336 - INFO - Deleting VN ctest-vn-32824439 2024-11-08 14:22:59,379 - DEBUG - VN 3a8c03a8-daf4-41d3-960c-14bfb70647ad still in use: Unable to complete operation on network 3a8c03a8-daf4-41d3-960c-14bfb70647ad. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e2273946-67bb-4b07-ae1c-9d58ba28cf64'] 2024-11-08 14:22:59,379 - WARNING - Deleting VN ctest-vn-32824439 failed..Will retry 2024-11-08 14:23:01,507 - DEBUG - Response for deleting network () 2024-11-08 14:23:01,507 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e93bc98e-85dd-4711-bd9e-79e955b236f2 2024-11-08 14:23:01,516 - DEBUG - Response Code: 404 2024-11-08 14:23:01,516 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-11-08 14:23:01,523 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59 2024-11-08 14:23:01,582 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338 2024-11-08 14:23:01,660 - INFO - Validated that VN ctest-vn-32824439 is not found in API Server 2024-11-08 14:23:01,672 - DEBUG - VN ctest-vn-32824439 is not present in Agent 10.0.0.65 2024-11-08 14:23:01,673 - INFO - Validated that VN ctest-vn-32824439 is not in any agent 2024-11-08 14:23:01,688 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32824439 info 2024-11-08 14:23:01,689 - INFO - Deleting VN ctest-vn-52350203 2024-11-08 14:23:01,808 - DEBUG - Response for deleting network () 2024-11-08 14:23:01,808 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c115bdcc-d3f6-4356-8448-97c7bb69b52b 2024-11-08 14:23:01,815 - DEBUG - Response Code: 404 2024-11-08 14:23:01,815 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-11-08 14:23:01,824 - DEBUG - Requesting: http://10.0.0.65:8082/domain/153ddd09-2cd7-4ef4-8c20-a18725d88a59 2024-11-08 14:23:01,883 - DEBUG - Requesting: http://10.0.0.65:8082/project/a0207996-8de1-4d1c-b585-08fc7a7f4338 2024-11-08 14:23:01,968 - INFO - Validated that VN ctest-vn-52350203 is not found in API Server 2024-11-08 14:23:01,981 - DEBUG - VN ctest-vn-52350203 is not present in Agent 10.0.0.65 2024-11-08 14:23:01,981 - INFO - Validated that VN ctest-vn-52350203 is not in any agent 2024-11-08 14:23:01,999 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52350203 info 2024-11-08 14:23:02,257 - DEBUG - No XMPP flaps were noticed during the test
2024-11-08 14:23:02,257 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-08 14:23:02,257 - INFO - -------------------------------------------------------------------------------- 2024-11-08 14:23:02,961 - INFO - Deleted project: ctest-TestBasicPolicy-54342304, ID : a0207996-8de1-4d1c-b585-08fc7a7f4338