2025-06-08 21:45:33,791 - INFO - Domain Default found not creating 2025-06-08 21:45:33,946 - INFO - Project ctest-TestBasicPolicy-50835927 not found, creating it 2025-06-08 21:45:34,418 - INFO - Created Project:ctest-TestBasicPolicy-50835927, ID : 37f0cba9-ff11-48fa-bad6-375177baf3bf 2025-06-08 21:45:35,839 - INFO - ================================================================================ 2025-06-08 21:45:35,839 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-08 21:45:35,839 - 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-06-08 21:45:36,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-06-08 21:45:36,105 - INFO - Initial checks done. Running the testcase now 2025-06-08 21:45:36,105 - INFO - 2025-06-08 21:45:36,656 - DEBUG - Response for create_network : {'network': {'id': 'd7cd9e7c-9acb-4a2c-b985-0ef03faf980e', 'name': 'ctest-vn-36774167', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-36774167'], 'port_security_enabled': True, 'description': ''}} 2025-06-08 21:45:36,829 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6514504-b88d-4584-93fc-a421d4495726', 'name': '', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'network_id': 'd7cd9e7c-9acb-4a2c-b985-0ef03faf980e', 'ip_version': 4, 'cidr': '52.112.29.128/26', 'allocation_pools': [{'start': '52.112.29.130', 'end': '52.112.29.190'}], 'gateway_ip': '52.112.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.112.29.130', 'tags': [], 'project_id': '37f0cba9ff1148fabad6375177baf3bf'}} 2025-06-08 21:45:36,846 - INFO - Created VN ctest-vn-36774167 2025-06-08 21:45:36,898 - DEBUG - VN ctest-vn-36774167 UUID is d7cd9e7c-9acb-4a2c-b985-0ef03faf980e 2025-06-08 21:45:37,214 - DEBUG - Response for create_network : {'network': {'id': 'd605822f-78fe-4771-92cc-d8c346279f23', 'name': 'ctest-vn-76167154', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-76167154'], 'port_security_enabled': True, 'description': ''}} 2025-06-08 21:45:37,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '216e8ad1-3f17-4653-89c0-6f21542d956c', 'name': '', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'network_id': 'd605822f-78fe-4771-92cc-d8c346279f23', 'ip_version': 4, 'cidr': '27.7.99.128/26', 'allocation_pools': [{'start': '27.7.99.130', 'end': '27.7.99.190'}], 'gateway_ip': '27.7.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.7.99.130', 'tags': [], 'project_id': '37f0cba9ff1148fabad6375177baf3bf'}} 2025-06-08 21:45:37,422 - INFO - Created VN ctest-vn-76167154 2025-06-08 21:45:37,474 - DEBUG - VN ctest-vn-76167154 UUID is d605822f-78fe-4771-92cc-d8c346279f23 2025-06-08 21:45:37,587 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167, 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-50835927:ctest-vn-76167154, 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-06-08 21:45:38,021 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7cd9e7c-9acb-4a2c-b985-0ef03faf980e', 'name': 'ctest-vn-36774167', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6514504-b88d-4584-93fc-a421d4495726'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-36774167'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277']], 'subnet_ipam': [{'subnet_cidr': '52.112.29.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-08 21:45:38,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd605822f-78fe-4771-92cc-d8c346279f23', 'name': 'ctest-vn-76167154', 'tenant_id': '37f0cba9ff1148fabad6375177baf3bf', 'project_id': '37f0cba9ff1148fabad6375177baf3bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['216e8ad1-3f17-4653-89c0-6f21542d956c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-vn-76167154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277']], 'subnet_ipam': [{'subnet_cidr': '27.7.99.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-08 21:45:38,410 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-08 21:45:38,707 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-08 21:45:38,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc 2025-06-08 21:45:38,748 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf 2025-06-08 21:45:38,821 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e 2025-06-08 21:45:38,833 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e 2025-06-08 21:45:38,843 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f 2025-06-08 21:45:38,849 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f 2025-06-08 21:45:38,855 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abeda956-3027-4510-8b97-da984344afcf 2025-06-08 21:45:38,861 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-08 21:45:38,861 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e 2025-06-08 21:45:38,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f 2025-06-08 21:45:38,883 - INFO - Verified VN network id 8 for VN d7cd9e7c-9acb-4a2c-b985-0ef03faf980e 2025-06-08 21:45:38,883 - INFO - Verifications in API Server for VN ctest-vn-36774167 passed 2025-06-08 21:45:38,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e 2025-06-08 21:45:38,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f 2025-06-08 21:45:38,899 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f 2025-06-08 21:45:38,905 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abeda956-3027-4510-8b97-da984344afcf 2025-06-08 21:45:38,918 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50835927', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15550259346390338092', 'uuid-lslong': '13368107493942597646'}, 'enable': 'true', 'created': '2025-06-08T21:45:36', 'last-modified': '2025-06-08T21:45:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924113'} 2025-06-08 21:45:38,924 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-08 21:45:38,924 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36774167 passed 2025-06-08 21:45:38,924 - DEBUG - ====Verifying policy data for ctest-vn-36774167 in API_Server ====== 2025-06-08 21:45:38,924 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-08 21:45:38,930 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc 2025-06-08 21:45:38,943 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf 2025-06-08 21:45:39,016 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7cd9e7c-9acb-4a2c-b985-0ef03faf980e 2025-06-08 21:45:39,026 - DEBUG - ==>Verifying data for policy with id: eb2dd893-d485-4bbe-acaa-4e697d9223b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277'] 2025-06-08 21:45:39,027 - INFO - VN ctest-vn-36774167 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-08 21:45:39,027 - DEBUG - Verifying the vn in opserver 2025-06-08 21:45:39,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167 virtual network link through opserver 10.0.0.38 2025-06-08 21:45:39,027 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-08 21:45:39,320 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-08 21:45:39,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167?flat'} 2025-06-08 21:45:39,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167 is found in opserver 2025-06-08 21:45:39,385 - DEBUG - Do not have enough data to verify VN in agent 2025-06-08 21:45:39,390 - DEBUG - VRF ids for VN ctest-vn-36774167: {} 2025-06-08 21:45:39,390 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-08 21:45:39,396 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc 2025-06-08 21:45:39,408 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf 2025-06-08 21:45:39,483 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23 2025-06-08 21:45:39,494 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23 2025-06-08 21:45:39,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c 2025-06-08 21:45:39,509 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c 2025-06-08 21:45:39,515 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d762580c-20bd-4955-8f40-a6e9c4a72d82 2025-06-08 21:45:39,522 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-08 21:45:39,522 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23 2025-06-08 21:45:39,533 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c 2025-06-08 21:45:39,547 - INFO - Verified VN network id 9 for VN d605822f-78fe-4771-92cc-d8c346279f23 2025-06-08 21:45:39,547 - INFO - Verifications in API Server for VN ctest-vn-76167154 passed 2025-06-08 21:45:39,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23 2025-06-08 21:45:39,556 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c 2025-06-08 21:45:39,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c 2025-06-08 21:45:39,568 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d762580c-20bd-4955-8f40-a6e9c4a72d82 2025-06-08 21:45:39,579 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50835927', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15421875639405135729', 'uuid-lslong': '10578067957993676579'}, 'enable': 'true', 'created': '2025-06-08T21:45:37', 'last-modified': '2025-06-08T21:45:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361759'} 2025-06-08 21:45:39,585 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-08 21:45:39,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76167154 passed 2025-06-08 21:45:39,586 - DEBUG - ====Verifying policy data for ctest-vn-76167154 in API_Server ====== 2025-06-08 21:45:39,586 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-08 21:45:39,592 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc 2025-06-08 21:45:39,603 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf 2025-06-08 21:45:39,680 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d605822f-78fe-4771-92cc-d8c346279f23 2025-06-08 21:45:39,691 - DEBUG - ==>Verifying data for policy with id: eb2dd893-d485-4bbe-acaa-4e697d9223b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-50835927', 'ctest-policy-allow-all-85856277'] 2025-06-08 21:45:39,691 - INFO - VN ctest-vn-76167154 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-08 21:45:39,691 - DEBUG - Verifying the vn in opserver 2025-06-08 21:45:39,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154 virtual network link through opserver 10.0.0.38 2025-06-08 21:45:39,691 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-08 21:45:39,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154?flat'} 2025-06-08 21:45:39,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-76167154 is found in opserver 2025-06-08 21:45:39,713 - DEBUG - Do not have enough data to verify VN in agent 2025-06-08 21:45:39,719 - DEBUG - VRF ids for VN ctest-vn-76167154: {} 2025-06-08 21:45:39,776 - DEBUG - Services list from nova: [, , ] 2025-06-08 21:45:40,774 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3417-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3417-1) 2025-06-08 21:45:42,043 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3417-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3417-1) 2025-06-08 21:45:42,044 - INFO - Waiting for VM ctest-TestBasicPolicy-50835927-93933680 to be up.. 2025-06-08 21:45:42,124 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-08 21:45:47,202 - DEBUG - VM is in ACTIVE state now 2025-06-08 21:45:47,202 - INFO - VM name : ctest-TestBasicPolicy-50835927-93933680 2025-06-08 21:45:47,276 - DEBUG - VM ctest-TestBasicPolicy-50835927-93933680 ID is 2fed60d2-21bc-4e2f-8405-bbf235eff2af 2025-06-08 21:45:47,294 - DEBUG - VM ctest-TestBasicPolicy-50835927-93933680 launched on Node cn-jenkins-deploy-platform-ansible-os-3417-1 2025-06-08 21:45:47,369 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/2fed60d2-21bc-4e2f-8405-bbf235eff2af 2025-06-08 21:45:47,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/ad6a9e0a-5619-470b-a5bf-4459fdc127ba 2025-06-08 21:45:50,644 - 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-06-08 21:45:50,644 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50835927-93933680 failed! 2025-06-08 21:45:50,706 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50835927:ctest-vn-36774167 is 52.112.29.129 and allocation pool is NOT set 2025-06-08 21:45:52,769 - 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=5.04 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.14 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.140/3.590/5.041/1.450 ms') 2025-06-08 21:45:52,769 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50835927-93933680 passed 2025-06-08 21:45:52,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 21:45:52,920 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50835927-93933680, IP 52.112.29.131, Port 22 2025-06-08 21:45:52,987 - 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-06-08 21:45:53,092 - DEBUG - VM ctest-TestBasicPolicy-50835927-93933680 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-08 21:45:58,093 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 21:45:58,093 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50835927-93933680, IP 52.112.29.131, Port 22 2025-06-08 21:45:58,249 - DEBUG - VM ctest-TestBasicPolicy-50835927-93933680 is ready for SSH connections 2025-06-08 21:45:58,249 - INFO - Waiting for VM ctest-TestBasicPolicy-50835927-05367265 to be up.. 2025-06-08 21:45:58,333 - DEBUG - VM is in ACTIVE state now 2025-06-08 21:45:58,333 - INFO - VM name : ctest-TestBasicPolicy-50835927-05367265 2025-06-08 21:45:58,412 - DEBUG - VM ctest-TestBasicPolicy-50835927-05367265 ID is 1cc174b4-ee17-4413-ac51-f045d4ea74cd 2025-06-08 21:45:58,412 - DEBUG - VM ctest-TestBasicPolicy-50835927-05367265 launched on Node cn-jenkins-deploy-platform-ansible-os-3417-1 2025-06-08 21:45:58,491 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1cc174b4-ee17-4413-ac51-f045d4ea74cd 2025-06-08 21:45:58,499 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/639e8c19-b02c-42c5-bbff-025f51429c8a 2025-06-08 21:45:59,733 - 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=2.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.455 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.455/1.550/2.645/1.095 ms') 2025-06-08 21:45:59,733 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-50835927-05367265 passed 2025-06-08 21:45:59,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 21:45:59,886 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50835927-05367265, IP 27.7.99.131, Port 22 2025-06-08 21:46:00,041 - DEBUG - VM ctest-TestBasicPolicy-50835927-05367265 is ready for SSH connections 2025-06-08 21:46:00,041 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 21:46:00,041 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.7.99.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-08 21:46:00,041 - DEBUG - ping -s 56 -c 3 -W 1 27.7.99.131 2025-06-08 21:46:04,033 - DEBUG - PING 27.7.99.131 (27.7.99.131): 56 data bytes 64 bytes from 27.7.99.131: seq=0 ttl=63 time=4.105 ms 64 bytes from 27.7.99.131: seq=1 ttl=63 time=1.075 ms 64 bytes from 27.7.99.131: seq=2 ttl=63 time=1.371 ms --- 27.7.99.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.075/2.183/4.105 ms 2025-06-08 21:46:04,033 - INFO - Ping to IP 27.7.99.131 from VM ctest-TestBasicPolicy-50835927-93933680 passed 2025-06-08 21:46:04,218 - DEBUG - Policy Update Response {"network-policy": {"uuid": "eb2dd893-d485-4bbe-acaa-4e697d9223b4", "href": "http://10.0.0.38:8082/network-policy/eb2dd893-d485-4bbe-acaa-4e697d9223b4"}} 2025-06-08 21:46:04,218 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 21:46:04,218 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.7.99.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-08 21:46:04,218 - DEBUG - ping -s 56 -c 3 -W 1 27.7.99.131 2025-06-08 21:46:07,430 - DEBUG - PING 27.7.99.131 (27.7.99.131): 56 data bytes 64 bytes from 27.7.99.131: seq=0 ttl=63 time=1.879 ms --- 27.7.99.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.879/1.879/1.879 ms 2025-06-08 21:46:07,431 - WARNING - Ping to IP 27.7.99.131 from VM ctest-TestBasicPolicy-50835927-93933680 failed 2025-06-08 21:46:07,431 - INFO - Deleting VM ctest-TestBasicPolicy-50835927-05367265 2025-06-08 21:46:07,499 - INFO - Deleting VM ctest-TestBasicPolicy-50835927-93933680 2025-06-08 21:46:07,904 - INFO - Deleted policy ctest-policy-allow-all-85856277 2025-06-08 21:46:07,904 - INFO - Deleting VN ctest-vn-76167154 2025-06-08 21:46:07,939 - DEBUG - VN d605822f-78fe-4771-92cc-d8c346279f23 still in use: Unable to complete operation on network d605822f-78fe-4771-92cc-d8c346279f23. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0bcae421-69bb-4569-9ab5-65915283aef2'] 2025-06-08 21:46:07,939 - WARNING - Deleting VN ctest-vn-76167154 failed..Will retry 2025-06-08 21:46:10,057 - DEBUG - Response for deleting network () 2025-06-08 21:46:10,057 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5869af2c-e7be-4f84-851d-247e64b80f1c 2025-06-08 21:46:10,064 - DEBUG - Response Code: 404 2025-06-08 21:46:10,064 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-08 21:46:10,072 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc 2025-06-08 21:46:10,127 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf 2025-06-08 21:46:10,200 - INFO - Validated that VN ctest-vn-76167154 is not found in API Server 2025-06-08 21:46:10,211 - DEBUG - VN ctest-vn-76167154 is not present in Agent 10.0.0.38 2025-06-08 21:46:10,211 - INFO - Validated that VN ctest-vn-76167154 is not in any agent 2025-06-08 21:46:10,225 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76167154 info 2025-06-08 21:46:10,225 - INFO - Deleting VN ctest-vn-36774167 2025-06-08 21:46:10,322 - DEBUG - Response for deleting network () 2025-06-08 21:46:10,322 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f6afd43-9510-44a0-829c-1a2d699b213f 2025-06-08 21:46:10,328 - DEBUG - Response Code: 404 2025-06-08 21:46:10,328 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-08 21:46:10,333 - DEBUG - Requesting: http://10.0.0.38:8082/domain/93badefd-2479-463c-b0b6-f2306e0a56cc 2025-06-08 21:46:10,390 - DEBUG - Requesting: http://10.0.0.38:8082/project/37f0cba9-ff11-48fa-bad6-375177baf3bf 2025-06-08 21:46:10,458 - INFO - Validated that VN ctest-vn-36774167 is not found in API Server 2025-06-08 21:46:10,468 - DEBUG - VN ctest-vn-36774167 is not present in Agent 10.0.0.38 2025-06-08 21:46:10,468 - INFO - Validated that VN ctest-vn-36774167 is not in any agent 2025-06-08 21:46:10,483 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36774167 info 2025-06-08 21:46:10,741 - DEBUG - No XMPP flaps were noticed during the test
2025-06-08 21:46:10,742 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-06-08 21:46:10,742 - INFO - -------------------------------------------------------------------------------- 2025-06-08 21:46:11,420 - INFO - Deleted project: ctest-TestBasicPolicy-50835927, ID : 37f0cba9-ff11-48fa-bad6-375177baf3bf