2025-04-11 18:44:36,757 - INFO - Domain Default found not creating 2025-04-11 18:44:36,921 - INFO - Project ctest-TestBasicPolicy-70496452 not found, creating it 2025-04-11 18:44:37,413 - INFO - Created Project:ctest-TestBasicPolicy-70496452, ID : 854f5629-9b9b-4149-8217-049798acb2a6 2025-04-11 18:44:38,905 - INFO - ================================================================================ 2025-04-11 18:44:38,905 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-11 18:44:38,905 - 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-04-11 18:44:39,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-11 18:44:39,173 - INFO - Initial checks done. Running the testcase now 2025-04-11 18:44:39,173 - INFO - 2025-04-11 18:44:39,764 - DEBUG - Response for create_network : {'network': {'id': '93ab7622-15c7-4a4e-afde-518d4e8c1c41', 'name': 'ctest-vn-96462392', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-96462392'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 18:44:39,922 - DEBUG - Response for create_subnet : {'subnet': {'id': '349169d6-62e4-4c78-9451-fe8c5c4c4c9a', 'name': '', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'network_id': '93ab7622-15c7-4a4e-afde-518d4e8c1c41', 'ip_version': 4, 'cidr': '159.185.170.128/26', 'allocation_pools': [{'start': '159.185.170.130', 'end': '159.185.170.190'}], 'gateway_ip': '159.185.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.185.170.130', 'tags': [], 'project_id': '854f56299b9b41498217049798acb2a6'}} 2025-04-11 18:44:39,941 - INFO - Created VN ctest-vn-96462392 2025-04-11 18:44:39,994 - DEBUG - VN ctest-vn-96462392 UUID is 93ab7622-15c7-4a4e-afde-518d4e8c1c41 2025-04-11 18:44:40,363 - DEBUG - Response for create_network : {'network': {'id': '9cc02731-59b3-404c-8384-c15eff2b4688', 'name': 'ctest-vn-97041847', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-97041847'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 18:44:40,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '13361202-e991-4ea9-a957-827510cdc70d', 'name': '', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'network_id': '9cc02731-59b3-404c-8384-c15eff2b4688', 'ip_version': 4, 'cidr': '29.215.22.192/26', 'allocation_pools': [{'start': '29.215.22.194', 'end': '29.215.22.254'}], 'gateway_ip': '29.215.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.215.22.194', 'tags': [], 'project_id': '854f56299b9b41498217049798acb2a6'}} 2025-04-11 18:44:40,618 - INFO - Created VN ctest-vn-97041847 2025-04-11 18:44:40,674 - DEBUG - VN ctest-vn-97041847 UUID is 9cc02731-59b3-404c-8384-c15eff2b4688 2025-04-11 18:44:40,797 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392, 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-70496452:ctest-vn-97041847, 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-04-11 18:44:41,109 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93ab7622-15c7-4a4e-afde-518d4e8c1c41', 'name': 'ctest-vn-96462392', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['349169d6-62e4-4c78-9451-fe8c5c4c4c9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-96462392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064']], 'subnet_ipam': [{'subnet_cidr': '159.185.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-11 18:44:41,425 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cc02731-59b3-404c-8384-c15eff2b4688', 'name': 'ctest-vn-97041847', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13361202-e991-4ea9-a957-827510cdc70d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-97041847'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064']], 'subnet_ipam': [{'subnet_cidr': '29.215.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-11 18:44:41,582 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 18:44:41,882 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 18:44:41,920 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a 2025-04-11 18:44:41,940 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6 2025-04-11 18:44:42,033 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41 2025-04-11 18:44:42,044 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41 2025-04-11 18:44:42,059 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c 2025-04-11 18:44:42,070 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c 2025-04-11 18:44:42,079 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4d950a6e-ae74-4083-be44-81881063bc2f 2025-04-11 18:44:42,087 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-11 18:44:42,087 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41 2025-04-11 18:44:42,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c 2025-04-11 18:44:42,113 - INFO - Verified VN network id 7 for VN 93ab7622-15c7-4a4e-afde-518d4e8c1c41 2025-04-11 18:44:42,113 - INFO - Verifications in API Server for VN ctest-vn-96462392 passed 2025-04-11 18:44:42,114 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41 2025-04-11 18:44:42,125 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c 2025-04-11 18:44:42,133 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c 2025-04-11 18:44:42,141 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4d950a6e-ae74-4083-be44-81881063bc2f 2025-04-11 18:44:42,155 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70496452', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10640728433359276622', 'uuid-lslong': '12672656068817198145'}, 'enable': 'true', 'created': '2025-04-11T18:44:39', 'last-modified': '2025-04-11T18:44:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073976'} 2025-04-11 18:44:42,161 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-11 18:44:42,161 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96462392 passed 2025-04-11 18:44:42,162 - DEBUG - ====Verifying policy data for ctest-vn-96462392 in API_Server ====== 2025-04-11 18:44:42,162 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 18:44:42,168 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a 2025-04-11 18:44:42,184 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6 2025-04-11 18:44:42,268 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41 2025-04-11 18:44:42,280 - DEBUG - ==>Verifying data for policy with id: 8fc475c2-8e68-4221-a354-aede35e23a07, fqn: ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064'] 2025-04-11 18:44:42,280 - INFO - VN ctest-vn-96462392 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-11 18:44:42,280 - DEBUG - Verifying the vn in opserver 2025-04-11 18:44:42,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392 virtual network link through opserver 10.0.0.254 2025-04-11 18:44:42,281 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-11 18:44:42,580 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-11 18:44:42,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392?flat'} 2025-04-11 18:44:42,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392 is found in opserver 2025-04-11 18:44:42,666 - DEBUG - Do not have enough data to verify VN in agent 2025-04-11 18:44:42,673 - DEBUG - VRF ids for VN ctest-vn-96462392: {} 2025-04-11 18:44:42,674 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 18:44:42,681 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a 2025-04-11 18:44:42,695 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6 2025-04-11 18:44:42,776 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688 2025-04-11 18:44:42,788 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688 2025-04-11 18:44:42,800 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee 2025-04-11 18:44:42,810 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee 2025-04-11 18:44:42,818 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4df827b0-bc7a-4dbc-a5c9-2192e229c79c 2025-04-11 18:44:42,826 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-11 18:44:42,826 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688 2025-04-11 18:44:42,837 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee 2025-04-11 18:44:42,853 - INFO - Verified VN network id 8 for VN 9cc02731-59b3-404c-8384-c15eff2b4688 2025-04-11 18:44:42,853 - INFO - Verifications in API Server for VN ctest-vn-97041847 passed 2025-04-11 18:44:42,853 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688 2025-04-11 18:44:42,865 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee 2025-04-11 18:44:42,876 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee 2025-04-11 18:44:42,886 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4df827b0-bc7a-4dbc-a5c9-2192e229c79c 2025-04-11 18:44:42,903 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70496452', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11295070958357004364', 'uuid-lslong': '9476912129646478984'}, 'enable': 'true', 'created': '2025-04-11T18:44:40', 'last-modified': '2025-04-11T18:44:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.562095'} 2025-04-11 18:44:42,910 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-11 18:44:42,910 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97041847 passed 2025-04-11 18:44:42,910 - DEBUG - ====Verifying policy data for ctest-vn-97041847 in API_Server ====== 2025-04-11 18:44:42,910 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 18:44:42,916 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a 2025-04-11 18:44:42,928 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6 2025-04-11 18:44:43,007 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688 2025-04-11 18:44:43,019 - DEBUG - ==>Verifying data for policy with id: 8fc475c2-8e68-4221-a354-aede35e23a07, fqn: ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064'] 2025-04-11 18:44:43,019 - INFO - VN ctest-vn-97041847 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-11 18:44:43,019 - DEBUG - Verifying the vn in opserver 2025-04-11 18:44:43,019 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847 virtual network link through opserver 10.0.0.254 2025-04-11 18:44:43,019 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-11 18:44:43,030 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847?flat'} 2025-04-11 18:44:43,030 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847 is found in opserver 2025-04-11 18:44:43,042 - DEBUG - Do not have enough data to verify VN in agent 2025-04-11 18:44:43,049 - DEBUG - VRF ids for VN ctest-vn-97041847: {} 2025-04-11 18:44:43,104 - DEBUG - Services list from nova: [, , ] 2025-04-11 18:44:44,157 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3082-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3082-1) 2025-04-11 18:44:45,430 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3082-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3082-1) 2025-04-11 18:44:45,430 - INFO - Waiting for VM ctest-TestBasicPolicy-70496452-96161479 to be up.. 2025-04-11 18:44:45,527 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-11 18:44:50,610 - DEBUG - VM is in ACTIVE state now 2025-04-11 18:44:50,611 - INFO - VM name : ctest-TestBasicPolicy-70496452-96161479 2025-04-11 18:44:50,698 - DEBUG - VM ctest-TestBasicPolicy-70496452-96161479 ID is e206cc3d-8768-4155-97a7-350ed708a438 2025-04-11 18:44:50,718 - DEBUG - VM ctest-TestBasicPolicy-70496452-96161479 launched on Node cn-jenkins-deploy-platform-ansible-os-3082-1 2025-04-11 18:44:50,805 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e206cc3d-8768-4155-97a7-350ed708a438 2025-04-11 18:44:50,814 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/cd00c72d-258c-4b10-bcd6-7cea59374e0c 2025-04-11 18:44:54,043 - 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 1027ms') 2025-04-11 18:44:54,043 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70496452-96161479 failed! 2025-04-11 18:44:54,098 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392 is 159.185.170.129 and allocation pool is NOT set 2025-04-11 18:44:56,172 - 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=0.577 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.577/6.301/12.026/5.724 ms') 2025-04-11 18:44:56,172 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70496452-96161479 passed 2025-04-11 18:44:56,330 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 18:44:56,330 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70496452-96161479, IP 159.185.170.131, Port 22 2025-04-11 18:44:56,509 - DEBUG - VM ctest-TestBasicPolicy-70496452-96161479 is ready for SSH connections 2025-04-11 18:44:56,509 - INFO - Waiting for VM ctest-TestBasicPolicy-70496452-88536334 to be up.. 2025-04-11 18:44:56,601 - DEBUG - VM is in ACTIVE state now 2025-04-11 18:44:56,601 - INFO - VM name : ctest-TestBasicPolicy-70496452-88536334 2025-04-11 18:44:56,712 - DEBUG - VM ctest-TestBasicPolicy-70496452-88536334 ID is f3b18454-0df4-4bc0-b08d-7c44c649183e 2025-04-11 18:44:56,713 - DEBUG - VM ctest-TestBasicPolicy-70496452-88536334 launched on Node cn-jenkins-deploy-platform-ansible-os-3082-1 2025-04-11 18:44:56,799 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/f3b18454-0df4-4bc0-b08d-7c44c649183e 2025-04-11 18:44:56,811 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/c327ce23-46f7-4dca-91b6-043eaffd6db0 2025-04-11 18:44:58,059 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.449 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.449/3.336/6.223/2.887 ms') 2025-04-11 18:44:58,059 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-70496452-88536334 passed 2025-04-11 18:44:58,214 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 18:44:58,214 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70496452-88536334, IP 29.215.22.195, Port 22 2025-04-11 18:44:58,369 - DEBUG - VM ctest-TestBasicPolicy-70496452-88536334 is ready for SSH connections 2025-04-11 18:44:58,370 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 18:44:58,370 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 29.215.22.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-11 18:44:58,370 - DEBUG - ping -s 56 -c 3 -W 1 29.215.22.195 2025-04-11 18:45:02,066 - DEBUG - PING 29.215.22.195 (29.215.22.195): 56 data bytes 64 bytes from 29.215.22.195: seq=0 ttl=63 time=4.182 ms 64 bytes from 29.215.22.195: seq=1 ttl=63 time=1.393 ms 64 bytes from 29.215.22.195: seq=2 ttl=63 time=1.939 ms --- 29.215.22.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.393/2.504/4.182 ms 2025-04-11 18:45:02,067 - INFO - Ping to IP 29.215.22.195 from VM ctest-TestBasicPolicy-70496452-96161479 passed 2025-04-11 18:45:02,262 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8fc475c2-8e68-4221-a354-aede35e23a07", "href": "http://10.0.0.254:8082/network-policy/8fc475c2-8e68-4221-a354-aede35e23a07"}} 2025-04-11 18:45:02,262 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 18:45:02,262 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 29.215.22.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-11 18:45:02,262 - DEBUG - ping -s 56 -c 3 -W 1 29.215.22.195 2025-04-11 18:45:05,505 - DEBUG - PING 29.215.22.195 (29.215.22.195): 56 data bytes 64 bytes from 29.215.22.195: seq=0 ttl=63 time=1.755 ms --- 29.215.22.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.755/1.755/1.755 ms 2025-04-11 18:45:05,505 - WARNING - Ping to IP 29.215.22.195 from VM ctest-TestBasicPolicy-70496452-96161479 failed 2025-04-11 18:45:05,505 - INFO - Deleting VM ctest-TestBasicPolicy-70496452-88536334 2025-04-11 18:45:05,597 - INFO - Deleting VM ctest-TestBasicPolicy-70496452-96161479 2025-04-11 18:45:06,031 - INFO - Deleted policy ctest-policy-allow-all-53915064 2025-04-11 18:45:06,031 - INFO - Deleting VN ctest-vn-97041847 2025-04-11 18:45:06,075 - DEBUG - VN 9cc02731-59b3-404c-8384-c15eff2b4688 still in use: Unable to complete operation on network 9cc02731-59b3-404c-8384-c15eff2b4688. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-288eeb0e-327a-46d5-9b11-6600f2ea60be'] 2025-04-11 18:45:06,075 - WARNING - Deleting VN ctest-vn-97041847 failed..Will retry 2025-04-11 18:45:08,197 - DEBUG - Response for deleting network () 2025-04-11 18:45:08,197 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee 2025-04-11 18:45:08,208 - DEBUG - Response Code: 404 2025-04-11 18:45:08,209 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 18:45:08,215 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a 2025-04-11 18:45:08,273 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6 2025-04-11 18:45:08,349 - INFO - Validated that VN ctest-vn-97041847 is not found in API Server 2025-04-11 18:45:08,363 - DEBUG - VN ctest-vn-97041847 is not present in Agent 10.0.0.254 2025-04-11 18:45:08,363 - INFO - Validated that VN ctest-vn-97041847 is not in any agent 2025-04-11 18:45:08,380 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97041847 info 2025-04-11 18:45:08,380 - INFO - Deleting VN ctest-vn-96462392 2025-04-11 18:45:08,496 - DEBUG - Response for deleting network () 2025-04-11 18:45:08,496 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c 2025-04-11 18:45:08,507 - DEBUG - Response Code: 404 2025-04-11 18:45:08,507 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-11 18:45:08,514 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a 2025-04-11 18:45:08,568 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6 2025-04-11 18:45:08,645 - INFO - Validated that VN ctest-vn-96462392 is not found in API Server 2025-04-11 18:45:08,659 - DEBUG - VN ctest-vn-96462392 is not present in Agent 10.0.0.254 2025-04-11 18:45:08,659 - INFO - Validated that VN ctest-vn-96462392 is not in any agent 2025-04-11 18:45:08,676 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96462392 info 2025-04-11 18:45:08,936 - DEBUG - No XMPP flaps were noticed during the test
2025-04-11 18:45:08,936 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-11 18:45:08,936 - INFO - -------------------------------------------------------------------------------- 2025-04-11 18:45:09,630 - INFO - Deleted project: ctest-TestBasicPolicy-70496452, ID : 854f5629-9b9b-4149-8217-049798acb2a6