2025-07-31 15:29:45,192 - INFO - Domain Default found not creating 2025-07-31 15:29:45,368 - INFO - Project ctest-TestBasicPolicy-89472872 not found, creating it 2025-07-31 15:29:45,867 - INFO - Created Project:ctest-TestBasicPolicy-89472872, ID : a1cfc095-0118-4df8-a4ca-d6d8de87c4b3 2025-07-31 15:29:47,382 - INFO - ================================================================================ 2025-07-31 15:29:47,382 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-31 15:29:47,383 - 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-07-31 15:29:47,651 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-07-31 15:29:47,651 - INFO - Initial checks done. Running the testcase now 2025-07-31 15:29:47,651 - INFO - 2025-07-31 15:29:48,215 - DEBUG - Response for create_network : {'network': {'id': 'add75f84-8620-4cec-ad92-105a40bf5c7c', 'name': 'ctest-vn-48677592', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-48677592'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 15:29:48,437 - DEBUG - Response for create_subnet : {'subnet': {'id': '738d6666-43d6-410b-bf51-6ada16141e38', 'name': '', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'network_id': 'add75f84-8620-4cec-ad92-105a40bf5c7c', 'ip_version': 4, 'cidr': '121.149.252.0/26', 'allocation_pools': [{'start': '121.149.252.2', 'end': '121.149.252.62'}], 'gateway_ip': '121.149.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.149.252.2', 'tags': [], 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3'}} 2025-07-31 15:29:48,458 - INFO - Created VN ctest-vn-48677592 2025-07-31 15:29:48,512 - DEBUG - VN ctest-vn-48677592 UUID is add75f84-8620-4cec-ad92-105a40bf5c7c 2025-07-31 15:29:48,836 - DEBUG - Response for create_network : {'network': {'id': 'b76d9353-67e9-47e4-ad3f-7b431200677c', 'name': 'ctest-vn-73101855', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-73101855'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 15:29:49,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '2df8cbba-624b-4b68-b0e9-5957a5a99398', 'name': '', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'network_id': 'b76d9353-67e9-47e4-ad3f-7b431200677c', 'ip_version': 4, 'cidr': '77.59.32.0/26', 'allocation_pools': [{'start': '77.59.32.2', 'end': '77.59.32.62'}], 'gateway_ip': '77.59.32.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.59.32.2', 'tags': [], 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3'}} 2025-07-31 15:29:49,064 - INFO - Created VN ctest-vn-73101855 2025-07-31 15:29:49,116 - DEBUG - VN ctest-vn-73101855 UUID is b76d9353-67e9-47e4-ad3f-7b431200677c 2025-07-31 15:29:49,241 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592, 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-89472872:ctest-vn-73101855, 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-07-31 15:29:49,553 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'add75f84-8620-4cec-ad92-105a40bf5c7c', 'name': 'ctest-vn-48677592', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['738d6666-43d6-410b-bf51-6ada16141e38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-48677592'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216']], 'subnet_ipam': [{'subnet_cidr': '121.149.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 15:29:49,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b76d9353-67e9-47e4-ad3f-7b431200677c', 'name': 'ctest-vn-73101855', 'tenant_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'project_id': 'a1cfc09501184df8a4cad6d8de87c4b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2df8cbba-624b-4b68-b0e9-5957a5a99398'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-vn-73101855'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216']], 'subnet_ipam': [{'subnet_cidr': '77.59.32.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 15:29:49,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 15:29:50,270 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 15:29:50,302 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13 2025-07-31 15:29:50,319 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3 2025-07-31 15:29:50,401 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c 2025-07-31 15:29:50,415 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c 2025-07-31 15:29:50,428 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97 2025-07-31 15:29:50,438 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97 2025-07-31 15:29:50,446 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0d00ef1-c9ad-4910-90cf-58de37099445 2025-07-31 15:29:50,454 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 15:29:50,454 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c 2025-07-31 15:29:50,464 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97 2025-07-31 15:29:50,482 - INFO - Verified VN network id 11 for VN add75f84-8620-4cec-ad92-105a40bf5c7c 2025-07-31 15:29:50,483 - INFO - Verifications in API Server for VN ctest-vn-48677592 passed 2025-07-31 15:29:50,483 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c 2025-07-31 15:29:50,498 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97 2025-07-31 15:29:50,507 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97 2025-07-31 15:29:50,515 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0d00ef1-c9ad-4910-90cf-58de37099445 2025-07-31 15:29:50,530 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89472872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12526585911344909548', 'uuid-lslong': '12507077094980672636'}, 'enable': 'true', 'created': '2025-07-31T15:29:48', 'last-modified': '2025-07-31T15:29:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001489'} 2025-07-31 15:29:50,539 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 15:29:50,539 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48677592 passed 2025-07-31 15:29:50,539 - DEBUG - ====Verifying policy data for ctest-vn-48677592 in API_Server ====== 2025-07-31 15:29:50,539 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 15:29:50,546 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13 2025-07-31 15:29:50,561 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3 2025-07-31 15:29:50,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/add75f84-8620-4cec-ad92-105a40bf5c7c 2025-07-31 15:29:50,651 - DEBUG - ==>Verifying data for policy with id: bf1ddb0d-d00e-49f3-8f41-21dcebacc5dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216'] 2025-07-31 15:29:50,651 - INFO - VN ctest-vn-48677592 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 15:29:50,651 - DEBUG - Verifying the vn in opserver 2025-07-31 15:29:50,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592 virtual network link through opserver 10.0.0.38 2025-07-31 15:29:50,652 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 15:29:50,960 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 15:29:51,024 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592?flat'} 2025-07-31 15:29:51,025 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592 is found in opserver 2025-07-31 15:29:51,041 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 15:29:51,048 - DEBUG - VRF ids for VN ctest-vn-48677592: {} 2025-07-31 15:29:51,048 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 15:29:51,055 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13 2025-07-31 15:29:51,067 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3 2025-07-31 15:29:51,144 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c 2025-07-31 15:29:51,158 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c 2025-07-31 15:29:51,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece 2025-07-31 15:29:51,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece 2025-07-31 15:29:51,186 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4eab3b0e-b352-45ed-b4bf-065f842ef999 2025-07-31 15:29:51,194 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 15:29:51,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c 2025-07-31 15:29:51,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece 2025-07-31 15:29:51,227 - INFO - Verified VN network id 12 for VN b76d9353-67e9-47e4-ad3f-7b431200677c 2025-07-31 15:29:51,227 - INFO - Verifications in API Server for VN ctest-vn-73101855 passed 2025-07-31 15:29:51,228 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c 2025-07-31 15:29:51,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece 2025-07-31 15:29:51,251 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece 2025-07-31 15:29:51,259 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4eab3b0e-b352-45ed-b4bf-065f842ef999 2025-07-31 15:29:51,274 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89472872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13217382467837183972', 'uuid-lslong': '12483832220089345916'}, 'enable': 'true', 'created': '2025-07-31T15:29:48', 'last-modified': '2025-07-31T15:29:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.502808'} 2025-07-31 15:29:51,281 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 15:29:51,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73101855 passed 2025-07-31 15:29:51,282 - DEBUG - ====Verifying policy data for ctest-vn-73101855 in API_Server ====== 2025-07-31 15:29:51,282 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 15:29:51,288 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13 2025-07-31 15:29:51,302 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3 2025-07-31 15:29:51,380 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b76d9353-67e9-47e4-ad3f-7b431200677c 2025-07-31 15:29:51,391 - DEBUG - ==>Verifying data for policy with id: bf1ddb0d-d00e-49f3-8f41-21dcebacc5dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-89472872', 'ctest-policy-allow-all-62826216'] 2025-07-31 15:29:51,391 - INFO - VN ctest-vn-73101855 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 15:29:51,391 - DEBUG - Verifying the vn in opserver 2025-07-31 15:29:51,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855 virtual network link through opserver 10.0.0.38 2025-07-31 15:29:51,391 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 15:29:51,402 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855?flat'} 2025-07-31 15:29:51,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-73101855 is found in opserver 2025-07-31 15:29:51,414 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 15:29:51,420 - DEBUG - VRF ids for VN ctest-vn-73101855: {} 2025-07-31 15:29:51,497 - DEBUG - Services list from nova: [, , ] 2025-07-31 15:29:52,610 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3738-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3738-1) 2025-07-31 15:29:53,793 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3738-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3738-1) 2025-07-31 15:29:53,794 - INFO - Waiting for VM ctest-TestBasicPolicy-89472872-92102158 to be up.. 2025-07-31 15:29:53,892 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-31 15:29:58,978 - DEBUG - VM is in ACTIVE state now 2025-07-31 15:29:58,978 - INFO - VM name : ctest-TestBasicPolicy-89472872-92102158 2025-07-31 15:29:59,064 - DEBUG - VM ctest-TestBasicPolicy-89472872-92102158 ID is f5a6ce43-8f5a-4b89-9c44-7c351e103fbc 2025-07-31 15:29:59,091 - DEBUG - VM ctest-TestBasicPolicy-89472872-92102158 launched on Node cn-jenkins-deploy-platform-ansible-os-3738-1 2025-07-31 15:29:59,171 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/f5a6ce43-8f5a-4b89-9c44-7c351e103fbc 2025-07-31 15:29:59,181 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/cf77db4a-c7ef-4352-8353-79f85f8df94e 2025-07-31 15:30:02,454 - 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-07-31 15:30:02,454 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89472872-92102158 failed! 2025-07-31 15:30:02,516 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89472872:ctest-vn-48677592 is 121.149.252.1 and allocation pool is NOT set 2025-07-31 15:30:04,583 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.472 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.472/2.965/5.458/2.493 ms') 2025-07-31 15:30:04,583 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89472872-92102158 passed 2025-07-31 15:30:04,741 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 15:30:04,741 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89472872-92102158, IP 121.149.252.3, Port 22 2025-07-31 15:30:04,896 - DEBUG - VM ctest-TestBasicPolicy-89472872-92102158 is ready for SSH connections 2025-07-31 15:30:04,896 - INFO - Waiting for VM ctest-TestBasicPolicy-89472872-83375614 to be up.. 2025-07-31 15:30:04,980 - DEBUG - VM is in ACTIVE state now 2025-07-31 15:30:04,980 - INFO - VM name : ctest-TestBasicPolicy-89472872-83375614 2025-07-31 15:30:05,070 - DEBUG - VM ctest-TestBasicPolicy-89472872-83375614 ID is c82e3b3d-5450-43e4-babd-7de61c200695 2025-07-31 15:30:05,070 - DEBUG - VM ctest-TestBasicPolicy-89472872-83375614 launched on Node cn-jenkins-deploy-platform-ansible-os-3738-1 2025-07-31 15:30:05,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c82e3b3d-5450-43e4-babd-7de61c200695 2025-07-31 15:30:05,169 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/febcec8d-8aca-4d3c-b326-3a90eccb55e9 2025-07-31 15:30:06,420 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.01 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 = 1.011/2.527/4.043/1.516 ms') 2025-07-31 15:30:06,420 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89472872-83375614 passed 2025-07-31 15:30:06,580 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 15:30:06,580 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89472872-83375614, IP 77.59.32.3, Port 22 2025-07-31 15:30:06,647 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-31 15:30:06,736 - DEBUG - VM ctest-TestBasicPolicy-89472872-83375614 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 15:30:11,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 15:30:11,737 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89472872-83375614, IP 77.59.32.3, Port 22 2025-07-31 15:30:11,892 - DEBUG - VM ctest-TestBasicPolicy-89472872-83375614 is ready for SSH connections 2025-07-31 15:30:11,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 15:30:11,892 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.59.32.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-31 15:30:11,892 - DEBUG - ping -s 56 -c 3 -W 1 77.59.32.3 2025-07-31 15:30:15,940 - DEBUG - PING 77.59.32.3 (77.59.32.3): 56 data bytes 64 bytes from 77.59.32.3: seq=0 ttl=63 time=4.228 ms 64 bytes from 77.59.32.3: seq=1 ttl=63 time=1.058 ms 64 bytes from 77.59.32.3: seq=2 ttl=63 time=0.948 ms --- 77.59.32.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.948/2.078/4.228 ms 2025-07-31 15:30:15,940 - INFO - Ping to IP 77.59.32.3 from VM ctest-TestBasicPolicy-89472872-92102158 passed 2025-07-31 15:30:16,128 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bf1ddb0d-d00e-49f3-8f41-21dcebacc5dd", "href": "http://10.0.0.38:8082/network-policy/bf1ddb0d-d00e-49f3-8f41-21dcebacc5dd"}} 2025-07-31 15:30:16,128 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 15:30:16,129 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.59.32.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-31 15:30:16,129 - DEBUG - ping -s 56 -c 3 -W 1 77.59.32.3 2025-07-31 15:30:19,351 - DEBUG - PING 77.59.32.3 (77.59.32.3): 56 data bytes --- 77.59.32.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-31 15:30:19,351 - WARNING - Ping to IP 77.59.32.3 from VM ctest-TestBasicPolicy-89472872-92102158 failed 2025-07-31 15:30:19,351 - INFO - Deleting VM ctest-TestBasicPolicy-89472872-83375614 2025-07-31 15:30:19,432 - INFO - Deleting VM ctest-TestBasicPolicy-89472872-92102158 2025-07-31 15:30:19,870 - INFO - Deleted policy ctest-policy-allow-all-62826216 2025-07-31 15:30:19,870 - INFO - Deleting VN ctest-vn-73101855 2025-07-31 15:30:19,916 - DEBUG - VN b76d9353-67e9-47e4-ad3f-7b431200677c still in use: Unable to complete operation on network b76d9353-67e9-47e4-ad3f-7b431200677c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d4f1c770-70a5-44b6-a7f6-c93f078c44fd'] 2025-07-31 15:30:19,918 - WARNING - Deleting VN ctest-vn-73101855 failed..Will retry 2025-07-31 15:30:22,037 - DEBUG - Response for deleting network () 2025-07-31 15:30:22,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/33bd35d5-a99d-44eb-b7d5-5985b0f51ece 2025-07-31 15:30:22,044 - DEBUG - Response Code: 404 2025-07-31 15:30:22,044 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 15:30:22,056 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13 2025-07-31 15:30:22,115 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3 2025-07-31 15:30:22,194 - INFO - Validated that VN ctest-vn-73101855 is not found in API Server 2025-07-31 15:30:22,206 - DEBUG - VN ctest-vn-73101855 is not present in Agent 10.0.0.38 2025-07-31 15:30:22,206 - INFO - Validated that VN ctest-vn-73101855 is not in any agent 2025-07-31 15:30:22,226 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73101855 info 2025-07-31 15:30:22,226 - INFO - Deleting VN ctest-vn-48677592 2025-07-31 15:30:22,369 - DEBUG - Response for deleting network () 2025-07-31 15:30:22,369 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47d10a58-ef4a-46dc-a6eb-6528dd40ee97 2025-07-31 15:30:22,375 - DEBUG - Response Code: 404 2025-07-31 15:30:22,376 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 15:30:22,382 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b9b68453-0265-4b34-bd80-4ca945759a13 2025-07-31 15:30:22,439 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1cfc095-0118-4df8-a4ca-d6d8de87c4b3 2025-07-31 15:30:22,519 - INFO - Validated that VN ctest-vn-48677592 is not found in API Server 2025-07-31 15:30:22,536 - DEBUG - VN ctest-vn-48677592 is not present in Agent 10.0.0.38 2025-07-31 15:30:22,536 - INFO - Validated that VN ctest-vn-48677592 is not in any agent 2025-07-31 15:30:22,562 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48677592 info 2025-07-31 15:30:22,819 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 15:30:22,819 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-07-31 15:30:22,819 - INFO - -------------------------------------------------------------------------------- 2025-07-31 15:30:23,536 - INFO - Deleted project: ctest-TestBasicPolicy-89472872, ID : a1cfc095-0118-4df8-a4ca-d6d8de87c4b3