2024-11-08 17:17:33,637 - INFO - Domain Default found not creating 2024-11-08 17:17:33,860 - INFO - Project ctest-TestBasicPolicy-87986545 not found, creating it 2024-11-08 17:17:34,661 - INFO - Created Project:ctest-TestBasicPolicy-87986545, ID : 84db3b3b-d324-4952-9c55-feb3b406fe83 2024-11-08 17:17:36,272 - INFO - ================================================================================ 2024-11-08 17:17:36,273 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 17:17:36,273 - 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-11-08 17:17:36,529 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with 2024-11-08 17:17:36,529 - INFO - Initial checks done. Running the testcase now 2024-11-08 17:17:36,529 - INFO - 2024-11-08 17:17:37,125 - DEBUG - Response for create_network : {'network': {'id': '2e8083b4-284b-4ae9-87f0-ef73dbf1b244', 'name': 'ctest-vn-02610715', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-02610715'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 17:17:37,286 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed04ff3f-0501-4941-9939-7f52ae6a3068', 'name': '', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'network_id': '2e8083b4-284b-4ae9-87f0-ef73dbf1b244', 'ip_version': 4, 'cidr': '137.61.116.128/26', 'allocation_pools': [{'start': '137.61.116.130', 'end': '137.61.116.190'}], 'gateway_ip': '137.61.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.61.116.130', 'tags': [], 'project_id': '84db3b3bd32449529c55feb3b406fe83'}} 2024-11-08 17:17:37,307 - INFO - Created VN ctest-vn-02610715 2024-11-08 17:17:37,366 - DEBUG - VN ctest-vn-02610715 UUID is 2e8083b4-284b-4ae9-87f0-ef73dbf1b244 2024-11-08 17:17:37,693 - DEBUG - Response for create_network : {'network': {'id': '72bdd99c-7220-4680-9b8d-f1f440aa2b6c', 'name': 'ctest-vn-09114437', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-09114437'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 17:17:37,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '676a1eaf-fabb-4d56-b65a-bd4967ee84f8', 'name': '', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'network_id': '72bdd99c-7220-4680-9b8d-f1f440aa2b6c', 'ip_version': 4, 'cidr': '179.230.97.192/26', 'allocation_pools': [{'start': '179.230.97.194', 'end': '179.230.97.254'}], 'gateway_ip': '179.230.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.230.97.194', 'tags': [], 'project_id': '84db3b3bd32449529c55feb3b406fe83'}} 2024-11-08 17:17:37,896 - INFO - Created VN ctest-vn-09114437 2024-11-08 17:17:37,954 - DEBUG - VN ctest-vn-09114437 UUID is 72bdd99c-7220-4680-9b8d-f1f440aa2b6c 2024-11-08 17:17:38,078 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715, 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-87986545:ctest-vn-09114437, 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-11-08 17:17:38,406 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8083b4-284b-4ae9-87f0-ef73dbf1b244', 'name': 'ctest-vn-02610715', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed04ff3f-0501-4941-9939-7f52ae6a3068'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-02610715'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892']], 'subnet_ipam': [{'subnet_cidr': '137.61.116.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 17:17:38,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72bdd99c-7220-4680-9b8d-f1f440aa2b6c', 'name': 'ctest-vn-09114437', 'tenant_id': '84db3b3bd32449529c55feb3b406fe83', 'project_id': '84db3b3bd32449529c55feb3b406fe83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['676a1eaf-fabb-4d56-b65a-bd4967ee84f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-vn-09114437'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892']], 'subnet_ipam': [{'subnet_cidr': '179.230.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 17:17:38,878 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-08 17:17:39,185 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-08 17:17:39,519 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db 2024-11-08 17:17:39,541 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83 2024-11-08 17:17:39,644 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244 2024-11-08 17:17:39,661 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244 2024-11-08 17:17:39,678 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792 2024-11-08 17:17:39,689 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792 2024-11-08 17:17:39,699 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/471f02a7-93c3-4075-9e76-6758c20de650 2024-11-08 17:17:39,708 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 17:17:39,708 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244 2024-11-08 17:17:39,725 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792 2024-11-08 17:17:39,752 - INFO - Verified VN network id 8 for VN 2e8083b4-284b-4ae9-87f0-ef73dbf1b244 2024-11-08 17:17:39,752 - INFO - Verifications in API Server for VN ctest-vn-02610715 passed 2024-11-08 17:17:39,752 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244 2024-11-08 17:17:39,767 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792 2024-11-08 17:17:39,779 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792 2024-11-08 17:17:39,797 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/471f02a7-93c3-4075-9e76-6758c20de650 2024-11-08 17:17:39,815 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87986545', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3350822932557023977', 'uuid-lslong': '9795592470421156420'}, 'enable': 'true', 'created': '2024-11-08T17:17:37', 'last-modified': '2024-11-08T17:17:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.440936'} 2024-11-08 17:17:39,823 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 17:17:39,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02610715 passed 2024-11-08 17:17:39,824 - DEBUG - ====Verifying policy data for ctest-vn-02610715 in API_Server ====== 2024-11-08 17:17:39,824 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-08 17:17:39,833 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db 2024-11-08 17:17:39,849 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83 2024-11-08 17:17:39,936 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e8083b4-284b-4ae9-87f0-ef73dbf1b244 2024-11-08 17:17:39,955 - DEBUG - ==>Verifying data for policy with id: 2c1d7087-bcfa-41e4-9384-80dff311a8b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892'] 2024-11-08 17:17:39,955 - INFO - VN ctest-vn-02610715 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 17:17:39,955 - DEBUG - Verifying the vn in opserver 2024-11-08 17:17:39,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715 virtual network link through opserver 10.0.0.27 2024-11-08 17:17:39,955 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-11-08 17:17:40,266 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-11-08 17:17:40,348 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715?flat'} 2024-11-08 17:17:40,348 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715 is found in opserver 2024-11-08 17:17:40,365 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 17:17:40,373 - DEBUG - VRF ids for VN ctest-vn-02610715: {} 2024-11-08 17:17:40,373 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-08 17:17:40,381 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db 2024-11-08 17:17:40,394 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83 2024-11-08 17:17:40,480 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c 2024-11-08 17:17:40,496 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c 2024-11-08 17:17:40,513 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859 2024-11-08 17:17:40,522 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859 2024-11-08 17:17:40,532 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3c8c81db-89bc-428a-b0f5-f73240ea399c 2024-11-08 17:17:40,541 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 17:17:40,541 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c 2024-11-08 17:17:40,555 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859 2024-11-08 17:17:40,579 - INFO - Verified VN network id 9 for VN 72bdd99c-7220-4680-9b8d-f1f440aa2b6c 2024-11-08 17:17:40,579 - INFO - Verifications in API Server for VN ctest-vn-09114437 passed 2024-11-08 17:17:40,579 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c 2024-11-08 17:17:40,595 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859 2024-11-08 17:17:40,608 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859 2024-11-08 17:17:40,618 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3c8c81db-89bc-428a-b0f5-f73240ea399c 2024-11-08 17:17:40,633 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87986545', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8268003756874942080', 'uuid-lslong': '11208881078954240876'}, 'enable': 'true', 'created': '2024-11-08T17:17:37', 'last-modified': '2024-11-08T17:17:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.990218'} 2024-11-08 17:17:40,639 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 17:17:40,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09114437 passed 2024-11-08 17:17:40,640 - DEBUG - ====Verifying policy data for ctest-vn-09114437 in API_Server ====== 2024-11-08 17:17:40,640 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-08 17:17:40,646 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db 2024-11-08 17:17:40,660 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83 2024-11-08 17:17:40,740 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/72bdd99c-7220-4680-9b8d-f1f440aa2b6c 2024-11-08 17:17:40,756 - DEBUG - ==>Verifying data for policy with id: 2c1d7087-bcfa-41e4-9384-80dff311a8b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-87986545', 'ctest-policy-allow-all-69738892'] 2024-11-08 17:17:40,756 - INFO - VN ctest-vn-09114437 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 17:17:40,756 - DEBUG - Verifying the vn in opserver 2024-11-08 17:17:40,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437 virtual network link through opserver 10.0.0.27 2024-11-08 17:17:40,756 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-11-08 17:17:40,771 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437?flat'} 2024-11-08 17:17:40,771 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-09114437 is found in opserver 2024-11-08 17:17:40,783 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 17:17:40,789 - DEBUG - VRF ids for VN ctest-vn-09114437: {} 2024-11-08 17:17:40,851 - DEBUG - Services list from nova: [, , ] 2024-11-08 17:17:41,955 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2236-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2236-1) 2024-11-08 17:17:43,301 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2236-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2236-1) 2024-11-08 17:17:43,301 - INFO - Waiting for VM ctest-TestBasicPolicy-87986545-36278187 to be up.. 2024-11-08 17:17:43,424 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 17:17:48,521 - DEBUG - VM is in ACTIVE state now 2024-11-08 17:17:48,521 - INFO - VM name : ctest-TestBasicPolicy-87986545-36278187 2024-11-08 17:17:48,633 - DEBUG - VM ctest-TestBasicPolicy-87986545-36278187 ID is 41cf8e5c-af9d-42e1-aaea-e9116e89f691 2024-11-08 17:17:48,653 - DEBUG - VM ctest-TestBasicPolicy-87986545-36278187 launched on Node cn-jenkins-deploy-platform-ansible-os-2236-1 2024-11-08 17:17:48,751 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/41cf8e5c-af9d-42e1-aaea-e9116e89f691 2024-11-08 17:17:48,762 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/e2b3f7ad-3d14-43b2-b84d-44be08b7be26 2024-11-08 17:17:52,056 - 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 1030ms') 2024-11-08 17:17:52,057 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87986545-36278187 failed! 2024-11-08 17:17:52,118 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87986545:ctest-vn-02610715 is 137.61.116.129 and allocation pool is NOT set 2024-11-08 17:17:54,183 - 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=9.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.35 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 = 1.349/5.275/9.202/3.926 ms') 2024-11-08 17:17:54,183 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87986545-36278187 passed 2024-11-08 17:17:54,342 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 17:17:54,342 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87986545-36278187, IP 137.61.116.131, Port 22 2024-11-08 17:17:54,505 - DEBUG - VM ctest-TestBasicPolicy-87986545-36278187 is ready for SSH connections 2024-11-08 17:17:54,505 - INFO - Waiting for VM ctest-TestBasicPolicy-87986545-49544285 to be up.. 2024-11-08 17:17:54,600 - DEBUG - VM is in ACTIVE state now 2024-11-08 17:17:54,600 - INFO - VM name : ctest-TestBasicPolicy-87986545-49544285 2024-11-08 17:17:54,683 - DEBUG - VM ctest-TestBasicPolicy-87986545-49544285 ID is 4d3eedff-90fe-4a20-8473-f4674227210c 2024-11-08 17:17:54,683 - DEBUG - VM ctest-TestBasicPolicy-87986545-49544285 launched on Node cn-jenkins-deploy-platform-ansible-os-2236-1 2024-11-08 17:17:54,777 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/4d3eedff-90fe-4a20-8473-f4674227210c 2024-11-08 17:17:54,790 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/115a3d0b-7c75-4943-a1c8-8eecec79a097 2024-11-08 17:17:56,100 - 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=4.45 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.58 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 = 1.577/3.014/4.451/1.437 ms') 2024-11-08 17:17:56,100 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87986545-49544285 passed 2024-11-08 17:17:56,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 17:17:56,266 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87986545-49544285, IP 179.230.97.195, Port 22 2024-11-08 17:17:56,421 - DEBUG - VM ctest-TestBasicPolicy-87986545-49544285 is ready for SSH connections 2024-11-08 17:17:56,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 17:17:56,422 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.230.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-11-08 17:17:56,422 - DEBUG - ping -s 56 -c 3 -W 1 179.230.97.195 2024-11-08 17:18:00,443 - DEBUG - PING 179.230.97.195 (179.230.97.195): 56 data bytes 64 bytes from 179.230.97.195: seq=0 ttl=63 time=3.354 ms 64 bytes from 179.230.97.195: seq=1 ttl=63 time=1.076 ms 64 bytes from 179.230.97.195: seq=2 ttl=63 time=0.994 ms --- 179.230.97.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.994/1.808/3.354 ms 2024-11-08 17:18:00,443 - INFO - Ping to IP 179.230.97.195 from VM ctest-TestBasicPolicy-87986545-36278187 passed 2024-11-08 17:18:00,642 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2c1d7087-bcfa-41e4-9384-80dff311a8b0", "href": "http://10.0.0.27:8082/network-policy/2c1d7087-bcfa-41e4-9384-80dff311a8b0"}} 2024-11-08 17:18:00,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 17:18:00,642 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.230.97.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-11-08 17:18:00,642 - DEBUG - ping -s 56 -c 3 -W 1 179.230.97.195 2024-11-08 17:18:03,857 - DEBUG - PING 179.230.97.195 (179.230.97.195): 56 data bytes 64 bytes from 179.230.97.195: seq=0 ttl=63 time=1.502 ms --- 179.230.97.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.502/1.502/1.502 ms 2024-11-08 17:18:03,857 - WARNING - Ping to IP 179.230.97.195 from VM ctest-TestBasicPolicy-87986545-36278187 failed 2024-11-08 17:18:03,857 - INFO - Deleting VM ctest-TestBasicPolicy-87986545-49544285 2024-11-08 17:18:03,930 - INFO - Deleting VM ctest-TestBasicPolicy-87986545-36278187 2024-11-08 17:18:04,373 - INFO - Deleted policy ctest-policy-allow-all-69738892 2024-11-08 17:18:04,373 - INFO - Deleting VN ctest-vn-09114437 2024-11-08 17:18:04,415 - DEBUG - VN 72bdd99c-7220-4680-9b8d-f1f440aa2b6c still in use: Unable to complete operation on network 72bdd99c-7220-4680-9b8d-f1f440aa2b6c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3039ae31-ef61-4686-a145-8b7b6507b0d0'] 2024-11-08 17:18:04,415 - WARNING - Deleting VN ctest-vn-09114437 failed..Will retry 2024-11-08 17:18:06,527 - DEBUG - Response for deleting network () 2024-11-08 17:18:06,527 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4eb858e4-76f5-42ab-9eef-286ec56c8859 2024-11-08 17:18:06,533 - DEBUG - Response Code: 404 2024-11-08 17:18:06,533 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-08 17:18:06,542 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db 2024-11-08 17:18:06,596 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83 2024-11-08 17:18:06,676 - INFO - Validated that VN ctest-vn-09114437 is not found in API Server 2024-11-08 17:18:06,687 - DEBUG - VN ctest-vn-09114437 is not present in Agent 10.0.0.27 2024-11-08 17:18:06,687 - INFO - Validated that VN ctest-vn-09114437 is not in any agent 2024-11-08 17:18:06,701 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09114437 info 2024-11-08 17:18:06,701 - INFO - Deleting VN ctest-vn-02610715 2024-11-08 17:18:06,806 - DEBUG - Response for deleting network () 2024-11-08 17:18:06,806 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09421807-0473-422a-8c05-000759869792 2024-11-08 17:18:06,815 - DEBUG - Response Code: 404 2024-11-08 17:18:06,815 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-08 17:18:06,821 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ad0805ff-b490-4f2b-9ecc-28d42db931db 2024-11-08 17:18:06,876 - DEBUG - Requesting: http://10.0.0.27:8082/project/84db3b3b-d324-4952-9c55-feb3b406fe83 2024-11-08 17:18:06,962 - INFO - Validated that VN ctest-vn-02610715 is not found in API Server 2024-11-08 17:18:06,975 - DEBUG - VN ctest-vn-02610715 is not present in Agent 10.0.0.27 2024-11-08 17:18:06,975 - INFO - Validated that VN ctest-vn-02610715 is not in any agent 2024-11-08 17:18:06,993 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02610715 info 2024-11-08 17:18:07,248 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 17:18:07,248 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-11-08 17:18:07,248 - INFO - -------------------------------------------------------------------------------- 2024-11-08 17:18:07,970 - INFO - Deleted project: ctest-TestBasicPolicy-87986545, ID : 84db3b3b-d324-4952-9c55-feb3b406fe83