2025-04-22 20:23:55,967 - INFO - Domain Default found not creating 2025-04-22 20:23:56,082 - INFO - Project ctest-TestBasicPolicy-30897832 not found, creating it 2025-04-22 20:23:56,499 - INFO - Created Project:ctest-TestBasicPolicy-30897832, ID : 5e00f245-a7b2-45d9-a2da-39f03f00f2f8 2025-04-22 20:23:57,824 - INFO - ================================================================================ 2025-04-22 20:23:57,825 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-22 20:23:57,825 - 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-04-22 20:23:58,080 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-04-22 20:23:58,080 - INFO - Initial checks done. Running the testcase now 2025-04-22 20:23:58,080 - INFO - 2025-04-22 20:23:58,601 - DEBUG - Response for create_network : {'network': {'id': '5ef24c81-4186-4006-901f-876fd9505b53', 'name': 'ctest-vn-80583861', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-80583861'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:23:58,783 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b59e2372-95b2-4a2e-a722-db1349b4d4df', 'name': '', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'network_id': '5ef24c81-4186-4006-901f-876fd9505b53', 'ip_version': 4, 'cidr': '123.38.181.0/26', 'allocation_pools': [{'start': '123.38.181.2', 'end': '123.38.181.62'}], 'gateway_ip': '123.38.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.38.181.2', 'tags': [], 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8'}} 2025-04-22 20:23:58,798 - INFO - Created VN ctest-vn-80583861 2025-04-22 20:23:58,851 - DEBUG - VN ctest-vn-80583861 UUID is 5ef24c81-4186-4006-901f-876fd9505b53 2025-04-22 20:23:59,153 - DEBUG - Response for create_network : {'network': {'id': '2f0631c4-af3f-434d-a2e0-8f81d58920eb', 'name': 'ctest-vn-98105606', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-98105606'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:23:59,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '1557945c-99b0-4916-a1d1-d48b2d2455a9', 'name': '', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'network_id': '2f0631c4-af3f-434d-a2e0-8f81d58920eb', 'ip_version': 4, 'cidr': '157.208.148.192/26', 'allocation_pools': [{'start': '157.208.148.194', 'end': '157.208.148.254'}], 'gateway_ip': '157.208.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.208.148.194', 'tags': [], 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8'}} 2025-04-22 20:23:59,357 - INFO - Created VN ctest-vn-98105606 2025-04-22 20:23:59,406 - DEBUG - VN ctest-vn-98105606 UUID is 2f0631c4-af3f-434d-a2e0-8f81d58920eb 2025-04-22 20:23:59,546 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861, 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-30897832:ctest-vn-98105606, 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-04-22 20:23:59,814 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ef24c81-4186-4006-901f-876fd9505b53', 'name': 'ctest-vn-80583861', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b59e2372-95b2-4a2e-a722-db1349b4d4df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-80583861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259']], 'subnet_ipam': [{'subnet_cidr': '123.38.181.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:24:00,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f0631c4-af3f-434d-a2e0-8f81d58920eb', 'name': 'ctest-vn-98105606', 'tenant_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'project_id': '5e00f245a7b245d9a2da39f03f00f2f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1557945c-99b0-4916-a1d1-d48b2d2455a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-vn-98105606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259']], 'subnet_ipam': [{'subnet_cidr': '157.208.148.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 20:24:00,227 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-22 20:24:00,555 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-22 20:24:00,595 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49 2025-04-22 20:24:00,668 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8 2025-04-22 20:24:00,767 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53 2025-04-22 20:24:00,784 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53 2025-04-22 20:24:00,793 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c 2025-04-22 20:24:00,802 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c 2025-04-22 20:24:00,811 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/85e5ee1b-98b5-4d52-9f50-f83372c31b8d 2025-04-22 20:24:00,817 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 20:24:00,817 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53 2025-04-22 20:24:00,831 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c 2025-04-22 20:24:00,847 - INFO - Verified VN network id 9 for VN 5ef24c81-4186-4006-901f-876fd9505b53 2025-04-22 20:24:00,847 - INFO - Verifications in API Server for VN ctest-vn-80583861 passed 2025-04-22 20:24:00,847 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53 2025-04-22 20:24:00,860 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c 2025-04-22 20:24:00,868 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c 2025-04-22 20:24:00,874 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/85e5ee1b-98b5-4d52-9f50-f83372c31b8d 2025-04-22 20:24:00,892 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30897832', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6841614901963014150', 'uuid-lslong': '10385168180196694867'}, 'enable': 'true', 'created': '2025-04-22T20:23:58', 'last-modified': '2025-04-22T20:23:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.098580'} 2025-04-22 20:24:00,898 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 20:24:00,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80583861 passed 2025-04-22 20:24:00,898 - DEBUG - ====Verifying policy data for ctest-vn-80583861 in API_Server ====== 2025-04-22 20:24:00,898 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-22 20:24:00,904 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49 2025-04-22 20:24:00,915 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8 2025-04-22 20:24:00,982 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ef24c81-4186-4006-901f-876fd9505b53 2025-04-22 20:24:00,991 - DEBUG - ==>Verifying data for policy with id: 47c20e1e-a5a2-4720-89e6-c64b0e363928, fqn: ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259'] 2025-04-22 20:24:00,991 - INFO - VN ctest-vn-80583861 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 20:24:00,991 - DEBUG - Verifying the vn in opserver 2025-04-22 20:24:00,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861 virtual network link through opserver 10.0.0.249 2025-04-22 20:24:00,991 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-22 20:24:01,277 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-22 20:24:01,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861?flat'} 2025-04-22 20:24:01,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861 is found in opserver 2025-04-22 20:24:01,333 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 20:24:01,337 - DEBUG - VRF ids for VN ctest-vn-80583861: {} 2025-04-22 20:24:01,337 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-22 20:24:01,341 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49 2025-04-22 20:24:01,351 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8 2025-04-22 20:24:01,451 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb 2025-04-22 20:24:01,461 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb 2025-04-22 20:24:01,469 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2 2025-04-22 20:24:01,475 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2 2025-04-22 20:24:01,481 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/984fb5ff-6e62-4f62-a1e3-39ff0df431ab 2025-04-22 20:24:01,487 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 20:24:01,487 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb 2025-04-22 20:24:01,495 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2 2025-04-22 20:24:01,507 - INFO - Verified VN network id 10 for VN 2f0631c4-af3f-434d-a2e0-8f81d58920eb 2025-04-22 20:24:01,507 - INFO - Verifications in API Server for VN ctest-vn-98105606 passed 2025-04-22 20:24:01,507 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb 2025-04-22 20:24:01,515 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2 2025-04-22 20:24:01,521 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2 2025-04-22 20:24:01,526 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/984fb5ff-6e62-4f62-a1e3-39ff0df431ab 2025-04-22 20:24:01,537 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30897832', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3388450490466386765', 'uuid-lslong': '11736538416723599595'}, 'enable': 'true', 'created': '2025-04-22T20:23:59', 'last-modified': '2025-04-22T20:24:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.525351'} 2025-04-22 20:24:01,542 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 20:24:01,542 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98105606 passed 2025-04-22 20:24:01,542 - DEBUG - ====Verifying policy data for ctest-vn-98105606 in API_Server ====== 2025-04-22 20:24:01,542 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-22 20:24:01,547 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49 2025-04-22 20:24:01,556 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8 2025-04-22 20:24:01,623 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2f0631c4-af3f-434d-a2e0-8f81d58920eb 2025-04-22 20:24:01,632 - DEBUG - ==>Verifying data for policy with id: 47c20e1e-a5a2-4720-89e6-c64b0e363928, fqn: ['default-domain', 'ctest-TestBasicPolicy-30897832', 'ctest-policy-allow-all-70112259'] 2025-04-22 20:24:01,632 - INFO - VN ctest-vn-98105606 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 20:24:01,632 - DEBUG - Verifying the vn in opserver 2025-04-22 20:24:01,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606 virtual network link through opserver 10.0.0.249 2025-04-22 20:24:01,632 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-22 20:24:01,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606?flat'} 2025-04-22 20:24:01,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-98105606 is found in opserver 2025-04-22 20:24:01,650 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 20:24:01,654 - DEBUG - VRF ids for VN ctest-vn-98105606: {} 2025-04-22 20:24:01,702 - DEBUG - Services list from nova: [, , ] 2025-04-22 20:24:02,637 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3172-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3172-1) 2025-04-22 20:24:03,814 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3172-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3172-1) 2025-04-22 20:24:03,814 - INFO - Waiting for VM ctest-TestBasicPolicy-30897832-00167205 to be up.. 2025-04-22 20:24:03,889 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 20:24:08,957 - DEBUG - VM is in ACTIVE state now 2025-04-22 20:24:08,957 - INFO - VM name : ctest-TestBasicPolicy-30897832-00167205 2025-04-22 20:24:09,022 - DEBUG - VM ctest-TestBasicPolicy-30897832-00167205 ID is 7df3d59d-3a51-44c5-8bb4-4c5c465a3e75 2025-04-22 20:24:09,038 - DEBUG - VM ctest-TestBasicPolicy-30897832-00167205 launched on Node cn-jenkins-deploy-platform-ansible-os-3172-1 2025-04-22 20:24:09,104 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/7df3d59d-3a51-44c5-8bb4-4c5c465a3e75 2025-04-22 20:24:09,111 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/db9220b5-f099-4483-a883-b4f1061b446f 2025-04-22 20:24:12,356 - 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 1004ms') 2025-04-22 20:24:12,357 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30897832-00167205 failed! 2025-04-22 20:24:12,415 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-30897832:ctest-vn-80583861 is 123.38.181.1 and allocation pool is NOT set 2025-04-22 20:24:14,470 - 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=2.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.378 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.378/1.551/2.725/1.173 ms') 2025-04-22 20:24:14,470 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30897832-00167205 passed 2025-04-22 20:24:14,619 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:24:14,619 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30897832-00167205, IP 123.38.181.3, Port 22 2025-04-22 20:24:14,774 - DEBUG - VM ctest-TestBasicPolicy-30897832-00167205 is ready for SSH connections 2025-04-22 20:24:14,774 - INFO - Waiting for VM ctest-TestBasicPolicy-30897832-63272410 to be up.. 2025-04-22 20:24:14,839 - DEBUG - VM is in ACTIVE state now 2025-04-22 20:24:14,839 - INFO - VM name : ctest-TestBasicPolicy-30897832-63272410 2025-04-22 20:24:14,901 - DEBUG - VM ctest-TestBasicPolicy-30897832-63272410 ID is f7d8a336-920b-48d1-bffe-34791e1437e7 2025-04-22 20:24:14,901 - DEBUG - VM ctest-TestBasicPolicy-30897832-63272410 launched on Node cn-jenkins-deploy-platform-ansible-os-3172-1 2025-04-22 20:24:14,961 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/f7d8a336-920b-48d1-bffe-34791e1437e7 2025-04-22 20:24:14,968 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/ed2c7d4e-4e20-49c1-a4f4-9279c9aa0835 2025-04-22 20:24:16,194 - 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.66 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.343 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.343/1.501/2.659/1.158 ms') 2025-04-22 20:24:16,195 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-30897832-63272410 passed 2025-04-22 20:24:16,343 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:24:16,343 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30897832-63272410, IP 157.208.148.195, Port 22 2025-04-22 20:24:16,494 - DEBUG - VM ctest-TestBasicPolicy-30897832-63272410 is ready for SSH connections 2025-04-22 20:24:16,494 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:24:16,494 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.208.148.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-04-22 20:24:16,495 - DEBUG - ping -s 56 -c 3 -W 1 157.208.148.195 2025-04-22 20:24:20,413 - DEBUG - PING 157.208.148.195 (157.208.148.195): 56 data bytes 64 bytes from 157.208.148.195: seq=0 ttl=63 time=3.158 ms 64 bytes from 157.208.148.195: seq=1 ttl=63 time=0.715 ms 64 bytes from 157.208.148.195: seq=2 ttl=63 time=0.689 ms --- 157.208.148.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.689/1.520/3.158 ms 2025-04-22 20:24:20,413 - INFO - Ping to IP 157.208.148.195 from VM ctest-TestBasicPolicy-30897832-00167205 passed 2025-04-22 20:24:20,594 - DEBUG - Policy Update Response {"network-policy": {"uuid": "47c20e1e-a5a2-4720-89e6-c64b0e363928", "href": "http://10.0.0.249:8082/network-policy/47c20e1e-a5a2-4720-89e6-c64b0e363928"}} 2025-04-22 20:24:20,595 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 20:24:20,595 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.208.148.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-04-22 20:24:20,595 - DEBUG - ping -s 56 -c 3 -W 1 157.208.148.195 2025-04-22 20:24:23,796 - DEBUG - PING 157.208.148.195 (157.208.148.195): 56 data bytes --- 157.208.148.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-22 20:24:23,796 - WARNING - Ping to IP 157.208.148.195 from VM ctest-TestBasicPolicy-30897832-00167205 failed 2025-04-22 20:24:23,796 - INFO - Deleting VM ctest-TestBasicPolicy-30897832-63272410 2025-04-22 20:24:23,861 - INFO - Deleting VM ctest-TestBasicPolicy-30897832-00167205 2025-04-22 20:24:24,205 - INFO - Deleted policy ctest-policy-allow-all-70112259 2025-04-22 20:24:24,205 - INFO - Deleting VN ctest-vn-98105606 2025-04-22 20:24:24,234 - DEBUG - VN 2f0631c4-af3f-434d-a2e0-8f81d58920eb still in use: Unable to complete operation on network 2f0631c4-af3f-434d-a2e0-8f81d58920eb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9110b7a4-93e8-4307-999e-b93566c47aeb'] 2025-04-22 20:24:24,234 - WARNING - Deleting VN ctest-vn-98105606 failed..Will retry 2025-04-22 20:24:26,319 - DEBUG - Response for deleting network () 2025-04-22 20:24:26,319 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0df09b0-f6c4-4e47-87a9-71640f7392f2 2025-04-22 20:24:26,326 - DEBUG - Response Code: 404 2025-04-22 20:24:26,326 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-22 20:24:26,331 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49 2025-04-22 20:24:26,382 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8 2025-04-22 20:24:26,450 - INFO - Validated that VN ctest-vn-98105606 is not found in API Server 2025-04-22 20:24:26,459 - DEBUG - VN ctest-vn-98105606 is not present in Agent 10.0.0.249 2025-04-22 20:24:26,459 - INFO - Validated that VN ctest-vn-98105606 is not in any agent 2025-04-22 20:24:26,473 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98105606 info 2025-04-22 20:24:26,473 - INFO - Deleting VN ctest-vn-80583861 2025-04-22 20:24:26,561 - DEBUG - Response for deleting network () 2025-04-22 20:24:26,561 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25fc81c6-0f56-4668-8890-a252f0473b0c 2025-04-22 20:24:26,566 - DEBUG - Response Code: 404 2025-04-22 20:24:26,566 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-22 20:24:26,571 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ef5cb7b-4310-4028-bb84-063973c63d49 2025-04-22 20:24:26,623 - DEBUG - Requesting: http://10.0.0.249:8082/project/5e00f245-a7b2-45d9-a2da-39f03f00f2f8 2025-04-22 20:24:26,692 - INFO - Validated that VN ctest-vn-80583861 is not found in API Server 2025-04-22 20:24:26,701 - DEBUG - VN ctest-vn-80583861 is not present in Agent 10.0.0.249 2025-04-22 20:24:26,701 - INFO - Validated that VN ctest-vn-80583861 is not in any agent 2025-04-22 20:24:26,715 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80583861 info 2025-04-22 20:24:26,964 - DEBUG - No XMPP flaps were noticed during the test
2025-04-22 20:24:26,964 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-04-22 20:24:26,965 - INFO - -------------------------------------------------------------------------------- 2025-04-22 20:24:27,604 - INFO - Deleted project: ctest-TestBasicPolicy-30897832, ID : 5e00f245-a7b2-45d9-a2da-39f03f00f2f8