2025-07-21 13:02:14,870 - INFO - Domain Default found not creating 2025-07-21 13:02:15,183 - INFO - Project ctest-TestBasicPolicy-09963186 not found, creating it 2025-07-21 13:02:15,899 - INFO - Created Project:ctest-TestBasicPolicy-09963186, ID : 1d00cc60-fb85-461f-98c9-cb72195464de 2025-07-21 13:02:18,484 - INFO - ================================================================================ 2025-07-21 13:02:18,484 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-21 13:02:18,485 - 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-07-21 13:02:18,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-21 13:02:18,758 - INFO - Initial checks done. Running the testcase now 2025-07-21 13:02:18,758 - INFO - 2025-07-21 13:02:19,677 - DEBUG - Response for create_network : {'network': {'id': 'b2b9a599-1006-439f-9f52-b5d72a2a20f6', 'name': 'ctest-vn-97226945', 'tenant_id': '1d00cc60fb85461f98c9cb72195464de', 'project_id': '1d00cc60fb85461f98c9cb72195464de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-vn-97226945'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 13:02:20,003 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a217e988-9386-4400-994d-d8bc62d16999', 'name': '', 'tenant_id': '1d00cc60fb85461f98c9cb72195464de', 'network_id': 'b2b9a599-1006-439f-9f52-b5d72a2a20f6', 'ip_version': 4, 'cidr': '68.4.212.128/26', 'allocation_pools': [{'start': '68.4.212.130', 'end': '68.4.212.190'}], 'gateway_ip': '68.4.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.4.212.130', 'tags': [], 'project_id': '1d00cc60fb85461f98c9cb72195464de'}} 2025-07-21 13:02:20,040 - INFO - Created VN ctest-vn-97226945 2025-07-21 13:02:20,105 - DEBUG - VN ctest-vn-97226945 UUID is b2b9a599-1006-439f-9f52-b5d72a2a20f6 2025-07-21 13:02:20,706 - DEBUG - Response for create_network : {'network': {'id': '56dd5c93-cfe3-4d08-a7c6-30710a97b2b9', 'name': 'ctest-vn-86094213', 'tenant_id': '1d00cc60fb85461f98c9cb72195464de', 'project_id': '1d00cc60fb85461f98c9cb72195464de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-vn-86094213'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 13:02:20,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c18bfb38-009b-4c89-8d99-bc9a84d63d62', 'name': '', 'tenant_id': '1d00cc60fb85461f98c9cb72195464de', 'network_id': '56dd5c93-cfe3-4d08-a7c6-30710a97b2b9', 'ip_version': 4, 'cidr': '70.168.58.192/26', 'allocation_pools': [{'start': '70.168.58.194', 'end': '70.168.58.254'}], 'gateway_ip': '70.168.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.168.58.194', 'tags': [], 'project_id': '1d00cc60fb85461f98c9cb72195464de'}} 2025-07-21 13:02:20,948 - INFO - Created VN ctest-vn-86094213 2025-07-21 13:02:21,005 - DEBUG - VN ctest-vn-86094213 UUID is 56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 2025-07-21 13:02:21,149 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945, 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-09963186:ctest-vn-86094213, 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-07-21 13:02:21,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2b9a599-1006-439f-9f52-b5d72a2a20f6', 'name': 'ctest-vn-97226945', 'tenant_id': '1d00cc60fb85461f98c9cb72195464de', 'project_id': '1d00cc60fb85461f98c9cb72195464de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a217e988-9386-4400-994d-d8bc62d16999'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-vn-97226945'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-policy-allow-all-22800764']], 'subnet_ipam': [{'subnet_cidr': '68.4.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-21 13:02:21,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56dd5c93-cfe3-4d08-a7c6-30710a97b2b9', 'name': 'ctest-vn-86094213', 'tenant_id': '1d00cc60fb85461f98c9cb72195464de', 'project_id': '1d00cc60fb85461f98c9cb72195464de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c18bfb38-009b-4c89-8d99-bc9a84d63d62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-vn-86094213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-policy-allow-all-22800764']], 'subnet_ipam': [{'subnet_cidr': '70.168.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-21 13:02:22,065 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 13:02:22,385 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 13:02:22,428 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 13:02:22,460 - DEBUG - Requesting: http://10.0.0.254:8082/project/1d00cc60-fb85-461f-98c9-cb72195464de 2025-07-21 13:02:22,578 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b2b9a599-1006-439f-9f52-b5d72a2a20f6 2025-07-21 13:02:22,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b2b9a599-1006-439f-9f52-b5d72a2a20f6 2025-07-21 13:02:22,618 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3bb7af3d-7f75-4c04-8827-b43854358cad 2025-07-21 13:02:22,636 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3bb7af3d-7f75-4c04-8827-b43854358cad 2025-07-21 13:02:22,656 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2fb18832-142a-4888-b03b-792208d648dd 2025-07-21 13:02:22,675 - DEBUG - Route Targets: ['target:64512:8000011'] 2025-07-21 13:02:22,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b2b9a599-1006-439f-9f52-b5d72a2a20f6 2025-07-21 13:02:22,709 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3bb7af3d-7f75-4c04-8827-b43854358cad 2025-07-21 13:02:22,759 - INFO - Verified VN network id 16 for VN b2b9a599-1006-439f-9f52-b5d72a2a20f6 2025-07-21 13:02:22,759 - INFO - Verifications in API Server for VN ctest-vn-97226945 passed 2025-07-21 13:02:22,760 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b2b9a599-1006-439f-9f52-b5d72a2a20f6 2025-07-21 13:02:22,798 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3bb7af3d-7f75-4c04-8827-b43854358cad 2025-07-21 13:02:22,824 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3bb7af3d-7f75-4c04-8827-b43854358cad 2025-07-21 13:02:22,857 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2fb18832-142a-4888-b03b-792208d648dd 2025-07-21 13:02:22,901 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09963186', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12878506686260069279', 'uuid-lslong': '11480438335850815734'}, 'enable': 'true', 'created': '2025-07-21T13:02:19', 'last-modified': '2025-07-21T13:02:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.335515'} 2025-07-21 13:02:22,925 - DEBUG - Route Targets: ['target:64512:8000011'] 2025-07-21 13:02:22,925 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97226945 passed 2025-07-21 13:02:22,926 - DEBUG - ====Verifying policy data for ctest-vn-97226945 in API_Server ====== 2025-07-21 13:02:22,926 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 13:02:22,942 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 13:02:22,976 - DEBUG - Requesting: http://10.0.0.254:8082/project/1d00cc60-fb85-461f-98c9-cb72195464de 2025-07-21 13:02:23,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b2b9a599-1006-439f-9f52-b5d72a2a20f6 2025-07-21 13:02:23,153 - DEBUG - ==>Verifying data for policy with id: 26f0d954-d6d9-4609-bd9a-ba39bf283c84, fqn: ['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-policy-allow-all-22800764'] 2025-07-21 13:02:23,154 - INFO - VN ctest-vn-97226945 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-21 13:02:23,154 - DEBUG - Verifying the vn in opserver 2025-07-21 13:02:23,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 virtual network link through opserver 10.0.0.254 2025-07-21 13:02:23,155 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-21 13:02:23,492 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-21 13:02:23,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945?flat'} 2025-07-21 13:02:23,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is found in opserver 2025-07-21 13:02:23,642 - DEBUG - Do not have enough data to verify VN in agent 2025-07-21 13:02:23,657 - DEBUG - VRF ids for VN ctest-vn-97226945: {} 2025-07-21 13:02:23,657 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 13:02:23,669 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 13:02:23,701 - DEBUG - Requesting: http://10.0.0.254:8082/project/1d00cc60-fb85-461f-98c9-cb72195464de 2025-07-21 13:02:23,834 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 2025-07-21 13:02:23,869 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 2025-07-21 13:02:23,894 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd8c78b7-0639-4a0a-8ea2-ad06ea808a9e 2025-07-21 13:02:23,914 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd8c78b7-0639-4a0a-8ea2-ad06ea808a9e 2025-07-21 13:02:23,940 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3081a0ab-27dd-45b0-94c4-e3ce6bb9ce62 2025-07-21 13:02:23,964 - DEBUG - Route Targets: ['target:64512:8000012'] 2025-07-21 13:02:23,964 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 2025-07-21 13:02:23,998 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd8c78b7-0639-4a0a-8ea2-ad06ea808a9e 2025-07-21 13:02:24,047 - INFO - Verified VN network id 17 for VN 56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 2025-07-21 13:02:24,047 - INFO - Verifications in API Server for VN ctest-vn-86094213 passed 2025-07-21 13:02:24,048 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 2025-07-21 13:02:24,080 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd8c78b7-0639-4a0a-8ea2-ad06ea808a9e 2025-07-21 13:02:24,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd8c78b7-0639-4a0a-8ea2-ad06ea808a9e 2025-07-21 13:02:24,115 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3081a0ab-27dd-45b0-94c4-e3ce6bb9ce62 2025-07-21 13:02:24,152 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-86094213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09963186', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6259260847032585480', 'uuid-lslong': '12089403511789826745'}, 'enable': 'true', 'created': '2025-07-21T13:02:20', 'last-modified': '2025-07-21T13:02:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.292124'} 2025-07-21 13:02:24,173 - DEBUG - Route Targets: ['target:64512:8000012'] 2025-07-21 13:02:24,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86094213 passed 2025-07-21 13:02:24,174 - DEBUG - ====Verifying policy data for ctest-vn-86094213 in API_Server ====== 2025-07-21 13:02:24,174 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 13:02:24,188 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 13:02:24,217 - DEBUG - Requesting: http://10.0.0.254:8082/project/1d00cc60-fb85-461f-98c9-cb72195464de 2025-07-21 13:02:24,326 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 2025-07-21 13:02:24,352 - DEBUG - ==>Verifying data for policy with id: 26f0d954-d6d9-4609-bd9a-ba39bf283c84, fqn: ['default-domain', 'ctest-TestBasicPolicy-09963186', 'ctest-policy-allow-all-22800764'] 2025-07-21 13:02:24,352 - INFO - VN ctest-vn-86094213 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-21 13:02:24,353 - DEBUG - Verifying the vn in opserver 2025-07-21 13:02:24,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-86094213 virtual network link through opserver 10.0.0.254 2025-07-21 13:02:24,353 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-21 13:02:24,386 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-86094213', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-86094213?flat'} 2025-07-21 13:02:24,387 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-86094213 is found in opserver 2025-07-21 13:02:24,422 - DEBUG - Do not have enough data to verify VN in agent 2025-07-21 13:02:24,433 - DEBUG - VRF ids for VN ctest-vn-86094213: {} 2025-07-21 13:02:24,582 - DEBUG - Services list from nova: [, , ] 2025-07-21 13:02:26,725 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3677-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3677-1) 2025-07-21 13:02:28,372 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3677-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3677-1) 2025-07-21 13:02:28,373 - INFO - Waiting for VM ctest-TestBasicPolicy-09963186-82666494 to be up.. 2025-07-21 13:02:28,513 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-21 13:02:33,696 - DEBUG - VM is in ACTIVE state now 2025-07-21 13:02:33,697 - INFO - VM name : ctest-TestBasicPolicy-09963186-82666494 2025-07-21 13:02:33,843 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 ID is ad7960d7-f77a-4e65-beb3-e1a51493a774 2025-07-21 13:02:33,882 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 launched on Node cn-jenkins-deploy-platform-ansible-os-3677-1. 2025-07-21 13:02:33,995 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/ad7960d7-f77a-4e65-beb3-e1a51493a774 2025-07-21 13:02:34,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/2299451e-ba83-427f-98e0-67ea4ec1b814 2025-07-21 13:02:37,306 - 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 1020ms') 2025-07-21 13:02:37,307 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:02:37,393 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:02:41,497 - 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 1008ms') 2025-07-21 13:02:41,497 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:02:41,553 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:02:45,654 - 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-07-21 13:02:45,654 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:02:45,737 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:02:49,847 - 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 1029ms') 2025-07-21 13:02:49,847 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:02:49,909 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:02:54,011 - 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 1026ms') 2025-07-21 13:02:54,012 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:02:54,077 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:02:58,172 - 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 1019ms') 2025-07-21 13:02:58,172 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:02:58,245 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:03:02,329 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-07-21 13:03:02,329 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:03:02,405 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:03:06,492 - 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 1008ms') 2025-07-21 13:03:06,492 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:03:06,565 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:03:10,646 - 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 1010ms') 2025-07-21 13:03:10,647 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:03:10,709 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:03:14,808 - 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 1016ms') 2025-07-21 13:03:14,809 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 failed! 2025-07-21 13:03:14,901 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09963186:ctest-vn-97226945 is 68.4.212.129 and allocation pool is NOT set 2025-07-21 13:03:16,994 - 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.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.00 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 = 2.002/4.781/7.560/2.779 ms') 2025-07-21 13:03:16,994 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09963186-82666494 passed 2025-07-21 13:03:17,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:17,177 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09963186-82666494, IP 68.4.212.131, Port 22 2025-07-21 13:03:17,247 - DEBUG - Error on ssh to ubuntu@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-07-21 13:03:17,394 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 13:03:22,394 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:22,394 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09963186-82666494, IP 68.4.212.131, Port 22 2025-07-21 13:03:22,465 - DEBUG - Error on ssh to ubuntu@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-07-21 13:03:22,616 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 13:03:27,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:27,617 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09963186-82666494, IP 68.4.212.131, Port 22 2025-07-21 13:03:27,687 - DEBUG - Error on ssh to ubuntu@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-07-21 13:03:27,807 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 13:03:32,808 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:32,808 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09963186-82666494, IP 68.4.212.131, Port 22 2025-07-21 13:03:32,877 - DEBUG - Error on ssh to ubuntu@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-07-21 13:03:32,994 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 13:03:37,995 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:37,995 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09963186-82666494, IP 68.4.212.131, Port 22 2025-07-21 13:03:38,083 - DEBUG - Error on ssh to ubuntu@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-07-21 13:03:38,269 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 13:03:43,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:43,271 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09963186-82666494, IP 68.4.212.131, Port 22 2025-07-21 13:03:43,464 - DEBUG - VM ctest-TestBasicPolicy-09963186-82666494 is ready for SSH connections 2025-07-21 13:03:43,464 - INFO - Waiting for VM ctest-TestBasicPolicy-09963186-59169275 to be up.. 2025-07-21 13:03:43,599 - DEBUG - VM is in ACTIVE state now 2025-07-21 13:03:43,599 - INFO - VM name : ctest-TestBasicPolicy-09963186-59169275 2025-07-21 13:03:43,700 - DEBUG - VM ctest-TestBasicPolicy-09963186-59169275 ID is 60c8d8a2-a8c1-4d73-a6f9-b3f2e328f61b 2025-07-21 13:03:43,700 - DEBUG - VM ctest-TestBasicPolicy-09963186-59169275 launched on Node cn-jenkins-deploy-platform-ansible-os-3677-1. 2025-07-21 13:03:43,804 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/60c8d8a2-a8c1-4d73-a6f9-b3f2e328f61b 2025-07-21 13:03:43,817 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/970f9f58-672a-4089-a5ea-0c98ce1f7a66 2025-07-21 13:03:45,093 - 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=7.84 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.903 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.903/4.373/7.843/3.470 ms') 2025-07-21 13:03:45,094 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09963186-59169275 passed 2025-07-21 13:03:45,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:45,253 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09963186-59169275, IP 70.168.58.195, Port 22 2025-07-21 13:03:45,426 - DEBUG - VM ctest-TestBasicPolicy-09963186-59169275 is ready for SSH connections 2025-07-21 13:03:45,427 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:03:45,427 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 70.168.58.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-21 13:03:45,427 - DEBUG - ping -s 56 -c 3 -W 1 70.168.58.195 2025-07-21 13:04:09,625 - DEBUG - PING 70.168.58.195 (70.168.58.195) 56(84) bytes of data. 64 bytes from 70.168.58.195: icmp_req=1 ttl=63 time=15.7 ms 64 bytes from 70.168.58.195: icmp_req=2 ttl=63 time=2.27 ms 64 bytes from 70.168.58.195: icmp_req=3 ttl=63 time=1.42 ms --- 70.168.58.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.421/6.476/15.729/6.552 ms 2025-07-21 13:04:09,626 - INFO - Ping to IP 70.168.58.195 from VM ctest-TestBasicPolicy-09963186-82666494 passed 2025-07-21 13:04:09,929 - DEBUG - Policy Update Response {"network-policy": {"uuid": "26f0d954-d6d9-4609-bd9a-ba39bf283c84", "href": "http://10.0.0.254:8082/network-policy/26f0d954-d6d9-4609-bd9a-ba39bf283c84"}} 2025-07-21 13:04:09,929 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 13:04:09,930 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 70.168.58.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-21 13:04:09,930 - DEBUG - ping -s 56 -c 3 -W 1 70.168.58.195 2025-07-21 13:04:14,007 - DEBUG - PING 70.168.58.195 (70.168.58.195) 56(84) bytes of data. --- 70.168.58.195 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2001ms 2025-07-21 13:04:14,007 - WARNING - Ping to IP 70.168.58.195 from VM ctest-TestBasicPolicy-09963186-82666494 failed 2025-07-21 13:04:14,007 - INFO - Deleting VM ctest-TestBasicPolicy-09963186-59169275 2025-07-21 13:04:14,201 - INFO - Deleting VM ctest-TestBasicPolicy-09963186-82666494 2025-07-21 13:04:14,844 - INFO - Deleted policy ctest-policy-allow-all-22800764 2025-07-21 13:04:14,845 - INFO - Deleting VN ctest-vn-86094213 2025-07-21 13:04:14,910 - DEBUG - VN 56dd5c93-cfe3-4d08-a7c6-30710a97b2b9 still in use: Unable to complete operation on network 56dd5c93-cfe3-4d08-a7c6-30710a97b2b9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-89005ef3-7e44-4018-abd1-4b30dd500302'] 2025-07-21 13:04:14,910 - WARNING - Deleting VN ctest-vn-86094213 failed..Will retry 2025-07-21 13:04:17,156 - DEBUG - Response for deleting network () 2025-07-21 13:04:17,156 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd8c78b7-0639-4a0a-8ea2-ad06ea808a9e 2025-07-21 13:04:17,170 - DEBUG - Response Code: 404 2025-07-21 13:04:17,170 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 13:04:17,190 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 13:04:17,215 - DEBUG - Requesting: http://10.0.0.254:8082/project/1d00cc60-fb85-461f-98c9-cb72195464de 2025-07-21 13:04:17,330 - INFO - Validated that VN ctest-vn-86094213 is not found in API Server 2025-07-21 13:04:17,354 - DEBUG - VN ctest-vn-86094213 is not present in Agent 10.0.0.254 2025-07-21 13:04:17,354 - INFO - Validated that VN ctest-vn-86094213 is not in any agent 2025-07-21 13:04:17,398 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86094213 info 2025-07-21 13:04:17,399 - INFO - Deleting VN ctest-vn-97226945 2025-07-21 13:04:17,723 - DEBUG - Response for deleting network () 2025-07-21 13:04:17,723 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3bb7af3d-7f75-4c04-8827-b43854358cad 2025-07-21 13:04:17,740 - DEBUG - Response Code: 404 2025-07-21 13:04:17,741 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-21 13:04:17,754 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f2dbf83-3a1f-4a4f-8676-305ebe4efd33 2025-07-21 13:04:17,780 - DEBUG - Requesting: http://10.0.0.254:8082/project/1d00cc60-fb85-461f-98c9-cb72195464de 2025-07-21 13:04:17,912 - INFO - Validated that VN ctest-vn-97226945 is not found in API Server 2025-07-21 13:04:17,944 - DEBUG - VN ctest-vn-97226945 is not present in Agent 10.0.0.254 2025-07-21 13:04:17,945 - INFO - Validated that VN ctest-vn-97226945 is not in any agent 2025-07-21 13:04:17,980 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97226945 info 2025-07-21 13:04:18,311 - DEBUG - No XMPP flaps were noticed during the test
2025-07-21 13:04:18,312 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:00]
2025-07-21 13:04:18,312 - INFO - -------------------------------------------------------------------------------- 2025-07-21 13:04:19,461 - INFO - Deleted project: ctest-TestBasicPolicy-09963186, ID : 1d00cc60-fb85-461f-98c9-cb72195464de