2025-04-15 06:08:24,452 - INFO - Domain Default found not creating 2025-04-15 06:08:24,641 - INFO - Project ctest-TestBasicPolicy-55970823 not found, creating it 2025-04-15 06:08:25,091 - INFO - Created Project:ctest-TestBasicPolicy-55970823, ID : bf74ad04-c172-4f06-9546-4cbf2cc9a4a2 2025-04-15 06:08:26,688 - INFO - ================================================================================ 2025-04-15 06:08:26,688 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-15 06:08:26,688 - 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-15 06:08:26,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-04-15 06:08:26,949 - INFO - Initial checks done. Running the testcase now 2025-04-15 06:08:26,949 - INFO - 2025-04-15 06:08:27,545 - DEBUG - Response for create_network : {'network': {'id': '4a253321-7cf0-4244-b84c-974059443b9a', 'name': 'ctest-vn-05778729', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-05778729'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 06:08:27,701 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd69652fa-8070-4b92-9e52-105ea61f3bab', 'name': '', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'network_id': '4a253321-7cf0-4244-b84c-974059443b9a', 'ip_version': 4, 'cidr': '40.22.83.128/26', 'allocation_pools': [{'start': '40.22.83.130', 'end': '40.22.83.190'}], 'gateway_ip': '40.22.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.22.83.130', 'tags': [], 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2'}} 2025-04-15 06:08:27,726 - INFO - Created VN ctest-vn-05778729 2025-04-15 06:08:27,785 - DEBUG - VN ctest-vn-05778729 UUID is 4a253321-7cf0-4244-b84c-974059443b9a 2025-04-15 06:08:28,100 - DEBUG - Response for create_network : {'network': {'id': '8ff72ece-9964-4259-a9bb-b55e98adb764', 'name': 'ctest-vn-11679088', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-11679088'], 'port_security_enabled': True, 'description': ''}} 2025-04-15 06:08:28,335 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ce55fd1-498e-441e-8a0e-d9d725926967', 'name': '', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'network_id': '8ff72ece-9964-4259-a9bb-b55e98adb764', 'ip_version': 4, 'cidr': '62.102.16.192/26', 'allocation_pools': [{'start': '62.102.16.194', 'end': '62.102.16.254'}], 'gateway_ip': '62.102.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.102.16.194', 'tags': [], 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2'}} 2025-04-15 06:08:28,355 - INFO - Created VN ctest-vn-11679088 2025-04-15 06:08:28,408 - DEBUG - VN ctest-vn-11679088 UUID is 8ff72ece-9964-4259-a9bb-b55e98adb764 2025-04-15 06:08:28,525 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729, 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-55970823:ctest-vn-11679088, 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-15 06:08:28,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a253321-7cf0-4244-b84c-974059443b9a', 'name': 'ctest-vn-05778729', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d69652fa-8070-4b92-9e52-105ea61f3bab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-05778729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501']], 'subnet_ipam': [{'subnet_cidr': '40.22.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 06:08:29,082 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ff72ece-9964-4259-a9bb-b55e98adb764', 'name': 'ctest-vn-11679088', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ce55fd1-498e-441e-8a0e-d9d725926967'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-11679088'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501']], 'subnet_ipam': [{'subnet_cidr': '62.102.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-15 06:08:29,248 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 06:08:29,558 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 06:08:29,588 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95 2025-04-15 06:08:29,604 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2 2025-04-15 06:08:29,679 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a 2025-04-15 06:08:29,691 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a 2025-04-15 06:08:29,700 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d 2025-04-15 06:08:29,709 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d 2025-04-15 06:08:29,717 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/5f6d66dc-7f3f-4af5-b2c7-615a2ebc0928 2025-04-15 06:08:29,726 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 06:08:29,726 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a 2025-04-15 06:08:29,735 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d 2025-04-15 06:08:29,753 - INFO - Verified VN network id 8 for VN 4a253321-7cf0-4244-b84c-974059443b9a 2025-04-15 06:08:29,753 - INFO - Verifications in API Server for VN ctest-vn-05778729 passed 2025-04-15 06:08:29,753 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a 2025-04-15 06:08:29,764 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d 2025-04-15 06:08:29,772 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d 2025-04-15 06:08:29,781 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/5f6d66dc-7f3f-4af5-b2c7-615a2ebc0928 2025-04-15 06:08:29,796 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55970823', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5342732751868019268', 'uuid-lslong': '13280155703840095130'}, 'enable': 'true', 'created': '2025-04-15T06:08:27', 'last-modified': '2025-04-15T06:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978917'} 2025-04-15 06:08:29,804 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-15 06:08:29,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05778729 passed 2025-04-15 06:08:29,805 - DEBUG - ====Verifying policy data for ctest-vn-05778729 in API_Server ====== 2025-04-15 06:08:29,805 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 06:08:29,811 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95 2025-04-15 06:08:29,826 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2 2025-04-15 06:08:29,898 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a 2025-04-15 06:08:29,908 - DEBUG - ==>Verifying data for policy with id: f3cb23d0-1c10-4fcb-a479-86accc494088, fqn: ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501'] 2025-04-15 06:08:29,909 - INFO - VN ctest-vn-05778729 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 06:08:29,909 - DEBUG - Verifying the vn in opserver 2025-04-15 06:08:29,909 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729 virtual network link through opserver 10.0.0.65 2025-04-15 06:08:29,909 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 06:08:30,209 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 06:08:30,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729?flat'} 2025-04-15 06:08:30,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729 is found in opserver 2025-04-15 06:08:30,299 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 06:08:30,305 - DEBUG - VRF ids for VN ctest-vn-05778729: {} 2025-04-15 06:08:30,305 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 06:08:30,313 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95 2025-04-15 06:08:30,326 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2 2025-04-15 06:08:30,401 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764 2025-04-15 06:08:30,413 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764 2025-04-15 06:08:30,424 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9 2025-04-15 06:08:30,432 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9 2025-04-15 06:08:30,440 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fb204624-ddf8-42f8-bd21-ececc050ad00 2025-04-15 06:08:30,448 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 06:08:30,448 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764 2025-04-15 06:08:30,458 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9 2025-04-15 06:08:30,474 - INFO - Verified VN network id 9 for VN 8ff72ece-9964-4259-a9bb-b55e98adb764 2025-04-15 06:08:30,475 - INFO - Verifications in API Server for VN ctest-vn-11679088 passed 2025-04-15 06:08:30,475 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764 2025-04-15 06:08:30,487 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9 2025-04-15 06:08:30,497 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9 2025-04-15 06:08:30,507 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fb204624-ddf8-42f8-bd21-ececc050ad00 2025-04-15 06:08:30,522 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55970823', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10373811731542852185', 'uuid-lslong': '12230568630947788644'}, 'enable': 'true', 'created': '2025-04-15T06:08:28', 'last-modified': '2025-04-15T06:08:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466939'} 2025-04-15 06:08:30,532 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-15 06:08:30,532 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11679088 passed 2025-04-15 06:08:30,532 - DEBUG - ====Verifying policy data for ctest-vn-11679088 in API_Server ====== 2025-04-15 06:08:30,532 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 06:08:30,539 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95 2025-04-15 06:08:30,553 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2 2025-04-15 06:08:30,628 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764 2025-04-15 06:08:30,638 - DEBUG - ==>Verifying data for policy with id: f3cb23d0-1c10-4fcb-a479-86accc494088, fqn: ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501'] 2025-04-15 06:08:30,638 - INFO - VN ctest-vn-11679088 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-15 06:08:30,638 - DEBUG - Verifying the vn in opserver 2025-04-15 06:08:30,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088 virtual network link through opserver 10.0.0.65 2025-04-15 06:08:30,638 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-15 06:08:30,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088?flat'} 2025-04-15 06:08:30,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088 is found in opserver 2025-04-15 06:08:30,663 - DEBUG - Do not have enough data to verify VN in agent 2025-04-15 06:08:30,669 - DEBUG - VRF ids for VN ctest-vn-11679088: {} 2025-04-15 06:08:30,731 - DEBUG - Services list from nova: [, , ] 2025-04-15 06:08:31,928 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3114-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3114-1) 2025-04-15 06:08:33,155 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3114-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3114-1) 2025-04-15 06:08:33,155 - INFO - Waiting for VM ctest-TestBasicPolicy-55970823-14512602 to be up.. 2025-04-15 06:08:33,243 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-15 06:08:38,354 - DEBUG - VM is in ACTIVE state now 2025-04-15 06:08:38,354 - INFO - VM name : ctest-TestBasicPolicy-55970823-14512602 2025-04-15 06:08:38,459 - DEBUG - VM ctest-TestBasicPolicy-55970823-14512602 ID is 9ec683f4-3a02-4e2c-adb7-63e8bb5ac533 2025-04-15 06:08:38,484 - DEBUG - VM ctest-TestBasicPolicy-55970823-14512602 launched on Node cn-jenkins-deploy-platform-ansible-os-3114-1 2025-04-15 06:08:38,587 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/9ec683f4-3a02-4e2c-adb7-63e8bb5ac533 2025-04-15 06:08:38,608 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/0ba8ca40-b261-457f-ab71-55b785d6e6a1 2025-04-15 06:08:41,844 - 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 1022ms') 2025-04-15 06:08:41,844 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-55970823-14512602 failed! 2025-04-15 06:08:41,900 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729 is 40.22.83.129 and allocation pool is NOT set 2025-04-15 06:08:43,961 - 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=8.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.491 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.491/4.531/8.572/4.040 ms') 2025-04-15 06:08:43,961 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-55970823-14512602 passed 2025-04-15 06:08:44,112 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 06:08:44,112 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55970823-14512602, IP 40.22.83.131, Port 22 2025-04-15 06:08:44,273 - DEBUG - VM ctest-TestBasicPolicy-55970823-14512602 is ready for SSH connections 2025-04-15 06:08:44,273 - INFO - Waiting for VM ctest-TestBasicPolicy-55970823-03770819 to be up.. 2025-04-15 06:08:44,374 - DEBUG - VM is in ACTIVE state now 2025-04-15 06:08:44,374 - INFO - VM name : ctest-TestBasicPolicy-55970823-03770819 2025-04-15 06:08:44,465 - DEBUG - VM ctest-TestBasicPolicy-55970823-03770819 ID is e66c70c2-8b53-4750-b4d0-f9c7303d1bf8 2025-04-15 06:08:44,465 - DEBUG - VM ctest-TestBasicPolicy-55970823-03770819 launched on Node cn-jenkins-deploy-platform-ansible-os-3114-1 2025-04-15 06:08:44,552 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/e66c70c2-8b53-4750-b4d0-f9c7303d1bf8 2025-04-15 06:08:44,564 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/bef53c3c-631a-43df-9649-ccd27ca84217 2025-04-15 06:08:45,810 - 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.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.17 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.168/2.643/4.118/1.475 ms') 2025-04-15 06:08:45,810 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-55970823-03770819 passed 2025-04-15 06:08:45,968 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 06:08:45,968 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55970823-03770819, IP 62.102.16.195, Port 22 2025-04-15 06:08:46,034 - 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-04-15 06:08:46,126 - DEBUG - VM ctest-TestBasicPolicy-55970823-03770819 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-15 06:08:51,127 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 06:08:51,127 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55970823-03770819, IP 62.102.16.195, Port 22 2025-04-15 06:08:51,294 - DEBUG - VM ctest-TestBasicPolicy-55970823-03770819 is ready for SSH connections 2025-04-15 06:08:51,295 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 06:08:51,295 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.102.16.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-15 06:08:51,295 - DEBUG - ping -s 56 -c 3 -W 1 62.102.16.195 2025-04-15 06:08:55,360 - DEBUG - PING 62.102.16.195 (62.102.16.195): 56 data bytes 64 bytes from 62.102.16.195: seq=0 ttl=63 time=4.838 ms 64 bytes from 62.102.16.195: seq=1 ttl=63 time=1.129 ms 64 bytes from 62.102.16.195: seq=2 ttl=63 time=1.032 ms --- 62.102.16.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.032/2.333/4.838 ms 2025-04-15 06:08:55,361 - INFO - Ping to IP 62.102.16.195 from VM ctest-TestBasicPolicy-55970823-14512602 passed 2025-04-15 06:08:55,548 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f3cb23d0-1c10-4fcb-a479-86accc494088", "href": "http://10.0.0.65:8082/network-policy/f3cb23d0-1c10-4fcb-a479-86accc494088"}} 2025-04-15 06:08:55,548 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-15 06:08:55,548 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.102.16.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-15 06:08:55,548 - DEBUG - ping -s 56 -c 3 -W 1 62.102.16.195 2025-04-15 06:08:58,773 - DEBUG - PING 62.102.16.195 (62.102.16.195): 56 data bytes 64 bytes from 62.102.16.195: seq=0 ttl=63 time=2.096 ms --- 62.102.16.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.096/2.096/2.096 ms 2025-04-15 06:08:58,773 - WARNING - Ping to IP 62.102.16.195 from VM ctest-TestBasicPolicy-55970823-14512602 failed 2025-04-15 06:08:58,773 - INFO - Deleting VM ctest-TestBasicPolicy-55970823-03770819 2025-04-15 06:08:58,860 - INFO - Deleting VM ctest-TestBasicPolicy-55970823-14512602 2025-04-15 06:08:59,287 - INFO - Deleted policy ctest-policy-allow-all-52718501 2025-04-15 06:08:59,287 - INFO - Deleting VN ctest-vn-11679088 2025-04-15 06:08:59,323 - DEBUG - VN 8ff72ece-9964-4259-a9bb-b55e98adb764 still in use: Unable to complete operation on network 8ff72ece-9964-4259-a9bb-b55e98adb764. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d0f3f4be-d882-418b-b4ce-70aa961741b3'] 2025-04-15 06:08:59,323 - WARNING - Deleting VN ctest-vn-11679088 failed..Will retry 2025-04-15 06:09:01,441 - DEBUG - Response for deleting network () 2025-04-15 06:09:01,441 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9 2025-04-15 06:09:01,447 - DEBUG - Response Code: 404 2025-04-15 06:09:01,448 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 06:09:01,456 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95 2025-04-15 06:09:01,516 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2 2025-04-15 06:09:01,590 - INFO - Validated that VN ctest-vn-11679088 is not found in API Server 2025-04-15 06:09:01,603 - DEBUG - VN ctest-vn-11679088 is not present in Agent 10.0.0.65 2025-04-15 06:09:01,603 - INFO - Validated that VN ctest-vn-11679088 is not in any agent 2025-04-15 06:09:01,626 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11679088 info 2025-04-15 06:09:01,626 - INFO - Deleting VN ctest-vn-05778729 2025-04-15 06:09:01,753 - DEBUG - Response for deleting network () 2025-04-15 06:09:01,754 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d 2025-04-15 06:09:01,763 - DEBUG - Response Code: 404 2025-04-15 06:09:01,763 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-15 06:09:01,777 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95 2025-04-15 06:09:01,839 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2 2025-04-15 06:09:01,917 - INFO - Validated that VN ctest-vn-05778729 is not found in API Server 2025-04-15 06:09:01,929 - DEBUG - VN ctest-vn-05778729 is not present in Agent 10.0.0.65 2025-04-15 06:09:01,929 - INFO - Validated that VN ctest-vn-05778729 is not in any agent 2025-04-15 06:09:01,951 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05778729 info 2025-04-15 06:09:02,215 - DEBUG - No XMPP flaps were noticed during the test
2025-04-15 06:09:02,215 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-04-15 06:09:02,215 - INFO - -------------------------------------------------------------------------------- 2025-04-15 06:09:02,970 - INFO - Deleted project: ctest-TestBasicPolicy-55970823, ID : bf74ad04-c172-4f06-9546-4cbf2cc9a4a2