2025-04-08 13:54:43,435 - INFO - Domain Default found not creating 2025-04-08 13:54:43,582 - INFO - Project ctest-TestBasicPolicy-07806979 not found, creating it 2025-04-08 13:54:44,128 - INFO - Created Project:ctest-TestBasicPolicy-07806979, ID : bcaf7d3f-7b88-4510-9fe8-14dd5101bca1 2025-04-08 13:54:45,611 - INFO - ================================================================================ 2025-04-08 13:54:45,611 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-08 13:54:45,611 - 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-08 13:54:45,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with 2025-04-08 13:54:45,866 - INFO - Initial checks done. Running the testcase now 2025-04-08 13:54:45,866 - INFO - 2025-04-08 13:54:46,465 - DEBUG - Response for create_network : {'network': {'id': '0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2', 'name': 'ctest-vn-53471263', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-53471263'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 13:54:46,672 - DEBUG - Response for create_subnet : {'subnet': {'id': '81853fb1-ef9a-46fb-ac5b-eb7200ff233e', 'name': '', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'network_id': '0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2', 'ip_version': 4, 'cidr': '101.250.66.0/26', 'allocation_pools': [{'start': '101.250.66.2', 'end': '101.250.66.62'}], 'gateway_ip': '101.250.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.250.66.2', 'tags': [], 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1'}} 2025-04-08 13:54:46,691 - INFO - Created VN ctest-vn-53471263 2025-04-08 13:54:46,748 - DEBUG - VN ctest-vn-53471263 UUID is 0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2 2025-04-08 13:54:47,053 - DEBUG - Response for create_network : {'network': {'id': 'e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07', 'name': 'ctest-vn-03337567', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-03337567'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 13:54:47,263 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8b73d68-ce9f-41e0-8a32-e95b2b5b0d26', 'name': '', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'network_id': 'e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07', 'ip_version': 4, 'cidr': '136.198.79.0/26', 'allocation_pools': [{'start': '136.198.79.2', 'end': '136.198.79.62'}], 'gateway_ip': '136.198.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.198.79.2', 'tags': [], 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1'}} 2025-04-08 13:54:47,281 - INFO - Created VN ctest-vn-03337567 2025-04-08 13:54:47,332 - DEBUG - VN ctest-vn-03337567 UUID is e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 2025-04-08 13:54:47,484 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263, 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-07806979:ctest-vn-03337567, 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-08 13:54:47,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2', 'name': 'ctest-vn-53471263', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81853fb1-ef9a-46fb-ac5b-eb7200ff233e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-53471263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284']], 'subnet_ipam': [{'subnet_cidr': '101.250.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 13:54:48,019 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07', 'name': 'ctest-vn-03337567', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8b73d68-ce9f-41e0-8a32-e95b2b5b0d26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-03337567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284']], 'subnet_ipam': [{'subnet_cidr': '136.198.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 13:54:48,196 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-08 13:54:48,490 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-08 13:54:48,518 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad 2025-04-08 13:54:48,532 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1 2025-04-08 13:54:48,608 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2 2025-04-08 13:54:48,631 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2 2025-04-08 13:54:48,641 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2 2025-04-08 13:54:48,649 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2 2025-04-08 13:54:48,657 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/868e17d7-7d0c-4e69-980d-635dd90a7f90 2025-04-08 13:54:48,665 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-08 13:54:48,665 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2 2025-04-08 13:54:48,675 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2 2025-04-08 13:54:48,693 - INFO - Verified VN network id 8 for VN 0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2 2025-04-08 13:54:48,693 - INFO - Verifications in API Server for VN ctest-vn-53471263 passed 2025-04-08 13:54:48,693 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2 2025-04-08 13:54:48,706 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2 2025-04-08 13:54:48,713 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2 2025-04-08 13:54:48,721 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/868e17d7-7d0c-4e69-980d-635dd90a7f90 2025-04-08 13:54:48,734 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07806979', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '927705307820608231', 'uuid-lslong': '9872724582393737970'}, 'enable': 'true', 'created': '2025-04-08T13:54:46', 'last-modified': '2025-04-08T13:54:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980250'} 2025-04-08 13:54:48,742 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-08 13:54:48,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53471263 passed 2025-04-08 13:54:48,742 - DEBUG - ====Verifying policy data for ctest-vn-53471263 in API_Server ====== 2025-04-08 13:54:48,742 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-08 13:54:48,750 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad 2025-04-08 13:54:48,763 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1 2025-04-08 13:54:48,843 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2 2025-04-08 13:54:48,855 - DEBUG - ==>Verifying data for policy with id: a7c38ef9-03b4-482f-b0d8-093eaa211f51, fqn: ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284'] 2025-04-08 13:54:48,855 - INFO - VN ctest-vn-53471263 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 13:54:48,855 - DEBUG - Verifying the vn in opserver 2025-04-08 13:54:48,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263 virtual network link through opserver 10.0.0.12 2025-04-08 13:54:48,856 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-04-08 13:54:49,158 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-04-08 13:54:49,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263?flat'} 2025-04-08 13:54:49,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263 is found in opserver 2025-04-08 13:54:49,232 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 13:54:49,238 - DEBUG - VRF ids for VN ctest-vn-53471263: {} 2025-04-08 13:54:49,238 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-08 13:54:49,244 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad 2025-04-08 13:54:49,259 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1 2025-04-08 13:54:49,333 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 2025-04-08 13:54:49,346 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 2025-04-08 13:54:49,357 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c 2025-04-08 13:54:49,365 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c 2025-04-08 13:54:49,373 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8645cf02-5628-48a0-b472-549b6d03a4f0 2025-04-08 13:54:49,381 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 13:54:49,381 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 2025-04-08 13:54:49,391 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c 2025-04-08 13:54:49,408 - INFO - Verified VN network id 9 for VN e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 2025-04-08 13:54:49,408 - INFO - Verifications in API Server for VN ctest-vn-03337567 passed 2025-04-08 13:54:49,408 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 2025-04-08 13:54:49,420 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c 2025-04-08 13:54:49,428 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c 2025-04-08 13:54:49,436 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8645cf02-5628-48a0-b472-549b6d03a4f0 2025-04-08 13:54:49,449 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07806979', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16777212243450874610', 'uuid-lslong': '13479030563684412167'}, 'enable': 'true', 'created': '2025-04-08T13:54:47', 'last-modified': '2025-04-08T13:54:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461532'} 2025-04-08 13:54:49,456 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 13:54:49,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03337567 passed 2025-04-08 13:54:49,457 - DEBUG - ====Verifying policy data for ctest-vn-03337567 in API_Server ====== 2025-04-08 13:54:49,457 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-08 13:54:49,464 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad 2025-04-08 13:54:49,477 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1 2025-04-08 13:54:49,554 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 2025-04-08 13:54:49,567 - DEBUG - ==>Verifying data for policy with id: a7c38ef9-03b4-482f-b0d8-093eaa211f51, fqn: ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284'] 2025-04-08 13:54:49,567 - INFO - VN ctest-vn-03337567 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 13:54:49,567 - DEBUG - Verifying the vn in opserver 2025-04-08 13:54:49,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567 virtual network link through opserver 10.0.0.12 2025-04-08 13:54:49,567 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-04-08 13:54:49,578 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567?flat'} 2025-04-08 13:54:49,579 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567 is found in opserver 2025-04-08 13:54:49,590 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 13:54:49,595 - DEBUG - VRF ids for VN ctest-vn-03337567: {} 2025-04-08 13:54:49,662 - DEBUG - Services list from nova: [, , ] 2025-04-08 13:54:50,695 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3052-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3052-1) 2025-04-08 13:54:51,978 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3052-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3052-1) 2025-04-08 13:54:51,978 - INFO - Waiting for VM ctest-TestBasicPolicy-07806979-87975695 to be up.. 2025-04-08 13:54:52,086 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-08 13:54:57,170 - DEBUG - VM is in ACTIVE state now 2025-04-08 13:54:57,171 - INFO - VM name : ctest-TestBasicPolicy-07806979-87975695 2025-04-08 13:54:57,263 - DEBUG - VM ctest-TestBasicPolicy-07806979-87975695 ID is 97965166-3057-4ad2-b6fb-4c734fcf662c 2025-04-08 13:54:57,286 - DEBUG - VM ctest-TestBasicPolicy-07806979-87975695 launched on Node cn-jenkins-deploy-platform-ansible-os-3052-1 2025-04-08 13:54:57,371 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/97965166-3057-4ad2-b6fb-4c734fcf662c 2025-04-08 13:54:57,380 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/c24438e0-0c29-47ad-9cab-5e090d64cd27 2025-04-08 13:55:00,631 - 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-04-08 13:55:00,631 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07806979-87975695 failed! 2025-04-08 13:55:00,700 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263 is 101.250.66.1 and allocation pool is NOT set 2025-04-08 13:55:02,767 - 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=13.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.358 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.358/6.721/13.085/6.363 ms') 2025-04-08 13:55:02,767 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07806979-87975695 passed 2025-04-08 13:55:02,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 13:55:02,924 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07806979-87975695, IP 101.250.66.3, Port 22 2025-04-08 13:55:03,090 - DEBUG - VM ctest-TestBasicPolicy-07806979-87975695 is ready for SSH connections 2025-04-08 13:55:03,090 - INFO - Waiting for VM ctest-TestBasicPolicy-07806979-99658709 to be up.. 2025-04-08 13:55:03,173 - DEBUG - VM is in ACTIVE state now 2025-04-08 13:55:03,173 - INFO - VM name : ctest-TestBasicPolicy-07806979-99658709 2025-04-08 13:55:03,307 - DEBUG - VM ctest-TestBasicPolicy-07806979-99658709 ID is 6bc710a6-c4c9-44f0-97ae-fa5f19e182ed 2025-04-08 13:55:03,307 - DEBUG - VM ctest-TestBasicPolicy-07806979-99658709 launched on Node cn-jenkins-deploy-platform-ansible-os-3052-1 2025-04-08 13:55:03,405 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/6bc710a6-c4c9-44f0-97ae-fa5f19e182ed 2025-04-08 13:55:03,414 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/c3497d03-50a0-486d-8951-a08ff96a48da 2025-04-08 13:55:04,664 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.487 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.487/1.585/2.683/1.098 ms') 2025-04-08 13:55:04,664 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-07806979-99658709 passed 2025-04-08 13:55:04,820 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 13:55:04,820 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07806979-99658709, IP 136.198.79.3, Port 22 2025-04-08 13:55:04,976 - DEBUG - VM ctest-TestBasicPolicy-07806979-99658709 is ready for SSH connections 2025-04-08 13:55:04,976 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 13:55:04,976 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 136.198.79.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-04-08 13:55:04,976 - DEBUG - ping -s 56 -c 3 -W 1 136.198.79.3 2025-04-08 13:55:08,724 - DEBUG - PING 136.198.79.3 (136.198.79.3): 56 data bytes 64 bytes from 136.198.79.3: seq=0 ttl=63 time=3.594 ms 64 bytes from 136.198.79.3: seq=1 ttl=63 time=0.968 ms 64 bytes from 136.198.79.3: seq=2 ttl=63 time=0.824 ms --- 136.198.79.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.824/1.795/3.594 ms 2025-04-08 13:55:08,725 - INFO - Ping to IP 136.198.79.3 from VM ctest-TestBasicPolicy-07806979-87975695 passed 2025-04-08 13:55:08,916 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a7c38ef9-03b4-482f-b0d8-093eaa211f51", "href": "http://10.0.0.12:8082/network-policy/a7c38ef9-03b4-482f-b0d8-093eaa211f51"}} 2025-04-08 13:55:08,916 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 13:55:08,916 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 136.198.79.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-04-08 13:55:08,916 - DEBUG - ping -s 56 -c 3 -W 1 136.198.79.3 2025-04-08 13:55:12,145 - DEBUG - PING 136.198.79.3 (136.198.79.3): 56 data bytes 64 bytes from 136.198.79.3: seq=0 ttl=63 time=2.100 ms --- 136.198.79.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.100/2.100/2.100 ms 2025-04-08 13:55:12,145 - WARNING - Ping to IP 136.198.79.3 from VM ctest-TestBasicPolicy-07806979-87975695 failed 2025-04-08 13:55:12,145 - INFO - Deleting VM ctest-TestBasicPolicy-07806979-99658709 2025-04-08 13:55:12,213 - INFO - Deleting VM ctest-TestBasicPolicy-07806979-87975695 2025-04-08 13:55:12,617 - INFO - Deleted policy ctest-policy-allow-all-48426284 2025-04-08 13:55:12,617 - INFO - Deleting VN ctest-vn-03337567 2025-04-08 13:55:12,660 - DEBUG - VN e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07 still in use: Unable to complete operation on network e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0867dc73-afe9-4e9a-9284-5aaee71a527b'] 2025-04-08 13:55:12,660 - WARNING - Deleting VN ctest-vn-03337567 failed..Will retry 2025-04-08 13:55:14,769 - DEBUG - Response for deleting network () 2025-04-08 13:55:14,769 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c 2025-04-08 13:55:14,778 - DEBUG - Response Code: 404 2025-04-08 13:55:14,778 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-08 13:55:14,783 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad 2025-04-08 13:55:14,839 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1 2025-04-08 13:55:14,909 - INFO - Validated that VN ctest-vn-03337567 is not found in API Server 2025-04-08 13:55:14,921 - DEBUG - VN ctest-vn-03337567 is not present in Agent 10.0.0.12 2025-04-08 13:55:14,921 - INFO - Validated that VN ctest-vn-03337567 is not in any agent 2025-04-08 13:55:14,937 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03337567 info 2025-04-08 13:55:14,938 - INFO - Deleting VN ctest-vn-53471263 2025-04-08 13:55:15,069 - DEBUG - Response for deleting network () 2025-04-08 13:55:15,069 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2 2025-04-08 13:55:15,075 - DEBUG - Response Code: 404 2025-04-08 13:55:15,076 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-08 13:55:15,088 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad 2025-04-08 13:55:15,147 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1 2025-04-08 13:55:15,232 - INFO - Validated that VN ctest-vn-53471263 is not found in API Server 2025-04-08 13:55:15,246 - DEBUG - VN ctest-vn-53471263 is not present in Agent 10.0.0.12 2025-04-08 13:55:15,246 - INFO - Validated that VN ctest-vn-53471263 is not in any agent 2025-04-08 13:55:15,261 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53471263 info 2025-04-08 13:55:15,520 - DEBUG - No XMPP flaps were noticed during the test
2025-04-08 13:55:15,520 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-08 13:55:15,521 - INFO - -------------------------------------------------------------------------------- 2025-04-08 13:55:16,207 - INFO - Deleted project: ctest-TestBasicPolicy-07806979, ID : bcaf7d3f-7b88-4510-9fe8-14dd5101bca1