2025-06-23 16:07:45,205 - INFO - Domain Default found not creating 2025-06-23 16:07:45,373 - INFO - Project ctest-TestBasicPolicy-73414066 not found, creating it 2025-06-23 16:07:45,903 - INFO - Created Project:ctest-TestBasicPolicy-73414066, ID : 60ecf09d-17c8-4ed7-ab28-eee346b43bfd 2025-06-23 16:07:47,606 - INFO - ================================================================================ 2025-06-23 16:07:47,606 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-23 16:07:47,606 - 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-06-23 16:07:47,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-06-23 16:07:47,870 - INFO - Initial checks done. Running the testcase now 2025-06-23 16:07:47,870 - INFO - 2025-06-23 16:07:48,534 - DEBUG - Response for create_network : {'network': {'id': '164db450-8669-4d05-ae9e-aa3d1b6951e5', 'name': 'ctest-vn-35462266', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-35462266'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 16:07:48,696 - DEBUG - Response for create_subnet : {'subnet': {'id': '90309d38-503c-4bc7-a8ed-07dfb80427e2', 'name': '', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'network_id': '164db450-8669-4d05-ae9e-aa3d1b6951e5', 'ip_version': 4, 'cidr': '217.68.116.64/26', 'allocation_pools': [{'start': '217.68.116.66', 'end': '217.68.116.126'}], 'gateway_ip': '217.68.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.68.116.66', 'tags': [], 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd'}} 2025-06-23 16:07:48,721 - INFO - Created VN ctest-vn-35462266 2025-06-23 16:07:48,779 - DEBUG - VN ctest-vn-35462266 UUID is 164db450-8669-4d05-ae9e-aa3d1b6951e5 2025-06-23 16:07:49,141 - DEBUG - Response for create_network : {'network': {'id': 'f483dd1a-0024-4950-8f68-9f60bda662bd', 'name': 'ctest-vn-10833803', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-10833803'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 16:07:49,373 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df2e617b-9cdc-4ed8-9419-9d2cbd15d34d', 'name': '', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'network_id': 'f483dd1a-0024-4950-8f68-9f60bda662bd', 'ip_version': 4, 'cidr': '68.96.215.64/26', 'allocation_pools': [{'start': '68.96.215.66', 'end': '68.96.215.126'}], 'gateway_ip': '68.96.215.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.96.215.66', 'tags': [], 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd'}} 2025-06-23 16:07:49,400 - INFO - Created VN ctest-vn-10833803 2025-06-23 16:07:49,459 - DEBUG - VN ctest-vn-10833803 UUID is f483dd1a-0024-4950-8f68-9f60bda662bd 2025-06-23 16:07:49,594 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266, 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-73414066:ctest-vn-10833803, 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-06-23 16:07:49,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '164db450-8669-4d05-ae9e-aa3d1b6951e5', 'name': 'ctest-vn-35462266', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90309d38-503c-4bc7-a8ed-07dfb80427e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-35462266'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309']], 'subnet_ipam': [{'subnet_cidr': '217.68.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 16:07:50,233 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f483dd1a-0024-4950-8f68-9f60bda662bd', 'name': 'ctest-vn-10833803', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df2e617b-9cdc-4ed8-9419-9d2cbd15d34d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-10833803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309']], 'subnet_ipam': [{'subnet_cidr': '68.96.215.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 16:07:50,379 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-23 16:07:50,718 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-23 16:07:50,751 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2 2025-06-23 16:07:50,768 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd 2025-06-23 16:07:50,846 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5 2025-06-23 16:07:50,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5 2025-06-23 16:07:50,872 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88 2025-06-23 16:07:50,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88 2025-06-23 16:07:50,890 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1752ef33-dc78-4aac-93ec-e330a4fc5068 2025-06-23 16:07:50,898 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 16:07:50,898 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5 2025-06-23 16:07:50,912 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88 2025-06-23 16:07:50,932 - INFO - Verified VN network id 7 for VN 164db450-8669-4d05-ae9e-aa3d1b6951e5 2025-06-23 16:07:50,932 - INFO - Verifications in API Server for VN ctest-vn-35462266 passed 2025-06-23 16:07:50,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5 2025-06-23 16:07:50,943 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88 2025-06-23 16:07:50,952 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88 2025-06-23 16:07:50,961 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1752ef33-dc78-4aac-93ec-e330a4fc5068 2025-06-23 16:07:50,977 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73414066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1607138899986566405', 'uuid-lslong': '12582681588349358565'}, 'enable': 'true', 'created': '2025-06-23T16:07:48', 'last-modified': '2025-06-23T16:07:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.080963'} 2025-06-23 16:07:50,985 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 16:07:50,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35462266 passed 2025-06-23 16:07:50,985 - DEBUG - ====Verifying policy data for ctest-vn-35462266 in API_Server ====== 2025-06-23 16:07:50,986 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-23 16:07:50,993 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2 2025-06-23 16:07:51,007 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd 2025-06-23 16:07:51,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5 2025-06-23 16:07:51,106 - DEBUG - ==>Verifying data for policy with id: 3c98c20f-2056-4c9d-bd2e-c26b6bc5e997, fqn: ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309'] 2025-06-23 16:07:51,106 - INFO - VN ctest-vn-35462266 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 16:07:51,106 - DEBUG - Verifying the vn in opserver 2025-06-23 16:07:51,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266 virtual network link through opserver 10.0.0.38 2025-06-23 16:07:51,107 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-23 16:07:51,450 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-23 16:07:51,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266?flat'} 2025-06-23 16:07:51,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266 is found in opserver 2025-06-23 16:07:51,542 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 16:07:51,559 - DEBUG - VRF ids for VN ctest-vn-35462266: {} 2025-06-23 16:07:51,559 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-23 16:07:51,572 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2 2025-06-23 16:07:51,591 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd 2025-06-23 16:07:51,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd 2025-06-23 16:07:51,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd 2025-06-23 16:07:51,694 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3 2025-06-23 16:07:51,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3 2025-06-23 16:07:51,713 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8925d134-1966-46c4-acd0-6ddfb911b11c 2025-06-23 16:07:51,722 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 16:07:51,722 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd 2025-06-23 16:07:51,735 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3 2025-06-23 16:07:51,757 - INFO - Verified VN network id 8 for VN f483dd1a-0024-4950-8f68-9f60bda662bd 2025-06-23 16:07:51,757 - INFO - Verifications in API Server for VN ctest-vn-10833803 passed 2025-06-23 16:07:51,757 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd 2025-06-23 16:07:51,769 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3 2025-06-23 16:07:51,778 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3 2025-06-23 16:07:51,786 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8925d134-1966-46c4-acd0-6ddfb911b11c 2025-06-23 16:07:51,799 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73414066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17619169270944778576', 'uuid-lslong': '10333684582849077949'}, 'enable': 'true', 'created': '2025-06-23T16:07:49', 'last-modified': '2025-06-23T16:07:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.642104'} 2025-06-23 16:07:51,807 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 16:07:51,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10833803 passed 2025-06-23 16:07:51,807 - DEBUG - ====Verifying policy data for ctest-vn-10833803 in API_Server ====== 2025-06-23 16:07:51,807 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-23 16:07:51,813 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2 2025-06-23 16:07:51,826 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd 2025-06-23 16:07:51,903 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd 2025-06-23 16:07:51,914 - DEBUG - ==>Verifying data for policy with id: 3c98c20f-2056-4c9d-bd2e-c26b6bc5e997, fqn: ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309'] 2025-06-23 16:07:51,914 - INFO - VN ctest-vn-10833803 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 16:07:51,914 - DEBUG - Verifying the vn in opserver 2025-06-23 16:07:51,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803 virtual network link through opserver 10.0.0.38 2025-06-23 16:07:51,915 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-23 16:07:51,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803?flat'} 2025-06-23 16:07:51,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803 is found in opserver 2025-06-23 16:07:51,942 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 16:07:51,950 - DEBUG - VRF ids for VN ctest-vn-10833803: {} 2025-06-23 16:07:52,014 - DEBUG - Services list from nova: [, , ] 2025-06-23 16:07:53,225 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3522-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3522-1) 2025-06-23 16:07:54,686 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3522-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3522-1) 2025-06-23 16:07:54,687 - INFO - Waiting for VM ctest-TestBasicPolicy-73414066-05327675 to be up.. 2025-06-23 16:07:54,783 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-23 16:07:59,903 - DEBUG - VM is in ACTIVE state now 2025-06-23 16:07:59,903 - INFO - VM name : ctest-TestBasicPolicy-73414066-05327675 2025-06-23 16:08:00,015 - DEBUG - VM ctest-TestBasicPolicy-73414066-05327675 ID is 2f81dca8-d6f1-4b58-8405-be08ec6474c0 2025-06-23 16:08:00,054 - DEBUG - VM ctest-TestBasicPolicy-73414066-05327675 launched on Node cn-jenkins-deploy-platform-ansible-os-3522-1 2025-06-23 16:08:00,191 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/2f81dca8-d6f1-4b58-8405-be08ec6474c0 2025-06-23 16:08:00,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/a9adeea8-8e2b-4b5a-a8eb-87e8d9335e24 2025-06-23 16:08:03,526 - 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 1014ms') 2025-06-23 16:08:03,527 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73414066-05327675 failed! 2025-06-23 16:08:03,587 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266 is 217.68.116.65 and allocation pool is NOT set 2025-06-23 16:08:05,656 - 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=11.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.715 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.715/5.984/11.253/5.269 ms') 2025-06-23 16:08:05,656 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73414066-05327675 passed 2025-06-23 16:08:05,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 16:08:05,811 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73414066-05327675, IP 217.68.116.67, Port 22 2025-06-23 16:08:05,985 - DEBUG - VM ctest-TestBasicPolicy-73414066-05327675 is ready for SSH connections 2025-06-23 16:08:05,985 - INFO - Waiting for VM ctest-TestBasicPolicy-73414066-83409910 to be up.. 2025-06-23 16:08:06,082 - DEBUG - VM is in ACTIVE state now 2025-06-23 16:08:06,082 - INFO - VM name : ctest-TestBasicPolicy-73414066-83409910 2025-06-23 16:08:06,171 - DEBUG - VM ctest-TestBasicPolicy-73414066-83409910 ID is 3ea087ab-975b-4395-ae10-79517d6c4e43 2025-06-23 16:08:06,171 - DEBUG - VM ctest-TestBasicPolicy-73414066-83409910 launched on Node cn-jenkins-deploy-platform-ansible-os-3522-1 2025-06-23 16:08:06,268 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/3ea087ab-975b-4395-ae10-79517d6c4e43 2025-06-23 16:08:06,278 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/ac8deb88-addd-42d7-bcf0-bda6a84f80fa 2025-06-23 16:08:07,546 - 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.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.40 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 = 3.399/3.801/4.203/0.402 ms') 2025-06-23 16:08:07,546 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73414066-83409910 passed 2025-06-23 16:08:07,703 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 16:08:07,703 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73414066-83409910, IP 68.96.215.67, Port 22 2025-06-23 16:08:07,769 - 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-06-23 16:08:07,862 - DEBUG - VM ctest-TestBasicPolicy-73414066-83409910 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-23 16:08:12,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 16:08:12,863 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73414066-83409910, IP 68.96.215.67, Port 22 2025-06-23 16:08:13,029 - DEBUG - VM ctest-TestBasicPolicy-73414066-83409910 is ready for SSH connections 2025-06-23 16:08:13,029 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 16:08:13,030 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.96.215.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-23 16:08:13,030 - DEBUG - ping -s 56 -c 3 -W 1 68.96.215.67 2025-06-23 16:08:17,194 - DEBUG - PING 68.96.215.67 (68.96.215.67): 56 data bytes 64 bytes from 68.96.215.67: seq=0 ttl=63 time=4.799 ms 64 bytes from 68.96.215.67: seq=1 ttl=63 time=0.991 ms 64 bytes from 68.96.215.67: seq=2 ttl=63 time=1.152 ms --- 68.96.215.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.991/2.314/4.799 ms 2025-06-23 16:08:17,194 - INFO - Ping to IP 68.96.215.67 from VM ctest-TestBasicPolicy-73414066-05327675 passed 2025-06-23 16:08:17,383 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3c98c20f-2056-4c9d-bd2e-c26b6bc5e997", "href": "http://10.0.0.38:8082/network-policy/3c98c20f-2056-4c9d-bd2e-c26b6bc5e997"}} 2025-06-23 16:08:17,383 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 16:08:17,383 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 68.96.215.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-23 16:08:17,383 - DEBUG - ping -s 56 -c 3 -W 1 68.96.215.67 2025-06-23 16:08:20,602 - DEBUG - PING 68.96.215.67 (68.96.215.67): 56 data bytes --- 68.96.215.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-23 16:08:20,602 - WARNING - Ping to IP 68.96.215.67 from VM ctest-TestBasicPolicy-73414066-05327675 failed 2025-06-23 16:08:20,602 - INFO - Deleting VM ctest-TestBasicPolicy-73414066-83409910 2025-06-23 16:08:20,692 - INFO - Deleting VM ctest-TestBasicPolicy-73414066-05327675 2025-06-23 16:08:21,154 - INFO - Deleted policy ctest-policy-allow-all-62603309 2025-06-23 16:08:21,155 - INFO - Deleting VN ctest-vn-10833803 2025-06-23 16:08:21,198 - DEBUG - VN f483dd1a-0024-4950-8f68-9f60bda662bd still in use: Unable to complete operation on network f483dd1a-0024-4950-8f68-9f60bda662bd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-44a7a5f1-5666-441a-98ac-169e647587e4'] 2025-06-23 16:08:21,199 - WARNING - Deleting VN ctest-vn-10833803 failed..Will retry 2025-06-23 16:08:23,363 - DEBUG - Response for deleting network () 2025-06-23 16:08:23,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3 2025-06-23 16:08:23,370 - DEBUG - Response Code: 404 2025-06-23 16:08:23,371 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-23 16:08:23,377 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2 2025-06-23 16:08:23,433 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd 2025-06-23 16:08:23,525 - INFO - Validated that VN ctest-vn-10833803 is not found in API Server 2025-06-23 16:08:23,540 - DEBUG - VN ctest-vn-10833803 is not present in Agent 10.0.0.38 2025-06-23 16:08:23,540 - INFO - Validated that VN ctest-vn-10833803 is not in any agent 2025-06-23 16:08:23,565 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10833803 info 2025-06-23 16:08:23,565 - INFO - Deleting VN ctest-vn-35462266 2025-06-23 16:08:23,693 - DEBUG - Response for deleting network () 2025-06-23 16:08:23,694 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88 2025-06-23 16:08:23,707 - DEBUG - Response Code: 404 2025-06-23 16:08:23,707 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-23 16:08:23,714 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2 2025-06-23 16:08:23,770 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd 2025-06-23 16:08:23,866 - INFO - Validated that VN ctest-vn-35462266 is not found in API Server 2025-06-23 16:08:23,885 - DEBUG - VN ctest-vn-35462266 is not present in Agent 10.0.0.38 2025-06-23 16:08:23,885 - INFO - Validated that VN ctest-vn-35462266 is not in any agent 2025-06-23 16:08:23,908 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35462266 info 2025-06-23 16:08:24,163 - DEBUG - No XMPP flaps were noticed during the test
2025-06-23 16:08:24,163 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-06-23 16:08:24,163 - INFO - -------------------------------------------------------------------------------- 2025-06-23 16:08:24,955 - INFO - Deleted project: ctest-TestBasicPolicy-73414066, ID : 60ecf09d-17c8-4ed7-ab28-eee346b43bfd