2024-09-11 16:07:21,275 - INFO - Domain Default found not creating 2024-09-11 16:07:21,444 - INFO - Project ctest-TestBasicPolicy-00425311 not found, creating it 2024-09-11 16:07:21,936 - INFO - Created Project:ctest-TestBasicPolicy-00425311, ID : f85e9924-2257-4e2a-8181-6c52bf92ae08 2024-09-11 16:07:23,521 - INFO - ================================================================================ 2024-09-11 16:07:23,521 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-11 16:07:23,521 - 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 16:07:23,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2024-09-11 16:07:23,781 - INFO - Initial checks done. Running the testcase now 2024-09-11 16:07:23,781 - INFO - 2024-09-11 16:07:24,386 - DEBUG - Response for create_network : {'network': {'id': '88f0cbd9-15d4-4568-ba16-0ffa4c89de86', 'name': 'ctest-vn-86331407', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-86331407'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:07:24,548 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa1bf07e-3c46-4b0b-9f68-2bdcf2388bb2', 'name': '', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'network_id': '88f0cbd9-15d4-4568-ba16-0ffa4c89de86', 'ip_version': 4, 'cidr': '115.213.47.192/26', 'allocation_pools': [{'start': '115.213.47.194', 'end': '115.213.47.254'}], 'gateway_ip': '115.213.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.213.47.194', 'tags': [], 'project_id': 'f85e992422574e2a81816c52bf92ae08'}} 2024-09-11 16:07:24,569 - INFO - Created VN ctest-vn-86331407 2024-09-11 16:07:24,624 - DEBUG - VN ctest-vn-86331407 UUID is 88f0cbd9-15d4-4568-ba16-0ffa4c89de86 2024-09-11 16:07:24,981 - DEBUG - Response for create_network : {'network': {'id': '430341af-970f-48d3-bf4a-c2e37fd8a34e', 'name': 'ctest-vn-00044044', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-00044044'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:07:25,182 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2bbcc46-baa9-4c66-9fe6-bd38fa820c3a', 'name': '', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'network_id': '430341af-970f-48d3-bf4a-c2e37fd8a34e', 'ip_version': 4, 'cidr': '91.45.193.64/26', 'allocation_pools': [{'start': '91.45.193.66', 'end': '91.45.193.126'}], 'gateway_ip': '91.45.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.45.193.66', 'tags': [], 'project_id': 'f85e992422574e2a81816c52bf92ae08'}} 2024-09-11 16:07:25,207 - INFO - Created VN ctest-vn-00044044 2024-09-11 16:07:25,268 - DEBUG - VN ctest-vn-00044044 UUID is 430341af-970f-48d3-bf4a-c2e37fd8a34e 2024-09-11 16:07:25,403 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407, 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-00425311:ctest-vn-00044044, 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 16:07:25,752 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88f0cbd9-15d4-4568-ba16-0ffa4c89de86', 'name': 'ctest-vn-86331407', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa1bf07e-3c46-4b0b-9f68-2bdcf2388bb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-86331407'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222']], 'subnet_ipam': [{'subnet_cidr': '115.213.47.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:07:26,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '430341af-970f-48d3-bf4a-c2e37fd8a34e', 'name': 'ctest-vn-00044044', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2bbcc46-baa9-4c66-9fe6-bd38fa820c3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-00044044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222']], 'subnet_ipam': [{'subnet_cidr': '91.45.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:07:26,184 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-09-11 16:07:26,503 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-09-11 16:07:26,535 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790 2024-09-11 16:07:26,551 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08 2024-09-11 16:07:26,633 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86 2024-09-11 16:07:26,653 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86 2024-09-11 16:07:26,668 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616 2024-09-11 16:07:26,678 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616 2024-09-11 16:07:26,688 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/010ba868-e35a-418d-9121-4d5e5fd16068 2024-09-11 16:07:26,696 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 16:07:26,696 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86 2024-09-11 16:07:26,711 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616 2024-09-11 16:07:26,736 - INFO - Verified VN network id 8 for VN 88f0cbd9-15d4-4568-ba16-0ffa4c89de86 2024-09-11 16:07:26,736 - INFO - Verifications in API Server for VN ctest-vn-86331407 passed 2024-09-11 16:07:26,736 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86 2024-09-11 16:07:26,753 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616 2024-09-11 16:07:26,763 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616 2024-09-11 16:07:26,773 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/010ba868-e35a-418d-9121-4d5e5fd16068 2024-09-11 16:07:26,787 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00425311', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9867610916803331432', 'uuid-lslong': '13408922508242574982'}, 'enable': 'true', 'created': '2024-09-11T16:07:24', 'last-modified': '2024-09-11T16:07:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068706'} 2024-09-11 16:07:26,795 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 16:07:26,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86331407 passed 2024-09-11 16:07:26,795 - DEBUG - ====Verifying policy data for ctest-vn-86331407 in API_Server ====== 2024-09-11 16:07:26,795 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-09-11 16:07:26,802 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790 2024-09-11 16:07:26,816 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08 2024-09-11 16:07:26,891 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86 2024-09-11 16:07:26,906 - DEBUG - ==>Verifying data for policy with id: 26121608-4652-4837-ae81-0361925d213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222'] 2024-09-11 16:07:26,906 - INFO - VN ctest-vn-86331407 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 16:07:26,906 - DEBUG - Verifying the vn in opserver 2024-09-11 16:07:26,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407 virtual network link through opserver 10.0.0.27 2024-09-11 16:07:26,906 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-09-11 16:07:27,208 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-09-11 16:07:27,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407?flat'} 2024-09-11 16:07:27,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407 is found in opserver 2024-09-11 16:07:27,284 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 16:07:27,289 - DEBUG - VRF ids for VN ctest-vn-86331407: {} 2024-09-11 16:07:27,289 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-09-11 16:07:27,295 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790 2024-09-11 16:07:27,309 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08 2024-09-11 16:07:27,395 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e 2024-09-11 16:07:27,412 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e 2024-09-11 16:07:27,427 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8 2024-09-11 16:07:27,437 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8 2024-09-11 16:07:27,446 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55da88a3-0a2d-45c0-836b-288307fc6ddf 2024-09-11 16:07:27,453 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 16:07:27,454 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e 2024-09-11 16:07:27,469 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8 2024-09-11 16:07:27,491 - INFO - Verified VN network id 9 for VN 430341af-970f-48d3-bf4a-c2e37fd8a34e 2024-09-11 16:07:27,491 - INFO - Verifications in API Server for VN ctest-vn-00044044 passed 2024-09-11 16:07:27,491 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e 2024-09-11 16:07:27,511 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8 2024-09-11 16:07:27,523 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8 2024-09-11 16:07:27,533 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55da88a3-0a2d-45c0-836b-288307fc6ddf 2024-09-11 16:07:27,550 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00425311', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4828775447880747219', 'uuid-lslong': '13784043891879093070'}, 'enable': 'true', 'created': '2024-09-11T16:07:24', 'last-modified': '2024-09-11T16:07:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544112'} 2024-09-11 16:07:27,556 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 16:07:27,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00044044 passed 2024-09-11 16:07:27,557 - DEBUG - ====Verifying policy data for ctest-vn-00044044 in API_Server ====== 2024-09-11 16:07:27,557 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-09-11 16:07:27,564 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790 2024-09-11 16:07:27,577 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08 2024-09-11 16:07:27,662 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e 2024-09-11 16:07:27,678 - DEBUG - ==>Verifying data for policy with id: 26121608-4652-4837-ae81-0361925d213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222'] 2024-09-11 16:07:27,678 - INFO - VN ctest-vn-00044044 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 16:07:27,678 - DEBUG - Verifying the vn in opserver 2024-09-11 16:07:27,678 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044 virtual network link through opserver 10.0.0.27 2024-09-11 16:07:27,678 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-09-11 16:07:27,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044?flat'} 2024-09-11 16:07:27,690 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044 is found in opserver 2024-09-11 16:07:27,701 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 16:07:27,707 - DEBUG - VRF ids for VN ctest-vn-00044044: {} 2024-09-11 16:07:27,770 - DEBUG - Services list from nova: [, , ] 2024-09-11 16:07:28,829 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1898-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1898-1) 2024-09-11 16:07:30,245 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1898-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1898-1) 2024-09-11 16:07:30,245 - INFO - Waiting for VM ctest-TestBasicPolicy-00425311-18360849 to be up.. 2024-09-11 16:07:30,342 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 16:07:35,435 - DEBUG - VM is in ACTIVE state now 2024-09-11 16:07:35,435 - INFO - VM name : ctest-TestBasicPolicy-00425311-18360849 2024-09-11 16:07:35,524 - DEBUG - VM ctest-TestBasicPolicy-00425311-18360849 ID is 12af4311-5c17-42b0-a924-8b6f372c52c9 2024-09-11 16:07:35,544 - DEBUG - VM ctest-TestBasicPolicy-00425311-18360849 launched on Node cn-jenkins-deploy-platform-ansible-os-1898-1 2024-09-11 16:07:35,660 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/12af4311-5c17-42b0-a924-8b6f372c52c9 2024-09-11 16:07:35,671 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/24345ce9-e0f5-464a-8a08-9f49a9f33316 2024-09-11 16:07:38,939 - 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 1011ms') 2024-09-11 16:07:38,939 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00425311-18360849 failed! 2024-09-11 16:07:39,000 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407 is 115.213.47.193 and allocation pool is NOT set 2024-09-11 16:07:41,067 - 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=6.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.550 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.550/3.617/6.685/3.067 ms') 2024-09-11 16:07:41,067 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00425311-18360849 passed 2024-09-11 16:07:41,229 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:07:41,229 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00425311-18360849, IP 115.213.47.195, Port 22 2024-09-11 16:07:41,384 - DEBUG - VM ctest-TestBasicPolicy-00425311-18360849 is ready for SSH connections 2024-09-11 16:07:41,384 - INFO - Waiting for VM ctest-TestBasicPolicy-00425311-33571988 to be up.. 2024-09-11 16:07:41,473 - DEBUG - VM is in ACTIVE state now 2024-09-11 16:07:41,473 - INFO - VM name : ctest-TestBasicPolicy-00425311-33571988 2024-09-11 16:07:41,562 - DEBUG - VM ctest-TestBasicPolicy-00425311-33571988 ID is a6e108d3-0335-437c-966b-83d2300a1c63 2024-09-11 16:07:41,562 - DEBUG - VM ctest-TestBasicPolicy-00425311-33571988 launched on Node cn-jenkins-deploy-platform-ansible-os-1898-1 2024-09-11 16:07:41,653 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a6e108d3-0335-437c-966b-83d2300a1c63 2024-09-11 16:07:41,664 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/538b4ea3-a63e-471d-88bd-117f8f7fc3c0 2024-09-11 16:07:42,916 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 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 = 0.507/1.731/2.956/1.224 ms') 2024-09-11 16:07:42,917 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00425311-33571988 passed 2024-09-11 16:07:43,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:07:43,081 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00425311-33571988, IP 91.45.193.67, Port 22 2024-09-11 16:07:43,248 - DEBUG - VM ctest-TestBasicPolicy-00425311-33571988 is ready for SSH connections 2024-09-11 16:07:43,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:07:43,248 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.45.193.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-11 16:07:43,249 - DEBUG - ping -s 56 -c 3 -W 1 91.45.193.67 2024-09-11 16:07:46,954 - DEBUG - PING 91.45.193.67 (91.45.193.67): 56 data bytes 64 bytes from 91.45.193.67: seq=0 ttl=63 time=3.602 ms 64 bytes from 91.45.193.67: seq=1 ttl=63 time=1.058 ms 64 bytes from 91.45.193.67: seq=2 ttl=63 time=1.768 ms --- 91.45.193.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.058/2.142/3.602 ms 2024-09-11 16:07:46,954 - INFO - Ping to IP 91.45.193.67 from VM ctest-TestBasicPolicy-00425311-18360849 passed 2024-09-11 16:07:47,156 - DEBUG - Policy Update Response {"network-policy": {"uuid": "26121608-4652-4837-ae81-0361925d213f", "href": "http://10.0.0.27:8082/network-policy/26121608-4652-4837-ae81-0361925d213f"}} 2024-09-11 16:07:47,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:07:47,156 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.45.193.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-11 16:07:47,157 - DEBUG - ping -s 56 -c 3 -W 1 91.45.193.67 2024-09-11 16:07:50,406 - DEBUG - PING 91.45.193.67 (91.45.193.67): 56 data bytes 64 bytes from 91.45.193.67: seq=0 ttl=63 time=2.175 ms --- 91.45.193.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.175/2.175/2.175 ms 2024-09-11 16:07:50,406 - WARNING - Ping to IP 91.45.193.67 from VM ctest-TestBasicPolicy-00425311-18360849 failed 2024-09-11 16:07:50,406 - INFO - Deleting VM ctest-TestBasicPolicy-00425311-33571988 2024-09-11 16:07:50,532 - INFO - Deleting VM ctest-TestBasicPolicy-00425311-18360849 2024-09-11 16:07:51,002 - INFO - Deleted policy ctest-policy-allow-all-65036222 2024-09-11 16:07:51,002 - INFO - Deleting VN ctest-vn-00044044 2024-09-11 16:07:51,050 - DEBUG - VN 430341af-970f-48d3-bf4a-c2e37fd8a34e still in use: Unable to complete operation on network 430341af-970f-48d3-bf4a-c2e37fd8a34e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0598b88b-00e7-439d-a611-259d154755f2'] 2024-09-11 16:07:51,050 - WARNING - Deleting VN ctest-vn-00044044 failed..Will retry 2024-09-11 16:07:53,164 - DEBUG - Response for deleting network () 2024-09-11 16:07:53,164 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8 2024-09-11 16:07:53,171 - DEBUG - Response Code: 404 2024-09-11 16:07:53,171 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-09-11 16:07:53,180 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790 2024-09-11 16:07:53,244 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08 2024-09-11 16:07:53,330 - INFO - Validated that VN ctest-vn-00044044 is not found in API Server 2024-09-11 16:07:53,341 - DEBUG - VN ctest-vn-00044044 is not present in Agent 10.0.0.27 2024-09-11 16:07:53,342 - INFO - Validated that VN ctest-vn-00044044 is not in any agent 2024-09-11 16:07:53,361 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-00044044 info 2024-09-11 16:07:53,361 - INFO - Deleting VN ctest-vn-86331407 2024-09-11 16:07:53,473 - DEBUG - Response for deleting network () 2024-09-11 16:07:53,473 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616 2024-09-11 16:07:53,479 - DEBUG - Response Code: 404 2024-09-11 16:07:53,479 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-09-11 16:07:53,485 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790 2024-09-11 16:07:53,543 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08 2024-09-11 16:07:53,621 - INFO - Validated that VN ctest-vn-86331407 is not found in API Server 2024-09-11 16:07:53,632 - DEBUG - VN ctest-vn-86331407 is not present in Agent 10.0.0.27 2024-09-11 16:07:53,632 - INFO - Validated that VN ctest-vn-86331407 is not in any agent 2024-09-11 16:07:53,649 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86331407 info 2024-09-11 16:07:53,909 - DEBUG - No XMPP flaps were noticed during the test
2024-09-11 16:07:53,909 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-11 16:07:53,909 - INFO - -------------------------------------------------------------------------------- 2024-09-11 16:07:54,643 - INFO - Deleted project: ctest-TestBasicPolicy-00425311, ID : f85e9924-2257-4e2a-8181-6c52bf92ae08