2025-10-31 09:01:37,645 - INFO - Domain Default found not creating 2025-10-31 09:01:37,846 - INFO - Project ctest-TestBasicPolicy-50973276 not found, creating it 2025-10-31 09:01:38,339 - INFO - Created Project:ctest-TestBasicPolicy-50973276, ID : 28a16e2e-228d-4e21-b81f-4b4ba8457724 2025-10-31 09:01:39,963 - INFO - ================================================================================ 2025-10-31 09:01:39,963 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-31 09:01:39,963 - 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 09:01:40,227 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-31 09:01:40,227 - INFO - Initial checks done. Running the testcase now 2025-10-31 09:01:40,227 - INFO - 2025-10-31 09:01:40,808 - DEBUG - Response for create_network : {'network': {'id': 'b8555b40-9187-472d-8ae4-a112ccdde291', 'name': 'ctest-vn-37539573', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-37539573'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 09:01:40,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c2b9e76-c625-47f5-8417-1761ef545710', 'name': '', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'network_id': 'b8555b40-9187-472d-8ae4-a112ccdde291', 'ip_version': 4, 'cidr': '94.196.10.0/26', 'allocation_pools': [{'start': '94.196.10.2', 'end': '94.196.10.62'}], 'gateway_ip': '94.196.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.196.10.2', 'tags': [], 'project_id': '28a16e2e228d4e21b81f4b4ba8457724'}} 2025-10-31 09:01:41,008 - INFO - Created VN ctest-vn-37539573 2025-10-31 09:01:41,062 - DEBUG - VN ctest-vn-37539573 UUID is b8555b40-9187-472d-8ae4-a112ccdde291 2025-10-31 09:01:41,375 - DEBUG - Response for create_network : {'network': {'id': '8cfdc7a6-211b-4680-9684-74fbd22907e8', 'name': 'ctest-vn-76523744', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-76523744'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 09:01:41,611 - DEBUG - Response for create_subnet : {'subnet': {'id': '7901bf30-b88c-4b92-b71f-012a943bf70e', 'name': '', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'network_id': '8cfdc7a6-211b-4680-9684-74fbd22907e8', 'ip_version': 4, 'cidr': '3.61.255.0/26', 'allocation_pools': [{'start': '3.61.255.2', 'end': '3.61.255.62'}], 'gateway_ip': '3.61.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.61.255.2', 'tags': [], 'project_id': '28a16e2e228d4e21b81f4b4ba8457724'}} 2025-10-31 09:01:41,638 - INFO - Created VN ctest-vn-76523744 2025-10-31 09:01:41,692 - DEBUG - VN ctest-vn-76523744 UUID is 8cfdc7a6-211b-4680-9684-74fbd22907e8 2025-10-31 09:01:41,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573, 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-50973276:ctest-vn-76523744, 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 09:01:42,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8555b40-9187-472d-8ae4-a112ccdde291', 'name': 'ctest-vn-37539573', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c2b9e76-c625-47f5-8417-1761ef545710'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-37539573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257']], 'subnet_ipam': [{'subnet_cidr': '94.196.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 09:01:42,376 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8cfdc7a6-211b-4680-9684-74fbd22907e8', 'name': 'ctest-vn-76523744', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7901bf30-b88c-4b92-b71f-012a943bf70e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-76523744'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257']], 'subnet_ipam': [{'subnet_cidr': '3.61.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 09:01:42,540 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 09:01:42,850 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 09:01:42,884 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0 2025-10-31 09:01:42,902 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724 2025-10-31 09:01:42,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291 2025-10-31 09:01:42,991 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291 2025-10-31 09:01:43,002 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239 2025-10-31 09:01:43,010 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239 2025-10-31 09:01:43,019 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6b38a2c3-ef3b-4f14-9294-a3ff208dc596 2025-10-31 09:01:43,026 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 09:01:43,026 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291 2025-10-31 09:01:43,036 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239 2025-10-31 09:01:43,052 - INFO - Verified VN network id 11 for VN b8555b40-9187-472d-8ae4-a112ccdde291 2025-10-31 09:01:43,052 - INFO - Verifications in API Server for VN ctest-vn-37539573 passed 2025-10-31 09:01:43,052 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291 2025-10-31 09:01:43,061 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239 2025-10-31 09:01:43,068 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239 2025-10-31 09:01:43,076 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6b38a2c3-ef3b-4f14-9294-a3ff208dc596 2025-10-31 09:01:43,090 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50973276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13282623008876742445', 'uuid-lslong': '10008301374042661521'}, 'enable': 'true', 'created': '2025-10-31T09:01:40', 'last-modified': '2025-10-31T09:01:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988661'} 2025-10-31 09:01:43,097 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 09:01:43,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37539573 passed 2025-10-31 09:01:43,097 - DEBUG - ====Verifying policy data for ctest-vn-37539573 in API_Server ====== 2025-10-31 09:01:43,097 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 09:01:43,103 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0 2025-10-31 09:01:43,115 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724 2025-10-31 09:01:43,191 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291 2025-10-31 09:01:43,201 - DEBUG - ==>Verifying data for policy with id: 5798fbd4-bab4-4c86-b0c9-33f9a986c079, fqn: ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257'] 2025-10-31 09:01:43,201 - INFO - VN ctest-vn-37539573 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 09:01:43,201 - DEBUG - Verifying the vn in opserver 2025-10-31 09:01:43,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573 virtual network link through opserver 10.0.0.254 2025-10-31 09:01:43,201 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 09:01:43,502 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 09:01:43,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573?flat'} 2025-10-31 09:01:43,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573 is found in opserver 2025-10-31 09:01:43,577 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 09:01:43,581 - DEBUG - VRF ids for VN ctest-vn-37539573: {} 2025-10-31 09:01:43,581 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 09:01:43,588 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0 2025-10-31 09:01:43,599 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724 2025-10-31 09:01:43,672 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8 2025-10-31 09:01:43,684 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8 2025-10-31 09:01:43,693 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14 2025-10-31 09:01:43,701 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14 2025-10-31 09:01:43,708 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3dbbc0d3-31f0-40bb-b968-58847f9c122d 2025-10-31 09:01:43,716 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 09:01:43,716 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8 2025-10-31 09:01:43,726 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14 2025-10-31 09:01:43,741 - INFO - Verified VN network id 12 for VN 8cfdc7a6-211b-4680-9684-74fbd22907e8 2025-10-31 09:01:43,741 - INFO - Verifications in API Server for VN ctest-vn-76523744 passed 2025-10-31 09:01:43,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8 2025-10-31 09:01:43,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14 2025-10-31 09:01:43,763 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14 2025-10-31 09:01:43,771 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3dbbc0d3-31f0-40bb-b968-58847f9c122d 2025-10-31 09:01:43,786 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50973276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10159495850751641216', 'uuid-lslong': '10845922427526514664'}, 'enable': 'true', 'created': '2025-10-31T09:01:41', 'last-modified': '2025-10-31T09:01:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441268'} 2025-10-31 09:01:43,794 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 09:01:43,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76523744 passed 2025-10-31 09:01:43,795 - DEBUG - ====Verifying policy data for ctest-vn-76523744 in API_Server ====== 2025-10-31 09:01:43,795 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 09:01:43,802 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0 2025-10-31 09:01:43,819 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724 2025-10-31 09:01:43,894 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8 2025-10-31 09:01:43,904 - DEBUG - ==>Verifying data for policy with id: 5798fbd4-bab4-4c86-b0c9-33f9a986c079, fqn: ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257'] 2025-10-31 09:01:43,904 - INFO - VN ctest-vn-76523744 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 09:01:43,904 - DEBUG - Verifying the vn in opserver 2025-10-31 09:01:43,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744 virtual network link through opserver 10.0.0.254 2025-10-31 09:01:43,904 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 09:01:43,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744?flat'} 2025-10-31 09:01:43,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744 is found in opserver 2025-10-31 09:01:43,926 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 09:01:43,934 - DEBUG - VRF ids for VN ctest-vn-76523744: {} 2025-10-31 09:01:44,000 - DEBUG - Services list from nova: [, , ] 2025-10-31 09:01:45,117 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4573-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4573-1) 2025-10-31 09:01:46,321 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4573-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4573-1) 2025-10-31 09:01:46,322 - INFO - Waiting for VM ctest-TestBasicPolicy-50973276-98724725 to be up.. 2025-10-31 09:01:46,415 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-31 09:01:51,508 - DEBUG - VM is in ACTIVE state now 2025-10-31 09:01:51,508 - INFO - VM name : ctest-TestBasicPolicy-50973276-98724725 2025-10-31 09:01:51,599 - DEBUG - VM ctest-TestBasicPolicy-50973276-98724725 ID is 58692308-9875-4150-b26d-10442428827e 2025-10-31 09:01:51,619 - DEBUG - VM ctest-TestBasicPolicy-50973276-98724725 launched on Node cn-jenkins-deploy-platform-ansible-os-4573-1 2025-10-31 09:01:51,702 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/58692308-9875-4150-b26d-10442428827e 2025-10-31 09:01:51,713 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/035c25bf-64a0-4a94-b880-3ce106c1b69f 2025-10-31 09:01:54,988 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1008ms') 2025-10-31 09:01:54,988 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50973276-98724725 failed! 2025-10-31 09:01:55,044 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573 is 94.196.10.1 and allocation pool is NOT set 2025-10-31 09:01:57,113 - 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=12.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.02 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 = 3.018/7.515/12.012/4.497 ms') 2025-10-31 09:01:57,113 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50973276-98724725 passed 2025-10-31 09:01:57,264 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 09:01:57,265 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50973276-98724725, IP 94.196.10.3, Port 22 2025-10-31 09:01:57,434 - DEBUG - VM ctest-TestBasicPolicy-50973276-98724725 is ready for SSH connections 2025-10-31 09:01:57,435 - INFO - Waiting for VM ctest-TestBasicPolicy-50973276-65310765 to be up.. 2025-10-31 09:01:57,516 - DEBUG - VM is in ACTIVE state now 2025-10-31 09:01:57,516 - INFO - VM name : ctest-TestBasicPolicy-50973276-65310765 2025-10-31 09:01:57,612 - DEBUG - VM ctest-TestBasicPolicy-50973276-65310765 ID is 8753a47d-7cd6-4cfd-ae61-4b7743767a36 2025-10-31 09:01:57,613 - DEBUG - VM ctest-TestBasicPolicy-50973276-65310765 launched on Node cn-jenkins-deploy-platform-ansible-os-4573-1 2025-10-31 09:01:57,708 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/8753a47d-7cd6-4cfd-ae61-4b7743767a36 2025-10-31 09:01:57,717 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/89a4ed34-2f17-477e-9d34-7b5d86e939ce 2025-10-31 09:01:58,981 - 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=6.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.50 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.502/4.401/6.300/1.899 ms') 2025-10-31 09:01:58,981 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-50973276-65310765 passed 2025-10-31 09:01:59,136 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 09:01:59,137 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50973276-65310765, IP 3.61.255.3, Port 22 2025-10-31 09:01:59,203 - 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 09:01:59,290 - DEBUG - VM ctest-TestBasicPolicy-50973276-65310765 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-31 09:02:04,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 09:02:04,291 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50973276-65310765, IP 3.61.255.3, Port 22 2025-10-31 09:02:04,467 - DEBUG - VM ctest-TestBasicPolicy-50973276-65310765 is ready for SSH connections 2025-10-31 09:02:04,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 09:02:04,467 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.61.255.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-31 09:02:04,467 - DEBUG - ping -s 56 -c 3 -W 1 3.61.255.3 2025-10-31 09:02:08,568 - DEBUG - PING 3.61.255.3 (3.61.255.3): 56 data bytes 64 bytes from 3.61.255.3: seq=0 ttl=63 time=4.221 ms 64 bytes from 3.61.255.3: seq=1 ttl=63 time=1.377 ms 64 bytes from 3.61.255.3: seq=2 ttl=63 time=1.227 ms --- 3.61.255.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.227/2.275/4.221 ms 2025-10-31 09:02:08,568 - INFO - Ping to IP 3.61.255.3 from VM ctest-TestBasicPolicy-50973276-98724725 passed 2025-10-31 09:02:08,752 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5798fbd4-bab4-4c86-b0c9-33f9a986c079", "href": "http://10.0.0.254:8082/network-policy/5798fbd4-bab4-4c86-b0c9-33f9a986c079"}} 2025-10-31 09:02:08,752 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 09:02:08,752 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.61.255.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-31 09:02:08,753 - DEBUG - ping -s 56 -c 3 -W 1 3.61.255.3 2025-10-31 09:02:11,987 - DEBUG - PING 3.61.255.3 (3.61.255.3): 56 data bytes --- 3.61.255.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-31 09:02:11,988 - WARNING - Ping to IP 3.61.255.3 from VM ctest-TestBasicPolicy-50973276-98724725 failed 2025-10-31 09:02:11,988 - INFO - Deleting VM ctest-TestBasicPolicy-50973276-65310765 2025-10-31 09:02:12,092 - INFO - Deleting VM ctest-TestBasicPolicy-50973276-98724725 2025-10-31 09:02:12,476 - INFO - Deleted policy ctest-policy-allow-all-48018257 2025-10-31 09:02:12,476 - INFO - Deleting VN ctest-vn-76523744 2025-10-31 09:02:12,513 - DEBUG - VN 8cfdc7a6-211b-4680-9684-74fbd22907e8 still in use: Unable to complete operation on network 8cfdc7a6-211b-4680-9684-74fbd22907e8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5bf08bf8-4d5f-479a-bf9d-e461bd249907'] 2025-10-31 09:02:12,513 - WARNING - Deleting VN ctest-vn-76523744 failed..Will retry 2025-10-31 09:02:14,633 - DEBUG - Response for deleting network () 2025-10-31 09:02:14,633 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14 2025-10-31 09:02:14,642 - DEBUG - Response Code: 404 2025-10-31 09:02:14,643 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 09:02:14,650 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0 2025-10-31 09:02:14,707 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724 2025-10-31 09:02:14,781 - INFO - Validated that VN ctest-vn-76523744 is not found in API Server 2025-10-31 09:02:14,792 - DEBUG - VN ctest-vn-76523744 is not present in Agent 10.0.0.254 2025-10-31 09:02:14,792 - INFO - Validated that VN ctest-vn-76523744 is not in any agent 2025-10-31 09:02:14,807 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76523744 info 2025-10-31 09:02:14,807 - INFO - Deleting VN ctest-vn-37539573 2025-10-31 09:02:14,931 - DEBUG - Response for deleting network () 2025-10-31 09:02:14,931 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239 2025-10-31 09:02:14,937 - DEBUG - Response Code: 404 2025-10-31 09:02:14,937 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 09:02:14,944 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0 2025-10-31 09:02:14,998 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724 2025-10-31 09:02:15,072 - INFO - Validated that VN ctest-vn-37539573 is not found in API Server 2025-10-31 09:02:15,083 - DEBUG - VN ctest-vn-37539573 is not present in Agent 10.0.0.254 2025-10-31 09:02:15,083 - INFO - Validated that VN ctest-vn-37539573 is not in any agent 2025-10-31 09:02:15,100 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37539573 info 2025-10-31 09:02:15,362 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 09:02:15,363 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-10-31 09:02:15,363 - INFO - -------------------------------------------------------------------------------- 2025-10-31 09:02:16,088 - INFO - Deleted project: ctest-TestBasicPolicy-50973276, ID : 28a16e2e-228d-4e21-b81f-4b4ba8457724