2025-01-13 02:19:33,421 - INFO - Domain Default found not creating 2025-01-13 02:19:33,603 - INFO - Project ctest-TestBasicPolicy-09968244 not found, creating it 2025-01-13 02:19:34,121 - INFO - Created Project:ctest-TestBasicPolicy-09968244, ID : f15a6038-3a60-4b4c-bf79-d5e085b6b1b1 2025-01-13 02:19:35,806 - INFO - ================================================================================ 2025-01-13 02:19:35,806 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-13 02:19:35,806 - 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-13 02:19:36,082 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with 2025-01-13 02:19:36,082 - INFO - Initial checks done. Running the testcase now 2025-01-13 02:19:36,082 - INFO - 2025-01-13 02:19:36,686 - DEBUG - Response for create_network : {'network': {'id': '02167835-a487-47ba-9a48-4ef08468b1f5', 'name': 'ctest-vn-21361885', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-21361885'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:19:36,899 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1b776a9-ea5f-4ce2-8cef-cf0841671ead', 'name': '', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'network_id': '02167835-a487-47ba-9a48-4ef08468b1f5', 'ip_version': 4, 'cidr': '121.135.199.192/26', 'allocation_pools': [{'start': '121.135.199.194', 'end': '121.135.199.254'}], 'gateway_ip': '121.135.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.135.199.194', 'tags': [], 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1'}} 2025-01-13 02:19:36,921 - INFO - Created VN ctest-vn-21361885 2025-01-13 02:19:36,975 - DEBUG - VN ctest-vn-21361885 UUID is 02167835-a487-47ba-9a48-4ef08468b1f5 2025-01-13 02:19:37,299 - DEBUG - Response for create_network : {'network': {'id': '04f017d3-dee9-446f-aaba-18f95976ac7b', 'name': 'ctest-vn-66664986', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-66664986'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:19:37,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '585399b6-7186-4503-bb2b-8e0068915f45', 'name': '', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'network_id': '04f017d3-dee9-446f-aaba-18f95976ac7b', 'ip_version': 4, 'cidr': '118.60.213.192/26', 'allocation_pools': [{'start': '118.60.213.194', 'end': '118.60.213.254'}], 'gateway_ip': '118.60.213.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.60.213.194', 'tags': [], 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1'}} 2025-01-13 02:19:37,520 - INFO - Created VN ctest-vn-66664986 2025-01-13 02:19:37,575 - DEBUG - VN ctest-vn-66664986 UUID is 04f017d3-dee9-446f-aaba-18f95976ac7b 2025-01-13 02:19:37,696 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885, 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-09968244:ctest-vn-66664986, 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-13 02:19:38,017 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02167835-a487-47ba-9a48-4ef08468b1f5', 'name': 'ctest-vn-21361885', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1b776a9-ea5f-4ce2-8cef-cf0841671ead'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-21361885'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275']], 'subnet_ipam': [{'subnet_cidr': '121.135.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:19:38,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04f017d3-dee9-446f-aaba-18f95976ac7b', 'name': 'ctest-vn-66664986', 'tenant_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'project_id': 'f15a60383a604b4cbf79d5e085b6b1b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['585399b6-7186-4503-bb2b-8e0068915f45'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-vn-66664986'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275']], 'subnet_ipam': [{'subnet_cidr': '118.60.213.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 02:19:38,443 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-13 02:19:38,785 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-13 02:19:38,815 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2 2025-01-13 02:19:38,831 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1 2025-01-13 02:19:38,910 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5 2025-01-13 02:19:38,924 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5 2025-01-13 02:19:38,936 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128 2025-01-13 02:19:38,946 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128 2025-01-13 02:19:38,954 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/51136038-ab1c-49d9-bce2-b13064a02a16 2025-01-13 02:19:38,963 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 02:19:38,963 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5 2025-01-13 02:19:38,974 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128 2025-01-13 02:19:38,992 - INFO - Verified VN network id 7 for VN 02167835-a487-47ba-9a48-4ef08468b1f5 2025-01-13 02:19:38,992 - INFO - Verifications in API Server for VN ctest-vn-21361885 passed 2025-01-13 02:19:38,993 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5 2025-01-13 02:19:39,005 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128 2025-01-13 02:19:39,014 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128 2025-01-13 02:19:39,023 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/51136038-ab1c-49d9-bce2-b13064a02a16 2025-01-13 02:19:39,039 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09968244', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '150439809352419258', 'uuid-lslong': '11117222475084640757'}, 'enable': 'true', 'created': '2025-01-13T02:19:36', 'last-modified': '2025-01-13T02:19:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056710'} 2025-01-13 02:19:39,046 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 02:19:39,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21361885 passed 2025-01-13 02:19:39,047 - DEBUG - ====Verifying policy data for ctest-vn-21361885 in API_Server ====== 2025-01-13 02:19:39,047 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-13 02:19:39,054 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2 2025-01-13 02:19:39,068 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1 2025-01-13 02:19:39,145 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/02167835-a487-47ba-9a48-4ef08468b1f5 2025-01-13 02:19:39,159 - DEBUG - ==>Verifying data for policy with id: 9c92168b-1f32-42f6-8522-655de51f492f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275'] 2025-01-13 02:19:39,159 - INFO - VN ctest-vn-21361885 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 02:19:39,159 - DEBUG - Verifying the vn in opserver 2025-01-13 02:19:39,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885 virtual network link through opserver 10.0.0.12 2025-01-13 02:19:39,160 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-13 02:19:39,498 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-13 02:19:39,568 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885?flat'} 2025-01-13 02:19:39,568 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885 is found in opserver 2025-01-13 02:19:39,581 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 02:19:39,587 - DEBUG - VRF ids for VN ctest-vn-21361885: {} 2025-01-13 02:19:39,587 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-13 02:19:39,594 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2 2025-01-13 02:19:39,609 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1 2025-01-13 02:19:39,687 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b 2025-01-13 02:19:39,703 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b 2025-01-13 02:19:39,719 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5 2025-01-13 02:19:39,731 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5 2025-01-13 02:19:39,742 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22374d8d-167e-47bd-9ccd-0226c9099530 2025-01-13 02:19:39,753 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 02:19:39,753 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b 2025-01-13 02:19:39,770 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5 2025-01-13 02:19:39,793 - INFO - Verified VN network id 8 for VN 04f017d3-dee9-446f-aaba-18f95976ac7b 2025-01-13 02:19:39,793 - INFO - Verifications in API Server for VN ctest-vn-66664986 passed 2025-01-13 02:19:39,793 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b 2025-01-13 02:19:39,805 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5 2025-01-13 02:19:39,814 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5 2025-01-13 02:19:39,822 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/22374d8d-167e-47bd-9ccd-0226c9099530 2025-01-13 02:19:39,836 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09968244', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '355810569307636847', 'uuid-lslong': '12302172791342804091'}, 'enable': 'true', 'created': '2025-01-13T02:19:37', 'last-modified': '2025-01-13T02:19:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597716'} 2025-01-13 02:19:39,843 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 02:19:39,843 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66664986 passed 2025-01-13 02:19:39,843 - DEBUG - ====Verifying policy data for ctest-vn-66664986 in API_Server ====== 2025-01-13 02:19:39,843 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-13 02:19:39,849 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2 2025-01-13 02:19:39,862 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1 2025-01-13 02:19:39,942 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/04f017d3-dee9-446f-aaba-18f95976ac7b 2025-01-13 02:19:39,954 - DEBUG - ==>Verifying data for policy with id: 9c92168b-1f32-42f6-8522-655de51f492f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09968244', 'ctest-policy-allow-all-34073275'] 2025-01-13 02:19:39,954 - INFO - VN ctest-vn-66664986 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 02:19:39,954 - DEBUG - Verifying the vn in opserver 2025-01-13 02:19:39,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986 virtual network link through opserver 10.0.0.12 2025-01-13 02:19:39,954 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-13 02:19:39,967 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986?flat'} 2025-01-13 02:19:39,967 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-66664986 is found in opserver 2025-01-13 02:19:39,980 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 02:19:39,986 - DEBUG - VRF ids for VN ctest-vn-66664986: {} 2025-01-13 02:19:40,052 - DEBUG - Services list from nova: [, , ] 2025-01-13 02:19:41,188 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2604-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2604-1) 2025-01-13 02:19:42,592 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2604-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2604-1) 2025-01-13 02:19:42,592 - INFO - Waiting for VM ctest-TestBasicPolicy-09968244-90327259 to be up.. 2025-01-13 02:19:42,689 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 02:19:47,795 - DEBUG - VM is in ACTIVE state now 2025-01-13 02:19:47,795 - INFO - VM name : ctest-TestBasicPolicy-09968244-90327259 2025-01-13 02:19:47,904 - DEBUG - VM ctest-TestBasicPolicy-09968244-90327259 ID is 59116607-8ca9-450d-bd34-84a86db78911 2025-01-13 02:19:47,928 - DEBUG - VM ctest-TestBasicPolicy-09968244-90327259 launched on Node cn-jenkins-deploy-platform-ansible-os-2604-1. 2025-01-13 02:19:48,019 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/59116607-8ca9-450d-bd34-84a86db78911 2025-01-13 02:19:48,031 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/31fc0b67-32d8-4523-b424-9cb95afeaf7d 2025-01-13 02:19:51,319 - 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 1029ms') 2025-01-13 02:19:51,319 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09968244-90327259 failed! 2025-01-13 02:19:51,375 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09968244:ctest-vn-21361885 is 121.135.199.193 and allocation pool is NOT set 2025-01-13 02:19:53,437 - 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=5.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.42 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 = 1.415/3.344/5.274/1.929 ms') 2025-01-13 02:19:53,437 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09968244-90327259 passed 2025-01-13 02:19:53,591 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:19:53,591 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09968244-90327259, IP 121.135.199.195, Port 22 2025-01-13 02:19:53,757 - DEBUG - VM ctest-TestBasicPolicy-09968244-90327259 is ready for SSH connections 2025-01-13 02:19:53,757 - INFO - Waiting for VM ctest-TestBasicPolicy-09968244-29946521 to be up.. 2025-01-13 02:19:53,856 - DEBUG - VM is in ACTIVE state now 2025-01-13 02:19:53,856 - INFO - VM name : ctest-TestBasicPolicy-09968244-29946521 2025-01-13 02:19:53,945 - DEBUG - VM ctest-TestBasicPolicy-09968244-29946521 ID is 32d94322-d0ab-4907-994a-807e52f59210 2025-01-13 02:19:53,946 - DEBUG - VM ctest-TestBasicPolicy-09968244-29946521 launched on Node cn-jenkins-deploy-platform-ansible-os-2604-1. 2025-01-13 02:19:54,031 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/32d94322-d0ab-4907-994a-807e52f59210 2025-01-13 02:19:54,043 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/a5f60a1b-d26f-4e63-9233-1d7e1c90baee 2025-01-13 02:19:55,303 - 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=3.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.75 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.754/3.321/3.888/0.567 ms') 2025-01-13 02:19:55,303 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09968244-29946521 passed 2025-01-13 02:19:55,463 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:19:55,464 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09968244-29946521, IP 118.60.213.195, Port 22 2025-01-13 02:19:55,533 - 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': ''} 2025-01-13 02:19:55,620 - DEBUG - VM ctest-TestBasicPolicy-09968244-29946521 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-13 02:20:00,621 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:20:00,621 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09968244-29946521, IP 118.60.213.195, Port 22 2025-01-13 02:20:00,788 - DEBUG - VM ctest-TestBasicPolicy-09968244-29946521 is ready for SSH connections 2025-01-13 02:20:00,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:20:00,788 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.60.213.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-13 02:20:00,788 - DEBUG - ping -s 56 -c 3 -W 1 118.60.213.195 2025-01-13 02:20:05,080 - DEBUG - PING 118.60.213.195 (118.60.213.195): 56 data bytes 64 bytes from 118.60.213.195: seq=0 ttl=63 time=4.512 ms 64 bytes from 118.60.213.195: seq=1 ttl=63 time=1.265 ms 64 bytes from 118.60.213.195: seq=2 ttl=63 time=0.984 ms --- 118.60.213.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.984/2.253/4.512 ms 2025-01-13 02:20:05,080 - INFO - Ping to IP 118.60.213.195 from VM ctest-TestBasicPolicy-09968244-90327259 passed 2025-01-13 02:20:05,291 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9c92168b-1f32-42f6-8522-655de51f492f", "href": "http://10.0.0.12:8082/network-policy/9c92168b-1f32-42f6-8522-655de51f492f"}} 2025-01-13 02:20:05,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 02:20:05,291 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.60.213.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-13 02:20:05,291 - DEBUG - ping -s 56 -c 3 -W 1 118.60.213.195 2025-01-13 02:20:08,576 - DEBUG - PING 118.60.213.195 (118.60.213.195): 56 data bytes 64 bytes from 118.60.213.195: seq=0 ttl=63 time=1.789 ms --- 118.60.213.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.789/1.789/1.789 ms 2025-01-13 02:20:08,576 - WARNING - Ping to IP 118.60.213.195 from VM ctest-TestBasicPolicy-09968244-90327259 failed 2025-01-13 02:20:08,577 - INFO - Deleting VM ctest-TestBasicPolicy-09968244-29946521 2025-01-13 02:20:08,666 - INFO - Deleting VM ctest-TestBasicPolicy-09968244-90327259 2025-01-13 02:20:09,208 - INFO - Deleted policy ctest-policy-allow-all-34073275 2025-01-13 02:20:09,209 - INFO - Deleting VN ctest-vn-66664986 2025-01-13 02:20:09,262 - DEBUG - VN 04f017d3-dee9-446f-aaba-18f95976ac7b still in use: Unable to complete operation on network 04f017d3-dee9-446f-aaba-18f95976ac7b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e4809b34-e7c6-455d-bac8-496ebf2986d7'] 2025-01-13 02:20:09,262 - WARNING - Deleting VN ctest-vn-66664986 failed..Will retry 2025-01-13 02:20:11,400 - DEBUG - Response for deleting network () 2025-01-13 02:20:11,400 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19674499-a70b-4cc7-9abd-88b5286b18d5 2025-01-13 02:20:11,409 - DEBUG - Response Code: 404 2025-01-13 02:20:11,409 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-13 02:20:11,418 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2 2025-01-13 02:20:11,478 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1 2025-01-13 02:20:11,569 - INFO - Validated that VN ctest-vn-66664986 is not found in API Server 2025-01-13 02:20:11,583 - DEBUG - VN ctest-vn-66664986 is not present in Agent 10.0.0.12 2025-01-13 02:20:11,583 - INFO - Validated that VN ctest-vn-66664986 is not in any agent 2025-01-13 02:20:11,602 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66664986 info 2025-01-13 02:20:11,603 - INFO - Deleting VN ctest-vn-21361885 2025-01-13 02:20:11,743 - DEBUG - Response for deleting network () 2025-01-13 02:20:11,744 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/eb0db79b-91ff-4731-9344-a18dda24e128 2025-01-13 02:20:11,755 - DEBUG - Response Code: 404 2025-01-13 02:20:11,756 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-13 02:20:11,763 - DEBUG - Requesting: http://10.0.0.12:8082/domain/316045fe-f080-4781-9f74-be9903cea8a2 2025-01-13 02:20:11,826 - DEBUG - Requesting: http://10.0.0.12:8082/project/f15a6038-3a60-4b4c-bf79-d5e085b6b1b1 2025-01-13 02:20:11,925 - INFO - Validated that VN ctest-vn-21361885 is not found in API Server 2025-01-13 02:20:11,942 - DEBUG - VN ctest-vn-21361885 is not present in Agent 10.0.0.12 2025-01-13 02:20:11,942 - INFO - Validated that VN ctest-vn-21361885 is not in any agent 2025-01-13 02:20:11,965 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-21361885 info 2025-01-13 02:20:12,238 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 02:20:12,238 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-01-13 02:20:12,238 - INFO - -------------------------------------------------------------------------------- 2025-01-13 02:20:13,010 - INFO - Deleted project: ctest-TestBasicPolicy-09968244, ID : f15a6038-3a60-4b4c-bf79-d5e085b6b1b1