2025-10-28 18:28:07,870 - INFO - Domain Default found not creating 2025-10-28 18:28:08,047 - INFO - Project ctest-TestBasicPolicy-84170789 not found, creating it 2025-10-28 18:28:08,513 - INFO - Created Project:ctest-TestBasicPolicy-84170789, ID : d5d06105-d3f2-4a97-8758-d2caa7ef156d 2025-10-28 18:28:09,992 - INFO - ================================================================================ 2025-10-28 18:28:09,992 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-28 18:28:09,992 - 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-28 18:28:10,247 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-28 18:28:10,247 - INFO - Initial checks done. Running the testcase now 2025-10-28 18:28:10,248 - INFO - 2025-10-28 18:28:10,836 - DEBUG - Response for create_network : {'network': {'id': '44126f2f-1ef0-4a3c-ba92-46e0f3d609bd', 'name': 'ctest-vn-16442067', 'tenant_id': 'd5d06105d3f24a978758d2caa7ef156d', 'project_id': 'd5d06105d3f24a978758d2caa7ef156d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-vn-16442067'], 'port_security_enabled': True, 'description': ''}} 2025-10-28 18:28:11,073 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bde885f2-91fe-45fb-8f68-9d4150b51139', 'name': '', 'tenant_id': 'd5d06105d3f24a978758d2caa7ef156d', 'network_id': '44126f2f-1ef0-4a3c-ba92-46e0f3d609bd', 'ip_version': 4, 'cidr': '50.153.198.64/26', 'allocation_pools': [{'start': '50.153.198.66', 'end': '50.153.198.126'}], 'gateway_ip': '50.153.198.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.153.198.66', 'tags': [], 'project_id': 'd5d06105d3f24a978758d2caa7ef156d'}} 2025-10-28 18:28:11,094 - INFO - Created VN ctest-vn-16442067 2025-10-28 18:28:11,145 - DEBUG - VN ctest-vn-16442067 UUID is 44126f2f-1ef0-4a3c-ba92-46e0f3d609bd 2025-10-28 18:28:11,455 - DEBUG - Response for create_network : {'network': {'id': 'b3b53301-9d26-4f0a-a1be-5e81d990c94d', 'name': 'ctest-vn-54955292', 'tenant_id': 'd5d06105d3f24a978758d2caa7ef156d', 'project_id': 'd5d06105d3f24a978758d2caa7ef156d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-vn-54955292'], 'port_security_enabled': True, 'description': ''}} 2025-10-28 18:28:11,623 - DEBUG - Response for create_subnet : {'subnet': {'id': '4163c936-c0f8-44e2-8f31-8e47dab53821', 'name': '', 'tenant_id': 'd5d06105d3f24a978758d2caa7ef156d', 'network_id': 'b3b53301-9d26-4f0a-a1be-5e81d990c94d', 'ip_version': 4, 'cidr': '87.50.179.0/26', 'allocation_pools': [{'start': '87.50.179.2', 'end': '87.50.179.62'}], 'gateway_ip': '87.50.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.50.179.2', 'tags': [], 'project_id': 'd5d06105d3f24a978758d2caa7ef156d'}} 2025-10-28 18:28:11,642 - INFO - Created VN ctest-vn-54955292 2025-10-28 18:28:11,693 - DEBUG - VN ctest-vn-54955292 UUID is b3b53301-9d26-4f0a-a1be-5e81d990c94d 2025-10-28 18:28:11,853 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-16442067, 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-84170789:ctest-vn-54955292, 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-28 18:28:12,162 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44126f2f-1ef0-4a3c-ba92-46e0f3d609bd', 'name': 'ctest-vn-16442067', 'tenant_id': 'd5d06105d3f24a978758d2caa7ef156d', 'project_id': 'd5d06105d3f24a978758d2caa7ef156d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bde885f2-91fe-45fb-8f68-9d4150b51139'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-vn-16442067'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-policy-allow-all-12745859']], 'subnet_ipam': [{'subnet_cidr': '50.153.198.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-28 18:28:12,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3b53301-9d26-4f0a-a1be-5e81d990c94d', 'name': 'ctest-vn-54955292', 'tenant_id': 'd5d06105d3f24a978758d2caa7ef156d', 'project_id': 'd5d06105d3f24a978758d2caa7ef156d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4163c936-c0f8-44e2-8f31-8e47dab53821'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-vn-54955292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-policy-allow-all-12745859']], 'subnet_ipam': [{'subnet_cidr': '87.50.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-28 18:28:12,573 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:12,865 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:12,894 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:12,907 - DEBUG - Requesting: http://10.0.0.242:8082/project/d5d06105-d3f2-4a97-8758-d2caa7ef156d 2025-10-28 18:28:12,981 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44126f2f-1ef0-4a3c-ba92-46e0f3d609bd 2025-10-28 18:28:12,992 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44126f2f-1ef0-4a3c-ba92-46e0f3d609bd 2025-10-28 18:28:13,002 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8745900f-6f4e-4e1b-912c-4d9f9957ff6c 2025-10-28 18:28:13,010 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8745900f-6f4e-4e1b-912c-4d9f9957ff6c 2025-10-28 18:28:13,018 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/efe35fd3-9804-4bca-a9ba-65db9fe53367 2025-10-28 18:28:13,026 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 18:28:13,026 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44126f2f-1ef0-4a3c-ba92-46e0f3d609bd 2025-10-28 18:28:13,035 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8745900f-6f4e-4e1b-912c-4d9f9957ff6c 2025-10-28 18:28:13,049 - INFO - Verified VN network id 11 for VN 44126f2f-1ef0-4a3c-ba92-46e0f3d609bd 2025-10-28 18:28:13,049 - INFO - Verifications in API Server for VN ctest-vn-16442067 passed 2025-10-28 18:28:13,049 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44126f2f-1ef0-4a3c-ba92-46e0f3d609bd 2025-10-28 18:28:13,058 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8745900f-6f4e-4e1b-912c-4d9f9957ff6c 2025-10-28 18:28:13,065 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8745900f-6f4e-4e1b-912c-4d9f9957ff6c 2025-10-28 18:28:13,072 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/efe35fd3-9804-4bca-a9ba-65db9fe53367 2025-10-28 18:28:13,083 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-16442067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84170789', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4905105192333101628', 'uuid-lslong': '13443885769631861181'}, 'enable': 'true', 'created': '2025-10-28T18:28:10', 'last-modified': '2025-10-28T18:28:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950759'} 2025-10-28 18:28:13,089 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 18:28:13,089 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16442067 passed 2025-10-28 18:28:13,090 - DEBUG - ====Verifying policy data for ctest-vn-16442067 in API_Server ====== 2025-10-28 18:28:13,090 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:13,095 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:13,109 - DEBUG - Requesting: http://10.0.0.242:8082/project/d5d06105-d3f2-4a97-8758-d2caa7ef156d 2025-10-28 18:28:13,178 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44126f2f-1ef0-4a3c-ba92-46e0f3d609bd 2025-10-28 18:28:13,197 - DEBUG - ==>Verifying data for policy with id: bd258564-e7c5-4aa5-971e-a3c1f0379d86, fqn: ['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-policy-allow-all-12745859'] 2025-10-28 18:28:13,197 - INFO - VN ctest-vn-16442067 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-28 18:28:13,197 - DEBUG - Verifying the vn in opserver 2025-10-28 18:28:13,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-16442067 virtual network link through opserver 10.0.0.242 2025-10-28 18:28:13,198 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-28 18:28:13,517 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-28 18:28:13,572 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-16442067', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-16442067?flat'} 2025-10-28 18:28:13,572 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-16442067 is found in opserver 2025-10-28 18:28:13,581 - DEBUG - Do not have enough data to verify VN in agent 2025-10-28 18:28:13,585 - DEBUG - VRF ids for VN ctest-vn-16442067: {} 2025-10-28 18:28:13,585 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:13,591 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:13,601 - DEBUG - Requesting: http://10.0.0.242:8082/project/d5d06105-d3f2-4a97-8758-d2caa7ef156d 2025-10-28 18:28:13,671 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b3b53301-9d26-4f0a-a1be-5e81d990c94d 2025-10-28 18:28:13,682 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b3b53301-9d26-4f0a-a1be-5e81d990c94d 2025-10-28 18:28:13,690 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2fd2c186-2778-4338-8fb1-45187938bc28 2025-10-28 18:28:13,696 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2fd2c186-2778-4338-8fb1-45187938bc28 2025-10-28 18:28:13,702 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/26de3c77-528d-4a29-8776-fd6fd78c14a6 2025-10-28 18:28:13,708 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-28 18:28:13,708 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b3b53301-9d26-4f0a-a1be-5e81d990c94d 2025-10-28 18:28:13,718 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2fd2c186-2778-4338-8fb1-45187938bc28 2025-10-28 18:28:13,733 - INFO - Verified VN network id 12 for VN b3b53301-9d26-4f0a-a1be-5e81d990c94d 2025-10-28 18:28:13,733 - INFO - Verifications in API Server for VN ctest-vn-54955292 passed 2025-10-28 18:28:13,733 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b3b53301-9d26-4f0a-a1be-5e81d990c94d 2025-10-28 18:28:13,743 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2fd2c186-2778-4338-8fb1-45187938bc28 2025-10-28 18:28:13,750 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2fd2c186-2778-4338-8fb1-45187938bc28 2025-10-28 18:28:13,758 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/26de3c77-528d-4a29-8776-fd6fd78c14a6 2025-10-28 18:28:13,770 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-54955292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84170789', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12949312385598246666', 'uuid-lslong': '11654856797475359053'}, 'enable': 'true', 'created': '2025-10-28T18:28:11', 'last-modified': '2025-10-28T18:28:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.396092'} 2025-10-28 18:28:13,775 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-28 18:28:13,775 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54955292 passed 2025-10-28 18:28:13,776 - DEBUG - ====Verifying policy data for ctest-vn-54955292 in API_Server ====== 2025-10-28 18:28:13,776 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:13,781 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:13,791 - DEBUG - Requesting: http://10.0.0.242:8082/project/d5d06105-d3f2-4a97-8758-d2caa7ef156d 2025-10-28 18:28:13,865 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b3b53301-9d26-4f0a-a1be-5e81d990c94d 2025-10-28 18:28:13,873 - DEBUG - ==>Verifying data for policy with id: bd258564-e7c5-4aa5-971e-a3c1f0379d86, fqn: ['default-domain', 'ctest-TestBasicPolicy-84170789', 'ctest-policy-allow-all-12745859'] 2025-10-28 18:28:13,873 - INFO - VN ctest-vn-54955292 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-28 18:28:13,874 - DEBUG - Verifying the vn in opserver 2025-10-28 18:28:13,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-54955292 virtual network link through opserver 10.0.0.242 2025-10-28 18:28:13,874 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-28 18:28:13,883 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-54955292', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-54955292?flat'} 2025-10-28 18:28:13,883 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-54955292 is found in opserver 2025-10-28 18:28:13,893 - DEBUG - Do not have enough data to verify VN in agent 2025-10-28 18:28:13,898 - DEBUG - VRF ids for VN ctest-vn-54955292: {} 2025-10-28 18:28:13,969 - DEBUG - Services list from nova: [, , ] 2025-10-28 18:28:15,002 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4515-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4515-1) 2025-10-28 18:28:16,168 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4515-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4515-1) 2025-10-28 18:28:16,168 - INFO - Waiting for VM ctest-TestBasicPolicy-84170789-49869574 to be up.. 2025-10-28 18:28:16,249 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-28 18:28:21,336 - DEBUG - VM is in ACTIVE state now 2025-10-28 18:28:21,336 - INFO - VM name : ctest-TestBasicPolicy-84170789-49869574 2025-10-28 18:28:21,406 - DEBUG - VM ctest-TestBasicPolicy-84170789-49869574 ID is be063952-46bd-4b4e-bf0e-f46ecc2bd17d 2025-10-28 18:28:21,428 - DEBUG - VM ctest-TestBasicPolicy-84170789-49869574 launched on Node cn-jenkins-deploy-platform-ansible-os-4515-1 2025-10-28 18:28:21,504 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/be063952-46bd-4b4e-bf0e-f46ecc2bd17d 2025-10-28 18:28:21,513 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/7a64a726-4c29-41ea-9ff6-3a6aa9c6c787 2025-10-28 18:28:24,775 - 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 1026ms') 2025-10-28 18:28:24,776 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84170789-49869574 failed! 2025-10-28 18:28:24,833 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-84170789:ctest-vn-16442067 is 50.153.198.65 and allocation pool is NOT set 2025-10-28 18:28:26,894 - 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=6.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.640 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.640/3.814/6.988/3.174 ms') 2025-10-28 18:28:26,894 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84170789-49869574 passed 2025-10-28 18:28:27,053 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-28 18:28:27,053 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84170789-49869574, IP 50.153.198.67, Port 22 2025-10-28 18:28:27,227 - DEBUG - VM ctest-TestBasicPolicy-84170789-49869574 is ready for SSH connections 2025-10-28 18:28:27,228 - INFO - Waiting for VM ctest-TestBasicPolicy-84170789-96536406 to be up.. 2025-10-28 18:28:27,311 - DEBUG - VM is in ACTIVE state now 2025-10-28 18:28:27,311 - INFO - VM name : ctest-TestBasicPolicy-84170789-96536406 2025-10-28 18:28:27,399 - DEBUG - VM ctest-TestBasicPolicy-84170789-96536406 ID is 5c3ccbcc-58e3-4183-9269-7d7658387f17 2025-10-28 18:28:27,400 - DEBUG - VM ctest-TestBasicPolicy-84170789-96536406 launched on Node cn-jenkins-deploy-platform-ansible-os-4515-1 2025-10-28 18:28:27,500 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/5c3ccbcc-58e3-4183-9269-7d7658387f17 2025-10-28 18:28:27,512 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/a6e73403-94ae-4c47-b845-de7ae0b10119 2025-10-28 18:28:28,744 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.39 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.390/2.742/3.094/0.352 ms') 2025-10-28 18:28:28,744 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84170789-96536406 passed 2025-10-28 18:28:28,893 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-28 18:28:28,893 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84170789-96536406, IP 87.50.179.3, Port 22 2025-10-28 18:28:28,948 - 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-28 18:28:29,021 - DEBUG - VM ctest-TestBasicPolicy-84170789-96536406 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-28 18:28:34,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-28 18:28:34,021 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84170789-96536406, IP 87.50.179.3, Port 22 2025-10-28 18:28:34,180 - DEBUG - VM ctest-TestBasicPolicy-84170789-96536406 is ready for SSH connections 2025-10-28 18:28:34,180 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-28 18:28:34,180 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 87.50.179.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-28 18:28:34,181 - DEBUG - ping -s 56 -c 3 -W 1 87.50.179.3 2025-10-28 18:28:38,209 - DEBUG - PING 87.50.179.3 (87.50.179.3): 56 data bytes 64 bytes from 87.50.179.3: seq=0 ttl=63 time=3.830 ms 64 bytes from 87.50.179.3: seq=1 ttl=63 time=1.209 ms 64 bytes from 87.50.179.3: seq=2 ttl=63 time=0.901 ms --- 87.50.179.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.901/1.980/3.830 ms 2025-10-28 18:28:38,209 - INFO - Ping to IP 87.50.179.3 from VM ctest-TestBasicPolicy-84170789-49869574 passed 2025-10-28 18:28:38,389 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bd258564-e7c5-4aa5-971e-a3c1f0379d86", "href": "http://10.0.0.242:8082/network-policy/bd258564-e7c5-4aa5-971e-a3c1f0379d86"}} 2025-10-28 18:28:38,389 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-28 18:28:38,389 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 87.50.179.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-28 18:28:38,389 - DEBUG - ping -s 56 -c 3 -W 1 87.50.179.3 2025-10-28 18:28:41,612 - DEBUG - PING 87.50.179.3 (87.50.179.3): 56 data bytes --- 87.50.179.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-28 18:28:41,612 - WARNING - Ping to IP 87.50.179.3 from VM ctest-TestBasicPolicy-84170789-49869574 failed 2025-10-28 18:28:41,612 - INFO - Deleting VM ctest-TestBasicPolicy-84170789-96536406 2025-10-28 18:28:41,695 - INFO - Deleting VM ctest-TestBasicPolicy-84170789-49869574 2025-10-28 18:28:42,102 - INFO - Deleted policy ctest-policy-allow-all-12745859 2025-10-28 18:28:42,102 - INFO - Deleting VN ctest-vn-54955292 2025-10-28 18:28:42,143 - DEBUG - VN b3b53301-9d26-4f0a-a1be-5e81d990c94d still in use: Unable to complete operation on network b3b53301-9d26-4f0a-a1be-5e81d990c94d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-390dfc46-dd41-4814-95d3-bbbb2f770275'] 2025-10-28 18:28:42,143 - WARNING - Deleting VN ctest-vn-54955292 failed..Will retry 2025-10-28 18:28:44,261 - DEBUG - Response for deleting network () 2025-10-28 18:28:44,261 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2fd2c186-2778-4338-8fb1-45187938bc28 2025-10-28 18:28:44,268 - DEBUG - Response Code: 404 2025-10-28 18:28:44,268 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:44,279 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:44,337 - DEBUG - Requesting: http://10.0.0.242:8082/project/d5d06105-d3f2-4a97-8758-d2caa7ef156d 2025-10-28 18:28:44,407 - INFO - Validated that VN ctest-vn-54955292 is not found in API Server 2025-10-28 18:28:44,418 - DEBUG - VN ctest-vn-54955292 is not present in Agent 10.0.0.242 2025-10-28 18:28:44,418 - INFO - Validated that VN ctest-vn-54955292 is not in any agent 2025-10-28 18:28:44,434 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54955292 info 2025-10-28 18:28:44,434 - INFO - Deleting VN ctest-vn-16442067 2025-10-28 18:28:44,552 - DEBUG - Response for deleting network () 2025-10-28 18:28:44,552 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/8745900f-6f4e-4e1b-912c-4d9f9957ff6c 2025-10-28 18:28:44,557 - DEBUG - Response Code: 404 2025-10-28 18:28:44,559 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:44,564 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:44,619 - DEBUG - Requesting: http://10.0.0.242:8082/project/d5d06105-d3f2-4a97-8758-d2caa7ef156d 2025-10-28 18:28:44,691 - INFO - Validated that VN ctest-vn-16442067 is not found in API Server 2025-10-28 18:28:44,701 - DEBUG - VN ctest-vn-16442067 is not present in Agent 10.0.0.242 2025-10-28 18:28:44,701 - INFO - Validated that VN ctest-vn-16442067 is not in any agent 2025-10-28 18:28:44,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16442067 info 2025-10-28 18:28:44,970 - DEBUG - No XMPP flaps were noticed during the test
2025-10-28 18:28:44,970 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-10-28 18:28:44,970 - INFO - -------------------------------------------------------------------------------- 2025-10-28 18:28:45,669 - INFO - Deleted project: ctest-TestBasicPolicy-84170789, ID : d5d06105-d3f2-4a97-8758-d2caa7ef156d