2024-09-19 21:56:14,791 - INFO - Domain Default found not creating 2024-09-19 21:56:14,966 - INFO - Project ctest-TestBasicPolicy-59430375 not found, creating it 2024-09-19 21:56:15,467 - INFO - Created Project:ctest-TestBasicPolicy-59430375, ID : 7705af86-5ce8-4256-9482-1f316432d2e5 2024-09-19 21:56:16,968 - INFO - ================================================================================ 2024-09-19 21:56:16,968 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-19 21:56:16,968 - 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-19 21:56:17,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.13': '0'}} with 2024-09-19 21:56:17,222 - INFO - Initial checks done. Running the testcase now 2024-09-19 21:56:17,222 - INFO - 2024-09-19 21:56:17,789 - DEBUG - Response for create_network : {'network': {'id': 'd6ff16d7-89df-4ae8-8d66-3229f8d87ef5', 'name': 'ctest-vn-69977883', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-69977883'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 21:56:17,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '390fdcee-03a7-4e4b-92c0-57130a410031', 'name': '', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'network_id': 'd6ff16d7-89df-4ae8-8d66-3229f8d87ef5', 'ip_version': 4, 'cidr': '115.182.185.192/26', 'allocation_pools': [{'start': '115.182.185.194', 'end': '115.182.185.254'}], 'gateway_ip': '115.182.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.182.185.194', 'tags': [], 'project_id': '7705af865ce8425694821f316432d2e5'}} 2024-09-19 21:56:17,993 - INFO - Created VN ctest-vn-69977883 2024-09-19 21:56:18,052 - DEBUG - VN ctest-vn-69977883 UUID is d6ff16d7-89df-4ae8-8d66-3229f8d87ef5 2024-09-19 21:56:18,375 - DEBUG - Response for create_network : {'network': {'id': 'e4d96ee9-f84f-46f5-abb8-baa8668f3ca4', 'name': 'ctest-vn-72022455', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-72022455'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 21:56:18,571 - DEBUG - Response for create_subnet : {'subnet': {'id': '9969c978-d413-4334-b655-c1802650ad69', 'name': '', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'network_id': 'e4d96ee9-f84f-46f5-abb8-baa8668f3ca4', 'ip_version': 4, 'cidr': '200.112.25.192/26', 'allocation_pools': [{'start': '200.112.25.194', 'end': '200.112.25.254'}], 'gateway_ip': '200.112.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.112.25.194', 'tags': [], 'project_id': '7705af865ce8425694821f316432d2e5'}} 2024-09-19 21:56:18,589 - INFO - Created VN ctest-vn-72022455 2024-09-19 21:56:18,648 - DEBUG - VN ctest-vn-72022455 UUID is e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 2024-09-19 21:56:18,769 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883, 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-59430375:ctest-vn-72022455, 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-19 21:56:19,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6ff16d7-89df-4ae8-8d66-3229f8d87ef5', 'name': 'ctest-vn-69977883', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['390fdcee-03a7-4e4b-92c0-57130a410031'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-69977883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282']], 'subnet_ipam': [{'subnet_cidr': '115.182.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 21:56:19,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4d96ee9-f84f-46f5-abb8-baa8668f3ca4', 'name': 'ctest-vn-72022455', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9969c978-d413-4334-b655-c1802650ad69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-72022455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282']], 'subnet_ipam': [{'subnet_cidr': '200.112.25.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 21:56:19,544 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-19 21:56:19,843 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-19 21:56:19,888 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63 2024-09-19 21:56:19,903 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5 2024-09-19 21:56:20,142 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5 2024-09-19 21:56:20,161 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5 2024-09-19 21:56:20,218 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907 2024-09-19 21:56:20,247 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907 2024-09-19 21:56:20,261 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a626d74a-37bb-47e5-872c-789805b66dcc 2024-09-19 21:56:20,278 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 21:56:20,278 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5 2024-09-19 21:56:20,303 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907 2024-09-19 21:56:20,353 - INFO - Verified VN network id 9 for VN d6ff16d7-89df-4ae8-8d66-3229f8d87ef5 2024-09-19 21:56:20,353 - INFO - Verifications in API Server for VN ctest-vn-69977883 passed 2024-09-19 21:56:20,353 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5 2024-09-19 21:56:20,370 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907 2024-09-19 21:56:20,384 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907 2024-09-19 21:56:20,393 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a626d74a-37bb-47e5-872c-789805b66dcc 2024-09-19 21:56:20,410 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59430375', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15492126358164687592', 'uuid-lslong': '10188886362822311669'}, 'enable': 'true', 'created': '2024-09-19T21:56:17', 'last-modified': '2024-09-19T21:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354440'} 2024-09-19 21:56:20,432 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 21:56:20,433 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69977883 passed 2024-09-19 21:56:20,433 - DEBUG - ====Verifying policy data for ctest-vn-69977883 in API_Server ====== 2024-09-19 21:56:20,433 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-19 21:56:20,448 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63 2024-09-19 21:56:20,469 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5 2024-09-19 21:56:20,572 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5 2024-09-19 21:56:20,599 - DEBUG - ==>Verifying data for policy with id: 42c6a04e-3661-44b7-a9d3-adc9e519c358, fqn: ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282'] 2024-09-19 21:56:20,599 - INFO - VN ctest-vn-69977883 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 21:56:20,599 - DEBUG - Verifying the vn in opserver 2024-09-19 21:56:20,599 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883 virtual network link through opserver 10.0.0.28 2024-09-19 21:56:20,599 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-19 21:56:20,927 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-19 21:56:20,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883?flat'} 2024-09-19 21:56:20,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883 is found in opserver 2024-09-19 21:56:21,005 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 21:56:21,010 - DEBUG - VRF ids for VN ctest-vn-69977883: {} 2024-09-19 21:56:21,010 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-19 21:56:21,017 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63 2024-09-19 21:56:21,038 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5 2024-09-19 21:56:21,124 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 2024-09-19 21:56:21,140 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 2024-09-19 21:56:21,153 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f 2024-09-19 21:56:21,163 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f 2024-09-19 21:56:21,172 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/7c8b8266-93e8-416a-a893-d1890e84abd3 2024-09-19 21:56:21,179 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 21:56:21,179 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 2024-09-19 21:56:21,194 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f 2024-09-19 21:56:21,217 - INFO - Verified VN network id 10 for VN e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 2024-09-19 21:56:21,217 - INFO - Verifications in API Server for VN ctest-vn-72022455 passed 2024-09-19 21:56:21,217 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 2024-09-19 21:56:21,235 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f 2024-09-19 21:56:21,245 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f 2024-09-19 21:56:21,254 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/7c8b8266-93e8-416a-a893-d1890e84abd3 2024-09-19 21:56:21,268 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59430375', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16490333461766162165', 'uuid-lslong': '12373845208638373028'}, 'enable': 'true', 'created': '2024-09-19T21:56:18', 'last-modified': '2024-09-19T21:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.956118'} 2024-09-19 21:56:21,274 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 21:56:21,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72022455 passed 2024-09-19 21:56:21,275 - DEBUG - ====Verifying policy data for ctest-vn-72022455 in API_Server ====== 2024-09-19 21:56:21,275 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-19 21:56:21,281 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63 2024-09-19 21:56:21,299 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5 2024-09-19 21:56:21,375 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 2024-09-19 21:56:21,388 - DEBUG - ==>Verifying data for policy with id: 42c6a04e-3661-44b7-a9d3-adc9e519c358, fqn: ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282'] 2024-09-19 21:56:21,389 - INFO - VN ctest-vn-72022455 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 21:56:21,389 - DEBUG - Verifying the vn in opserver 2024-09-19 21:56:21,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455 virtual network link through opserver 10.0.0.28 2024-09-19 21:56:21,389 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-19 21:56:21,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455?flat'} 2024-09-19 21:56:21,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455 is found in opserver 2024-09-19 21:56:21,443 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 21:56:21,450 - DEBUG - VRF ids for VN ctest-vn-72022455: {} 2024-09-19 21:56:21,501 - DEBUG - Services list from nova: [, , ] 2024-09-19 21:56:22,562 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2007-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2007-1) 2024-09-19 21:56:23,827 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2007-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2007-1) 2024-09-19 21:56:23,827 - INFO - Waiting for VM ctest-TestBasicPolicy-59430375-30494133 to be up.. 2024-09-19 21:56:23,912 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 21:56:29,006 - DEBUG - VM is in ACTIVE state now 2024-09-19 21:56:29,006 - INFO - VM name : ctest-TestBasicPolicy-59430375-30494133 2024-09-19 21:56:29,087 - DEBUG - VM ctest-TestBasicPolicy-59430375-30494133 ID is 5dded4ee-623e-456c-9837-6ce43edd4c15 2024-09-19 21:56:29,109 - DEBUG - VM ctest-TestBasicPolicy-59430375-30494133 launched on Node cn-jenkins-deploy-platform-ansible-os-2007-1 2024-09-19 21:56:29,194 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/5dded4ee-623e-456c-9837-6ce43edd4c15 2024-09-19 21:56:29,204 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/7f6394a8-40fc-4bb0-a741-3c75da1f3daf 2024-09-19 21:56:32,495 - 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 1031ms') 2024-09-19 21:56:32,495 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59430375-30494133 failed! 2024-09-19 21:56:32,555 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883 is 115.182.185.193 and allocation pool is NOT set 2024-09-19 21:56:34,622 - 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.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.638 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.638/2.200/3.762/1.562 ms') 2024-09-19 21:56:34,623 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59430375-30494133 passed 2024-09-19 21:56:34,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 21:56:34,788 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59430375-30494133, IP 115.182.185.195, Port 22 2024-09-19 21:56:34,948 - DEBUG - VM ctest-TestBasicPolicy-59430375-30494133 is ready for SSH connections 2024-09-19 21:56:34,948 - INFO - Waiting for VM ctest-TestBasicPolicy-59430375-26778015 to be up.. 2024-09-19 21:56:35,042 - DEBUG - VM is in ACTIVE state now 2024-09-19 21:56:35,042 - INFO - VM name : ctest-TestBasicPolicy-59430375-26778015 2024-09-19 21:56:35,124 - DEBUG - VM ctest-TestBasicPolicy-59430375-26778015 ID is 5014ddb4-bbf2-425c-ab15-0d48322d4b96 2024-09-19 21:56:35,124 - DEBUG - VM ctest-TestBasicPolicy-59430375-26778015 launched on Node cn-jenkins-deploy-platform-ansible-os-2007-1 2024-09-19 21:56:35,207 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/5014ddb4-bbf2-425c-ab15-0d48322d4b96 2024-09-19 21:56:35,219 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/fe80597c-a5bb-4259-aead-a495c646611d 2024-09-19 21:56:36,488 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.27 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.532 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.532/1.898/3.265/1.366 ms') 2024-09-19 21:56:36,488 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59430375-26778015 passed 2024-09-19 21:56:36,644 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 21:56:36,644 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59430375-26778015, IP 200.112.25.195, Port 22 2024-09-19 21:56:36,811 - DEBUG - VM ctest-TestBasicPolicy-59430375-26778015 is ready for SSH connections 2024-09-19 21:56:36,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 21:56:36,811 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.112.25.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-19 21:56:36,812 - DEBUG - ping -s 56 -c 3 -W 1 200.112.25.195 2024-09-19 21:56:40,792 - DEBUG - PING 200.112.25.195 (200.112.25.195): 56 data bytes 64 bytes from 200.112.25.195: seq=0 ttl=63 time=3.490 ms 64 bytes from 200.112.25.195: seq=1 ttl=63 time=0.841 ms 64 bytes from 200.112.25.195: seq=2 ttl=63 time=1.313 ms --- 200.112.25.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.841/1.881/3.490 ms 2024-09-19 21:56:40,792 - INFO - Ping to IP 200.112.25.195 from VM ctest-TestBasicPolicy-59430375-30494133 passed 2024-09-19 21:56:40,984 - DEBUG - Policy Update Response {"network-policy": {"uuid": "42c6a04e-3661-44b7-a9d3-adc9e519c358", "href": "http://10.0.0.28:8082/network-policy/42c6a04e-3661-44b7-a9d3-adc9e519c358"}} 2024-09-19 21:56:40,984 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 21:56:40,984 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.112.25.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-19 21:56:40,984 - DEBUG - ping -s 56 -c 3 -W 1 200.112.25.195 2024-09-19 21:56:44,186 - DEBUG - PING 200.112.25.195 (200.112.25.195): 56 data bytes 64 bytes from 200.112.25.195: seq=0 ttl=63 time=1.165 ms --- 200.112.25.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.165/1.165/1.165 ms 2024-09-19 21:56:44,186 - WARNING - Ping to IP 200.112.25.195 from VM ctest-TestBasicPolicy-59430375-30494133 failed 2024-09-19 21:56:44,186 - INFO - Deleting VM ctest-TestBasicPolicy-59430375-26778015 2024-09-19 21:56:44,252 - INFO - Deleting VM ctest-TestBasicPolicy-59430375-30494133 2024-09-19 21:56:44,710 - INFO - Deleted policy ctest-policy-allow-all-46067282 2024-09-19 21:56:44,710 - INFO - Deleting VN ctest-vn-72022455 2024-09-19 21:56:44,755 - DEBUG - VN e4d96ee9-f84f-46f5-abb8-baa8668f3ca4 still in use: Unable to complete operation on network e4d96ee9-f84f-46f5-abb8-baa8668f3ca4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a802a008-f6d3-47d4-9cb6-4d53e250ec0d'] 2024-09-19 21:56:44,756 - WARNING - Deleting VN ctest-vn-72022455 failed..Will retry 2024-09-19 21:56:46,908 - DEBUG - Response for deleting network () 2024-09-19 21:56:46,908 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f 2024-09-19 21:56:46,916 - DEBUG - Response Code: 404 2024-09-19 21:56:46,916 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-19 21:56:46,922 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63 2024-09-19 21:56:46,979 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5 2024-09-19 21:56:47,061 - INFO - Validated that VN ctest-vn-72022455 is not found in API Server 2024-09-19 21:56:47,072 - DEBUG - VN ctest-vn-72022455 is not present in Agent 10.0.0.28 2024-09-19 21:56:47,072 - INFO - Validated that VN ctest-vn-72022455 is not in any agent 2024-09-19 21:56:47,088 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72022455 info 2024-09-19 21:56:47,088 - INFO - Deleting VN ctest-vn-69977883 2024-09-19 21:56:47,194 - DEBUG - Response for deleting network () 2024-09-19 21:56:47,194 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907 2024-09-19 21:56:47,203 - DEBUG - Response Code: 404 2024-09-19 21:56:47,203 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-19 21:56:47,209 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63 2024-09-19 21:56:47,262 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5 2024-09-19 21:56:47,347 - INFO - Validated that VN ctest-vn-69977883 is not found in API Server 2024-09-19 21:56:47,359 - DEBUG - VN ctest-vn-69977883 is not present in Agent 10.0.0.28 2024-09-19 21:56:47,359 - INFO - Validated that VN ctest-vn-69977883 is not in any agent 2024-09-19 21:56:47,377 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69977883 info 2024-09-19 21:56:47,641 - DEBUG - No XMPP flaps were noticed during the test
2024-09-19 21:56:47,641 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-09-19 21:56:47,641 - INFO - -------------------------------------------------------------------------------- 2024-09-19 21:56:48,321 - INFO - Deleted project: ctest-TestBasicPolicy-59430375, ID : 7705af86-5ce8-4256-9482-1f316432d2e5