2024-10-28 02:20:30,768 - INFO - Domain Default found not creating 2024-10-28 02:20:30,970 - INFO - Project ctest-TestBasicPolicy-01294734 not found, creating it 2024-10-28 02:20:31,487 - INFO - Created Project:ctest-TestBasicPolicy-01294734, ID : 36d13037-5f67-418e-82c3-807c01dd76b5 2024-10-28 02:20:33,247 - INFO - ================================================================================ 2024-10-28 02:20:33,247 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 02:20:33,247 - 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-10-28 02:20:33,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.13': '0'}} with 2024-10-28 02:20:33,522 - INFO - Initial checks done. Running the testcase now 2024-10-28 02:20:33,522 - INFO - 2024-10-28 02:20:34,166 - DEBUG - Response for create_network : {'network': {'id': 'd69e702c-a665-4639-8a9f-8803fb83516a', 'name': 'ctest-vn-28387409', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-28387409'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 02:20:34,339 - DEBUG - Response for create_subnet : {'subnet': {'id': '69a4edc4-fe35-43bb-96ce-0198ac34d4c5', 'name': '', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'network_id': 'd69e702c-a665-4639-8a9f-8803fb83516a', 'ip_version': 4, 'cidr': '129.44.78.0/26', 'allocation_pools': [{'start': '129.44.78.2', 'end': '129.44.78.62'}], 'gateway_ip': '129.44.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.44.78.2', 'tags': [], 'project_id': '36d130375f67418e82c3807c01dd76b5'}} 2024-10-28 02:20:34,362 - INFO - Created VN ctest-vn-28387409 2024-10-28 02:20:34,416 - DEBUG - VN ctest-vn-28387409 UUID is d69e702c-a665-4639-8a9f-8803fb83516a 2024-10-28 02:20:34,756 - DEBUG - Response for create_network : {'network': {'id': '82ff9f38-fe89-4f45-ab4d-07eb8f43370d', 'name': 'ctest-vn-82277318', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-82277318'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 02:20:34,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc26a80c-ee0e-4ba2-bf82-41a225a1bf15', 'name': '', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'network_id': '82ff9f38-fe89-4f45-ab4d-07eb8f43370d', 'ip_version': 4, 'cidr': '182.119.253.64/26', 'allocation_pools': [{'start': '182.119.253.66', 'end': '182.119.253.126'}], 'gateway_ip': '182.119.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.119.253.66', 'tags': [], 'project_id': '36d130375f67418e82c3807c01dd76b5'}} 2024-10-28 02:20:35,018 - INFO - Created VN ctest-vn-82277318 2024-10-28 02:20:35,072 - DEBUG - VN ctest-vn-82277318 UUID is 82ff9f38-fe89-4f45-ab4d-07eb8f43370d 2024-10-28 02:20:35,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409, 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-01294734:ctest-vn-82277318, 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-10-28 02:20:35,570 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd69e702c-a665-4639-8a9f-8803fb83516a', 'name': 'ctest-vn-28387409', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69a4edc4-fe35-43bb-96ce-0198ac34d4c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-28387409'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112']], 'subnet_ipam': [{'subnet_cidr': '129.44.78.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 02:20:35,902 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82ff9f38-fe89-4f45-ab4d-07eb8f43370d', 'name': 'ctest-vn-82277318', 'tenant_id': '36d130375f67418e82c3807c01dd76b5', 'project_id': '36d130375f67418e82c3807c01dd76b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc26a80c-ee0e-4ba2-bf82-41a225a1bf15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-vn-82277318'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112']], 'subnet_ipam': [{'subnet_cidr': '182.119.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 02:20:36,068 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 02:20:36,551 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 02:20:36,600 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f 2024-10-28 02:20:36,622 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5 2024-10-28 02:20:36,702 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a 2024-10-28 02:20:36,715 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a 2024-10-28 02:20:36,727 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2 2024-10-28 02:20:36,736 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2 2024-10-28 02:20:36,744 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a71e256e-bbbc-49ae-b669-90ddc8a6c375 2024-10-28 02:20:36,752 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 02:20:36,752 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a 2024-10-28 02:20:36,763 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2 2024-10-28 02:20:36,781 - INFO - Verified VN network id 8 for VN d69e702c-a665-4639-8a9f-8803fb83516a 2024-10-28 02:20:36,781 - INFO - Verifications in API Server for VN ctest-vn-28387409 passed 2024-10-28 02:20:36,782 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a 2024-10-28 02:20:36,793 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2 2024-10-28 02:20:36,803 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2 2024-10-28 02:20:36,812 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a71e256e-bbbc-49ae-b669-90ddc8a6c375 2024-10-28 02:20:36,829 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01294734', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15464921507509388857', 'uuid-lslong': '9988852049217016170'}, 'enable': 'true', 'created': '2024-10-28T02:20:34', 'last-modified': '2024-10-28T02:20:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.297216'} 2024-10-28 02:20:36,836 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 02:20:36,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28387409 passed 2024-10-28 02:20:36,837 - DEBUG - ====Verifying policy data for ctest-vn-28387409 in API_Server ====== 2024-10-28 02:20:36,837 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 02:20:36,845 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f 2024-10-28 02:20:36,863 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5 2024-10-28 02:20:36,941 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d69e702c-a665-4639-8a9f-8803fb83516a 2024-10-28 02:20:36,953 - DEBUG - ==>Verifying data for policy with id: ca149106-8c79-49fc-a7f2-9a483c7076a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112'] 2024-10-28 02:20:36,954 - INFO - VN ctest-vn-28387409 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 02:20:36,954 - DEBUG - Verifying the vn in opserver 2024-10-28 02:20:36,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409 virtual network link through opserver 10.0.0.42 2024-10-28 02:20:36,954 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-28 02:20:37,295 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-28 02:20:37,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409?flat'} 2024-10-28 02:20:37,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409 is found in opserver 2024-10-28 02:20:37,380 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 02:20:37,387 - DEBUG - VRF ids for VN ctest-vn-28387409: {} 2024-10-28 02:20:37,387 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 02:20:37,396 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f 2024-10-28 02:20:37,411 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5 2024-10-28 02:20:37,498 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d 2024-10-28 02:20:37,513 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d 2024-10-28 02:20:37,526 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143 2024-10-28 02:20:37,536 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143 2024-10-28 02:20:37,544 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ae34dd49-e073-48df-8d5f-7d1af764f526 2024-10-28 02:20:37,552 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 02:20:37,552 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d 2024-10-28 02:20:37,566 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143 2024-10-28 02:20:37,585 - INFO - Verified VN network id 9 for VN 82ff9f38-fe89-4f45-ab4d-07eb8f43370d 2024-10-28 02:20:37,585 - INFO - Verifications in API Server for VN ctest-vn-82277318 passed 2024-10-28 02:20:37,585 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d 2024-10-28 02:20:37,598 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143 2024-10-28 02:20:37,607 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143 2024-10-28 02:20:37,616 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ae34dd49-e073-48df-8d5f-7d1af764f526 2024-10-28 02:20:37,631 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01294734', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9439438411129245509', 'uuid-lslong': '12343530861994653453'}, 'enable': 'true', 'created': '2024-10-28T02:20:34', 'last-modified': '2024-10-28T02:20:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.807184'} 2024-10-28 02:20:37,638 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 02:20:37,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82277318 passed 2024-10-28 02:20:37,639 - DEBUG - ====Verifying policy data for ctest-vn-82277318 in API_Server ====== 2024-10-28 02:20:37,639 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 02:20:37,647 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f 2024-10-28 02:20:37,664 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5 2024-10-28 02:20:37,741 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/82ff9f38-fe89-4f45-ab4d-07eb8f43370d 2024-10-28 02:20:37,751 - DEBUG - ==>Verifying data for policy with id: ca149106-8c79-49fc-a7f2-9a483c7076a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-01294734', 'ctest-policy-allow-all-25357112'] 2024-10-28 02:20:37,751 - INFO - VN ctest-vn-82277318 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 02:20:37,752 - DEBUG - Verifying the vn in opserver 2024-10-28 02:20:37,752 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318 virtual network link through opserver 10.0.0.42 2024-10-28 02:20:37,752 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-28 02:20:37,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318?flat'} 2024-10-28 02:20:37,767 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-82277318 is found in opserver 2024-10-28 02:20:37,780 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 02:20:37,786 - DEBUG - VRF ids for VN ctest-vn-82277318: {} 2024-10-28 02:20:37,855 - DEBUG - Services list from nova: [, , ] 2024-10-28 02:20:39,102 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2156-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2156-1) 2024-10-28 02:20:40,632 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2156-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2156-1) 2024-10-28 02:20:40,633 - INFO - Waiting for VM ctest-TestBasicPolicy-01294734-83969803 to be up.. 2024-10-28 02:20:40,754 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 02:20:45,869 - DEBUG - VM is in ACTIVE state now 2024-10-28 02:20:45,869 - INFO - VM name : ctest-TestBasicPolicy-01294734-83969803 2024-10-28 02:20:45,966 - DEBUG - VM ctest-TestBasicPolicy-01294734-83969803 ID is 5833afbf-34b5-43ee-a052-f054a1fe004b 2024-10-28 02:20:45,998 - DEBUG - VM ctest-TestBasicPolicy-01294734-83969803 launched on Node cn-jenkins-deploy-platform-ansible-os-2156-1 2024-10-28 02:20:46,098 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/5833afbf-34b5-43ee-a052-f054a1fe004b 2024-10-28 02:20:46,112 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/9321d660-beee-4a14-b68e-b0e36317c9dd 2024-10-28 02:20:49,388 - 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 1014ms') 2024-10-28 02:20:49,388 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01294734-83969803 failed! 2024-10-28 02:20:49,448 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-01294734:ctest-vn-28387409 is 129.44.78.1 and allocation pool is NOT set 2024-10-28 02:20:51,515 - 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=16.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.32 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.317/10.003/16.689/6.686 ms') 2024-10-28 02:20:51,516 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01294734-83969803 passed 2024-10-28 02:20:51,668 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 02:20:51,668 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01294734-83969803, IP 129.44.78.3, Port 22 2024-10-28 02:20:51,734 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-28 02:20:51,839 - DEBUG - VM ctest-TestBasicPolicy-01294734-83969803 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-28 02:20:56,840 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 02:20:56,840 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01294734-83969803, IP 129.44.78.3, Port 22 2024-10-28 02:20:57,000 - DEBUG - VM ctest-TestBasicPolicy-01294734-83969803 is ready for SSH connections 2024-10-28 02:20:57,000 - INFO - Waiting for VM ctest-TestBasicPolicy-01294734-66562288 to be up.. 2024-10-28 02:20:57,099 - DEBUG - VM is in ACTIVE state now 2024-10-28 02:20:57,099 - INFO - VM name : ctest-TestBasicPolicy-01294734-66562288 2024-10-28 02:20:57,217 - DEBUG - VM ctest-TestBasicPolicy-01294734-66562288 ID is 4f5bef03-b56f-443b-b2ca-5ca5dc0c54c2 2024-10-28 02:20:57,217 - DEBUG - VM ctest-TestBasicPolicy-01294734-66562288 launched on Node cn-jenkins-deploy-platform-ansible-os-2156-1 2024-10-28 02:20:57,328 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/4f5bef03-b56f-443b-b2ca-5ca5dc0c54c2 2024-10-28 02:20:57,339 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/fefb22d9-230b-4b21-b3f5-c9dcfb30acbf 2024-10-28 02:20:58,583 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.420 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.420/2.660/4.900/2.240 ms') 2024-10-28 02:20:58,583 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01294734-66562288 passed 2024-10-28 02:20:58,748 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 02:20:58,748 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01294734-66562288, IP 182.119.253.67, Port 22 2024-10-28 02:20:58,918 - DEBUG - VM ctest-TestBasicPolicy-01294734-66562288 is ready for SSH connections 2024-10-28 02:20:58,918 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 02:20:58,919 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.119.253.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-10-28 02:20:58,919 - DEBUG - ping -s 56 -c 3 -W 1 182.119.253.67 2024-10-28 02:21:03,023 - DEBUG - PING 182.119.253.67 (182.119.253.67): 56 data bytes 64 bytes from 182.119.253.67: seq=0 ttl=63 time=3.874 ms 64 bytes from 182.119.253.67: seq=1 ttl=63 time=0.938 ms 64 bytes from 182.119.253.67: seq=2 ttl=63 time=1.009 ms --- 182.119.253.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.938/1.940/3.874 ms 2024-10-28 02:21:03,023 - INFO - Ping to IP 182.119.253.67 from VM ctest-TestBasicPolicy-01294734-83969803 passed 2024-10-28 02:21:03,211 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ca149106-8c79-49fc-a7f2-9a483c7076a7", "href": "http://10.0.0.42:8082/network-policy/ca149106-8c79-49fc-a7f2-9a483c7076a7"}} 2024-10-28 02:21:03,212 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 02:21:03,212 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.119.253.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-10-28 02:21:03,212 - DEBUG - ping -s 56 -c 3 -W 1 182.119.253.67 2024-10-28 02:21:06,444 - DEBUG - PING 182.119.253.67 (182.119.253.67): 56 data bytes --- 182.119.253.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-28 02:21:06,444 - WARNING - Ping to IP 182.119.253.67 from VM ctest-TestBasicPolicy-01294734-83969803 failed 2024-10-28 02:21:06,444 - INFO - Deleting VM ctest-TestBasicPolicy-01294734-66562288 2024-10-28 02:21:06,549 - INFO - Deleting VM ctest-TestBasicPolicy-01294734-83969803 2024-10-28 02:21:07,058 - INFO - Deleted policy ctest-policy-allow-all-25357112 2024-10-28 02:21:07,058 - INFO - Deleting VN ctest-vn-82277318 2024-10-28 02:21:07,113 - DEBUG - VN 82ff9f38-fe89-4f45-ab4d-07eb8f43370d still in use: Unable to complete operation on network 82ff9f38-fe89-4f45-ab4d-07eb8f43370d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-756555ad-eff9-4147-bdde-0125e5372832'] 2024-10-28 02:21:07,114 - WARNING - Deleting VN ctest-vn-82277318 failed..Will retry 2024-10-28 02:21:09,255 - DEBUG - Response for deleting network () 2024-10-28 02:21:09,255 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/3098fcab-1883-4307-8917-3f2f9f398143 2024-10-28 02:21:09,265 - DEBUG - Response Code: 404 2024-10-28 02:21:09,266 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 02:21:09,277 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f 2024-10-28 02:21:09,299 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5 2024-10-28 02:21:09,388 - INFO - Validated that VN ctest-vn-82277318 is not found in API Server 2024-10-28 02:21:09,406 - DEBUG - VN ctest-vn-82277318 is not present in Agent 10.0.0.42 2024-10-28 02:21:09,406 - INFO - Validated that VN ctest-vn-82277318 is not in any agent 2024-10-28 02:21:09,433 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82277318 info 2024-10-28 02:21:09,433 - INFO - Deleting VN ctest-vn-28387409 2024-10-28 02:21:09,580 - DEBUG - Response for deleting network () 2024-10-28 02:21:09,581 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b76b7889-848b-4bdc-8c28-b13be29542a2 2024-10-28 02:21:09,593 - DEBUG - Response Code: 404 2024-10-28 02:21:09,593 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 02:21:09,601 - DEBUG - Requesting: http://10.0.0.42:8082/domain/80462946-db05-473a-912b-5ba74f83468f 2024-10-28 02:21:09,657 - DEBUG - Requesting: http://10.0.0.42:8082/project/36d13037-5f67-418e-82c3-807c01dd76b5 2024-10-28 02:21:09,735 - INFO - Validated that VN ctest-vn-28387409 is not found in API Server 2024-10-28 02:21:09,750 - DEBUG - VN ctest-vn-28387409 is not present in Agent 10.0.0.42 2024-10-28 02:21:09,750 - INFO - Validated that VN ctest-vn-28387409 is not in any agent 2024-10-28 02:21:09,776 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28387409 info 2024-10-28 02:21:10,045 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 02:21:10,045 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-10-28 02:21:10,046 - INFO - -------------------------------------------------------------------------------- 2024-10-28 02:21:10,821 - INFO - Deleted project: ctest-TestBasicPolicy-01294734, ID : 36d13037-5f67-418e-82c3-807c01dd76b5