2025-03-28 10:23:00,309 - INFO - Domain Default found not creating 2025-03-28 10:23:00,486 - INFO - Project ctest-TestBasicPolicy-27456100 not found, creating it 2025-03-28 10:23:00,989 - INFO - Created Project:ctest-TestBasicPolicy-27456100, ID : aab7aeea-b3ea-406b-aea5-74d6fdf2e91f 2025-03-28 10:23:02,552 - INFO - ================================================================================ 2025-03-28 10:23:02,552 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-28 10:23:02,552 - 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-28 10:23:02,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.7': '0'}} with 2025-03-28 10:23:02,814 - INFO - Initial checks done. Running the testcase now 2025-03-28 10:23:02,814 - INFO - 2025-03-28 10:23:03,394 - DEBUG - Response for create_network : {'network': {'id': 'e76381be-7624-40fc-8dab-5cbbe2c92188', 'name': 'ctest-vn-99831409', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-99831409'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 10:23:03,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a859766-f6bb-44ec-8cd1-56be416908c2', 'name': '', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'network_id': 'e76381be-7624-40fc-8dab-5cbbe2c92188', 'ip_version': 4, 'cidr': '157.153.70.64/26', 'allocation_pools': [{'start': '157.153.70.66', 'end': '157.153.70.126'}], 'gateway_ip': '157.153.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.153.70.66', 'tags': [], 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f'}} 2025-03-28 10:23:03,599 - INFO - Created VN ctest-vn-99831409 2025-03-28 10:23:03,655 - DEBUG - VN ctest-vn-99831409 UUID is e76381be-7624-40fc-8dab-5cbbe2c92188 2025-03-28 10:23:03,978 - DEBUG - Response for create_network : {'network': {'id': 'cd983a02-ade0-4433-8516-3bdd313e0dea', 'name': 'ctest-vn-04224950', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-04224950'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 10:23:04,185 - DEBUG - Response for create_subnet : {'subnet': {'id': '62664aff-c448-4d01-b223-5ac94d8577ae', 'name': '', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'network_id': 'cd983a02-ade0-4433-8516-3bdd313e0dea', 'ip_version': 4, 'cidr': '40.196.132.192/26', 'allocation_pools': [{'start': '40.196.132.194', 'end': '40.196.132.254'}], 'gateway_ip': '40.196.132.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.196.132.194', 'tags': [], 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f'}} 2025-03-28 10:23:04,210 - INFO - Created VN ctest-vn-04224950 2025-03-28 10:23:04,263 - DEBUG - VN ctest-vn-04224950 UUID is cd983a02-ade0-4433-8516-3bdd313e0dea 2025-03-28 10:23:04,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409, 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-27456100:ctest-vn-04224950, 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-28 10:23:04,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e76381be-7624-40fc-8dab-5cbbe2c92188', 'name': 'ctest-vn-99831409', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a859766-f6bb-44ec-8cd1-56be416908c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-99831409'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380']], 'subnet_ipam': [{'subnet_cidr': '157.153.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 10:23:04,992 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd983a02-ade0-4433-8516-3bdd313e0dea', 'name': 'ctest-vn-04224950', 'tenant_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'project_id': 'aab7aeeab3ea406baea574d6fdf2e91f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62664aff-c448-4d01-b223-5ac94d8577ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-vn-04224950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380']], 'subnet_ipam': [{'subnet_cidr': '40.196.132.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 10:23:05,171 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-28 10:23:05,468 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-28 10:23:05,503 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54 2025-03-28 10:23:05,517 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f 2025-03-28 10:23:05,597 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188 2025-03-28 10:23:05,613 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188 2025-03-28 10:23:05,625 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f 2025-03-28 10:23:05,635 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f 2025-03-28 10:23:05,645 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/27e93a6b-635c-477d-a4cc-94d54c659e5b 2025-03-28 10:23:05,653 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 10:23:05,653 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188 2025-03-28 10:23:05,664 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f 2025-03-28 10:23:05,681 - INFO - Verified VN network id 8 for VN e76381be-7624-40fc-8dab-5cbbe2c92188 2025-03-28 10:23:05,681 - INFO - Verifications in API Server for VN ctest-vn-99831409 passed 2025-03-28 10:23:05,681 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188 2025-03-28 10:23:05,694 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f 2025-03-28 10:23:05,702 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f 2025-03-28 10:23:05,710 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/27e93a6b-635c-477d-a4cc-94d54c659e5b 2025-03-28 10:23:05,728 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27456100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16673312900481564924', 'uuid-lslong': '10208354942398833032'}, 'enable': 'true', 'created': '2025-03-28T10:23:03', 'last-modified': '2025-03-28T10:23:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044216'} 2025-03-28 10:23:05,737 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 10:23:05,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99831409 passed 2025-03-28 10:23:05,737 - DEBUG - ====Verifying policy data for ctest-vn-99831409 in API_Server ====== 2025-03-28 10:23:05,737 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-28 10:23:05,744 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54 2025-03-28 10:23:05,758 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f 2025-03-28 10:23:05,840 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e76381be-7624-40fc-8dab-5cbbe2c92188 2025-03-28 10:23:05,850 - DEBUG - ==>Verifying data for policy with id: 95eeeaee-7152-40a5-ae7b-91b0c9d969d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380'] 2025-03-28 10:23:05,850 - INFO - VN ctest-vn-99831409 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 10:23:05,850 - DEBUG - Verifying the vn in opserver 2025-03-28 10:23:05,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409 virtual network link through opserver 10.0.0.42 2025-03-28 10:23:05,850 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-28 10:23:06,142 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-28 10:23:06,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409?flat'} 2025-03-28 10:23:06,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409 is found in opserver 2025-03-28 10:23:06,217 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 10:23:06,222 - DEBUG - VRF ids for VN ctest-vn-99831409: {} 2025-03-28 10:23:06,223 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-28 10:23:06,229 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54 2025-03-28 10:23:06,242 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f 2025-03-28 10:23:06,317 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea 2025-03-28 10:23:06,332 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea 2025-03-28 10:23:06,344 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d 2025-03-28 10:23:06,353 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d 2025-03-28 10:23:06,361 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8d05cf07-ac98-40ae-ae4c-22f83aec48f6 2025-03-28 10:23:06,368 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 10:23:06,368 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea 2025-03-28 10:23:06,378 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d 2025-03-28 10:23:06,396 - INFO - Verified VN network id 9 for VN cd983a02-ade0-4433-8516-3bdd313e0dea 2025-03-28 10:23:06,396 - INFO - Verifications in API Server for VN ctest-vn-04224950 passed 2025-03-28 10:23:06,396 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea 2025-03-28 10:23:06,410 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d 2025-03-28 10:23:06,420 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d 2025-03-28 10:23:06,428 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8d05cf07-ac98-40ae-ae4c-22f83aec48f6 2025-03-28 10:23:06,445 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27456100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14814654757416748083', 'uuid-lslong': '9589918277732011498'}, 'enable': 'true', 'created': '2025-03-28T10:23:03', 'last-modified': '2025-03-28T10:23:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490459'} 2025-03-28 10:23:06,454 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 10:23:06,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04224950 passed 2025-03-28 10:23:06,455 - DEBUG - ====Verifying policy data for ctest-vn-04224950 in API_Server ====== 2025-03-28 10:23:06,455 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-28 10:23:06,462 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54 2025-03-28 10:23:06,477 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f 2025-03-28 10:23:06,552 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd983a02-ade0-4433-8516-3bdd313e0dea 2025-03-28 10:23:06,562 - DEBUG - ==>Verifying data for policy with id: 95eeeaee-7152-40a5-ae7b-91b0c9d969d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27456100', 'ctest-policy-allow-all-38251380'] 2025-03-28 10:23:06,562 - INFO - VN ctest-vn-04224950 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 10:23:06,562 - DEBUG - Verifying the vn in opserver 2025-03-28 10:23:06,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950 virtual network link through opserver 10.0.0.42 2025-03-28 10:23:06,562 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-28 10:23:06,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950?flat'} 2025-03-28 10:23:06,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-04224950 is found in opserver 2025-03-28 10:23:06,587 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 10:23:06,593 - DEBUG - VRF ids for VN ctest-vn-04224950: {} 2025-03-28 10:23:06,661 - DEBUG - Services list from nova: [, , ] 2025-03-28 10:23:07,714 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2986-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2986-1) 2025-03-28 10:23:09,120 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2986-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2986-1) 2025-03-28 10:23:09,120 - INFO - Waiting for VM ctest-TestBasicPolicy-27456100-15344085 to be up.. 2025-03-28 10:23:09,235 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 10:23:14,345 - DEBUG - VM is in ACTIVE state now 2025-03-28 10:23:14,346 - INFO - VM name : ctest-TestBasicPolicy-27456100-15344085 2025-03-28 10:23:14,460 - DEBUG - VM ctest-TestBasicPolicy-27456100-15344085 ID is 91006e8a-a15f-41c4-b2f3-96815b250571 2025-03-28 10:23:14,495 - DEBUG - VM ctest-TestBasicPolicy-27456100-15344085 launched on Node cn-jenkins-deploy-platform-ansible-os-2986-1 2025-03-28 10:23:14,608 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/91006e8a-a15f-41c4-b2f3-96815b250571 2025-03-28 10:23:14,620 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/8d7040c1-34dc-4bf2-9bf5-cde9743bcf95 2025-03-28 10:23:17,880 - 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 1007ms') 2025-03-28 10:23:17,880 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27456100-15344085 failed! 2025-03-28 10:23:17,939 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27456100:ctest-vn-99831409 is 157.153.70.65 and allocation pool is NOT set 2025-03-28 10:23:20,009 - 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.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.788 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.788/4.271/7.754/3.483 ms') 2025-03-28 10:23:20,009 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27456100-15344085 passed 2025-03-28 10:23:20,159 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 10:23:20,159 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27456100-15344085, IP 157.153.70.67, Port 22 2025-03-28 10:23:20,329 - DEBUG - VM ctest-TestBasicPolicy-27456100-15344085 is ready for SSH connections 2025-03-28 10:23:20,329 - INFO - Waiting for VM ctest-TestBasicPolicy-27456100-00535032 to be up.. 2025-03-28 10:23:20,411 - DEBUG - VM is in ACTIVE state now 2025-03-28 10:23:20,411 - INFO - VM name : ctest-TestBasicPolicy-27456100-00535032 2025-03-28 10:23:20,488 - DEBUG - VM ctest-TestBasicPolicy-27456100-00535032 ID is 63bf631b-2780-4fe4-8dca-9667e8b565f5 2025-03-28 10:23:20,489 - DEBUG - VM ctest-TestBasicPolicy-27456100-00535032 launched on Node cn-jenkins-deploy-platform-ansible-os-2986-1 2025-03-28 10:23:20,571 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/63bf631b-2780-4fe4-8dca-9667e8b565f5 2025-03-28 10:23:20,581 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/44ffdd45-1213-4cec-8843-7ecbf9c02e53 2025-03-28 10:23:21,840 - 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=5.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.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 = 2.395/3.743/5.092/1.348 ms') 2025-03-28 10:23:21,840 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27456100-00535032 passed 2025-03-28 10:23:21,995 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 10:23:21,995 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27456100-00535032, IP 40.196.132.195, Port 22 2025-03-28 10:23:22,151 - DEBUG - VM ctest-TestBasicPolicy-27456100-00535032 is ready for SSH connections 2025-03-28 10:23:22,151 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 10:23:22,151 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.196.132.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-03-28 10:23:22,151 - DEBUG - ping -s 56 -c 3 -W 1 40.196.132.195 2025-03-28 10:23:26,238 - DEBUG - PING 40.196.132.195 (40.196.132.195): 56 data bytes 64 bytes from 40.196.132.195: seq=0 ttl=63 time=5.408 ms 64 bytes from 40.196.132.195: seq=1 ttl=63 time=0.853 ms 64 bytes from 40.196.132.195: seq=2 ttl=63 time=0.876 ms --- 40.196.132.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.853/2.379/5.408 ms 2025-03-28 10:23:26,238 - INFO - Ping to IP 40.196.132.195 from VM ctest-TestBasicPolicy-27456100-15344085 passed 2025-03-28 10:23:26,431 - DEBUG - Policy Update Response {"network-policy": {"uuid": "95eeeaee-7152-40a5-ae7b-91b0c9d969d0", "href": "http://10.0.0.42:8082/network-policy/95eeeaee-7152-40a5-ae7b-91b0c9d969d0"}} 2025-03-28 10:23:26,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 10:23:26,431 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.196.132.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-03-28 10:23:26,431 - DEBUG - ping -s 56 -c 3 -W 1 40.196.132.195 2025-03-28 10:23:29,645 - DEBUG - PING 40.196.132.195 (40.196.132.195): 56 data bytes 64 bytes from 40.196.132.195: seq=0 ttl=63 time=1.805 ms --- 40.196.132.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.805/1.805/1.805 ms 2025-03-28 10:23:29,645 - WARNING - Ping to IP 40.196.132.195 from VM ctest-TestBasicPolicy-27456100-15344085 failed 2025-03-28 10:23:29,645 - INFO - Deleting VM ctest-TestBasicPolicy-27456100-00535032 2025-03-28 10:23:29,721 - INFO - Deleting VM ctest-TestBasicPolicy-27456100-15344085 2025-03-28 10:23:30,161 - INFO - Deleted policy ctest-policy-allow-all-38251380 2025-03-28 10:23:30,161 - INFO - Deleting VN ctest-vn-04224950 2025-03-28 10:23:30,203 - DEBUG - VN cd983a02-ade0-4433-8516-3bdd313e0dea still in use: Unable to complete operation on network cd983a02-ade0-4433-8516-3bdd313e0dea. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-24ee1507-0ea7-4639-8028-7e750ed02bf6'] 2025-03-28 10:23:30,203 - WARNING - Deleting VN ctest-vn-04224950 failed..Will retry 2025-03-28 10:23:32,321 - DEBUG - Response for deleting network () 2025-03-28 10:23:32,321 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/845c34dd-5379-40f8-ab2c-26f6d66d593d 2025-03-28 10:23:32,328 - DEBUG - Response Code: 404 2025-03-28 10:23:32,329 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-28 10:23:32,335 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54 2025-03-28 10:23:32,390 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f 2025-03-28 10:23:32,462 - INFO - Validated that VN ctest-vn-04224950 is not found in API Server 2025-03-28 10:23:32,473 - DEBUG - VN ctest-vn-04224950 is not present in Agent 10.0.0.42 2025-03-28 10:23:32,473 - INFO - Validated that VN ctest-vn-04224950 is not in any agent 2025-03-28 10:23:32,495 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04224950 info 2025-03-28 10:23:32,495 - INFO - Deleting VN ctest-vn-99831409 2025-03-28 10:23:32,614 - DEBUG - Response for deleting network () 2025-03-28 10:23:32,614 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1e151328-ffed-43d6-9626-6619ae68718f 2025-03-28 10:23:32,621 - DEBUG - Response Code: 404 2025-03-28 10:23:32,621 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-28 10:23:32,630 - DEBUG - Requesting: http://10.0.0.42:8082/domain/7a020fad-8a94-43dc-834b-d9d5f606ac54 2025-03-28 10:23:32,685 - DEBUG - Requesting: http://10.0.0.42:8082/project/aab7aeea-b3ea-406b-aea5-74d6fdf2e91f 2025-03-28 10:23:32,760 - INFO - Validated that VN ctest-vn-99831409 is not found in API Server 2025-03-28 10:23:32,773 - DEBUG - VN ctest-vn-99831409 is not present in Agent 10.0.0.42 2025-03-28 10:23:32,773 - INFO - Validated that VN ctest-vn-99831409 is not in any agent 2025-03-28 10:23:32,793 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99831409 info 2025-03-28 10:23:33,051 - DEBUG - No XMPP flaps were noticed during the test
2025-03-28 10:23:33,051 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-03-28 10:23:33,051 - INFO - -------------------------------------------------------------------------------- 2025-03-28 10:23:33,774 - INFO - Deleted project: ctest-TestBasicPolicy-27456100, ID : aab7aeea-b3ea-406b-aea5-74d6fdf2e91f