2024-09-19 16:57:45,004 - INFO - Domain Default found not creating 2024-09-19 16:57:45,200 - INFO - Project ctest-TestBasicPolicy-17878976 not found, creating it 2024-09-19 16:57:45,741 - INFO - Created Project:ctest-TestBasicPolicy-17878976, ID : bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6 2024-09-19 16:57:47,526 - INFO - ================================================================================ 2024-09-19 16:57:47,526 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-19 16:57:47,526 - 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-09-19 16:57:47,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with 2024-09-19 16:57:47,781 - INFO - Initial checks done. Running the testcase now 2024-09-19 16:57:47,781 - INFO - 2024-09-19 16:57:48,440 - DEBUG - Response for create_network : {'network': {'id': '5b0c2682-4141-4240-86cd-92fa316fff61', 'name': 'ctest-vn-58898020', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-58898020'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 16:57:48,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '6563369e-8a51-4bdd-b641-463bb73b8bd7', 'name': '', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'network_id': '5b0c2682-4141-4240-86cd-92fa316fff61', 'ip_version': 4, 'cidr': '13.195.44.192/26', 'allocation_pools': [{'start': '13.195.44.194', 'end': '13.195.44.254'}], 'gateway_ip': '13.195.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.195.44.194', 'tags': [], 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6'}} 2024-09-19 16:57:48,649 - INFO - Created VN ctest-vn-58898020 2024-09-19 16:57:48,710 - DEBUG - VN ctest-vn-58898020 UUID is 5b0c2682-4141-4240-86cd-92fa316fff61 2024-09-19 16:57:49,076 - DEBUG - Response for create_network : {'network': {'id': '772e24ec-5a50-4116-95eb-18a5e12d712d', 'name': 'ctest-vn-13808380', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-13808380'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 16:57:49,280 - DEBUG - Response for create_subnet : {'subnet': {'id': '52ff2bac-7d4b-493c-8768-54584acc1772', 'name': '', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'network_id': '772e24ec-5a50-4116-95eb-18a5e12d712d', 'ip_version': 4, 'cidr': '211.156.120.0/26', 'allocation_pools': [{'start': '211.156.120.2', 'end': '211.156.120.62'}], 'gateway_ip': '211.156.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.156.120.2', 'tags': [], 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6'}} 2024-09-19 16:57:49,302 - INFO - Created VN ctest-vn-13808380 2024-09-19 16:57:49,362 - DEBUG - VN ctest-vn-13808380 UUID is 772e24ec-5a50-4116-95eb-18a5e12d712d 2024-09-19 16:57:49,505 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020, 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-17878976:ctest-vn-13808380, 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-09-19 16:57:49,848 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b0c2682-4141-4240-86cd-92fa316fff61', 'name': 'ctest-vn-58898020', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6563369e-8a51-4bdd-b641-463bb73b8bd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-58898020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654']], 'subnet_ipam': [{'subnet_cidr': '13.195.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 16:57:50,106 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '772e24ec-5a50-4116-95eb-18a5e12d712d', 'name': 'ctest-vn-13808380', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52ff2bac-7d4b-493c-8768-54584acc1772'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-13808380'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654']], 'subnet_ipam': [{'subnet_cidr': '211.156.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 16:57:50,258 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-19 16:57:50,614 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-19 16:57:50,651 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887 2024-09-19 16:57:50,668 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6 2024-09-19 16:57:50,761 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61 2024-09-19 16:57:50,780 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61 2024-09-19 16:57:50,798 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1 2024-09-19 16:57:50,809 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1 2024-09-19 16:57:50,818 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ef7eb0a7-04e1-4bab-9d39-5eb0e0891ec4 2024-09-19 16:57:50,827 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 16:57:50,827 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61 2024-09-19 16:57:50,847 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1 2024-09-19 16:57:50,872 - INFO - Verified VN network id 9 for VN 5b0c2682-4141-4240-86cd-92fa316fff61 2024-09-19 16:57:50,872 - INFO - Verifications in API Server for VN ctest-vn-58898020 passed 2024-09-19 16:57:50,872 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61 2024-09-19 16:57:50,888 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1 2024-09-19 16:57:50,898 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1 2024-09-19 16:57:50,908 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ef7eb0a7-04e1-4bab-9d39-5eb0e0891ec4 2024-09-19 16:57:50,925 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17878976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6560661098054369856', 'uuid-lslong': '9713581574576930657'}, 'enable': 'true', 'created': '2024-09-19T16:57:48', 'last-modified': '2024-09-19T16:57:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.115979'} 2024-09-19 16:57:50,933 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 16:57:50,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58898020 passed 2024-09-19 16:57:50,933 - DEBUG - ====Verifying policy data for ctest-vn-58898020 in API_Server ====== 2024-09-19 16:57:50,933 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-19 16:57:50,940 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887 2024-09-19 16:57:50,956 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6 2024-09-19 16:57:51,043 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61 2024-09-19 16:57:51,061 - DEBUG - ==>Verifying data for policy with id: be4fac93-96c9-4671-94c1-a0adfb4e4c26, fqn: ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654'] 2024-09-19 16:57:51,061 - INFO - VN ctest-vn-58898020 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 16:57:51,061 - DEBUG - Verifying the vn in opserver 2024-09-19 16:57:51,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020 virtual network link through opserver 10.0.0.23 2024-09-19 16:57:51,061 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-19 16:57:51,413 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-19 16:57:51,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020?flat'} 2024-09-19 16:57:51,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020 is found in opserver 2024-09-19 16:57:51,504 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 16:57:51,511 - DEBUG - VRF ids for VN ctest-vn-58898020: {} 2024-09-19 16:57:51,511 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-19 16:57:51,518 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887 2024-09-19 16:57:51,533 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6 2024-09-19 16:57:51,620 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d 2024-09-19 16:57:51,644 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d 2024-09-19 16:57:51,661 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef 2024-09-19 16:57:51,673 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef 2024-09-19 16:57:51,687 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/54f0b0f7-3677-4a16-b03e-e46728254210 2024-09-19 16:57:51,696 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 16:57:51,696 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d 2024-09-19 16:57:51,717 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef 2024-09-19 16:57:51,740 - INFO - Verified VN network id 10 for VN 772e24ec-5a50-4116-95eb-18a5e12d712d 2024-09-19 16:57:51,740 - INFO - Verifications in API Server for VN ctest-vn-13808380 passed 2024-09-19 16:57:51,740 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d 2024-09-19 16:57:51,756 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef 2024-09-19 16:57:51,767 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef 2024-09-19 16:57:51,777 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/54f0b0f7-3677-4a16-b03e-e46728254210 2024-09-19 16:57:51,793 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17878976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8587842136988205334', 'uuid-lslong': '10802755231904788781'}, 'enable': 'true', 'created': '2024-09-19T16:57:49', 'last-modified': '2024-09-19T16:57:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.717883'} 2024-09-19 16:57:51,801 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 16:57:51,802 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13808380 passed 2024-09-19 16:57:51,802 - DEBUG - ====Verifying policy data for ctest-vn-13808380 in API_Server ====== 2024-09-19 16:57:51,802 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-19 16:57:51,809 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887 2024-09-19 16:57:51,826 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6 2024-09-19 16:57:51,922 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d 2024-09-19 16:57:51,937 - DEBUG - ==>Verifying data for policy with id: be4fac93-96c9-4671-94c1-a0adfb4e4c26, fqn: ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654'] 2024-09-19 16:57:51,938 - INFO - VN ctest-vn-13808380 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 16:57:51,938 - DEBUG - Verifying the vn in opserver 2024-09-19 16:57:51,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380 virtual network link through opserver 10.0.0.23 2024-09-19 16:57:51,938 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-09-19 16:57:51,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380?flat'} 2024-09-19 16:57:51,951 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380 is found in opserver 2024-09-19 16:57:51,962 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 16:57:51,968 - DEBUG - VRF ids for VN ctest-vn-13808380: {} 2024-09-19 16:57:52,037 - DEBUG - Services list from nova: [, , ] 2024-09-19 16:57:53,234 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2005-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2005-1) 2024-09-19 16:57:54,729 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2005-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2005-1) 2024-09-19 16:57:54,729 - INFO - Waiting for VM ctest-TestBasicPolicy-17878976-01243215 to be up.. 2024-09-19 16:57:54,828 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 16:57:59,930 - DEBUG - VM is in ACTIVE state now 2024-09-19 16:57:59,931 - INFO - VM name : ctest-TestBasicPolicy-17878976-01243215 2024-09-19 16:58:00,041 - DEBUG - VM ctest-TestBasicPolicy-17878976-01243215 ID is 45e201ef-19d8-4f0d-a3c1-5e75b14d9b73 2024-09-19 16:58:00,068 - DEBUG - VM ctest-TestBasicPolicy-17878976-01243215 launched on Node cn-jenkins-deploy-platform-ansible-os-2005-1 2024-09-19 16:58:00,170 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/45e201ef-19d8-4f0d-a3c1-5e75b14d9b73 2024-09-19 16:58:00,182 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e967fbe0-d7cf-49f9-aa5f-e4b4d2066c2b 2024-09-19 16:58:03,497 - 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 1030ms') 2024-09-19 16:58:03,497 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17878976-01243215 failed! 2024-09-19 16:58:03,562 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020 is 13.195.44.193 and allocation pool is NOT set 2024-09-19 16:58:05,623 - 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.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.02 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.024/2.052/3.080/1.028 ms') 2024-09-19 16:58:05,623 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17878976-01243215 passed 2024-09-19 16:58:05,786 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:58:05,786 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17878976-01243215, IP 13.195.44.195, Port 22 2024-09-19 16:58:05,946 - DEBUG - VM ctest-TestBasicPolicy-17878976-01243215 is ready for SSH connections 2024-09-19 16:58:05,946 - INFO - Waiting for VM ctest-TestBasicPolicy-17878976-92331103 to be up.. 2024-09-19 16:58:06,053 - DEBUG - VM is in ACTIVE state now 2024-09-19 16:58:06,054 - INFO - VM name : ctest-TestBasicPolicy-17878976-92331103 2024-09-19 16:58:06,141 - DEBUG - VM ctest-TestBasicPolicy-17878976-92331103 ID is df5d67cb-ebbb-4c7e-b2ba-9f88217fdc31 2024-09-19 16:58:06,141 - DEBUG - VM ctest-TestBasicPolicy-17878976-92331103 launched on Node cn-jenkins-deploy-platform-ansible-os-2005-1 2024-09-19 16:58:06,237 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/df5d67cb-ebbb-4c7e-b2ba-9f88217fdc31 2024-09-19 16:58:06,248 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/35e4b5e0-4ca8-428f-a119-a6fb12160665 2024-09-19 16:58:07,516 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=5.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.53 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.533/4.259/5.985/1.726 ms') 2024-09-19 16:58:07,516 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17878976-92331103 passed 2024-09-19 16:58:07,678 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:58:07,678 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17878976-92331103, IP 211.156.120.3, Port 22 2024-09-19 16:58:07,734 - 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-09-19 16:58:07,825 - DEBUG - VM ctest-TestBasicPolicy-17878976-92331103 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-19 16:58:12,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:58:12,826 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17878976-92331103, IP 211.156.120.3, Port 22 2024-09-19 16:58:12,992 - DEBUG - VM ctest-TestBasicPolicy-17878976-92331103 is ready for SSH connections 2024-09-19 16:58:12,992 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:58:12,992 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.156.120.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-19 16:58:12,993 - DEBUG - ping -s 56 -c 3 -W 1 211.156.120.3 2024-09-19 16:58:17,074 - DEBUG - PING 211.156.120.3 (211.156.120.3): 56 data bytes 64 bytes from 211.156.120.3: seq=0 ttl=63 time=4.980 ms 64 bytes from 211.156.120.3: seq=1 ttl=63 time=1.144 ms 64 bytes from 211.156.120.3: seq=2 ttl=63 time=0.784 ms --- 211.156.120.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.784/2.302/4.980 ms 2024-09-19 16:58:17,075 - INFO - Ping to IP 211.156.120.3 from VM ctest-TestBasicPolicy-17878976-01243215 passed 2024-09-19 16:58:17,270 - DEBUG - Policy Update Response {"network-policy": {"uuid": "be4fac93-96c9-4671-94c1-a0adfb4e4c26", "href": "http://10.0.0.23:8082/network-policy/be4fac93-96c9-4671-94c1-a0adfb4e4c26"}} 2024-09-19 16:58:17,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:58:17,270 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.156.120.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-19 16:58:17,271 - DEBUG - ping -s 56 -c 3 -W 1 211.156.120.3 2024-09-19 16:58:20,521 - DEBUG - PING 211.156.120.3 (211.156.120.3): 56 data bytes 64 bytes from 211.156.120.3: seq=0 ttl=63 time=2.195 ms --- 211.156.120.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.195/2.195/2.195 ms 2024-09-19 16:58:20,521 - WARNING - Ping to IP 211.156.120.3 from VM ctest-TestBasicPolicy-17878976-01243215 failed 2024-09-19 16:58:20,521 - INFO - Deleting VM ctest-TestBasicPolicy-17878976-92331103 2024-09-19 16:58:20,599 - INFO - Deleting VM ctest-TestBasicPolicy-17878976-01243215 2024-09-19 16:58:21,083 - INFO - Deleted policy ctest-policy-allow-all-88999654 2024-09-19 16:58:21,083 - INFO - Deleting VN ctest-vn-13808380 2024-09-19 16:58:21,133 - DEBUG - VN 772e24ec-5a50-4116-95eb-18a5e12d712d still in use: Unable to complete operation on network 772e24ec-5a50-4116-95eb-18a5e12d712d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ee8af7be-97c8-4d2e-a28c-1fe451172eeb'] 2024-09-19 16:58:21,134 - WARNING - Deleting VN ctest-vn-13808380 failed..Will retry 2024-09-19 16:58:23,290 - DEBUG - Response for deleting network () 2024-09-19 16:58:23,290 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef 2024-09-19 16:58:23,298 - DEBUG - Response Code: 404 2024-09-19 16:58:23,299 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-19 16:58:23,315 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887 2024-09-19 16:58:23,335 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6 2024-09-19 16:58:23,435 - INFO - Validated that VN ctest-vn-13808380 is not found in API Server 2024-09-19 16:58:23,447 - DEBUG - VN ctest-vn-13808380 is not present in Agent 10.0.0.23 2024-09-19 16:58:23,447 - INFO - Validated that VN ctest-vn-13808380 is not in any agent 2024-09-19 16:58:23,465 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13808380 info 2024-09-19 16:58:23,466 - INFO - Deleting VN ctest-vn-58898020 2024-09-19 16:58:23,604 - DEBUG - Response for deleting network () 2024-09-19 16:58:23,604 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1 2024-09-19 16:58:23,611 - DEBUG - Response Code: 404 2024-09-19 16:58:23,611 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-09-19 16:58:23,627 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887 2024-09-19 16:58:23,685 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6 2024-09-19 16:58:23,782 - INFO - Validated that VN ctest-vn-58898020 is not found in API Server 2024-09-19 16:58:23,796 - DEBUG - VN ctest-vn-58898020 is not present in Agent 10.0.0.23 2024-09-19 16:58:23,796 - INFO - Validated that VN ctest-vn-58898020 is not in any agent 2024-09-19 16:58:23,815 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58898020 info 2024-09-19 16:58:24,074 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 16:58:24,074 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-09-19 16:58:24,074 - INFO - -------------------------------------------------------------------------------- 2024-09-19 16:58:24,840 - INFO - Deleted project: ctest-TestBasicPolicy-17878976, ID : bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6