2025-06-26 08:39:51,118 - INFO - Domain Default found not creating 2025-06-26 08:39:51,304 - INFO - Project ctest-TestBasicPolicy-22813364 not found, creating it 2025-06-26 08:39:51,852 - INFO - Created Project:ctest-TestBasicPolicy-22813364, ID : 50e46d8a-3bc8-4d0b-9798-9213a8e20714 2025-06-26 08:39:53,685 - INFO - ================================================================================ 2025-06-26 08:39:53,686 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-26 08:39:53,687 - 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-06-26 08:39:53,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-06-26 08:39:53,972 - INFO - Initial checks done. Running the testcase now 2025-06-26 08:39:53,972 - INFO - 2025-06-26 08:39:54,673 - DEBUG - Response for create_network : {'network': {'id': '0068ff7d-4387-424f-a244-e65f7b7f2c84', 'name': 'ctest-vn-96464441', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-96464441'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 08:39:54,912 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea0b37e0-dcb1-44c8-81b9-7153ddb8ec60', 'name': '', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'network_id': '0068ff7d-4387-424f-a244-e65f7b7f2c84', 'ip_version': 4, 'cidr': '180.112.237.192/26', 'allocation_pools': [{'start': '180.112.237.194', 'end': '180.112.237.254'}], 'gateway_ip': '180.112.237.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.112.237.194', 'tags': [], 'project_id': '50e46d8a3bc84d0b97989213a8e20714'}} 2025-06-26 08:39:54,935 - INFO - Created VN ctest-vn-96464441 2025-06-26 08:39:54,991 - DEBUG - VN ctest-vn-96464441 UUID is 0068ff7d-4387-424f-a244-e65f7b7f2c84 2025-06-26 08:39:55,352 - DEBUG - Response for create_network : {'network': {'id': '2ca58cec-8133-4ee1-927d-d34f0315b0d0', 'name': 'ctest-vn-30146624', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-30146624'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 08:39:55,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9c97081-ddf5-4f73-b846-f3e4b1f7bf0d', 'name': '', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'network_id': '2ca58cec-8133-4ee1-927d-d34f0315b0d0', 'ip_version': 4, 'cidr': '121.114.143.64/26', 'allocation_pools': [{'start': '121.114.143.66', 'end': '121.114.143.126'}], 'gateway_ip': '121.114.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.114.143.66', 'tags': [], 'project_id': '50e46d8a3bc84d0b97989213a8e20714'}} 2025-06-26 08:39:55,595 - INFO - Created VN ctest-vn-30146624 2025-06-26 08:39:55,650 - DEBUG - VN ctest-vn-30146624 UUID is 2ca58cec-8133-4ee1-927d-d34f0315b0d0 2025-06-26 08:39:55,782 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441, 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-22813364:ctest-vn-30146624, 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-06-26 08:39:56,141 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0068ff7d-4387-424f-a244-e65f7b7f2c84', 'name': 'ctest-vn-96464441', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea0b37e0-dcb1-44c8-81b9-7153ddb8ec60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-96464441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424']], 'subnet_ipam': [{'subnet_cidr': '180.112.237.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 08:39:56,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ca58cec-8133-4ee1-927d-d34f0315b0d0', 'name': 'ctest-vn-30146624', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9c97081-ddf5-4f73-b846-f3e4b1f7bf0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-30146624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424']], 'subnet_ipam': [{'subnet_cidr': '121.114.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 08:39:56,602 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-06-26 08:39:56,951 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-06-26 08:39:56,985 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe 2025-06-26 08:39:57,006 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714 2025-06-26 08:39:57,120 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84 2025-06-26 08:39:57,134 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84 2025-06-26 08:39:57,147 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561 2025-06-26 08:39:57,157 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561 2025-06-26 08:39:57,168 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/aaaf3647-45d4-4370-ba1d-09fa59f9efa9 2025-06-26 08:39:57,178 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 08:39:57,178 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84 2025-06-26 08:39:57,192 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561 2025-06-26 08:39:57,212 - INFO - Verified VN network id 7 for VN 0068ff7d-4387-424f-a244-e65f7b7f2c84 2025-06-26 08:39:57,212 - INFO - Verifications in API Server for VN ctest-vn-96464441 passed 2025-06-26 08:39:57,213 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84 2025-06-26 08:39:57,225 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561 2025-06-26 08:39:57,235 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561 2025-06-26 08:39:57,244 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/aaaf3647-45d4-4370-ba1d-09fa59f9efa9 2025-06-26 08:39:57,262 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22813364', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '29554311046840911', 'uuid-lslong': '11692723830328863876'}, 'enable': 'true', 'created': '2025-06-26T08:39:54', 'last-modified': '2025-06-26T08:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.164768'} 2025-06-26 08:39:57,272 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 08:39:57,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96464441 passed 2025-06-26 08:39:57,272 - DEBUG - ====Verifying policy data for ctest-vn-96464441 in API_Server ====== 2025-06-26 08:39:57,272 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-06-26 08:39:57,281 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe 2025-06-26 08:39:57,302 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714 2025-06-26 08:39:57,386 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84 2025-06-26 08:39:57,400 - DEBUG - ==>Verifying data for policy with id: 476d075d-f2af-42eb-9cac-1743f0bd3c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424'] 2025-06-26 08:39:57,400 - INFO - VN ctest-vn-96464441 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 08:39:57,401 - DEBUG - Verifying the vn in opserver 2025-06-26 08:39:57,401 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441 virtual network link through opserver 10.0.0.48 2025-06-26 08:39:57,401 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-06-26 08:39:57,763 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-06-26 08:39:57,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441?flat'} 2025-06-26 08:39:57,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441 is found in opserver 2025-06-26 08:39:57,856 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 08:39:57,864 - DEBUG - VRF ids for VN ctest-vn-96464441: {} 2025-06-26 08:39:57,864 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-06-26 08:39:57,871 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe 2025-06-26 08:39:57,890 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714 2025-06-26 08:39:57,973 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0 2025-06-26 08:39:58,004 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0 2025-06-26 08:39:58,016 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc 2025-06-26 08:39:58,027 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc 2025-06-26 08:39:58,036 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a7b96d52-2753-4497-a9b1-faba8d3cbdfe 2025-06-26 08:39:58,048 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 08:39:58,048 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0 2025-06-26 08:39:58,062 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc 2025-06-26 08:39:58,081 - INFO - Verified VN network id 8 for VN 2ca58cec-8133-4ee1-927d-d34f0315b0d0 2025-06-26 08:39:58,081 - INFO - Verifications in API Server for VN ctest-vn-30146624 passed 2025-06-26 08:39:58,081 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0 2025-06-26 08:39:58,093 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc 2025-06-26 08:39:58,103 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc 2025-06-26 08:39:58,113 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a7b96d52-2753-4497-a9b1-faba8d3cbdfe 2025-06-26 08:39:58,130 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22813364', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3217132456233881313', 'uuid-lslong': '10555825437933940944'}, 'enable': 'true', 'created': '2025-06-26T08:39:55', 'last-modified': '2025-06-26T08:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.745373'} 2025-06-26 08:39:58,137 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 08:39:58,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30146624 passed 2025-06-26 08:39:58,138 - DEBUG - ====Verifying policy data for ctest-vn-30146624 in API_Server ====== 2025-06-26 08:39:58,138 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-06-26 08:39:58,147 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe 2025-06-26 08:39:58,164 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714 2025-06-26 08:39:58,247 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0 2025-06-26 08:39:58,258 - DEBUG - ==>Verifying data for policy with id: 476d075d-f2af-42eb-9cac-1743f0bd3c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424'] 2025-06-26 08:39:58,258 - INFO - VN ctest-vn-30146624 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 08:39:58,258 - DEBUG - Verifying the vn in opserver 2025-06-26 08:39:58,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624 virtual network link through opserver 10.0.0.48 2025-06-26 08:39:58,258 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-06-26 08:39:58,272 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624?flat'} 2025-06-26 08:39:58,272 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624 is found in opserver 2025-06-26 08:39:58,286 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 08:39:58,292 - DEBUG - VRF ids for VN ctest-vn-30146624: {} 2025-06-26 08:39:58,362 - DEBUG - Services list from nova: [, , ] 2025-06-26 08:39:59,604 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3557-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3557-1) 2025-06-26 08:40:01,211 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3557-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3557-1) 2025-06-26 08:40:01,211 - INFO - Waiting for VM ctest-TestBasicPolicy-22813364-94899770 to be up.. 2025-06-26 08:40:01,335 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-26 08:40:06,452 - DEBUG - VM is in ACTIVE state now 2025-06-26 08:40:06,453 - INFO - VM name : ctest-TestBasicPolicy-22813364-94899770 2025-06-26 08:40:06,554 - DEBUG - VM ctest-TestBasicPolicy-22813364-94899770 ID is 57e802ee-8b46-476d-97dd-8ef26b0ad808 2025-06-26 08:40:06,577 - DEBUG - VM ctest-TestBasicPolicy-22813364-94899770 launched on Node cn-jenkins-deploy-platform-ansible-os-3557-1 2025-06-26 08:40:06,678 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/57e802ee-8b46-476d-97dd-8ef26b0ad808 2025-06-26 08:40:06,690 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/935f56db-7809-4961-91d6-ad683ee1aba2 2025-06-26 08:40:09,948 - 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 1004ms') 2025-06-26 08:40:09,949 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22813364-94899770 failed! 2025-06-26 08:40:10,019 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441 is 180.112.237.193 and allocation pool is NOT set 2025-06-26 08:40:14,111 - 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=2.86 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 = 2.862/2.862/2.862/0.000 ms') 2025-06-26 08:40:14,111 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22813364-94899770 passed 2025-06-26 08:40:14,275 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:40:14,275 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22813364-94899770, IP 180.112.237.195, Port 22 2025-06-26 08:40:14,342 - 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-06-26 08:40:14,437 - DEBUG - VM ctest-TestBasicPolicy-22813364-94899770 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-26 08:40:19,438 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:40:19,439 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22813364-94899770, IP 180.112.237.195, Port 22 2025-06-26 08:40:19,609 - DEBUG - VM ctest-TestBasicPolicy-22813364-94899770 is ready for SSH connections 2025-06-26 08:40:19,609 - INFO - Waiting for VM ctest-TestBasicPolicy-22813364-41660926 to be up.. 2025-06-26 08:40:19,721 - DEBUG - VM is in ACTIVE state now 2025-06-26 08:40:19,721 - INFO - VM name : ctest-TestBasicPolicy-22813364-41660926 2025-06-26 08:40:19,829 - DEBUG - VM ctest-TestBasicPolicy-22813364-41660926 ID is 8c46aedd-e2f7-4d2e-b3b3-ce1d8611c36a 2025-06-26 08:40:19,829 - DEBUG - VM ctest-TestBasicPolicy-22813364-41660926 launched on Node cn-jenkins-deploy-platform-ansible-os-3557-1 2025-06-26 08:40:19,930 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/8c46aedd-e2f7-4d2e-b3b3-ce1d8611c36a 2025-06-26 08:40:19,944 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/bdea7190-4768-4861-a5c4-981b91d144a9 2025-06-26 08:40:21,208 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.519 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.519/2.050/3.581/1.531 ms') 2025-06-26 08:40:21,208 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-22813364-41660926 passed 2025-06-26 08:40:21,367 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:40:21,367 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22813364-41660926, IP 121.114.143.67, Port 22 2025-06-26 08:40:21,541 - DEBUG - VM ctest-TestBasicPolicy-22813364-41660926 is ready for SSH connections 2025-06-26 08:40:21,541 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:40:21,541 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.114.143.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-06-26 08:40:21,541 - DEBUG - ping -s 56 -c 3 -W 1 121.114.143.67 2025-06-26 08:40:25,782 - DEBUG - PING 121.114.143.67 (121.114.143.67): 56 data bytes 64 bytes from 121.114.143.67: seq=0 ttl=63 time=4.994 ms 64 bytes from 121.114.143.67: seq=1 ttl=63 time=1.142 ms 64 bytes from 121.114.143.67: seq=2 ttl=63 time=1.140 ms --- 121.114.143.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.140/2.425/4.994 ms 2025-06-26 08:40:25,783 - INFO - Ping to IP 121.114.143.67 from VM ctest-TestBasicPolicy-22813364-94899770 passed 2025-06-26 08:40:25,978 - DEBUG - Policy Update Response {"network-policy": {"uuid": "476d075d-f2af-42eb-9cac-1743f0bd3c83", "href": "http://10.0.0.48:8082/network-policy/476d075d-f2af-42eb-9cac-1743f0bd3c83"}} 2025-06-26 08:40:25,978 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 08:40:25,979 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.114.143.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-06-26 08:40:25,979 - DEBUG - ping -s 56 -c 3 -W 1 121.114.143.67 2025-06-26 08:40:29,226 - DEBUG - PING 121.114.143.67 (121.114.143.67): 56 data bytes --- 121.114.143.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-26 08:40:29,226 - WARNING - Ping to IP 121.114.143.67 from VM ctest-TestBasicPolicy-22813364-94899770 failed 2025-06-26 08:40:29,226 - INFO - Deleting VM ctest-TestBasicPolicy-22813364-41660926 2025-06-26 08:40:29,319 - INFO - Deleting VM ctest-TestBasicPolicy-22813364-94899770 2025-06-26 08:40:29,865 - INFO - Deleted policy ctest-policy-allow-all-30017424 2025-06-26 08:40:29,865 - INFO - Deleting VN ctest-vn-30146624 2025-06-26 08:40:29,911 - DEBUG - VN 2ca58cec-8133-4ee1-927d-d34f0315b0d0 still in use: Unable to complete operation on network 2ca58cec-8133-4ee1-927d-d34f0315b0d0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0ddb0a2f-9ed6-4282-bfcf-1f0fe78ed8a3'] 2025-06-26 08:40:29,911 - WARNING - Deleting VN ctest-vn-30146624 failed..Will retry 2025-06-26 08:40:32,061 - DEBUG - Response for deleting network () 2025-06-26 08:40:32,062 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc 2025-06-26 08:40:32,071 - DEBUG - Response Code: 404 2025-06-26 08:40:32,071 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-06-26 08:40:32,078 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe 2025-06-26 08:40:32,142 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714 2025-06-26 08:40:32,233 - INFO - Validated that VN ctest-vn-30146624 is not found in API Server 2025-06-26 08:40:32,250 - DEBUG - VN ctest-vn-30146624 is not present in Agent 10.0.0.48 2025-06-26 08:40:32,251 - INFO - Validated that VN ctest-vn-30146624 is not in any agent 2025-06-26 08:40:32,273 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30146624 info 2025-06-26 08:40:32,273 - INFO - Deleting VN ctest-vn-96464441 2025-06-26 08:40:32,402 - DEBUG - Response for deleting network () 2025-06-26 08:40:32,402 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561 2025-06-26 08:40:32,410 - DEBUG - Response Code: 404 2025-06-26 08:40:32,410 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-06-26 08:40:32,420 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe 2025-06-26 08:40:32,478 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714 2025-06-26 08:40:32,559 - INFO - Validated that VN ctest-vn-96464441 is not found in API Server 2025-06-26 08:40:32,574 - DEBUG - VN ctest-vn-96464441 is not present in Agent 10.0.0.48 2025-06-26 08:40:32,574 - INFO - Validated that VN ctest-vn-96464441 is not in any agent 2025-06-26 08:40:32,595 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96464441 info 2025-06-26 08:40:32,869 - DEBUG - No XMPP flaps were noticed during the test 2025-06-26 08:40:32,869 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-06-26 08:40:32,869 - INFO - -------------------------------------------------------------------------------- 2025-06-26 08:40:33,655 - INFO - Deleted project: ctest-TestBasicPolicy-22813364, ID : 50e46d8a-3bc8-4d0b-9798-9213a8e20714