2024-08-29 23:37:04,417 - INFO - Domain Default found not creating 2024-08-29 23:37:04,565 - INFO - Project ctest-TestBasicPolicy-10085516 not found, creating it 2024-08-29 23:37:05,025 - INFO - Created Project:ctest-TestBasicPolicy-10085516, ID : e1ada911-26ce-431c-b1b5-62795ca945aa 2024-08-29 23:37:06,496 - INFO - ================================================================================ 2024-08-29 23:37:06,496 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 23:37:06,496 - 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-08-29 23:37:06,753 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.10': '0'}} with 2024-08-29 23:37:06,753 - INFO - Initial checks done. Running the testcase now 2024-08-29 23:37:06,753 - INFO - 2024-08-29 23:37:07,323 - DEBUG - Response for create_network : {'network': {'id': '21f2c8dd-1374-463f-9986-463382283a26', 'name': 'ctest-vn-72340067', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-72340067'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 23:37:07,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '6276ba6a-c1c3-4ebb-8713-d2d15ca2b3ef', 'name': '', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'network_id': '21f2c8dd-1374-463f-9986-463382283a26', 'ip_version': 4, 'cidr': '91.161.24.64/26', 'allocation_pools': [{'start': '91.161.24.66', 'end': '91.161.24.126'}], 'gateway_ip': '91.161.24.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.161.24.66', 'tags': [], 'project_id': 'e1ada91126ce431cb1b562795ca945aa'}} 2024-08-29 23:37:07,527 - INFO - Created VN ctest-vn-72340067 2024-08-29 23:37:07,581 - DEBUG - VN ctest-vn-72340067 UUID is 21f2c8dd-1374-463f-9986-463382283a26 2024-08-29 23:37:08,084 - DEBUG - Response for create_network : {'network': {'id': '93b2cee8-99f2-47ab-8a71-e70dc7c0ac74', 'name': 'ctest-vn-14149813', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-14149813'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 23:37:08,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '70e3917d-1b98-4237-afa9-d68ecec73a74', 'name': '', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'network_id': '93b2cee8-99f2-47ab-8a71-e70dc7c0ac74', 'ip_version': 4, 'cidr': '67.199.174.192/26', 'allocation_pools': [{'start': '67.199.174.194', 'end': '67.199.174.254'}], 'gateway_ip': '67.199.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.199.174.194', 'tags': [], 'project_id': 'e1ada91126ce431cb1b562795ca945aa'}} 2024-08-29 23:37:08,279 - INFO - Created VN ctest-vn-14149813 2024-08-29 23:37:08,329 - DEBUG - VN ctest-vn-14149813 UUID is 93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 2024-08-29 23:37:08,444 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067, 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-10085516:ctest-vn-14149813, 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-08-29 23:37:08,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21f2c8dd-1374-463f-9986-463382283a26', 'name': 'ctest-vn-72340067', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6276ba6a-c1c3-4ebb-8713-d2d15ca2b3ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-72340067'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533']], 'subnet_ipam': [{'subnet_cidr': '91.161.24.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 23:37:08,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93b2cee8-99f2-47ab-8a71-e70dc7c0ac74', 'name': 'ctest-vn-14149813', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70e3917d-1b98-4237-afa9-d68ecec73a74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-14149813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533']], 'subnet_ipam': [{'subnet_cidr': '67.199.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 23:37:09,106 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-08-29 23:37:09,403 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-08-29 23:37:09,433 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e 2024-08-29 23:37:09,446 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa 2024-08-29 23:37:09,517 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26 2024-08-29 23:37:09,527 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26 2024-08-29 23:37:09,535 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216 2024-08-29 23:37:09,541 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216 2024-08-29 23:37:09,548 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cafde40f-bd90-40fc-ab20-a8b140f06d23 2024-08-29 23:37:09,553 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 23:37:09,553 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26 2024-08-29 23:37:09,561 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216 2024-08-29 23:37:09,572 - INFO - Verified VN network id 8 for VN 21f2c8dd-1374-463f-9986-463382283a26 2024-08-29 23:37:09,572 - INFO - Verifications in API Server for VN ctest-vn-72340067 passed 2024-08-29 23:37:09,572 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26 2024-08-29 23:37:09,580 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216 2024-08-29 23:37:09,586 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216 2024-08-29 23:37:09,593 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cafde40f-bd90-40fc-ab20-a8b140f06d23 2024-08-29 23:37:09,605 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10085516', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2446238399455315519', 'uuid-lslong': '11062606721723152934'}, 'enable': 'true', 'created': '2024-08-29T23:37:07', 'last-modified': '2024-08-29T23:37:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900208'} 2024-08-29 23:37:09,611 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 23:37:09,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72340067 passed 2024-08-29 23:37:09,611 - DEBUG - ====Verifying policy data for ctest-vn-72340067 in API_Server ====== 2024-08-29 23:37:09,611 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-08-29 23:37:09,617 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e 2024-08-29 23:37:09,628 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa 2024-08-29 23:37:09,696 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26 2024-08-29 23:37:09,705 - DEBUG - ==>Verifying data for policy with id: 55e76098-f5e4-4a53-a7d2-fdd66120fc36, fqn: ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533'] 2024-08-29 23:37:09,705 - INFO - VN ctest-vn-72340067 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 23:37:09,705 - DEBUG - Verifying the vn in opserver 2024-08-29 23:37:09,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067 virtual network link through opserver 10.0.0.22 2024-08-29 23:37:09,705 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-08-29 23:37:09,999 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-08-29 23:37:10,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067?flat'} 2024-08-29 23:37:10,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067 is found in opserver 2024-08-29 23:37:10,075 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 23:37:10,081 - DEBUG - VRF ids for VN ctest-vn-72340067: {} 2024-08-29 23:37:10,081 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-08-29 23:37:10,087 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e 2024-08-29 23:37:10,098 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa 2024-08-29 23:37:10,170 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 2024-08-29 23:37:10,181 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 2024-08-29 23:37:10,189 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948 2024-08-29 23:37:10,196 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948 2024-08-29 23:37:10,202 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/23545792-9edd-4e14-bf01-7401a3cb497a 2024-08-29 23:37:10,209 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 23:37:10,209 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 2024-08-29 23:37:10,217 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948 2024-08-29 23:37:10,230 - INFO - Verified VN network id 9 for VN 93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 2024-08-29 23:37:10,230 - INFO - Verifications in API Server for VN ctest-vn-14149813 passed 2024-08-29 23:37:10,230 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 2024-08-29 23:37:10,238 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948 2024-08-29 23:37:10,245 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948 2024-08-29 23:37:10,251 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/23545792-9edd-4e14-bf01-7401a3cb497a 2024-08-29 23:37:10,263 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10085516', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10642796367840429995', 'uuid-lslong': '9976008695974243444'}, 'enable': 'true', 'created': '2024-08-29T23:37:08', 'last-modified': '2024-08-29T23:37:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.322784'} 2024-08-29 23:37:10,270 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 23:37:10,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14149813 passed 2024-08-29 23:37:10,270 - DEBUG - ====Verifying policy data for ctest-vn-14149813 in API_Server ====== 2024-08-29 23:37:10,270 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-08-29 23:37:10,276 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e 2024-08-29 23:37:10,288 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa 2024-08-29 23:37:10,356 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 2024-08-29 23:37:10,364 - DEBUG - ==>Verifying data for policy with id: 55e76098-f5e4-4a53-a7d2-fdd66120fc36, fqn: ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533'] 2024-08-29 23:37:10,364 - INFO - VN ctest-vn-14149813 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 23:37:10,364 - DEBUG - Verifying the vn in opserver 2024-08-29 23:37:10,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813 virtual network link through opserver 10.0.0.22 2024-08-29 23:37:10,364 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-08-29 23:37:10,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813?flat'} 2024-08-29 23:37:10,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813 is found in opserver 2024-08-29 23:37:10,386 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 23:37:10,391 - DEBUG - VRF ids for VN ctest-vn-14149813: {} 2024-08-29 23:37:10,445 - DEBUG - Services list from nova: [, , ] 2024-08-29 23:37:11,445 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1819-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1819-1) 2024-08-29 23:37:14,007 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1819-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1819-1) 2024-08-29 23:37:14,007 - INFO - Waiting for VM ctest-TestBasicPolicy-10085516-75468196 to be up.. 2024-08-29 23:37:14,096 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 23:37:19,172 - DEBUG - VM is in ACTIVE state now 2024-08-29 23:37:19,172 - INFO - VM name : ctest-TestBasicPolicy-10085516-75468196 2024-08-29 23:37:19,251 - DEBUG - VM ctest-TestBasicPolicy-10085516-75468196 ID is 8a4abe2f-b375-4faf-9325-3280d4a88f99 2024-08-29 23:37:19,270 - DEBUG - VM ctest-TestBasicPolicy-10085516-75468196 launched on Node cn-jenkins-deploy-platform-ansible-os-1819-1 2024-08-29 23:37:19,344 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/8a4abe2f-b375-4faf-9325-3280d4a88f99 2024-08-29 23:37:19,353 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/791f3d33-b514-4554-bdfe-d943f13c1509 2024-08-29 23:37:22,619 - 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 1024ms') 2024-08-29 23:37:22,619 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10085516-75468196 failed! 2024-08-29 23:37:22,673 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067 is 91.161.24.65 and allocation pool is NOT set 2024-08-29 23:37:24,732 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.429 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.429/3.920/7.411/3.491 ms') 2024-08-29 23:37:24,732 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10085516-75468196 passed 2024-08-29 23:37:24,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 23:37:24,882 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10085516-75468196, IP 91.161.24.67, Port 22 2024-08-29 23:37:25,042 - DEBUG - VM ctest-TestBasicPolicy-10085516-75468196 is ready for SSH connections 2024-08-29 23:37:25,042 - INFO - Waiting for VM ctest-TestBasicPolicy-10085516-55005632 to be up.. 2024-08-29 23:37:25,126 - DEBUG - VM is in ACTIVE state now 2024-08-29 23:37:25,126 - INFO - VM name : ctest-TestBasicPolicy-10085516-55005632 2024-08-29 23:37:25,205 - DEBUG - VM ctest-TestBasicPolicy-10085516-55005632 ID is fcca667d-6faa-4e92-87b8-f22029b65b40 2024-08-29 23:37:25,205 - DEBUG - VM ctest-TestBasicPolicy-10085516-55005632 launched on Node cn-jenkins-deploy-platform-ansible-os-1819-1 2024-08-29 23:37:25,279 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/fcca667d-6faa-4e92-87b8-f22029b65b40 2024-08-29 23:37:25,287 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/9c0a414f-c664-467d-aa92-9870998bacd4 2024-08-29 23:37:26,526 - 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.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.481 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.481/1.588/2.695/1.107 ms') 2024-08-29 23:37:26,526 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10085516-55005632 passed 2024-08-29 23:37:26,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 23:37:26,674 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10085516-55005632, IP 67.199.174.195, Port 22 2024-08-29 23:37:26,829 - DEBUG - VM ctest-TestBasicPolicy-10085516-55005632 is ready for SSH connections 2024-08-29 23:37:26,829 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 23:37:26,830 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.199.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-08-29 23:37:26,830 - DEBUG - ping -s 56 -c 3 -W 1 67.199.174.195 2024-08-29 23:37:30,793 - DEBUG - PING 67.199.174.195 (67.199.174.195): 56 data bytes 64 bytes from 67.199.174.195: seq=0 ttl=63 time=3.142 ms 64 bytes from 67.199.174.195: seq=1 ttl=63 time=0.762 ms 64 bytes from 67.199.174.195: seq=2 ttl=63 time=0.769 ms --- 67.199.174.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.762/1.557/3.142 ms 2024-08-29 23:37:30,793 - INFO - Ping to IP 67.199.174.195 from VM ctest-TestBasicPolicy-10085516-75468196 passed 2024-08-29 23:37:30,969 - DEBUG - Policy Update Response {"network-policy": {"uuid": "55e76098-f5e4-4a53-a7d2-fdd66120fc36", "href": "http://10.0.0.22:8082/network-policy/55e76098-f5e4-4a53-a7d2-fdd66120fc36"}} 2024-08-29 23:37:30,969 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 23:37:30,969 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.199.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-08-29 23:37:30,970 - DEBUG - ping -s 56 -c 3 -W 1 67.199.174.195 2024-08-29 23:37:34,164 - DEBUG - PING 67.199.174.195 (67.199.174.195): 56 data bytes --- 67.199.174.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-29 23:37:34,164 - WARNING - Ping to IP 67.199.174.195 from VM ctest-TestBasicPolicy-10085516-75468196 failed 2024-08-29 23:37:34,164 - INFO - Deleting VM ctest-TestBasicPolicy-10085516-55005632 2024-08-29 23:37:34,227 - INFO - Deleting VM ctest-TestBasicPolicy-10085516-75468196 2024-08-29 23:37:34,611 - INFO - Deleted policy ctest-policy-allow-all-78112533 2024-08-29 23:37:34,611 - INFO - Deleting VN ctest-vn-14149813 2024-08-29 23:37:34,649 - DEBUG - VN 93b2cee8-99f2-47ab-8a71-e70dc7c0ac74 still in use: Unable to complete operation on network 93b2cee8-99f2-47ab-8a71-e70dc7c0ac74. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-743950a1-e901-4ee8-b9d5-471523863803'] 2024-08-29 23:37:34,649 - WARNING - Deleting VN ctest-vn-14149813 failed..Will retry 2024-08-29 23:37:36,754 - DEBUG - Response for deleting network () 2024-08-29 23:37:36,754 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948 2024-08-29 23:37:36,760 - DEBUG - Response Code: 404 2024-08-29 23:37:36,760 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-08-29 23:37:36,767 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e 2024-08-29 23:37:36,830 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa 2024-08-29 23:37:36,900 - INFO - Validated that VN ctest-vn-14149813 is not found in API Server 2024-08-29 23:37:36,911 - DEBUG - VN ctest-vn-14149813 is not present in Agent 10.0.0.22 2024-08-29 23:37:36,911 - INFO - Validated that VN ctest-vn-14149813 is not in any agent 2024-08-29 23:37:36,925 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14149813 info 2024-08-29 23:37:36,926 - INFO - Deleting VN ctest-vn-72340067 2024-08-29 23:37:37,038 - DEBUG - Response for deleting network () 2024-08-29 23:37:37,039 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216 2024-08-29 23:37:37,046 - DEBUG - Response Code: 404 2024-08-29 23:37:37,046 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-08-29 23:37:37,051 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e 2024-08-29 23:37:37,106 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa 2024-08-29 23:37:37,177 - INFO - Validated that VN ctest-vn-72340067 is not found in API Server 2024-08-29 23:37:37,188 - DEBUG - VN ctest-vn-72340067 is not present in Agent 10.0.0.22 2024-08-29 23:37:37,188 - INFO - Validated that VN ctest-vn-72340067 is not in any agent 2024-08-29 23:37:37,205 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72340067 info 2024-08-29 23:37:37,460 - DEBUG - No XMPP flaps were noticed during the test
2024-08-29 23:37:37,460 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-08-29 23:37:37,460 - INFO - -------------------------------------------------------------------------------- 2024-08-29 23:37:38,134 - INFO - Deleted project: ctest-TestBasicPolicy-10085516, ID : e1ada911-26ce-431c-b1b5-62795ca945aa