2024-09-17 20:19:16,346 - INFO - Domain Default found not creating 2024-09-17 20:19:16,511 - INFO - Project ctest-TestBasicPolicy-19814295 not found, creating it 2024-09-17 20:19:17,018 - INFO - Created Project:ctest-TestBasicPolicy-19814295, ID : f5a0d429-c648-4b82-ab12-03e3761d3afb 2024-09-17 20:19:18,529 - INFO - ================================================================================ 2024-09-17 20:19:18,530 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 20:19:18,530 - 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 2024-09-17 20:19:18,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.5': '0'}} with 2024-09-17 20:19:18,789 - INFO - Initial checks done. Running the testcase now 2024-09-17 20:19:18,789 - INFO - 2024-09-17 20:19:19,388 - DEBUG - Response for create_network : {'network': {'id': '4c12d9fd-7b68-4be9-bcb3-5f0a9542882f', 'name': 'ctest-vn-89057035', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-89057035'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:19:19,585 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f4b25ec-fa36-46e7-980e-059f941cd2af', 'name': '', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'network_id': '4c12d9fd-7b68-4be9-bcb3-5f0a9542882f', 'ip_version': 4, 'cidr': '40.175.4.128/26', 'allocation_pools': [{'start': '40.175.4.130', 'end': '40.175.4.190'}], 'gateway_ip': '40.175.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.175.4.130', 'tags': [], 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb'}} 2024-09-17 20:19:19,607 - INFO - Created VN ctest-vn-89057035 2024-09-17 20:19:19,666 - DEBUG - VN ctest-vn-89057035 UUID is 4c12d9fd-7b68-4be9-bcb3-5f0a9542882f 2024-09-17 20:19:19,984 - DEBUG - Response for create_network : {'network': {'id': '4c431662-02d1-4934-9aba-d50a49407c42', 'name': 'ctest-vn-72578339', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-72578339'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:19:20,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '700cdf52-9f76-4144-8fbd-62fbc1463ab9', 'name': '', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'network_id': '4c431662-02d1-4934-9aba-d50a49407c42', 'ip_version': 4, 'cidr': '79.221.241.64/26', 'allocation_pools': [{'start': '79.221.241.66', 'end': '79.221.241.126'}], 'gateway_ip': '79.221.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.221.241.66', 'tags': [], 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb'}} 2024-09-17 20:19:20,217 - INFO - Created VN ctest-vn-72578339 2024-09-17 20:19:20,274 - DEBUG - VN ctest-vn-72578339 UUID is 4c431662-02d1-4934-9aba-d50a49407c42 2024-09-17 20:19:20,407 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035, 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-19814295:ctest-vn-72578339, 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] 2024-09-17 20:19:20,726 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c12d9fd-7b68-4be9-bcb3-5f0a9542882f', 'name': 'ctest-vn-89057035', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f4b25ec-fa36-46e7-980e-059f941cd2af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-89057035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076']], 'subnet_ipam': [{'subnet_cidr': '40.175.4.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:19:20,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c431662-02d1-4934-9aba-d50a49407c42', 'name': 'ctest-vn-72578339', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['700cdf52-9f76-4144-8fbd-62fbc1463ab9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-72578339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076']], 'subnet_ipam': [{'subnet_cidr': '79.221.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:19:21,166 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 20:19:21,460 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 20:19:21,499 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6 2024-09-17 20:19:21,521 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb 2024-09-17 20:19:21,615 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f 2024-09-17 20:19:21,634 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f 2024-09-17 20:19:21,651 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e 2024-09-17 20:19:21,662 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e 2024-09-17 20:19:21,674 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/36f2dbac-b2aa-45f9-ab78-3bd8a7fdf184 2024-09-17 20:19:21,683 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 20:19:21,683 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f 2024-09-17 20:19:21,700 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e 2024-09-17 20:19:21,721 - INFO - Verified VN network id 8 for VN 4c12d9fd-7b68-4be9-bcb3-5f0a9542882f 2024-09-17 20:19:21,721 - INFO - Verifications in API Server for VN ctest-vn-89057035 passed 2024-09-17 20:19:21,721 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f 2024-09-17 20:19:21,735 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e 2024-09-17 20:19:21,746 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e 2024-09-17 20:19:21,758 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/36f2dbac-b2aa-45f9-ab78-3bd8a7fdf184 2024-09-17 20:19:21,774 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19814295', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5481683379183700969', 'uuid-lslong': '13597316199020136495'}, 'enable': 'true', 'created': '2024-09-17T20:19:19', 'last-modified': '2024-09-17T20:19:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.075562'} 2024-09-17 20:19:21,781 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 20:19:21,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89057035 passed 2024-09-17 20:19:21,781 - DEBUG - ====Verifying policy data for ctest-vn-89057035 in API_Server ====== 2024-09-17 20:19:21,781 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 20:19:21,788 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6 2024-09-17 20:19:21,802 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb 2024-09-17 20:19:21,889 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f 2024-09-17 20:19:21,906 - DEBUG - ==>Verifying data for policy with id: 86b42733-0172-49ea-b245-74a3a67d1b31, fqn: ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076'] 2024-09-17 20:19:21,906 - INFO - VN ctest-vn-89057035 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 20:19:21,906 - DEBUG - Verifying the vn in opserver 2024-09-17 20:19:21,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035 virtual network link through opserver 10.0.0.65 2024-09-17 20:19:21,907 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-09-17 20:19:22,206 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-09-17 20:19:22,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035?flat'} 2024-09-17 20:19:22,274 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035 is found in opserver 2024-09-17 20:19:22,285 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 20:19:22,290 - DEBUG - VRF ids for VN ctest-vn-89057035: {} 2024-09-17 20:19:22,290 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 20:19:22,297 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6 2024-09-17 20:19:22,310 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb 2024-09-17 20:19:22,390 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42 2024-09-17 20:19:22,407 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42 2024-09-17 20:19:22,420 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d 2024-09-17 20:19:22,430 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d 2024-09-17 20:19:22,439 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/67ec9d4d-3e34-4000-aad1-9e08420387b7 2024-09-17 20:19:22,446 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 20:19:22,446 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42 2024-09-17 20:19:22,460 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d 2024-09-17 20:19:22,480 - INFO - Verified VN network id 9 for VN 4c431662-02d1-4934-9aba-d50a49407c42 2024-09-17 20:19:22,480 - INFO - Verifications in API Server for VN ctest-vn-72578339 passed 2024-09-17 20:19:22,480 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42 2024-09-17 20:19:22,495 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d 2024-09-17 20:19:22,504 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d 2024-09-17 20:19:22,513 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/67ec9d4d-3e34-4000-aad1-9e08420387b7 2024-09-17 20:19:22,528 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19814295', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5495260580532013364', 'uuid-lslong': '11149458067664436290'}, 'enable': 'true', 'created': '2024-09-17T20:19:19', 'last-modified': '2024-09-17T20:19:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.579240'} 2024-09-17 20:19:22,534 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 20:19:22,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72578339 passed 2024-09-17 20:19:22,535 - DEBUG - ====Verifying policy data for ctest-vn-72578339 in API_Server ====== 2024-09-17 20:19:22,535 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 20:19:22,540 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6 2024-09-17 20:19:22,554 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb 2024-09-17 20:19:22,636 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42 2024-09-17 20:19:22,651 - DEBUG - ==>Verifying data for policy with id: 86b42733-0172-49ea-b245-74a3a67d1b31, fqn: ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076'] 2024-09-17 20:19:22,651 - INFO - VN ctest-vn-72578339 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 20:19:22,651 - DEBUG - Verifying the vn in opserver 2024-09-17 20:19:22,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339 virtual network link through opserver 10.0.0.65 2024-09-17 20:19:22,651 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2024-09-17 20:19:22,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339?flat'} 2024-09-17 20:19:22,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339 is found in opserver 2024-09-17 20:19:22,674 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 20:19:22,680 - DEBUG - VRF ids for VN ctest-vn-72578339: {} 2024-09-17 20:19:22,736 - DEBUG - Services list from nova: [, , ] 2024-09-17 20:19:23,772 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1971-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1971-1) 2024-09-17 20:19:25,098 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1971-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1971-1) 2024-09-17 20:19:25,098 - INFO - Waiting for VM ctest-TestBasicPolicy-19814295-96707932 to be up.. 2024-09-17 20:19:25,203 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 20:19:30,289 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:19:30,289 - INFO - VM name : ctest-TestBasicPolicy-19814295-96707932 2024-09-17 20:19:30,373 - DEBUG - VM ctest-TestBasicPolicy-19814295-96707932 ID is 075795ec-1a24-40da-a6fd-401fbebff025 2024-09-17 20:19:30,393 - DEBUG - VM ctest-TestBasicPolicy-19814295-96707932 launched on Node cn-jenkins-deploy-platform-ansible-os-1971-1 2024-09-17 20:19:30,477 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/075795ec-1a24-40da-a6fd-401fbebff025 2024-09-17 20:19:30,487 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/c6dbe7d8-e2a7-44b5-a7cb-c0dc5bf927f3 2024-09-17 20:19:33,749 - 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 1005ms') 2024-09-17 20:19:33,750 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19814295-96707932 failed! 2024-09-17 20:19:33,810 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035 is 40.175.4.129 and allocation pool is NOT set 2024-09-17 20:19:35,868 - 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=6.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.591 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.591/3.701/6.812/3.110 ms') 2024-09-17 20:19:35,868 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19814295-96707932 passed 2024-09-17 20:19:36,034 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:19:36,035 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19814295-96707932, IP 40.175.4.131, Port 22 2024-09-17 20:19:36,212 - DEBUG - VM ctest-TestBasicPolicy-19814295-96707932 is ready for SSH connections 2024-09-17 20:19:36,212 - INFO - Waiting for VM ctest-TestBasicPolicy-19814295-72414923 to be up.. 2024-09-17 20:19:36,301 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:19:36,301 - INFO - VM name : ctest-TestBasicPolicy-19814295-72414923 2024-09-17 20:19:36,387 - DEBUG - VM ctest-TestBasicPolicy-19814295-72414923 ID is fe6d3ed0-1492-465e-8dd9-9e2b946fd120 2024-09-17 20:19:36,387 - DEBUG - VM ctest-TestBasicPolicy-19814295-72414923 launched on Node cn-jenkins-deploy-platform-ansible-os-1971-1 2024-09-17 20:19:36,466 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/fe6d3ed0-1492-465e-8dd9-9e2b946fd120 2024-09-17 20:19:36,476 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/20048dfc-92b5-4752-bd81-5d27c847e68a 2024-09-17 20:19:37,736 - 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.32 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.376 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.376/1.850/3.324/1.474 ms') 2024-09-17 20:19:37,736 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-19814295-72414923 passed 2024-09-17 20:19:37,898 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:19:37,898 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19814295-72414923, IP 79.221.241.67, Port 22 2024-09-17 20:19:38,050 - DEBUG - VM ctest-TestBasicPolicy-19814295-72414923 is ready for SSH connections 2024-09-17 20:19:38,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:19:38,050 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.221.241.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-09-17 20:19:38,051 - DEBUG - ping -s 56 -c 3 -W 1 79.221.241.67 2024-09-17 20:19:42,020 - DEBUG - PING 79.221.241.67 (79.221.241.67): 56 data bytes 64 bytes from 79.221.241.67: seq=0 ttl=63 time=3.307 ms 64 bytes from 79.221.241.67: seq=1 ttl=63 time=1.129 ms 64 bytes from 79.221.241.67: seq=2 ttl=63 time=0.761 ms --- 79.221.241.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.761/1.732/3.307 ms 2024-09-17 20:19:42,020 - INFO - Ping to IP 79.221.241.67 from VM ctest-TestBasicPolicy-19814295-96707932 passed 2024-09-17 20:19:42,210 - DEBUG - Policy Update Response {"network-policy": {"uuid": "86b42733-0172-49ea-b245-74a3a67d1b31", "href": "http://10.0.0.65:8082/network-policy/86b42733-0172-49ea-b245-74a3a67d1b31"}} 2024-09-17 20:19:42,210 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:19:42,210 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.221.241.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-09-17 20:19:42,211 - DEBUG - ping -s 56 -c 3 -W 1 79.221.241.67 2024-09-17 20:19:45,414 - DEBUG - PING 79.221.241.67 (79.221.241.67): 56 data bytes 64 bytes from 79.221.241.67: seq=0 ttl=63 time=1.455 ms --- 79.221.241.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.455/1.455/1.455 ms 2024-09-17 20:19:45,414 - WARNING - Ping to IP 79.221.241.67 from VM ctest-TestBasicPolicy-19814295-96707932 failed 2024-09-17 20:19:45,414 - INFO - Deleting VM ctest-TestBasicPolicy-19814295-72414923 2024-09-17 20:19:45,477 - INFO - Deleting VM ctest-TestBasicPolicy-19814295-96707932 2024-09-17 20:19:45,938 - INFO - Deleted policy ctest-policy-allow-all-81734076 2024-09-17 20:19:45,938 - INFO - Deleting VN ctest-vn-72578339 2024-09-17 20:19:45,986 - DEBUG - VN 4c431662-02d1-4934-9aba-d50a49407c42 still in use: Unable to complete operation on network 4c431662-02d1-4934-9aba-d50a49407c42. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c5096e0f-ff24-4b40-b1a6-32c57ed1bce3'] 2024-09-17 20:19:45,986 - WARNING - Deleting VN ctest-vn-72578339 failed..Will retry 2024-09-17 20:19:48,096 - DEBUG - Response for deleting network () 2024-09-17 20:19:48,096 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d 2024-09-17 20:19:48,102 - DEBUG - Response Code: 404 2024-09-17 20:19:48,102 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 20:19:48,110 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6 2024-09-17 20:19:48,165 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb 2024-09-17 20:19:48,244 - INFO - Validated that VN ctest-vn-72578339 is not found in API Server 2024-09-17 20:19:48,255 - DEBUG - VN ctest-vn-72578339 is not present in Agent 10.0.0.65 2024-09-17 20:19:48,255 - INFO - Validated that VN ctest-vn-72578339 is not in any agent 2024-09-17 20:19:48,271 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72578339 info 2024-09-17 20:19:48,272 - INFO - Deleting VN ctest-vn-89057035 2024-09-17 20:19:48,393 - DEBUG - Response for deleting network () 2024-09-17 20:19:48,393 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e 2024-09-17 20:19:48,405 - DEBUG - Response Code: 404 2024-09-17 20:19:48,405 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2024-09-17 20:19:48,413 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6 2024-09-17 20:19:48,470 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb 2024-09-17 20:19:48,558 - INFO - Validated that VN ctest-vn-89057035 is not found in API Server 2024-09-17 20:19:48,571 - DEBUG - VN ctest-vn-89057035 is not present in Agent 10.0.0.65 2024-09-17 20:19:48,571 - INFO - Validated that VN ctest-vn-89057035 is not in any agent 2024-09-17 20:19:48,591 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89057035 info 2024-09-17 20:19:48,849 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 20:19:48,850 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-17 20:19:48,850 - INFO - -------------------------------------------------------------------------------- 2024-09-17 20:19:49,580 - INFO - Deleted project: ctest-TestBasicPolicy-19814295, ID : f5a0d429-c648-4b82-ab12-03e3761d3afb