2025-08-19 13:16:50,702 - INFO - Domain Default found not creating 2025-08-19 13:16:50,842 - INFO - Project ctest-TestBasicPolicy-71675529 not found, creating it 2025-08-19 13:16:51,295 - INFO - Created Project:ctest-TestBasicPolicy-71675529, ID : 843d206b-9adb-44ca-8420-e696520cfa01 2025-08-19 13:16:52,879 - INFO - ================================================================================ 2025-08-19 13:16:52,879 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-19 13:16:52,879 - 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-08-19 13:16:53,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-19 13:16:53,144 - INFO - Initial checks done. Running the testcase now 2025-08-19 13:16:53,144 - INFO - 2025-08-19 13:16:53,729 - DEBUG - Response for create_network : {'network': {'id': '6fa19e7d-f976-4574-bc5d-ca437eb32924', 'name': 'ctest-vn-92887856', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-92887856'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 13:16:53,890 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e043f336-94c3-4a8e-b4fa-d8f960c8c4a8', 'name': '', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'network_id': '6fa19e7d-f976-4574-bc5d-ca437eb32924', 'ip_version': 4, 'cidr': '50.48.183.128/26', 'allocation_pools': [{'start': '50.48.183.130', 'end': '50.48.183.190'}], 'gateway_ip': '50.48.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.48.183.130', 'tags': [], 'project_id': '843d206b9adb44ca8420e696520cfa01'}} 2025-08-19 13:16:53,907 - INFO - Created VN ctest-vn-92887856 2025-08-19 13:16:53,961 - DEBUG - VN ctest-vn-92887856 UUID is 6fa19e7d-f976-4574-bc5d-ca437eb32924 2025-08-19 13:16:54,294 - DEBUG - Response for create_network : {'network': {'id': '7821a233-94b8-4aa2-ac6f-0b318a254c6b', 'name': 'ctest-vn-54920527', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-54920527'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 13:16:54,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '4464c018-a3be-4c3f-ad6a-7bbc9330d779', 'name': '', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'network_id': '7821a233-94b8-4aa2-ac6f-0b318a254c6b', 'ip_version': 4, 'cidr': '166.32.140.128/26', 'allocation_pools': [{'start': '166.32.140.130', 'end': '166.32.140.190'}], 'gateway_ip': '166.32.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.32.140.130', 'tags': [], 'project_id': '843d206b9adb44ca8420e696520cfa01'}} 2025-08-19 13:16:54,497 - INFO - Created VN ctest-vn-54920527 2025-08-19 13:16:54,549 - DEBUG - VN ctest-vn-54920527 UUID is 7821a233-94b8-4aa2-ac6f-0b318a254c6b 2025-08-19 13:16:54,693 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856, 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-71675529:ctest-vn-54920527, 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-08-19 13:16:54,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fa19e7d-f976-4574-bc5d-ca437eb32924', 'name': 'ctest-vn-92887856', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e043f336-94c3-4a8e-b4fa-d8f960c8c4a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-92887856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546']], 'subnet_ipam': [{'subnet_cidr': '50.48.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-19 13:16:55,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7821a233-94b8-4aa2-ac6f-0b318a254c6b', 'name': 'ctest-vn-54920527', 'tenant_id': '843d206b9adb44ca8420e696520cfa01', 'project_id': '843d206b9adb44ca8420e696520cfa01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4464c018-a3be-4c3f-ad6a-7bbc9330d779'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-vn-54920527'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546']], 'subnet_ipam': [{'subnet_cidr': '166.32.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-19 13:16:55,413 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 13:16:55,752 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 13:16:55,780 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8 2025-08-19 13:16:55,793 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01 2025-08-19 13:16:55,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924 2025-08-19 13:16:55,877 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924 2025-08-19 13:16:55,887 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd 2025-08-19 13:16:55,894 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd 2025-08-19 13:16:55,900 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3f4bf72f-e520-4395-bd4b-5ada21e8b1c6 2025-08-19 13:16:55,906 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 13:16:55,906 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924 2025-08-19 13:16:55,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd 2025-08-19 13:16:55,929 - INFO - Verified VN network id 11 for VN 6fa19e7d-f976-4574-bc5d-ca437eb32924 2025-08-19 13:16:55,929 - INFO - Verifications in API Server for VN ctest-vn-92887856 passed 2025-08-19 13:16:55,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924 2025-08-19 13:16:55,938 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd 2025-08-19 13:16:55,945 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd 2025-08-19 13:16:55,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3f4bf72f-e520-4395-bd4b-5ada21e8b1c6 2025-08-19 13:16:55,965 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71675529', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8043884673353794932', 'uuid-lslong': '13573227243201833252'}, 'enable': 'true', 'created': '2025-08-19T13:16:53', 'last-modified': '2025-08-19T13:16:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000835'} 2025-08-19 13:16:55,971 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 13:16:55,971 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92887856 passed 2025-08-19 13:16:55,972 - DEBUG - ====Verifying policy data for ctest-vn-92887856 in API_Server ====== 2025-08-19 13:16:55,972 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 13:16:55,976 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8 2025-08-19 13:16:55,987 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01 2025-08-19 13:16:56,058 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fa19e7d-f976-4574-bc5d-ca437eb32924 2025-08-19 13:16:56,068 - DEBUG - ==>Verifying data for policy with id: 2bbb41bf-24a7-43a6-85dc-aeba5f09030d, fqn: ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546'] 2025-08-19 13:16:56,068 - INFO - VN ctest-vn-92887856 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-19 13:16:56,068 - DEBUG - Verifying the vn in opserver 2025-08-19 13:16:56,068 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856 virtual network link through opserver 10.0.0.254 2025-08-19 13:16:56,068 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-19 13:16:56,399 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-19 13:16:56,453 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856?flat'} 2025-08-19 13:16:56,453 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856 is found in opserver 2025-08-19 13:16:56,465 - DEBUG - Do not have enough data to verify VN in agent 2025-08-19 13:16:56,470 - DEBUG - VRF ids for VN ctest-vn-92887856: {} 2025-08-19 13:16:56,470 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 13:16:56,476 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8 2025-08-19 13:16:56,487 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01 2025-08-19 13:16:56,559 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b 2025-08-19 13:16:56,572 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b 2025-08-19 13:16:56,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259 2025-08-19 13:16:56,588 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259 2025-08-19 13:16:56,595 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/db054934-061a-4b90-81da-2f922c72c44e 2025-08-19 13:16:56,601 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-19 13:16:56,601 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b 2025-08-19 13:16:56,610 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259 2025-08-19 13:16:56,623 - INFO - Verified VN network id 12 for VN 7821a233-94b8-4aa2-ac6f-0b318a254c6b 2025-08-19 13:16:56,623 - INFO - Verifications in API Server for VN ctest-vn-54920527 passed 2025-08-19 13:16:56,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b 2025-08-19 13:16:56,633 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259 2025-08-19 13:16:56,640 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259 2025-08-19 13:16:56,646 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/db054934-061a-4b90-81da-2f922c72c44e 2025-08-19 13:16:56,659 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71675529', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8656378301204941474', 'uuid-lslong': '12425162204337491051'}, 'enable': 'true', 'created': '2025-08-19T13:16:54', 'last-modified': '2025-08-19T13:16:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466769'} 2025-08-19 13:16:56,666 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-19 13:16:56,666 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54920527 passed 2025-08-19 13:16:56,666 - DEBUG - ====Verifying policy data for ctest-vn-54920527 in API_Server ====== 2025-08-19 13:16:56,666 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 13:16:56,671 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8 2025-08-19 13:16:56,682 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01 2025-08-19 13:16:56,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7821a233-94b8-4aa2-ac6f-0b318a254c6b 2025-08-19 13:16:56,762 - DEBUG - ==>Verifying data for policy with id: 2bbb41bf-24a7-43a6-85dc-aeba5f09030d, fqn: ['default-domain', 'ctest-TestBasicPolicy-71675529', 'ctest-policy-allow-all-56562546'] 2025-08-19 13:16:56,762 - INFO - VN ctest-vn-54920527 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-19 13:16:56,762 - DEBUG - Verifying the vn in opserver 2025-08-19 13:16:56,762 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527 virtual network link through opserver 10.0.0.254 2025-08-19 13:16:56,762 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-19 13:16:56,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527?flat'} 2025-08-19 13:16:56,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-54920527 is found in opserver 2025-08-19 13:16:56,784 - DEBUG - Do not have enough data to verify VN in agent 2025-08-19 13:16:56,789 - DEBUG - VRF ids for VN ctest-vn-54920527: {} 2025-08-19 13:16:56,843 - DEBUG - Services list from nova: [, , ] 2025-08-19 13:16:57,899 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3884-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3884-1) 2025-08-19 13:16:59,088 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3884-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3884-1) 2025-08-19 13:16:59,088 - INFO - Waiting for VM ctest-TestBasicPolicy-71675529-74409020 to be up.. 2025-08-19 13:16:59,169 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-19 13:17:04,242 - DEBUG - VM is in ACTIVE state now 2025-08-19 13:17:04,242 - INFO - VM name : ctest-TestBasicPolicy-71675529-74409020 2025-08-19 13:17:04,315 - DEBUG - VM ctest-TestBasicPolicy-71675529-74409020 ID is b075d348-7e2e-4ad4-9dcb-02bb1c1d2453 2025-08-19 13:17:04,334 - DEBUG - VM ctest-TestBasicPolicy-71675529-74409020 launched on Node cn-jenkins-deploy-platform-ansible-os-3884-1 2025-08-19 13:17:04,403 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/b075d348-7e2e-4ad4-9dcb-02bb1c1d2453 2025-08-19 13:17:04,412 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/abc6f02e-a8c1-4fee-9071-56fdfd6a017d 2025-08-19 13:17:07,658 - 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 1015ms') 2025-08-19 13:17:07,658 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71675529-74409020 failed! 2025-08-19 13:17:07,713 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-71675529:ctest-vn-92887856 is 50.48.183.129 and allocation pool is NOT set 2025-08-19 13:17:09,772 - 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=9.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.23 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.234/5.935/9.637/3.701 ms') 2025-08-19 13:17:09,772 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-71675529-74409020 passed 2025-08-19 13:17:09,925 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:17:09,925 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71675529-74409020, IP 50.48.183.131, Port 22 2025-08-19 13:17:09,991 - 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-08-19 13:17:10,069 - DEBUG - VM ctest-TestBasicPolicy-71675529-74409020 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-19 13:17:15,070 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:17:15,071 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71675529-74409020, IP 50.48.183.131, Port 22 2025-08-19 13:17:15,224 - DEBUG - VM ctest-TestBasicPolicy-71675529-74409020 is ready for SSH connections 2025-08-19 13:17:15,224 - INFO - Waiting for VM ctest-TestBasicPolicy-71675529-75776485 to be up.. 2025-08-19 13:17:15,295 - DEBUG - VM is in ACTIVE state now 2025-08-19 13:17:15,295 - INFO - VM name : ctest-TestBasicPolicy-71675529-75776485 2025-08-19 13:17:15,361 - DEBUG - VM ctest-TestBasicPolicy-71675529-75776485 ID is c6faa313-4c86-426c-8879-22b2112d8e07 2025-08-19 13:17:15,361 - DEBUG - VM ctest-TestBasicPolicy-71675529-75776485 launched on Node cn-jenkins-deploy-platform-ansible-os-3884-1 2025-08-19 13:17:15,429 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/c6faa313-4c86-426c-8879-22b2112d8e07 2025-08-19 13:17:15,437 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/cb869c72-41fe-464f-a3f6-fb2cdb9e1cbb 2025-08-19 13:17:16,671 - 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=2.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.410 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.410/1.681/2.952/1.271 ms') 2025-08-19 13:17:16,672 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-71675529-75776485 passed 2025-08-19 13:17:16,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:17:16,825 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-71675529-75776485, IP 166.32.140.131, Port 22 2025-08-19 13:17:16,984 - DEBUG - VM ctest-TestBasicPolicy-71675529-75776485 is ready for SSH connections 2025-08-19 13:17:16,984 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:17:16,984 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.32.140.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-19 13:17:16,984 - DEBUG - ping -s 56 -c 3 -W 1 166.32.140.131 2025-08-19 13:17:21,007 - DEBUG - PING 166.32.140.131 (166.32.140.131): 56 data bytes 64 bytes from 166.32.140.131: seq=0 ttl=63 time=3.605 ms 64 bytes from 166.32.140.131: seq=1 ttl=63 time=0.845 ms 64 bytes from 166.32.140.131: seq=2 ttl=63 time=0.843 ms --- 166.32.140.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.843/1.764/3.605 ms 2025-08-19 13:17:21,007 - INFO - Ping to IP 166.32.140.131 from VM ctest-TestBasicPolicy-71675529-74409020 passed 2025-08-19 13:17:21,189 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2bbb41bf-24a7-43a6-85dc-aeba5f09030d", "href": "http://10.0.0.254:8082/network-policy/2bbb41bf-24a7-43a6-85dc-aeba5f09030d"}} 2025-08-19 13:17:21,189 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:17:21,189 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.32.140.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-19 13:17:21,189 - DEBUG - ping -s 56 -c 3 -W 1 166.32.140.131 2025-08-19 13:17:24,428 - DEBUG - PING 166.32.140.131 (166.32.140.131): 56 data bytes --- 166.32.140.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-19 13:17:24,428 - WARNING - Ping to IP 166.32.140.131 from VM ctest-TestBasicPolicy-71675529-74409020 failed 2025-08-19 13:17:24,428 - INFO - Deleting VM ctest-TestBasicPolicy-71675529-75776485 2025-08-19 13:17:24,493 - INFO - Deleting VM ctest-TestBasicPolicy-71675529-74409020 2025-08-19 13:17:24,893 - INFO - Deleted policy ctest-policy-allow-all-56562546 2025-08-19 13:17:24,893 - INFO - Deleting VN ctest-vn-54920527 2025-08-19 13:17:24,927 - DEBUG - VN 7821a233-94b8-4aa2-ac6f-0b318a254c6b still in use: Unable to complete operation on network 7821a233-94b8-4aa2-ac6f-0b318a254c6b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ef70df2c-149e-4d25-a3dc-a940df83701a'] 2025-08-19 13:17:24,927 - WARNING - Deleting VN ctest-vn-54920527 failed..Will retry 2025-08-19 13:17:27,060 - DEBUG - Response for deleting network () 2025-08-19 13:17:27,060 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/75dc3d69-c7fd-4c6c-8a17-14c383980259 2025-08-19 13:17:27,066 - DEBUG - Response Code: 404 2025-08-19 13:17:27,066 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 13:17:27,077 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8 2025-08-19 13:17:27,136 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01 2025-08-19 13:17:27,211 - INFO - Validated that VN ctest-vn-54920527 is not found in API Server 2025-08-19 13:17:27,222 - DEBUG - VN ctest-vn-54920527 is not present in Agent 10.0.0.254 2025-08-19 13:17:27,222 - INFO - Validated that VN ctest-vn-54920527 is not in any agent 2025-08-19 13:17:27,239 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54920527 info 2025-08-19 13:17:27,240 - INFO - Deleting VN ctest-vn-92887856 2025-08-19 13:17:27,339 - DEBUG - Response for deleting network () 2025-08-19 13:17:27,340 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d252bcb3-3758-4cf8-adf5-fb90d891c0cd 2025-08-19 13:17:27,347 - DEBUG - Response Code: 404 2025-08-19 13:17:27,348 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 13:17:27,355 - DEBUG - Requesting: http://10.0.0.254:8082/domain/793617c3-e58a-496d-8e56-9d2c8a96cae8 2025-08-19 13:17:27,406 - DEBUG - Requesting: http://10.0.0.254:8082/project/843d206b-9adb-44ca-8420-e696520cfa01 2025-08-19 13:17:27,480 - INFO - Validated that VN ctest-vn-92887856 is not found in API Server 2025-08-19 13:17:27,491 - DEBUG - VN ctest-vn-92887856 is not present in Agent 10.0.0.254 2025-08-19 13:17:27,491 - INFO - Validated that VN ctest-vn-92887856 is not in any agent 2025-08-19 13:17:27,508 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92887856 info 2025-08-19 13:17:27,763 - DEBUG - No XMPP flaps were noticed during the test
2025-08-19 13:17:27,763 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-08-19 13:17:27,763 - INFO - -------------------------------------------------------------------------------- 2025-08-19 13:17:28,459 - INFO - Deleted project: ctest-TestBasicPolicy-71675529, ID : 843d206b-9adb-44ca-8420-e696520cfa01