2024-08-26 19:21:30,878 - INFO - Domain Default found not creating 2024-08-26 19:21:31,303 - INFO - Project ctest-TestBasicPolicy-15564599 not found, creating it 2024-08-26 19:21:31,992 - INFO - Created Project:ctest-TestBasicPolicy-15564599, ID : b87347a9-41b7-42f4-86a7-20c7ce77726b 2024-08-26 19:21:34,074 - INFO - ================================================================================ 2024-08-26 19:21:34,075 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-26 19:21:34,075 - 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-26 19:21:34,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.24': '0'}} with 2024-08-26 19:21:34,437 - INFO - Initial checks done. Running the testcase now 2024-08-26 19:21:34,437 - INFO - 2024-08-26 19:21:35,194 - DEBUG - Response for create_network : {'network': {'id': 'db3b7f3f-9f58-42ce-9b29-73a9e2d06289', 'name': 'ctest-vn-71518791', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-71518791'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 19:21:35,468 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c334d2b1-d684-4f3c-9c0e-257eaaa85c43', 'name': '', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'network_id': 'db3b7f3f-9f58-42ce-9b29-73a9e2d06289', 'ip_version': 4, 'cidr': '171.206.191.64/26', 'allocation_pools': [{'start': '171.206.191.66', 'end': '171.206.191.126'}], 'gateway_ip': '171.206.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.206.191.66', 'tags': [], 'project_id': 'b87347a941b742f486a720c7ce77726b'}} 2024-08-26 19:21:35,509 - INFO - Created VN ctest-vn-71518791 2024-08-26 19:21:35,573 - DEBUG - VN ctest-vn-71518791 UUID is db3b7f3f-9f58-42ce-9b29-73a9e2d06289 2024-08-26 19:21:36,072 - DEBUG - Response for create_network : {'network': {'id': 'b77b6b09-cf76-418b-9cce-817d83c34770', 'name': 'ctest-vn-55130090', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-55130090'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 19:21:36,323 - DEBUG - Response for create_subnet : {'subnet': {'id': '47d721a8-4909-4470-abc1-fb44e44a90c6', 'name': '', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'network_id': 'b77b6b09-cf76-418b-9cce-817d83c34770', 'ip_version': 4, 'cidr': '169.250.247.64/26', 'allocation_pools': [{'start': '169.250.247.66', 'end': '169.250.247.126'}], 'gateway_ip': '169.250.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.250.247.66', 'tags': [], 'project_id': 'b87347a941b742f486a720c7ce77726b'}} 2024-08-26 19:21:36,386 - INFO - Created VN ctest-vn-55130090 2024-08-26 19:21:36,464 - DEBUG - VN ctest-vn-55130090 UUID is b77b6b09-cf76-418b-9cce-817d83c34770 2024-08-26 19:21:36,581 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791, 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-15564599:ctest-vn-55130090, 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-26 19:21:37,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db3b7f3f-9f58-42ce-9b29-73a9e2d06289', 'name': 'ctest-vn-71518791', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c334d2b1-d684-4f3c-9c0e-257eaaa85c43'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-71518791'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965']], 'subnet_ipam': [{'subnet_cidr': '171.206.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 19:21:37,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b77b6b09-cf76-418b-9cce-817d83c34770', 'name': 'ctest-vn-55130090', 'tenant_id': 'b87347a941b742f486a720c7ce77726b', 'project_id': 'b87347a941b742f486a720c7ce77726b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47d721a8-4909-4470-abc1-fb44e44a90c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-vn-55130090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965']], 'subnet_ipam': [{'subnet_cidr': '169.250.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 19:21:37,461 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 19:21:37,798 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 19:21:37,854 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d 2024-08-26 19:21:37,883 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b 2024-08-26 19:21:37,990 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289 2024-08-26 19:21:38,022 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289 2024-08-26 19:21:38,047 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086 2024-08-26 19:21:38,071 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086 2024-08-26 19:21:38,090 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/797c37af-4e33-4486-96c2-458cd0a9dd09 2024-08-26 19:21:38,104 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 19:21:38,104 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289 2024-08-26 19:21:38,119 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086 2024-08-26 19:21:38,142 - INFO - Verified VN network id 8 for VN db3b7f3f-9f58-42ce-9b29-73a9e2d06289 2024-08-26 19:21:38,142 - INFO - Verifications in API Server for VN ctest-vn-71518791 passed 2024-08-26 19:21:38,142 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289 2024-08-26 19:21:38,153 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086 2024-08-26 19:21:38,165 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086 2024-08-26 19:21:38,181 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/797c37af-4e33-4486-96c2-458cd0a9dd09 2024-08-26 19:21:38,218 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15564599', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15797360029165175502', 'uuid-lslong': '11180594723415941769'}, 'enable': 'true', 'created': '2024-08-26T19:21:35', 'last-modified': '2024-08-26T19:21:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.233692'} 2024-08-26 19:21:38,241 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 19:21:38,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71518791 passed 2024-08-26 19:21:38,242 - DEBUG - ====Verifying policy data for ctest-vn-71518791 in API_Server ====== 2024-08-26 19:21:38,242 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 19:21:38,260 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d 2024-08-26 19:21:38,291 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b 2024-08-26 19:21:38,399 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/db3b7f3f-9f58-42ce-9b29-73a9e2d06289 2024-08-26 19:21:38,426 - DEBUG - ==>Verifying data for policy with id: e1c1e2e9-5eba-45ac-bf52-5a809fdac52a, fqn: ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965'] 2024-08-26 19:21:38,426 - INFO - VN ctest-vn-71518791 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 19:21:38,427 - DEBUG - Verifying the vn in opserver 2024-08-26 19:21:38,427 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791 virtual network link through opserver 10.0.0.30 2024-08-26 19:21:38,428 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-08-26 19:21:38,742 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-08-26 19:21:38,836 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791?flat'} 2024-08-26 19:21:38,836 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791 is found in opserver 2024-08-26 19:21:38,866 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 19:21:38,880 - DEBUG - VRF ids for VN ctest-vn-71518791: {} 2024-08-26 19:21:38,880 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 19:21:38,892 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d 2024-08-26 19:21:38,927 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b 2024-08-26 19:21:39,057 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770 2024-08-26 19:21:39,082 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770 2024-08-26 19:21:39,105 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32 2024-08-26 19:21:39,123 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32 2024-08-26 19:21:39,135 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/a5df701f-ef76-48a7-a285-901c184fd135 2024-08-26 19:21:39,147 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 19:21:39,147 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770 2024-08-26 19:21:39,164 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32 2024-08-26 19:21:39,203 - INFO - Verified VN network id 9 for VN b77b6b09-cf76-418b-9cce-817d83c34770 2024-08-26 19:21:39,203 - INFO - Verifications in API Server for VN ctest-vn-55130090 passed 2024-08-26 19:21:39,203 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770 2024-08-26 19:21:39,225 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32 2024-08-26 19:21:39,239 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32 2024-08-26 19:21:39,257 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/a5df701f-ef76-48a7-a285-901c184fd135 2024-08-26 19:21:39,287 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15564599', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13221278820955734411', 'uuid-lslong': '11299110891200661360'}, 'enable': 'true', 'created': '2024-08-26T19:21:36', 'last-modified': '2024-08-26T19:21:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.046344'} 2024-08-26 19:21:39,308 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 19:21:39,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55130090 passed 2024-08-26 19:21:39,308 - DEBUG - ====Verifying policy data for ctest-vn-55130090 in API_Server ====== 2024-08-26 19:21:39,308 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 19:21:39,324 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d 2024-08-26 19:21:39,361 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b 2024-08-26 19:21:39,480 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b77b6b09-cf76-418b-9cce-817d83c34770 2024-08-26 19:21:39,504 - DEBUG - ==>Verifying data for policy with id: e1c1e2e9-5eba-45ac-bf52-5a809fdac52a, fqn: ['default-domain', 'ctest-TestBasicPolicy-15564599', 'ctest-policy-allow-all-86852965'] 2024-08-26 19:21:39,505 - INFO - VN ctest-vn-55130090 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 19:21:39,505 - DEBUG - Verifying the vn in opserver 2024-08-26 19:21:39,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090 virtual network link through opserver 10.0.0.30 2024-08-26 19:21:39,505 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-08-26 19:21:39,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090?flat'} 2024-08-26 19:21:39,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-55130090 is found in opserver 2024-08-26 19:21:39,568 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 19:21:39,587 - DEBUG - VRF ids for VN ctest-vn-55130090: {} 2024-08-26 19:21:39,715 - DEBUG - Services list from nova: [, , ] 2024-08-26 19:21:41,346 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1768-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1768-1) 2024-08-26 19:21:43,114 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1768-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1768-1) 2024-08-26 19:21:43,115 - INFO - Waiting for VM ctest-TestBasicPolicy-15564599-75909802 to be up.. 2024-08-26 19:21:43,250 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 19:21:48,482 - DEBUG - VM is in ACTIVE state now 2024-08-26 19:21:48,483 - INFO - VM name : ctest-TestBasicPolicy-15564599-75909802 2024-08-26 19:21:48,683 - DEBUG - VM ctest-TestBasicPolicy-15564599-75909802 ID is b86ad5c8-175b-4f43-95e0-68825165af9e 2024-08-26 19:21:48,711 - DEBUG - VM ctest-TestBasicPolicy-15564599-75909802 launched on Node cn-jenkins-deploy-platform-ansible-os-1768-1 2024-08-26 19:21:48,861 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/b86ad5c8-175b-4f43-95e0-68825165af9e 2024-08-26 19:21:48,876 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/a4a814ae-2f96-48c7-ade5-a1f3137316d5 2024-08-26 19:21:52,185 - 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 1021ms') 2024-08-26 19:21:52,186 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15564599-75909802 failed! 2024-08-26 19:21:52,248 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15564599:ctest-vn-71518791 is 171.206.191.65 and allocation pool is NOT set 2024-08-26 19:21:54,318 - 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=8.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.18 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.183/6.043/8.903/2.860 ms') 2024-08-26 19:21:54,319 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15564599-75909802 passed 2024-08-26 19:21:54,496 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:21:54,497 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15564599-75909802, IP 171.206.191.67, Port 22 2024-08-26 19:21:54,575 - 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-08-26 19:21:54,673 - DEBUG - VM ctest-TestBasicPolicy-15564599-75909802 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 19:21:59,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:21:59,674 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15564599-75909802, IP 171.206.191.67, Port 22 2024-08-26 19:21:59,871 - DEBUG - VM ctest-TestBasicPolicy-15564599-75909802 is ready for SSH connections 2024-08-26 19:21:59,872 - INFO - Waiting for VM ctest-TestBasicPolicy-15564599-41696309 to be up.. 2024-08-26 19:22:00,111 - DEBUG - VM is in ACTIVE state now 2024-08-26 19:22:00,111 - INFO - VM name : ctest-TestBasicPolicy-15564599-41696309 2024-08-26 19:22:00,296 - DEBUG - VM ctest-TestBasicPolicy-15564599-41696309 ID is 62db1eb4-c333-4ba7-803b-70590b1b7b73 2024-08-26 19:22:00,297 - DEBUG - VM ctest-TestBasicPolicy-15564599-41696309 launched on Node cn-jenkins-deploy-platform-ansible-os-1768-1 2024-08-26 19:22:00,475 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/62db1eb4-c333-4ba7-803b-70590b1b7b73 2024-08-26 19:22:00,497 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/49fac505-9528-4187-bc13-ee95196f4f3c 2024-08-26 19:22:01,820 - 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=10.4 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.621 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.621/5.515/10.409/4.894 ms') 2024-08-26 19:22:01,820 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15564599-41696309 passed 2024-08-26 19:22:01,989 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:22:01,989 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15564599-41696309, IP 169.250.247.67, Port 22 2024-08-26 19:22:02,174 - DEBUG - VM ctest-TestBasicPolicy-15564599-41696309 is ready for SSH connections 2024-08-26 19:22:02,174 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:22:02,174 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 169.250.247.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-08-26 19:22:02,180 - DEBUG - ping -s 56 -c 3 -W 1 169.250.247.67 2024-08-26 19:22:06,589 - DEBUG - PING 169.250.247.67 (169.250.247.67): 56 data bytes 64 bytes from 169.250.247.67: seq=0 ttl=63 time=4.790 ms 64 bytes from 169.250.247.67: seq=1 ttl=63 time=1.794 ms 64 bytes from 169.250.247.67: seq=2 ttl=63 time=1.365 ms --- 169.250.247.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.365/2.649/4.790 ms 2024-08-26 19:22:06,589 - INFO - Ping to IP 169.250.247.67 from VM ctest-TestBasicPolicy-15564599-75909802 passed 2024-08-26 19:22:06,833 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e1c1e2e9-5eba-45ac-bf52-5a809fdac52a", "href": "http://10.0.0.30:8082/network-policy/e1c1e2e9-5eba-45ac-bf52-5a809fdac52a"}} 2024-08-26 19:22:06,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:22:06,833 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 169.250.247.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-08-26 19:22:06,834 - DEBUG - ping -s 56 -c 3 -W 1 169.250.247.67 2024-08-26 19:22:10,116 - DEBUG - PING 169.250.247.67 (169.250.247.67): 56 data bytes --- 169.250.247.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-26 19:22:10,117 - WARNING - Ping to IP 169.250.247.67 from VM ctest-TestBasicPolicy-15564599-75909802 failed 2024-08-26 19:22:10,117 - INFO - Deleting VM ctest-TestBasicPolicy-15564599-41696309 2024-08-26 19:22:10,328 - INFO - Deleting VM ctest-TestBasicPolicy-15564599-75909802 2024-08-26 19:22:10,903 - INFO - Deleted policy ctest-policy-allow-all-86852965 2024-08-26 19:22:10,903 - INFO - Deleting VN ctest-vn-55130090 2024-08-26 19:22:10,951 - DEBUG - VN b77b6b09-cf76-418b-9cce-817d83c34770 still in use: Unable to complete operation on network b77b6b09-cf76-418b-9cce-817d83c34770. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d2ada6c1-0599-4cfd-b867-17ce4decf80d'] 2024-08-26 19:22:10,951 - WARNING - Deleting VN ctest-vn-55130090 failed..Will retry 2024-08-26 19:22:13,166 - DEBUG - Response for deleting network () 2024-08-26 19:22:13,166 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/814119ca-9679-405f-8c21-87d63f4dce32 2024-08-26 19:22:13,173 - DEBUG - Response Code: 404 2024-08-26 19:22:13,174 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 19:22:13,185 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d 2024-08-26 19:22:13,247 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b 2024-08-26 19:22:13,365 - INFO - Validated that VN ctest-vn-55130090 is not found in API Server 2024-08-26 19:22:13,397 - DEBUG - VN ctest-vn-55130090 is not present in Agent 10.0.0.30 2024-08-26 19:22:13,397 - INFO - Validated that VN ctest-vn-55130090 is not in any agent 2024-08-26 19:22:13,454 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55130090 info 2024-08-26 19:22:13,455 - INFO - Deleting VN ctest-vn-71518791 2024-08-26 19:22:13,710 - DEBUG - Response for deleting network () 2024-08-26 19:22:13,710 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/29ececcb-b959-4896-b652-2c4ee5934086 2024-08-26 19:22:13,723 - DEBUG - Response Code: 404 2024-08-26 19:22:13,723 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 19:22:13,733 - DEBUG - Requesting: http://10.0.0.30:8082/domain/1987c93b-4f0a-4010-ae98-52f10c15b91d 2024-08-26 19:22:13,748 - DEBUG - Requesting: http://10.0.0.30:8082/project/b87347a9-41b7-42f4-86a7-20c7ce77726b 2024-08-26 19:22:13,848 - INFO - Validated that VN ctest-vn-71518791 is not found in API Server 2024-08-26 19:22:13,876 - DEBUG - VN ctest-vn-71518791 is not present in Agent 10.0.0.30 2024-08-26 19:22:13,876 - INFO - Validated that VN ctest-vn-71518791 is not in any agent 2024-08-26 19:22:13,917 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71518791 info 2024-08-26 19:22:14,251 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 19:22:14,251 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40] 2024-08-26 19:22:14,251 - INFO - -------------------------------------------------------------------------------- 2024-08-26 19:22:15,134 - INFO - Deleted project: ctest-TestBasicPolicy-15564599, ID : b87347a9-41b7-42f4-86a7-20c7ce77726b