2025-01-14 08:40:51,665 - INFO - Domain Default found not creating 2025-01-14 08:40:51,821 - INFO - Project ctest-TestBasicPolicy-45889431 not found, creating it 2025-01-14 08:40:52,286 - INFO - Created Project:ctest-TestBasicPolicy-45889431, ID : 997737ed-ff76-46ac-96ab-91ec533c9415 2025-01-14 08:40:53,845 - INFO - ================================================================================ 2025-01-14 08:40:53,845 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-14 08:40:53,845 - 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 2025-01-14 08:40:54,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.22': '0'}} with 2025-01-14 08:40:54,102 - INFO - Initial checks done. Running the testcase now 2025-01-14 08:40:54,102 - INFO - 2025-01-14 08:40:54,661 - DEBUG - Response for create_network : {'network': {'id': '24c29ffe-5248-4b6d-a327-04d5b45fd641', 'name': 'ctest-vn-39065763', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-39065763'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 08:40:54,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '17852df6-684e-4312-bd39-17442baf3913', 'name': '', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'network_id': '24c29ffe-5248-4b6d-a327-04d5b45fd641', 'ip_version': 4, 'cidr': '124.176.13.192/26', 'allocation_pools': [{'start': '124.176.13.194', 'end': '124.176.13.254'}], 'gateway_ip': '124.176.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.176.13.194', 'tags': [], 'project_id': '997737edff7646ac96ab91ec533c9415'}} 2025-01-14 08:40:54,851 - INFO - Created VN ctest-vn-39065763 2025-01-14 08:40:54,908 - DEBUG - VN ctest-vn-39065763 UUID is 24c29ffe-5248-4b6d-a327-04d5b45fd641 2025-01-14 08:40:55,221 - DEBUG - Response for create_network : {'network': {'id': '7777e74b-abb0-45f3-8f00-b236863488c3', 'name': 'ctest-vn-03317869', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-03317869'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 08:40:55,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '4edcde95-755d-4e43-a771-36e51d7da21d', 'name': '', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'network_id': '7777e74b-abb0-45f3-8f00-b236863488c3', 'ip_version': 4, 'cidr': '59.237.116.64/26', 'allocation_pools': [{'start': '59.237.116.66', 'end': '59.237.116.126'}], 'gateway_ip': '59.237.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.237.116.66', 'tags': [], 'project_id': '997737edff7646ac96ab91ec533c9415'}} 2025-01-14 08:40:55,445 - INFO - Created VN ctest-vn-03317869 2025-01-14 08:40:55,495 - DEBUG - VN ctest-vn-03317869 UUID is 7777e74b-abb0-45f3-8f00-b236863488c3 2025-01-14 08:40:55,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763, 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-45889431:ctest-vn-03317869, 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] 2025-01-14 08:40:55,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24c29ffe-5248-4b6d-a327-04d5b45fd641', 'name': 'ctest-vn-39065763', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17852df6-684e-4312-bd39-17442baf3913'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-39065763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717']], 'subnet_ipam': [{'subnet_cidr': '124.176.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 08:40:56,197 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7777e74b-abb0-45f3-8f00-b236863488c3', 'name': 'ctest-vn-03317869', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4edcde95-755d-4e43-a771-36e51d7da21d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-03317869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717']], 'subnet_ipam': [{'subnet_cidr': '59.237.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 08:40:56,360 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-14 08:40:56,652 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-14 08:40:56,684 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d 2025-01-14 08:40:56,699 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415 2025-01-14 08:40:56,779 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641 2025-01-14 08:40:56,791 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641 2025-01-14 08:40:56,803 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950 2025-01-14 08:40:56,812 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950 2025-01-14 08:40:56,819 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/be52b180-fe3a-4d36-8cf8-6e9000b47acf 2025-01-14 08:40:56,826 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 08:40:56,826 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641 2025-01-14 08:40:56,836 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950 2025-01-14 08:40:56,851 - INFO - Verified VN network id 8 for VN 24c29ffe-5248-4b6d-a327-04d5b45fd641 2025-01-14 08:40:56,851 - INFO - Verifications in API Server for VN ctest-vn-39065763 passed 2025-01-14 08:40:56,851 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641 2025-01-14 08:40:56,863 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950 2025-01-14 08:40:56,872 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950 2025-01-14 08:40:56,880 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/be52b180-fe3a-4d36-8cf8-6e9000b47acf 2025-01-14 08:40:56,894 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45889431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2648855445498252141', 'uuid-lslong': '11756370668174693953'}, 'enable': 'true', 'created': '2025-01-14T08:40:54', 'last-modified': '2025-01-14T08:40:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966245'} 2025-01-14 08:40:56,902 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 08:40:56,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39065763 passed 2025-01-14 08:40:56,902 - DEBUG - ====Verifying policy data for ctest-vn-39065763 in API_Server ====== 2025-01-14 08:40:56,902 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-14 08:40:56,909 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d 2025-01-14 08:40:56,926 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415 2025-01-14 08:40:57,004 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641 2025-01-14 08:40:57,015 - DEBUG - ==>Verifying data for policy with id: 6cfe9641-a785-4867-be22-5c20be0874ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717'] 2025-01-14 08:40:57,015 - INFO - VN ctest-vn-39065763 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 08:40:57,015 - DEBUG - Verifying the vn in opserver 2025-01-14 08:40:57,015 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763 virtual network link through opserver 10.0.0.12 2025-01-14 08:40:57,015 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-14 08:40:57,314 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-14 08:40:57,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763?flat'} 2025-01-14 08:40:57,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763 is found in opserver 2025-01-14 08:40:57,386 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 08:40:57,391 - DEBUG - VRF ids for VN ctest-vn-39065763: {} 2025-01-14 08:40:57,392 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-14 08:40:57,399 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d 2025-01-14 08:40:57,411 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415 2025-01-14 08:40:57,486 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3 2025-01-14 08:40:57,498 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3 2025-01-14 08:40:57,508 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362 2025-01-14 08:40:57,518 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362 2025-01-14 08:40:57,526 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a8be756f-179b-4070-873d-621762544845 2025-01-14 08:40:57,533 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 08:40:57,533 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3 2025-01-14 08:40:57,544 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362 2025-01-14 08:40:57,561 - INFO - Verified VN network id 9 for VN 7777e74b-abb0-45f3-8f00-b236863488c3 2025-01-14 08:40:57,561 - INFO - Verifications in API Server for VN ctest-vn-03317869 passed 2025-01-14 08:40:57,561 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3 2025-01-14 08:40:57,573 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362 2025-01-14 08:40:57,583 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362 2025-01-14 08:40:57,590 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a8be756f-179b-4070-873d-621762544845 2025-01-14 08:40:57,604 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45889431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8608603524931012083', 'uuid-lslong': '10304431894673262787'}, 'enable': 'true', 'created': '2025-01-14T08:40:55', 'last-modified': '2025-01-14T08:40:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427796'} 2025-01-14 08:40:57,610 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 08:40:57,610 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03317869 passed 2025-01-14 08:40:57,611 - DEBUG - ====Verifying policy data for ctest-vn-03317869 in API_Server ====== 2025-01-14 08:40:57,611 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-14 08:40:57,616 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d 2025-01-14 08:40:57,629 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415 2025-01-14 08:40:57,704 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3 2025-01-14 08:40:57,715 - DEBUG - ==>Verifying data for policy with id: 6cfe9641-a785-4867-be22-5c20be0874ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717'] 2025-01-14 08:40:57,715 - INFO - VN ctest-vn-03317869 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 08:40:57,715 - DEBUG - Verifying the vn in opserver 2025-01-14 08:40:57,715 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869 virtual network link through opserver 10.0.0.12 2025-01-14 08:40:57,715 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-14 08:40:57,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869?flat'} 2025-01-14 08:40:57,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869 is found in opserver 2025-01-14 08:40:57,739 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 08:40:57,745 - DEBUG - VRF ids for VN ctest-vn-03317869: {} 2025-01-14 08:40:57,809 - DEBUG - Services list from nova: [, , ] 2025-01-14 08:40:58,945 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2622-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2622-1) 2025-01-14 08:41:00,140 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2622-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2622-1) 2025-01-14 08:41:00,140 - INFO - Waiting for VM ctest-TestBasicPolicy-45889431-27135502 to be up.. 2025-01-14 08:41:00,225 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-14 08:41:05,330 - DEBUG - VM is in ACTIVE state now 2025-01-14 08:41:05,330 - INFO - VM name : ctest-TestBasicPolicy-45889431-27135502 2025-01-14 08:41:05,408 - DEBUG - VM ctest-TestBasicPolicy-45889431-27135502 ID is c1a6c684-b5cf-4f46-8149-58766ea8a878 2025-01-14 08:41:05,431 - DEBUG - VM ctest-TestBasicPolicy-45889431-27135502 launched on Node cn-jenkins-deploy-platform-ansible-os-2622-1 2025-01-14 08:41:05,522 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/c1a6c684-b5cf-4f46-8149-58766ea8a878 2025-01-14 08:41:05,533 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/9755bd32-c68c-40fa-bb41-452250a35cad 2025-01-14 08:41:08,781 - 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 1012ms') 2025-01-14 08:41:08,781 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45889431-27135502 failed! 2025-01-14 08:41:08,836 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763 is 124.176.13.193 and allocation pool is NOT set 2025-01-14 08:41:10,897 - 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=26.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.433 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.433/13.320/26.207/12.887 ms') 2025-01-14 08:41:10,897 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45889431-27135502 passed 2025-01-14 08:41:11,051 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 08:41:11,052 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45889431-27135502, IP 124.176.13.195, Port 22 2025-01-14 08:41:11,211 - DEBUG - VM ctest-TestBasicPolicy-45889431-27135502 is ready for SSH connections 2025-01-14 08:41:11,211 - INFO - Waiting for VM ctest-TestBasicPolicy-45889431-77950510 to be up.. 2025-01-14 08:41:11,288 - DEBUG - VM is in ACTIVE state now 2025-01-14 08:41:11,288 - INFO - VM name : ctest-TestBasicPolicy-45889431-77950510 2025-01-14 08:41:11,365 - DEBUG - VM ctest-TestBasicPolicy-45889431-77950510 ID is 50b90982-64ef-45a0-8991-e0b480c7988f 2025-01-14 08:41:11,365 - DEBUG - VM ctest-TestBasicPolicy-45889431-77950510 launched on Node cn-jenkins-deploy-platform-ansible-os-2622-1 2025-01-14 08:41:11,447 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/50b90982-64ef-45a0-8991-e0b480c7988f 2025-01-14 08:41:11,457 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/bb13f43e-85a4-402b-859f-307fd454069f 2025-01-14 08:41:12,696 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.548 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.548/1.614/2.680/1.066 ms') 2025-01-14 08:41:12,697 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-45889431-77950510 passed 2025-01-14 08:41:12,852 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 08:41:12,852 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45889431-77950510, IP 59.237.116.67, Port 22 2025-01-14 08:41:13,007 - DEBUG - VM ctest-TestBasicPolicy-45889431-77950510 is ready for SSH connections 2025-01-14 08:41:13,007 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 08:41:13,007 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.237.116.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-14 08:41:13,007 - DEBUG - ping -s 56 -c 3 -W 1 59.237.116.67 2025-01-14 08:41:16,727 - DEBUG - PING 59.237.116.67 (59.237.116.67): 56 data bytes 64 bytes from 59.237.116.67: seq=0 ttl=63 time=4.374 ms 64 bytes from 59.237.116.67: seq=1 ttl=63 time=0.782 ms 64 bytes from 59.237.116.67: seq=2 ttl=63 time=1.244 ms --- 59.237.116.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.782/2.133/4.374 ms 2025-01-14 08:41:16,727 - INFO - Ping to IP 59.237.116.67 from VM ctest-TestBasicPolicy-45889431-27135502 passed 2025-01-14 08:41:16,907 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6cfe9641-a785-4867-be22-5c20be0874ad", "href": "http://10.0.0.12:8082/network-policy/6cfe9641-a785-4867-be22-5c20be0874ad"}} 2025-01-14 08:41:16,907 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 08:41:16,908 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.237.116.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-14 08:41:16,908 - DEBUG - ping -s 56 -c 3 -W 1 59.237.116.67 2025-01-14 08:41:20,105 - DEBUG - PING 59.237.116.67 (59.237.116.67): 56 data bytes 64 bytes from 59.237.116.67: seq=0 ttl=63 time=1.469 ms --- 59.237.116.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.469/1.469/1.469 ms 2025-01-14 08:41:20,105 - WARNING - Ping to IP 59.237.116.67 from VM ctest-TestBasicPolicy-45889431-27135502 failed 2025-01-14 08:41:20,105 - INFO - Deleting VM ctest-TestBasicPolicy-45889431-77950510 2025-01-14 08:41:20,175 - INFO - Deleting VM ctest-TestBasicPolicy-45889431-27135502 2025-01-14 08:41:20,582 - INFO - Deleted policy ctest-policy-allow-all-76839717 2025-01-14 08:41:20,583 - INFO - Deleting VN ctest-vn-03317869 2025-01-14 08:41:20,631 - DEBUG - VN 7777e74b-abb0-45f3-8f00-b236863488c3 still in use: Unable to complete operation on network 7777e74b-abb0-45f3-8f00-b236863488c3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bad710f8-f7d8-4950-bc72-6f496a386d35'] 2025-01-14 08:41:20,632 - WARNING - Deleting VN ctest-vn-03317869 failed..Will retry 2025-01-14 08:41:22,760 - DEBUG - Response for deleting network () 2025-01-14 08:41:22,760 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362 2025-01-14 08:41:22,765 - DEBUG - Response Code: 404 2025-01-14 08:41:22,766 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-14 08:41:22,775 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d 2025-01-14 08:41:22,829 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415 2025-01-14 08:41:22,909 - INFO - Validated that VN ctest-vn-03317869 is not found in API Server 2025-01-14 08:41:22,921 - DEBUG - VN ctest-vn-03317869 is not present in Agent 10.0.0.12 2025-01-14 08:41:22,921 - INFO - Validated that VN ctest-vn-03317869 is not in any agent 2025-01-14 08:41:22,938 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03317869 info 2025-01-14 08:41:22,938 - INFO - Deleting VN ctest-vn-39065763 2025-01-14 08:41:23,049 - DEBUG - Response for deleting network () 2025-01-14 08:41:23,049 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950 2025-01-14 08:41:23,056 - DEBUG - Response Code: 404 2025-01-14 08:41:23,056 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-14 08:41:23,065 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d 2025-01-14 08:41:23,128 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415 2025-01-14 08:41:23,199 - INFO - Validated that VN ctest-vn-39065763 is not found in API Server 2025-01-14 08:41:23,215 - DEBUG - VN ctest-vn-39065763 is not present in Agent 10.0.0.12 2025-01-14 08:41:23,215 - INFO - Validated that VN ctest-vn-39065763 is not in any agent 2025-01-14 08:41:23,231 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39065763 info 2025-01-14 08:41:23,489 - DEBUG - No XMPP flaps were noticed during the test
2025-01-14 08:41:23,489 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-01-14 08:41:23,490 - INFO - -------------------------------------------------------------------------------- 2025-01-14 08:41:24,233 - INFO - Deleted project: ctest-TestBasicPolicy-45889431, ID : 997737ed-ff76-46ac-96ab-91ec533c9415