2025-07-22 08:59:48,140 - INFO - Domain Default found not creating 2025-07-22 08:59:48,531 - INFO - Project ctest-TestBasicPolicy-92529331 not found, creating it 2025-07-22 08:59:49,253 - INFO - Created Project:ctest-TestBasicPolicy-92529331, ID : 8be958d7-4073-48f4-beff-3834a249ba03 2025-07-22 08:59:51,533 - INFO - ================================================================================ 2025-07-22 08:59:51,533 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-22 08:59:51,533 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-07-22 08:59:51,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-07-22 08:59:51,848 - INFO - Initial checks done. Running the testcase now 2025-07-22 08:59:51,849 - INFO - 2025-07-22 08:59:52,842 - DEBUG - Response for create_network : {'network': {'id': 'a8100bdb-c0e8-4aff-b250-bcd34690b858', 'name': 'ctest-vn-29609814', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-29609814'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 08:59:53,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ebbd958-b0c6-4a17-8bd9-4c72e74caeb8', 'name': '', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'network_id': 'a8100bdb-c0e8-4aff-b250-bcd34690b858', 'ip_version': 4, 'cidr': '39.233.120.64/26', 'allocation_pools': [{'start': '39.233.120.66', 'end': '39.233.120.126'}], 'gateway_ip': '39.233.120.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.233.120.66', 'tags': [], 'project_id': '8be958d7407348f4beff3834a249ba03'}} 2025-07-22 08:59:53,055 - INFO - Created VN ctest-vn-29609814 2025-07-22 08:59:53,109 - DEBUG - VN ctest-vn-29609814 UUID is a8100bdb-c0e8-4aff-b250-bcd34690b858 2025-07-22 08:59:53,510 - DEBUG - Response for create_network : {'network': {'id': 'f2c43710-06d6-4978-ab6e-c587e42bfb79', 'name': 'ctest-vn-56595752', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-56595752'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 08:59:53,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '40d94f05-bdf3-4a66-9206-51bae13cd8cd', 'name': '', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'network_id': 'f2c43710-06d6-4978-ab6e-c587e42bfb79', 'ip_version': 4, 'cidr': '169.171.234.0/26', 'allocation_pools': [{'start': '169.171.234.2', 'end': '169.171.234.62'}], 'gateway_ip': '169.171.234.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.171.234.2', 'tags': [], 'project_id': '8be958d7407348f4beff3834a249ba03'}} 2025-07-22 08:59:53,776 - INFO - Created VN ctest-vn-56595752 2025-07-22 08:59:53,833 - DEBUG - VN ctest-vn-56595752 UUID is f2c43710-06d6-4978-ab6e-c587e42bfb79 2025-07-22 08:59:53,999 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814, 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-92529331:ctest-vn-56595752, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-07-22 08:59:54,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8100bdb-c0e8-4aff-b250-bcd34690b858', 'name': 'ctest-vn-29609814', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ebbd958-b0c6-4a17-8bd9-4c72e74caeb8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-29609814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369']], 'subnet_ipam': [{'subnet_cidr': '39.233.120.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 08:59:54,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2c43710-06d6-4978-ab6e-c587e42bfb79', 'name': 'ctest-vn-56595752', 'tenant_id': '8be958d7407348f4beff3834a249ba03', 'project_id': '8be958d7407348f4beff3834a249ba03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40d94f05-bdf3-4a66-9206-51bae13cd8cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-vn-56595752'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369']], 'subnet_ipam': [{'subnet_cidr': '169.171.234.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 08:59:54,917 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:55,238 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:55,284 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:55,312 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03 2025-07-22 08:59:55,421 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858 2025-07-22 08:59:55,460 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858 2025-07-22 08:59:55,492 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487 2025-07-22 08:59:55,511 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487 2025-07-22 08:59:55,537 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be8e5a8f-ce73-48f9-aacf-f9a446467197 2025-07-22 08:59:55,554 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 08:59:55,555 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858 2025-07-22 08:59:55,575 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487 2025-07-22 08:59:55,597 - INFO - Verified VN network id 11 for VN a8100bdb-c0e8-4aff-b250-bcd34690b858 2025-07-22 08:59:55,597 - INFO - Verifications in API Server for VN ctest-vn-29609814 passed 2025-07-22 08:59:55,597 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858 2025-07-22 08:59:55,611 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487 2025-07-22 08:59:55,621 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487 2025-07-22 08:59:55,631 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be8e5a8f-ce73-48f9-aacf-f9a446467197 2025-07-22 08:59:55,650 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92529331', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12110192436461456127', 'uuid-lslong': '12848977352496035928'}, 'enable': 'true', 'created': '2025-07-22T08:59:52', 'last-modified': '2025-07-22T08:59:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275045'} 2025-07-22 08:59:55,664 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 08:59:55,664 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29609814 passed 2025-07-22 08:59:55,664 - DEBUG - ====Verifying policy data for ctest-vn-29609814 in API_Server ====== 2025-07-22 08:59:55,664 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:55,673 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:55,691 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03 2025-07-22 08:59:55,791 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8100bdb-c0e8-4aff-b250-bcd34690b858 2025-07-22 08:59:55,809 - DEBUG - ==>Verifying data for policy with id: a5d2698d-5bc5-41f0-92c1-e851414d6bfe, fqn: ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369'] 2025-07-22 08:59:55,809 - INFO - VN ctest-vn-29609814 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 08:59:55,809 - DEBUG - Verifying the vn in opserver 2025-07-22 08:59:55,809 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814 virtual network link through opserver 10.0.0.50 2025-07-22 08:59:55,809 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 08:59:56,132 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 08:59:56,247 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814?flat'} 2025-07-22 08:59:56,247 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814 is found in opserver 2025-07-22 08:59:56,270 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 08:59:56,278 - DEBUG - VRF ids for VN ctest-vn-29609814: {} 2025-07-22 08:59:56,278 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:56,290 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:56,319 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03 2025-07-22 08:59:56,439 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79 2025-07-22 08:59:56,468 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79 2025-07-22 08:59:56,489 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e 2025-07-22 08:59:56,505 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e 2025-07-22 08:59:56,522 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/18b853fc-f4b0-494f-9793-650c0cae6f41 2025-07-22 08:59:56,537 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 08:59:56,537 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79 2025-07-22 08:59:56,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e 2025-07-22 08:59:56,586 - INFO - Verified VN network id 12 for VN f2c43710-06d6-4978-ab6e-c587e42bfb79 2025-07-22 08:59:56,586 - INFO - Verifications in API Server for VN ctest-vn-56595752 passed 2025-07-22 08:59:56,586 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79 2025-07-22 08:59:56,610 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e 2025-07-22 08:59:56,632 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e 2025-07-22 08:59:56,650 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/18b853fc-f4b0-494f-9793-650c0cae6f41 2025-07-22 08:59:56,677 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92529331', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17493167394587560312', 'uuid-lslong': '12353028015363193721'}, 'enable': 'true', 'created': '2025-07-22T08:59:53', 'last-modified': '2025-07-22T08:59:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.988293'} 2025-07-22 08:59:56,691 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 08:59:56,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56595752 passed 2025-07-22 08:59:56,691 - DEBUG - ====Verifying policy data for ctest-vn-56595752 in API_Server ====== 2025-07-22 08:59:56,691 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:56,704 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:56,732 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03 2025-07-22 08:59:56,850 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2c43710-06d6-4978-ab6e-c587e42bfb79 2025-07-22 08:59:56,866 - DEBUG - ==>Verifying data for policy with id: a5d2698d-5bc5-41f0-92c1-e851414d6bfe, fqn: ['default-domain', 'ctest-TestBasicPolicy-92529331', 'ctest-policy-allow-all-20211369'] 2025-07-22 08:59:56,866 - INFO - VN ctest-vn-56595752 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 08:59:56,866 - DEBUG - Verifying the vn in opserver 2025-07-22 08:59:56,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752 virtual network link through opserver 10.0.0.50 2025-07-22 08:59:56,866 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 08:59:56,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752?flat'} 2025-07-22 08:59:56,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-56595752 is found in opserver 2025-07-22 08:59:56,916 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 08:59:56,930 - DEBUG - VRF ids for VN ctest-vn-56595752: {} 2025-07-22 08:59:57,009 - DEBUG - Services list from nova: [, , ] 2025-07-22 08:59:58,520 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3685-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3685-1) 2025-07-22 09:00:00,095 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3685-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3685-1) 2025-07-22 09:00:00,095 - INFO - Waiting for VM ctest-TestBasicPolicy-92529331-09375184 to be up.. 2025-07-22 09:00:00,207 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 09:00:05,364 - DEBUG - VM is in ACTIVE state now 2025-07-22 09:00:05,364 - INFO - VM name : ctest-TestBasicPolicy-92529331-09375184 2025-07-22 09:00:05,492 - DEBUG - VM ctest-TestBasicPolicy-92529331-09375184 ID is 77b852fd-9477-48f7-8cbb-6d7e2d2dca08 2025-07-22 09:00:05,521 - DEBUG - VM ctest-TestBasicPolicy-92529331-09375184 launched on Node cn-jenkins-deploy-platform-ansible-os-3685-1 2025-07-22 09:00:05,608 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/77b852fd-9477-48f7-8cbb-6d7e2d2dca08 2025-07-22 09:00:05,622 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/007fb820-3af0-4b3e-9dac-e4db4488cba7 2025-07-22 09:00:08,945 - 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 1023ms') 2025-07-22 09:00:08,946 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92529331-09375184 failed! 2025-07-22 09:00:09,026 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92529331:ctest-vn-29609814 is 39.233.120.65 and allocation pool is NOT set 2025-07-22 09:00:11,092 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.01 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 = 3.013/4.228/5.443/1.215 ms') 2025-07-22 09:00:11,092 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92529331-09375184 passed 2025-07-22 09:00:11,261 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:00:11,261 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92529331-09375184, IP 39.233.120.67, Port 22 2025-07-22 09:00:11,332 - 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-07-22 09:00:11,480 - DEBUG - VM ctest-TestBasicPolicy-92529331-09375184 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 09:00:16,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:00:16,481 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92529331-09375184, IP 39.233.120.67, Port 22 2025-07-22 09:00:16,672 - DEBUG - VM ctest-TestBasicPolicy-92529331-09375184 is ready for SSH connections 2025-07-22 09:00:16,672 - INFO - Waiting for VM ctest-TestBasicPolicy-92529331-12025152 to be up.. 2025-07-22 09:00:16,812 - DEBUG - VM is in ACTIVE state now 2025-07-22 09:00:16,812 - INFO - VM name : ctest-TestBasicPolicy-92529331-12025152 2025-07-22 09:00:16,969 - DEBUG - VM ctest-TestBasicPolicy-92529331-12025152 ID is 48a272e2-a17e-4306-b366-324b4912a817 2025-07-22 09:00:16,970 - DEBUG - VM ctest-TestBasicPolicy-92529331-12025152 launched on Node cn-jenkins-deploy-platform-ansible-os-3685-1 2025-07-22 09:00:17,119 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/48a272e2-a17e-4306-b366-324b4912a817 2025-07-22 09:00:17,132 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/8a719ae2-6ccb-4cc9-afdc-a6b118a70df3 2025-07-22 09:00:18,422 - 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=6.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.632 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.632/3.693/6.754/3.061 ms') 2025-07-22 09:00:18,422 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-92529331-12025152 passed 2025-07-22 09:00:18,602 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:00:18,602 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92529331-12025152, IP 169.171.234.3, Port 22 2025-07-22 09:00:18,791 - DEBUG - VM ctest-TestBasicPolicy-92529331-12025152 is ready for SSH connections 2025-07-22 09:00:18,792 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:00:18,792 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 169.171.234.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-22 09:00:18,793 - DEBUG - ping -s 56 -c 3 -W 1 169.171.234.3 2025-07-22 09:00:23,090 - DEBUG - PING 169.171.234.3 (169.171.234.3): 56 data bytes 64 bytes from 169.171.234.3: seq=0 ttl=63 time=4.265 ms 64 bytes from 169.171.234.3: seq=1 ttl=63 time=1.450 ms 64 bytes from 169.171.234.3: seq=2 ttl=63 time=0.941 ms --- 169.171.234.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.941/2.218/4.265 ms 2025-07-22 09:00:23,090 - INFO - Ping to IP 169.171.234.3 from VM ctest-TestBasicPolicy-92529331-09375184 passed 2025-07-22 09:00:23,293 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a5d2698d-5bc5-41f0-92c1-e851414d6bfe", "href": "http://10.0.0.50:8082/network-policy/a5d2698d-5bc5-41f0-92c1-e851414d6bfe"}} 2025-07-22 09:00:23,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:00:23,293 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 169.171.234.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-22 09:00:23,293 - DEBUG - ping -s 56 -c 3 -W 1 169.171.234.3 2025-07-22 09:00:26,539 - DEBUG - PING 169.171.234.3 (169.171.234.3): 56 data bytes 64 bytes from 169.171.234.3: seq=0 ttl=63 time=1.924 ms --- 169.171.234.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.924/1.924/1.924 ms 2025-07-22 09:00:26,540 - WARNING - Ping to IP 169.171.234.3 from VM ctest-TestBasicPolicy-92529331-09375184 failed 2025-07-22 09:00:26,540 - INFO - Deleting VM ctest-TestBasicPolicy-92529331-12025152 2025-07-22 09:00:26,711 - INFO - Deleting VM ctest-TestBasicPolicy-92529331-09375184 2025-07-22 09:00:27,328 - INFO - Deleted policy ctest-policy-allow-all-20211369 2025-07-22 09:00:27,328 - INFO - Deleting VN ctest-vn-56595752 2025-07-22 09:00:27,386 - DEBUG - VN f2c43710-06d6-4978-ab6e-c587e42bfb79 still in use: Unable to complete operation on network f2c43710-06d6-4978-ab6e-c587e42bfb79. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e2e70b5f-09e8-44e8-bd99-1a47464cc4eb'] 2025-07-22 09:00:27,387 - WARNING - Deleting VN ctest-vn-56595752 failed..Will retry 2025-07-22 09:00:29,613 - DEBUG - Response for deleting network () 2025-07-22 09:00:29,613 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/33db23cb-f138-4d98-b76f-4da2b5c4e81e 2025-07-22 09:00:29,625 - DEBUG - Response Code: 404 2025-07-22 09:00:29,626 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 09:00:29,646 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 09:00:29,666 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03 2025-07-22 09:00:29,785 - INFO - Validated that VN ctest-vn-56595752 is not found in API Server 2025-07-22 09:00:29,800 - DEBUG - VN ctest-vn-56595752 is not present in Agent 10.0.0.50 2025-07-22 09:00:29,800 - INFO - Validated that VN ctest-vn-56595752 is not in any agent 2025-07-22 09:00:29,832 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56595752 info 2025-07-22 09:00:29,832 - INFO - Deleting VN ctest-vn-29609814 2025-07-22 09:00:30,007 - DEBUG - Response for deleting network () 2025-07-22 09:00:30,007 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/82a787a2-e9d8-4e48-acf6-c15be7bcf487 2025-07-22 09:00:30,015 - DEBUG - Response Code: 404 2025-07-22 09:00:30,015 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 09:00:30,025 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 09:00:30,085 - DEBUG - Requesting: http://10.0.0.50:8082/project/8be958d7-4073-48f4-beff-3834a249ba03 2025-07-22 09:00:30,178 - INFO - Validated that VN ctest-vn-29609814 is not found in API Server 2025-07-22 09:00:30,195 - DEBUG - VN ctest-vn-29609814 is not present in Agent 10.0.0.50 2025-07-22 09:00:30,195 - INFO - Validated that VN ctest-vn-29609814 is not in any agent 2025-07-22 09:00:30,216 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29609814 info 2025-07-22 09:00:30,523 - DEBUG - No XMPP flaps were noticed during the test
2025-07-22 09:00:30,523 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-07-22 09:00:30,523 - INFO - -------------------------------------------------------------------------------- 2025-07-22 09:00:31,445 - INFO - Deleted project: ctest-TestBasicPolicy-92529331, ID : 8be958d7-4073-48f4-beff-3834a249ba03