2025-08-20 13:25:23,895 - INFO - Domain Default found not creating 2025-08-20 13:25:24,032 - INFO - Project ctest-TestBasicPolicy-34793556 not found, creating it 2025-08-20 13:25:24,480 - INFO - Created Project:ctest-TestBasicPolicy-34793556, ID : 47211edb-239f-49ff-a949-565a4a091172 2025-08-20 13:25:25,931 - INFO - ================================================================================ 2025-08-20 13:25:25,931 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-20 13:25:25,931 - 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-08-20 13:25:26,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 13:25:26,190 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:25:26,190 - INFO - 2025-08-20 13:25:26,765 - DEBUG - Response for create_network : {'network': {'id': '45319587-d5f9-4b84-b65b-a68dde68f1df', 'name': 'ctest-vn-49768828', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-49768828'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:25:26,928 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aabe13c7-d38d-4e6d-9608-fcc8f4232abf', 'name': '', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'network_id': '45319587-d5f9-4b84-b65b-a68dde68f1df', 'ip_version': 4, 'cidr': '44.230.201.128/26', 'allocation_pools': [{'start': '44.230.201.130', 'end': '44.230.201.190'}], 'gateway_ip': '44.230.201.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.230.201.130', 'tags': [], 'project_id': '47211edb239f49ffa949565a4a091172'}} 2025-08-20 13:25:26,946 - INFO - Created VN ctest-vn-49768828 2025-08-20 13:25:27,006 - DEBUG - VN ctest-vn-49768828 UUID is 45319587-d5f9-4b84-b65b-a68dde68f1df 2025-08-20 13:25:27,334 - DEBUG - Response for create_network : {'network': {'id': '73867314-358b-4d17-a64d-25eaea5fe44e', 'name': 'ctest-vn-13637869', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-13637869'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:25:27,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa79852e-097f-4d49-af61-921cdc80eb91', 'name': '', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'network_id': '73867314-358b-4d17-a64d-25eaea5fe44e', 'ip_version': 4, 'cidr': '173.231.197.128/26', 'allocation_pools': [{'start': '173.231.197.130', 'end': '173.231.197.190'}], 'gateway_ip': '173.231.197.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.231.197.130', 'tags': [], 'project_id': '47211edb239f49ffa949565a4a091172'}} 2025-08-20 13:25:27,560 - INFO - Created VN ctest-vn-13637869 2025-08-20 13:25:27,613 - DEBUG - VN ctest-vn-13637869 UUID is 73867314-358b-4d17-a64d-25eaea5fe44e 2025-08-20 13:25:27,761 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828, 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-34793556:ctest-vn-13637869, 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-08-20 13:25:28,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45319587-d5f9-4b84-b65b-a68dde68f1df', 'name': 'ctest-vn-49768828', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aabe13c7-d38d-4e6d-9608-fcc8f4232abf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-49768828'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153']], 'subnet_ipam': [{'subnet_cidr': '44.230.201.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:25:28,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73867314-358b-4d17-a64d-25eaea5fe44e', 'name': 'ctest-vn-13637869', 'tenant_id': '47211edb239f49ffa949565a4a091172', 'project_id': '47211edb239f49ffa949565a4a091172', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa79852e-097f-4d49-af61-921cdc80eb91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-vn-13637869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153']], 'subnet_ipam': [{'subnet_cidr': '173.231.197.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:25:28,501 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:28,802 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:28,827 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:28,841 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172 2025-08-20 13:25:28,913 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df 2025-08-20 13:25:28,926 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df 2025-08-20 13:25:28,935 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf 2025-08-20 13:25:28,943 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf 2025-08-20 13:25:28,950 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ded43bd5-8504-4b8a-b1e9-2d9f6c071bea 2025-08-20 13:25:28,956 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:25:28,956 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df 2025-08-20 13:25:28,965 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf 2025-08-20 13:25:28,980 - INFO - Verified VN network id 12 for VN 45319587-d5f9-4b84-b65b-a68dde68f1df 2025-08-20 13:25:28,980 - INFO - Verifications in API Server for VN ctest-vn-49768828 passed 2025-08-20 13:25:28,980 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df 2025-08-20 13:25:28,990 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf 2025-08-20 13:25:28,997 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf 2025-08-20 13:25:29,004 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ded43bd5-8504-4b8a-b1e9-2d9f6c071bea 2025-08-20 13:25:29,017 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34793556', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4985930673118858116', 'uuid-lslong': '13140279466035573215'}, 'enable': 'true', 'created': '2025-08-20T13:25:26', 'last-modified': '2025-08-20T13:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991005'} 2025-08-20 13:25:29,023 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:25:29,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49768828 passed 2025-08-20 13:25:29,024 - DEBUG - ====Verifying policy data for ctest-vn-49768828 in API_Server ====== 2025-08-20 13:25:29,024 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:29,030 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:29,043 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172 2025-08-20 13:25:29,115 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/45319587-d5f9-4b84-b65b-a68dde68f1df 2025-08-20 13:25:29,125 - DEBUG - ==>Verifying data for policy with id: 2282c3af-7168-4137-84f3-9aaf59e67d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153'] 2025-08-20 13:25:29,125 - INFO - VN ctest-vn-49768828 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 13:25:29,125 - DEBUG - Verifying the vn in opserver 2025-08-20 13:25:29,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828 virtual network link through opserver 10.0.0.65 2025-08-20 13:25:29,125 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 13:25:29,413 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 13:25:29,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828?flat'} 2025-08-20 13:25:29,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828 is found in opserver 2025-08-20 13:25:29,472 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 13:25:29,477 - DEBUG - VRF ids for VN ctest-vn-49768828: {} 2025-08-20 13:25:29,477 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:29,483 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:29,494 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172 2025-08-20 13:25:29,565 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e 2025-08-20 13:25:29,576 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e 2025-08-20 13:25:29,585 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9 2025-08-20 13:25:29,592 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9 2025-08-20 13:25:29,598 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c800dfe5-6d2d-43bb-a8e6-28e927aa8e31 2025-08-20 13:25:29,604 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-20 13:25:29,604 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e 2025-08-20 13:25:29,613 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9 2025-08-20 13:25:29,626 - INFO - Verified VN network id 13 for VN 73867314-358b-4d17-a64d-25eaea5fe44e 2025-08-20 13:25:29,626 - INFO - Verifications in API Server for VN ctest-vn-13637869 passed 2025-08-20 13:25:29,626 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e 2025-08-20 13:25:29,635 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9 2025-08-20 13:25:29,642 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9 2025-08-20 13:25:29,649 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c800dfe5-6d2d-43bb-a8e6-28e927aa8e31 2025-08-20 13:25:29,663 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34793556', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8324467491875802391', 'uuid-lslong': '11983275874387485774'}, 'enable': 'true', 'created': '2025-08-20T13:25:27', 'last-modified': '2025-08-20T13:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.388943'} 2025-08-20 13:25:29,668 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-20 13:25:29,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13637869 passed 2025-08-20 13:25:29,669 - DEBUG - ====Verifying policy data for ctest-vn-13637869 in API_Server ====== 2025-08-20 13:25:29,669 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:29,674 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:29,685 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172 2025-08-20 13:25:29,752 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/73867314-358b-4d17-a64d-25eaea5fe44e 2025-08-20 13:25:29,761 - DEBUG - ==>Verifying data for policy with id: 2282c3af-7168-4137-84f3-9aaf59e67d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-34793556', 'ctest-policy-allow-all-20073153'] 2025-08-20 13:25:29,761 - INFO - VN ctest-vn-13637869 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 13:25:29,761 - DEBUG - Verifying the vn in opserver 2025-08-20 13:25:29,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869 virtual network link through opserver 10.0.0.65 2025-08-20 13:25:29,761 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 13:25:29,771 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869?flat'} 2025-08-20 13:25:29,771 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-13637869 is found in opserver 2025-08-20 13:25:29,781 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 13:25:29,786 - DEBUG - VRF ids for VN ctest-vn-13637869: {} 2025-08-20 13:25:29,834 - DEBUG - Services list from nova: [, , ] 2025-08-20 13:25:30,802 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3895-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3895-1) 2025-08-20 13:25:31,950 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3895-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3895-1) 2025-08-20 13:25:31,951 - INFO - Waiting for VM ctest-TestBasicPolicy-34793556-36261303 to be up.. 2025-08-20 13:25:32,036 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-20 13:25:37,107 - DEBUG - VM is in ACTIVE state now 2025-08-20 13:25:37,107 - INFO - VM name : ctest-TestBasicPolicy-34793556-36261303 2025-08-20 13:25:37,177 - DEBUG - VM ctest-TestBasicPolicy-34793556-36261303 ID is 754ca936-39f7-4d06-9b1d-ea79c9b2a86b 2025-08-20 13:25:37,196 - DEBUG - VM ctest-TestBasicPolicy-34793556-36261303 launched on Node cn-jenkins-deploy-platform-ansible-os-3895-1 2025-08-20 13:25:37,268 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/754ca936-39f7-4d06-9b1d-ea79c9b2a86b 2025-08-20 13:25:37,279 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/b71836fb-3287-478c-8c83-f1e32ed33e56 2025-08-20 13:25:40,546 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-08-20 13:25:40,547 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34793556-36261303 failed! 2025-08-20 13:25:40,601 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-34793556:ctest-vn-49768828 is 44.230.201.129 and allocation pool is NOT set 2025-08-20 13:25:42,670 - 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=6.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.373 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 = 0.373/3.649/6.926/3.276 ms') 2025-08-20 13:25:42,670 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34793556-36261303 passed 2025-08-20 13:25:42,821 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:25:42,822 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34793556-36261303, IP 44.230.201.131, Port 22 2025-08-20 13:25:42,973 - DEBUG - VM ctest-TestBasicPolicy-34793556-36261303 is ready for SSH connections 2025-08-20 13:25:42,973 - INFO - Waiting for VM ctest-TestBasicPolicy-34793556-59321114 to be up.. 2025-08-20 13:25:43,040 - DEBUG - VM is in ACTIVE state now 2025-08-20 13:25:43,040 - INFO - VM name : ctest-TestBasicPolicy-34793556-59321114 2025-08-20 13:25:43,105 - DEBUG - VM ctest-TestBasicPolicy-34793556-59321114 ID is e54c6f4f-264e-4af6-9152-e2ac38ff689b 2025-08-20 13:25:43,105 - DEBUG - VM ctest-TestBasicPolicy-34793556-59321114 launched on Node cn-jenkins-deploy-platform-ansible-os-3895-1 2025-08-20 13:25:43,172 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/e54c6f4f-264e-4af6-9152-e2ac38ff689b 2025-08-20 13:25:43,180 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/dcc263bc-e326-44be-b823-fb44dffb6944 2025-08-20 13:25:44,419 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.471 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.471/2.403/4.335/1.932 ms') 2025-08-20 13:25:44,419 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-34793556-59321114 passed 2025-08-20 13:25:44,565 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:25:44,566 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34793556-59321114, IP 173.231.197.131, Port 22 2025-08-20 13:25:44,625 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-20 13:25:44,692 - DEBUG - VM ctest-TestBasicPolicy-34793556-59321114 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-20 13:25:49,693 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:25:49,693 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34793556-59321114, IP 173.231.197.131, Port 22 2025-08-20 13:25:49,853 - DEBUG - VM ctest-TestBasicPolicy-34793556-59321114 is ready for SSH connections 2025-08-20 13:25:49,853 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:25:49,853 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.231.197.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-20 13:25:49,853 - DEBUG - ping -s 56 -c 3 -W 1 173.231.197.131 2025-08-20 13:25:53,905 - DEBUG - PING 173.231.197.131 (173.231.197.131): 56 data bytes 64 bytes from 173.231.197.131: seq=0 ttl=63 time=4.389 ms 64 bytes from 173.231.197.131: seq=1 ttl=63 time=0.973 ms 64 bytes from 173.231.197.131: seq=2 ttl=63 time=0.780 ms --- 173.231.197.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.780/2.047/4.389 ms 2025-08-20 13:25:53,905 - INFO - Ping to IP 173.231.197.131 from VM ctest-TestBasicPolicy-34793556-36261303 passed 2025-08-20 13:25:54,077 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2282c3af-7168-4137-84f3-9aaf59e67d60", "href": "http://10.0.0.65:8082/network-policy/2282c3af-7168-4137-84f3-9aaf59e67d60"}} 2025-08-20 13:25:54,077 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:25:54,078 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.231.197.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-20 13:25:54,078 - DEBUG - ping -s 56 -c 3 -W 1 173.231.197.131 2025-08-20 13:25:57,277 - DEBUG - PING 173.231.197.131 (173.231.197.131): 56 data bytes --- 173.231.197.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-20 13:25:57,277 - WARNING - Ping to IP 173.231.197.131 from VM ctest-TestBasicPolicy-34793556-36261303 failed 2025-08-20 13:25:57,277 - INFO - Deleting VM ctest-TestBasicPolicy-34793556-59321114 2025-08-20 13:25:57,345 - INFO - Deleting VM ctest-TestBasicPolicy-34793556-36261303 2025-08-20 13:25:57,756 - INFO - Deleted policy ctest-policy-allow-all-20073153 2025-08-20 13:25:57,756 - INFO - Deleting VN ctest-vn-13637869 2025-08-20 13:25:57,788 - DEBUG - VN 73867314-358b-4d17-a64d-25eaea5fe44e still in use: Unable to complete operation on network 73867314-358b-4d17-a64d-25eaea5fe44e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-907d0294-8012-4d89-a8ec-f509df626596'] 2025-08-20 13:25:57,788 - WARNING - Deleting VN ctest-vn-13637869 failed..Will retry 2025-08-20 13:25:59,913 - DEBUG - Response for deleting network () 2025-08-20 13:25:59,913 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/270f79c7-0273-4e52-a28d-67d1528050e9 2025-08-20 13:25:59,918 - DEBUG - Response Code: 404 2025-08-20 13:25:59,918 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:59,925 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:59,985 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172 2025-08-20 13:26:00,054 - INFO - Validated that VN ctest-vn-13637869 is not found in API Server 2025-08-20 13:26:00,065 - DEBUG - VN ctest-vn-13637869 is not present in Agent 10.0.0.65 2025-08-20 13:26:00,065 - INFO - Validated that VN ctest-vn-13637869 is not in any agent 2025-08-20 13:26:00,081 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13637869 info 2025-08-20 13:26:00,081 - INFO - Deleting VN ctest-vn-49768828 2025-08-20 13:26:00,180 - DEBUG - Response for deleting network () 2025-08-20 13:26:00,180 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1378f276-656e-49c7-80fe-e519faaab6cf 2025-08-20 13:26:00,185 - DEBUG - Response Code: 404 2025-08-20 13:26:00,185 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:26:00,190 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:26:00,242 - DEBUG - Requesting: http://10.0.0.65:8082/project/47211edb-239f-49ff-a949-565a4a091172 2025-08-20 13:26:00,321 - INFO - Validated that VN ctest-vn-49768828 is not found in API Server 2025-08-20 13:26:00,334 - DEBUG - VN ctest-vn-49768828 is not present in Agent 10.0.0.65 2025-08-20 13:26:00,334 - INFO - Validated that VN ctest-vn-49768828 is not in any agent 2025-08-20 13:26:00,351 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49768828 info 2025-08-20 13:26:00,599 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 13:26:00,599 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-08-20 13:26:00,599 - INFO - -------------------------------------------------------------------------------- 2025-08-20 13:26:01,261 - INFO - Deleted project: ctest-TestBasicPolicy-34793556, ID : 47211edb-239f-49ff-a949-565a4a091172