2025-10-30 02:02:39,472 - INFO - Reading existing Domain with UUID e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:39,486 - INFO - Using existing domain ['admin_domain'](e05897ec-8f26-4de0-b53d-6381700aec6a) 2025-10-30 02:02:39,718 - INFO - Project ctest-TestBasicPolicy-45801335 not found, creating it 2025-10-30 02:02:40,215 - INFO - Created Project:ctest-TestBasicPolicy-45801335, ID : cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef 2025-10-30 02:02:41,960 - INFO - ================================================================================ 2025-10-30 02:02:41,961 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-30 02:02:41,961 - 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-10-30 02:02:42,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2025-10-30 02:02:42,365 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:02:42,365 - INFO - 2025-10-30 02:02:43,139 - DEBUG - Response for create_network : {'network': {'id': 'e222579a-4f9a-4751-b8cf-1eea8a0621d6', 'name': 'ctest-vn-36761127', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-36761127'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-30 02:02:43,352 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e6bfcbb-2d74-4cdb-9f74-c907d22b1ea6', 'name': '', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'network_id': 'e222579a-4f9a-4751-b8cf-1eea8a0621d6', 'ip_version': 4, 'cidr': '116.151.48.64/26', 'allocation_pools': [{'start': '116.151.48.66', 'end': '116.151.48.126'}], 'gateway_ip': '116.151.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-30T02:02:43.249902', 'updated_at': '2025-10-30T02:02:43.249902', 'dns_server_address': '116.151.48.66', 'tags': [], 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef'}} 2025-10-30 02:02:43,417 - INFO - Created VN ctest-vn-36761127 2025-10-30 02:02:43,475 - DEBUG - VN ctest-vn-36761127 UUID is e222579a-4f9a-4751-b8cf-1eea8a0621d6 2025-10-30 02:02:44,007 - DEBUG - Response for create_network : {'network': {'id': '77a7e031-334f-4d3e-8a3b-f76e3abdfa8b', 'name': 'ctest-vn-28500744', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-28500744'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-30 02:02:44,285 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd97f23e2-bd4f-4450-9f47-091550161c4b', 'name': '', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'network_id': '77a7e031-334f-4d3e-8a3b-f76e3abdfa8b', 'ip_version': 4, 'cidr': '90.190.107.0/26', 'allocation_pools': [{'start': '90.190.107.2', 'end': '90.190.107.62'}], 'gateway_ip': '90.190.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-30T02:02:44.172705', 'updated_at': '2025-10-30T02:02:44.172705', 'dns_server_address': '90.190.107.2', 'tags': [], 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef'}} 2025-10-30 02:02:44,353 - INFO - Created VN ctest-vn-28500744 2025-10-30 02:02:44,415 - DEBUG - VN ctest-vn-28500744 UUID is 77a7e031-334f-4d3e-8a3b-f76e3abdfa8b 2025-10-30 02:02:44,631 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127, 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-45801335:ctest-vn-28500744, 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-10-30 02:02:45,038 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e222579a-4f9a-4751-b8cf-1eea8a0621d6', 'name': 'ctest-vn-36761127', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e6bfcbb-2d74-4cdb-9f74-c907d22b1ea6'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-36761127'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824']], 'subnet_ipam': [{'subnet_cidr': '116.151.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-30T02:02:43.065878', 'updated_at': '2025-10-30T02:02:43.262712'}} 2025-10-30 02:02:45,391 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77a7e031-334f-4d3e-8a3b-f76e3abdfa8b', 'name': 'ctest-vn-28500744', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d97f23e2-bd4f-4450-9f47-091550161c4b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-28500744'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824']], 'subnet_ipam': [{'subnet_cidr': '90.190.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-30T02:02:43.931274', 'updated_at': '2025-10-30T02:02:44.186478'}} 2025-10-30 02:02:45,611 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:45,960 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:46,043 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:46,100 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef 2025-10-30 02:02:46,176 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6 2025-10-30 02:02:46,233 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6 2025-10-30 02:02:46,288 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33 2025-10-30 02:02:46,344 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33 2025-10-30 02:02:46,400 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/d8b26ae4-f967-4b34-906a-b19db2ba39d7 2025-10-30 02:02:46,455 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:02:46,455 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6 2025-10-30 02:02:46,508 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33 2025-10-30 02:02:46,573 - INFO - Verified VN network id 11 for VN e222579a-4f9a-4751-b8cf-1eea8a0621d6 2025-10-30 02:02:46,573 - INFO - Verifications in API Server for VN ctest-vn-36761127 passed 2025-10-30 02:02:46,573 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6 2025-10-30 02:02:46,629 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33 2025-10-30 02:02:46,684 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33 2025-10-30 02:02:46,740 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/d8b26ae4-f967-4b34-906a-b19db2ba39d7 2025-10-30 02:02:46,844 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45801335', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16294682722051966801', 'uuid-lslong': '13316896615844684246'}, 'enable': 'true', 'created': '2025-10-30T02:02:43', 'last-modified': '2025-10-30T02:02:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.826440'} 2025-10-30 02:02:46,898 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:02:46,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36761127 passed 2025-10-30 02:02:46,898 - DEBUG - ====Verifying policy data for ctest-vn-36761127 in API_Server ====== 2025-10-30 02:02:46,898 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:46,955 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:47,012 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef 2025-10-30 02:02:47,088 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6 2025-10-30 02:02:47,144 - DEBUG - ==>Verifying data for policy with id: 5fcc9b3a-62d4-4f27-95a2-e3fd730dbe92, fqn: ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824'] 2025-10-30 02:02:47,144 - INFO - VN ctest-vn-36761127 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:02:47,144 - DEBUG - Verifying the vn in opserver 2025-10-30 02:02:47,144 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127 virtual network link through opserver 10.0.0.27 2025-10-30 02:02:47,145 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-30 02:02:47,486 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-30 02:02:47,600 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127?flat'} 2025-10-30 02:02:47,600 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127 is found in opserver 2025-10-30 02:02:47,699 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:02:47,747 - DEBUG - VRF ids for VN ctest-vn-36761127: {} 2025-10-30 02:02:47,747 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:47,799 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:47,860 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef 2025-10-30 02:02:47,940 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b 2025-10-30 02:02:47,996 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b 2025-10-30 02:02:48,052 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33 2025-10-30 02:02:48,108 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33 2025-10-30 02:02:48,160 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/cfb945e1-9486-4443-8921-01b0784483c0 2025-10-30 02:02:48,212 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-30 02:02:48,212 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b 2025-10-30 02:02:48,269 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33 2025-10-30 02:02:48,332 - INFO - Verified VN network id 12 for VN 77a7e031-334f-4d3e-8a3b-f76e3abdfa8b 2025-10-30 02:02:48,332 - INFO - Verifications in API Server for VN ctest-vn-28500744 passed 2025-10-30 02:02:48,332 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b 2025-10-30 02:02:48,393 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33 2025-10-30 02:02:48,452 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33 2025-10-30 02:02:48,503 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/cfb945e1-9486-4443-8921-01b0784483c0 2025-10-30 02:02:48,608 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45801335', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8622106513542958398', 'uuid-lslong': '9960827053663976075'}, 'enable': 'true', 'created': '2025-10-30T02:02:43', 'last-modified': '2025-10-30T02:02:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.246767'} 2025-10-30 02:02:48,661 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-30 02:02:48,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28500744 passed 2025-10-30 02:02:48,661 - DEBUG - ====Verifying policy data for ctest-vn-28500744 in API_Server ====== 2025-10-30 02:02:48,661 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:48,715 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:48,776 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef 2025-10-30 02:02:48,860 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b 2025-10-30 02:02:48,917 - DEBUG - ==>Verifying data for policy with id: 5fcc9b3a-62d4-4f27-95a2-e3fd730dbe92, fqn: ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824'] 2025-10-30 02:02:48,917 - INFO - VN ctest-vn-28500744 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:02:48,917 - DEBUG - Verifying the vn in opserver 2025-10-30 02:02:48,917 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744 virtual network link through opserver 10.0.0.27 2025-10-30 02:02:48,917 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-30 02:02:48,971 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744?flat'} 2025-10-30 02:02:48,971 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744 is found in opserver 2025-10-30 02:02:49,075 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:02:49,123 - DEBUG - VRF ids for VN ctest-vn-28500744: {} 2025-10-30 02:02:49,185 - DEBUG - Services list from nova: [, , ] 2025-10-30 02:02:50,280 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-610-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-610-1) 2025-10-30 02:02:51,620 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-610-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-610-1) 2025-10-30 02:02:51,620 - INFO - Waiting for VM ctest-TestBasicPolicy-45801335-07867058 to be up.. 2025-10-30 02:02:51,762 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-30 02:02:56,902 - DEBUG - VM is in ACTIVE state now 2025-10-30 02:02:56,903 - INFO - VM name : ctest-TestBasicPolicy-45801335-07867058 2025-10-30 02:02:57,035 - DEBUG - VM ctest-TestBasicPolicy-45801335-07867058 ID is 614554cb-a9a0-4f61-a23c-8f8c64958cee 2025-10-30 02:02:57,073 - DEBUG - VM ctest-TestBasicPolicy-45801335-07867058 launched on Node cn-jenkins-deploy-platform-juju-os-610-1 2025-10-30 02:02:57,215 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-machine/614554cb-a9a0-4f61-a23c-8f8c64958cee 2025-10-30 02:02:57,271 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-machine-interface/6595a9dc-30f0-4176-b422-f268d8f98ffd 2025-10-30 02:03:00,731 - 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 1008ms') 2025-10-30 02:03:00,731 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45801335-07867058 failed! 2025-10-30 02:03:00,787 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127 is 116.151.48.65 and allocation pool is NOT set 2025-10-30 02:03:02,873 - 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=3.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.683 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 = 0.683/2.308/3.934/1.625 ms') 2025-10-30 02:03:02,873 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45801335-07867058 passed 2025-10-30 02:03:03,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:03:03,027 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45801335-07867058, IP 116.151.48.67, Port 22 2025-10-30 02:03:03,123 - 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-10-30 02:03:03,263 - DEBUG - VM ctest-TestBasicPolicy-45801335-07867058 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 02:03:08,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:03:08,265 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45801335-07867058, IP 116.151.48.67, Port 22 2025-10-30 02:03:08,491 - DEBUG - VM ctest-TestBasicPolicy-45801335-07867058 is ready for SSH connections 2025-10-30 02:03:08,491 - INFO - Waiting for VM ctest-TestBasicPolicy-45801335-26758385 to be up.. 2025-10-30 02:03:08,620 - DEBUG - VM is in ACTIVE state now 2025-10-30 02:03:08,620 - INFO - VM name : ctest-TestBasicPolicy-45801335-26758385 2025-10-30 02:03:08,766 - DEBUG - VM ctest-TestBasicPolicy-45801335-26758385 ID is 07ceaa3f-e1ff-4229-9a94-13c7237f23a2 2025-10-30 02:03:08,766 - DEBUG - VM ctest-TestBasicPolicy-45801335-26758385 launched on Node cn-jenkins-deploy-platform-juju-os-610-1 2025-10-30 02:03:08,912 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-machine/07ceaa3f-e1ff-4229-9a94-13c7237f23a2 2025-10-30 02:03:08,968 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-machine-interface/6d586cbc-c0f6-488e-bb67-71f1666d2d46 2025-10-30 02:03:10,426 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.369 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.369/1.652/2.936/1.283 ms') 2025-10-30 02:03:10,426 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-45801335-26758385 passed 2025-10-30 02:03:10,583 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:03:10,583 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45801335-26758385, IP 90.190.107.3, Port 22 2025-10-30 02:03:10,801 - DEBUG - VM ctest-TestBasicPolicy-45801335-26758385 is ready for SSH connections 2025-10-30 02:03:10,801 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:03:10,801 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 90.190.107.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-30 02:03:10,801 - DEBUG - ping -s 56 -c 3 -W 1 90.190.107.3 2025-10-30 02:03:14,891 - DEBUG - PING 90.190.107.3 (90.190.107.3): 56 data bytes 64 bytes from 90.190.107.3: seq=0 ttl=63 time=3.442 ms 64 bytes from 90.190.107.3: seq=1 ttl=63 time=0.904 ms 64 bytes from 90.190.107.3: seq=2 ttl=63 time=1.146 ms --- 90.190.107.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.904/1.830/3.442 ms 2025-10-30 02:03:14,891 - INFO - Ping to IP 90.190.107.3 from VM ctest-TestBasicPolicy-45801335-07867058 passed 2025-10-30 02:03:15,070 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5fcc9b3a-62d4-4f27-95a2-e3fd730dbe92", "href": "https://10.0.0.27:8082/network-policy/5fcc9b3a-62d4-4f27-95a2-e3fd730dbe92"}} 2025-10-30 02:03:15,071 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:03:15,071 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 90.190.107.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-30 02:03:15,071 - DEBUG - ping -s 56 -c 3 -W 1 90.190.107.3 2025-10-30 02:03:18,274 - DEBUG - PING 90.190.107.3 (90.190.107.3): 56 data bytes 64 bytes from 90.190.107.3: seq=0 ttl=63 time=1.702 ms --- 90.190.107.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.702/1.702/1.702 ms 2025-10-30 02:03:18,275 - WARNING - Ping to IP 90.190.107.3 from VM ctest-TestBasicPolicy-45801335-07867058 failed 2025-10-30 02:03:18,275 - INFO - Deleting VM ctest-TestBasicPolicy-45801335-26758385 2025-10-30 02:03:18,486 - INFO - Deleting VM ctest-TestBasicPolicy-45801335-07867058 2025-10-30 02:03:19,197 - INFO - Deleted policy ctest-policy-allow-all-75934824 2025-10-30 02:03:19,197 - INFO - Deleting VN ctest-vn-28500744 2025-10-30 02:03:19,330 - DEBUG - VN 77a7e031-334f-4d3e-8a3b-f76e3abdfa8b still in use: Unable to complete operation on network 77a7e031-334f-4d3e-8a3b-f76e3abdfa8b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f2252fc7-66d6-4707-b872-0acfa14e642b'] 2025-10-30 02:03:19,330 - WARNING - Deleting VN ctest-vn-28500744 failed..Will retry 2025-10-30 02:03:21,505 - DEBUG - Response for deleting network () 2025-10-30 02:03:21,505 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33 2025-10-30 02:03:21,563 - DEBUG - Response Code: 404 2025-10-30 02:03:21,563 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:03:21,619 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:03:21,680 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef 2025-10-30 02:03:21,756 - INFO - Validated that VN ctest-vn-28500744 is not found in API Server 2025-10-30 02:03:21,851 - DEBUG - VN ctest-vn-28500744 is not present in Agent 10.0.0.27 2025-10-30 02:03:21,851 - INFO - Validated that VN ctest-vn-28500744 is not in any agent 2025-10-30 02:03:22,008 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28500744 info 2025-10-30 02:03:22,008 - INFO - Deleting VN ctest-vn-36761127 2025-10-30 02:03:22,179 - DEBUG - Response for deleting network () 2025-10-30 02:03:22,179 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33 2025-10-30 02:03:22,247 - DEBUG - Response Code: 404 2025-10-30 02:03:22,247 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:03:22,299 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:03:22,356 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef 2025-10-30 02:03:22,432 - INFO - Validated that VN ctest-vn-36761127 is not found in API Server 2025-10-30 02:03:22,535 - DEBUG - VN ctest-vn-36761127 is not present in Agent 10.0.0.27 2025-10-30 02:03:22,535 - INFO - Validated that VN ctest-vn-36761127 is not in any agent 2025-10-30 02:03:22,680 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36761127 info 2025-10-30 02:03:23,072 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 02:03:23,072 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42]
2025-10-30 02:03:23,072 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:03:23,792 - INFO - Deleted project: ctest-TestBasicPolicy-45801335, ID : cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef