2025-04-16 07:02:22,492 - INFO - Reading existing Domain with UUID ff0a6a62-6028-4162-b7f1-646624f57635 2025-04-16 07:02:22,506 - INFO - Using existing domain ['admin_domain'](ff0a6a62-6028-4162-b7f1-646624f57635) 2025-04-16 07:02:22,745 - INFO - Project ctest-TestBasicPolicy-21590007 not found, creating it 2025-04-16 07:02:23,270 - INFO - Created Project:ctest-TestBasicPolicy-21590007, ID : fb976b14-c26e-40a4-8d8d-a10b9748b083 2025-04-16 07:02:25,287 - INFO - ================================================================================ 2025-04-16 07:02:25,287 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-16 07:02:25,287 - 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-16 07:02:25,710 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.0.0.249': '0'}} with 2025-04-16 07:02:25,710 - INFO - Initial checks done. Running the testcase now 2025-04-16 07:02:25,710 - INFO - 2025-04-16 07:02:26,638 - DEBUG - Response for create_network : {'network': {'id': '66bb5f7d-5f6c-4056-ac03-32aa9e932744', 'name': 'ctest-vn-22973060', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-22973060'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-16 07:02:26,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba089dc6-6b46-43bf-a075-c1486154c067', 'name': '', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'network_id': '66bb5f7d-5f6c-4056-ac03-32aa9e932744', 'ip_version': 4, 'cidr': '149.51.58.0/26', 'allocation_pools': [{'start': '149.51.58.2', 'end': '149.51.58.62'}], 'gateway_ip': '149.51.58.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T07:02:26.779618', 'updated_at': '2025-04-16T07:02:26.779618', 'dns_server_address': '149.51.58.2', 'tags': [], 'project_id': 'fb976b14c26e40a48d8da10b9748b083'}} 2025-04-16 07:02:26,991 - INFO - Created VN ctest-vn-22973060 2025-04-16 07:02:27,048 - DEBUG - VN ctest-vn-22973060 UUID is 66bb5f7d-5f6c-4056-ac03-32aa9e932744 2025-04-16 07:02:27,610 - DEBUG - Response for create_network : {'network': {'id': '6b0591ea-345d-45ec-b91c-d77de4ba0610', 'name': 'ctest-vn-31374378', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-31374378'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-16 07:02:27,886 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9dfcb10-5ce3-48ae-9d3b-90ac3e9a6eda', 'name': '', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'network_id': '6b0591ea-345d-45ec-b91c-d77de4ba0610', 'ip_version': 4, 'cidr': '195.242.132.64/26', 'allocation_pools': [{'start': '195.242.132.66', 'end': '195.242.132.126'}], 'gateway_ip': '195.242.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T07:02:27.772892', 'updated_at': '2025-04-16T07:02:27.772892', 'dns_server_address': '195.242.132.66', 'tags': [], 'project_id': 'fb976b14c26e40a48d8da10b9748b083'}} 2025-04-16 07:02:27,959 - INFO - Created VN ctest-vn-31374378 2025-04-16 07:02:28,016 - DEBUG - VN ctest-vn-31374378 UUID is 6b0591ea-345d-45ec-b91c-d77de4ba0610 2025-04-16 07:02:28,248 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060, 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-21590007:ctest-vn-31374378, 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-16 07:02:28,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66bb5f7d-5f6c-4056-ac03-32aa9e932744', 'name': 'ctest-vn-22973060', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba089dc6-6b46-43bf-a075-c1486154c067'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-22973060'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916']], 'subnet_ipam': [{'subnet_cidr': '149.51.58.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T07:02:26.535690', 'updated_at': '2025-04-16T07:02:26.798702'}} 2025-04-16 07:02:29,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b0591ea-345d-45ec-b91c-d77de4ba0610', 'name': 'ctest-vn-31374378', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9dfcb10-5ce3-48ae-9d3b-90ac3e9a6eda'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-31374378'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916']], 'subnet_ipam': [{'subnet_cidr': '195.242.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T07:02:27.524211', 'updated_at': '2025-04-16T07:02:27.789574'}} 2025-04-16 07:02:29,324 - DEBUG - Requesting: https://10.0.0.249:8082/domains 2025-04-16 07:02:29,718 - DEBUG - Requesting: https://10.0.0.249:8082/domains 2025-04-16 07:02:29,809 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635 2025-04-16 07:02:29,874 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083 2025-04-16 07:02:29,966 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744 2025-04-16 07:02:30,027 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744 2025-04-16 07:02:30,091 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911 2025-04-16 07:02:30,150 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911 2025-04-16 07:02:30,206 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/19dcec28-f215-4f89-9b7d-59f38b175cea 2025-04-16 07:02:30,262 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 07:02:30,262 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744 2025-04-16 07:02:30,324 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911 2025-04-16 07:02:30,393 - INFO - Verified VN network id 8 for VN 66bb5f7d-5f6c-4056-ac03-32aa9e932744 2025-04-16 07:02:30,393 - INFO - Verifications in API Server for VN ctest-vn-22973060 passed 2025-04-16 07:02:30,393 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744 2025-04-16 07:02:30,452 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911 2025-04-16 07:02:30,510 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911 2025-04-16 07:02:30,566 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/19dcec28-f215-4f89-9b7d-59f38b175cea 2025-04-16 07:02:30,678 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21590007', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7402615404590022742', 'uuid-lslong': '12394806307840010052'}, 'enable': 'true', 'created': '2025-04-16T07:02:26', 'last-modified': '2025-04-16T07:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.021170'} 2025-04-16 07:02:30,731 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 07:02:30,731 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22973060 passed 2025-04-16 07:02:30,731 - DEBUG - ====Verifying policy data for ctest-vn-22973060 in API_Server ====== 2025-04-16 07:02:30,731 - DEBUG - Requesting: https://10.0.0.249:8082/domains 2025-04-16 07:02:30,786 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635 2025-04-16 07:02:30,846 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083 2025-04-16 07:02:30,934 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744 2025-04-16 07:02:30,997 - DEBUG - ==>Verifying data for policy with id: 83eb19e3-4420-4f79-a3c5-370a5ba1598d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916'] 2025-04-16 07:02:30,997 - INFO - VN ctest-vn-22973060 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 07:02:30,997 - DEBUG - Verifying the vn in opserver 2025-04-16 07:02:30,997 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060 virtual network link through opserver 10.0.0.249 2025-04-16 07:02:30,998 - DEBUG - Requesting: https://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-16 07:02:31,392 - DEBUG - Requesting: https://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-16 07:02:31,577 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060', 'href': 'https://10.0.0.249:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060?flat'} 2025-04-16 07:02:31,577 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060 is found in opserver 2025-04-16 07:02:31,689 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 07:02:31,741 - DEBUG - VRF ids for VN ctest-vn-22973060: {} 2025-04-16 07:02:31,741 - DEBUG - Requesting: https://10.0.0.249:8082/domains 2025-04-16 07:02:31,797 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635 2025-04-16 07:02:31,858 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083 2025-04-16 07:02:31,938 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610 2025-04-16 07:02:31,999 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610 2025-04-16 07:02:32,060 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8 2025-04-16 07:02:32,122 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8 2025-04-16 07:02:32,182 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/7c9f34e0-3b25-4aee-bf1e-22afdbf9dae8 2025-04-16 07:02:32,237 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 07:02:32,237 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610 2025-04-16 07:02:32,295 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8 2025-04-16 07:02:32,360 - INFO - Verified VN network id 9 for VN 6b0591ea-345d-45ec-b91c-d77de4ba0610 2025-04-16 07:02:32,360 - INFO - Verifications in API Server for VN ctest-vn-31374378 passed 2025-04-16 07:02:32,361 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610 2025-04-16 07:02:32,419 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8 2025-04-16 07:02:32,474 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8 2025-04-16 07:02:32,529 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/7c9f34e0-3b25-4aee-bf1e-22afdbf9dae8 2025-04-16 07:02:32,646 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21590007', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7711730372028745196', 'uuid-lslong': '13338773132072846864'}, 'enable': 'true', 'created': '2025-04-16T07:02:27', 'last-modified': '2025-04-16T07:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.612939'} 2025-04-16 07:02:32,703 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 07:02:32,703 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31374378 passed 2025-04-16 07:02:32,703 - DEBUG - ====Verifying policy data for ctest-vn-31374378 in API_Server ====== 2025-04-16 07:02:32,703 - DEBUG - Requesting: https://10.0.0.249:8082/domains 2025-04-16 07:02:32,757 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635 2025-04-16 07:02:32,821 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083 2025-04-16 07:02:32,910 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610 2025-04-16 07:02:32,972 - DEBUG - ==>Verifying data for policy with id: 83eb19e3-4420-4f79-a3c5-370a5ba1598d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916'] 2025-04-16 07:02:32,972 - INFO - VN ctest-vn-31374378 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 07:02:32,972 - DEBUG - Verifying the vn in opserver 2025-04-16 07:02:32,972 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378 virtual network link through opserver 10.0.0.249 2025-04-16 07:02:32,972 - DEBUG - Requesting: https://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-16 07:02:33,029 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378', 'href': 'https://10.0.0.249:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378?flat'} 2025-04-16 07:02:33,029 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378 is found in opserver 2025-04-16 07:02:33,133 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 07:02:33,185 - DEBUG - VRF ids for VN ctest-vn-31374378: {} 2025-04-16 07:02:33,280 - DEBUG - Services list from nova: [, , ] 2025-04-16 07:02:34,664 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-513-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-513-1) 2025-04-16 07:02:36,105 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-513-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-513-1) 2025-04-16 07:02:36,105 - INFO - Waiting for VM ctest-TestBasicPolicy-21590007-42679950 to be up.. 2025-04-16 07:02:36,283 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 07:02:41,445 - DEBUG - VM is in ACTIVE state now 2025-04-16 07:02:41,445 - INFO - VM name : ctest-TestBasicPolicy-21590007-42679950 2025-04-16 07:02:41,619 - DEBUG - VM ctest-TestBasicPolicy-21590007-42679950 ID is 4d846452-9331-4a99-a2ab-c8fb48a7803a 2025-04-16 07:02:41,649 - DEBUG - VM ctest-TestBasicPolicy-21590007-42679950 launched on Node cn-jenkins-deploy-platform-juju-os-513-1 2025-04-16 07:02:41,817 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-machine/4d846452-9331-4a99-a2ab-c8fb48a7803a 2025-04-16 07:02:41,874 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-machine-interface/1c97d6c2-e50f-4450-ab30-afdab5a80857 2025-04-16 07:02:45,374 - 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 1017ms') 2025-04-16 07:02:45,374 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21590007-42679950 failed! 2025-04-16 07:02:45,440 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060 is 149.51.58.1 and allocation pool is NOT set 2025-04-16 07:02:49,537 - 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=3.15 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 3.154/3.154/3.154/0.000 ms') 2025-04-16 07:02:49,538 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21590007-42679950 passed 2025-04-16 07:02:49,697 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 07:02:49,697 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21590007-42679950, IP 149.51.58.3, Port 22 2025-04-16 07:02:49,787 - 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-16 07:02:49,948 - DEBUG - VM ctest-TestBasicPolicy-21590007-42679950 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 07:02:54,948 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 07:02:54,949 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21590007-42679950, IP 149.51.58.3, Port 22 2025-04-16 07:02:55,035 - 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-16 07:02:55,190 - DEBUG - VM ctest-TestBasicPolicy-21590007-42679950 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 07:03:00,192 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 07:03:00,192 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21590007-42679950, IP 149.51.58.3, Port 22 2025-04-16 07:03:00,407 - DEBUG - VM ctest-TestBasicPolicy-21590007-42679950 is ready for SSH connections 2025-04-16 07:03:00,407 - INFO - Waiting for VM ctest-TestBasicPolicy-21590007-85647221 to be up.. 2025-04-16 07:03:00,562 - DEBUG - VM is in ACTIVE state now 2025-04-16 07:03:00,562 - INFO - VM name : ctest-TestBasicPolicy-21590007-85647221 2025-04-16 07:03:00,710 - DEBUG - VM ctest-TestBasicPolicy-21590007-85647221 ID is 0df145fd-43d0-49d2-9ca7-1748c74269b5 2025-04-16 07:03:00,710 - DEBUG - VM ctest-TestBasicPolicy-21590007-85647221 launched on Node cn-jenkins-deploy-platform-juju-os-513-1 2025-04-16 07:03:00,859 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-machine/0df145fd-43d0-49d2-9ca7-1748c74269b5 2025-04-16 07:03:00,917 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-machine-interface/dc5f8bf7-379c-47a2-8f10-f3d898516160 2025-04-16 07:03:02,388 - 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.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.613 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.613/2.339/4.065/1.726 ms') 2025-04-16 07:03:02,388 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-21590007-85647221 passed 2025-04-16 07:03:02,544 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 07:03:02,544 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21590007-85647221, IP 195.242.132.67, Port 22 2025-04-16 07:03:02,771 - DEBUG - VM ctest-TestBasicPolicy-21590007-85647221 is ready for SSH connections 2025-04-16 07:03:02,771 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 07:03:02,772 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 195.242.132.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-04-16 07:03:02,772 - DEBUG - ping -s 56 -c 3 -W 1 195.242.132.67 2025-04-16 07:03:06,967 - DEBUG - PING 195.242.132.67 (195.242.132.67): 56 data bytes 64 bytes from 195.242.132.67: seq=0 ttl=63 time=4.182 ms 64 bytes from 195.242.132.67: seq=1 ttl=63 time=1.124 ms 64 bytes from 195.242.132.67: seq=2 ttl=63 time=0.957 ms --- 195.242.132.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.957/2.087/4.182 ms 2025-04-16 07:03:06,967 - INFO - Ping to IP 195.242.132.67 from VM ctest-TestBasicPolicy-21590007-42679950 passed 2025-04-16 07:03:07,176 - DEBUG - Policy Update Response {"network-policy": {"uuid": "83eb19e3-4420-4f79-a3c5-370a5ba1598d", "href": "https://10.0.0.249:8082/network-policy/83eb19e3-4420-4f79-a3c5-370a5ba1598d"}} 2025-04-16 07:03:07,176 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 07:03:07,176 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 195.242.132.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-04-16 07:03:07,176 - DEBUG - ping -s 56 -c 3 -W 1 195.242.132.67 2025-04-16 07:03:10,410 - DEBUG - PING 195.242.132.67 (195.242.132.67): 56 data bytes --- 195.242.132.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-16 07:03:10,410 - WARNING - Ping to IP 195.242.132.67 from VM ctest-TestBasicPolicy-21590007-42679950 failed 2025-04-16 07:03:10,411 - INFO - Deleting VM ctest-TestBasicPolicy-21590007-85647221 2025-04-16 07:03:10,543 - INFO - Deleting VM ctest-TestBasicPolicy-21590007-42679950 2025-04-16 07:03:11,465 - INFO - Deleted policy ctest-policy-allow-all-10201916 2025-04-16 07:03:11,466 - INFO - Deleting VN ctest-vn-31374378 2025-04-16 07:03:11,628 - DEBUG - VN 6b0591ea-345d-45ec-b91c-d77de4ba0610 still in use: Unable to complete operation on network 6b0591ea-345d-45ec-b91c-d77de4ba0610. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9c2fce22-c714-4f91-aaa6-1ec049642e98'] 2025-04-16 07:03:11,629 - WARNING - Deleting VN ctest-vn-31374378 failed..Will retry 2025-04-16 07:03:13,821 - DEBUG - Response for deleting network () 2025-04-16 07:03:13,821 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8 2025-04-16 07:03:13,876 - DEBUG - Response Code: 404 2025-04-16 07:03:13,876 - DEBUG - Requesting: https://10.0.0.249:8082/domains 2025-04-16 07:03:13,929 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635 2025-04-16 07:03:13,989 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083 2025-04-16 07:03:14,074 - INFO - Validated that VN ctest-vn-31374378 is not found in API Server 2025-04-16 07:03:14,177 - DEBUG - VN ctest-vn-31374378 is not present in Agent 10.0.0.249 2025-04-16 07:03:14,177 - INFO - Validated that VN ctest-vn-31374378 is not in any agent 2025-04-16 07:03:14,333 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31374378 info 2025-04-16 07:03:14,333 - INFO - Deleting VN ctest-vn-22973060 2025-04-16 07:03:14,526 - DEBUG - Response for deleting network () 2025-04-16 07:03:14,526 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911 2025-04-16 07:03:14,580 - DEBUG - Response Code: 404 2025-04-16 07:03:14,580 - DEBUG - Requesting: https://10.0.0.249:8082/domains 2025-04-16 07:03:14,637 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635 2025-04-16 07:03:14,698 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083 2025-04-16 07:03:14,782 - INFO - Validated that VN ctest-vn-22973060 is not found in API Server 2025-04-16 07:03:14,885 - DEBUG - VN ctest-vn-22973060 is not present in Agent 10.0.0.249 2025-04-16 07:03:14,885 - INFO - Validated that VN ctest-vn-22973060 is not in any agent 2025-04-16 07:03:15,041 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22973060 info 2025-04-16 07:03:15,438 - DEBUG - No XMPP flaps were noticed during the test 2025-04-16 07:03:15,438 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:50] 2025-04-16 07:03:15,438 - INFO - -------------------------------------------------------------------------------- 2025-04-16 07:03:16,257 - INFO - Deleted project: ctest-TestBasicPolicy-21590007, ID : fb976b14-c26e-40a4-8d8d-a10b9748b083