2025-10-09 20:26:52,484 - INFO - Domain Default found not creating 2025-10-09 20:26:52,824 - INFO - Project ctest-TestBasicPolicy-35564315 not found, creating it 2025-10-09 20:26:53,554 - INFO - Created Project:ctest-TestBasicPolicy-35564315, ID : d3ca64ef-270b-4155-ae2a-8952a7cf5a53 2025-10-09 20:26:55,633 - INFO - ================================================================================ 2025-10-09 20:26:55,633 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-09 20:26:55,633 - 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-09 20:26:55,950 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-10-09 20:26:55,950 - INFO - Initial checks done. Running the testcase now 2025-10-09 20:26:55,950 - INFO - 2025-10-09 20:26:56,752 - DEBUG - Response for create_network : {'network': {'id': '91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9', 'name': 'ctest-vn-47618369', 'tenant_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'project_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-vn-47618369'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:26:56,979 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f497f257-9050-4350-ad3d-6e4a2d4e87ae', 'name': '', 'tenant_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'network_id': '91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9', 'ip_version': 4, 'cidr': '186.101.16.0/26', 'allocation_pools': [{'start': '186.101.16.2', 'end': '186.101.16.62'}], 'gateway_ip': '186.101.16.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.101.16.2', 'tags': [], 'project_id': 'd3ca64ef270b4155ae2a8952a7cf5a53'}} 2025-10-09 20:26:56,998 - INFO - Created VN ctest-vn-47618369 2025-10-09 20:26:57,060 - DEBUG - VN ctest-vn-47618369 UUID is 91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9 2025-10-09 20:26:57,556 - DEBUG - Response for create_network : {'network': {'id': '196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0', 'name': 'ctest-vn-33001412', 'tenant_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'project_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-vn-33001412'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:26:57,813 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa924b92-41c2-4bff-b0d3-272b7f6cce2f', 'name': '', 'tenant_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'network_id': '196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0', 'ip_version': 4, 'cidr': '71.41.130.64/26', 'allocation_pools': [{'start': '71.41.130.66', 'end': '71.41.130.126'}], 'gateway_ip': '71.41.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.41.130.66', 'tags': [], 'project_id': 'd3ca64ef270b4155ae2a8952a7cf5a53'}} 2025-10-09 20:26:57,849 - INFO - Created VN ctest-vn-33001412 2025-10-09 20:26:57,908 - DEBUG - VN ctest-vn-33001412 UUID is 196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 2025-10-09 20:26:58,120 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-47618369, 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-35564315:ctest-vn-33001412, 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-09 20:26:58,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9', 'name': 'ctest-vn-47618369', 'tenant_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'project_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f497f257-9050-4350-ad3d-6e4a2d4e87ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-vn-47618369'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-policy-allow-all-76055807']], 'subnet_ipam': [{'subnet_cidr': '186.101.16.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:26:58,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0', 'name': 'ctest-vn-33001412', 'tenant_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'project_id': 'd3ca64ef270b4155ae2a8952a7cf5a53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa924b92-41c2-4bff-b0d3-272b7f6cce2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-vn-33001412'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-policy-allow-all-76055807']], 'subnet_ipam': [{'subnet_cidr': '71.41.130.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:26:59,071 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:59,373 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:59,417 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:26:59,448 - DEBUG - Requesting: http://10.0.0.19:8082/project/d3ca64ef-270b-4155-ae2a-8952a7cf5a53 2025-10-09 20:26:59,567 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9 2025-10-09 20:26:59,589 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9 2025-10-09 20:26:59,615 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/06f4699c-f7fe-46e6-a449-85a7e3bae654 2025-10-09 20:26:59,631 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/06f4699c-f7fe-46e6-a449-85a7e3bae654 2025-10-09 20:26:59,645 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/cb1af0a3-b42e-4e3c-a8dc-fc035db162fd 2025-10-09 20:26:59,657 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 20:26:59,657 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9 2025-10-09 20:26:59,671 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/06f4699c-f7fe-46e6-a449-85a7e3bae654 2025-10-09 20:26:59,691 - INFO - Verified VN network id 11 for VN 91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9 2025-10-09 20:26:59,691 - INFO - Verifications in API Server for VN ctest-vn-47618369 passed 2025-10-09 20:26:59,692 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9 2025-10-09 20:26:59,711 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/06f4699c-f7fe-46e6-a449-85a7e3bae654 2025-10-09 20:26:59,727 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/06f4699c-f7fe-46e6-a449-85a7e3bae654 2025-10-09 20:26:59,744 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/cb1af0a3-b42e-4e3c-a8dc-fc035db162fd 2025-10-09 20:26:59,776 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-47618369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35564315', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10495072554111025946', 'uuid-lslong': '12008232802307912121'}, 'enable': 'true', 'created': '2025-10-09T20:26:56', 'last-modified': '2025-10-09T20:26:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.230749'} 2025-10-09 20:26:59,792 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 20:26:59,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47618369 passed 2025-10-09 20:26:59,793 - DEBUG - ====Verifying policy data for ctest-vn-47618369 in API_Server ====== 2025-10-09 20:26:59,793 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:59,808 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:26:59,839 - DEBUG - Requesting: http://10.0.0.19:8082/project/d3ca64ef-270b-4155-ae2a-8952a7cf5a53 2025-10-09 20:26:59,968 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/91a5fce1-f7bd-431a-a6a5-d01c81c1b1b9 2025-10-09 20:26:59,994 - DEBUG - ==>Verifying data for policy with id: cf104706-1f7f-4fd0-99b4-0837eea441d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-policy-allow-all-76055807'] 2025-10-09 20:26:59,994 - INFO - VN ctest-vn-47618369 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 20:26:59,995 - DEBUG - Verifying the vn in opserver 2025-10-09 20:26:59,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-47618369 virtual network link through opserver 10.0.0.19 2025-10-09 20:26:59,995 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 20:27:00,348 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 20:27:00,456 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-47618369', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-47618369?flat'} 2025-10-09 20:27:00,457 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-47618369 is found in opserver 2025-10-09 20:27:00,482 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 20:27:00,499 - DEBUG - VRF ids for VN ctest-vn-47618369: {} 2025-10-09 20:27:00,499 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:27:00,512 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:27:00,528 - DEBUG - Requesting: http://10.0.0.19:8082/project/d3ca64ef-270b-4155-ae2a-8952a7cf5a53 2025-10-09 20:27:00,634 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 2025-10-09 20:27:00,660 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 2025-10-09 20:27:00,682 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e1c8713-dd07-4178-8edf-b41d8eadba80 2025-10-09 20:27:00,702 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e1c8713-dd07-4178-8edf-b41d8eadba80 2025-10-09 20:27:00,719 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/04cf1bf1-57fd-4991-b24c-88ec94a6463b 2025-10-09 20:27:00,732 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 20:27:00,732 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 2025-10-09 20:27:00,751 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e1c8713-dd07-4178-8edf-b41d8eadba80 2025-10-09 20:27:00,778 - INFO - Verified VN network id 12 for VN 196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 2025-10-09 20:27:00,778 - INFO - Verifications in API Server for VN ctest-vn-33001412 passed 2025-10-09 20:27:00,779 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 2025-10-09 20:27:00,800 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e1c8713-dd07-4178-8edf-b41d8eadba80 2025-10-09 20:27:00,814 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e1c8713-dd07-4178-8edf-b41d8eadba80 2025-10-09 20:27:00,832 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/04cf1bf1-57fd-4991-b24c-88ec94a6463b 2025-10-09 20:27:00,859 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-33001412', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35564315', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1832733016028694992', 'uuid-lslong': '12028865539813539760'}, 'enable': 'true', 'created': '2025-10-09T20:26:57', 'last-modified': '2025-10-09T20:26:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.017751'} 2025-10-09 20:27:00,870 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 20:27:00,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33001412 passed 2025-10-09 20:27:00,871 - DEBUG - ====Verifying policy data for ctest-vn-33001412 in API_Server ====== 2025-10-09 20:27:00,871 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:27:00,884 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:27:00,903 - DEBUG - Requesting: http://10.0.0.19:8082/project/d3ca64ef-270b-4155-ae2a-8952a7cf5a53 2025-10-09 20:27:01,009 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 2025-10-09 20:27:01,023 - DEBUG - ==>Verifying data for policy with id: cf104706-1f7f-4fd0-99b4-0837eea441d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-35564315', 'ctest-policy-allow-all-76055807'] 2025-10-09 20:27:01,023 - INFO - VN ctest-vn-33001412 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 20:27:01,023 - DEBUG - Verifying the vn in opserver 2025-10-09 20:27:01,023 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-33001412 virtual network link through opserver 10.0.0.19 2025-10-09 20:27:01,023 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 20:27:01,040 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-33001412', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-33001412?flat'} 2025-10-09 20:27:01,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-33001412 is found in opserver 2025-10-09 20:27:01,053 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 20:27:01,060 - DEBUG - VRF ids for VN ctest-vn-33001412: {} 2025-10-09 20:27:01,149 - DEBUG - Services list from nova: [, , ] 2025-10-09 20:27:02,653 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4276-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4276-1) 2025-10-09 20:27:04,229 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4276-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4276-1) 2025-10-09 20:27:04,229 - INFO - Waiting for VM ctest-TestBasicPolicy-35564315-98179676 to be up.. 2025-10-09 20:27:04,324 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 20:27:09,512 - DEBUG - VM is in ACTIVE state now 2025-10-09 20:27:09,513 - INFO - VM name : ctest-TestBasicPolicy-35564315-98179676 2025-10-09 20:27:09,691 - DEBUG - VM ctest-TestBasicPolicy-35564315-98179676 ID is d9a29965-71f0-4f0a-b46d-a3dcdf14e1de 2025-10-09 20:27:09,741 - DEBUG - VM ctest-TestBasicPolicy-35564315-98179676 launched on Node cn-jenkins-deploy-platform-ansible-os-4276-1 2025-10-09 20:27:09,918 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/d9a29965-71f0-4f0a-b46d-a3dcdf14e1de 2025-10-09 20:27:09,940 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/f6a68f19-1a86-451b-956a-f9ca8b1dcbd8 2025-10-09 20:27:13,267 - 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 1025ms') 2025-10-09 20:27:13,267 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35564315-98179676 failed! 2025-10-09 20:27:13,327 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35564315:ctest-vn-47618369 is 186.101.16.1 and allocation pool is NOT set 2025-10-09 20:27:15,407 - 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=10.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.36 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 4.364/7.655/10.946/3.291 ms') 2025-10-09 20:27:15,408 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35564315-98179676 passed 2025-10-09 20:27:15,576 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:27:15,577 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35564315-98179676, IP 186.101.16.3, Port 22 2025-10-09 20:27:15,657 - 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-10-09 20:27:15,823 - DEBUG - VM ctest-TestBasicPolicy-35564315-98179676 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 20:27:20,824 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:27:20,825 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35564315-98179676, IP 186.101.16.3, Port 22 2025-10-09 20:27:21,031 - DEBUG - VM ctest-TestBasicPolicy-35564315-98179676 is ready for SSH connections 2025-10-09 20:27:21,031 - INFO - Waiting for VM ctest-TestBasicPolicy-35564315-34853653 to be up.. 2025-10-09 20:27:21,193 - DEBUG - VM is in ACTIVE state now 2025-10-09 20:27:21,193 - INFO - VM name : ctest-TestBasicPolicy-35564315-34853653 2025-10-09 20:27:21,350 - DEBUG - VM ctest-TestBasicPolicy-35564315-34853653 ID is f424a649-041c-48d7-bfde-6834d7818a27 2025-10-09 20:27:21,350 - DEBUG - VM ctest-TestBasicPolicy-35564315-34853653 launched on Node cn-jenkins-deploy-platform-ansible-os-4276-1 2025-10-09 20:27:21,492 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/f424a649-041c-48d7-bfde-6834d7818a27 2025-10-09 20:27:21,505 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/3b837278-e4b9-42e9-bd1e-01ba29330c96 2025-10-09 20:27:22,825 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.43 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.501 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.501/2.465/4.429/1.964 ms') 2025-10-09 20:27:22,825 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-35564315-34853653 passed 2025-10-09 20:27:22,996 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:27:22,997 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35564315-34853653, IP 71.41.130.67, Port 22 2025-10-09 20:27:23,192 - DEBUG - VM ctest-TestBasicPolicy-35564315-34853653 is ready for SSH connections 2025-10-09 20:27:23,192 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:27:23,192 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.41.130.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-09 20:27:23,192 - DEBUG - ping -s 56 -c 3 -W 1 71.41.130.67 2025-10-09 20:27:27,676 - DEBUG - PING 71.41.130.67 (71.41.130.67): 56 data bytes 64 bytes from 71.41.130.67: seq=0 ttl=63 time=8.072 ms 64 bytes from 71.41.130.67: seq=1 ttl=63 time=1.565 ms 64 bytes from 71.41.130.67: seq=2 ttl=63 time=1.889 ms --- 71.41.130.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.565/3.842/8.072 ms 2025-10-09 20:27:27,676 - INFO - Ping to IP 71.41.130.67 from VM ctest-TestBasicPolicy-35564315-98179676 passed 2025-10-09 20:27:27,919 - DEBUG - Policy Update Response {"network-policy": {"uuid": "cf104706-1f7f-4fd0-99b4-0837eea441d1", "href": "http://10.0.0.19:8082/network-policy/cf104706-1f7f-4fd0-99b4-0837eea441d1"}} 2025-10-09 20:27:27,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 20:27:27,920 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.41.130.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-09 20:27:27,920 - DEBUG - ping -s 56 -c 3 -W 1 71.41.130.67 2025-10-09 20:27:31,199 - DEBUG - PING 71.41.130.67 (71.41.130.67): 56 data bytes 64 bytes from 71.41.130.67: seq=0 ttl=63 time=1.854 ms --- 71.41.130.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.854/1.854/1.854 ms 2025-10-09 20:27:31,199 - WARNING - Ping to IP 71.41.130.67 from VM ctest-TestBasicPolicy-35564315-98179676 failed 2025-10-09 20:27:31,200 - INFO - Deleting VM ctest-TestBasicPolicy-35564315-34853653 2025-10-09 20:27:31,376 - INFO - Deleting VM ctest-TestBasicPolicy-35564315-98179676 2025-10-09 20:27:31,898 - INFO - Deleted policy ctest-policy-allow-all-76055807 2025-10-09 20:27:31,898 - INFO - Deleting VN ctest-vn-33001412 2025-10-09 20:27:31,945 - DEBUG - VN 196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0 still in use: Unable to complete operation on network 196f2cf7-c485-49d0-a6ef-1d7a0f85ffb0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6084d1d5-e02b-44dd-a0fe-c3e875e507e6'] 2025-10-09 20:27:31,946 - WARNING - Deleting VN ctest-vn-33001412 failed..Will retry 2025-10-09 20:27:34,203 - DEBUG - Response for deleting network () 2025-10-09 20:27:34,204 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e1c8713-dd07-4178-8edf-b41d8eadba80 2025-10-09 20:27:34,213 - DEBUG - Response Code: 404 2025-10-09 20:27:34,213 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:27:34,221 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:27:34,288 - DEBUG - Requesting: http://10.0.0.19:8082/project/d3ca64ef-270b-4155-ae2a-8952a7cf5a53 2025-10-09 20:27:34,385 - INFO - Validated that VN ctest-vn-33001412 is not found in API Server 2025-10-09 20:27:34,405 - DEBUG - VN ctest-vn-33001412 is not present in Agent 10.0.0.19 2025-10-09 20:27:34,405 - INFO - Validated that VN ctest-vn-33001412 is not in any agent 2025-10-09 20:27:34,432 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33001412 info 2025-10-09 20:27:34,432 - INFO - Deleting VN ctest-vn-47618369 2025-10-09 20:27:34,606 - DEBUG - Response for deleting network () 2025-10-09 20:27:34,606 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/06f4699c-f7fe-46e6-a449-85a7e3bae654 2025-10-09 20:27:34,614 - DEBUG - Response Code: 404 2025-10-09 20:27:34,614 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:27:34,619 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:27:34,678 - DEBUG - Requesting: http://10.0.0.19:8082/project/d3ca64ef-270b-4155-ae2a-8952a7cf5a53 2025-10-09 20:27:34,788 - INFO - Validated that VN ctest-vn-47618369 is not found in API Server 2025-10-09 20:27:34,813 - DEBUG - VN ctest-vn-47618369 is not present in Agent 10.0.0.19 2025-10-09 20:27:34,813 - INFO - Validated that VN ctest-vn-47618369 is not in any agent 2025-10-09 20:27:34,852 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47618369 info 2025-10-09 20:27:35,178 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 20:27:35,178 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2025-10-09 20:27:35,179 - INFO - -------------------------------------------------------------------------------- 2025-10-09 20:27:36,100 - INFO - Deleted project: ctest-TestBasicPolicy-35564315, ID : d3ca64ef-270b-4155-ae2a-8952a7cf5a53