2025-05-21 15:57:37,299 - INFO - Domain Default found not creating 2025-05-21 15:57:37,444 - INFO - Project ctest-TestBasicPolicy-68852435 not found, creating it 2025-05-21 15:57:37,929 - INFO - Created Project:ctest-TestBasicPolicy-68852435, ID : 7a2bfdfd-53e8-481c-86ef-16eb4defb7a7 2025-05-21 15:57:39,536 - INFO - ================================================================================ 2025-05-21 15:57:39,536 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-21 15:57:39,536 - 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-05-21 15:57:39,798 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-05-21 15:57:39,798 - INFO - Initial checks done. Running the testcase now 2025-05-21 15:57:39,798 - INFO - 2025-05-21 15:57:40,393 - DEBUG - Response for create_network : {'network': {'id': 'c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291', 'name': 'ctest-vn-01590309', 'tenant_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'project_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-vn-01590309'], 'port_security_enabled': True, 'description': ''}} 2025-05-21 15:57:40,609 - DEBUG - Response for create_subnet : {'subnet': {'id': '22ede66d-d7e9-4846-8da1-7eb4dbba2572', 'name': '', 'tenant_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'network_id': 'c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291', 'ip_version': 4, 'cidr': '22.34.163.192/26', 'allocation_pools': [{'start': '22.34.163.194', 'end': '22.34.163.254'}], 'gateway_ip': '22.34.163.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.34.163.194', 'tags': [], 'project_id': '7a2bfdfd53e8481c86ef16eb4defb7a7'}} 2025-05-21 15:57:40,629 - INFO - Created VN ctest-vn-01590309 2025-05-21 15:57:40,682 - DEBUG - VN ctest-vn-01590309 UUID is c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291 2025-05-21 15:57:40,996 - DEBUG - Response for create_network : {'network': {'id': '6a875fdf-32dd-4510-98a9-a9785f1f183c', 'name': 'ctest-vn-61164736', 'tenant_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'project_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-vn-61164736'], 'port_security_enabled': True, 'description': ''}} 2025-05-21 15:57:41,219 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b17da185-b638-4005-be88-223ce18067a2', 'name': '', 'tenant_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'network_id': '6a875fdf-32dd-4510-98a9-a9785f1f183c', 'ip_version': 4, 'cidr': '8.208.54.192/26', 'allocation_pools': [{'start': '8.208.54.194', 'end': '8.208.54.254'}], 'gateway_ip': '8.208.54.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.208.54.194', 'tags': [], 'project_id': '7a2bfdfd53e8481c86ef16eb4defb7a7'}} 2025-05-21 15:57:41,239 - INFO - Created VN ctest-vn-61164736 2025-05-21 15:57:41,294 - DEBUG - VN ctest-vn-61164736 UUID is 6a875fdf-32dd-4510-98a9-a9785f1f183c 2025-05-21 15:57:41,409 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-01590309, 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-68852435:ctest-vn-61164736, 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-05-21 15:57:41,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291', 'name': 'ctest-vn-01590309', 'tenant_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'project_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22ede66d-d7e9-4846-8da1-7eb4dbba2572'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-vn-01590309'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-policy-allow-all-05064236']], 'subnet_ipam': [{'subnet_cidr': '22.34.163.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-21 15:57:41,984 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a875fdf-32dd-4510-98a9-a9785f1f183c', 'name': 'ctest-vn-61164736', 'tenant_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'project_id': '7a2bfdfd53e8481c86ef16eb4defb7a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b17da185-b638-4005-be88-223ce18067a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-vn-61164736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-policy-allow-all-05064236']], 'subnet_ipam': [{'subnet_cidr': '8.208.54.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-21 15:57:42,198 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-21 15:57:42,539 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-21 15:57:42,572 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2a461dc-0952-4198-bf6b-543bbb9ad4be 2025-05-21 15:57:42,590 - DEBUG - Requesting: http://10.0.0.50:8082/project/7a2bfdfd-53e8-481c-86ef-16eb4defb7a7 2025-05-21 15:57:42,679 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291 2025-05-21 15:57:42,693 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291 2025-05-21 15:57:42,707 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3043bf1-02ae-44db-ba36-5c66b7d3c2a1 2025-05-21 15:57:42,717 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3043bf1-02ae-44db-ba36-5c66b7d3c2a1 2025-05-21 15:57:42,725 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b5f1ad73-a92d-4426-9d5e-e6b6e362ccb6 2025-05-21 15:57:42,734 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-21 15:57:42,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291 2025-05-21 15:57:42,748 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3043bf1-02ae-44db-ba36-5c66b7d3c2a1 2025-05-21 15:57:42,768 - INFO - Verified VN network id 9 for VN c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291 2025-05-21 15:57:42,768 - INFO - Verifications in API Server for VN ctest-vn-01590309 passed 2025-05-21 15:57:42,768 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291 2025-05-21 15:57:42,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3043bf1-02ae-44db-ba36-5c66b7d3c2a1 2025-05-21 15:57:42,788 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3043bf1-02ae-44db-ba36-5c66b7d3c2a1 2025-05-21 15:57:42,796 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b5f1ad73-a92d-4426-9d5e-e6b6e362ccb6 2025-05-21 15:57:42,809 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-01590309', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68852435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14457611626663660405', 'uuid-lslong': '11321460447558709905'}, 'enable': 'true', 'created': '2025-05-21T15:57:40', 'last-modified': '2025-05-21T15:57:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.124241'} 2025-05-21 15:57:42,816 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-21 15:57:42,816 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01590309 passed 2025-05-21 15:57:42,817 - DEBUG - ====Verifying policy data for ctest-vn-01590309 in API_Server ====== 2025-05-21 15:57:42,817 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-21 15:57:42,823 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2a461dc-0952-4198-bf6b-543bbb9ad4be 2025-05-21 15:57:42,839 - DEBUG - Requesting: http://10.0.0.50:8082/project/7a2bfdfd-53e8-481c-86ef-16eb4defb7a7 2025-05-21 15:57:42,914 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8a3c12c-bbd8-4b75-9d1d-e84b1b5f3291 2025-05-21 15:57:42,925 - DEBUG - ==>Verifying data for policy with id: f72ee273-18fa-4f8c-9647-748a8ead43ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-policy-allow-all-05064236'] 2025-05-21 15:57:42,925 - INFO - VN ctest-vn-01590309 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-21 15:57:42,925 - DEBUG - Verifying the vn in opserver 2025-05-21 15:57:42,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-01590309 virtual network link through opserver 10.0.0.50 2025-05-21 15:57:42,926 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-21 15:57:43,262 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-21 15:57:43,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-01590309', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-01590309?flat'} 2025-05-21 15:57:43,320 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-01590309 is found in opserver 2025-05-21 15:57:43,333 - DEBUG - Do not have enough data to verify VN in agent 2025-05-21 15:57:43,339 - DEBUG - VRF ids for VN ctest-vn-01590309: {} 2025-05-21 15:57:43,339 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-21 15:57:43,346 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2a461dc-0952-4198-bf6b-543bbb9ad4be 2025-05-21 15:57:43,361 - DEBUG - Requesting: http://10.0.0.50:8082/project/7a2bfdfd-53e8-481c-86ef-16eb4defb7a7 2025-05-21 15:57:43,444 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a875fdf-32dd-4510-98a9-a9785f1f183c 2025-05-21 15:57:43,457 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a875fdf-32dd-4510-98a9-a9785f1f183c 2025-05-21 15:57:43,468 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08d25620-944c-4d07-b838-9432c43d50ee 2025-05-21 15:57:43,478 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08d25620-944c-4d07-b838-9432c43d50ee 2025-05-21 15:57:43,488 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dd1f2532-fa74-47e0-bf18-2e1a3dd05c27 2025-05-21 15:57:43,500 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-21 15:57:43,500 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a875fdf-32dd-4510-98a9-a9785f1f183c 2025-05-21 15:57:43,515 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08d25620-944c-4d07-b838-9432c43d50ee 2025-05-21 15:57:43,536 - INFO - Verified VN network id 10 for VN 6a875fdf-32dd-4510-98a9-a9785f1f183c 2025-05-21 15:57:43,536 - INFO - Verifications in API Server for VN ctest-vn-61164736 passed 2025-05-21 15:57:43,536 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a875fdf-32dd-4510-98a9-a9785f1f183c 2025-05-21 15:57:43,548 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08d25620-944c-4d07-b838-9432c43d50ee 2025-05-21 15:57:43,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08d25620-944c-4d07-b838-9432c43d50ee 2025-05-21 15:57:43,562 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dd1f2532-fa74-47e0-bf18-2e1a3dd05c27 2025-05-21 15:57:43,575 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-61164736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68852435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7676209502112007440', 'uuid-lslong': '11000509899286190140'}, 'enable': 'true', 'created': '2025-05-21T15:57:40', 'last-modified': '2025-05-21T15:57:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.626280'} 2025-05-21 15:57:43,581 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-21 15:57:43,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61164736 passed 2025-05-21 15:57:43,582 - DEBUG - ====Verifying policy data for ctest-vn-61164736 in API_Server ====== 2025-05-21 15:57:43,582 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-21 15:57:43,588 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2a461dc-0952-4198-bf6b-543bbb9ad4be 2025-05-21 15:57:43,600 - DEBUG - Requesting: http://10.0.0.50:8082/project/7a2bfdfd-53e8-481c-86ef-16eb4defb7a7 2025-05-21 15:57:43,688 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a875fdf-32dd-4510-98a9-a9785f1f183c 2025-05-21 15:57:43,699 - DEBUG - ==>Verifying data for policy with id: f72ee273-18fa-4f8c-9647-748a8ead43ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-68852435', 'ctest-policy-allow-all-05064236'] 2025-05-21 15:57:43,699 - INFO - VN ctest-vn-61164736 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-21 15:57:43,699 - DEBUG - Verifying the vn in opserver 2025-05-21 15:57:43,699 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-61164736 virtual network link through opserver 10.0.0.50 2025-05-21 15:57:43,699 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-21 15:57:43,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-61164736', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-61164736?flat'} 2025-05-21 15:57:43,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-61164736 is found in opserver 2025-05-21 15:57:43,727 - DEBUG - Do not have enough data to verify VN in agent 2025-05-21 15:57:43,733 - DEBUG - VRF ids for VN ctest-vn-61164736: {} 2025-05-21 15:57:43,796 - DEBUG - Services list from nova: [, , ] 2025-05-21 15:57:44,938 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3328-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3328-1) 2025-05-21 15:57:46,330 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3328-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3328-1) 2025-05-21 15:57:46,330 - INFO - Waiting for VM ctest-TestBasicPolicy-68852435-49439091 to be up.. 2025-05-21 15:57:46,419 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-21 15:57:51,626 - DEBUG - VM is in ACTIVE state now 2025-05-21 15:57:51,626 - INFO - VM name : ctest-TestBasicPolicy-68852435-49439091 2025-05-21 15:57:51,769 - DEBUG - VM ctest-TestBasicPolicy-68852435-49439091 ID is d49ec357-a4d8-4aea-8307-70e59f575bba 2025-05-21 15:57:51,797 - DEBUG - VM ctest-TestBasicPolicy-68852435-49439091 launched on Node cn-jenkins-deploy-platform-ansible-os-3328-1 2025-05-21 15:57:51,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d49ec357-a4d8-4aea-8307-70e59f575bba 2025-05-21 15:57:52,041 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/81717adc-368e-4573-a34f-d9caad41b023 2025-05-21 15:57:55,406 - 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 1027ms') 2025-05-21 15:57:55,407 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68852435-49439091 failed! 2025-05-21 15:57:55,466 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68852435:ctest-vn-01590309 is 22.34.163.193 and allocation pool is NOT set 2025-05-21 15:57:57,531 - 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=4.48 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.68 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 = 1.678/3.079/4.480/1.401 ms') 2025-05-21 15:57:57,532 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68852435-49439091 passed 2025-05-21 15:57:57,690 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:57:57,690 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68852435-49439091, IP 22.34.163.195, Port 22 2025-05-21 15:57:57,757 - 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-05-21 15:57:57,843 - DEBUG - VM ctest-TestBasicPolicy-68852435-49439091 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-21 15:58:02,844 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:58:02,844 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68852435-49439091, IP 22.34.163.195, Port 22 2025-05-21 15:58:03,005 - DEBUG - VM ctest-TestBasicPolicy-68852435-49439091 is ready for SSH connections 2025-05-21 15:58:03,006 - INFO - Waiting for VM ctest-TestBasicPolicy-68852435-81219375 to be up.. 2025-05-21 15:58:03,094 - DEBUG - VM is in ACTIVE state now 2025-05-21 15:58:03,094 - INFO - VM name : ctest-TestBasicPolicy-68852435-81219375 2025-05-21 15:58:03,172 - DEBUG - VM ctest-TestBasicPolicy-68852435-81219375 ID is b040c376-4912-491e-9b91-d9a936af21a3 2025-05-21 15:58:03,173 - DEBUG - VM ctest-TestBasicPolicy-68852435-81219375 launched on Node cn-jenkins-deploy-platform-ansible-os-3328-1 2025-05-21 15:58:03,252 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/b040c376-4912-491e-9b91-d9a936af21a3 2025-05-21 15:58:03,262 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/ac59ae27-d7d7-4dce-82be-6ec6da8a9ac3 2025-05-21 15:58:04,503 - 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=4.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.403 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.403/2.636/4.870/2.233 ms') 2025-05-21 15:58:04,503 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68852435-81219375 passed 2025-05-21 15:58:04,658 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:58:04,658 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68852435-81219375, IP 8.208.54.195, Port 22 2025-05-21 15:58:04,813 - DEBUG - VM ctest-TestBasicPolicy-68852435-81219375 is ready for SSH connections 2025-05-21 15:58:04,814 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:58:04,814 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 8.208.54.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-21 15:58:04,814 - DEBUG - ping -s 56 -c 3 -W 1 8.208.54.195 2025-05-21 15:58:08,912 - DEBUG - PING 8.208.54.195 (8.208.54.195): 56 data bytes 64 bytes from 8.208.54.195: seq=0 ttl=63 time=4.002 ms 64 bytes from 8.208.54.195: seq=1 ttl=63 time=1.085 ms 64 bytes from 8.208.54.195: seq=2 ttl=63 time=1.006 ms --- 8.208.54.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.006/2.031/4.002 ms 2025-05-21 15:58:08,912 - INFO - Ping to IP 8.208.54.195 from VM ctest-TestBasicPolicy-68852435-49439091 passed 2025-05-21 15:58:09,102 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f72ee273-18fa-4f8c-9647-748a8ead43ba", "href": "http://10.0.0.50:8082/network-policy/f72ee273-18fa-4f8c-9647-748a8ead43ba"}} 2025-05-21 15:58:09,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-21 15:58:09,102 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 8.208.54.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-21 15:58:09,102 - DEBUG - ping -s 56 -c 3 -W 1 8.208.54.195 2025-05-21 15:58:12,330 - DEBUG - PING 8.208.54.195 (8.208.54.195): 56 data bytes 64 bytes from 8.208.54.195: seq=0 ttl=63 time=1.843 ms --- 8.208.54.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.843/1.843/1.843 ms 2025-05-21 15:58:12,330 - WARNING - Ping to IP 8.208.54.195 from VM ctest-TestBasicPolicy-68852435-49439091 failed 2025-05-21 15:58:12,330 - INFO - Deleting VM ctest-TestBasicPolicy-68852435-81219375 2025-05-21 15:58:12,402 - INFO - Deleting VM ctest-TestBasicPolicy-68852435-49439091 2025-05-21 15:58:12,820 - INFO - Deleted policy ctest-policy-allow-all-05064236 2025-05-21 15:58:12,820 - INFO - Deleting VN ctest-vn-61164736 2025-05-21 15:58:12,859 - DEBUG - VN 6a875fdf-32dd-4510-98a9-a9785f1f183c still in use: Unable to complete operation on network 6a875fdf-32dd-4510-98a9-a9785f1f183c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a3f0e2f0-42a8-4f28-ac12-98acebca33ab'] 2025-05-21 15:58:12,859 - WARNING - Deleting VN ctest-vn-61164736 failed..Will retry 2025-05-21 15:58:14,976 - DEBUG - Response for deleting network () 2025-05-21 15:58:14,976 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/08d25620-944c-4d07-b838-9432c43d50ee 2025-05-21 15:58:14,982 - DEBUG - Response Code: 404 2025-05-21 15:58:14,982 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-21 15:58:14,993 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2a461dc-0952-4198-bf6b-543bbb9ad4be 2025-05-21 15:58:15,055 - DEBUG - Requesting: http://10.0.0.50:8082/project/7a2bfdfd-53e8-481c-86ef-16eb4defb7a7 2025-05-21 15:58:15,141 - INFO - Validated that VN ctest-vn-61164736 is not found in API Server 2025-05-21 15:58:15,158 - DEBUG - VN ctest-vn-61164736 is not present in Agent 10.0.0.50 2025-05-21 15:58:15,158 - INFO - Validated that VN ctest-vn-61164736 is not in any agent 2025-05-21 15:58:15,179 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61164736 info 2025-05-21 15:58:15,179 - INFO - Deleting VN ctest-vn-01590309 2025-05-21 15:58:15,327 - DEBUG - Response for deleting network () 2025-05-21 15:58:15,327 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b3043bf1-02ae-44db-ba36-5c66b7d3c2a1 2025-05-21 15:58:15,337 - DEBUG - Response Code: 404 2025-05-21 15:58:15,337 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-21 15:58:15,352 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2a461dc-0952-4198-bf6b-543bbb9ad4be 2025-05-21 15:58:15,369 - DEBUG - Requesting: http://10.0.0.50:8082/project/7a2bfdfd-53e8-481c-86ef-16eb4defb7a7 2025-05-21 15:58:15,449 - INFO - Validated that VN ctest-vn-01590309 is not found in API Server 2025-05-21 15:58:15,461 - DEBUG - VN ctest-vn-01590309 is not present in Agent 10.0.0.50 2025-05-21 15:58:15,461 - INFO - Validated that VN ctest-vn-01590309 is not in any agent 2025-05-21 15:58:15,477 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01590309 info 2025-05-21 15:58:15,736 - DEBUG - No XMPP flaps were noticed during the test 2025-05-21 15:58:15,736 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-05-21 15:58:15,736 - INFO - -------------------------------------------------------------------------------- 2025-05-21 15:58:16,461 - INFO - Deleted project: ctest-TestBasicPolicy-68852435, ID : 7a2bfdfd-53e8-481c-86ef-16eb4defb7a7