2025-03-31 02:24:51,159 - INFO - Domain Default found not creating 2025-03-31 02:24:51,305 - INFO - Project ctest-TestBasicPolicy-73715491 not found, creating it 2025-03-31 02:24:51,778 - INFO - Created Project:ctest-TestBasicPolicy-73715491, ID : f97c5a85-ede5-4bf5-9678-c18ddd666b87 2025-03-31 02:24:53,252 - INFO - ================================================================================ 2025-03-31 02:24:53,252 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-31 02:24:53,252 - 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-03-31 02:24:53,508 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2025-03-31 02:24:53,509 - INFO - Initial checks done. Running the testcase now 2025-03-31 02:24:53,509 - INFO - 2025-03-31 02:24:54,057 - DEBUG - Response for create_network : {'network': {'id': 'cffb734a-b628-49f2-a748-9b3f2e05b5ea', 'name': 'ctest-vn-60461248', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-60461248'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:24:54,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b1ac861-0b97-46a5-b906-3e49f184209a', 'name': '', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'network_id': 'cffb734a-b628-49f2-a748-9b3f2e05b5ea', 'ip_version': 4, 'cidr': '218.175.112.128/26', 'allocation_pools': [{'start': '218.175.112.130', 'end': '218.175.112.190'}], 'gateway_ip': '218.175.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.175.112.130', 'tags': [], 'project_id': 'f97c5a85ede54bf59678c18ddd666b87'}} 2025-03-31 02:24:54,287 - INFO - Created VN ctest-vn-60461248 2025-03-31 02:24:54,339 - DEBUG - VN ctest-vn-60461248 UUID is cffb734a-b628-49f2-a748-9b3f2e05b5ea 2025-03-31 02:24:54,681 - DEBUG - Response for create_network : {'network': {'id': 'c9051925-8ce2-4b46-ad39-f49ca9d1989e', 'name': 'ctest-vn-98007057', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-98007057'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:24:54,823 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad93c2ed-5d24-4e61-9d8c-7564bd2d11b8', 'name': '', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'network_id': 'c9051925-8ce2-4b46-ad39-f49ca9d1989e', 'ip_version': 4, 'cidr': '27.196.134.128/26', 'allocation_pools': [{'start': '27.196.134.130', 'end': '27.196.134.190'}], 'gateway_ip': '27.196.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.196.134.130', 'tags': [], 'project_id': 'f97c5a85ede54bf59678c18ddd666b87'}} 2025-03-31 02:24:54,841 - INFO - Created VN ctest-vn-98007057 2025-03-31 02:24:54,894 - DEBUG - VN ctest-vn-98007057 UUID is c9051925-8ce2-4b46-ad39-f49ca9d1989e 2025-03-31 02:24:55,009 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248, 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-73715491:ctest-vn-98007057, 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-03-31 02:24:55,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cffb734a-b628-49f2-a748-9b3f2e05b5ea', 'name': 'ctest-vn-60461248', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b1ac861-0b97-46a5-b906-3e49f184209a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-60461248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019']], 'subnet_ipam': [{'subnet_cidr': '218.175.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:24:55,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9051925-8ce2-4b46-ad39-f49ca9d1989e', 'name': 'ctest-vn-98007057', 'tenant_id': 'f97c5a85ede54bf59678c18ddd666b87', 'project_id': 'f97c5a85ede54bf59678c18ddd666b87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad93c2ed-5d24-4e61-9d8c-7564bd2d11b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-vn-98007057'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019']], 'subnet_ipam': [{'subnet_cidr': '27.196.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:24:55,695 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 02:24:55,992 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 02:24:56,021 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59 2025-03-31 02:24:56,036 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87 2025-03-31 02:24:56,117 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea 2025-03-31 02:24:56,131 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea 2025-03-31 02:24:56,142 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b 2025-03-31 02:24:56,150 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b 2025-03-31 02:24:56,157 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b730dd0d-47aa-4bd9-b27f-35bffd32edb4 2025-03-31 02:24:56,165 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 02:24:56,165 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea 2025-03-31 02:24:56,174 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b 2025-03-31 02:24:56,190 - INFO - Verified VN network id 8 for VN cffb734a-b628-49f2-a748-9b3f2e05b5ea 2025-03-31 02:24:56,190 - INFO - Verifications in API Server for VN ctest-vn-60461248 passed 2025-03-31 02:24:56,190 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea 2025-03-31 02:24:56,200 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b 2025-03-31 02:24:56,208 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b 2025-03-31 02:24:56,215 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b730dd0d-47aa-4bd9-b27f-35bffd32edb4 2025-03-31 02:24:56,228 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73715491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14986698949726325234', 'uuid-lslong': '12054055098314503658'}, 'enable': 'true', 'created': '2025-03-31T02:24:54', 'last-modified': '2025-03-31T02:24:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942128'} 2025-03-31 02:24:56,236 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 02:24:56,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60461248 passed 2025-03-31 02:24:56,236 - DEBUG - ====Verifying policy data for ctest-vn-60461248 in API_Server ====== 2025-03-31 02:24:56,236 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 02:24:56,242 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59 2025-03-31 02:24:56,253 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87 2025-03-31 02:24:56,333 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/cffb734a-b628-49f2-a748-9b3f2e05b5ea 2025-03-31 02:24:56,344 - DEBUG - ==>Verifying data for policy with id: 3353371b-0ee8-4a9c-b519-c79444c0ce52, fqn: ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019'] 2025-03-31 02:24:56,344 - INFO - VN ctest-vn-60461248 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 02:24:56,344 - DEBUG - Verifying the vn in opserver 2025-03-31 02:24:56,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248 virtual network link through opserver 10.0.0.27 2025-03-31 02:24:56,344 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-31 02:24:56,646 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-31 02:24:56,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248?flat'} 2025-03-31 02:24:56,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248 is found in opserver 2025-03-31 02:24:56,711 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 02:24:56,716 - DEBUG - VRF ids for VN ctest-vn-60461248: {} 2025-03-31 02:24:56,717 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 02:24:56,723 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59 2025-03-31 02:24:56,735 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87 2025-03-31 02:24:56,819 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e 2025-03-31 02:24:56,834 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e 2025-03-31 02:24:56,844 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633 2025-03-31 02:24:56,851 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633 2025-03-31 02:24:56,858 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0d597254-68ea-44ca-8eca-adebbb2da50b 2025-03-31 02:24:56,865 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 02:24:56,865 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e 2025-03-31 02:24:56,875 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633 2025-03-31 02:24:56,890 - INFO - Verified VN network id 9 for VN c9051925-8ce2-4b46-ad39-f49ca9d1989e 2025-03-31 02:24:56,890 - INFO - Verifications in API Server for VN ctest-vn-98007057 passed 2025-03-31 02:24:56,890 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e 2025-03-31 02:24:56,901 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633 2025-03-31 02:24:56,908 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633 2025-03-31 02:24:56,916 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0d597254-68ea-44ca-8eca-adebbb2da50b 2025-03-31 02:24:56,928 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73715491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14485011425575193414', 'uuid-lslong': '12482276795935201438'}, 'enable': 'true', 'created': '2025-03-31T02:24:54', 'last-modified': '2025-03-31T02:24:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443804'} 2025-03-31 02:24:56,934 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 02:24:56,934 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98007057 passed 2025-03-31 02:24:56,935 - DEBUG - ====Verifying policy data for ctest-vn-98007057 in API_Server ====== 2025-03-31 02:24:56,935 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 02:24:56,940 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59 2025-03-31 02:24:56,954 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87 2025-03-31 02:24:57,027 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9051925-8ce2-4b46-ad39-f49ca9d1989e 2025-03-31 02:24:57,039 - DEBUG - ==>Verifying data for policy with id: 3353371b-0ee8-4a9c-b519-c79444c0ce52, fqn: ['default-domain', 'ctest-TestBasicPolicy-73715491', 'ctest-policy-allow-all-40218019'] 2025-03-31 02:24:57,039 - INFO - VN ctest-vn-98007057 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 02:24:57,039 - DEBUG - Verifying the vn in opserver 2025-03-31 02:24:57,039 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057 virtual network link through opserver 10.0.0.27 2025-03-31 02:24:57,039 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-31 02:24:57,052 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057?flat'} 2025-03-31 02:24:57,052 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-98007057 is found in opserver 2025-03-31 02:24:57,063 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 02:24:57,068 - DEBUG - VRF ids for VN ctest-vn-98007057: {} 2025-03-31 02:24:57,124 - DEBUG - Services list from nova: [, , ] 2025-03-31 02:24:58,262 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3011-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3011-1) 2025-03-31 02:24:59,485 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3011-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3011-1) 2025-03-31 02:24:59,487 - INFO - Waiting for VM ctest-TestBasicPolicy-73715491-75023861 to be up.. 2025-03-31 02:24:59,606 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-31 02:25:04,694 - DEBUG - VM is in ACTIVE state now 2025-03-31 02:25:04,694 - INFO - VM name : ctest-TestBasicPolicy-73715491-75023861 2025-03-31 02:25:04,785 - DEBUG - VM ctest-TestBasicPolicy-73715491-75023861 ID is 7dfb493c-adbb-42e9-a1ad-161cbab6a996 2025-03-31 02:25:04,811 - DEBUG - VM ctest-TestBasicPolicy-73715491-75023861 launched on Node cn-jenkins-deploy-platform-ansible-os-3011-1. 2025-03-31 02:25:04,899 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/7dfb493c-adbb-42e9-a1ad-161cbab6a996 2025-03-31 02:25:04,909 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/3c02e665-96e0-427d-be39-d77fd5ba05cb 2025-03-31 02:25:08,168 - 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 1014ms') 2025-03-31 02:25:08,168 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73715491-75023861 failed! 2025-03-31 02:25:08,230 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73715491:ctest-vn-60461248 is 218.175.112.129 and allocation pool is NOT set 2025-03-31 02:25:10,300 - 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.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.32 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.324/5.521/8.718/3.197 ms') 2025-03-31 02:25:10,300 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73715491-75023861 passed 2025-03-31 02:25:10,451 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:25:10,451 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73715491-75023861, IP 218.175.112.131, Port 22 2025-03-31 02:25:10,521 - 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-03-31 02:25:10,603 - DEBUG - VM ctest-TestBasicPolicy-73715491-75023861 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-31 02:25:15,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:25:15,603 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73715491-75023861, IP 218.175.112.131, Port 22 2025-03-31 02:25:15,774 - DEBUG - VM ctest-TestBasicPolicy-73715491-75023861 is ready for SSH connections 2025-03-31 02:25:15,774 - INFO - Waiting for VM ctest-TestBasicPolicy-73715491-52712246 to be up.. 2025-03-31 02:25:15,873 - DEBUG - VM is in ACTIVE state now 2025-03-31 02:25:15,873 - INFO - VM name : ctest-TestBasicPolicy-73715491-52712246 2025-03-31 02:25:15,952 - DEBUG - VM ctest-TestBasicPolicy-73715491-52712246 ID is 1ad090a2-06ab-49a4-b80c-4d8d04c26de1 2025-03-31 02:25:15,952 - DEBUG - VM ctest-TestBasicPolicy-73715491-52712246 launched on Node cn-jenkins-deploy-platform-ansible-os-3011-1. 2025-03-31 02:25:16,029 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/1ad090a2-06ab-49a4-b80c-4d8d04c26de1 2025-03-31 02:25:16,038 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/848f2999-e07c-484f-b70e-377cd9fb2892 2025-03-31 02:25:17,286 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 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.428/1.695/2.963/1.267 ms') 2025-03-31 02:25:17,286 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73715491-52712246 passed 2025-03-31 02:25:17,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:25:17,435 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73715491-52712246, IP 27.196.134.131, Port 22 2025-03-31 02:25:17,590 - DEBUG - VM ctest-TestBasicPolicy-73715491-52712246 is ready for SSH connections 2025-03-31 02:25:17,590 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:25:17,590 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.196.134.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-31 02:25:17,590 - DEBUG - ping -s 56 -c 3 -W 1 27.196.134.131 2025-03-31 02:25:21,283 - DEBUG - PING 27.196.134.131 (27.196.134.131): 56 data bytes 64 bytes from 27.196.134.131: seq=0 ttl=63 time=4.097 ms 64 bytes from 27.196.134.131: seq=1 ttl=63 time=0.903 ms 64 bytes from 27.196.134.131: seq=2 ttl=63 time=1.102 ms --- 27.196.134.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.903/2.034/4.097 ms 2025-03-31 02:25:21,283 - INFO - Ping to IP 27.196.134.131 from VM ctest-TestBasicPolicy-73715491-75023861 passed 2025-03-31 02:25:21,466 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3353371b-0ee8-4a9c-b519-c79444c0ce52", "href": "http://10.0.0.27:8082/network-policy/3353371b-0ee8-4a9c-b519-c79444c0ce52"}} 2025-03-31 02:25:21,466 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:25:21,467 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.196.134.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-31 02:25:21,467 - DEBUG - ping -s 56 -c 3 -W 1 27.196.134.131 2025-03-31 02:25:24,667 - DEBUG - PING 27.196.134.131 (27.196.134.131): 56 data bytes 64 bytes from 27.196.134.131: seq=0 ttl=63 time=1.421 ms --- 27.196.134.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.421/1.421/1.421 ms 2025-03-31 02:25:24,667 - WARNING - Ping to IP 27.196.134.131 from VM ctest-TestBasicPolicy-73715491-75023861 failed 2025-03-31 02:25:24,667 - INFO - Deleting VM ctest-TestBasicPolicy-73715491-52712246 2025-03-31 02:25:24,737 - INFO - Deleting VM ctest-TestBasicPolicy-73715491-75023861 2025-03-31 02:25:25,154 - INFO - Deleted policy ctest-policy-allow-all-40218019 2025-03-31 02:25:25,154 - INFO - Deleting VN ctest-vn-98007057 2025-03-31 02:25:25,199 - DEBUG - VN c9051925-8ce2-4b46-ad39-f49ca9d1989e still in use: Unable to complete operation on network c9051925-8ce2-4b46-ad39-f49ca9d1989e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1609430f-5ff1-4856-878e-81b058081a31'] 2025-03-31 02:25:25,199 - WARNING - Deleting VN ctest-vn-98007057 failed..Will retry 2025-03-31 02:25:27,319 - DEBUG - Response for deleting network () 2025-03-31 02:25:27,319 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/408cb515-dc4c-4a64-a1e7-2d40081d7633 2025-03-31 02:25:27,324 - DEBUG - Response Code: 404 2025-03-31 02:25:27,324 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 02:25:27,333 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59 2025-03-31 02:25:27,388 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87 2025-03-31 02:25:27,475 - INFO - Validated that VN ctest-vn-98007057 is not found in API Server 2025-03-31 02:25:27,489 - DEBUG - VN ctest-vn-98007057 is not present in Agent 10.0.0.27 2025-03-31 02:25:27,489 - INFO - Validated that VN ctest-vn-98007057 is not in any agent 2025-03-31 02:25:27,506 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98007057 info 2025-03-31 02:25:27,507 - INFO - Deleting VN ctest-vn-60461248 2025-03-31 02:25:27,635 - DEBUG - Response for deleting network () 2025-03-31 02:25:27,635 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3ce1dc38-da99-44d5-b558-28f9c03f989b 2025-03-31 02:25:27,649 - DEBUG - Response Code: 404 2025-03-31 02:25:27,649 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 02:25:27,657 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4d64d474-c023-4f72-ba90-2217e4aada59 2025-03-31 02:25:27,714 - DEBUG - Requesting: http://10.0.0.27:8082/project/f97c5a85-ede5-4bf5-9678-c18ddd666b87 2025-03-31 02:25:27,791 - INFO - Validated that VN ctest-vn-60461248 is not found in API Server 2025-03-31 02:25:27,803 - DEBUG - VN ctest-vn-60461248 is not present in Agent 10.0.0.27 2025-03-31 02:25:27,803 - INFO - Validated that VN ctest-vn-60461248 is not in any agent 2025-03-31 02:25:27,819 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60461248 info 2025-03-31 02:25:28,080 - DEBUG - No XMPP flaps were noticed during the test 2025-03-31 02:25:28,080 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-03-31 02:25:28,080 - INFO - -------------------------------------------------------------------------------- 2025-03-31 02:25:28,810 - INFO - Deleted project: ctest-TestBasicPolicy-73715491, ID : f97c5a85-ede5-4bf5-9678-c18ddd666b87