2025-03-20 17:07:02,772 - INFO - Domain Default found not creating 2025-03-20 17:07:02,933 - INFO - Project ctest-TestBasicPolicy-82104846 not found, creating it 2025-03-20 17:07:03,398 - INFO - Created Project:ctest-TestBasicPolicy-82104846, ID : 820117af-a9a0-4e25-a2e5-54e94db9ddb7 2025-03-20 17:07:05,023 - INFO - ================================================================================ 2025-03-20 17:07:05,023 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-20 17:07:05,023 - 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-03-20 17:07:05,280 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with 2025-03-20 17:07:05,280 - INFO - Initial checks done. Running the testcase now 2025-03-20 17:07:05,280 - INFO - 2025-03-20 17:07:05,905 - DEBUG - Response for create_network : {'network': {'id': 'f48f2836-2213-480e-b209-56c979d828d8', 'name': 'ctest-vn-53117702', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-53117702'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 17:07:06,140 - DEBUG - Response for create_subnet : {'subnet': {'id': '36eaf5da-e47d-423e-b228-42fefe28a7b1', 'name': '', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'network_id': 'f48f2836-2213-480e-b209-56c979d828d8', 'ip_version': 4, 'cidr': '223.181.113.0/26', 'allocation_pools': [{'start': '223.181.113.2', 'end': '223.181.113.62'}], 'gateway_ip': '223.181.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.181.113.2', 'tags': [], 'project_id': '820117afa9a04e25a2e554e94db9ddb7'}} 2025-03-20 17:07:06,161 - INFO - Created VN ctest-vn-53117702 2025-03-20 17:07:06,213 - DEBUG - VN ctest-vn-53117702 UUID is f48f2836-2213-480e-b209-56c979d828d8 2025-03-20 17:07:06,526 - DEBUG - Response for create_network : {'network': {'id': '694184a5-aa88-4735-86a0-0bec1c7c95ad', 'name': 'ctest-vn-55680001', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-55680001'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 17:07:06,742 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e935838e-f879-40ec-894b-e114ed378da8', 'name': '', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'network_id': '694184a5-aa88-4735-86a0-0bec1c7c95ad', 'ip_version': 4, 'cidr': '195.142.88.192/26', 'allocation_pools': [{'start': '195.142.88.194', 'end': '195.142.88.254'}], 'gateway_ip': '195.142.88.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.142.88.194', 'tags': [], 'project_id': '820117afa9a04e25a2e554e94db9ddb7'}} 2025-03-20 17:07:06,767 - INFO - Created VN ctest-vn-55680001 2025-03-20 17:07:06,825 - DEBUG - VN ctest-vn-55680001 UUID is 694184a5-aa88-4735-86a0-0bec1c7c95ad 2025-03-20 17:07:06,946 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702, 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-82104846:ctest-vn-55680001, 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-03-20 17:07:07,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f48f2836-2213-480e-b209-56c979d828d8', 'name': 'ctest-vn-53117702', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36eaf5da-e47d-423e-b228-42fefe28a7b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-53117702'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706']], 'subnet_ipam': [{'subnet_cidr': '223.181.113.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 17:07:07,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '694184a5-aa88-4735-86a0-0bec1c7c95ad', 'name': 'ctest-vn-55680001', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e935838e-f879-40ec-894b-e114ed378da8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-55680001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706']], 'subnet_ipam': [{'subnet_cidr': '195.142.88.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 17:07:07,641 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-20 17:07:07,991 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-20 17:07:08,022 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e 2025-03-20 17:07:08,039 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7 2025-03-20 17:07:08,116 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8 2025-03-20 17:07:08,130 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8 2025-03-20 17:07:08,142 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3 2025-03-20 17:07:08,151 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3 2025-03-20 17:07:08,160 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/25b6b42f-5344-4000-b26a-5e8958e91da3 2025-03-20 17:07:08,168 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-20 17:07:08,169 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8 2025-03-20 17:07:08,179 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3 2025-03-20 17:07:08,196 - INFO - Verified VN network id 9 for VN f48f2836-2213-480e-b209-56c979d828d8 2025-03-20 17:07:08,196 - INFO - Verifications in API Server for VN ctest-vn-53117702 passed 2025-03-20 17:07:08,197 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8 2025-03-20 17:07:08,209 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3 2025-03-20 17:07:08,219 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3 2025-03-20 17:07:08,227 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/25b6b42f-5344-4000-b26a-5e8958e91da3 2025-03-20 17:07:08,241 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82104846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17622348079889074190', 'uuid-lslong': '12828880436874193112'}, 'enable': 'true', 'created': '2025-03-20T17:07:05', 'last-modified': '2025-03-20T17:07:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017651'} 2025-03-20 17:07:08,249 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-20 17:07:08,249 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53117702 passed 2025-03-20 17:07:08,249 - DEBUG - ====Verifying policy data for ctest-vn-53117702 in API_Server ====== 2025-03-20 17:07:08,249 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-20 17:07:08,256 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e 2025-03-20 17:07:08,270 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7 2025-03-20 17:07:08,350 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8 2025-03-20 17:07:08,361 - DEBUG - ==>Verifying data for policy with id: 5eea212a-2f33-4f2f-bee1-fccf70a625d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706'] 2025-03-20 17:07:08,362 - INFO - VN ctest-vn-53117702 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 17:07:08,362 - DEBUG - Verifying the vn in opserver 2025-03-20 17:07:08,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702 virtual network link through opserver 10.0.0.31 2025-03-20 17:07:08,362 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-03-20 17:07:08,700 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-03-20 17:07:08,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702?flat'} 2025-03-20 17:07:08,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702 is found in opserver 2025-03-20 17:07:08,774 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 17:07:08,780 - DEBUG - VRF ids for VN ctest-vn-53117702: {} 2025-03-20 17:07:08,780 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-20 17:07:08,786 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e 2025-03-20 17:07:08,803 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7 2025-03-20 17:07:08,883 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad 2025-03-20 17:07:08,898 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad 2025-03-20 17:07:08,909 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad 2025-03-20 17:07:08,918 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad 2025-03-20 17:07:08,926 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e7d79474-5a88-4d8f-85f6-ff1af6d88305 2025-03-20 17:07:08,934 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 17:07:08,934 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad 2025-03-20 17:07:08,946 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad 2025-03-20 17:07:08,964 - INFO - Verified VN network id 10 for VN 694184a5-aa88-4735-86a0-0bec1c7c95ad 2025-03-20 17:07:08,964 - INFO - Verifications in API Server for VN ctest-vn-55680001 passed 2025-03-20 17:07:08,964 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad 2025-03-20 17:07:08,976 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad 2025-03-20 17:07:08,985 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad 2025-03-20 17:07:08,993 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e7d79474-5a88-4d8f-85f6-ff1af6d88305 2025-03-20 17:07:09,008 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82104846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7584489094534154037', 'uuid-lslong': '9700766706074162605'}, 'enable': 'true', 'created': '2025-03-20T17:07:06', 'last-modified': '2025-03-20T17:07:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536317'} 2025-03-20 17:07:09,015 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 17:07:09,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55680001 passed 2025-03-20 17:07:09,015 - DEBUG - ====Verifying policy data for ctest-vn-55680001 in API_Server ====== 2025-03-20 17:07:09,015 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-20 17:07:09,022 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e 2025-03-20 17:07:09,036 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7 2025-03-20 17:07:09,112 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad 2025-03-20 17:07:09,124 - DEBUG - ==>Verifying data for policy with id: 5eea212a-2f33-4f2f-bee1-fccf70a625d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706'] 2025-03-20 17:07:09,124 - INFO - VN ctest-vn-55680001 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 17:07:09,125 - DEBUG - Verifying the vn in opserver 2025-03-20 17:07:09,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001 virtual network link through opserver 10.0.0.31 2025-03-20 17:07:09,125 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-03-20 17:07:09,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001?flat'} 2025-03-20 17:07:09,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001 is found in opserver 2025-03-20 17:07:09,154 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 17:07:09,162 - DEBUG - VRF ids for VN ctest-vn-55680001: {} 2025-03-20 17:07:09,223 - DEBUG - Services list from nova: [, , ] 2025-03-20 17:07:10,344 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2930-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2930-1) 2025-03-20 17:07:11,733 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2930-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2930-1) 2025-03-20 17:07:11,733 - INFO - Waiting for VM ctest-TestBasicPolicy-82104846-71125954 to be up.. 2025-03-20 17:07:11,853 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-20 17:07:16,958 - DEBUG - VM is in ACTIVE state now 2025-03-20 17:07:16,958 - INFO - VM name : ctest-TestBasicPolicy-82104846-71125954 2025-03-20 17:07:17,047 - DEBUG - VM ctest-TestBasicPolicy-82104846-71125954 ID is a283da6f-aa96-47e3-9600-151cb44f19a7 2025-03-20 17:07:17,071 - DEBUG - VM ctest-TestBasicPolicy-82104846-71125954 launched on Node cn-jenkins-deploy-platform-ansible-os-2930-1 2025-03-20 17:07:17,159 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/a283da6f-aa96-47e3-9600-151cb44f19a7 2025-03-20 17:07:17,170 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/5c348413-38a6-46f1-8141-7f848a8dd1cf 2025-03-20 17:07:20,426 - 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 1006ms') 2025-03-20 17:07:20,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82104846-71125954 failed! 2025-03-20 17:07:20,485 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702 is 223.181.113.1 and allocation pool is NOT set 2025-03-20 17:07:22,545 - 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.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.497 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.497/3.836/7.175/3.339 ms') 2025-03-20 17:07:22,545 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82104846-71125954 passed 2025-03-20 17:07:22,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:07:22,705 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82104846-71125954, IP 223.181.113.3, Port 22 2025-03-20 17:07:22,761 - 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-03-20 17:07:22,864 - DEBUG - VM ctest-TestBasicPolicy-82104846-71125954 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-20 17:07:27,865 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:07:27,865 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82104846-71125954, IP 223.181.113.3, Port 22 2025-03-20 17:07:28,021 - DEBUG - VM ctest-TestBasicPolicy-82104846-71125954 is ready for SSH connections 2025-03-20 17:07:28,021 - INFO - Waiting for VM ctest-TestBasicPolicy-82104846-21330481 to be up.. 2025-03-20 17:07:28,109 - DEBUG - VM is in ACTIVE state now 2025-03-20 17:07:28,109 - INFO - VM name : ctest-TestBasicPolicy-82104846-21330481 2025-03-20 17:07:28,199 - DEBUG - VM ctest-TestBasicPolicy-82104846-21330481 ID is 240d7179-0bc3-41ff-8faa-ab69db2539ac 2025-03-20 17:07:28,200 - DEBUG - VM ctest-TestBasicPolicy-82104846-21330481 launched on Node cn-jenkins-deploy-platform-ansible-os-2930-1 2025-03-20 17:07:28,297 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/240d7179-0bc3-41ff-8faa-ab69db2539ac 2025-03-20 17:07:28,309 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/0d85381a-d65a-4b66-864a-04e892c40e12 2025-03-20 17:07:29,563 - 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=3.27 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.455 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 = 0.455/1.864/3.273/1.409 ms') 2025-03-20 17:07:29,563 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82104846-21330481 passed 2025-03-20 17:07:29,717 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:07:29,717 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82104846-21330481, IP 195.142.88.195, Port 22 2025-03-20 17:07:29,891 - DEBUG - VM ctest-TestBasicPolicy-82104846-21330481 is ready for SSH connections 2025-03-20 17:07:29,891 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:07:29,891 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 195.142.88.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-03-20 17:07:29,891 - DEBUG - ping -s 56 -c 3 -W 1 195.142.88.195 2025-03-20 17:07:33,644 - DEBUG - PING 195.142.88.195 (195.142.88.195): 56 data bytes 64 bytes from 195.142.88.195: seq=0 ttl=63 time=3.864 ms 64 bytes from 195.142.88.195: seq=1 ttl=63 time=1.069 ms 64 bytes from 195.142.88.195: seq=2 ttl=63 time=0.945 ms --- 195.142.88.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.945/1.959/3.864 ms 2025-03-20 17:07:33,645 - INFO - Ping to IP 195.142.88.195 from VM ctest-TestBasicPolicy-82104846-71125954 passed 2025-03-20 17:07:33,833 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5eea212a-2f33-4f2f-bee1-fccf70a625d0", "href": "http://10.0.0.31:8082/network-policy/5eea212a-2f33-4f2f-bee1-fccf70a625d0"}} 2025-03-20 17:07:33,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 17:07:33,833 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 195.142.88.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-03-20 17:07:33,833 - DEBUG - ping -s 56 -c 3 -W 1 195.142.88.195 2025-03-20 17:07:37,064 - DEBUG - PING 195.142.88.195 (195.142.88.195): 56 data bytes 64 bytes from 195.142.88.195: seq=0 ttl=63 time=1.731 ms --- 195.142.88.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.731/1.731/1.731 ms 2025-03-20 17:07:37,064 - WARNING - Ping to IP 195.142.88.195 from VM ctest-TestBasicPolicy-82104846-71125954 failed 2025-03-20 17:07:37,064 - INFO - Deleting VM ctest-TestBasicPolicy-82104846-21330481 2025-03-20 17:07:37,136 - INFO - Deleting VM ctest-TestBasicPolicy-82104846-71125954 2025-03-20 17:07:37,552 - INFO - Deleted policy ctest-policy-allow-all-65080706 2025-03-20 17:07:37,552 - INFO - Deleting VN ctest-vn-55680001 2025-03-20 17:07:37,591 - DEBUG - VN 694184a5-aa88-4735-86a0-0bec1c7c95ad still in use: Unable to complete operation on network 694184a5-aa88-4735-86a0-0bec1c7c95ad. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2692c0f3-e2e1-4482-af01-e1631a690e46'] 2025-03-20 17:07:37,591 - WARNING - Deleting VN ctest-vn-55680001 failed..Will retry 2025-03-20 17:07:39,721 - DEBUG - Response for deleting network () 2025-03-20 17:07:39,721 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad 2025-03-20 17:07:39,731 - DEBUG - Response Code: 404 2025-03-20 17:07:39,731 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-20 17:07:39,738 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e 2025-03-20 17:07:39,798 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7 2025-03-20 17:07:39,876 - INFO - Validated that VN ctest-vn-55680001 is not found in API Server 2025-03-20 17:07:39,893 - DEBUG - VN ctest-vn-55680001 is not present in Agent 10.0.0.31 2025-03-20 17:07:39,893 - INFO - Validated that VN ctest-vn-55680001 is not in any agent 2025-03-20 17:07:39,912 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55680001 info 2025-03-20 17:07:39,913 - INFO - Deleting VN ctest-vn-53117702 2025-03-20 17:07:40,026 - DEBUG - Response for deleting network () 2025-03-20 17:07:40,026 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3 2025-03-20 17:07:40,032 - DEBUG - Response Code: 404 2025-03-20 17:07:40,032 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-20 17:07:40,043 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e 2025-03-20 17:07:40,099 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7 2025-03-20 17:07:40,173 - INFO - Validated that VN ctest-vn-53117702 is not found in API Server 2025-03-20 17:07:40,188 - DEBUG - VN ctest-vn-53117702 is not present in Agent 10.0.0.31 2025-03-20 17:07:40,188 - INFO - Validated that VN ctest-vn-53117702 is not in any agent 2025-03-20 17:07:40,206 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53117702 info 2025-03-20 17:07:40,459 - DEBUG - No XMPP flaps were noticed during the test
2025-03-20 17:07:40,459 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-03-20 17:07:40,459 - INFO - -------------------------------------------------------------------------------- 2025-03-20 17:07:41,184 - INFO - Deleted project: ctest-TestBasicPolicy-82104846, ID : 820117af-a9a0-4e25-a2e5-54e94db9ddb7