2025-11-04 18:01:59,630 - INFO - Domain Default found not creating 2025-11-04 18:01:59,789 - INFO - Project ctest-TestBasicPolicy-16104484 not found, creating it 2025-11-04 18:02:00,297 - INFO - Created Project:ctest-TestBasicPolicy-16104484, ID : 4db94cfd-e1b2-40f6-b6af-dce46fb0d902 2025-11-04 18:02:01,908 - INFO - ================================================================================ 2025-11-04 18:02:01,908 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-04 18:02:01,908 - 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-11-04 18:02:02,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-04 18:02:02,183 - INFO - Initial checks done. Running the testcase now 2025-11-04 18:02:02,183 - INFO - 2025-11-04 18:02:02,857 - DEBUG - Response for create_network : {'network': {'id': '2c284f24-3055-4a56-94bf-5c6c5f40a8d6', 'name': 'ctest-vn-56261563', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-56261563'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 18:02:03,024 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e88ebd7b-d7c5-4cfa-8885-2f5317a9f7c8', 'name': '', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'network_id': '2c284f24-3055-4a56-94bf-5c6c5f40a8d6', 'ip_version': 4, 'cidr': '148.177.169.64/26', 'allocation_pools': [{'start': '148.177.169.66', 'end': '148.177.169.126'}], 'gateway_ip': '148.177.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.177.169.66', 'tags': [], 'project_id': '4db94cfde1b240f6b6afdce46fb0d902'}} 2025-11-04 18:02:03,043 - INFO - Created VN ctest-vn-56261563 2025-11-04 18:02:03,102 - DEBUG - VN ctest-vn-56261563 UUID is 2c284f24-3055-4a56-94bf-5c6c5f40a8d6 2025-11-04 18:02:03,409 - DEBUG - Response for create_network : {'network': {'id': '67015a77-92c3-4ce5-b3b9-8113941e6744', 'name': 'ctest-vn-55375631', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-55375631'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 18:02:03,619 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e38b2476-38c2-4a00-ab95-2e935b0b92ba', 'name': '', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'network_id': '67015a77-92c3-4ce5-b3b9-8113941e6744', 'ip_version': 4, 'cidr': '174.64.118.64/26', 'allocation_pools': [{'start': '174.64.118.66', 'end': '174.64.118.126'}], 'gateway_ip': '174.64.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.64.118.66', 'tags': [], 'project_id': '4db94cfde1b240f6b6afdce46fb0d902'}} 2025-11-04 18:02:03,641 - INFO - Created VN ctest-vn-55375631 2025-11-04 18:02:03,694 - DEBUG - VN ctest-vn-55375631 UUID is 67015a77-92c3-4ce5-b3b9-8113941e6744 2025-11-04 18:02:03,812 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563, 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-16104484:ctest-vn-55375631, 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-11-04 18:02:04,122 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c284f24-3055-4a56-94bf-5c6c5f40a8d6', 'name': 'ctest-vn-56261563', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e88ebd7b-d7c5-4cfa-8885-2f5317a9f7c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-56261563'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876']], 'subnet_ipam': [{'subnet_cidr': '148.177.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 18:02:04,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67015a77-92c3-4ce5-b3b9-8113941e6744', 'name': 'ctest-vn-55375631', 'tenant_id': '4db94cfde1b240f6b6afdce46fb0d902', 'project_id': '4db94cfde1b240f6b6afdce46fb0d902', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e38b2476-38c2-4a00-ab95-2e935b0b92ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-vn-55375631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876']], 'subnet_ipam': [{'subnet_cidr': '174.64.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 18:02:04,550 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 18:02:04,859 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 18:02:04,891 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b 2025-11-04 18:02:04,903 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902 2025-11-04 18:02:04,979 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6 2025-11-04 18:02:04,991 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6 2025-11-04 18:02:05,002 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f 2025-11-04 18:02:05,010 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f 2025-11-04 18:02:05,017 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a56e1a00-6faf-4a3d-8fce-a292dea6919a 2025-11-04 18:02:05,024 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 18:02:05,024 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6 2025-11-04 18:02:05,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f 2025-11-04 18:02:05,052 - INFO - Verified VN network id 11 for VN 2c284f24-3055-4a56-94bf-5c6c5f40a8d6 2025-11-04 18:02:05,052 - INFO - Verifications in API Server for VN ctest-vn-56261563 passed 2025-11-04 18:02:05,052 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6 2025-11-04 18:02:05,062 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f 2025-11-04 18:02:05,071 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f 2025-11-04 18:02:05,079 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a56e1a00-6faf-4a3d-8fce-a292dea6919a 2025-11-04 18:02:05,093 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16104484', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3181880153585568342', 'uuid-lslong': '10718387258689366230'}, 'enable': 'true', 'created': '2025-11-04T18:02:02', 'last-modified': '2025-11-04T18:02:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994244'} 2025-11-04 18:02:05,100 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 18:02:05,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56261563 passed 2025-11-04 18:02:05,101 - DEBUG - ====Verifying policy data for ctest-vn-56261563 in API_Server ====== 2025-11-04 18:02:05,101 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 18:02:05,107 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b 2025-11-04 18:02:05,119 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902 2025-11-04 18:02:05,204 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c284f24-3055-4a56-94bf-5c6c5f40a8d6 2025-11-04 18:02:05,213 - DEBUG - ==>Verifying data for policy with id: 335bf06d-3f79-45a0-8312-56706bbe26e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876'] 2025-11-04 18:02:05,213 - INFO - VN ctest-vn-56261563 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 18:02:05,213 - DEBUG - Verifying the vn in opserver 2025-11-04 18:02:05,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563 virtual network link through opserver 10.0.0.50 2025-11-04 18:02:05,213 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-04 18:02:05,519 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-04 18:02:05,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563?flat'} 2025-11-04 18:02:05,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563 is found in opserver 2025-11-04 18:02:05,600 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 18:02:05,605 - DEBUG - VRF ids for VN ctest-vn-56261563: {} 2025-11-04 18:02:05,605 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 18:02:05,611 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b 2025-11-04 18:02:05,621 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902 2025-11-04 18:02:05,697 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744 2025-11-04 18:02:05,711 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744 2025-11-04 18:02:05,723 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db 2025-11-04 18:02:05,731 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db 2025-11-04 18:02:05,738 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cdb75a32-494f-432d-a58b-dbaca88d2b6a 2025-11-04 18:02:05,747 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-04 18:02:05,747 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744 2025-11-04 18:02:05,758 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db 2025-11-04 18:02:05,785 - INFO - Verified VN network id 12 for VN 67015a77-92c3-4ce5-b3b9-8113941e6744 2025-11-04 18:02:05,785 - INFO - Verifications in API Server for VN ctest-vn-55375631 passed 2025-11-04 18:02:05,785 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744 2025-11-04 18:02:05,798 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db 2025-11-04 18:02:05,810 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db 2025-11-04 18:02:05,818 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cdb75a32-494f-432d-a58b-dbaca88d2b6a 2025-11-04 18:02:05,832 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16104484', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7422313130493168869', 'uuid-lslong': '12950524124569954116'}, 'enable': 'true', 'created': '2025-11-04T18:02:03', 'last-modified': '2025-11-04T18:02:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490658'} 2025-11-04 18:02:05,838 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-04 18:02:05,838 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55375631 passed 2025-11-04 18:02:05,838 - DEBUG - ====Verifying policy data for ctest-vn-55375631 in API_Server ====== 2025-11-04 18:02:05,838 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 18:02:05,844 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b 2025-11-04 18:02:05,856 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902 2025-11-04 18:02:05,934 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/67015a77-92c3-4ce5-b3b9-8113941e6744 2025-11-04 18:02:05,945 - DEBUG - ==>Verifying data for policy with id: 335bf06d-3f79-45a0-8312-56706bbe26e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-16104484', 'ctest-policy-allow-all-94903876'] 2025-11-04 18:02:05,945 - INFO - VN ctest-vn-55375631 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 18:02:05,945 - DEBUG - Verifying the vn in opserver 2025-11-04 18:02:05,946 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631 virtual network link through opserver 10.0.0.50 2025-11-04 18:02:05,946 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-04 18:02:05,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631?flat'} 2025-11-04 18:02:05,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-55375631 is found in opserver 2025-11-04 18:02:05,966 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 18:02:05,971 - DEBUG - VRF ids for VN ctest-vn-55375631: {} 2025-11-04 18:02:06,033 - DEBUG - Services list from nova: [, , ] 2025-11-04 18:02:07,139 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4620-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4620-1) 2025-11-04 18:02:08,328 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4620-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4620-1) 2025-11-04 18:02:08,328 - INFO - Waiting for VM ctest-TestBasicPolicy-16104484-15192523 to be up.. 2025-11-04 18:02:08,435 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-04 18:02:13,522 - DEBUG - VM is in ACTIVE state now 2025-11-04 18:02:13,522 - INFO - VM name : ctest-TestBasicPolicy-16104484-15192523 2025-11-04 18:02:13,618 - DEBUG - VM ctest-TestBasicPolicy-16104484-15192523 ID is 96846b65-c756-4dca-a3ef-cb63fe0bdeef 2025-11-04 18:02:13,650 - DEBUG - VM ctest-TestBasicPolicy-16104484-15192523 launched on Node cn-jenkins-deploy-platform-ansible-os-4620-1 2025-11-04 18:02:13,745 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/96846b65-c756-4dca-a3ef-cb63fe0bdeef 2025-11-04 18:02:13,755 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/3005492e-e6c5-4650-b389-babf51f6a5db 2025-11-04 18:02:17,049 - 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 1035ms') 2025-11-04 18:02:17,049 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16104484-15192523 failed! 2025-11-04 18:02:17,106 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16104484:ctest-vn-56261563 is 148.177.169.65 and allocation pool is NOT set 2025-11-04 18:02:19,173 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.31 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.313/3.563/5.813/2.250 ms') 2025-11-04 18:02:19,173 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16104484-15192523 passed 2025-11-04 18:02:19,326 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 18:02:19,326 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16104484-15192523, IP 148.177.169.67, Port 22 2025-11-04 18:02:19,392 - 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-11-04 18:02:19,471 - DEBUG - VM ctest-TestBasicPolicy-16104484-15192523 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-04 18:02:24,471 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 18:02:24,471 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16104484-15192523, IP 148.177.169.67, Port 22 2025-11-04 18:02:24,626 - DEBUG - VM ctest-TestBasicPolicy-16104484-15192523 is ready for SSH connections 2025-11-04 18:02:24,626 - INFO - Waiting for VM ctest-TestBasicPolicy-16104484-06916885 to be up.. 2025-11-04 18:02:24,707 - DEBUG - VM is in ACTIVE state now 2025-11-04 18:02:24,707 - INFO - VM name : ctest-TestBasicPolicy-16104484-06916885 2025-11-04 18:02:24,791 - DEBUG - VM ctest-TestBasicPolicy-16104484-06916885 ID is 6fff3bd2-a72f-49b1-bda5-825c93fb722d 2025-11-04 18:02:24,791 - DEBUG - VM ctest-TestBasicPolicy-16104484-06916885 launched on Node cn-jenkins-deploy-platform-ansible-os-4620-1 2025-11-04 18:02:24,878 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/6fff3bd2-a72f-49b1-bda5-825c93fb722d 2025-11-04 18:02:24,887 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/3e053a3a-aa3c-4bb2-b32a-d863609bcddb 2025-11-04 18:02:26,133 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.454 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.454/1.688/2.922/1.234 ms') 2025-11-04 18:02:26,133 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-16104484-06916885 passed 2025-11-04 18:02:26,282 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 18:02:26,283 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16104484-06916885, IP 174.64.118.67, Port 22 2025-11-04 18:02:26,438 - DEBUG - VM ctest-TestBasicPolicy-16104484-06916885 is ready for SSH connections 2025-11-04 18:02:26,438 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 18:02:26,438 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.64.118.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-04 18:02:26,439 - DEBUG - ping -s 56 -c 3 -W 1 174.64.118.67 2025-11-04 18:02:30,578 - DEBUG - PING 174.64.118.67 (174.64.118.67): 56 data bytes 64 bytes from 174.64.118.67: seq=0 ttl=63 time=4.228 ms 64 bytes from 174.64.118.67: seq=1 ttl=63 time=1.223 ms 64 bytes from 174.64.118.67: seq=2 ttl=63 time=1.343 ms --- 174.64.118.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.223/2.264/4.228 ms 2025-11-04 18:02:30,579 - INFO - Ping to IP 174.64.118.67 from VM ctest-TestBasicPolicy-16104484-15192523 passed 2025-11-04 18:02:30,770 - DEBUG - Policy Update Response {"network-policy": {"uuid": "335bf06d-3f79-45a0-8312-56706bbe26e2", "href": "http://10.0.0.50:8082/network-policy/335bf06d-3f79-45a0-8312-56706bbe26e2"}} 2025-11-04 18:02:30,770 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 18:02:30,771 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.64.118.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-04 18:02:30,771 - DEBUG - ping -s 56 -c 3 -W 1 174.64.118.67 2025-11-04 18:02:34,027 - DEBUG - PING 174.64.118.67 (174.64.118.67): 56 data bytes --- 174.64.118.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-04 18:02:34,027 - WARNING - Ping to IP 174.64.118.67 from VM ctest-TestBasicPolicy-16104484-15192523 failed 2025-11-04 18:02:34,027 - INFO - Deleting VM ctest-TestBasicPolicy-16104484-06916885 2025-11-04 18:02:34,100 - INFO - Deleting VM ctest-TestBasicPolicy-16104484-15192523 2025-11-04 18:02:34,529 - INFO - Deleted policy ctest-policy-allow-all-94903876 2025-11-04 18:02:34,529 - INFO - Deleting VN ctest-vn-55375631 2025-11-04 18:02:34,569 - DEBUG - VN 67015a77-92c3-4ce5-b3b9-8113941e6744 still in use: Unable to complete operation on network 67015a77-92c3-4ce5-b3b9-8113941e6744. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b70da847-cbff-45b9-affc-f44ec0d3280f'] 2025-11-04 18:02:34,569 - WARNING - Deleting VN ctest-vn-55375631 failed..Will retry 2025-11-04 18:02:36,700 - DEBUG - Response for deleting network () 2025-11-04 18:02:36,700 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/68370e00-b4dd-430e-a412-466b25b824db 2025-11-04 18:02:36,707 - DEBUG - Response Code: 404 2025-11-04 18:02:36,707 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 18:02:36,713 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b 2025-11-04 18:02:36,770 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902 2025-11-04 18:02:36,847 - INFO - Validated that VN ctest-vn-55375631 is not found in API Server 2025-11-04 18:02:36,858 - DEBUG - VN ctest-vn-55375631 is not present in Agent 10.0.0.50 2025-11-04 18:02:36,858 - INFO - Validated that VN ctest-vn-55375631 is not in any agent 2025-11-04 18:02:36,876 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55375631 info 2025-11-04 18:02:36,876 - INFO - Deleting VN ctest-vn-56261563 2025-11-04 18:02:36,979 - DEBUG - Response for deleting network () 2025-11-04 18:02:36,979 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c7c3133-9c02-4e39-9e03-49e64eb39f6f 2025-11-04 18:02:36,987 - DEBUG - Response Code: 404 2025-11-04 18:02:36,987 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 18:02:36,993 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f74418c-e2a6-4590-82b6-90aafafe446b 2025-11-04 18:02:37,048 - DEBUG - Requesting: http://10.0.0.50:8082/project/4db94cfd-e1b2-40f6-b6af-dce46fb0d902 2025-11-04 18:02:37,123 - INFO - Validated that VN ctest-vn-56261563 is not found in API Server 2025-11-04 18:02:37,134 - DEBUG - VN ctest-vn-56261563 is not present in Agent 10.0.0.50 2025-11-04 18:02:37,134 - INFO - Validated that VN ctest-vn-56261563 is not in any agent 2025-11-04 18:02:37,150 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56261563 info 2025-11-04 18:02:37,409 - DEBUG - No XMPP flaps were noticed during the test
2025-11-04 18:02:37,409 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-11-04 18:02:37,409 - INFO - -------------------------------------------------------------------------------- 2025-11-04 18:02:38,133 - INFO - Deleted project: ctest-TestBasicPolicy-16104484, ID : 4db94cfd-e1b2-40f6-b6af-dce46fb0d902