2025-01-15 13:09:44,064 - INFO - Domain Default found not creating 2025-01-15 13:09:44,207 - INFO - Project ctest-TestBasicPolicy-51243517 not found, creating it 2025-01-15 13:09:44,675 - INFO - Created Project:ctest-TestBasicPolicy-51243517, ID : e3e31431-7b07-41af-9dac-3a8b1b43559a 2025-01-15 13:09:46,147 - INFO - ================================================================================ 2025-01-15 13:09:46,147 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-15 13:09:46,147 - 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-01-15 13:09:46,404 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.8': '0'}} with 2025-01-15 13:09:46,404 - INFO - Initial checks done. Running the testcase now 2025-01-15 13:09:46,404 - INFO - 2025-01-15 13:09:46,964 - DEBUG - Response for create_network : {'network': {'id': 'e66be12d-5d0e-4b6e-a489-72624f63b71f', 'name': 'ctest-vn-99987110', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99987110'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 13:09:47,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '405f1cc0-b6db-4e0b-b30d-6d8f4c0036a8', 'name': '', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'network_id': 'e66be12d-5d0e-4b6e-a489-72624f63b71f', 'ip_version': 4, 'cidr': '160.78.144.192/26', 'allocation_pools': [{'start': '160.78.144.194', 'end': '160.78.144.254'}], 'gateway_ip': '160.78.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.78.144.194', 'tags': [], 'project_id': 'e3e314317b0741af9dac3a8b1b43559a'}} 2025-01-15 13:09:47,171 - INFO - Created VN ctest-vn-99987110 2025-01-15 13:09:47,226 - DEBUG - VN ctest-vn-99987110 UUID is e66be12d-5d0e-4b6e-a489-72624f63b71f 2025-01-15 13:09:47,512 - DEBUG - Response for create_network : {'network': {'id': 'c7329f39-8ac3-4883-acaa-e2e5c72558a3', 'name': 'ctest-vn-99949290', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99949290'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 13:09:47,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f373184-af58-45fd-ae3c-15ab38a3c2b4', 'name': '', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'network_id': 'c7329f39-8ac3-4883-acaa-e2e5c72558a3', 'ip_version': 4, 'cidr': '23.149.212.0/26', 'allocation_pools': [{'start': '23.149.212.2', 'end': '23.149.212.62'}], 'gateway_ip': '23.149.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.149.212.2', 'tags': [], 'project_id': 'e3e314317b0741af9dac3a8b1b43559a'}} 2025-01-15 13:09:47,674 - INFO - Created VN ctest-vn-99949290 2025-01-15 13:09:47,726 - DEBUG - VN ctest-vn-99949290 UUID is c7329f39-8ac3-4883-acaa-e2e5c72558a3 2025-01-15 13:09:47,844 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110, 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-51243517:ctest-vn-99949290, 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-01-15 13:09:48,145 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e66be12d-5d0e-4b6e-a489-72624f63b71f', 'name': 'ctest-vn-99987110', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['405f1cc0-b6db-4e0b-b30d-6d8f4c0036a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99987110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383']], 'subnet_ipam': [{'subnet_cidr': '160.78.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-15 13:09:48,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7329f39-8ac3-4883-acaa-e2e5c72558a3', 'name': 'ctest-vn-99949290', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f373184-af58-45fd-ae3c-15ab38a3c2b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99949290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383']], 'subnet_ipam': [{'subnet_cidr': '23.149.212.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-15 13:09:48,534 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-15 13:09:48,842 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-15 13:09:48,871 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3 2025-01-15 13:09:48,887 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a 2025-01-15 13:09:48,969 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f 2025-01-15 13:09:48,981 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f 2025-01-15 13:09:48,995 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72 2025-01-15 13:09:49,003 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72 2025-01-15 13:09:49,011 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/154540a6-2160-4962-b512-d8b24f80ceda 2025-01-15 13:09:49,018 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-15 13:09:49,018 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f 2025-01-15 13:09:49,028 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72 2025-01-15 13:09:49,042 - INFO - Verified VN network id 8 for VN e66be12d-5d0e-4b6e-a489-72624f63b71f 2025-01-15 13:09:49,042 - INFO - Verifications in API Server for VN ctest-vn-99987110 passed 2025-01-15 13:09:49,042 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f 2025-01-15 13:09:49,053 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72 2025-01-15 13:09:49,060 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72 2025-01-15 13:09:49,067 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/154540a6-2160-4962-b512-d8b24f80ceda 2025-01-15 13:09:49,080 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51243517', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16603612036182461294', 'uuid-lslong': '11856133260593837855'}, 'enable': 'true', 'created': '2025-01-15T13:09:46', 'last-modified': '2025-01-15T13:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961235'} 2025-01-15 13:09:49,086 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-15 13:09:49,086 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99987110 passed 2025-01-15 13:09:49,086 - DEBUG - ====Verifying policy data for ctest-vn-99987110 in API_Server ====== 2025-01-15 13:09:49,086 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-15 13:09:49,092 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3 2025-01-15 13:09:49,104 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a 2025-01-15 13:09:49,184 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f 2025-01-15 13:09:49,193 - DEBUG - ==>Verifying data for policy with id: a123f74a-b0b8-4fa3-9339-74781219699a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383'] 2025-01-15 13:09:49,193 - INFO - VN ctest-vn-99987110 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-15 13:09:49,193 - DEBUG - Verifying the vn in opserver 2025-01-15 13:09:49,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110 virtual network link through opserver 10.0.0.41 2025-01-15 13:09:49,194 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-01-15 13:09:49,506 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-01-15 13:09:49,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110?flat'} 2025-01-15 13:09:49,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110 is found in opserver 2025-01-15 13:09:49,574 - DEBUG - Do not have enough data to verify VN in agent 2025-01-15 13:09:49,579 - DEBUG - VRF ids for VN ctest-vn-99987110: {} 2025-01-15 13:09:49,579 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-15 13:09:49,585 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3 2025-01-15 13:09:49,598 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a 2025-01-15 13:09:49,670 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3 2025-01-15 13:09:49,684 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3 2025-01-15 13:09:49,698 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650 2025-01-15 13:09:49,707 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650 2025-01-15 13:09:49,717 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a83b8f8e-e51f-4bae-8d53-b522500a8adc 2025-01-15 13:09:49,727 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-15 13:09:49,727 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3 2025-01-15 13:09:49,739 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650 2025-01-15 13:09:49,754 - INFO - Verified VN network id 9 for VN c7329f39-8ac3-4883-acaa-e2e5c72558a3 2025-01-15 13:09:49,755 - INFO - Verifications in API Server for VN ctest-vn-99949290 passed 2025-01-15 13:09:49,755 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3 2025-01-15 13:09:49,764 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650 2025-01-15 13:09:49,772 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650 2025-01-15 13:09:49,780 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a83b8f8e-e51f-4bae-8d53-b522500a8adc 2025-01-15 13:09:49,793 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51243517', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14353710031873198211', 'uuid-lslong': '12442006397080918179'}, 'enable': 'true', 'created': '2025-01-15T13:09:47', 'last-modified': '2025-01-15T13:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439674'} 2025-01-15 13:09:49,801 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-15 13:09:49,801 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99949290 passed 2025-01-15 13:09:49,801 - DEBUG - ====Verifying policy data for ctest-vn-99949290 in API_Server ====== 2025-01-15 13:09:49,801 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-15 13:09:49,807 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3 2025-01-15 13:09:49,820 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a 2025-01-15 13:09:49,890 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3 2025-01-15 13:09:49,900 - DEBUG - ==>Verifying data for policy with id: a123f74a-b0b8-4fa3-9339-74781219699a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383'] 2025-01-15 13:09:49,900 - INFO - VN ctest-vn-99949290 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-15 13:09:49,900 - DEBUG - Verifying the vn in opserver 2025-01-15 13:09:49,900 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290 virtual network link through opserver 10.0.0.41 2025-01-15 13:09:49,900 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-01-15 13:09:49,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290?flat'} 2025-01-15 13:09:49,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290 is found in opserver 2025-01-15 13:09:49,922 - DEBUG - Do not have enough data to verify VN in agent 2025-01-15 13:09:49,927 - DEBUG - VRF ids for VN ctest-vn-99949290: {} 2025-01-15 13:09:49,984 - DEBUG - Services list from nova: [, , ] 2025-01-15 13:09:50,992 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2639-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2639-1) 2025-01-15 13:09:52,250 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2639-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2639-1) 2025-01-15 13:09:52,250 - INFO - Waiting for VM ctest-TestBasicPolicy-51243517-26311092 to be up.. 2025-01-15 13:09:52,332 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 13:09:57,416 - DEBUG - VM is in ACTIVE state now 2025-01-15 13:09:57,416 - INFO - VM name : ctest-TestBasicPolicy-51243517-26311092 2025-01-15 13:09:57,505 - DEBUG - VM ctest-TestBasicPolicy-51243517-26311092 ID is 469e0e9e-46ff-44de-a52c-2e17522746de 2025-01-15 13:09:57,532 - DEBUG - VM ctest-TestBasicPolicy-51243517-26311092 launched on Node cn-jenkins-deploy-platform-ansible-os-2639-1 2025-01-15 13:09:57,631 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/469e0e9e-46ff-44de-a52c-2e17522746de 2025-01-15 13:09:57,646 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/8e0cafae-a941-4a7b-ba60-0ea6813cefad 2025-01-15 13:10:00,915 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-01-15 13:10:00,915 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-51243517-26311092 failed! 2025-01-15 13:10:00,978 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110 is 160.78.144.193 and allocation pool is NOT set 2025-01-15 13:10:03,039 - 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=3.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.23 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 = 2.225/3.106/3.988/0.881 ms') 2025-01-15 13:10:03,039 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-51243517-26311092 passed 2025-01-15 13:10:03,194 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 13:10:03,194 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-51243517-26311092, IP 160.78.144.195, Port 22 2025-01-15 13:10:03,349 - DEBUG - VM ctest-TestBasicPolicy-51243517-26311092 is ready for SSH connections 2025-01-15 13:10:03,349 - INFO - Waiting for VM ctest-TestBasicPolicy-51243517-02592153 to be up.. 2025-01-15 13:10:03,430 - DEBUG - VM is in ACTIVE state now 2025-01-15 13:10:03,430 - INFO - VM name : ctest-TestBasicPolicy-51243517-02592153 2025-01-15 13:10:03,506 - DEBUG - VM ctest-TestBasicPolicy-51243517-02592153 ID is e397f77b-8802-46e8-a590-0d0f1a173a74 2025-01-15 13:10:03,506 - DEBUG - VM ctest-TestBasicPolicy-51243517-02592153 launched on Node cn-jenkins-deploy-platform-ansible-os-2639-1 2025-01-15 13:10:03,586 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/e397f77b-8802-46e8-a590-0d0f1a173a74 2025-01-15 13:10:03,598 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/ddf80d1b-de75-4557-9a7e-5de7a5eb1bde 2025-01-15 13:10:04,849 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.448 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.448/1.706/2.964/1.258 ms') 2025-01-15 13:10:04,849 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-51243517-02592153 passed 2025-01-15 13:10:04,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 13:10:04,998 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-51243517-02592153, IP 23.149.212.3, Port 22 2025-01-15 13:10:05,162 - DEBUG - VM ctest-TestBasicPolicy-51243517-02592153 is ready for SSH connections 2025-01-15 13:10:05,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 13:10:05,162 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 23.149.212.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-01-15 13:10:05,162 - DEBUG - ping -s 56 -c 3 -W 1 23.149.212.3 2025-01-15 13:10:08,882 - DEBUG - PING 23.149.212.3 (23.149.212.3): 56 data bytes 64 bytes from 23.149.212.3: seq=0 ttl=63 time=3.633 ms 64 bytes from 23.149.212.3: seq=1 ttl=63 time=0.811 ms 64 bytes from 23.149.212.3: seq=2 ttl=63 time=0.859 ms --- 23.149.212.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.811/1.767/3.633 ms 2025-01-15 13:10:08,882 - INFO - Ping to IP 23.149.212.3 from VM ctest-TestBasicPolicy-51243517-26311092 passed 2025-01-15 13:10:09,062 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a123f74a-b0b8-4fa3-9339-74781219699a", "href": "http://10.0.0.41:8082/network-policy/a123f74a-b0b8-4fa3-9339-74781219699a"}} 2025-01-15 13:10:09,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 13:10:09,062 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 23.149.212.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-01-15 13:10:09,062 - DEBUG - ping -s 56 -c 3 -W 1 23.149.212.3 2025-01-15 13:10:12,260 - DEBUG - PING 23.149.212.3 (23.149.212.3): 56 data bytes 64 bytes from 23.149.212.3: seq=0 ttl=63 time=1.466 ms --- 23.149.212.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.466/1.466/1.466 ms 2025-01-15 13:10:12,260 - WARNING - Ping to IP 23.149.212.3 from VM ctest-TestBasicPolicy-51243517-26311092 failed 2025-01-15 13:10:12,260 - INFO - Deleting VM ctest-TestBasicPolicy-51243517-02592153 2025-01-15 13:10:12,327 - INFO - Deleting VM ctest-TestBasicPolicy-51243517-26311092 2025-01-15 13:10:12,717 - INFO - Deleted policy ctest-policy-allow-all-84500383 2025-01-15 13:10:12,717 - INFO - Deleting VN ctest-vn-99949290 2025-01-15 13:10:12,754 - DEBUG - VN c7329f39-8ac3-4883-acaa-e2e5c72558a3 still in use: Unable to complete operation on network c7329f39-8ac3-4883-acaa-e2e5c72558a3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-827635a1-bb89-4872-ac1d-cec76ee429ce'] 2025-01-15 13:10:12,754 - WARNING - Deleting VN ctest-vn-99949290 failed..Will retry 2025-01-15 13:10:14,865 - DEBUG - Response for deleting network () 2025-01-15 13:10:14,865 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650 2025-01-15 13:10:14,870 - DEBUG - Response Code: 404 2025-01-15 13:10:14,870 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-15 13:10:14,876 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3 2025-01-15 13:10:14,931 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a 2025-01-15 13:10:15,003 - INFO - Validated that VN ctest-vn-99949290 is not found in API Server 2025-01-15 13:10:15,014 - DEBUG - VN ctest-vn-99949290 is not present in Agent 10.0.0.41 2025-01-15 13:10:15,014 - INFO - Validated that VN ctest-vn-99949290 is not in any agent 2025-01-15 13:10:15,031 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99949290 info 2025-01-15 13:10:15,031 - INFO - Deleting VN ctest-vn-99987110 2025-01-15 13:10:15,136 - DEBUG - Response for deleting network () 2025-01-15 13:10:15,137 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72 2025-01-15 13:10:15,142 - DEBUG - Response Code: 404 2025-01-15 13:10:15,142 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-01-15 13:10:15,148 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3 2025-01-15 13:10:15,203 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a 2025-01-15 13:10:15,274 - INFO - Validated that VN ctest-vn-99987110 is not found in API Server 2025-01-15 13:10:15,285 - DEBUG - VN ctest-vn-99987110 is not present in Agent 10.0.0.41 2025-01-15 13:10:15,285 - INFO - Validated that VN ctest-vn-99987110 is not in any agent 2025-01-15 13:10:15,300 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99987110 info 2025-01-15 13:10:15,556 - DEBUG - No XMPP flaps were noticed during the test
2025-01-15 13:10:15,556 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-01-15 13:10:15,556 - INFO - -------------------------------------------------------------------------------- 2025-01-15 13:10:16,240 - INFO - Deleted project: ctest-TestBasicPolicy-51243517, ID : e3e31431-7b07-41af-9dac-3a8b1b43559a