2025-11-02 22:39:36,772 - INFO - Domain Default found not creating 2025-11-02 22:39:36,932 - INFO - Project ctest-TestBasicPolicy-01309174 not found, creating it 2025-11-02 22:39:37,380 - INFO - Created Project:ctest-TestBasicPolicy-01309174, ID : 98384bbe-9b21-484d-b22a-bec425b8cf9c 2025-11-02 22:39:38,853 - INFO - ================================================================================ 2025-11-02 22:39:38,853 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-02 22:39:38,853 - 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-11-02 22:39:39,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-02 22:39:39,111 - INFO - Initial checks done. Running the testcase now 2025-11-02 22:39:39,111 - INFO - 2025-11-02 22:39:39,652 - DEBUG - Response for create_network : {'network': {'id': 'e9f98044-5aea-48b7-ab19-2be8f453ec79', 'name': 'ctest-vn-49410569', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-49410569'], 'port_security_enabled': True, 'description': ''}} 2025-11-02 22:39:39,887 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3e6d02e-c2eb-4f6b-9fb8-c976f541c9da', 'name': '', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'network_id': 'e9f98044-5aea-48b7-ab19-2be8f453ec79', 'ip_version': 4, 'cidr': '40.117.235.64/26', 'allocation_pools': [{'start': '40.117.235.66', 'end': '40.117.235.126'}], 'gateway_ip': '40.117.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.117.235.66', 'tags': [], 'project_id': '98384bbe9b21484db22abec425b8cf9c'}} 2025-11-02 22:39:39,910 - INFO - Created VN ctest-vn-49410569 2025-11-02 22:39:39,964 - DEBUG - VN ctest-vn-49410569 UUID is e9f98044-5aea-48b7-ab19-2be8f453ec79 2025-11-02 22:39:40,303 - DEBUG - Response for create_network : {'network': {'id': 'f0d635bc-082a-415d-ada5-792e847f5286', 'name': 'ctest-vn-54749957', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-54749957'], 'port_security_enabled': True, 'description': ''}} 2025-11-02 22:39:40,485 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8ce3f21-1b33-4630-8566-455d5b2ef6ec', 'name': '', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'network_id': 'f0d635bc-082a-415d-ada5-792e847f5286', 'ip_version': 4, 'cidr': '20.240.203.0/26', 'allocation_pools': [{'start': '20.240.203.2', 'end': '20.240.203.62'}], 'gateway_ip': '20.240.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.240.203.2', 'tags': [], 'project_id': '98384bbe9b21484db22abec425b8cf9c'}} 2025-11-02 22:39:40,503 - INFO - Created VN ctest-vn-54749957 2025-11-02 22:39:40,556 - DEBUG - VN ctest-vn-54749957 UUID is f0d635bc-082a-415d-ada5-792e847f5286 2025-11-02 22:39:40,669 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569, 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-01309174:ctest-vn-54749957, 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-11-02 22:39:40,959 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9f98044-5aea-48b7-ab19-2be8f453ec79', 'name': 'ctest-vn-49410569', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f3e6d02e-c2eb-4f6b-9fb8-c976f541c9da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-49410569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582']], 'subnet_ipam': [{'subnet_cidr': '40.117.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-02 22:39:41,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0d635bc-082a-415d-ada5-792e847f5286', 'name': 'ctest-vn-54749957', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8ce3f21-1b33-4630-8566-455d5b2ef6ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-54749957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582']], 'subnet_ipam': [{'subnet_cidr': '20.240.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-02 22:39:41,352 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 22:39:41,655 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 22:39:41,683 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b 2025-11-02 22:39:41,695 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c 2025-11-02 22:39:41,777 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79 2025-11-02 22:39:41,788 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79 2025-11-02 22:39:41,796 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006 2025-11-02 22:39:41,802 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006 2025-11-02 22:39:41,808 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca9a3e18-e329-40eb-bbb8-fa8a5ff9cc34 2025-11-02 22:39:41,813 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 22:39:41,814 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79 2025-11-02 22:39:41,821 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006 2025-11-02 22:39:41,835 - INFO - Verified VN network id 11 for VN e9f98044-5aea-48b7-ab19-2be8f453ec79 2025-11-02 22:39:41,836 - INFO - Verifications in API Server for VN ctest-vn-49410569 passed 2025-11-02 22:39:41,836 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79 2025-11-02 22:39:41,844 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006 2025-11-02 22:39:41,850 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006 2025-11-02 22:39:41,856 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca9a3e18-e329-40eb-bbb8-fa8a5ff9cc34 2025-11-02 22:39:41,868 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01309174', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16859647711109597367', 'uuid-lslong': '12328933734434991225'}, 'enable': 'true', 'created': '2025-11-02T22:39:39', 'last-modified': '2025-11-02T22:39:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928300'} 2025-11-02 22:39:41,874 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-02 22:39:41,875 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49410569 passed 2025-11-02 22:39:41,875 - DEBUG - ====Verifying policy data for ctest-vn-49410569 in API_Server ====== 2025-11-02 22:39:41,875 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 22:39:41,880 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b 2025-11-02 22:39:41,891 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c 2025-11-02 22:39:41,962 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79 2025-11-02 22:39:41,972 - DEBUG - ==>Verifying data for policy with id: 1dfd891f-41cd-48ac-801d-36f1b2d8c4fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582'] 2025-11-02 22:39:41,972 - INFO - VN ctest-vn-49410569 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-02 22:39:41,972 - DEBUG - Verifying the vn in opserver 2025-11-02 22:39:41,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569 virtual network link through opserver 10.0.0.48 2025-11-02 22:39:41,973 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 22:39:42,271 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 22:39:42,329 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569?flat'} 2025-11-02 22:39:42,329 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569 is found in opserver 2025-11-02 22:39:42,340 - DEBUG - Do not have enough data to verify VN in agent 2025-11-02 22:39:42,345 - DEBUG - VRF ids for VN ctest-vn-49410569: {} 2025-11-02 22:39:42,345 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 22:39:42,350 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b 2025-11-02 22:39:42,361 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c 2025-11-02 22:39:42,437 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286 2025-11-02 22:39:42,448 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286 2025-11-02 22:39:42,456 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559 2025-11-02 22:39:42,462 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559 2025-11-02 22:39:42,468 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca6bbdb3-db72-4930-97f6-ca84ed5d141b 2025-11-02 22:39:42,473 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-02 22:39:42,473 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286 2025-11-02 22:39:42,482 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559 2025-11-02 22:39:42,499 - INFO - Verified VN network id 12 for VN f0d635bc-082a-415d-ada5-792e847f5286 2025-11-02 22:39:42,499 - INFO - Verifications in API Server for VN ctest-vn-54749957 passed 2025-11-02 22:39:42,499 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286 2025-11-02 22:39:42,507 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559 2025-11-02 22:39:42,512 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559 2025-11-02 22:39:42,518 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca6bbdb3-db72-4930-97f6-ca84ed5d141b 2025-11-02 22:39:42,528 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01309174', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17354117295825895773', 'uuid-lslong': '12512540380417184390'}, 'enable': 'true', 'created': '2025-11-02T22:39:40', 'last-modified': '2025-11-02T22:39:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350564'} 2025-11-02 22:39:42,534 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-02 22:39:42,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54749957 passed 2025-11-02 22:39:42,534 - DEBUG - ====Verifying policy data for ctest-vn-54749957 in API_Server ====== 2025-11-02 22:39:42,534 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 22:39:42,540 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b 2025-11-02 22:39:42,549 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c 2025-11-02 22:39:42,627 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286 2025-11-02 22:39:42,640 - DEBUG - ==>Verifying data for policy with id: 1dfd891f-41cd-48ac-801d-36f1b2d8c4fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582'] 2025-11-02 22:39:42,640 - INFO - VN ctest-vn-54749957 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-02 22:39:42,640 - DEBUG - Verifying the vn in opserver 2025-11-02 22:39:42,640 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957 virtual network link through opserver 10.0.0.48 2025-11-02 22:39:42,640 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-02 22:39:42,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957?flat'} 2025-11-02 22:39:42,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957 is found in opserver 2025-11-02 22:39:42,662 - DEBUG - Do not have enough data to verify VN in agent 2025-11-02 22:39:42,666 - DEBUG - VRF ids for VN ctest-vn-54749957: {} 2025-11-02 22:39:42,726 - DEBUG - Services list from nova: [, , ] 2025-11-02 22:39:43,777 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4596-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4596-1) 2025-11-02 22:39:44,986 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4596-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4596-1) 2025-11-02 22:39:44,986 - INFO - Waiting for VM ctest-TestBasicPolicy-01309174-05291024 to be up.. 2025-11-02 22:39:45,062 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-02 22:39:50,146 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-02 22:39:55,223 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-02 22:40:00,297 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-02 22:40:05,378 - DEBUG - VM is in ACTIVE state now 2025-11-02 22:40:05,378 - INFO - VM name : ctest-TestBasicPolicy-01309174-05291024 2025-11-02 22:40:05,459 - DEBUG - VM ctest-TestBasicPolicy-01309174-05291024 ID is c0d0bd3b-5cd4-4d63-b1d6-b1b2e1b37aaa 2025-11-02 22:40:05,477 - DEBUG - VM ctest-TestBasicPolicy-01309174-05291024 launched on Node cn-jenkins-deploy-platform-ansible-os-4596-1 2025-11-02 22:40:05,548 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/c0d0bd3b-5cd4-4d63-b1d6-b1b2e1b37aaa 2025-11-02 22:40:05,556 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/c9ffc870-7c75-479a-a276-fa2d300c6f44 2025-11-02 22:40:08,803 - 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 1032ms') 2025-11-02 22:40:08,803 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01309174-05291024 failed! 2025-11-02 22:40:08,856 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569 is 40.117.235.65 and allocation pool is NOT set 2025-11-02 22:40:10,918 - 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=5.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.89 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 = 2.890/4.110/5.331/1.220 ms') 2025-11-02 22:40:10,918 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01309174-05291024 passed 2025-11-02 22:40:11,068 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 22:40:11,068 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01309174-05291024, IP 40.117.235.67, Port 22 2025-11-02 22:40:11,134 - 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-11-02 22:40:11,206 - DEBUG - VM ctest-TestBasicPolicy-01309174-05291024 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-02 22:40:16,207 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 22:40:16,207 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01309174-05291024, IP 40.117.235.67, Port 22 2025-11-02 22:40:16,385 - DEBUG - VM ctest-TestBasicPolicy-01309174-05291024 is ready for SSH connections 2025-11-02 22:40:16,385 - INFO - Waiting for VM ctest-TestBasicPolicy-01309174-98136273 to be up.. 2025-11-02 22:40:16,470 - DEBUG - VM is in ACTIVE state now 2025-11-02 22:40:16,470 - INFO - VM name : ctest-TestBasicPolicy-01309174-98136273 2025-11-02 22:40:16,554 - DEBUG - VM ctest-TestBasicPolicy-01309174-98136273 ID is ecfe88f7-f9f8-4fec-a883-b58a626e10e3 2025-11-02 22:40:16,554 - DEBUG - VM ctest-TestBasicPolicy-01309174-98136273 launched on Node cn-jenkins-deploy-platform-ansible-os-4596-1 2025-11-02 22:40:16,628 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/ecfe88f7-f9f8-4fec-a883-b58a626e10e3 2025-11-02 22:40:16,636 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/3ead9cb0-3052-419b-a3ef-5f6370dcd11d 2025-11-02 22:40:17,874 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.443 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.443/1.734/3.025/1.291 ms') 2025-11-02 22:40:17,874 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01309174-98136273 passed 2025-11-02 22:40:18,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 22:40:18,028 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01309174-98136273, IP 20.240.203.3, Port 22 2025-11-02 22:40:18,206 - DEBUG - VM ctest-TestBasicPolicy-01309174-98136273 is ready for SSH connections 2025-11-02 22:40:18,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 22:40:18,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.240.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-11-02 22:40:18,206 - DEBUG - ping -s 56 -c 3 -W 1 20.240.203.3 2025-11-02 22:40:22,314 - DEBUG - PING 20.240.203.3 (20.240.203.3): 56 data bytes 64 bytes from 20.240.203.3: seq=0 ttl=63 time=4.574 ms 64 bytes from 20.240.203.3: seq=1 ttl=63 time=0.885 ms 64 bytes from 20.240.203.3: seq=2 ttl=63 time=1.155 ms --- 20.240.203.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.885/2.204/4.574 ms 2025-11-02 22:40:22,314 - INFO - Ping to IP 20.240.203.3 from VM ctest-TestBasicPolicy-01309174-05291024 passed 2025-11-02 22:40:22,520 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1dfd891f-41cd-48ac-801d-36f1b2d8c4fa", "href": "http://10.0.0.48:8082/network-policy/1dfd891f-41cd-48ac-801d-36f1b2d8c4fa"}} 2025-11-02 22:40:22,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-02 22:40:22,520 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.240.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-11-02 22:40:22,520 - DEBUG - ping -s 56 -c 3 -W 1 20.240.203.3 2025-11-02 22:40:25,749 - DEBUG - PING 20.240.203.3 (20.240.203.3): 56 data bytes --- 20.240.203.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-02 22:40:25,750 - WARNING - Ping to IP 20.240.203.3 from VM ctest-TestBasicPolicy-01309174-05291024 failed 2025-11-02 22:40:25,750 - INFO - Deleting VM ctest-TestBasicPolicy-01309174-98136273 2025-11-02 22:40:25,825 - INFO - Deleting VM ctest-TestBasicPolicy-01309174-05291024 2025-11-02 22:40:26,226 - INFO - Deleted policy ctest-policy-allow-all-75163582 2025-11-02 22:40:26,226 - INFO - Deleting VN ctest-vn-54749957 2025-11-02 22:40:26,270 - DEBUG - VN f0d635bc-082a-415d-ada5-792e847f5286 still in use: Unable to complete operation on network f0d635bc-082a-415d-ada5-792e847f5286. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-339dcb8e-8a4c-419a-81ff-ef8cc8330868'] 2025-11-02 22:40:26,270 - WARNING - Deleting VN ctest-vn-54749957 failed..Will retry 2025-11-02 22:40:28,410 - DEBUG - Response for deleting network () 2025-11-02 22:40:28,410 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559 2025-11-02 22:40:28,416 - DEBUG - Response Code: 404 2025-11-02 22:40:28,417 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 22:40:28,422 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b 2025-11-02 22:40:28,479 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c 2025-11-02 22:40:28,554 - INFO - Validated that VN ctest-vn-54749957 is not found in API Server 2025-11-02 22:40:28,564 - DEBUG - VN ctest-vn-54749957 is not present in Agent 10.0.0.48 2025-11-02 22:40:28,564 - INFO - Validated that VN ctest-vn-54749957 is not in any agent 2025-11-02 22:40:28,577 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54749957 info 2025-11-02 22:40:28,577 - INFO - Deleting VN ctest-vn-49410569 2025-11-02 22:40:28,684 - DEBUG - Response for deleting network () 2025-11-02 22:40:28,684 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006 2025-11-02 22:40:28,690 - DEBUG - Response Code: 404 2025-11-02 22:40:28,690 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-02 22:40:28,695 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b 2025-11-02 22:40:28,749 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c 2025-11-02 22:40:28,820 - INFO - Validated that VN ctest-vn-49410569 is not found in API Server 2025-11-02 22:40:28,829 - DEBUG - VN ctest-vn-49410569 is not present in Agent 10.0.0.48 2025-11-02 22:40:28,829 - INFO - Validated that VN ctest-vn-49410569 is not in any agent 2025-11-02 22:40:28,842 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49410569 info 2025-11-02 22:40:29,100 - DEBUG - No XMPP flaps were noticed during the test
2025-11-02 22:40:29,100 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:51]
2025-11-02 22:40:29,100 - INFO - -------------------------------------------------------------------------------- 2025-11-02 22:40:29,819 - INFO - Deleted project: ctest-TestBasicPolicy-01309174, ID : 98384bbe-9b21-484d-b22a-bec425b8cf9c