2024-09-06 14:06:49,544 - INFO - Domain Default found not creating 2024-09-06 14:06:49,711 - INFO - Project ctest-TestBasicPolicy-56662183 not found, creating it 2024-09-06 14:06:50,207 - INFO - Created Project:ctest-TestBasicPolicy-56662183, ID : eb384f65-446d-495c-bcda-ef636390ce2d 2024-09-06 14:06:52,225 - INFO - ================================================================================ 2024-09-06 14:06:52,226 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-06 14:06:52,226 - 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-06 14:06:52,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with 2024-09-06 14:06:52,481 - INFO - Initial checks done. Running the testcase now 2024-09-06 14:06:52,481 - INFO - 2024-09-06 14:06:53,100 - DEBUG - Response for create_network : {'network': {'id': '6d997382-2a24-443b-8991-2c07131da7f6', 'name': 'ctest-vn-69109183', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-69109183'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 14:06:53,351 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f65a3099-1657-4281-af5e-54e22586dbcc', 'name': '', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'network_id': '6d997382-2a24-443b-8991-2c07131da7f6', 'ip_version': 4, 'cidr': '91.85.224.0/26', 'allocation_pools': [{'start': '91.85.224.2', 'end': '91.85.224.62'}], 'gateway_ip': '91.85.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.85.224.2', 'tags': [], 'project_id': 'eb384f65446d495cbcdaef636390ce2d'}} 2024-09-06 14:06:53,374 - INFO - Created VN ctest-vn-69109183 2024-09-06 14:06:53,426 - DEBUG - VN ctest-vn-69109183 UUID is 6d997382-2a24-443b-8991-2c07131da7f6 2024-09-06 14:06:53,736 - DEBUG - Response for create_network : {'network': {'id': 'e414186d-e03a-4972-a4d0-845bde014f9f', 'name': 'ctest-vn-68659767', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-68659767'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 14:06:53,903 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a37d9104-92ae-4bc4-b047-f4774cd30fb0', 'name': '', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'network_id': 'e414186d-e03a-4972-a4d0-845bde014f9f', 'ip_version': 4, 'cidr': '196.72.77.192/26', 'allocation_pools': [{'start': '196.72.77.194', 'end': '196.72.77.254'}], 'gateway_ip': '196.72.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.72.77.194', 'tags': [], 'project_id': 'eb384f65446d495cbcdaef636390ce2d'}} 2024-09-06 14:06:53,925 - INFO - Created VN ctest-vn-68659767 2024-09-06 14:06:53,978 - DEBUG - VN ctest-vn-68659767 UUID is e414186d-e03a-4972-a4d0-845bde014f9f 2024-09-06 14:06:54,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183, 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-56662183:ctest-vn-68659767, 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-06 14:06:54,416 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d997382-2a24-443b-8991-2c07131da7f6', 'name': 'ctest-vn-69109183', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f65a3099-1657-4281-af5e-54e22586dbcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-69109183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911']], 'subnet_ipam': [{'subnet_cidr': '91.85.224.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-06 14:06:54,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e414186d-e03a-4972-a4d0-845bde014f9f', 'name': 'ctest-vn-68659767', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a37d9104-92ae-4bc4-b047-f4774cd30fb0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-68659767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911']], 'subnet_ipam': [{'subnet_cidr': '196.72.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-06 14:06:54,858 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-06 14:06:55,168 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-06 14:06:55,205 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de 2024-09-06 14:06:55,224 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d 2024-09-06 14:06:55,301 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6 2024-09-06 14:06:55,311 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6 2024-09-06 14:06:55,321 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32 2024-09-06 14:06:55,328 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32 2024-09-06 14:06:55,338 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/00bec9fd-8f88-4fc5-8c90-9b9886557047 2024-09-06 14:06:55,347 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-06 14:06:55,347 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6 2024-09-06 14:06:55,357 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32 2024-09-06 14:06:55,374 - INFO - Verified VN network id 8 for VN 6d997382-2a24-443b-8991-2c07131da7f6 2024-09-06 14:06:55,374 - INFO - Verifications in API Server for VN ctest-vn-69109183 passed 2024-09-06 14:06:55,375 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6 2024-09-06 14:06:55,385 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32 2024-09-06 14:06:55,394 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32 2024-09-06 14:06:55,402 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/00bec9fd-8f88-4fc5-8c90-9b9886557047 2024-09-06 14:06:55,423 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56662183', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7897470424460837947', 'uuid-lslong': '9912752663716276214'}, 'enable': 'true', 'created': '2024-09-06T14:06:53', 'last-modified': '2024-09-06T14:06:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035033'} 2024-09-06 14:06:55,431 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-06 14:06:55,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69109183 passed 2024-09-06 14:06:55,431 - DEBUG - ====Verifying policy data for ctest-vn-69109183 in API_Server ====== 2024-09-06 14:06:55,432 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-06 14:06:55,440 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de 2024-09-06 14:06:55,454 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d 2024-09-06 14:06:55,526 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6 2024-09-06 14:06:55,535 - DEBUG - ==>Verifying data for policy with id: d131eaa1-f619-42ec-bd39-e6db5bf71097, fqn: ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911'] 2024-09-06 14:06:55,535 - INFO - VN ctest-vn-69109183 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-06 14:06:55,535 - DEBUG - Verifying the vn in opserver 2024-09-06 14:06:55,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183 virtual network link through opserver 10.0.0.42 2024-09-06 14:06:55,536 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-06 14:06:55,849 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-06 14:06:55,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183?flat'} 2024-09-06 14:06:55,921 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183 is found in opserver 2024-09-06 14:06:55,933 - DEBUG - Do not have enough data to verify VN in agent 2024-09-06 14:06:55,942 - DEBUG - VRF ids for VN ctest-vn-69109183: {} 2024-09-06 14:06:55,942 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-06 14:06:55,949 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de 2024-09-06 14:06:55,961 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d 2024-09-06 14:06:56,032 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f 2024-09-06 14:06:56,044 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f 2024-09-06 14:06:56,052 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa 2024-09-06 14:06:56,058 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa 2024-09-06 14:06:56,065 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bf77969d-1d34-451c-9f1d-3f6729ef411b 2024-09-06 14:06:56,071 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-06 14:06:56,071 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f 2024-09-06 14:06:56,078 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa 2024-09-06 14:06:56,090 - INFO - Verified VN network id 9 for VN e414186d-e03a-4972-a4d0-845bde014f9f 2024-09-06 14:06:56,090 - INFO - Verifications in API Server for VN ctest-vn-68659767 passed 2024-09-06 14:06:56,090 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f 2024-09-06 14:06:56,100 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa 2024-09-06 14:06:56,106 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa 2024-09-06 14:06:56,112 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bf77969d-1d34-451c-9f1d-3f6729ef411b 2024-09-06 14:06:56,124 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56662183', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16434787800374200690', 'uuid-lslong': '11876137747477516191'}, 'enable': 'true', 'created': '2024-09-06T14:06:53', 'last-modified': '2024-09-06T14:06:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495128'} 2024-09-06 14:06:56,130 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-06 14:06:56,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68659767 passed 2024-09-06 14:06:56,131 - DEBUG - ====Verifying policy data for ctest-vn-68659767 in API_Server ====== 2024-09-06 14:06:56,131 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-06 14:06:56,137 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de 2024-09-06 14:06:56,149 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d 2024-09-06 14:06:57,421 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f 2024-09-06 14:06:57,431 - DEBUG - ==>Verifying data for policy with id: d131eaa1-f619-42ec-bd39-e6db5bf71097, fqn: ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911'] 2024-09-06 14:06:57,431 - INFO - VN ctest-vn-68659767 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-06 14:06:57,431 - DEBUG - Verifying the vn in opserver 2024-09-06 14:06:57,431 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767 virtual network link through opserver 10.0.0.42 2024-09-06 14:06:57,431 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-06 14:06:57,445 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767?flat'} 2024-09-06 14:06:57,445 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767 is found in opserver 2024-09-06 14:06:57,459 - DEBUG - Do not have enough data to verify VN in agent 2024-09-06 14:06:57,467 - DEBUG - VRF ids for VN ctest-vn-68659767: {} 2024-09-06 14:06:57,546 - DEBUG - Services list from nova: [, , ] 2024-09-06 14:06:58,622 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1861-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1861-1) 2024-09-06 14:06:59,960 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1861-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1861-1) 2024-09-06 14:06:59,960 - INFO - Waiting for VM ctest-TestBasicPolicy-56662183-78285613 to be up.. 2024-09-06 14:07:00,060 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-06 14:07:05,157 - DEBUG - VM is in ACTIVE state now 2024-09-06 14:07:05,157 - INFO - VM name : ctest-TestBasicPolicy-56662183-78285613 2024-09-06 14:07:05,250 - DEBUG - VM ctest-TestBasicPolicy-56662183-78285613 ID is 6df49670-5e84-490e-b118-cff3e73a16c2 2024-09-06 14:07:05,272 - DEBUG - VM ctest-TestBasicPolicy-56662183-78285613 launched on Node cn-jenkins-deploy-platform-ansible-os-1861-1 2024-09-06 14:07:05,358 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/6df49670-5e84-490e-b118-cff3e73a16c2 2024-09-06 14:07:05,369 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/c12a99bf-766f-430e-ae95-97ef6fa0d870 2024-09-06 14:07:08,632 - 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 1013ms') 2024-09-06 14:07:08,633 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56662183-78285613 failed! 2024-09-06 14:07:08,686 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183 is 91.85.224.1 and allocation pool is NOT set 2024-09-06 14:07:10,751 - 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=7.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.400 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.400/3.854/7.308/3.454 ms') 2024-09-06 14:07:10,751 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56662183-78285613 passed 2024-09-06 14:07:10,914 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:07:11,063 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56662183-78285613, IP 91.85.224.3, Port 22 2024-09-06 14:07:11,226 - DEBUG - VM ctest-TestBasicPolicy-56662183-78285613 is ready for SSH connections 2024-09-06 14:07:11,226 - INFO - Waiting for VM ctest-TestBasicPolicy-56662183-25553003 to be up.. 2024-09-06 14:07:11,313 - DEBUG - VM is in ACTIVE state now 2024-09-06 14:07:11,313 - INFO - VM name : ctest-TestBasicPolicy-56662183-25553003 2024-09-06 14:07:11,395 - DEBUG - VM ctest-TestBasicPolicy-56662183-25553003 ID is c1faf97c-8941-489c-8d66-8223e734e5bc 2024-09-06 14:07:11,395 - DEBUG - VM ctest-TestBasicPolicy-56662183-25553003 launched on Node cn-jenkins-deploy-platform-ansible-os-1861-1 2024-09-06 14:07:11,481 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/c1faf97c-8941-489c-8d66-8223e734e5bc 2024-09-06 14:07:11,490 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/9a4ed63e-5c35-436f-a31b-999028f8c8a6 2024-09-06 14:07:12,739 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.30 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.301/2.632/3.964/1.331 ms') 2024-09-06 14:07:12,739 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56662183-25553003 passed 2024-09-06 14:07:12,894 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:07:12,894 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56662183-25553003, IP 196.72.77.195, Port 22 2024-09-06 14:07:12,959 - 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-06 14:07:13,046 - DEBUG - VM ctest-TestBasicPolicy-56662183-25553003 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-06 14:07:18,047 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:07:18,047 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56662183-25553003, IP 196.72.77.195, Port 22 2024-09-06 14:07:18,226 - DEBUG - VM ctest-TestBasicPolicy-56662183-25553003 is ready for SSH connections 2024-09-06 14:07:18,226 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:07:18,226 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.72.77.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-06 14:07:18,226 - DEBUG - ping -s 56 -c 3 -W 1 196.72.77.195 2024-09-06 14:07:22,273 - DEBUG - PING 196.72.77.195 (196.72.77.195): 56 data bytes 64 bytes from 196.72.77.195: seq=0 ttl=63 time=3.561 ms 64 bytes from 196.72.77.195: seq=1 ttl=63 time=1.125 ms 64 bytes from 196.72.77.195: seq=2 ttl=63 time=0.952 ms --- 196.72.77.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.952/1.879/3.561 ms 2024-09-06 14:07:22,273 - INFO - Ping to IP 196.72.77.195 from VM ctest-TestBasicPolicy-56662183-78285613 passed 2024-09-06 14:07:22,454 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d131eaa1-f619-42ec-bd39-e6db5bf71097", "href": "http://10.0.0.42:8082/network-policy/d131eaa1-f619-42ec-bd39-e6db5bf71097"}} 2024-09-06 14:07:22,454 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:07:22,454 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.72.77.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-06 14:07:22,454 - DEBUG - ping -s 56 -c 3 -W 1 196.72.77.195 2024-09-06 14:07:25,665 - DEBUG - PING 196.72.77.195 (196.72.77.195): 56 data bytes --- 196.72.77.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-06 14:07:25,666 - WARNING - Ping to IP 196.72.77.195 from VM ctest-TestBasicPolicy-56662183-78285613 failed 2024-09-06 14:07:25,666 - INFO - Deleting VM ctest-TestBasicPolicy-56662183-25553003 2024-09-06 14:07:25,750 - INFO - Deleting VM ctest-TestBasicPolicy-56662183-78285613 2024-09-06 14:07:26,160 - INFO - Deleted policy ctest-policy-allow-all-30637911 2024-09-06 14:07:26,161 - INFO - Deleting VN ctest-vn-68659767 2024-09-06 14:07:26,200 - DEBUG - VN e414186d-e03a-4972-a4d0-845bde014f9f still in use: Unable to complete operation on network e414186d-e03a-4972-a4d0-845bde014f9f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-15a3c316-2987-4e7f-ac4c-a86f1dd57206'] 2024-09-06 14:07:26,200 - WARNING - Deleting VN ctest-vn-68659767 failed..Will retry 2024-09-06 14:07:28,323 - DEBUG - Response for deleting network () 2024-09-06 14:07:28,323 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa 2024-09-06 14:07:28,330 - DEBUG - Response Code: 404 2024-09-06 14:07:28,331 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-06 14:07:28,341 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de 2024-09-06 14:07:28,400 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d 2024-09-06 14:07:28,473 - INFO - Validated that VN ctest-vn-68659767 is not found in API Server 2024-09-06 14:07:28,484 - DEBUG - VN ctest-vn-68659767 is not present in Agent 10.0.0.42 2024-09-06 14:07:28,484 - INFO - Validated that VN ctest-vn-68659767 is not in any agent 2024-09-06 14:07:28,502 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68659767 info 2024-09-06 14:07:28,502 - INFO - Deleting VN ctest-vn-69109183 2024-09-06 14:07:28,614 - DEBUG - Response for deleting network () 2024-09-06 14:07:28,614 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32 2024-09-06 14:07:28,621 - DEBUG - Response Code: 404 2024-09-06 14:07:28,621 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-06 14:07:28,628 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de 2024-09-06 14:07:28,684 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d 2024-09-06 14:07:28,757 - INFO - Validated that VN ctest-vn-69109183 is not found in API Server 2024-09-06 14:07:28,772 - DEBUG - VN ctest-vn-69109183 is not present in Agent 10.0.0.42 2024-09-06 14:07:28,773 - INFO - Validated that VN ctest-vn-69109183 is not in any agent 2024-09-06 14:07:28,791 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69109183 info 2024-09-06 14:07:29,052 - DEBUG - No XMPP flaps were noticed during the test 2024-09-06 14:07:29,052 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-09-06 14:07:29,052 - INFO - -------------------------------------------------------------------------------- 2024-09-06 14:07:29,775 - INFO - Deleted project: ctest-TestBasicPolicy-56662183, ID : eb384f65-446d-495c-bcda-ef636390ce2d