2025-01-10 21:51:53,533 - INFO - Domain Default found not creating 2025-01-10 21:51:53,715 - INFO - Project ctest-TestBasicPolicy-04030547 not found, creating it 2025-01-10 21:51:54,228 - INFO - Created Project:ctest-TestBasicPolicy-04030547, ID : b0464c3a-54a6-45a2-be98-a136936613cc 2025-01-10 21:51:55,829 - INFO - ================================================================================ 2025-01-10 21:51:55,829 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-10 21:51:55,829 - 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 2025-01-10 21:51:56,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.7': '0'}} with 2025-01-10 21:51:56,089 - INFO - Initial checks done. Running the testcase now 2025-01-10 21:51:56,089 - INFO - 2025-01-10 21:51:56,682 - DEBUG - Response for create_network : {'network': {'id': 'cec851ec-4019-4503-97e2-f556bfae4300', 'name': 'ctest-vn-39123457', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-39123457'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 21:51:56,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '70715d91-1e95-4145-8d6c-5307befdc4c2', 'name': '', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'network_id': 'cec851ec-4019-4503-97e2-f556bfae4300', 'ip_version': 4, 'cidr': '221.12.41.192/26', 'allocation_pools': [{'start': '221.12.41.194', 'end': '221.12.41.254'}], 'gateway_ip': '221.12.41.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.12.41.194', 'tags': [], 'project_id': 'b0464c3a54a645a2be98a136936613cc'}} 2025-01-10 21:51:56,926 - INFO - Created VN ctest-vn-39123457 2025-01-10 21:51:56,985 - DEBUG - VN ctest-vn-39123457 UUID is cec851ec-4019-4503-97e2-f556bfae4300 2025-01-10 21:51:57,328 - DEBUG - Response for create_network : {'network': {'id': '8c59294e-8fd1-4d16-b05f-99110cf05949', 'name': 'ctest-vn-41948180', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-41948180'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 21:51:57,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b451a94-ad4d-4c00-8a25-08d2b5de15f2', 'name': '', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'network_id': '8c59294e-8fd1-4d16-b05f-99110cf05949', 'ip_version': 4, 'cidr': '221.52.179.64/26', 'allocation_pools': [{'start': '221.52.179.66', 'end': '221.52.179.126'}], 'gateway_ip': '221.52.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.52.179.66', 'tags': [], 'project_id': 'b0464c3a54a645a2be98a136936613cc'}} 2025-01-10 21:51:57,539 - INFO - Created VN ctest-vn-41948180 2025-01-10 21:51:57,593 - DEBUG - VN ctest-vn-41948180 UUID is 8c59294e-8fd1-4d16-b05f-99110cf05949 2025-01-10 21:51:57,716 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457, 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-04030547:ctest-vn-41948180, 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] 2025-01-10 21:51:58,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cec851ec-4019-4503-97e2-f556bfae4300', 'name': 'ctest-vn-39123457', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70715d91-1e95-4145-8d6c-5307befdc4c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-39123457'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584']], 'subnet_ipam': [{'subnet_cidr': '221.12.41.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-10 21:51:58,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c59294e-8fd1-4d16-b05f-99110cf05949', 'name': 'ctest-vn-41948180', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b451a94-ad4d-4c00-8a25-08d2b5de15f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-41948180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584']], 'subnet_ipam': [{'subnet_cidr': '221.52.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-10 21:51:58,485 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-10 21:51:58,811 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-10 21:51:58,852 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e 2025-01-10 21:51:58,867 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc 2025-01-10 21:51:58,949 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300 2025-01-10 21:51:58,962 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300 2025-01-10 21:51:58,974 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30 2025-01-10 21:51:58,985 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30 2025-01-10 21:51:58,995 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/993b7903-25c9-4acd-84f3-c632897e9c74 2025-01-10 21:51:59,005 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-10 21:51:59,005 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300 2025-01-10 21:51:59,018 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30 2025-01-10 21:51:59,042 - INFO - Verified VN network id 9 for VN cec851ec-4019-4503-97e2-f556bfae4300 2025-01-10 21:51:59,042 - INFO - Verifications in API Server for VN ctest-vn-39123457 passed 2025-01-10 21:51:59,042 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300 2025-01-10 21:51:59,055 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30 2025-01-10 21:51:59,064 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30 2025-01-10 21:51:59,072 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/993b7903-25c9-4acd-84f3-c632897e9c74 2025-01-10 21:51:59,089 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04030547', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14900249442284815619', 'uuid-lslong': '10944579797395587840'}, 'enable': 'true', 'created': '2025-01-10T21:51:56', 'last-modified': '2025-01-10T21:51:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.079302'} 2025-01-10 21:51:59,098 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-10 21:51:59,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39123457 passed 2025-01-10 21:51:59,099 - DEBUG - ====Verifying policy data for ctest-vn-39123457 in API_Server ====== 2025-01-10 21:51:59,099 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-10 21:51:59,108 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e 2025-01-10 21:51:59,127 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc 2025-01-10 21:51:59,204 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300 2025-01-10 21:51:59,217 - DEBUG - ==>Verifying data for policy with id: c7f6e06f-a249-4849-b942-089a55ac5462, fqn: ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584'] 2025-01-10 21:51:59,217 - INFO - VN ctest-vn-39123457 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-10 21:51:59,217 - DEBUG - Verifying the vn in opserver 2025-01-10 21:51:59,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457 virtual network link through opserver 10.0.0.41 2025-01-10 21:51:59,217 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-01-10 21:51:59,543 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-01-10 21:51:59,614 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457?flat'} 2025-01-10 21:51:59,614 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457 is found in opserver 2025-01-10 21:51:59,628 - DEBUG - Do not have enough data to verify VN in agent 2025-01-10 21:51:59,634 - DEBUG - VRF ids for VN ctest-vn-39123457: {} 2025-01-10 21:51:59,634 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-10 21:51:59,643 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e 2025-01-10 21:51:59,658 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc 2025-01-10 21:51:59,737 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949 2025-01-10 21:51:59,753 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949 2025-01-10 21:51:59,766 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a 2025-01-10 21:51:59,775 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a 2025-01-10 21:51:59,784 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/29369bac-d7df-484e-aa36-5891546eb57f 2025-01-10 21:51:59,793 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 21:51:59,793 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949 2025-01-10 21:51:59,806 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a 2025-01-10 21:51:59,824 - INFO - Verified VN network id 10 for VN 8c59294e-8fd1-4d16-b05f-99110cf05949 2025-01-10 21:51:59,824 - INFO - Verifications in API Server for VN ctest-vn-41948180 passed 2025-01-10 21:51:59,824 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949 2025-01-10 21:51:59,845 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a 2025-01-10 21:51:59,855 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a 2025-01-10 21:51:59,866 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/29369bac-d7df-484e-aa36-5891546eb57f 2025-01-10 21:51:59,891 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04030547', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10113159855634205974', 'uuid-lslong': '12709044971973400905'}, 'enable': 'true', 'created': '2025-01-10T21:51:57', 'last-modified': '2025-01-10T21:51:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.613671'} 2025-01-10 21:51:59,906 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 21:51:59,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41948180 passed 2025-01-10 21:51:59,908 - DEBUG - ====Verifying policy data for ctest-vn-41948180 in API_Server ====== 2025-01-10 21:51:59,909 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-10 21:51:59,931 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e 2025-01-10 21:51:59,954 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc 2025-01-10 21:52:00,030 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949 2025-01-10 21:52:00,045 - DEBUG - ==>Verifying data for policy with id: c7f6e06f-a249-4849-b942-089a55ac5462, fqn: ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584'] 2025-01-10 21:52:00,045 - INFO - VN ctest-vn-41948180 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-10 21:52:00,045 - DEBUG - Verifying the vn in opserver 2025-01-10 21:52:00,045 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180 virtual network link through opserver 10.0.0.41 2025-01-10 21:52:00,045 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-01-10 21:52:00,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180?flat'} 2025-01-10 21:52:00,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180 is found in opserver 2025-01-10 21:52:00,069 - DEBUG - Do not have enough data to verify VN in agent 2025-01-10 21:52:00,077 - DEBUG - VRF ids for VN ctest-vn-41948180: {} 2025-01-10 21:52:00,152 - DEBUG - Services list from nova: [, , ] 2025-01-10 21:52:01,399 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2600-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2600-1) 2025-01-10 21:52:02,706 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2600-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2600-1) 2025-01-10 21:52:02,707 - INFO - Waiting for VM ctest-TestBasicPolicy-04030547-74359907 to be up.. 2025-01-10 21:52:02,813 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-10 21:52:07,900 - DEBUG - VM is in ACTIVE state now 2025-01-10 21:52:07,900 - INFO - VM name : ctest-TestBasicPolicy-04030547-74359907 2025-01-10 21:52:07,983 - DEBUG - VM ctest-TestBasicPolicy-04030547-74359907 ID is 4c1dd53f-770b-486c-9baa-e452a47d980d 2025-01-10 21:52:08,004 - DEBUG - VM ctest-TestBasicPolicy-04030547-74359907 launched on Node cn-jenkins-deploy-platform-ansible-os-2600-1 2025-01-10 21:52:08,101 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/4c1dd53f-770b-486c-9baa-e452a47d980d 2025-01-10 21:52:08,113 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/654b1fba-e734-45c2-b3ea-331aed4bf1ea 2025-01-10 21:52:11,387 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2025-01-10 21:52:11,387 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04030547-74359907 failed! 2025-01-10 21:52:11,445 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457 is 221.12.41.193 and allocation pool is NOT set 2025-01-10 21:52:13,503 - 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=9.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.88 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 = 1.884/5.496/9.109/3.612 ms') 2025-01-10 21:52:13,503 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04030547-74359907 passed 2025-01-10 21:52:13,657 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 21:52:13,657 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04030547-74359907, IP 221.12.41.195, Port 22 2025-01-10 21:52:13,724 - 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': ''} 2025-01-10 21:52:13,822 - DEBUG - VM ctest-TestBasicPolicy-04030547-74359907 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-10 21:52:18,823 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 21:52:18,823 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04030547-74359907, IP 221.12.41.195, Port 22 2025-01-10 21:52:18,991 - DEBUG - VM ctest-TestBasicPolicy-04030547-74359907 is ready for SSH connections 2025-01-10 21:52:18,991 - INFO - Waiting for VM ctest-TestBasicPolicy-04030547-03352712 to be up.. 2025-01-10 21:52:19,081 - DEBUG - VM is in ACTIVE state now 2025-01-10 21:52:19,081 - INFO - VM name : ctest-TestBasicPolicy-04030547-03352712 2025-01-10 21:52:19,171 - DEBUG - VM ctest-TestBasicPolicy-04030547-03352712 ID is ad3c5b56-8fc3-4331-b3cf-18e4b83fd87e 2025-01-10 21:52:19,171 - DEBUG - VM ctest-TestBasicPolicy-04030547-03352712 launched on Node cn-jenkins-deploy-platform-ansible-os-2600-1 2025-01-10 21:52:19,260 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/ad3c5b56-8fc3-4331-b3cf-18e4b83fd87e 2025-01-10 21:52:19,270 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/612a4c97-8173-44f7-b0cd-3408b037edb4 2025-01-10 21:52:20,525 - 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=3.27 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.392 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.392/1.832/3.273/1.440 ms') 2025-01-10 21:52:20,525 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04030547-03352712 passed 2025-01-10 21:52:20,681 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 21:52:20,682 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04030547-03352712, IP 221.52.179.67, Port 22 2025-01-10 21:52:20,837 - DEBUG - VM ctest-TestBasicPolicy-04030547-03352712 is ready for SSH connections 2025-01-10 21:52:20,838 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 21:52:20,838 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.52.179.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-01-10 21:52:20,838 - DEBUG - ping -s 56 -c 3 -W 1 221.52.179.67 2025-01-10 21:52:24,905 - DEBUG - PING 221.52.179.67 (221.52.179.67): 56 data bytes 64 bytes from 221.52.179.67: seq=0 ttl=63 time=4.141 ms 64 bytes from 221.52.179.67: seq=1 ttl=63 time=1.115 ms 64 bytes from 221.52.179.67: seq=2 ttl=63 time=0.991 ms --- 221.52.179.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.991/2.082/4.141 ms 2025-01-10 21:52:24,905 - INFO - Ping to IP 221.52.179.67 from VM ctest-TestBasicPolicy-04030547-74359907 passed 2025-01-10 21:52:25,089 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c7f6e06f-a249-4849-b942-089a55ac5462", "href": "http://10.0.0.41:8082/network-policy/c7f6e06f-a249-4849-b942-089a55ac5462"}} 2025-01-10 21:52:25,089 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 21:52:25,089 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.52.179.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-01-10 21:52:25,089 - DEBUG - ping -s 56 -c 3 -W 1 221.52.179.67 2025-01-10 21:52:28,301 - DEBUG - PING 221.52.179.67 (221.52.179.67): 56 data bytes 64 bytes from 221.52.179.67: seq=0 ttl=63 time=1.366 ms --- 221.52.179.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.366/1.366/1.366 ms 2025-01-10 21:52:28,301 - WARNING - Ping to IP 221.52.179.67 from VM ctest-TestBasicPolicy-04030547-74359907 failed 2025-01-10 21:52:28,302 - INFO - Deleting VM ctest-TestBasicPolicy-04030547-03352712 2025-01-10 21:52:28,381 - INFO - Deleting VM ctest-TestBasicPolicy-04030547-74359907 2025-01-10 21:52:28,833 - INFO - Deleted policy ctest-policy-allow-all-96079584 2025-01-10 21:52:28,833 - INFO - Deleting VN ctest-vn-41948180 2025-01-10 21:52:28,885 - DEBUG - VN 8c59294e-8fd1-4d16-b05f-99110cf05949 still in use: Unable to complete operation on network 8c59294e-8fd1-4d16-b05f-99110cf05949. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9cb522f7-d2fb-4fa9-a461-58c362835e31'] 2025-01-10 21:52:28,886 - WARNING - Deleting VN ctest-vn-41948180 failed..Will retry 2025-01-10 21:52:31,059 - DEBUG - Response for deleting network () 2025-01-10 21:52:31,059 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a 2025-01-10 21:52:31,067 - DEBUG - Response Code: 404 2025-01-10 21:52:31,067 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-10 21:52:31,086 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e 2025-01-10 21:52:31,107 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc 2025-01-10 21:52:31,185 - INFO - Validated that VN ctest-vn-41948180 is not found in API Server 2025-01-10 21:52:31,198 - DEBUG - VN ctest-vn-41948180 is not present in Agent 10.0.0.41 2025-01-10 21:52:31,198 - INFO - Validated that VN ctest-vn-41948180 is not in any agent 2025-01-10 21:52:31,218 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41948180 info 2025-01-10 21:52:31,218 - INFO - Deleting VN ctest-vn-39123457 2025-01-10 21:52:31,362 - DEBUG - Response for deleting network () 2025-01-10 21:52:31,362 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30 2025-01-10 21:52:31,371 - DEBUG - Response Code: 404 2025-01-10 21:52:31,371 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-10 21:52:31,378 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e 2025-01-10 21:52:31,436 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc 2025-01-10 21:52:31,518 - INFO - Validated that VN ctest-vn-39123457 is not found in API Server 2025-01-10 21:52:31,531 - DEBUG - VN ctest-vn-39123457 is not present in Agent 10.0.0.41 2025-01-10 21:52:31,531 - INFO - Validated that VN ctest-vn-39123457 is not in any agent 2025-01-10 21:52:31,548 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39123457 info 2025-01-10 21:52:31,812 - DEBUG - No XMPP flaps were noticed during the test 2025-01-10 21:52:31,812 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-01-10 21:52:31,812 - INFO - -------------------------------------------------------------------------------- 2025-01-10 21:52:32,584 - INFO - Deleted project: ctest-TestBasicPolicy-04030547, ID : b0464c3a-54a6-45a2-be98-a136936613cc