2025-06-08 05:56:40,332 - INFO - Domain Default found not creating 2025-06-08 05:56:40,475 - INFO - Project ctest-TestBasicPolicy-06692943 not found, creating it 2025-06-08 05:56:40,917 - INFO - Created Project:ctest-TestBasicPolicy-06692943, ID : 5ca5ca70-2bf4-45c8-bf6d-03840031eb4b 2025-06-08 05:56:42,505 - INFO - ================================================================================ 2025-06-08 05:56:42,505 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-08 05:56:42,505 - 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-08 05:56:42,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-06-08 05:56:42,759 - INFO - Initial checks done. Running the testcase now 2025-06-08 05:56:42,759 - INFO - 2025-06-08 05:56:43,339 - DEBUG - Response for create_network : {'network': {'id': '62ef74bc-d5ac-4b20-b652-a663f4eab3b1', 'name': 'ctest-vn-83823237', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-83823237'], 'port_security_enabled': True, 'description': ''}} 2025-06-08 05:56:43,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '22e7c108-29db-4eeb-a0eb-a987c184bfbf', 'name': '', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'network_id': '62ef74bc-d5ac-4b20-b652-a663f4eab3b1', 'ip_version': 4, 'cidr': '185.111.59.128/26', 'allocation_pools': [{'start': '185.111.59.130', 'end': '185.111.59.190'}], 'gateway_ip': '185.111.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.111.59.130', 'tags': [], 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b'}} 2025-06-08 05:56:43,542 - INFO - Created VN ctest-vn-83823237 2025-06-08 05:56:43,596 - DEBUG - VN ctest-vn-83823237 UUID is 62ef74bc-d5ac-4b20-b652-a663f4eab3b1 2025-06-08 05:56:43,894 - DEBUG - Response for create_network : {'network': {'id': '463b662f-c051-4345-be70-1114f5850695', 'name': 'ctest-vn-54289770', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-54289770'], 'port_security_enabled': True, 'description': ''}} 2025-06-08 05:56:44,082 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a447408d-6c14-4a55-ab65-655174531ad3', 'name': '', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'network_id': '463b662f-c051-4345-be70-1114f5850695', 'ip_version': 4, 'cidr': '220.90.74.0/26', 'allocation_pools': [{'start': '220.90.74.2', 'end': '220.90.74.62'}], 'gateway_ip': '220.90.74.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.90.74.2', 'tags': [], 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b'}} 2025-06-08 05:56:44,100 - INFO - Created VN ctest-vn-54289770 2025-06-08 05:56:44,152 - DEBUG - VN ctest-vn-54289770 UUID is 463b662f-c051-4345-be70-1114f5850695 2025-06-08 05:56:44,300 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237, 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-06692943:ctest-vn-54289770, 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-08 05:56:44,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62ef74bc-d5ac-4b20-b652-a663f4eab3b1', 'name': 'ctest-vn-83823237', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22e7c108-29db-4eeb-a0eb-a987c184bfbf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-83823237'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632']], 'subnet_ipam': [{'subnet_cidr': '185.111.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-08 05:56:44,828 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '463b662f-c051-4345-be70-1114f5850695', 'name': 'ctest-vn-54289770', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a447408d-6c14-4a55-ab65-655174531ad3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-54289770'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632']], 'subnet_ipam': [{'subnet_cidr': '220.90.74.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-08 05:56:44,992 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-08 05:56:45,336 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-08 05:56:45,370 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2 2025-06-08 05:56:45,383 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b 2025-06-08 05:56:45,462 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1 2025-06-08 05:56:45,474 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1 2025-06-08 05:56:45,485 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678 2025-06-08 05:56:45,493 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678 2025-06-08 05:56:45,499 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/630ae12c-e998-4e5e-ac05-a91b1214752d 2025-06-08 05:56:45,506 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-08 05:56:45,506 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1 2025-06-08 05:56:45,515 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678 2025-06-08 05:56:45,529 - INFO - Verified VN network id 8 for VN 62ef74bc-d5ac-4b20-b652-a663f4eab3b1 2025-06-08 05:56:45,529 - INFO - Verifications in API Server for VN ctest-vn-83823237 passed 2025-06-08 05:56:45,529 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1 2025-06-08 05:56:45,538 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678 2025-06-08 05:56:45,545 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678 2025-06-08 05:56:45,552 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/630ae12c-e998-4e5e-ac05-a91b1214752d 2025-06-08 05:56:45,564 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06692943', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7129045089538296608', 'uuid-lslong': '13137746011234153393'}, 'enable': 'true', 'created': '2025-06-08T05:56:43', 'last-modified': '2025-06-08T05:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988672'} 2025-06-08 05:56:45,570 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-08 05:56:45,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83823237 passed 2025-06-08 05:56:45,571 - DEBUG - ====Verifying policy data for ctest-vn-83823237 in API_Server ====== 2025-06-08 05:56:45,571 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-08 05:56:45,576 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2 2025-06-08 05:56:45,587 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b 2025-06-08 05:56:45,664 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1 2025-06-08 05:56:45,675 - DEBUG - ==>Verifying data for policy with id: ca7eabc7-382f-426e-8f18-89cba8d2f0e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632'] 2025-06-08 05:56:45,675 - INFO - VN ctest-vn-83823237 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-08 05:56:45,675 - DEBUG - Verifying the vn in opserver 2025-06-08 05:56:45,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237 virtual network link through opserver 10.0.0.65 2025-06-08 05:56:45,675 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-06-08 05:56:46,006 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-06-08 05:56:46,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237?flat'} 2025-06-08 05:56:46,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237 is found in opserver 2025-06-08 05:56:46,072 - DEBUG - Do not have enough data to verify VN in agent 2025-06-08 05:56:46,077 - DEBUG - VRF ids for VN ctest-vn-83823237: {} 2025-06-08 05:56:46,077 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-08 05:56:46,083 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2 2025-06-08 05:56:46,095 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b 2025-06-08 05:56:46,170 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695 2025-06-08 05:56:46,185 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695 2025-06-08 05:56:46,197 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6 2025-06-08 05:56:46,206 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6 2025-06-08 05:56:46,215 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7a6c1206-24d0-4fdb-a593-de186060a392 2025-06-08 05:56:46,222 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-08 05:56:46,222 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695 2025-06-08 05:56:46,234 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6 2025-06-08 05:56:46,251 - INFO - Verified VN network id 9 for VN 463b662f-c051-4345-be70-1114f5850695 2025-06-08 05:56:46,251 - INFO - Verifications in API Server for VN ctest-vn-54289770 passed 2025-06-08 05:56:46,251 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695 2025-06-08 05:56:46,263 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6 2025-06-08 05:56:46,272 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6 2025-06-08 05:56:46,281 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7a6c1206-24d0-4fdb-a593-de186060a392 2025-06-08 05:56:46,297 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06692943', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5060750961556931397', 'uuid-lslong': '13722486846314055317'}, 'enable': 'true', 'created': '2025-06-08T05:56:43', 'last-modified': '2025-06-08T05:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490903'} 2025-06-08 05:56:46,305 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-08 05:56:46,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54289770 passed 2025-06-08 05:56:46,305 - DEBUG - ====Verifying policy data for ctest-vn-54289770 in API_Server ====== 2025-06-08 05:56:46,305 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-08 05:56:46,310 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2 2025-06-08 05:56:46,322 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b 2025-06-08 05:56:46,395 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695 2025-06-08 05:56:46,406 - DEBUG - ==>Verifying data for policy with id: ca7eabc7-382f-426e-8f18-89cba8d2f0e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632'] 2025-06-08 05:56:46,406 - INFO - VN ctest-vn-54289770 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-08 05:56:46,406 - DEBUG - Verifying the vn in opserver 2025-06-08 05:56:46,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770 virtual network link through opserver 10.0.0.65 2025-06-08 05:56:46,406 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-06-08 05:56:46,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770?flat'} 2025-06-08 05:56:46,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770 is found in opserver 2025-06-08 05:56:46,429 - DEBUG - Do not have enough data to verify VN in agent 2025-06-08 05:56:46,434 - DEBUG - VRF ids for VN ctest-vn-54289770: {} 2025-06-08 05:56:46,488 - DEBUG - Services list from nova: [, , ] 2025-06-08 05:56:47,607 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3414-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3414-1) 2025-06-08 05:56:48,930 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3414-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3414-1) 2025-06-08 05:56:48,931 - INFO - Waiting for VM ctest-TestBasicPolicy-06692943-00953791 to be up.. 2025-06-08 05:56:49,025 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-08 05:56:54,100 - DEBUG - VM is in ACTIVE state now 2025-06-08 05:56:54,100 - INFO - VM name : ctest-TestBasicPolicy-06692943-00953791 2025-06-08 05:56:54,184 - DEBUG - VM ctest-TestBasicPolicy-06692943-00953791 ID is 11c8cdb9-39a4-4f76-8e67-19f650bbad91 2025-06-08 05:56:54,202 - DEBUG - VM ctest-TestBasicPolicy-06692943-00953791 launched on Node cn-jenkins-deploy-platform-ansible-os-3414-1 2025-06-08 05:56:54,274 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/11c8cdb9-39a4-4f76-8e67-19f650bbad91 2025-06-08 05:56:54,282 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/193f6de5-f3e4-4a26-8652-8851c801c74c 2025-06-08 05:56:57,545 - 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 1019ms') 2025-06-08 05:56:57,545 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06692943-00953791 failed! 2025-06-08 05:56:57,600 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237 is 185.111.59.129 and allocation pool is NOT set 2025-06-08 05:56:59,667 - 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=10.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.470 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.470/5.535/10.600/5.065 ms') 2025-06-08 05:56:59,668 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06692943-00953791 passed 2025-06-08 05:56:59,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 05:56:59,825 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06692943-00953791, IP 185.111.59.131, Port 22 2025-06-08 05:56:59,980 - DEBUG - VM ctest-TestBasicPolicy-06692943-00953791 is ready for SSH connections 2025-06-08 05:56:59,981 - INFO - Waiting for VM ctest-TestBasicPolicy-06692943-00759512 to be up.. 2025-06-08 05:57:00,091 - DEBUG - VM is in ACTIVE state now 2025-06-08 05:57:00,091 - INFO - VM name : ctest-TestBasicPolicy-06692943-00759512 2025-06-08 05:57:00,203 - DEBUG - VM ctest-TestBasicPolicy-06692943-00759512 ID is 67ebc2ad-2ec9-4f27-810f-a7cd106fa302 2025-06-08 05:57:00,203 - DEBUG - VM ctest-TestBasicPolicy-06692943-00759512 launched on Node cn-jenkins-deploy-platform-ansible-os-3414-1 2025-06-08 05:57:00,289 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/67ebc2ad-2ec9-4f27-810f-a7cd106fa302 2025-06-08 05:57:00,300 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/978ed3cc-035a-4309-8172-4aef5a682246 2025-06-08 05:57:01,562 - 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.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.85 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.854/3.135/4.416/1.281 ms') 2025-06-08 05:57:01,562 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-06692943-00759512 passed 2025-06-08 05:57:01,724 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 05:57:01,725 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06692943-00759512, IP 220.90.74.3, Port 22 2025-06-08 05:57:01,791 - 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-08 05:57:01,880 - DEBUG - VM ctest-TestBasicPolicy-06692943-00759512 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-08 05:57:06,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 05:57:06,881 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06692943-00759512, IP 220.90.74.3, Port 22 2025-06-08 05:57:07,040 - DEBUG - VM ctest-TestBasicPolicy-06692943-00759512 is ready for SSH connections 2025-06-08 05:57:07,041 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 05:57:07,041 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.90.74.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-06-08 05:57:07,041 - DEBUG - ping -s 56 -c 3 -W 1 220.90.74.3 2025-06-08 05:57:10,798 - DEBUG - PING 220.90.74.3 (220.90.74.3): 56 data bytes 64 bytes from 220.90.74.3: seq=0 ttl=63 time=4.080 ms 64 bytes from 220.90.74.3: seq=1 ttl=63 time=0.859 ms 64 bytes from 220.90.74.3: seq=2 ttl=63 time=0.796 ms --- 220.90.74.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.796/1.911/4.080 ms 2025-06-08 05:57:10,799 - INFO - Ping to IP 220.90.74.3 from VM ctest-TestBasicPolicy-06692943-00953791 passed 2025-06-08 05:57:10,988 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ca7eabc7-382f-426e-8f18-89cba8d2f0e2", "href": "http://10.0.0.65:8082/network-policy/ca7eabc7-382f-426e-8f18-89cba8d2f0e2"}} 2025-06-08 05:57:10,988 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-08 05:57:10,988 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.90.74.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-06-08 05:57:10,988 - DEBUG - ping -s 56 -c 3 -W 1 220.90.74.3 2025-06-08 05:57:14,199 - DEBUG - PING 220.90.74.3 (220.90.74.3): 56 data bytes 64 bytes from 220.90.74.3: seq=0 ttl=63 time=1.874 ms --- 220.90.74.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.874/1.874/1.874 ms 2025-06-08 05:57:14,199 - WARNING - Ping to IP 220.90.74.3 from VM ctest-TestBasicPolicy-06692943-00953791 failed 2025-06-08 05:57:14,199 - INFO - Deleting VM ctest-TestBasicPolicy-06692943-00759512 2025-06-08 05:57:14,268 - INFO - Deleting VM ctest-TestBasicPolicy-06692943-00953791 2025-06-08 05:57:14,645 - INFO - Deleted policy ctest-policy-allow-all-43409632 2025-06-08 05:57:14,645 - INFO - Deleting VN ctest-vn-54289770 2025-06-08 05:57:14,678 - DEBUG - VN 463b662f-c051-4345-be70-1114f5850695 still in use: Unable to complete operation on network 463b662f-c051-4345-be70-1114f5850695. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-af7c2a53-f3e0-4b3e-865d-4a946eacb3b2'] 2025-06-08 05:57:14,678 - WARNING - Deleting VN ctest-vn-54289770 failed..Will retry 2025-06-08 05:57:16,779 - DEBUG - Response for deleting network () 2025-06-08 05:57:16,779 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6 2025-06-08 05:57:16,786 - DEBUG - Response Code: 404 2025-06-08 05:57:16,786 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-08 05:57:16,793 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2 2025-06-08 05:57:16,847 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b 2025-06-08 05:57:16,918 - INFO - Validated that VN ctest-vn-54289770 is not found in API Server 2025-06-08 05:57:16,929 - DEBUG - VN ctest-vn-54289770 is not present in Agent 10.0.0.65 2025-06-08 05:57:16,930 - INFO - Validated that VN ctest-vn-54289770 is not in any agent 2025-06-08 05:57:16,946 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54289770 info 2025-06-08 05:57:16,947 - INFO - Deleting VN ctest-vn-83823237 2025-06-08 05:57:17,049 - DEBUG - Response for deleting network () 2025-06-08 05:57:17,049 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678 2025-06-08 05:57:17,056 - DEBUG - Response Code: 404 2025-06-08 05:57:17,056 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-08 05:57:17,063 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2 2025-06-08 05:57:17,122 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b 2025-06-08 05:57:17,194 - INFO - Validated that VN ctest-vn-83823237 is not found in API Server 2025-06-08 05:57:17,205 - DEBUG - VN ctest-vn-83823237 is not present in Agent 10.0.0.65 2025-06-08 05:57:17,206 - INFO - Validated that VN ctest-vn-83823237 is not in any agent 2025-06-08 05:57:17,222 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83823237 info 2025-06-08 05:57:17,478 - DEBUG - No XMPP flaps were noticed during the test 2025-06-08 05:57:17,478 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-06-08 05:57:17,478 - INFO - -------------------------------------------------------------------------------- 2025-06-08 05:57:18,224 - INFO - Deleted project: ctest-TestBasicPolicy-06692943, ID : 5ca5ca70-2bf4-45c8-bf6d-03840031eb4b