2025-04-15 12:15:52,746 - INFO - Domain Default found not creating 2025-04-15 12:15:52,906 - INFO - Project ctest-TestBasicPolicy-13923170 not found, creating it 2025-04-15 12:15:53,393 - INFO - Created Project:ctest-TestBasicPolicy-13923170, ID : fb21011f-c0a8-487c-a936-744d94cb7d56 2025-04-15 12:15:54,950 - INFO - ================================================================================ 2025-04-15 12:15:54,950 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-15 12:15:54,950 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-04-15 12:15:55,208 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-04-15 12:15:55,208 - INFO - Initial checks done. Running the testcase now 2025-04-15 12:15:55,208 - INFO - 2025-04-15 12:15:55,795 - DEBUG - Response for create_network : {'network': {'id': '8affe8fe-0442-4fd6-a161-cbce2ec9d006', 'name': 'ctest-vn-49799817', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-49799817'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:15:55,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '488e01be-dec9-4132-ba06-90753cdc0cb3', 'name': '', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'network_id': '8affe8fe-0442-4fd6-a161-cbce2ec9d006', 'ip_version': 4, 'cidr': '15.167.81.64/26', 'allocation_pools': [{'start': '15.167.81.66', 'end': '15.167.81.126'}], 'gateway_ip': '15.167.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.167.81.66', 'tags': [], 'project_id': 'fb21011fc0a8487ca936744d94cb7d56'}} 2025-04-15 12:15:56,001 - INFO - Created VN ctest-vn-49799817 2025-04-15 12:15:56,059 - DEBUG - VN ctest-vn-49799817 UUID is 8affe8fe-0442-4fd6-a161-cbce2ec9d006 2025-04-15 12:15:56,373 - DEBUG - Response for create_network : {'network': {'id': '60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f', 'name': 'ctest-vn-04208360', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-04208360'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:15:56,550 - DEBUG - Response for create_subnet : {'subnet': {'id': '95847328-eae1-43ac-9d1d-c709531d37ee', 'name': '', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'network_id': '60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f', 'ip_version': 4, 'cidr': '160.114.80.64/26', 'allocation_pools': [{'start': '160.114.80.66', 'end': '160.114.80.126'}], 'gateway_ip': '160.114.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.114.80.66', 'tags': [], 'project_id': 'fb21011fc0a8487ca936744d94cb7d56'}} 2025-04-15 12:15:56,573 - INFO - Created VN ctest-vn-04208360 2025-04-15 12:15:56,631 - DEBUG - VN ctest-vn-04208360 UUID is 60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f 2025-04-15 12:15:56,759 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817, 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-13923170:ctest-vn-04208360, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-04-15 12:15:57,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8affe8fe-0442-4fd6-a161-cbce2ec9d006', 'name': 'ctest-vn-49799817', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['488e01be-dec9-4132-ba06-90753cdc0cb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-49799817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251']], 'subnet_ipam': [{'subnet_cidr': '15.167.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:15:57,302 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f', 'name': 'ctest-vn-04208360', 'tenant_id': 'fb21011fc0a8487ca936744d94cb7d56', 'project_id': 'fb21011fc0a8487ca936744d94cb7d56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95847328-eae1-43ac-9d1d-c709531d37ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-vn-04208360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251']], 'subnet_ipam': [{'subnet_cidr': '160.114.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 12:15:57,456 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 12:15:57,755 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 12:15:57,791 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3 2025-04-15 12:15:57,807 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56 2025-04-15 12:15:57,891 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006 2025-04-15 12:15:57,904 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006 2025-04-15 12:15:57,916 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b 2025-04-15 12:15:57,925 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b 2025-04-15 12:15:57,934 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fd175d56-97ff-454c-998a-209049341fee 2025-04-15 12:15:57,943 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 12:15:57,943 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006 2025-04-15 12:15:57,954 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b 2025-04-15 12:15:57,972 - INFO - Verified VN network id 8 for VN 8affe8fe-0442-4fd6-a161-cbce2ec9d006 2025-04-15 12:15:57,972 - INFO - Verifications in API Server for VN ctest-vn-49799817 passed 2025-04-15 12:15:57,973 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006 2025-04-15 12:15:57,983 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b 2025-04-15 12:15:57,992 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b 2025-04-15 12:15:58,000 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fd175d56-97ff-454c-998a-209049341fee 2025-04-15 12:15:58,014 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13923170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10015980273986064342', 'uuid-lslong': '11628799799256010758'}, 'enable': 'true', 'created': '2025-04-15T12:15:55', 'last-modified': '2025-04-15T12:15:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978420'} 2025-04-15 12:15:58,021 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 12:15:58,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49799817 passed 2025-04-15 12:15:58,021 - DEBUG - ====Verifying policy data for ctest-vn-49799817 in API_Server ====== 2025-04-15 12:15:58,021 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 12:15:58,028 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3 2025-04-15 12:15:58,041 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56 2025-04-15 12:15:58,121 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8affe8fe-0442-4fd6-a161-cbce2ec9d006 2025-04-15 12:15:58,131 - DEBUG - ==>Verifying data for policy with id: 3a8f2e6a-0ce7-42bb-814e-e83ca695d1f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251'] 2025-04-15 12:15:58,131 - INFO - VN ctest-vn-49799817 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 12:15:58,131 - DEBUG - Verifying the vn in opserver 2025-04-15 12:15:58,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817 virtual network link through opserver 10.0.0.65 2025-04-15 12:15:58,132 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 12:15:58,424 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 12:15:58,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817?flat'} 2025-04-15 12:15:58,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817 is found in opserver 2025-04-15 12:15:58,500 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 12:15:58,506 - DEBUG - VRF ids for VN ctest-vn-49799817: {} 2025-04-15 12:15:58,506 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 12:15:58,515 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3 2025-04-15 12:15:58,530 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56 2025-04-15 12:15:58,611 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f 2025-04-15 12:15:58,624 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f 2025-04-15 12:15:58,635 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2 2025-04-15 12:15:58,645 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2 2025-04-15 12:15:58,654 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c4920bf-a02c-4cf6-86cb-9d36da7d6069 2025-04-15 12:15:58,662 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 12:15:58,662 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f 2025-04-15 12:15:58,673 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2 2025-04-15 12:15:58,693 - INFO - Verified VN network id 9 for VN 60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f 2025-04-15 12:15:58,693 - INFO - Verifications in API Server for VN ctest-vn-04208360 passed 2025-04-15 12:15:58,693 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f 2025-04-15 12:15:58,705 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2 2025-04-15 12:15:58,714 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2 2025-04-15 12:15:58,725 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c4920bf-a02c-4cf6-86cb-9d36da7d6069 2025-04-15 12:15:58,740 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13923170', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6927414130721574492', 'uuid-lslong': '12967208087077993119'}, 'enable': 'true', 'created': '2025-04-15T12:15:56', 'last-modified': '2025-04-15T12:15:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464295'} 2025-04-15 12:15:58,747 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 12:15:58,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04208360 passed 2025-04-15 12:15:58,748 - DEBUG - ====Verifying policy data for ctest-vn-04208360 in API_Server ====== 2025-04-15 12:15:58,748 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 12:15:58,754 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3 2025-04-15 12:15:58,768 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56 2025-04-15 12:15:58,841 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f 2025-04-15 12:15:58,855 - DEBUG - ==>Verifying data for policy with id: 3a8f2e6a-0ce7-42bb-814e-e83ca695d1f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-13923170', 'ctest-policy-allow-all-22317251'] 2025-04-15 12:15:58,856 - INFO - VN ctest-vn-04208360 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 12:15:58,856 - DEBUG - Verifying the vn in opserver 2025-04-15 12:15:58,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360 virtual network link through opserver 10.0.0.65 2025-04-15 12:15:58,856 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 12:15:58,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360?flat'} 2025-04-15 12:15:58,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-04208360 is found in opserver 2025-04-15 12:15:58,883 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 12:15:58,889 - DEBUG - VRF ids for VN ctest-vn-04208360: {} 2025-04-15 12:15:58,952 - DEBUG - Services list from nova: [, , ] 2025-04-15 12:16:00,048 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3116-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3116-1) 2025-04-15 12:16:01,384 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3116-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3116-1) 2025-04-15 12:16:01,384 - INFO - Waiting for VM ctest-TestBasicPolicy-13923170-68601705 to be up.. 2025-04-15 12:16:01,476 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-15 12:16:06,574 - DEBUG - VM is in ACTIVE state now 2025-04-15 12:16:06,574 - INFO - VM name : ctest-TestBasicPolicy-13923170-68601705 2025-04-15 12:16:06,665 - DEBUG - VM ctest-TestBasicPolicy-13923170-68601705 ID is 1bfbf1be-495e-4da5-80b6-f157a88be983 2025-04-15 12:16:06,688 - DEBUG - VM ctest-TestBasicPolicy-13923170-68601705 launched on Node cn-jenkins-deploy-platform-ansible-os-3116-1 2025-04-15 12:16:06,777 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/1bfbf1be-495e-4da5-80b6-f157a88be983 2025-04-15 12:16:06,787 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/9e2af084-2884-4802-addb-3e7a84777589 2025-04-15 12:16:10,043 - 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 1003ms') 2025-04-15 12:16:10,043 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13923170-68601705 failed! 2025-04-15 12:16:10,099 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13923170:ctest-vn-49799817 is 15.167.81.65 and allocation pool is NOT set 2025-04-15 12:16:12,166 - 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=9.24 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.02 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.015/5.627/9.239/3.612 ms') 2025-04-15 12:16:12,167 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13923170-68601705 passed 2025-04-15 12:16:12,319 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:16:12,320 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13923170-68601705, IP 15.167.81.67, Port 22 2025-04-15 12:16:12,374 - 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-04-15 12:16:12,458 - DEBUG - VM ctest-TestBasicPolicy-13923170-68601705 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-15 12:16:17,459 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:16:17,459 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13923170-68601705, IP 15.167.81.67, Port 22 2025-04-15 12:16:17,619 - DEBUG - VM ctest-TestBasicPolicy-13923170-68601705 is ready for SSH connections 2025-04-15 12:16:17,619 - INFO - Waiting for VM ctest-TestBasicPolicy-13923170-04132589 to be up.. 2025-04-15 12:16:17,698 - DEBUG - VM is in ACTIVE state now 2025-04-15 12:16:17,698 - INFO - VM name : ctest-TestBasicPolicy-13923170-04132589 2025-04-15 12:16:17,783 - DEBUG - VM ctest-TestBasicPolicy-13923170-04132589 ID is fd6a4669-b919-4d1e-8e98-051bb523872b 2025-04-15 12:16:17,784 - DEBUG - VM ctest-TestBasicPolicy-13923170-04132589 launched on Node cn-jenkins-deploy-platform-ansible-os-3116-1 2025-04-15 12:16:17,869 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/fd6a4669-b919-4d1e-8e98-051bb523872b 2025-04-15 12:16:17,879 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/6efe0538-c234-4b61-9ec7-c36fb2bb5110 2025-04-15 12:16:19,127 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.493 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.493/1.685/2.877/1.192 ms') 2025-04-15 12:16:19,128 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13923170-04132589 passed 2025-04-15 12:16:19,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:16:19,283 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13923170-04132589, IP 160.114.80.67, Port 22 2025-04-15 12:16:19,439 - DEBUG - VM ctest-TestBasicPolicy-13923170-04132589 is ready for SSH connections 2025-04-15 12:16:19,439 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:16:19,439 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.114.80.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-15 12:16:19,439 - DEBUG - ping -s 56 -c 3 -W 1 160.114.80.67 2025-04-15 12:16:23,162 - DEBUG - PING 160.114.80.67 (160.114.80.67): 56 data bytes 64 bytes from 160.114.80.67: seq=0 ttl=63 time=4.006 ms 64 bytes from 160.114.80.67: seq=1 ttl=63 time=1.015 ms 64 bytes from 160.114.80.67: seq=2 ttl=63 time=0.949 ms --- 160.114.80.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.949/1.990/4.006 ms 2025-04-15 12:16:23,162 - INFO - Ping to IP 160.114.80.67 from VM ctest-TestBasicPolicy-13923170-68601705 passed 2025-04-15 12:16:23,351 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3a8f2e6a-0ce7-42bb-814e-e83ca695d1f5", "href": "http://10.0.0.65:8082/network-policy/3a8f2e6a-0ce7-42bb-814e-e83ca695d1f5"}} 2025-04-15 12:16:23,351 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 12:16:23,351 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.114.80.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-15 12:16:23,351 - DEBUG - ping -s 56 -c 3 -W 1 160.114.80.67 2025-04-15 12:16:26,573 - DEBUG - PING 160.114.80.67 (160.114.80.67): 56 data bytes 64 bytes from 160.114.80.67: seq=0 ttl=63 time=1.588 ms --- 160.114.80.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.588/1.588/1.588 ms 2025-04-15 12:16:26,573 - WARNING - Ping to IP 160.114.80.67 from VM ctest-TestBasicPolicy-13923170-68601705 failed 2025-04-15 12:16:26,573 - INFO - Deleting VM ctest-TestBasicPolicy-13923170-04132589 2025-04-15 12:16:26,656 - INFO - Deleting VM ctest-TestBasicPolicy-13923170-68601705 2025-04-15 12:16:27,082 - INFO - Deleted policy ctest-policy-allow-all-22317251 2025-04-15 12:16:27,083 - INFO - Deleting VN ctest-vn-04208360 2025-04-15 12:16:27,128 - DEBUG - VN 60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f still in use: Unable to complete operation on network 60231e72-e9ae-4e5c-b3f4-c70d4edb3a9f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-23575c92-e0ae-4c1e-a3f4-d86f94c68c12'] 2025-04-15 12:16:27,128 - WARNING - Deleting VN ctest-vn-04208360 failed..Will retry 2025-04-15 12:16:29,257 - DEBUG - Response for deleting network () 2025-04-15 12:16:29,258 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bec9eb21-de94-4efd-96e8-29679b88b3f2 2025-04-15 12:16:29,265 - DEBUG - Response Code: 404 2025-04-15 12:16:29,265 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 12:16:29,274 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3 2025-04-15 12:16:29,331 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56 2025-04-15 12:16:29,405 - INFO - Validated that VN ctest-vn-04208360 is not found in API Server 2025-04-15 12:16:29,417 - DEBUG - VN ctest-vn-04208360 is not present in Agent 10.0.0.65 2025-04-15 12:16:29,417 - INFO - Validated that VN ctest-vn-04208360 is not in any agent 2025-04-15 12:16:29,435 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04208360 info 2025-04-15 12:16:29,435 - INFO - Deleting VN ctest-vn-49799817 2025-04-15 12:16:29,559 - DEBUG - Response for deleting network () 2025-04-15 12:16:29,559 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/50a2d1ec-e09d-430a-8981-f2986cf9ab2b 2025-04-15 12:16:29,569 - DEBUG - Response Code: 404 2025-04-15 12:16:29,569 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 12:16:29,576 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b2f0a473-1359-4c22-add2-274b9c6503b3 2025-04-15 12:16:29,634 - DEBUG - Requesting: http://10.0.0.65:8082/project/fb21011f-c0a8-487c-a936-744d94cb7d56 2025-04-15 12:16:29,716 - INFO - Validated that VN ctest-vn-49799817 is not found in API Server 2025-04-15 12:16:29,728 - DEBUG - VN ctest-vn-49799817 is not present in Agent 10.0.0.65 2025-04-15 12:16:29,728 - INFO - Validated that VN ctest-vn-49799817 is not in any agent 2025-04-15 12:16:29,745 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49799817 info 2025-04-15 12:16:30,002 - DEBUG - No XMPP flaps were noticed during the test 2025-04-15 12:16:30,002 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-04-15 12:16:30,002 - INFO - -------------------------------------------------------------------------------- 2025-04-15 12:16:31,020 - INFO - Deleted project: ctest-TestBasicPolicy-13923170, ID : fb21011f-c0a8-487c-a936-744d94cb7d56