2025-09-25 01:49:49,393 - INFO - Domain Default found not creating 2025-09-25 01:49:49,557 - INFO - Project ctest-TestBasicPolicy-72652379 not found, creating it 2025-09-25 01:49:50,051 - INFO - Created Project:ctest-TestBasicPolicy-72652379, ID : 11b9442b-937f-4a7f-beab-2b2bc535dfaf 2025-09-25 01:49:51,561 - INFO - ================================================================================ 2025-09-25 01:49:51,561 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-25 01:49:51,561 - 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-09-25 01:49:51,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-09-25 01:49:51,816 - INFO - Initial checks done. Running the testcase now 2025-09-25 01:49:51,816 - INFO - 2025-09-25 01:49:53,013 - DEBUG - Response for create_network : {'network': {'id': '3c886513-9615-4788-ad01-2c1e05cd1d85', 'name': 'ctest-vn-32175287', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-32175287'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:49:53,169 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef1683a3-1aa1-4b18-ab54-fe1905a045c2', 'name': '', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'network_id': '3c886513-9615-4788-ad01-2c1e05cd1d85', 'ip_version': 4, 'cidr': '3.164.182.64/26', 'allocation_pools': [{'start': '3.164.182.66', 'end': '3.164.182.126'}], 'gateway_ip': '3.164.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.164.182.66', 'tags': [], 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf'}} 2025-09-25 01:49:53,186 - INFO - Created VN ctest-vn-32175287 2025-09-25 01:49:53,239 - DEBUG - VN ctest-vn-32175287 UUID is 3c886513-9615-4788-ad01-2c1e05cd1d85 2025-09-25 01:49:53,602 - DEBUG - Response for create_network : {'network': {'id': '4fcd95a0-dceb-4b6d-897d-6c2585a35f31', 'name': 'ctest-vn-55791040', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-55791040'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:49:53,829 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b42b2be-df96-44a8-b79e-6b5461c4fa1f', 'name': '', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'network_id': '4fcd95a0-dceb-4b6d-897d-6c2585a35f31', 'ip_version': 4, 'cidr': '7.7.165.0/26', 'allocation_pools': [{'start': '7.7.165.2', 'end': '7.7.165.62'}], 'gateway_ip': '7.7.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.7.165.2', 'tags': [], 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf'}} 2025-09-25 01:49:53,848 - INFO - Created VN ctest-vn-55791040 2025-09-25 01:49:53,899 - DEBUG - VN ctest-vn-55791040 UUID is 4fcd95a0-dceb-4b6d-897d-6c2585a35f31 2025-09-25 01:49:54,051 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287, 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-72652379:ctest-vn-55791040, 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-09-25 01:49:54,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c886513-9615-4788-ad01-2c1e05cd1d85', 'name': 'ctest-vn-32175287', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef1683a3-1aa1-4b18-ab54-fe1905a045c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-32175287'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357']], 'subnet_ipam': [{'subnet_cidr': '3.164.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:49:54,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fcd95a0-dceb-4b6d-897d-6c2585a35f31', 'name': 'ctest-vn-55791040', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b42b2be-df96-44a8-b79e-6b5461c4fa1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-55791040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357']], 'subnet_ipam': [{'subnet_cidr': '7.7.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:49:54,767 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:55,101 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:55,127 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:55,140 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf 2025-09-25 01:49:55,210 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85 2025-09-25 01:49:55,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85 2025-09-25 01:49:55,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b 2025-09-25 01:49:55,233 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b 2025-09-25 01:49:55,239 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f2016f-846d-45b0-a68a-3fb1c57daf2b 2025-09-25 01:49:55,243 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 01:49:55,243 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85 2025-09-25 01:49:55,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b 2025-09-25 01:49:55,262 - INFO - Verified VN network id 9 for VN 3c886513-9615-4788-ad01-2c1e05cd1d85 2025-09-25 01:49:55,262 - INFO - Verifications in API Server for VN ctest-vn-32175287 passed 2025-09-25 01:49:55,262 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85 2025-09-25 01:49:55,270 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b 2025-09-25 01:49:55,276 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b 2025-09-25 01:49:55,282 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f2016f-846d-45b0-a68a-3fb1c57daf2b 2025-09-25 01:49:55,292 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72652379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4361847373905086344', 'uuid-lslong': '12466293750996213125'}, 'enable': 'true', 'created': '2025-09-25T01:49:52', 'last-modified': '2025-09-25T01:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963700'} 2025-09-25 01:49:55,298 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 01:49:55,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32175287 passed 2025-09-25 01:49:55,298 - DEBUG - ====Verifying policy data for ctest-vn-32175287 in API_Server ====== 2025-09-25 01:49:55,298 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:55,303 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:55,313 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf 2025-09-25 01:49:55,387 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85 2025-09-25 01:49:55,395 - DEBUG - ==>Verifying data for policy with id: 42ff4135-568f-40e3-ac9b-a252af263d73, fqn: ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357'] 2025-09-25 01:49:55,395 - INFO - VN ctest-vn-32175287 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-25 01:49:55,395 - DEBUG - Verifying the vn in opserver 2025-09-25 01:49:55,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287 virtual network link through opserver 10.0.0.254 2025-09-25 01:49:55,396 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-25 01:49:55,726 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-25 01:49:55,777 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287?flat'} 2025-09-25 01:49:55,777 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287 is found in opserver 2025-09-25 01:49:55,787 - DEBUG - Do not have enough data to verify VN in agent 2025-09-25 01:49:55,791 - DEBUG - VRF ids for VN ctest-vn-32175287: {} 2025-09-25 01:49:55,791 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:55,797 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:55,807 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf 2025-09-25 01:49:55,878 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31 2025-09-25 01:49:55,889 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31 2025-09-25 01:49:55,898 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34 2025-09-25 01:49:55,904 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34 2025-09-25 01:49:55,909 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e622b6a-65ad-4a47-8369-0a0c334b8206 2025-09-25 01:49:55,915 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-25 01:49:55,915 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31 2025-09-25 01:49:55,923 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34 2025-09-25 01:49:55,936 - INFO - Verified VN network id 10 for VN 4fcd95a0-dceb-4b6d-897d-6c2585a35f31 2025-09-25 01:49:55,936 - INFO - Verifications in API Server for VN ctest-vn-55791040 passed 2025-09-25 01:49:55,936 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31 2025-09-25 01:49:55,944 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34 2025-09-25 01:49:55,950 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34 2025-09-25 01:49:55,955 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e622b6a-65ad-4a47-8369-0a0c334b8206 2025-09-25 01:49:55,965 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72652379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5750416817355705197', 'uuid-lslong': '9907193663696625457'}, 'enable': 'true', 'created': '2025-09-25T01:49:53', 'last-modified': '2025-09-25T01:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400931'} 2025-09-25 01:49:55,970 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-25 01:49:55,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55791040 passed 2025-09-25 01:49:55,970 - DEBUG - ====Verifying policy data for ctest-vn-55791040 in API_Server ====== 2025-09-25 01:49:55,970 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:49:55,976 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:49:55,985 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf 2025-09-25 01:49:56,053 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31 2025-09-25 01:49:56,063 - DEBUG - ==>Verifying data for policy with id: 42ff4135-568f-40e3-ac9b-a252af263d73, fqn: ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357'] 2025-09-25 01:49:56,063 - INFO - VN ctest-vn-55791040 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-25 01:49:56,063 - DEBUG - Verifying the vn in opserver 2025-09-25 01:49:56,063 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040 virtual network link through opserver 10.0.0.254 2025-09-25 01:49:56,063 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-25 01:49:56,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040?flat'} 2025-09-25 01:49:56,072 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040 is found in opserver 2025-09-25 01:49:56,083 - DEBUG - Do not have enough data to verify VN in agent 2025-09-25 01:49:56,087 - DEBUG - VRF ids for VN ctest-vn-55791040: {} 2025-09-25 01:49:56,139 - DEBUG - Services list from nova: [, , ] 2025-09-25 01:49:57,214 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4187-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4187-1) 2025-09-25 01:49:58,371 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4187-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4187-1) 2025-09-25 01:49:58,371 - INFO - Waiting for VM ctest-TestBasicPolicy-72652379-03060722 to be up.. 2025-09-25 01:49:58,442 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-25 01:50:03,521 - DEBUG - VM is in ACTIVE state now 2025-09-25 01:50:03,521 - INFO - VM name : ctest-TestBasicPolicy-72652379-03060722 2025-09-25 01:50:03,594 - DEBUG - VM ctest-TestBasicPolicy-72652379-03060722 ID is aebcb6f3-41d0-40aa-ad18-9fd1c8808fbd 2025-09-25 01:50:03,615 - DEBUG - VM ctest-TestBasicPolicy-72652379-03060722 launched on Node cn-jenkins-deploy-platform-ansible-os-4187-1 2025-09-25 01:50:03,694 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/aebcb6f3-41d0-40aa-ad18-9fd1c8808fbd 2025-09-25 01:50:03,701 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/db394aad-1084-42cc-8714-80553edf40b2 2025-09-25 01:50:06,979 - 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 1031ms') 2025-09-25 01:50:06,979 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72652379-03060722 failed! 2025-09-25 01:50:07,031 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287 is 3.164.182.65 and allocation pool is NOT set 2025-09-25 01:50:09,100 - 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=7.53 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.406 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.406/3.967/7.529/3.561 ms') 2025-09-25 01:50:09,100 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72652379-03060722 passed 2025-09-25 01:50:09,251 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 01:50:09,251 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72652379-03060722, IP 3.164.182.67, Port 22 2025-09-25 01:50:09,317 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-09-25 01:50:09,385 - DEBUG - VM ctest-TestBasicPolicy-72652379-03060722 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-25 01:50:14,386 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 01:50:14,386 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72652379-03060722, IP 3.164.182.67, Port 22 2025-09-25 01:50:14,542 - DEBUG - VM ctest-TestBasicPolicy-72652379-03060722 is ready for SSH connections 2025-09-25 01:50:14,542 - INFO - Waiting for VM ctest-TestBasicPolicy-72652379-41036367 to be up.. 2025-09-25 01:50:14,613 - DEBUG - VM is in ACTIVE state now 2025-09-25 01:50:14,614 - INFO - VM name : ctest-TestBasicPolicy-72652379-41036367 2025-09-25 01:50:14,683 - DEBUG - VM ctest-TestBasicPolicy-72652379-41036367 ID is 6dfca211-b59a-486f-8ad0-a7451ebbb636 2025-09-25 01:50:14,683 - DEBUG - VM ctest-TestBasicPolicy-72652379-41036367 launched on Node cn-jenkins-deploy-platform-ansible-os-4187-1 2025-09-25 01:50:14,751 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/6dfca211-b59a-486f-8ad0-a7451ebbb636 2025-09-25 01:50:14,758 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/5e9117fe-c57d-44e3-be47-da64a005d706 2025-09-25 01:50:15,987 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.378 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.378/1.663/2.949/1.285 ms') 2025-09-25 01:50:15,987 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-72652379-41036367 passed 2025-09-25 01:50:16,135 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 01:50:16,135 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72652379-41036367, IP 7.7.165.3, Port 22 2025-09-25 01:50:16,290 - DEBUG - VM ctest-TestBasicPolicy-72652379-41036367 is ready for SSH connections 2025-09-25 01:50:16,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 01:50:16,291 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.7.165.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-25 01:50:16,291 - DEBUG - ping -s 56 -c 3 -W 1 7.7.165.3 2025-09-25 01:50:20,361 - DEBUG - PING 7.7.165.3 (7.7.165.3): 56 data bytes 64 bytes from 7.7.165.3: seq=0 ttl=63 time=3.482 ms 64 bytes from 7.7.165.3: seq=1 ttl=63 time=0.778 ms 64 bytes from 7.7.165.3: seq=2 ttl=63 time=0.765 ms --- 7.7.165.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.765/1.675/3.482 ms 2025-09-25 01:50:20,361 - INFO - Ping to IP 7.7.165.3 from VM ctest-TestBasicPolicy-72652379-03060722 passed 2025-09-25 01:50:20,531 - DEBUG - Policy Update Response {"network-policy": {"uuid": "42ff4135-568f-40e3-ac9b-a252af263d73", "href": "http://10.0.0.254:8082/network-policy/42ff4135-568f-40e3-ac9b-a252af263d73"}} 2025-09-25 01:50:20,531 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 01:50:20,531 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.7.165.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-25 01:50:20,531 - DEBUG - ping -s 56 -c 3 -W 1 7.7.165.3 2025-09-25 01:50:23,760 - DEBUG - PING 7.7.165.3 (7.7.165.3): 56 data bytes --- 7.7.165.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-25 01:50:23,760 - WARNING - Ping to IP 7.7.165.3 from VM ctest-TestBasicPolicy-72652379-03060722 failed 2025-09-25 01:50:23,760 - INFO - Deleting VM ctest-TestBasicPolicy-72652379-41036367 2025-09-25 01:50:23,824 - INFO - Deleting VM ctest-TestBasicPolicy-72652379-03060722 2025-09-25 01:50:24,176 - INFO - Deleted policy ctest-policy-allow-all-27437357 2025-09-25 01:50:24,176 - INFO - Deleting VN ctest-vn-55791040 2025-09-25 01:50:24,207 - DEBUG - VN 4fcd95a0-dceb-4b6d-897d-6c2585a35f31 still in use: Unable to complete operation on network 4fcd95a0-dceb-4b6d-897d-6c2585a35f31. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a805206b-1212-486d-999e-1ee591562a15'] 2025-09-25 01:50:24,207 - WARNING - Deleting VN ctest-vn-55791040 failed..Will retry 2025-09-25 01:50:26,304 - DEBUG - Response for deleting network () 2025-09-25 01:50:26,305 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34 2025-09-25 01:50:26,311 - DEBUG - Response Code: 404 2025-09-25 01:50:26,312 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:50:26,317 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:50:26,372 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf 2025-09-25 01:50:26,441 - INFO - Validated that VN ctest-vn-55791040 is not found in API Server 2025-09-25 01:50:26,451 - DEBUG - VN ctest-vn-55791040 is not present in Agent 10.0.0.254 2025-09-25 01:50:26,451 - INFO - Validated that VN ctest-vn-55791040 is not in any agent 2025-09-25 01:50:26,465 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55791040 info 2025-09-25 01:50:26,465 - INFO - Deleting VN ctest-vn-32175287 2025-09-25 01:50:26,567 - DEBUG - Response for deleting network () 2025-09-25 01:50:26,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b 2025-09-25 01:50:26,572 - DEBUG - Response Code: 404 2025-09-25 01:50:26,572 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 01:50:26,577 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13 2025-09-25 01:50:26,628 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf 2025-09-25 01:50:26,711 - INFO - Validated that VN ctest-vn-32175287 is not found in API Server 2025-09-25 01:50:26,720 - DEBUG - VN ctest-vn-32175287 is not present in Agent 10.0.0.254 2025-09-25 01:50:26,720 - INFO - Validated that VN ctest-vn-32175287 is not in any agent 2025-09-25 01:50:26,733 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32175287 info 2025-09-25 01:50:26,991 - DEBUG - No XMPP flaps were noticed during the test 2025-09-25 01:50:26,991 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-09-25 01:50:26,991 - INFO - -------------------------------------------------------------------------------- 2025-09-25 01:50:27,692 - INFO - Deleted project: ctest-TestBasicPolicy-72652379, ID : 11b9442b-937f-4a7f-beab-2b2bc535dfaf