2025-04-07 09:39:20,871 - INFO - Domain Default found not creating 2025-04-07 09:39:21,015 - INFO - Project ctest-TestBasicPolicy-46176189 not found, creating it 2025-04-07 09:39:21,482 - INFO - Created Project:ctest-TestBasicPolicy-46176189, ID : 5e6d0977-80c8-4f51-86e0-e7af4f86c6c9 2025-04-07 09:39:22,956 - INFO - ================================================================================ 2025-04-07 09:39:22,956 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-07 09:39:22,956 - 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-04-07 09:39:23,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.32': '0'}} with 2025-04-07 09:39:23,221 - INFO - Initial checks done. Running the testcase now 2025-04-07 09:39:23,221 - INFO - 2025-04-07 09:39:23,821 - DEBUG - Response for create_network : {'network': {'id': '9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac', 'name': 'ctest-vn-50445454', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-50445454'], 'port_security_enabled': True, 'description': ''}} 2025-04-07 09:39:24,028 - DEBUG - Response for create_subnet : {'subnet': {'id': '06559121-9310-4e2c-a691-196600d0a715', 'name': '', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'network_id': '9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac', 'ip_version': 4, 'cidr': '130.26.130.128/26', 'allocation_pools': [{'start': '130.26.130.130', 'end': '130.26.130.190'}], 'gateway_ip': '130.26.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.26.130.130', 'tags': [], 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9'}} 2025-04-07 09:39:24,051 - INFO - Created VN ctest-vn-50445454 2025-04-07 09:39:24,106 - DEBUG - VN ctest-vn-50445454 UUID is 9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac 2025-04-07 09:39:24,401 - DEBUG - Response for create_network : {'network': {'id': 'd93ec08e-059b-41b5-b2d8-53696c80931b', 'name': 'ctest-vn-38360623', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-38360623'], 'port_security_enabled': True, 'description': ''}} 2025-04-07 09:39:24,607 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f0e3c17-b13d-4f52-b24c-015af5b43514', 'name': '', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'network_id': 'd93ec08e-059b-41b5-b2d8-53696c80931b', 'ip_version': 4, 'cidr': '174.201.122.128/26', 'allocation_pools': [{'start': '174.201.122.130', 'end': '174.201.122.190'}], 'gateway_ip': '174.201.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.201.122.130', 'tags': [], 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9'}} 2025-04-07 09:39:24,625 - INFO - Created VN ctest-vn-38360623 2025-04-07 09:39:24,686 - DEBUG - VN ctest-vn-38360623 UUID is d93ec08e-059b-41b5-b2d8-53696c80931b 2025-04-07 09:39:24,810 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454, 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-46176189:ctest-vn-38360623, 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-04-07 09:39:25,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac', 'name': 'ctest-vn-50445454', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06559121-9310-4e2c-a691-196600d0a715'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-50445454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122']], 'subnet_ipam': [{'subnet_cidr': '130.26.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-07 09:39:25,372 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd93ec08e-059b-41b5-b2d8-53696c80931b', 'name': 'ctest-vn-38360623', 'tenant_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'project_id': '5e6d097780c84f5186e0e7af4f86c6c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f0e3c17-b13d-4f52-b24c-015af5b43514'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-vn-38360623'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122']], 'subnet_ipam': [{'subnet_cidr': '174.201.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-07 09:39:25,534 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-04-07 09:39:25,846 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-04-07 09:39:25,874 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec 2025-04-07 09:39:25,892 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9 2025-04-07 09:39:25,968 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac 2025-04-07 09:39:25,982 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac 2025-04-07 09:39:25,995 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd 2025-04-07 09:39:26,004 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd 2025-04-07 09:39:26,012 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/32b66b63-26bb-44ae-b1d4-e3346160e5af 2025-04-07 09:39:26,019 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-07 09:39:26,019 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac 2025-04-07 09:39:26,031 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd 2025-04-07 09:39:26,048 - INFO - Verified VN network id 8 for VN 9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac 2025-04-07 09:39:26,048 - INFO - Verifications in API Server for VN ctest-vn-50445454 passed 2025-04-07 09:39:26,048 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac 2025-04-07 09:39:26,059 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd 2025-04-07 09:39:26,067 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd 2025-04-07 09:39:26,075 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/32b66b63-26bb-44ae-b1d4-e3346160e5af 2025-04-07 09:39:26,088 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46176189', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11249973238054473414', 'uuid-lslong': '9538233570418202028'}, 'enable': 'true', 'created': '2025-04-07T09:39:23', 'last-modified': '2025-04-07T09:39:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993367'} 2025-04-07 09:39:26,097 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-07 09:39:26,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50445454 passed 2025-04-07 09:39:26,097 - DEBUG - ====Verifying policy data for ctest-vn-50445454 in API_Server ====== 2025-04-07 09:39:26,097 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-04-07 09:39:26,104 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec 2025-04-07 09:39:26,116 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9 2025-04-07 09:39:26,197 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9c1fef0e-1ae3-4ec6-845e-9ce5857b95ac 2025-04-07 09:39:26,208 - DEBUG - ==>Verifying data for policy with id: 129f383e-cb7d-495c-b73b-0d54080ae7d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122'] 2025-04-07 09:39:26,208 - INFO - VN ctest-vn-50445454 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-07 09:39:26,208 - DEBUG - Verifying the vn in opserver 2025-04-07 09:39:26,208 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454 virtual network link through opserver 10.0.0.24 2025-04-07 09:39:26,208 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-04-07 09:39:26,503 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-04-07 09:39:26,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454?flat'} 2025-04-07 09:39:26,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454 is found in opserver 2025-04-07 09:39:26,570 - DEBUG - Do not have enough data to verify VN in agent 2025-04-07 09:39:26,575 - DEBUG - VRF ids for VN ctest-vn-50445454: {} 2025-04-07 09:39:26,575 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-04-07 09:39:26,581 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec 2025-04-07 09:39:26,594 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9 2025-04-07 09:39:26,665 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b 2025-04-07 09:39:26,678 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b 2025-04-07 09:39:26,689 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7 2025-04-07 09:39:26,699 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7 2025-04-07 09:39:26,710 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/e7a08bfc-e619-45c7-ba40-efe7a4df9ea5 2025-04-07 09:39:26,720 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-07 09:39:26,720 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b 2025-04-07 09:39:26,731 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7 2025-04-07 09:39:26,746 - INFO - Verified VN network id 9 for VN d93ec08e-059b-41b5-b2d8-53696c80931b 2025-04-07 09:39:26,747 - INFO - Verifications in API Server for VN ctest-vn-38360623 passed 2025-04-07 09:39:26,747 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b 2025-04-07 09:39:26,758 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7 2025-04-07 09:39:26,765 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7 2025-04-07 09:39:26,773 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/e7a08bfc-e619-45c7-ba40-efe7a4df9ea5 2025-04-07 09:39:26,786 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46176189', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15654161070998372789', 'uuid-lslong': '12887142045977711387'}, 'enable': 'true', 'created': '2025-04-07T09:39:24', 'last-modified': '2025-04-07T09:39:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439747'} 2025-04-07 09:39:26,794 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-07 09:39:26,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38360623 passed 2025-04-07 09:39:26,795 - DEBUG - ====Verifying policy data for ctest-vn-38360623 in API_Server ====== 2025-04-07 09:39:26,795 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-04-07 09:39:26,801 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec 2025-04-07 09:39:26,815 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9 2025-04-07 09:39:26,896 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/d93ec08e-059b-41b5-b2d8-53696c80931b 2025-04-07 09:39:26,912 - DEBUG - ==>Verifying data for policy with id: 129f383e-cb7d-495c-b73b-0d54080ae7d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-46176189', 'ctest-policy-allow-all-91172122'] 2025-04-07 09:39:26,912 - INFO - VN ctest-vn-38360623 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-07 09:39:26,912 - DEBUG - Verifying the vn in opserver 2025-04-07 09:39:26,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623 virtual network link through opserver 10.0.0.24 2025-04-07 09:39:26,912 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-04-07 09:39:26,926 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623?flat'} 2025-04-07 09:39:26,926 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-38360623 is found in opserver 2025-04-07 09:39:26,939 - DEBUG - Do not have enough data to verify VN in agent 2025-04-07 09:39:26,945 - DEBUG - VRF ids for VN ctest-vn-38360623: {} 2025-04-07 09:39:27,021 - DEBUG - Services list from nova: [, , ] 2025-04-07 09:39:28,075 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3045-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3045-1) 2025-04-07 09:39:29,386 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3045-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3045-1) 2025-04-07 09:39:29,387 - INFO - Waiting for VM ctest-TestBasicPolicy-46176189-29773645 to be up.. 2025-04-07 09:39:29,483 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-07 09:39:34,569 - DEBUG - VM is in ACTIVE state now 2025-04-07 09:39:34,569 - INFO - VM name : ctest-TestBasicPolicy-46176189-29773645 2025-04-07 09:39:34,675 - DEBUG - VM ctest-TestBasicPolicy-46176189-29773645 ID is 898c8d2c-4be1-46a0-a6f1-0713aafb373f 2025-04-07 09:39:34,699 - DEBUG - VM ctest-TestBasicPolicy-46176189-29773645 launched on Node cn-jenkins-deploy-platform-ansible-os-3045-1 2025-04-07 09:39:34,796 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/898c8d2c-4be1-46a0-a6f1-0713aafb373f 2025-04-07 09:39:34,808 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/582ec08b-8f40-4339-aa1a-e0ec06cd0437 2025-04-07 09:39:38,032 - 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 1022ms') 2025-04-07 09:39:38,032 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46176189-29773645 failed! 2025-04-07 09:39:38,090 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46176189:ctest-vn-50445454 is 130.26.130.129 and allocation pool is NOT set 2025-04-07 09:39:40,150 - 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=3.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.438 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.438/1.899/3.360/1.461 ms') 2025-04-07 09:39:40,151 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46176189-29773645 passed 2025-04-07 09:39:40,314 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-07 09:39:40,315 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46176189-29773645, IP 130.26.130.131, Port 22 2025-04-07 09:39:40,474 - DEBUG - VM ctest-TestBasicPolicy-46176189-29773645 is ready for SSH connections 2025-04-07 09:39:40,474 - INFO - Waiting for VM ctest-TestBasicPolicy-46176189-65855775 to be up.. 2025-04-07 09:39:40,568 - DEBUG - VM is in ACTIVE state now 2025-04-07 09:39:40,568 - INFO - VM name : ctest-TestBasicPolicy-46176189-65855775 2025-04-07 09:39:40,666 - DEBUG - VM ctest-TestBasicPolicy-46176189-65855775 ID is 02847ad9-8bbf-4c6e-8328-cb885ba7e706 2025-04-07 09:39:40,667 - DEBUG - VM ctest-TestBasicPolicy-46176189-65855775 launched on Node cn-jenkins-deploy-platform-ansible-os-3045-1 2025-04-07 09:39:40,746 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/02847ad9-8bbf-4c6e-8328-cb885ba7e706 2025-04-07 09:39:40,759 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/f1dee058-ddd1-4fa4-ad87-0564b5d48ec8 2025-04-07 09:39:42,011 - 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=1.34 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 = 1.337/3.120/4.903/1.783 ms') 2025-04-07 09:39:42,011 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-46176189-65855775 passed 2025-04-07 09:39:42,166 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-07 09:39:42,166 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46176189-65855775, IP 174.201.122.131, Port 22 2025-04-07 09:39:42,340 - DEBUG - VM ctest-TestBasicPolicy-46176189-65855775 is ready for SSH connections 2025-04-07 09:39:42,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-07 09:39:42,341 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.201.122.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-04-07 09:39:42,341 - DEBUG - ping -s 56 -c 3 -W 1 174.201.122.131 2025-04-07 09:39:46,332 - DEBUG - PING 174.201.122.131 (174.201.122.131): 56 data bytes 64 bytes from 174.201.122.131: seq=0 ttl=63 time=3.934 ms 64 bytes from 174.201.122.131: seq=1 ttl=63 time=1.027 ms 64 bytes from 174.201.122.131: seq=2 ttl=63 time=0.876 ms --- 174.201.122.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.876/1.945/3.934 ms 2025-04-07 09:39:46,332 - INFO - Ping to IP 174.201.122.131 from VM ctest-TestBasicPolicy-46176189-29773645 passed 2025-04-07 09:39:46,542 - DEBUG - Policy Update Response {"network-policy": {"uuid": "129f383e-cb7d-495c-b73b-0d54080ae7d7", "href": "http://10.0.0.24:8082/network-policy/129f383e-cb7d-495c-b73b-0d54080ae7d7"}} 2025-04-07 09:39:46,542 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-07 09:39:46,542 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.201.122.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-04-07 09:39:46,542 - DEBUG - ping -s 56 -c 3 -W 1 174.201.122.131 2025-04-07 09:39:49,744 - DEBUG - PING 174.201.122.131 (174.201.122.131): 56 data bytes 64 bytes from 174.201.122.131: seq=0 ttl=63 time=1.417 ms --- 174.201.122.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.417/1.417/1.417 ms 2025-04-07 09:39:49,744 - WARNING - Ping to IP 174.201.122.131 from VM ctest-TestBasicPolicy-46176189-29773645 failed 2025-04-07 09:39:49,744 - INFO - Deleting VM ctest-TestBasicPolicy-46176189-65855775 2025-04-07 09:39:49,824 - INFO - Deleting VM ctest-TestBasicPolicy-46176189-29773645 2025-04-07 09:39:50,232 - INFO - Deleted policy ctest-policy-allow-all-91172122 2025-04-07 09:39:50,232 - INFO - Deleting VN ctest-vn-38360623 2025-04-07 09:39:50,272 - DEBUG - VN d93ec08e-059b-41b5-b2d8-53696c80931b still in use: Unable to complete operation on network d93ec08e-059b-41b5-b2d8-53696c80931b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-70c2173c-54d0-4e94-ad64-02db29fccf65'] 2025-04-07 09:39:50,272 - WARNING - Deleting VN ctest-vn-38360623 failed..Will retry 2025-04-07 09:39:52,386 - DEBUG - Response for deleting network () 2025-04-07 09:39:52,386 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b05df6f0-0c47-4419-b48b-25b73e3039a7 2025-04-07 09:39:52,393 - DEBUG - Response Code: 404 2025-04-07 09:39:52,394 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-04-07 09:39:52,401 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec 2025-04-07 09:39:52,461 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9 2025-04-07 09:39:52,538 - INFO - Validated that VN ctest-vn-38360623 is not found in API Server 2025-04-07 09:39:52,549 - DEBUG - VN ctest-vn-38360623 is not present in Agent 10.0.0.24 2025-04-07 09:39:52,549 - INFO - Validated that VN ctest-vn-38360623 is not in any agent 2025-04-07 09:39:52,566 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38360623 info 2025-04-07 09:39:52,566 - INFO - Deleting VN ctest-vn-50445454 2025-04-07 09:39:52,687 - DEBUG - Response for deleting network () 2025-04-07 09:39:52,687 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/4c785ac5-4731-4843-b8df-c5ebce0b6bbd 2025-04-07 09:39:52,694 - DEBUG - Response Code: 404 2025-04-07 09:39:52,694 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-04-07 09:39:52,705 - DEBUG - Requesting: http://10.0.0.24:8082/domain/0a5b2712-129a-482e-9c0c-7b2b56783eec 2025-04-07 09:39:52,761 - DEBUG - Requesting: http://10.0.0.24:8082/project/5e6d0977-80c8-4f51-86e0-e7af4f86c6c9 2025-04-07 09:39:52,835 - INFO - Validated that VN ctest-vn-50445454 is not found in API Server 2025-04-07 09:39:52,848 - DEBUG - VN ctest-vn-50445454 is not present in Agent 10.0.0.24 2025-04-07 09:39:52,848 - INFO - Validated that VN ctest-vn-50445454 is not in any agent 2025-04-07 09:39:52,864 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50445454 info 2025-04-07 09:39:53,123 - DEBUG - No XMPP flaps were noticed during the test
2025-04-07 09:39:53,123 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-04-07 09:39:53,123 - INFO - -------------------------------------------------------------------------------- 2025-04-07 09:39:53,806 - INFO - Deleted project: ctest-TestBasicPolicy-46176189, ID : 5e6d0977-80c8-4f51-86e0-e7af4f86c6c9