2024-09-11 06:55:32,306 - INFO - Domain Default found not creating 2024-09-11 06:55:32,467 - INFO - Project ctest-TestBasicPolicy-68337176 not found, creating it 2024-09-11 06:55:32,940 - INFO - Created Project:ctest-TestBasicPolicy-68337176, ID : f9845c44-1e22-462d-ac25-82e2b8d06c6a 2024-09-11 06:55:34,421 - INFO - ================================================================================ 2024-09-11 06:55:34,421 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-11 06:55:34,421 - 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-11 06:55:34,680 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.11': '0'}} with 2024-09-11 06:55:34,680 - INFO - Initial checks done. Running the testcase now 2024-09-11 06:55:34,680 - INFO - 2024-09-11 06:55:35,240 - DEBUG - Response for create_network : {'network': {'id': '4a8fee49-e575-4887-bbbc-f21cd6a79286', 'name': 'ctest-vn-57608856', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-57608856'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:55:35,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '3423d590-58c9-47ca-b870-334ad0527405', 'name': '', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'network_id': '4a8fee49-e575-4887-bbbc-f21cd6a79286', 'ip_version': 4, 'cidr': '211.85.108.0/26', 'allocation_pools': [{'start': '211.85.108.2', 'end': '211.85.108.62'}], 'gateway_ip': '211.85.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.85.108.2', 'tags': [], 'project_id': 'f9845c441e22462dac2582e2b8d06c6a'}} 2024-09-11 06:55:35,465 - INFO - Created VN ctest-vn-57608856 2024-09-11 06:55:35,522 - DEBUG - VN ctest-vn-57608856 UUID is 4a8fee49-e575-4887-bbbc-f21cd6a79286 2024-09-11 06:55:35,825 - DEBUG - Response for create_network : {'network': {'id': '70e03604-8141-42e8-8d99-6b89e210a66c', 'name': 'ctest-vn-69863985', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-69863985'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:55:36,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '3615e288-c26c-43e1-acba-a865e6e262b9', 'name': '', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'network_id': '70e03604-8141-42e8-8d99-6b89e210a66c', 'ip_version': 4, 'cidr': '151.78.0.0/26', 'allocation_pools': [{'start': '151.78.0.2', 'end': '151.78.0.62'}], 'gateway_ip': '151.78.0.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.78.0.2', 'tags': [], 'project_id': 'f9845c441e22462dac2582e2b8d06c6a'}} 2024-09-11 06:55:36,024 - INFO - Created VN ctest-vn-69863985 2024-09-11 06:55:36,074 - DEBUG - VN ctest-vn-69863985 UUID is 70e03604-8141-42e8-8d99-6b89e210a66c 2024-09-11 06:55:36,190 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856, 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-68337176:ctest-vn-69863985, 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-11 06:55:36,485 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a8fee49-e575-4887-bbbc-f21cd6a79286', 'name': 'ctest-vn-57608856', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3423d590-58c9-47ca-b870-334ad0527405'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-57608856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798']], 'subnet_ipam': [{'subnet_cidr': '211.85.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:55:36,783 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70e03604-8141-42e8-8d99-6b89e210a66c', 'name': 'ctest-vn-69863985', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3615e288-c26c-43e1-acba-a865e6e262b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-69863985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798']], 'subnet_ipam': [{'subnet_cidr': '151.78.0.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 06:55:36,934 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-11 06:55:37,381 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-11 06:55:37,422 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d 2024-09-11 06:55:37,436 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a 2024-09-11 06:55:37,506 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286 2024-09-11 06:55:37,516 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286 2024-09-11 06:55:37,524 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f 2024-09-11 06:55:37,531 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f 2024-09-11 06:55:37,537 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/049daa42-d7f0-4b20-b5d8-9c9d1c19cccf 2024-09-11 06:55:37,544 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 06:55:37,544 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286 2024-09-11 06:55:37,551 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f 2024-09-11 06:55:37,563 - INFO - Verified VN network id 8 for VN 4a8fee49-e575-4887-bbbc-f21cd6a79286 2024-09-11 06:55:37,563 - INFO - Verifications in API Server for VN ctest-vn-57608856 passed 2024-09-11 06:55:37,563 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286 2024-09-11 06:55:37,571 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f 2024-09-11 06:55:37,577 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f 2024-09-11 06:55:37,584 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/049daa42-d7f0-4b20-b5d8-9c9d1c19cccf 2024-09-11 06:55:37,596 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68337176', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5372774881625983111', 'uuid-lslong': '13527953586388439686'}, 'enable': 'true', 'created': '2024-09-11T06:55:35', 'last-modified': '2024-09-11T06:55:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.137563'} 2024-09-11 06:55:37,602 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 06:55:37,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57608856 passed 2024-09-11 06:55:37,602 - DEBUG - ====Verifying policy data for ctest-vn-57608856 in API_Server ====== 2024-09-11 06:55:37,603 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-11 06:55:37,608 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d 2024-09-11 06:55:37,619 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a 2024-09-11 06:55:37,687 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286 2024-09-11 06:55:37,695 - DEBUG - ==>Verifying data for policy with id: 60119647-a899-46e2-8371-d4de841f125f, fqn: ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798'] 2024-09-11 06:55:37,695 - INFO - VN ctest-vn-57608856 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 06:55:37,695 - DEBUG - Verifying the vn in opserver 2024-09-11 06:55:37,695 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856 virtual network link through opserver 10.0.0.36 2024-09-11 06:55:37,695 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-11 06:55:37,994 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-11 06:55:38,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856?flat'} 2024-09-11 06:55:38,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856 is found in opserver 2024-09-11 06:55:38,068 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 06:55:38,073 - DEBUG - VRF ids for VN ctest-vn-57608856: {} 2024-09-11 06:55:38,073 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-11 06:55:38,080 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d 2024-09-11 06:55:38,093 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a 2024-09-11 06:55:38,166 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c 2024-09-11 06:55:38,178 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c 2024-09-11 06:55:38,187 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da 2024-09-11 06:55:38,195 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da 2024-09-11 06:55:38,203 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/5bcd2e7c-9716-4ad8-b9c9-f7f0d0c6f3e0 2024-09-11 06:55:38,210 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 06:55:38,210 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c 2024-09-11 06:55:38,217 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da 2024-09-11 06:55:38,231 - INFO - Verified VN network id 9 for VN 70e03604-8141-42e8-8d99-6b89e210a66c 2024-09-11 06:55:38,231 - INFO - Verifications in API Server for VN ctest-vn-69863985 passed 2024-09-11 06:55:38,231 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c 2024-09-11 06:55:38,241 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da 2024-09-11 06:55:38,248 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da 2024-09-11 06:55:38,257 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/5bcd2e7c-9716-4ad8-b9c9-f7f0d0c6f3e0 2024-09-11 06:55:38,270 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68337176', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8133560320007422696', 'uuid-lslong': '10203304670732002924'}, 'enable': 'true', 'created': '2024-09-11T06:55:35', 'last-modified': '2024-09-11T06:55:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.557124'} 2024-09-11 06:55:38,276 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 06:55:38,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69863985 passed 2024-09-11 06:55:38,277 - DEBUG - ====Verifying policy data for ctest-vn-69863985 in API_Server ====== 2024-09-11 06:55:38,277 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-11 06:55:38,283 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d 2024-09-11 06:55:38,295 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a 2024-09-11 06:55:38,373 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c 2024-09-11 06:55:38,382 - DEBUG - ==>Verifying data for policy with id: 60119647-a899-46e2-8371-d4de841f125f, fqn: ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798'] 2024-09-11 06:55:38,382 - INFO - VN ctest-vn-69863985 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 06:55:38,382 - DEBUG - Verifying the vn in opserver 2024-09-11 06:55:38,382 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985 virtual network link through opserver 10.0.0.36 2024-09-11 06:55:38,382 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-11 06:55:38,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985?flat'} 2024-09-11 06:55:38,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985 is found in opserver 2024-09-11 06:55:38,405 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 06:55:38,410 - DEBUG - VRF ids for VN ctest-vn-69863985: {} 2024-09-11 06:55:38,467 - DEBUG - Services list from nova: [, , ] 2024-09-11 06:55:39,495 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1891-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1891-1) 2024-09-11 06:55:40,773 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1891-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1891-1) 2024-09-11 06:55:40,773 - INFO - Waiting for VM ctest-TestBasicPolicy-68337176-14399117 to be up.. 2024-09-11 06:55:40,864 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 06:55:45,947 - DEBUG - VM is in ACTIVE state now 2024-09-11 06:55:45,947 - INFO - VM name : ctest-TestBasicPolicy-68337176-14399117 2024-09-11 06:55:46,028 - DEBUG - VM ctest-TestBasicPolicy-68337176-14399117 ID is 8713bd0f-b4e5-4746-8e0a-448c7b1f967a 2024-09-11 06:55:46,046 - DEBUG - VM ctest-TestBasicPolicy-68337176-14399117 launched on Node cn-jenkins-deploy-platform-ansible-os-1891-1 2024-09-11 06:55:46,126 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/8713bd0f-b4e5-4746-8e0a-448c7b1f967a 2024-09-11 06:55:46,136 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/84cb2c1a-e5d7-483a-b7ad-4780752ac851 2024-09-11 06:55:49,408 - 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 1027ms') 2024-09-11 06:55:49,408 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68337176-14399117 failed! 2024-09-11 06:55:49,466 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856 is 211.85.108.1 and allocation pool is NOT set 2024-09-11 06:55:51,525 - 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.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.432 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.432/1.872/3.312/1.440 ms') 2024-09-11 06:55:51,525 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68337176-14399117 passed 2024-09-11 06:55:51,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:55:51,674 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68337176-14399117, IP 211.85.108.3, Port 22 2024-09-11 06:55:51,829 - DEBUG - VM ctest-TestBasicPolicy-68337176-14399117 is ready for SSH connections 2024-09-11 06:55:51,829 - INFO - Waiting for VM ctest-TestBasicPolicy-68337176-50848181 to be up.. 2024-09-11 06:55:51,910 - DEBUG - VM is in ACTIVE state now 2024-09-11 06:55:51,910 - INFO - VM name : ctest-TestBasicPolicy-68337176-50848181 2024-09-11 06:55:51,994 - DEBUG - VM ctest-TestBasicPolicy-68337176-50848181 ID is a85bc401-ba52-4c2c-b27a-3726a367baaf 2024-09-11 06:55:51,994 - DEBUG - VM ctest-TestBasicPolicy-68337176-50848181 launched on Node cn-jenkins-deploy-platform-ansible-os-1891-1 2024-09-11 06:55:52,078 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/a85bc401-ba52-4c2c-b27a-3726a367baaf 2024-09-11 06:55:52,088 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/5602a980-e4e2-4e7a-8436-de07ea91bd7f 2024-09-11 06:55:53,330 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.428/1.675/2.922/1.247 ms') 2024-09-11 06:55:53,330 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68337176-50848181 passed 2024-09-11 06:55:53,482 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:55:53,482 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68337176-50848181, IP 151.78.0.3, Port 22 2024-09-11 06:55:53,638 - DEBUG - VM ctest-TestBasicPolicy-68337176-50848181 is ready for SSH connections 2024-09-11 06:55:53,638 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:55:53,638 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.78.0.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-11 06:55:53,638 - DEBUG - ping -s 56 -c 3 -W 1 151.78.0.3 2024-09-11 06:55:57,615 - DEBUG - PING 151.78.0.3 (151.78.0.3): 56 data bytes 64 bytes from 151.78.0.3: seq=0 ttl=63 time=3.293 ms 64 bytes from 151.78.0.3: seq=1 ttl=63 time=0.744 ms 64 bytes from 151.78.0.3: seq=2 ttl=63 time=0.854 ms --- 151.78.0.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.744/1.630/3.293 ms 2024-09-11 06:55:57,616 - INFO - Ping to IP 151.78.0.3 from VM ctest-TestBasicPolicy-68337176-14399117 passed 2024-09-11 06:55:57,789 - DEBUG - Policy Update Response {"network-policy": {"uuid": "60119647-a899-46e2-8371-d4de841f125f", "href": "http://10.0.0.36:8082/network-policy/60119647-a899-46e2-8371-d4de841f125f"}} 2024-09-11 06:55:57,789 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 06:55:57,790 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.78.0.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-11 06:55:57,790 - DEBUG - ping -s 56 -c 3 -W 1 151.78.0.3 2024-09-11 06:56:01,061 - DEBUG - PING 151.78.0.3 (151.78.0.3): 56 data bytes 64 bytes from 151.78.0.3: seq=0 ttl=63 time=1.699 ms --- 151.78.0.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.699/1.699/1.699 ms 2024-09-11 06:56:01,061 - WARNING - Ping to IP 151.78.0.3 from VM ctest-TestBasicPolicy-68337176-14399117 failed 2024-09-11 06:56:01,061 - INFO - Deleting VM ctest-TestBasicPolicy-68337176-50848181 2024-09-11 06:56:01,127 - INFO - Deleting VM ctest-TestBasicPolicy-68337176-14399117 2024-09-11 06:56:01,543 - INFO - Deleted policy ctest-policy-allow-all-30770798 2024-09-11 06:56:01,543 - INFO - Deleting VN ctest-vn-69863985 2024-09-11 06:56:01,589 - DEBUG - VN 70e03604-8141-42e8-8d99-6b89e210a66c still in use: Unable to complete operation on network 70e03604-8141-42e8-8d99-6b89e210a66c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fd57b70d-082e-4ca2-a11c-6ae5a8424389'] 2024-09-11 06:56:01,589 - WARNING - Deleting VN ctest-vn-69863985 failed..Will retry 2024-09-11 06:56:03,705 - DEBUG - Response for deleting network () 2024-09-11 06:56:03,705 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da 2024-09-11 06:56:03,711 - DEBUG - Response Code: 404 2024-09-11 06:56:03,712 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-11 06:56:03,722 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d 2024-09-11 06:56:03,775 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a 2024-09-11 06:56:03,851 - INFO - Validated that VN ctest-vn-69863985 is not found in API Server 2024-09-11 06:56:03,863 - DEBUG - VN ctest-vn-69863985 is not present in Agent 10.0.0.36 2024-09-11 06:56:03,863 - INFO - Validated that VN ctest-vn-69863985 is not in any agent 2024-09-11 06:56:03,882 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69863985 info 2024-09-11 06:56:03,882 - INFO - Deleting VN ctest-vn-57608856 2024-09-11 06:56:03,998 - DEBUG - Response for deleting network () 2024-09-11 06:56:03,999 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f 2024-09-11 06:56:04,006 - DEBUG - Response Code: 404 2024-09-11 06:56:04,007 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-11 06:56:04,016 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d 2024-09-11 06:56:04,075 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a 2024-09-11 06:56:04,153 - INFO - Validated that VN ctest-vn-57608856 is not found in API Server 2024-09-11 06:56:04,165 - DEBUG - VN ctest-vn-57608856 is not present in Agent 10.0.0.36 2024-09-11 06:56:04,165 - INFO - Validated that VN ctest-vn-57608856 is not in any agent 2024-09-11 06:56:04,184 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57608856 info 2024-09-11 06:56:04,439 - DEBUG - No XMPP flaps were noticed during the test
2024-09-11 06:56:04,439 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-11 06:56:04,439 - INFO - -------------------------------------------------------------------------------- 2024-09-11 06:56:05,124 - INFO - Deleted project: ctest-TestBasicPolicy-68337176, ID : f9845c44-1e22-462d-ac25-82e2b8d06c6a