2025-06-10 13:12:58,574 - INFO - Domain Default found not creating 2025-06-10 13:12:58,723 - INFO - Project ctest-TestBasicPolicy-85520711 not found, creating it 2025-06-10 13:12:59,226 - INFO - Created Project:ctest-TestBasicPolicy-85520711, ID : 4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9 2025-06-10 13:13:00,855 - INFO - ================================================================================ 2025-06-10 13:13:00,855 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-10 13:13:00,856 - 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-10 13:13:01,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-06-10 13:13:01,114 - INFO - Initial checks done. Running the testcase now 2025-06-10 13:13:01,114 - INFO - 2025-06-10 13:13:01,718 - DEBUG - Response for create_network : {'network': {'id': '37b32f97-85f4-4dda-ba7a-907085493d92', 'name': 'ctest-vn-06571234', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-06571234'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 13:13:01,917 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff45e75f-4371-4ab3-aaa8-a17a09ddb431', 'name': '', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'network_id': '37b32f97-85f4-4dda-ba7a-907085493d92', 'ip_version': 4, 'cidr': '128.76.31.0/26', 'allocation_pools': [{'start': '128.76.31.2', 'end': '128.76.31.62'}], 'gateway_ip': '128.76.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.76.31.2', 'tags': [], 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9'}} 2025-06-10 13:13:01,937 - INFO - Created VN ctest-vn-06571234 2025-06-10 13:13:01,991 - DEBUG - VN ctest-vn-06571234 UUID is 37b32f97-85f4-4dda-ba7a-907085493d92 2025-06-10 13:13:02,307 - DEBUG - Response for create_network : {'network': {'id': '6dcfe08a-621d-4cfa-942c-a083ba846620', 'name': 'ctest-vn-35406288', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-35406288'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 13:13:02,518 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c98e98fd-1bf9-4e9e-b271-fbef8d55cf5e', 'name': '', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'network_id': '6dcfe08a-621d-4cfa-942c-a083ba846620', 'ip_version': 4, 'cidr': '171.194.192.192/26', 'allocation_pools': [{'start': '171.194.192.194', 'end': '171.194.192.254'}], 'gateway_ip': '171.194.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.194.192.194', 'tags': [], 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9'}} 2025-06-10 13:13:02,540 - INFO - Created VN ctest-vn-35406288 2025-06-10 13:13:02,595 - DEBUG - VN ctest-vn-35406288 UUID is 6dcfe08a-621d-4cfa-942c-a083ba846620 2025-06-10 13:13:02,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234, 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-85520711:ctest-vn-35406288, 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-10 13:13:03,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37b32f97-85f4-4dda-ba7a-907085493d92', 'name': 'ctest-vn-06571234', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff45e75f-4371-4ab3-aaa8-a17a09ddb431'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-06571234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000']], 'subnet_ipam': [{'subnet_cidr': '128.76.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 13:13:03,335 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dcfe08a-621d-4cfa-942c-a083ba846620', 'name': 'ctest-vn-35406288', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c98e98fd-1bf9-4e9e-b271-fbef8d55cf5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-35406288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000']], 'subnet_ipam': [{'subnet_cidr': '171.194.192.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 13:13:03,519 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 13:13:03,859 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 13:13:03,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d 2025-06-10 13:13:03,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9 2025-06-10 13:13:03,993 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92 2025-06-10 13:13:04,009 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92 2025-06-10 13:13:04,024 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec 2025-06-10 13:13:04,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec 2025-06-10 13:13:04,041 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b1800052-ce7b-4856-b2ad-38f59ed62ace 2025-06-10 13:13:04,048 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 13:13:04,048 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92 2025-06-10 13:13:04,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec 2025-06-10 13:13:04,075 - INFO - Verified VN network id 9 for VN 37b32f97-85f4-4dda-ba7a-907085493d92 2025-06-10 13:13:04,076 - INFO - Verifications in API Server for VN ctest-vn-06571234 passed 2025-06-10 13:13:04,076 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92 2025-06-10 13:13:04,086 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec 2025-06-10 13:13:04,094 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec 2025-06-10 13:13:04,105 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b1800052-ce7b-4856-b2ad-38f59ed62ace 2025-06-10 13:13:04,126 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85520711', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4013604020751191514', 'uuid-lslong': '13437211251160202642'}, 'enable': 'true', 'created': '2025-06-10T13:13:01', 'last-modified': '2025-06-10T13:13:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.097078'} 2025-06-10 13:13:04,134 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 13:13:04,135 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06571234 passed 2025-06-10 13:13:04,135 - DEBUG - ====Verifying policy data for ctest-vn-06571234 in API_Server ====== 2025-06-10 13:13:04,135 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 13:13:04,141 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d 2025-06-10 13:13:04,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9 2025-06-10 13:13:04,227 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92 2025-06-10 13:13:04,238 - DEBUG - ==>Verifying data for policy with id: 68e03c89-0b90-4e78-84c6-19390199cc19, fqn: ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000'] 2025-06-10 13:13:04,239 - INFO - VN ctest-vn-06571234 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 13:13:04,239 - DEBUG - Verifying the vn in opserver 2025-06-10 13:13:04,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234 virtual network link through opserver 10.0.0.38 2025-06-10 13:13:04,239 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-10 13:13:04,574 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-10 13:13:04,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234?flat'} 2025-06-10 13:13:04,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234 is found in opserver 2025-06-10 13:13:04,646 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 13:13:04,652 - DEBUG - VRF ids for VN ctest-vn-06571234: {} 2025-06-10 13:13:04,652 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 13:13:04,658 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d 2025-06-10 13:13:04,671 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9 2025-06-10 13:13:04,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620 2025-06-10 13:13:04,755 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620 2025-06-10 13:13:04,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131 2025-06-10 13:13:04,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131 2025-06-10 13:13:04,784 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c13a77a3-f717-4ed7-936c-61c37ba0f2b5 2025-06-10 13:13:04,792 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 13:13:04,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620 2025-06-10 13:13:04,804 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131 2025-06-10 13:13:04,820 - INFO - Verified VN network id 10 for VN 6dcfe08a-621d-4cfa-942c-a083ba846620 2025-06-10 13:13:04,820 - INFO - Verifications in API Server for VN ctest-vn-35406288 passed 2025-06-10 13:13:04,820 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620 2025-06-10 13:13:04,830 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131 2025-06-10 13:13:04,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131 2025-06-10 13:13:04,847 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c13a77a3-f717-4ed7-936c-61c37ba0f2b5 2025-06-10 13:13:04,863 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85520711', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7912789955269446906', 'uuid-lslong': '10677085304219002400'}, 'enable': 'true', 'created': '2025-06-10T13:13:02', 'last-modified': '2025-06-10T13:13:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.552069'} 2025-06-10 13:13:04,871 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 13:13:04,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35406288 passed 2025-06-10 13:13:04,871 - DEBUG - ====Verifying policy data for ctest-vn-35406288 in API_Server ====== 2025-06-10 13:13:04,872 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 13:13:04,879 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d 2025-06-10 13:13:04,894 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9 2025-06-10 13:13:04,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620 2025-06-10 13:13:04,982 - DEBUG - ==>Verifying data for policy with id: 68e03c89-0b90-4e78-84c6-19390199cc19, fqn: ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000'] 2025-06-10 13:13:04,982 - INFO - VN ctest-vn-35406288 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 13:13:04,982 - DEBUG - Verifying the vn in opserver 2025-06-10 13:13:04,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288 virtual network link through opserver 10.0.0.38 2025-06-10 13:13:04,982 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-10 13:13:04,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288?flat'} 2025-06-10 13:13:04,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288 is found in opserver 2025-06-10 13:13:05,006 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 13:13:05,013 - DEBUG - VRF ids for VN ctest-vn-35406288: {} 2025-06-10 13:13:05,077 - DEBUG - Services list from nova: [, , ] 2025-06-10 13:13:06,210 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3433-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3433-1) 2025-06-10 13:13:07,560 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3433-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3433-1) 2025-06-10 13:13:07,560 - INFO - Waiting for VM ctest-TestBasicPolicy-85520711-28549284 to be up.. 2025-06-10 13:13:07,643 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-10 13:13:12,737 - DEBUG - VM is in ACTIVE state now 2025-06-10 13:13:12,737 - INFO - VM name : ctest-TestBasicPolicy-85520711-28549284 2025-06-10 13:13:12,816 - DEBUG - VM ctest-TestBasicPolicy-85520711-28549284 ID is c59cc7c7-66f9-4de7-b2d2-b5609d5fbf3a 2025-06-10 13:13:12,837 - DEBUG - VM ctest-TestBasicPolicy-85520711-28549284 launched on Node cn-jenkins-deploy-platform-ansible-os-3433-1 2025-06-10 13:13:12,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c59cc7c7-66f9-4de7-b2d2-b5609d5fbf3a 2025-06-10 13:13:12,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/1bdd78a8-1765-49e5-984f-d13fe05aa029 2025-06-10 13:13:16,200 - 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-06-10 13:13:16,200 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85520711-28549284 failed! 2025-06-10 13:13:16,255 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234 is 128.76.31.1 and allocation pool is NOT set 2025-06-10 13:13:18,316 - 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=8.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.823 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.823/4.731/8.640/3.908 ms') 2025-06-10 13:13:18,316 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85520711-28549284 passed 2025-06-10 13:13:18,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 13:13:18,475 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85520711-28549284, IP 128.76.31.3, Port 22 2025-06-10 13:13:18,542 - 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-10 13:13:18,642 - DEBUG - VM ctest-TestBasicPolicy-85520711-28549284 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-10 13:13:23,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 13:13:23,642 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85520711-28549284, IP 128.76.31.3, Port 22 2025-06-10 13:13:23,798 - DEBUG - VM ctest-TestBasicPolicy-85520711-28549284 is ready for SSH connections 2025-06-10 13:13:23,798 - INFO - Waiting for VM ctest-TestBasicPolicy-85520711-35701618 to be up.. 2025-06-10 13:13:23,881 - DEBUG - VM is in ACTIVE state now 2025-06-10 13:13:23,881 - INFO - VM name : ctest-TestBasicPolicy-85520711-35701618 2025-06-10 13:13:23,975 - DEBUG - VM ctest-TestBasicPolicy-85520711-35701618 ID is 75f01546-7d19-4e2a-8589-5cc17b5e8b2d 2025-06-10 13:13:23,975 - DEBUG - VM ctest-TestBasicPolicy-85520711-35701618 launched on Node cn-jenkins-deploy-platform-ansible-os-3433-1 2025-06-10 13:13:24,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/75f01546-7d19-4e2a-8589-5cc17b5e8b2d 2025-06-10 13:13:24,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/8e3aa4a6-dc20-4934-98c7-50b1953db25e 2025-06-10 13:13:25,320 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.347 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.347/2.030/3.714/1.683 ms') 2025-06-10 13:13:25,320 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85520711-35701618 passed 2025-06-10 13:13:25,479 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 13:13:25,479 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85520711-35701618, IP 171.194.192.195, Port 22 2025-06-10 13:13:25,635 - DEBUG - VM ctest-TestBasicPolicy-85520711-35701618 is ready for SSH connections 2025-06-10 13:13:25,635 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 13:13:25,635 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 171.194.192.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-10 13:13:25,635 - DEBUG - ping -s 56 -c 3 -W 1 171.194.192.195 2025-06-10 13:13:29,374 - DEBUG - PING 171.194.192.195 (171.194.192.195): 56 data bytes 64 bytes from 171.194.192.195: seq=0 ttl=63 time=3.510 ms 64 bytes from 171.194.192.195: seq=1 ttl=63 time=0.773 ms 64 bytes from 171.194.192.195: seq=2 ttl=63 time=0.841 ms --- 171.194.192.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.773/1.708/3.510 ms 2025-06-10 13:13:29,375 - INFO - Ping to IP 171.194.192.195 from VM ctest-TestBasicPolicy-85520711-28549284 passed 2025-06-10 13:13:29,563 - DEBUG - Policy Update Response {"network-policy": {"uuid": "68e03c89-0b90-4e78-84c6-19390199cc19", "href": "http://10.0.0.38:8082/network-policy/68e03c89-0b90-4e78-84c6-19390199cc19"}} 2025-06-10 13:13:29,563 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 13:13:29,563 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 171.194.192.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-10 13:13:29,563 - DEBUG - ping -s 56 -c 3 -W 1 171.194.192.195 2025-06-10 13:13:32,786 - DEBUG - PING 171.194.192.195 (171.194.192.195): 56 data bytes 64 bytes from 171.194.192.195: seq=0 ttl=63 time=1.683 ms --- 171.194.192.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.683/1.683/1.683 ms 2025-06-10 13:13:32,786 - WARNING - Ping to IP 171.194.192.195 from VM ctest-TestBasicPolicy-85520711-28549284 failed 2025-06-10 13:13:32,787 - INFO - Deleting VM ctest-TestBasicPolicy-85520711-35701618 2025-06-10 13:13:32,856 - INFO - Deleting VM ctest-TestBasicPolicy-85520711-28549284 2025-06-10 13:13:33,273 - INFO - Deleted policy ctest-policy-allow-all-37090000 2025-06-10 13:13:33,273 - INFO - Deleting VN ctest-vn-35406288 2025-06-10 13:13:33,313 - DEBUG - VN 6dcfe08a-621d-4cfa-942c-a083ba846620 still in use: Unable to complete operation on network 6dcfe08a-621d-4cfa-942c-a083ba846620. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-572c92a2-3e0c-4c37-8b5b-9c56b2c8a497'] 2025-06-10 13:13:33,313 - WARNING - Deleting VN ctest-vn-35406288 failed..Will retry 2025-06-10 13:13:35,435 - DEBUG - Response for deleting network () 2025-06-10 13:13:35,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131 2025-06-10 13:13:35,443 - DEBUG - Response Code: 404 2025-06-10 13:13:35,443 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 13:13:35,454 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d 2025-06-10 13:13:35,518 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9 2025-06-10 13:13:35,597 - INFO - Validated that VN ctest-vn-35406288 is not found in API Server 2025-06-10 13:13:35,609 - DEBUG - VN ctest-vn-35406288 is not present in Agent 10.0.0.38 2025-06-10 13:13:35,609 - INFO - Validated that VN ctest-vn-35406288 is not in any agent 2025-06-10 13:13:35,631 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35406288 info 2025-06-10 13:13:35,631 - INFO - Deleting VN ctest-vn-06571234 2025-06-10 13:13:35,752 - DEBUG - Response for deleting network () 2025-06-10 13:13:35,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec 2025-06-10 13:13:35,760 - DEBUG - Response Code: 404 2025-06-10 13:13:35,761 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 13:13:35,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d 2025-06-10 13:13:35,820 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9 2025-06-10 13:13:35,896 - INFO - Validated that VN ctest-vn-06571234 is not found in API Server 2025-06-10 13:13:35,911 - DEBUG - VN ctest-vn-06571234 is not present in Agent 10.0.0.38 2025-06-10 13:13:35,912 - INFO - Validated that VN ctest-vn-06571234 is not in any agent 2025-06-10 13:13:35,929 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06571234 info 2025-06-10 13:13:36,200 - DEBUG - No XMPP flaps were noticed during the test
2025-06-10 13:13:36,200 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-10 13:13:36,200 - INFO - -------------------------------------------------------------------------------- 2025-06-10 13:13:36,928 - INFO - Deleted project: ctest-TestBasicPolicy-85520711, ID : 4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9