2025-01-30 17:10:50,895 - INFO - Domain Default found not creating 2025-01-30 17:10:51,066 - INFO - Project ctest-TestBasicPolicy-63661305 not found, creating it 2025-01-30 17:10:51,533 - INFO - Created Project:ctest-TestBasicPolicy-63661305, ID : c70f34ca-bd8b-4b9e-b29d-1c220da595e6 2025-01-30 17:10:53,004 - INFO - ================================================================================ 2025-01-30 17:10:53,005 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-30 17:10:53,005 - 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-30 17:10:53,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with 2025-01-30 17:10:53,258 - INFO - Initial checks done. Running the testcase now 2025-01-30 17:10:53,258 - INFO - 2025-01-30 17:10:53,825 - DEBUG - Response for create_network : {'network': {'id': 'c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4', 'name': 'ctest-vn-58447122', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-58447122'], 'port_security_enabled': True, 'description': ''}} 2025-01-30 17:10:54,050 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b320f662-0bea-4de9-b5f9-3547d355d521', 'name': '', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'network_id': 'c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4', 'ip_version': 4, 'cidr': '58.35.24.0/26', 'allocation_pools': [{'start': '58.35.24.2', 'end': '58.35.24.62'}], 'gateway_ip': '58.35.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.35.24.2', 'tags': [], 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6'}} 2025-01-30 17:10:54,070 - INFO - Created VN ctest-vn-58447122 2025-01-30 17:10:54,124 - DEBUG - VN ctest-vn-58447122 UUID is c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4 2025-01-30 17:10:54,433 - DEBUG - Response for create_network : {'network': {'id': '958c96be-a46f-4112-a31e-9af1090e1314', 'name': 'ctest-vn-92667310', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-92667310'], 'port_security_enabled': True, 'description': ''}} 2025-01-30 17:10:54,620 - DEBUG - Response for create_subnet : {'subnet': {'id': '7af0b5ad-fdd6-483a-8bb0-e59e07a6924f', 'name': '', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'network_id': '958c96be-a46f-4112-a31e-9af1090e1314', 'ip_version': 4, 'cidr': '42.225.193.64/26', 'allocation_pools': [{'start': '42.225.193.66', 'end': '42.225.193.126'}], 'gateway_ip': '42.225.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.225.193.66', 'tags': [], 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6'}} 2025-01-30 17:10:54,639 - INFO - Created VN ctest-vn-92667310 2025-01-30 17:10:54,692 - DEBUG - VN ctest-vn-92667310 UUID is 958c96be-a46f-4112-a31e-9af1090e1314 2025-01-30 17:10:54,820 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122, 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-63661305:ctest-vn-92667310, 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-30 17:10:55,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4', 'name': 'ctest-vn-58447122', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b320f662-0bea-4de9-b5f9-3547d355d521'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-58447122'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322']], 'subnet_ipam': [{'subnet_cidr': '58.35.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-30 17:10:55,429 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '958c96be-a46f-4112-a31e-9af1090e1314', 'name': 'ctest-vn-92667310', 'tenant_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'project_id': 'c70f34cabd8b4b9eb29d1c220da595e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7af0b5ad-fdd6-483a-8bb0-e59e07a6924f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-vn-92667310'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322']], 'subnet_ipam': [{'subnet_cidr': '42.225.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-30 17:10:55,584 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-30 17:10:55,884 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-30 17:10:55,915 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db 2025-01-30 17:10:55,929 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6 2025-01-30 17:10:56,009 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4 2025-01-30 17:10:56,026 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4 2025-01-30 17:10:56,039 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb 2025-01-30 17:10:56,049 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb 2025-01-30 17:10:56,058 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/506a3a2e-9039-4fcf-9c41-b807fe5bb40d 2025-01-30 17:10:56,066 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-30 17:10:56,066 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4 2025-01-30 17:10:56,076 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb 2025-01-30 17:10:56,092 - INFO - Verified VN network id 8 for VN c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4 2025-01-30 17:10:56,092 - INFO - Verifications in API Server for VN ctest-vn-58447122 passed 2025-01-30 17:10:56,092 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4 2025-01-30 17:10:56,104 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb 2025-01-30 17:10:56,112 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb 2025-01-30 17:10:56,120 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/506a3a2e-9039-4fcf-9c41-b807fe5bb40d 2025-01-30 17:10:56,135 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63661305', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14117473688729765857', 'uuid-lslong': '13296288298196706548'}, 'enable': 'true', 'created': '2025-01-30T17:10:53', 'last-modified': '2025-01-30T17:10:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029984'} 2025-01-30 17:10:56,142 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-30 17:10:56,142 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58447122 passed 2025-01-30 17:10:56,142 - DEBUG - ====Verifying policy data for ctest-vn-58447122 in API_Server ====== 2025-01-30 17:10:56,142 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-30 17:10:56,148 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db 2025-01-30 17:10:56,161 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6 2025-01-30 17:10:56,236 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c3eb5785-b6a9-47e1-b885-e7c2ad32a4f4 2025-01-30 17:10:56,247 - DEBUG - ==>Verifying data for policy with id: 44754741-3ef5-4430-b2df-720ee1f7dec8, fqn: ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322'] 2025-01-30 17:10:56,247 - INFO - VN ctest-vn-58447122 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-30 17:10:56,247 - DEBUG - Verifying the vn in opserver 2025-01-30 17:10:56,247 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122 virtual network link through opserver 10.0.0.12 2025-01-30 17:10:56,247 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-30 17:10:56,541 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-30 17:10:56,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122?flat'} 2025-01-30 17:10:56,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122 is found in opserver 2025-01-30 17:10:56,620 - DEBUG - Do not have enough data to verify VN in agent 2025-01-30 17:10:56,627 - DEBUG - VRF ids for VN ctest-vn-58447122: {} 2025-01-30 17:10:56,627 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-30 17:10:56,634 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db 2025-01-30 17:10:56,647 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6 2025-01-30 17:10:56,727 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314 2025-01-30 17:10:56,745 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314 2025-01-30 17:10:56,759 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532 2025-01-30 17:10:56,769 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532 2025-01-30 17:10:56,779 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/aac9de55-a782-4991-b5ec-f81157bf7a96 2025-01-30 17:10:56,789 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-30 17:10:56,790 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314 2025-01-30 17:10:56,803 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532 2025-01-30 17:10:56,823 - INFO - Verified VN network id 9 for VN 958c96be-a46f-4112-a31e-9af1090e1314 2025-01-30 17:10:56,823 - INFO - Verifications in API Server for VN ctest-vn-92667310 passed 2025-01-30 17:10:56,823 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314 2025-01-30 17:10:56,839 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532 2025-01-30 17:10:56,851 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532 2025-01-30 17:10:56,861 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/aac9de55-a782-4991-b5ec-f81157bf7a96 2025-01-30 17:10:56,879 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63661305', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10776153753937461522', 'uuid-lslong': '11754002437513286420'}, 'enable': 'true', 'created': '2025-01-30T17:10:54', 'last-modified': '2025-01-30T17:10:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518803'} 2025-01-30 17:10:56,888 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-30 17:10:56,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92667310 passed 2025-01-30 17:10:56,889 - DEBUG - ====Verifying policy data for ctest-vn-92667310 in API_Server ====== 2025-01-30 17:10:56,889 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-30 17:10:56,897 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db 2025-01-30 17:10:56,911 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6 2025-01-30 17:10:56,986 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/958c96be-a46f-4112-a31e-9af1090e1314 2025-01-30 17:10:56,998 - DEBUG - ==>Verifying data for policy with id: 44754741-3ef5-4430-b2df-720ee1f7dec8, fqn: ['default-domain', 'ctest-TestBasicPolicy-63661305', 'ctest-policy-allow-all-99216322'] 2025-01-30 17:10:56,998 - INFO - VN ctest-vn-92667310 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-30 17:10:56,998 - DEBUG - Verifying the vn in opserver 2025-01-30 17:10:56,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310 virtual network link through opserver 10.0.0.12 2025-01-30 17:10:56,998 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-30 17:10:57,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310?flat'} 2025-01-30 17:10:57,013 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-92667310 is found in opserver 2025-01-30 17:10:57,024 - DEBUG - Do not have enough data to verify VN in agent 2025-01-30 17:10:57,029 - DEBUG - VRF ids for VN ctest-vn-92667310: {} 2025-01-30 17:10:57,104 - DEBUG - Services list from nova: [, , ] 2025-01-30 17:10:58,140 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2670-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2670-1) 2025-01-30 17:10:59,415 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2670-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2670-1) 2025-01-30 17:10:59,415 - INFO - Waiting for VM ctest-TestBasicPolicy-63661305-29114098 to be up.. 2025-01-30 17:10:59,502 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-30 17:11:04,585 - DEBUG - VM is in ACTIVE state now 2025-01-30 17:11:04,586 - INFO - VM name : ctest-TestBasicPolicy-63661305-29114098 2025-01-30 17:11:04,671 - DEBUG - VM ctest-TestBasicPolicy-63661305-29114098 ID is 2c8b16f9-7b01-4334-9700-14dea93eaf3b 2025-01-30 17:11:04,691 - DEBUG - VM ctest-TestBasicPolicy-63661305-29114098 launched on Node cn-jenkins-deploy-platform-ansible-os-2670-1 2025-01-30 17:11:04,771 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/2c8b16f9-7b01-4334-9700-14dea93eaf3b 2025-01-30 17:11:04,781 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/7c2546ec-b047-4dde-8721-10dccb48f8b9 2025-01-30 17:11:08,017 - 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 1006ms') 2025-01-30 17:11:08,017 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63661305-29114098 failed! 2025-01-30 17:11:08,072 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63661305:ctest-vn-58447122 is 58.35.24.1 and allocation pool is NOT set 2025-01-30 17:11:10,134 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.62 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 = 3.622/6.448/9.274/2.826 ms') 2025-01-30 17:11:10,134 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63661305-29114098 passed 2025-01-30 17:11:10,346 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-30 17:11:10,346 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63661305-29114098, IP 58.35.24.3, Port 22 2025-01-30 17:11:10,515 - DEBUG - VM ctest-TestBasicPolicy-63661305-29114098 is ready for SSH connections 2025-01-30 17:11:10,515 - INFO - Waiting for VM ctest-TestBasicPolicy-63661305-13596506 to be up.. 2025-01-30 17:11:10,592 - DEBUG - VM is in ACTIVE state now 2025-01-30 17:11:10,592 - INFO - VM name : ctest-TestBasicPolicy-63661305-13596506 2025-01-30 17:11:10,671 - DEBUG - VM ctest-TestBasicPolicy-63661305-13596506 ID is 9d2c5a2d-6d05-43c7-a43a-3fe786a8ffd1 2025-01-30 17:11:10,671 - DEBUG - VM ctest-TestBasicPolicy-63661305-13596506 launched on Node cn-jenkins-deploy-platform-ansible-os-2670-1 2025-01-30 17:11:10,751 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/9d2c5a2d-6d05-43c7-a43a-3fe786a8ffd1 2025-01-30 17:11:10,760 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/e247ec84-ae90-4787-8202-b4feb2c861d9 2025-01-30 17:11:12,002 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.07 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.071/3.032/4.994/1.961 ms') 2025-01-30 17:11:12,002 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-63661305-13596506 passed 2025-01-30 17:11:12,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-30 17:11:12,156 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63661305-13596506, IP 42.225.193.67, Port 22 2025-01-30 17:11:12,212 - 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-30 17:11:12,292 - DEBUG - VM ctest-TestBasicPolicy-63661305-13596506 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-30 17:11:17,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-30 17:11:17,293 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63661305-13596506, IP 42.225.193.67, Port 22 2025-01-30 17:11:17,456 - DEBUG - VM ctest-TestBasicPolicy-63661305-13596506 is ready for SSH connections 2025-01-30 17:11:17,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-30 17:11:17,456 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.225.193.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-30 17:11:17,456 - DEBUG - ping -s 56 -c 3 -W 1 42.225.193.67 2025-01-30 17:11:21,462 - DEBUG - PING 42.225.193.67 (42.225.193.67): 56 data bytes 64 bytes from 42.225.193.67: seq=0 ttl=63 time=5.627 ms 64 bytes from 42.225.193.67: seq=1 ttl=63 time=0.929 ms 64 bytes from 42.225.193.67: seq=2 ttl=63 time=0.754 ms --- 42.225.193.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.754/2.436/5.627 ms 2025-01-30 17:11:21,462 - INFO - Ping to IP 42.225.193.67 from VM ctest-TestBasicPolicy-63661305-29114098 passed 2025-01-30 17:11:21,640 - DEBUG - Policy Update Response {"network-policy": {"uuid": "44754741-3ef5-4430-b2df-720ee1f7dec8", "href": "http://10.0.0.12:8082/network-policy/44754741-3ef5-4430-b2df-720ee1f7dec8"}} 2025-01-30 17:11:21,640 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-30 17:11:21,640 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.225.193.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-30 17:11:21,640 - DEBUG - ping -s 56 -c 3 -W 1 42.225.193.67 2025-01-30 17:11:24,878 - DEBUG - PING 42.225.193.67 (42.225.193.67): 56 data bytes 64 bytes from 42.225.193.67: seq=0 ttl=63 time=1.581 ms --- 42.225.193.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.581/1.581/1.581 ms 2025-01-30 17:11:24,878 - WARNING - Ping to IP 42.225.193.67 from VM ctest-TestBasicPolicy-63661305-29114098 failed 2025-01-30 17:11:24,878 - INFO - Deleting VM ctest-TestBasicPolicy-63661305-13596506 2025-01-30 17:11:24,947 - INFO - Deleting VM ctest-TestBasicPolicy-63661305-29114098 2025-01-30 17:11:25,388 - INFO - Deleted policy ctest-policy-allow-all-99216322 2025-01-30 17:11:25,388 - INFO - Deleting VN ctest-vn-92667310 2025-01-30 17:11:25,427 - DEBUG - VN 958c96be-a46f-4112-a31e-9af1090e1314 still in use: Unable to complete operation on network 958c96be-a46f-4112-a31e-9af1090e1314. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-51a4f05e-04a6-4c62-8b43-b5b7514ef136'] 2025-01-30 17:11:25,427 - WARNING - Deleting VN ctest-vn-92667310 failed..Will retry 2025-01-30 17:11:27,538 - DEBUG - Response for deleting network () 2025-01-30 17:11:27,538 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0be8dfbb-c235-4476-9e0b-ef3253aff532 2025-01-30 17:11:27,548 - DEBUG - Response Code: 404 2025-01-30 17:11:27,548 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-30 17:11:27,556 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db 2025-01-30 17:11:27,615 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6 2025-01-30 17:11:27,697 - INFO - Validated that VN ctest-vn-92667310 is not found in API Server 2025-01-30 17:11:27,709 - DEBUG - VN ctest-vn-92667310 is not present in Agent 10.0.0.12 2025-01-30 17:11:27,709 - INFO - Validated that VN ctest-vn-92667310 is not in any agent 2025-01-30 17:11:27,732 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92667310 info 2025-01-30 17:11:27,732 - INFO - Deleting VN ctest-vn-58447122 2025-01-30 17:11:27,849 - DEBUG - Response for deleting network () 2025-01-30 17:11:27,849 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fa8a12d-738d-4c71-baf0-c2d227b773fb 2025-01-30 17:11:27,855 - DEBUG - Response Code: 404 2025-01-30 17:11:27,855 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-30 17:11:27,865 - DEBUG - Requesting: http://10.0.0.12:8082/domain/79d5a745-3bfe-46c1-a927-a6a3748e71db 2025-01-30 17:11:27,923 - DEBUG - Requesting: http://10.0.0.12:8082/project/c70f34ca-bd8b-4b9e-b29d-1c220da595e6 2025-01-30 17:11:28,000 - INFO - Validated that VN ctest-vn-58447122 is not found in API Server 2025-01-30 17:11:28,014 - DEBUG - VN ctest-vn-58447122 is not present in Agent 10.0.0.12 2025-01-30 17:11:28,015 - INFO - Validated that VN ctest-vn-58447122 is not in any agent 2025-01-30 17:11:28,037 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58447122 info 2025-01-30 17:11:28,294 - DEBUG - No XMPP flaps were noticed during the test
2025-01-30 17:11:28,294 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-30 17:11:28,294 - INFO - -------------------------------------------------------------------------------- 2025-01-30 17:11:28,981 - INFO - Deleted project: ctest-TestBasicPolicy-63661305, ID : c70f34ca-bd8b-4b9e-b29d-1c220da595e6