2025-04-18 11:24:20,616 - INFO - Reading existing Domain with UUID 9e0d5218-6863-4f3b-af0c-1ff786d855f1 2025-04-18 11:24:20,631 - INFO - Using existing domain ['admin_domain'](9e0d5218-6863-4f3b-af0c-1ff786d855f1) 2025-04-18 11:24:20,898 - INFO - Project ctest-TestBasicPolicy-66997682 not found, creating it 2025-04-18 11:24:21,543 - INFO - Created Project:ctest-TestBasicPolicy-66997682, ID : b1c774dd-563b-43c7-85e6-ba0c0e1e6356 2025-04-18 11:24:23,592 - INFO - ================================================================================ 2025-04-18 11:24:23,593 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-18 11:24:23,593 - 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-18 11:24:23,993 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.0.0.49': '0'}} with 2025-04-18 11:24:23,993 - INFO - Initial checks done. Running the testcase now 2025-04-18 11:24:23,993 - INFO - 2025-04-18 11:24:24,837 - DEBUG - Response for create_network : {'network': {'id': '050142d2-fe4a-4919-b174-822dffd92b38', 'name': 'ctest-vn-35121802', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-35121802'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-18 11:24:25,133 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6d6772d-f135-4ea0-bd98-d495b5a8fd46', 'name': '', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'network_id': '050142d2-fe4a-4919-b174-822dffd92b38', 'ip_version': 4, 'cidr': '23.82.49.128/26', 'allocation_pools': [{'start': '23.82.49.130', 'end': '23.82.49.190'}], 'gateway_ip': '23.82.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-18T11:24:25.011049', 'updated_at': '2025-04-18T11:24:25.011049', 'dns_server_address': '23.82.49.130', 'tags': [], 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356'}} 2025-04-18 11:24:25,203 - INFO - Created VN ctest-vn-35121802 2025-04-18 11:24:25,259 - DEBUG - VN ctest-vn-35121802 UUID is 050142d2-fe4a-4919-b174-822dffd92b38 2025-04-18 11:24:25,822 - DEBUG - Response for create_network : {'network': {'id': '716d85ae-68bd-4b5f-aba0-74a3c726d8e6', 'name': 'ctest-vn-16937155', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-16937155'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-18 11:24:26,070 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0309084-320f-459f-9b5a-bffec5cb24cf', 'name': '', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'network_id': '716d85ae-68bd-4b5f-aba0-74a3c726d8e6', 'ip_version': 4, 'cidr': '47.115.183.64/26', 'allocation_pools': [{'start': '47.115.183.66', 'end': '47.115.183.126'}], 'gateway_ip': '47.115.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-18T11:24:25.964710', 'updated_at': '2025-04-18T11:24:25.964710', 'dns_server_address': '47.115.183.66', 'tags': [], 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356'}} 2025-04-18 11:24:26,139 - INFO - Created VN ctest-vn-16937155 2025-04-18 11:24:26,200 - DEBUG - VN ctest-vn-16937155 UUID is 716d85ae-68bd-4b5f-aba0-74a3c726d8e6 2025-04-18 11:24:26,433 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155, 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-18 11:24:26,876 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '050142d2-fe4a-4919-b174-822dffd92b38', 'name': 'ctest-vn-35121802', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6d6772d-f135-4ea0-bd98-d495b5a8fd46'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-35121802'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521']], 'subnet_ipam': [{'subnet_cidr': '23.82.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-18T11:24:24.752423', 'updated_at': '2025-04-18T11:24:25.028060'}} 2025-04-18 11:24:27,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '716d85ae-68bd-4b5f-aba0-74a3c726d8e6', 'name': 'ctest-vn-16937155', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0309084-320f-459f-9b5a-bffec5cb24cf'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-16937155'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521']], 'subnet_ipam': [{'subnet_cidr': '47.115.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-18T11:24:25.727274', 'updated_at': '2025-04-18T11:24:25.979574'}} 2025-04-18 11:24:27,443 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-18 11:24:27,835 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-18 11:24:27,920 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1 2025-04-18 11:24:27,985 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356 2025-04-18 11:24:28,073 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38 2025-04-18 11:24:28,134 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38 2025-04-18 11:24:28,199 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415 2025-04-18 11:24:28,257 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415 2025-04-18 11:24:28,317 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/5c3c21dd-c1b0-428d-a183-a491d6bb1c05 2025-04-18 11:24:28,373 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-18 11:24:28,373 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38 2025-04-18 11:24:28,431 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415 2025-04-18 11:24:28,495 - INFO - Verified VN network id 7 for VN 050142d2-fe4a-4919-b174-822dffd92b38 2025-04-18 11:24:28,495 - INFO - Verifications in API Server for VN ctest-vn-35121802 passed 2025-04-18 11:24:28,496 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38 2025-04-18 11:24:28,554 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415 2025-04-18 11:24:28,609 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415 2025-04-18 11:24:28,669 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/5c3c21dd-c1b0-428d-a183-a491d6bb1c05 2025-04-18 11:24:28,777 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66997682', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '360642919143196953', 'uuid-lslong': '12786988376089242424'}, 'enable': 'true', 'created': '2025-04-18T11:24:24', 'last-modified': '2025-04-18T11:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.949177'} 2025-04-18 11:24:28,830 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-18 11:24:28,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35121802 passed 2025-04-18 11:24:28,830 - DEBUG - ====Verifying policy data for ctest-vn-35121802 in API_Server ====== 2025-04-18 11:24:28,830 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-18 11:24:28,884 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1 2025-04-18 11:24:28,945 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356 2025-04-18 11:24:29,033 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38 2025-04-18 11:24:29,090 - DEBUG - ==>Verifying data for policy with id: f7e7729c-0d44-4615-bbe0-d5b176ade7ee, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521'] 2025-04-18 11:24:29,090 - INFO - VN ctest-vn-35121802 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-18 11:24:29,090 - DEBUG - Verifying the vn in opserver 2025-04-18 11:24:29,090 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802 virtual network link through opserver 10.0.0.49 2025-04-18 11:24:29,090 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks 2025-04-18 11:24:29,480 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks 2025-04-18 11:24:29,604 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802?flat'} 2025-04-18 11:24:29,604 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802 is found in opserver 2025-04-18 11:24:29,709 - DEBUG - Do not have enough data to verify VN in agent 2025-04-18 11:24:29,760 - DEBUG - VRF ids for VN ctest-vn-35121802: {} 2025-04-18 11:24:29,760 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-18 11:24:29,812 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1 2025-04-18 11:24:29,873 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356 2025-04-18 11:24:29,953 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6 2025-04-18 11:24:30,014 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6 2025-04-18 11:24:30,074 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c 2025-04-18 11:24:30,129 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c 2025-04-18 11:24:30,185 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/06937657-6ad6-4d66-8e1e-0508b8bbc04f 2025-04-18 11:24:30,241 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-18 11:24:30,241 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6 2025-04-18 11:24:30,298 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c 2025-04-18 11:24:30,363 - INFO - Verified VN network id 8 for VN 716d85ae-68bd-4b5f-aba0-74a3c726d8e6 2025-04-18 11:24:30,363 - INFO - Verifications in API Server for VN ctest-vn-16937155 passed 2025-04-18 11:24:30,363 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6 2025-04-18 11:24:30,426 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c 2025-04-18 11:24:30,481 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c 2025-04-18 11:24:30,537 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/06937657-6ad6-4d66-8e1e-0508b8bbc04f 2025-04-18 11:24:30,645 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66997682', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8173335882875358047', 'uuid-lslong': '12367012823529085158'}, 'enable': 'true', 'created': '2025-04-18T11:24:25', 'last-modified': '2025-04-18T11:24:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.424897'} 2025-04-18 11:24:30,698 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-18 11:24:30,698 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16937155 passed 2025-04-18 11:24:30,698 - DEBUG - ====Verifying policy data for ctest-vn-16937155 in API_Server ====== 2025-04-18 11:24:30,698 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-18 11:24:30,752 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1 2025-04-18 11:24:30,813 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356 2025-04-18 11:24:30,905 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6 2025-04-18 11:24:30,966 - DEBUG - ==>Verifying data for policy with id: f7e7729c-0d44-4615-bbe0-d5b176ade7ee, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521'] 2025-04-18 11:24:30,966 - INFO - VN ctest-vn-16937155 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-18 11:24:30,966 - DEBUG - Verifying the vn in opserver 2025-04-18 11:24:30,966 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155 virtual network link through opserver 10.0.0.49 2025-04-18 11:24:30,966 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks 2025-04-18 11:24:31,025 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155?flat'} 2025-04-18 11:24:31,025 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155 is found in opserver 2025-04-18 11:24:31,128 - DEBUG - Do not have enough data to verify VN in agent 2025-04-18 11:24:31,180 - DEBUG - VRF ids for VN ctest-vn-16937155: {} 2025-04-18 11:24:31,250 - DEBUG - Services list from nova: [, , ] 2025-04-18 11:24:32,603 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-527-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-527-1) 2025-04-18 11:24:34,012 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-527-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-527-1) 2025-04-18 11:24:34,012 - INFO - Waiting for VM ctest-TestBasicPolicy-66997682-46196317 to be up.. 2025-04-18 11:24:34,188 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-18 11:24:39,342 - DEBUG - VM is in ACTIVE state now 2025-04-18 11:24:39,343 - INFO - VM name : ctest-TestBasicPolicy-66997682-46196317 2025-04-18 11:24:39,497 - DEBUG - VM ctest-TestBasicPolicy-66997682-46196317 ID is 9f67720e-5d1a-4fbf-9fe9-4027388df903 2025-04-18 11:24:39,531 - DEBUG - VM ctest-TestBasicPolicy-66997682-46196317 launched on Node cn-jenkins-deploy-platform-juju-os-527-1 2025-04-18 11:24:39,691 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine/9f67720e-5d1a-4fbf-9fe9-4027388df903 2025-04-18 11:24:39,757 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine-interface/ae7fe893-5212-4fb9-9318-5ad22efd230c 2025-04-18 11:24:43,240 - 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 1006ms') 2025-04-18 11:24:43,241 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66997682-46196317 failed! 2025-04-18 11:24:43,304 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802 is 23.82.49.129 and allocation pool is NOT set 2025-04-18 11:24:47,436 - 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=2 ttl=63 time=7.15 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1030ms\r\nrtt min/avg/max/mdev = 7.145/7.145/7.145/0.000 ms') 2025-04-18 11:24:47,436 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66997682-46196317 passed 2025-04-18 11:24:47,607 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 11:24:47,608 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66997682-46196317, IP 23.82.49.131, Port 22 2025-04-18 11:24:47,695 - 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-18 11:24:47,846 - DEBUG - VM ctest-TestBasicPolicy-66997682-46196317 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-18 11:24:52,848 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 11:24:52,848 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66997682-46196317, IP 23.82.49.131, Port 22 2025-04-18 11:24:53,066 - DEBUG - VM ctest-TestBasicPolicy-66997682-46196317 is ready for SSH connections 2025-04-18 11:24:53,067 - INFO - Waiting for VM ctest-TestBasicPolicy-66997682-12201175 to be up.. 2025-04-18 11:24:53,227 - DEBUG - VM is in ACTIVE state now 2025-04-18 11:24:53,227 - INFO - VM name : ctest-TestBasicPolicy-66997682-12201175 2025-04-18 11:24:53,388 - DEBUG - VM ctest-TestBasicPolicy-66997682-12201175 ID is 6305e67c-481c-485d-b580-cf7d84378c47 2025-04-18 11:24:53,389 - DEBUG - VM ctest-TestBasicPolicy-66997682-12201175 launched on Node cn-jenkins-deploy-platform-juju-os-527-1 2025-04-18 11:24:53,544 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine/6305e67c-481c-485d-b580-cf7d84378c47 2025-04-18 11:24:53,609 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-machine-interface/4ac4769b-ba47-42e4-9366-0a8b70dc7347 2025-04-18 11:24:55,081 - 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=3.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.486 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.486/1.872/3.259/1.386 ms') 2025-04-18 11:24:55,081 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-66997682-12201175 passed 2025-04-18 11:24:55,239 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 11:24:55,240 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66997682-12201175, IP 47.115.183.67, Port 22 2025-04-18 11:24:55,466 - DEBUG - VM ctest-TestBasicPolicy-66997682-12201175 is ready for SSH connections 2025-04-18 11:24:55,466 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 11:24:55,466 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.115.183.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-04-18 11:24:55,466 - DEBUG - ping -s 56 -c 3 -W 1 47.115.183.67 2025-04-18 11:24:59,226 - DEBUG - PING 47.115.183.67 (47.115.183.67): 56 data bytes 64 bytes from 47.115.183.67: seq=0 ttl=63 time=3.809 ms 64 bytes from 47.115.183.67: seq=1 ttl=63 time=1.132 ms 64 bytes from 47.115.183.67: seq=2 ttl=63 time=1.168 ms --- 47.115.183.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.132/2.036/3.809 ms 2025-04-18 11:24:59,226 - INFO - Ping to IP 47.115.183.67 from VM ctest-TestBasicPolicy-66997682-46196317 passed 2025-04-18 11:24:59,435 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f7e7729c-0d44-4615-bbe0-d5b176ade7ee", "href": "https://10.0.0.49:8082/network-policy/f7e7729c-0d44-4615-bbe0-d5b176ade7ee"}} 2025-04-18 11:24:59,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-18 11:24:59,436 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.115.183.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-04-18 11:24:59,436 - DEBUG - ping -s 56 -c 3 -W 1 47.115.183.67 2025-04-18 11:25:02,682 - DEBUG - PING 47.115.183.67 (47.115.183.67): 56 data bytes --- 47.115.183.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-18 11:25:02,682 - WARNING - Ping to IP 47.115.183.67 from VM ctest-TestBasicPolicy-66997682-46196317 failed 2025-04-18 11:25:02,682 - INFO - Deleting VM ctest-TestBasicPolicy-66997682-12201175 2025-04-18 11:25:02,819 - INFO - Deleting VM ctest-TestBasicPolicy-66997682-46196317 2025-04-18 11:25:03,737 - INFO - Deleted policy ctest-policy-allow-all-79088521 2025-04-18 11:25:03,737 - INFO - Deleting VN ctest-vn-16937155 2025-04-18 11:25:03,880 - DEBUG - VN 716d85ae-68bd-4b5f-aba0-74a3c726d8e6 still in use: Unable to complete operation on network 716d85ae-68bd-4b5f-aba0-74a3c726d8e6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7e868b54-5c68-4e9d-9bfa-f91866e15c5f'] 2025-04-18 11:25:03,880 - WARNING - Deleting VN ctest-vn-16937155 failed..Will retry 2025-04-18 11:25:06,103 - DEBUG - Response for deleting network () 2025-04-18 11:25:06,104 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c 2025-04-18 11:25:06,156 - DEBUG - Response Code: 404 2025-04-18 11:25:06,156 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-18 11:25:06,209 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1 2025-04-18 11:25:06,277 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356 2025-04-18 11:25:06,381 - INFO - Validated that VN ctest-vn-16937155 is not found in API Server 2025-04-18 11:25:06,489 - DEBUG - VN ctest-vn-16937155 is not present in Agent 10.0.0.49 2025-04-18 11:25:06,489 - INFO - Validated that VN ctest-vn-16937155 is not in any agent 2025-04-18 11:25:06,649 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16937155 info 2025-04-18 11:25:06,649 - INFO - Deleting VN ctest-vn-35121802 2025-04-18 11:25:06,836 - DEBUG - Response for deleting network () 2025-04-18 11:25:06,836 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415 2025-04-18 11:25:06,891 - DEBUG - Response Code: 404 2025-04-18 11:25:06,892 - DEBUG - Requesting: https://10.0.0.49:8082/domains 2025-04-18 11:25:06,948 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1 2025-04-18 11:25:07,014 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356 2025-04-18 11:25:07,106 - INFO - Validated that VN ctest-vn-35121802 is not found in API Server 2025-04-18 11:25:07,212 - DEBUG - VN ctest-vn-35121802 is not present in Agent 10.0.0.49 2025-04-18 11:25:07,212 - INFO - Validated that VN ctest-vn-35121802 is not in any agent 2025-04-18 11:25:07,369 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35121802 info 2025-04-18 11:25:07,769 - DEBUG - No XMPP flaps were noticed during the test 2025-04-18 11:25:07,769 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:44] 2025-04-18 11:25:07,769 - INFO - -------------------------------------------------------------------------------- 2025-04-18 11:25:08,583 - INFO - Deleted project: ctest-TestBasicPolicy-66997682, ID : b1c774dd-563b-43c7-85e6-ba0c0e1e6356