2024-11-15 06:41:02,576 - INFO - Domain Default found not creating 2024-11-15 06:41:02,734 - INFO - Project ctest-TestBasicPolicy-06297108 not found, creating it 2024-11-15 06:41:03,206 - INFO - Created Project:ctest-TestBasicPolicy-06297108, ID : 009e221d-37c9-43ea-8921-b4e231a02ce9 2024-11-15 06:41:04,669 - INFO - ================================================================================ 2024-11-15 06:41:04,669 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-15 06:41:04,669 - 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-15 06:41:04,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.8': '0'}} with 2024-11-15 06:41:04,926 - INFO - Initial checks done. Running the testcase now 2024-11-15 06:41:04,926 - INFO - 2024-11-15 06:41:05,510 - DEBUG - Response for create_network : {'network': {'id': '3928bea1-886a-4346-bf84-4bbfa65f1d34', 'name': 'ctest-vn-11477755', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-11477755'], 'port_security_enabled': True, 'description': ''}} 2024-11-15 06:41:05,660 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce8e4b53-30f2-41a7-b781-8eba2b4d7e65', 'name': '', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'network_id': '3928bea1-886a-4346-bf84-4bbfa65f1d34', 'ip_version': 4, 'cidr': '41.87.48.192/26', 'allocation_pools': [{'start': '41.87.48.194', 'end': '41.87.48.254'}], 'gateway_ip': '41.87.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.87.48.194', 'tags': [], 'project_id': '009e221d37c943ea8921b4e231a02ce9'}} 2024-11-15 06:41:05,682 - INFO - Created VN ctest-vn-11477755 2024-11-15 06:41:05,738 - DEBUG - VN ctest-vn-11477755 UUID is 3928bea1-886a-4346-bf84-4bbfa65f1d34 2024-11-15 06:41:06,066 - DEBUG - Response for create_network : {'network': {'id': '708bedcc-5997-4d4b-b164-542ca70bd249', 'name': 'ctest-vn-89700627', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-89700627'], 'port_security_enabled': True, 'description': ''}} 2024-11-15 06:41:06,306 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d0f4233-25dc-4fce-ae80-93c32812d9e2', 'name': '', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'network_id': '708bedcc-5997-4d4b-b164-542ca70bd249', 'ip_version': 4, 'cidr': '30.49.216.192/26', 'allocation_pools': [{'start': '30.49.216.194', 'end': '30.49.216.254'}], 'gateway_ip': '30.49.216.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.49.216.194', 'tags': [], 'project_id': '009e221d37c943ea8921b4e231a02ce9'}} 2024-11-15 06:41:06,327 - INFO - Created VN ctest-vn-89700627 2024-11-15 06:41:06,386 - DEBUG - VN ctest-vn-89700627 UUID is 708bedcc-5997-4d4b-b164-542ca70bd249 2024-11-15 06:41:06,506 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755, 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-06297108:ctest-vn-89700627, 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-15 06:41:06,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3928bea1-886a-4346-bf84-4bbfa65f1d34', 'name': 'ctest-vn-11477755', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce8e4b53-30f2-41a7-b781-8eba2b4d7e65'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-11477755'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187']], 'subnet_ipam': [{'subnet_cidr': '41.87.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-15 06:41:07,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '708bedcc-5997-4d4b-b164-542ca70bd249', 'name': 'ctest-vn-89700627', 'tenant_id': '009e221d37c943ea8921b4e231a02ce9', 'project_id': '009e221d37c943ea8921b4e231a02ce9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d0f4233-25dc-4fce-ae80-93c32812d9e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-vn-89700627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187']], 'subnet_ipam': [{'subnet_cidr': '30.49.216.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-15 06:41:07,246 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-15 06:41:07,544 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-15 06:41:07,574 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb 2024-11-15 06:41:07,589 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9 2024-11-15 06:41:07,670 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34 2024-11-15 06:41:07,686 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34 2024-11-15 06:41:07,700 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5 2024-11-15 06:41:07,710 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5 2024-11-15 06:41:07,720 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7da6719d-6714-476f-a9de-f661550873cc 2024-11-15 06:41:07,728 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-15 06:41:07,728 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34 2024-11-15 06:41:07,742 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5 2024-11-15 06:41:07,764 - INFO - Verified VN network id 9 for VN 3928bea1-886a-4346-bf84-4bbfa65f1d34 2024-11-15 06:41:07,764 - INFO - Verifications in API Server for VN ctest-vn-11477755 passed 2024-11-15 06:41:07,764 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34 2024-11-15 06:41:07,777 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5 2024-11-15 06:41:07,787 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5 2024-11-15 06:41:07,796 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7da6719d-6714-476f-a9de-f661550873cc 2024-11-15 06:41:07,811 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06297108', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4118751460217996102', 'uuid-lslong': '13800238444672130356'}, 'enable': 'true', 'created': '2024-11-15T06:41:05', 'last-modified': '2024-11-15T06:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025497'} 2024-11-15 06:41:07,820 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-15 06:41:07,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11477755 passed 2024-11-15 06:41:07,820 - DEBUG - ====Verifying policy data for ctest-vn-11477755 in API_Server ====== 2024-11-15 06:41:07,820 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-15 06:41:07,829 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb 2024-11-15 06:41:07,844 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9 2024-11-15 06:41:07,933 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3928bea1-886a-4346-bf84-4bbfa65f1d34 2024-11-15 06:41:07,947 - DEBUG - ==>Verifying data for policy with id: 4ad007a5-f1dd-4140-a204-8dca9928ad71, fqn: ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187'] 2024-11-15 06:41:07,947 - INFO - VN ctest-vn-11477755 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-15 06:41:07,947 - DEBUG - Verifying the vn in opserver 2024-11-15 06:41:07,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755 virtual network link through opserver 10.0.0.41 2024-11-15 06:41:07,948 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-15 06:41:08,245 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-15 06:41:08,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755?flat'} 2024-11-15 06:41:08,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755 is found in opserver 2024-11-15 06:41:08,321 - DEBUG - Do not have enough data to verify VN in agent 2024-11-15 06:41:08,328 - DEBUG - VRF ids for VN ctest-vn-11477755: {} 2024-11-15 06:41:08,328 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-15 06:41:08,336 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb 2024-11-15 06:41:08,354 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9 2024-11-15 06:41:08,435 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249 2024-11-15 06:41:08,456 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249 2024-11-15 06:41:08,470 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17 2024-11-15 06:41:08,480 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17 2024-11-15 06:41:08,490 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/794cf8da-6c49-4283-835d-ec501c3f7994 2024-11-15 06:41:08,498 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-15 06:41:08,498 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249 2024-11-15 06:41:08,513 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17 2024-11-15 06:41:08,533 - INFO - Verified VN network id 10 for VN 708bedcc-5997-4d4b-b164-542ca70bd249 2024-11-15 06:41:08,533 - INFO - Verifications in API Server for VN ctest-vn-89700627 passed 2024-11-15 06:41:08,533 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249 2024-11-15 06:41:08,548 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17 2024-11-15 06:41:08,559 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17 2024-11-15 06:41:08,569 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/794cf8da-6c49-4283-835d-ec501c3f7994 2024-11-15 06:41:08,584 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06297108', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8109837015942909259', 'uuid-lslong': '12782434193142174281'}, 'enable': 'true', 'created': '2024-11-15T06:41:06', 'last-modified': '2024-11-15T06:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.547156'} 2024-11-15 06:41:08,592 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-15 06:41:08,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89700627 passed 2024-11-15 06:41:08,592 - DEBUG - ====Verifying policy data for ctest-vn-89700627 in API_Server ====== 2024-11-15 06:41:08,592 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-15 06:41:08,599 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb 2024-11-15 06:41:08,614 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9 2024-11-15 06:41:08,699 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/708bedcc-5997-4d4b-b164-542ca70bd249 2024-11-15 06:41:08,714 - DEBUG - ==>Verifying data for policy with id: 4ad007a5-f1dd-4140-a204-8dca9928ad71, fqn: ['default-domain', 'ctest-TestBasicPolicy-06297108', 'ctest-policy-allow-all-88026187'] 2024-11-15 06:41:08,714 - INFO - VN ctest-vn-89700627 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-15 06:41:08,714 - DEBUG - Verifying the vn in opserver 2024-11-15 06:41:08,714 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627 virtual network link through opserver 10.0.0.41 2024-11-15 06:41:08,714 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-15 06:41:08,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627?flat'} 2024-11-15 06:41:08,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-89700627 is found in opserver 2024-11-15 06:41:08,740 - DEBUG - Do not have enough data to verify VN in agent 2024-11-15 06:41:08,747 - DEBUG - VRF ids for VN ctest-vn-89700627: {} 2024-11-15 06:41:08,812 - DEBUG - Services list from nova: [, , ] 2024-11-15 06:41:10,008 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2309-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2309-1) 2024-11-15 06:41:11,229 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2309-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2309-1) 2024-11-15 06:41:11,229 - INFO - Waiting for VM ctest-TestBasicPolicy-06297108-84858101 to be up.. 2024-11-15 06:41:11,376 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-15 06:41:16,468 - DEBUG - VM is in ACTIVE state now 2024-11-15 06:41:16,468 - INFO - VM name : ctest-TestBasicPolicy-06297108-84858101 2024-11-15 06:41:16,552 - DEBUG - VM ctest-TestBasicPolicy-06297108-84858101 ID is 276c20ea-239c-4b3c-8f5a-beb6d2419644 2024-11-15 06:41:16,571 - DEBUG - VM ctest-TestBasicPolicy-06297108-84858101 launched on Node cn-jenkins-deploy-platform-ansible-os-2309-1 2024-11-15 06:41:16,657 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/276c20ea-239c-4b3c-8f5a-beb6d2419644 2024-11-15 06:41:16,669 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/f5f98900-285d-4088-8703-98f4f6bc94f8 2024-11-15 06:41:19,936 - 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 1028ms') 2024-11-15 06:41:19,936 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06297108-84858101 failed! 2024-11-15 06:41:19,998 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-06297108:ctest-vn-11477755 is 41.87.48.193 and allocation pool is NOT set 2024-11-15 06:41:22,054 - 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=9.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.338 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.338/5.027/9.716/4.689 ms') 2024-11-15 06:41:22,054 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06297108-84858101 passed 2024-11-15 06:41:22,218 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:41:22,218 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06297108-84858101, IP 41.87.48.195, Port 22 2024-11-15 06:41:22,382 - DEBUG - VM ctest-TestBasicPolicy-06297108-84858101 is ready for SSH connections 2024-11-15 06:41:22,382 - INFO - Waiting for VM ctest-TestBasicPolicy-06297108-10270296 to be up.. 2024-11-15 06:41:22,462 - DEBUG - VM is in ACTIVE state now 2024-11-15 06:41:22,462 - INFO - VM name : ctest-TestBasicPolicy-06297108-10270296 2024-11-15 06:41:22,539 - DEBUG - VM ctest-TestBasicPolicy-06297108-10270296 ID is f58b982f-9cde-4d46-8332-6e2192045316 2024-11-15 06:41:22,539 - DEBUG - VM ctest-TestBasicPolicy-06297108-10270296 launched on Node cn-jenkins-deploy-platform-ansible-os-2309-1 2024-11-15 06:41:22,623 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/f58b982f-9cde-4d46-8332-6e2192045316 2024-11-15 06:41:22,634 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/40ead53d-9623-4ef3-aed1-882f760459b9 2024-11-15 06:41:23,895 - 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=4.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.71 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 = 1.708/3.245/4.782/1.537 ms') 2024-11-15 06:41:23,895 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-06297108-10270296 passed 2024-11-15 06:41:24,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:41:24,046 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06297108-10270296, IP 30.49.216.195, Port 22 2024-11-15 06:41:24,101 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-15 06:41:24,185 - DEBUG - VM ctest-TestBasicPolicy-06297108-10270296 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-15 06:41:29,186 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:41:29,186 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06297108-10270296, IP 30.49.216.195, Port 22 2024-11-15 06:41:29,341 - DEBUG - VM ctest-TestBasicPolicy-06297108-10270296 is ready for SSH connections 2024-11-15 06:41:29,341 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:41:29,342 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.49.216.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-15 06:41:29,342 - DEBUG - ping -s 56 -c 3 -W 1 30.49.216.195 2024-11-15 06:41:33,354 - DEBUG - PING 30.49.216.195 (30.49.216.195): 56 data bytes 64 bytes from 30.49.216.195: seq=0 ttl=63 time=4.175 ms 64 bytes from 30.49.216.195: seq=1 ttl=63 time=0.738 ms 64 bytes from 30.49.216.195: seq=2 ttl=63 time=0.824 ms --- 30.49.216.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.738/1.912/4.175 ms 2024-11-15 06:41:33,354 - INFO - Ping to IP 30.49.216.195 from VM ctest-TestBasicPolicy-06297108-84858101 passed 2024-11-15 06:41:33,550 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4ad007a5-f1dd-4140-a204-8dca9928ad71", "href": "http://10.0.0.41:8082/network-policy/4ad007a5-f1dd-4140-a204-8dca9928ad71"}} 2024-11-15 06:41:33,550 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:41:33,550 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.49.216.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-15 06:41:33,551 - DEBUG - ping -s 56 -c 3 -W 1 30.49.216.195 2024-11-15 06:41:36,753 - DEBUG - PING 30.49.216.195 (30.49.216.195): 56 data bytes --- 30.49.216.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-15 06:41:36,753 - WARNING - Ping to IP 30.49.216.195 from VM ctest-TestBasicPolicy-06297108-84858101 failed 2024-11-15 06:41:36,753 - INFO - Deleting VM ctest-TestBasicPolicy-06297108-10270296 2024-11-15 06:41:36,833 - INFO - Deleting VM ctest-TestBasicPolicy-06297108-84858101 2024-11-15 06:41:37,256 - INFO - Deleted policy ctest-policy-allow-all-88026187 2024-11-15 06:41:37,256 - INFO - Deleting VN ctest-vn-89700627 2024-11-15 06:41:37,296 - DEBUG - VN 708bedcc-5997-4d4b-b164-542ca70bd249 still in use: Unable to complete operation on network 708bedcc-5997-4d4b-b164-542ca70bd249. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-59ca84fb-6236-45b2-9c7d-067c780c5b05'] 2024-11-15 06:41:37,296 - WARNING - Deleting VN ctest-vn-89700627 failed..Will retry 2024-11-15 06:41:39,431 - DEBUG - Response for deleting network () 2024-11-15 06:41:39,431 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/473e538f-26e0-49f4-9625-6e9aa0268b17 2024-11-15 06:41:39,438 - DEBUG - Response Code: 404 2024-11-15 06:41:39,438 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-15 06:41:39,444 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb 2024-11-15 06:41:39,502 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9 2024-11-15 06:41:39,594 - INFO - Validated that VN ctest-vn-89700627 is not found in API Server 2024-11-15 06:41:39,604 - DEBUG - VN ctest-vn-89700627 is not present in Agent 10.0.0.41 2024-11-15 06:41:39,604 - INFO - Validated that VN ctest-vn-89700627 is not in any agent 2024-11-15 06:41:39,621 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89700627 info 2024-11-15 06:41:39,621 - INFO - Deleting VN ctest-vn-11477755 2024-11-15 06:41:39,746 - DEBUG - Response for deleting network () 2024-11-15 06:41:39,746 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5194d006-bdb2-47b4-a507-1593032a96b5 2024-11-15 06:41:39,755 - DEBUG - Response Code: 404 2024-11-15 06:41:39,755 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-15 06:41:39,761 - DEBUG - Requesting: http://10.0.0.41:8082/domain/01393cb7-44d9-4b1a-8fac-9e643bda0ceb 2024-11-15 06:41:39,816 - DEBUG - Requesting: http://10.0.0.41:8082/project/009e221d-37c9-43ea-8921-b4e231a02ce9 2024-11-15 06:41:39,914 - INFO - Validated that VN ctest-vn-11477755 is not found in API Server 2024-11-15 06:41:39,924 - DEBUG - VN ctest-vn-11477755 is not present in Agent 10.0.0.41 2024-11-15 06:41:39,924 - INFO - Validated that VN ctest-vn-11477755 is not in any agent 2024-11-15 06:41:39,941 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11477755 info 2024-11-15 06:41:40,207 - DEBUG - No XMPP flaps were noticed during the test
2024-11-15 06:41:40,207 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-11-15 06:41:40,207 - INFO - -------------------------------------------------------------------------------- 2024-11-15 06:41:40,921 - INFO - Deleted project: ctest-TestBasicPolicy-06297108, ID : 009e221d-37c9-43ea-8921-b4e231a02ce9