2025-10-31 03:09:22,437 - INFO - Domain Default found not creating 2025-10-31 03:09:22,566 - INFO - Project ctest-TestBasicPolicy-47402719 not found, creating it 2025-10-31 03:09:22,988 - INFO - Created Project:ctest-TestBasicPolicy-47402719, ID : e71871d9-ec10-45e8-b53b-ba44ffe639e7 2025-10-31 03:09:24,403 - INFO - ================================================================================ 2025-10-31 03:09:24,404 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-31 03:09:24,404 - 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-31 03:09:24,656 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2025-10-31 03:09:24,656 - INFO - Initial checks done. Running the testcase now 2025-10-31 03:09:24,656 - INFO - 2025-10-31 03:09:25,171 - DEBUG - Response for create_network : {'network': {'id': '484671ff-b256-4fb2-9101-c4379e25fb2c', 'name': 'ctest-vn-78372662', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-78372662'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:09:25,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c6a0772-56e7-4b76-a983-c2943f76a48e', 'name': '', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'network_id': '484671ff-b256-4fb2-9101-c4379e25fb2c', 'ip_version': 4, 'cidr': '50.85.148.0/26', 'allocation_pools': [{'start': '50.85.148.2', 'end': '50.85.148.62'}], 'gateway_ip': '50.85.148.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.85.148.2', 'tags': [], 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7'}} 2025-10-31 03:09:25,363 - INFO - Created VN ctest-vn-78372662 2025-10-31 03:09:25,415 - DEBUG - VN ctest-vn-78372662 UUID is 484671ff-b256-4fb2-9101-c4379e25fb2c 2025-10-31 03:09:25,731 - DEBUG - Response for create_network : {'network': {'id': '1fad851c-28cf-48d1-9249-9a8266f860d5', 'name': 'ctest-vn-94423272', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-94423272'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:09:25,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '7eb9384d-dcf9-464e-990e-f9ccc45fa262', 'name': '', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'network_id': '1fad851c-28cf-48d1-9249-9a8266f860d5', 'ip_version': 4, 'cidr': '170.73.206.128/26', 'allocation_pools': [{'start': '170.73.206.130', 'end': '170.73.206.190'}], 'gateway_ip': '170.73.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.73.206.130', 'tags': [], 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7'}} 2025-10-31 03:09:25,913 - INFO - Created VN ctest-vn-94423272 2025-10-31 03:09:25,967 - DEBUG - VN ctest-vn-94423272 UUID is 1fad851c-28cf-48d1-9249-9a8266f860d5 2025-10-31 03:09:26,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662, 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-47402719:ctest-vn-94423272, 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-31 03:09:26,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '484671ff-b256-4fb2-9101-c4379e25fb2c', 'name': 'ctest-vn-78372662', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c6a0772-56e7-4b76-a983-c2943f76a48e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-78372662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219']], 'subnet_ipam': [{'subnet_cidr': '50.85.148.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:09:26,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fad851c-28cf-48d1-9249-9a8266f860d5', 'name': 'ctest-vn-94423272', 'tenant_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'project_id': 'e71871d9ec1045e8b53bba44ffe639e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7eb9384d-dcf9-464e-990e-f9ccc45fa262'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-vn-94423272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219']], 'subnet_ipam': [{'subnet_cidr': '170.73.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:09:26,803 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:27,097 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:27,123 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:27,133 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7 2025-10-31 03:09:27,202 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c 2025-10-31 03:09:27,211 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c 2025-10-31 03:09:27,219 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f 2025-10-31 03:09:27,224 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f 2025-10-31 03:09:27,230 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c499ade7-1913-423f-a512-2908e457cf04 2025-10-31 03:09:27,235 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 03:09:27,235 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c 2025-10-31 03:09:27,243 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f 2025-10-31 03:09:27,253 - INFO - Verified VN network id 12 for VN 484671ff-b256-4fb2-9101-c4379e25fb2c 2025-10-31 03:09:27,253 - INFO - Verifications in API Server for VN ctest-vn-78372662 passed 2025-10-31 03:09:27,254 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c 2025-10-31 03:09:27,261 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f 2025-10-31 03:09:27,266 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f 2025-10-31 03:09:27,271 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c499ade7-1913-423f-a512-2908e457cf04 2025-10-31 03:09:27,281 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47402719', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5207975362123157426', 'uuid-lslong': '10448848353631796012'}, 'enable': 'true', 'created': '2025-10-31T03:09:25', 'last-modified': '2025-10-31T03:09:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911559'} 2025-10-31 03:09:27,286 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 03:09:27,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78372662 passed 2025-10-31 03:09:27,287 - DEBUG - ====Verifying policy data for ctest-vn-78372662 in API_Server ====== 2025-10-31 03:09:27,287 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:27,291 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:27,300 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7 2025-10-31 03:09:27,367 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/484671ff-b256-4fb2-9101-c4379e25fb2c 2025-10-31 03:09:27,375 - DEBUG - ==>Verifying data for policy with id: d9310f4a-0cf8-404d-ad8f-cb112ad36b71, fqn: ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219'] 2025-10-31 03:09:27,375 - INFO - VN ctest-vn-78372662 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 03:09:27,375 - DEBUG - Verifying the vn in opserver 2025-10-31 03:09:27,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662 virtual network link through opserver 10.0.0.129 2025-10-31 03:09:27,375 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-31 03:09:27,663 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-31 03:09:27,710 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662?flat'} 2025-10-31 03:09:27,710 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662 is found in opserver 2025-10-31 03:09:27,718 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 03:09:27,722 - DEBUG - VRF ids for VN ctest-vn-78372662: {} 2025-10-31 03:09:27,722 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:27,727 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:27,735 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7 2025-10-31 03:09:27,802 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5 2025-10-31 03:09:27,811 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5 2025-10-31 03:09:27,819 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19 2025-10-31 03:09:27,825 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19 2025-10-31 03:09:27,830 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/786ba9ed-7f2b-4b51-9020-bb4215a9085b 2025-10-31 03:09:27,835 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 03:09:27,836 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5 2025-10-31 03:09:27,843 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19 2025-10-31 03:09:27,855 - INFO - Verified VN network id 13 for VN 1fad851c-28cf-48d1-9249-9a8266f860d5 2025-10-31 03:09:27,855 - INFO - Verifications in API Server for VN ctest-vn-94423272 passed 2025-10-31 03:09:27,855 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5 2025-10-31 03:09:27,862 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19 2025-10-31 03:09:27,868 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19 2025-10-31 03:09:27,874 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/786ba9ed-7f2b-4b51-9020-bb4215a9085b 2025-10-31 03:09:27,883 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47402719', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2282626942136961233', 'uuid-lslong': '10541126287701336277'}, 'enable': 'true', 'created': '2025-10-31T03:09:25', 'last-modified': '2025-10-31T03:09:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.296302'} 2025-10-31 03:09:27,888 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 03:09:27,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94423272 passed 2025-10-31 03:09:27,888 - DEBUG - ====Verifying policy data for ctest-vn-94423272 in API_Server ====== 2025-10-31 03:09:27,888 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:27,893 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:27,904 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7 2025-10-31 03:09:27,970 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1fad851c-28cf-48d1-9249-9a8266f860d5 2025-10-31 03:09:27,978 - DEBUG - ==>Verifying data for policy with id: d9310f4a-0cf8-404d-ad8f-cb112ad36b71, fqn: ['default-domain', 'ctest-TestBasicPolicy-47402719', 'ctest-policy-allow-all-83016219'] 2025-10-31 03:09:27,978 - INFO - VN ctest-vn-94423272 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 03:09:27,978 - DEBUG - Verifying the vn in opserver 2025-10-31 03:09:27,978 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272 virtual network link through opserver 10.0.0.129 2025-10-31 03:09:27,978 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-31 03:09:27,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272?flat'} 2025-10-31 03:09:27,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-94423272 is found in opserver 2025-10-31 03:09:27,994 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 03:09:27,997 - DEBUG - VRF ids for VN ctest-vn-94423272: {} 2025-10-31 03:09:28,050 - DEBUG - Services list from nova: [, , ] 2025-10-31 03:09:29,022 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4568-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4568-1) 2025-10-31 03:09:30,133 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4568-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4568-1) 2025-10-31 03:09:30,133 - INFO - Waiting for VM ctest-TestBasicPolicy-47402719-37380426 to be up.. 2025-10-31 03:09:30,199 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-31 03:09:35,279 - DEBUG - VM is in ACTIVE state now 2025-10-31 03:09:35,279 - INFO - VM name : ctest-TestBasicPolicy-47402719-37380426 2025-10-31 03:09:35,347 - DEBUG - VM ctest-TestBasicPolicy-47402719-37380426 ID is 36d5a5be-bb6f-4fde-b8fb-b37136886802 2025-10-31 03:09:35,363 - DEBUG - VM ctest-TestBasicPolicy-47402719-37380426 launched on Node cn-jenkins-deploy-platform-ansible-os-4568-1 2025-10-31 03:09:35,431 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/36d5a5be-bb6f-4fde-b8fb-b37136886802 2025-10-31 03:09:35,439 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/58ddc316-74b8-4b15-aab4-378ca849884d 2025-10-31 03:09:38,685 - 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 1024ms') 2025-10-31 03:09:38,685 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-47402719-37380426 failed! 2025-10-31 03:09:38,739 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-47402719:ctest-vn-78372662 is 50.85.148.1 and allocation pool is NOT set 2025-10-31 03:09:40,801 - 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=4.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.362 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.362/2.360/4.359/1.998 ms') 2025-10-31 03:09:40,801 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-47402719-37380426 passed 2025-10-31 03:09:40,947 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 03:09:40,947 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47402719-37380426, IP 50.85.148.3, Port 22 2025-10-31 03:09:41,103 - DEBUG - VM ctest-TestBasicPolicy-47402719-37380426 is ready for SSH connections 2025-10-31 03:09:41,103 - INFO - Waiting for VM ctest-TestBasicPolicy-47402719-59506759 to be up.. 2025-10-31 03:09:41,171 - DEBUG - VM is in ACTIVE state now 2025-10-31 03:09:41,171 - INFO - VM name : ctest-TestBasicPolicy-47402719-59506759 2025-10-31 03:09:41,235 - DEBUG - VM ctest-TestBasicPolicy-47402719-59506759 ID is cb17b05e-749b-4746-a187-c3fdb6f1980d 2025-10-31 03:09:41,235 - DEBUG - VM ctest-TestBasicPolicy-47402719-59506759 launched on Node cn-jenkins-deploy-platform-ansible-os-4568-1 2025-10-31 03:09:41,304 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/cb17b05e-749b-4746-a187-c3fdb6f1980d 2025-10-31 03:09:41,311 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/2b76191e-787a-40d8-b291-07588554de21 2025-10-31 03:09:42,546 - 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.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.11 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 = 2.105/3.231/4.358/1.126 ms') 2025-10-31 03:09:42,546 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-47402719-59506759 passed 2025-10-31 03:09:42,699 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 03:09:42,699 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47402719-59506759, IP 170.73.206.131, Port 22 2025-10-31 03:09:42,754 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-31 03:09:42,817 - DEBUG - VM ctest-TestBasicPolicy-47402719-59506759 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-31 03:09:47,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 03:09:47,818 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47402719-59506759, IP 170.73.206.131, Port 22 2025-10-31 03:09:47,983 - DEBUG - VM ctest-TestBasicPolicy-47402719-59506759 is ready for SSH connections 2025-10-31 03:09:47,983 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 03:09:47,983 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.73.206.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-10-31 03:09:47,983 - DEBUG - ping -s 56 -c 3 -W 1 170.73.206.131 2025-10-31 03:09:51,961 - DEBUG - PING 170.73.206.131 (170.73.206.131): 56 data bytes 64 bytes from 170.73.206.131: seq=0 ttl=63 time=4.169 ms 64 bytes from 170.73.206.131: seq=1 ttl=63 time=0.775 ms 64 bytes from 170.73.206.131: seq=2 ttl=63 time=0.933 ms --- 170.73.206.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.775/1.959/4.169 ms 2025-10-31 03:09:51,962 - INFO - Ping to IP 170.73.206.131 from VM ctest-TestBasicPolicy-47402719-37380426 passed 2025-10-31 03:09:52,135 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d9310f4a-0cf8-404d-ad8f-cb112ad36b71", "href": "http://10.0.0.129:8082/network-policy/d9310f4a-0cf8-404d-ad8f-cb112ad36b71"}} 2025-10-31 03:09:52,135 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 03:09:52,135 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.73.206.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-10-31 03:09:52,135 - DEBUG - ping -s 56 -c 3 -W 1 170.73.206.131 2025-10-31 03:09:55,343 - DEBUG - PING 170.73.206.131 (170.73.206.131): 56 data bytes --- 170.73.206.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-31 03:09:55,343 - WARNING - Ping to IP 170.73.206.131 from VM ctest-TestBasicPolicy-47402719-37380426 failed 2025-10-31 03:09:55,344 - INFO - Deleting VM ctest-TestBasicPolicy-47402719-59506759 2025-10-31 03:09:55,402 - INFO - Deleting VM ctest-TestBasicPolicy-47402719-37380426 2025-10-31 03:09:55,784 - INFO - Deleted policy ctest-policy-allow-all-83016219 2025-10-31 03:09:55,784 - INFO - Deleting VN ctest-vn-94423272 2025-10-31 03:09:55,820 - DEBUG - VN 1fad851c-28cf-48d1-9249-9a8266f860d5 still in use: Unable to complete operation on network 1fad851c-28cf-48d1-9249-9a8266f860d5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-96630b33-a327-42b6-8dbf-2fbf012df67f'] 2025-10-31 03:09:55,820 - WARNING - Deleting VN ctest-vn-94423272 failed..Will retry 2025-10-31 03:09:57,948 - DEBUG - Response for deleting network () 2025-10-31 03:09:57,948 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3d02509d-7048-41e8-b409-9c7321318a19 2025-10-31 03:09:57,955 - DEBUG - Response Code: 404 2025-10-31 03:09:57,956 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:57,960 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:58,012 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7 2025-10-31 03:09:58,081 - INFO - Validated that VN ctest-vn-94423272 is not found in API Server 2025-10-31 03:09:58,091 - DEBUG - VN ctest-vn-94423272 is not present in Agent 10.0.0.129 2025-10-31 03:09:58,091 - INFO - Validated that VN ctest-vn-94423272 is not in any agent 2025-10-31 03:09:58,104 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94423272 info 2025-10-31 03:09:58,104 - INFO - Deleting VN ctest-vn-78372662 2025-10-31 03:09:58,200 - DEBUG - Response for deleting network () 2025-10-31 03:09:58,200 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0484d902-a7cd-497d-a022-ed87e68ec79f 2025-10-31 03:09:58,205 - DEBUG - Response Code: 404 2025-10-31 03:09:58,206 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:58,213 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:58,268 - DEBUG - Requesting: http://10.0.0.129:8082/project/e71871d9-ec10-45e8-b53b-ba44ffe639e7 2025-10-31 03:09:58,337 - INFO - Validated that VN ctest-vn-78372662 is not found in API Server 2025-10-31 03:09:58,346 - DEBUG - VN ctest-vn-78372662 is not present in Agent 10.0.0.129 2025-10-31 03:09:58,347 - INFO - Validated that VN ctest-vn-78372662 is not in any agent 2025-10-31 03:09:58,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78372662 info 2025-10-31 03:09:58,622 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 03:09:58,622 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-10-31 03:09:58,622 - INFO - -------------------------------------------------------------------------------- 2025-10-31 03:09:59,282 - INFO - Deleted project: ctest-TestBasicPolicy-47402719, ID : e71871d9-ec10-45e8-b53b-ba44ffe639e7