2024-08-30 06:24:20,827 - INFO - Domain Default found not creating 2024-08-30 06:24:20,986 - INFO - Project ctest-TestBasicPolicy-29193156 not found, creating it 2024-08-30 06:24:21,501 - INFO - Created Project:ctest-TestBasicPolicy-29193156, ID : 4913acec-dfc9-4065-b5aa-6689561d6922 2024-08-30 06:24:23,098 - INFO - ================================================================================ 2024-08-30 06:24:23,098 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-30 06:24:23,098 - 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-08-30 06:24:23,362 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.18': '0'}} with 2024-08-30 06:24:23,362 - INFO - Initial checks done. Running the testcase now 2024-08-30 06:24:23,362 - INFO - 2024-08-30 06:24:23,943 - DEBUG - Response for create_network : {'network': {'id': '78dd607b-2eb4-4ca8-bae7-c421ad46e5f9', 'name': 'ctest-vn-63855203', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-63855203'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 06:24:24,102 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc0298b0-5e73-4ac8-8d3a-60765983695d', 'name': '', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'network_id': '78dd607b-2eb4-4ca8-bae7-c421ad46e5f9', 'ip_version': 4, 'cidr': '24.117.81.128/26', 'allocation_pools': [{'start': '24.117.81.130', 'end': '24.117.81.190'}], 'gateway_ip': '24.117.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.117.81.130', 'tags': [], 'project_id': '4913acecdfc94065b5aa6689561d6922'}} 2024-08-30 06:24:24,121 - INFO - Created VN ctest-vn-63855203 2024-08-30 06:24:24,172 - DEBUG - VN ctest-vn-63855203 UUID is 78dd607b-2eb4-4ca8-bae7-c421ad46e5f9 2024-08-30 06:24:24,502 - DEBUG - Response for create_network : {'network': {'id': '4b40cfad-265e-4021-b0d6-4dfb88cb3af5', 'name': 'ctest-vn-98444999', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-98444999'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 06:24:24,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '903b70db-4447-43df-954e-215ee0c8da63', 'name': '', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'network_id': '4b40cfad-265e-4021-b0d6-4dfb88cb3af5', 'ip_version': 4, 'cidr': '81.206.135.0/26', 'allocation_pools': [{'start': '81.206.135.2', 'end': '81.206.135.62'}], 'gateway_ip': '81.206.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.206.135.2', 'tags': [], 'project_id': '4913acecdfc94065b5aa6689561d6922'}} 2024-08-30 06:24:24,726 - INFO - Created VN ctest-vn-98444999 2024-08-30 06:24:24,776 - DEBUG - VN ctest-vn-98444999 UUID is 4b40cfad-265e-4021-b0d6-4dfb88cb3af5 2024-08-30 06:24:24,889 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203, 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-29193156:ctest-vn-98444999, 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-08-30 06:24:25,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78dd607b-2eb4-4ca8-bae7-c421ad46e5f9', 'name': 'ctest-vn-63855203', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc0298b0-5e73-4ac8-8d3a-60765983695d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-63855203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907']], 'subnet_ipam': [{'subnet_cidr': '24.117.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 06:24:25,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b40cfad-265e-4021-b0d6-4dfb88cb3af5', 'name': 'ctest-vn-98444999', 'tenant_id': '4913acecdfc94065b5aa6689561d6922', 'project_id': '4913acecdfc94065b5aa6689561d6922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['903b70db-4447-43df-954e-215ee0c8da63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-vn-98444999'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907']], 'subnet_ipam': [{'subnet_cidr': '81.206.135.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 06:24:25,620 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-30 06:24:25,922 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-30 06:24:25,951 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895 2024-08-30 06:24:25,965 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922 2024-08-30 06:24:26,040 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9 2024-08-30 06:24:26,049 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9 2024-08-30 06:24:26,057 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003 2024-08-30 06:24:26,063 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003 2024-08-30 06:24:26,069 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/26caab84-fd9f-40af-9566-05196b94cea6 2024-08-30 06:24:26,076 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 06:24:26,076 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9 2024-08-30 06:24:26,083 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003 2024-08-30 06:24:26,093 - INFO - Verified VN network id 9 for VN 78dd607b-2eb4-4ca8-bae7-c421ad46e5f9 2024-08-30 06:24:26,093 - INFO - Verifications in API Server for VN ctest-vn-63855203 passed 2024-08-30 06:24:26,093 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9 2024-08-30 06:24:26,101 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003 2024-08-30 06:24:26,110 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003 2024-08-30 06:24:26,121 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/26caab84-fd9f-40af-9566-05196b94cea6 2024-08-30 06:24:26,132 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29193156', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8709223336585219240', 'uuid-lslong': '13467948859594827257'}, 'enable': 'true', 'created': '2024-08-30T06:24:23', 'last-modified': '2024-08-30T06:24:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955249'} 2024-08-30 06:24:26,138 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 06:24:26,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63855203 passed 2024-08-30 06:24:26,138 - DEBUG - ====Verifying policy data for ctest-vn-63855203 in API_Server ====== 2024-08-30 06:24:26,138 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-30 06:24:26,143 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895 2024-08-30 06:24:26,154 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922 2024-08-30 06:24:26,229 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/78dd607b-2eb4-4ca8-bae7-c421ad46e5f9 2024-08-30 06:24:26,236 - DEBUG - ==>Verifying data for policy with id: 3ce9d972-9365-4a9b-b169-08d30059def3, fqn: ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907'] 2024-08-30 06:24:26,236 - INFO - VN ctest-vn-63855203 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 06:24:26,237 - DEBUG - Verifying the vn in opserver 2024-08-30 06:24:26,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203 virtual network link through opserver 10.0.0.46 2024-08-30 06:24:26,237 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-08-30 06:24:26,539 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-08-30 06:24:26,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203?flat'} 2024-08-30 06:24:26,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203 is found in opserver 2024-08-30 06:24:26,607 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 06:24:26,620 - DEBUG - VRF ids for VN ctest-vn-63855203: {} 2024-08-30 06:24:26,620 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-30 06:24:26,630 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895 2024-08-30 06:24:26,643 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922 2024-08-30 06:24:26,728 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5 2024-08-30 06:24:26,738 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5 2024-08-30 06:24:26,755 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1 2024-08-30 06:24:26,761 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1 2024-08-30 06:24:26,788 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/e9fd9481-b116-4713-a342-26b425569f99 2024-08-30 06:24:26,804 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 06:24:26,804 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5 2024-08-30 06:24:26,811 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1 2024-08-30 06:24:26,821 - INFO - Verified VN network id 10 for VN 4b40cfad-265e-4021-b0d6-4dfb88cb3af5 2024-08-30 06:24:26,821 - INFO - Verifications in API Server for VN ctest-vn-98444999 passed 2024-08-30 06:24:26,821 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5 2024-08-30 06:24:26,829 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1 2024-08-30 06:24:26,835 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1 2024-08-30 06:24:26,841 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/e9fd9481-b116-4713-a342-26b425569f99 2024-08-30 06:24:26,862 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29193156', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5422562293934080033', 'uuid-lslong': '12742457938418547445'}, 'enable': 'true', 'created': '2024-08-30T06:24:24', 'last-modified': '2024-08-30T06:24:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449573'} 2024-08-30 06:24:26,868 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 06:24:26,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98444999 passed 2024-08-30 06:24:26,868 - DEBUG - ====Verifying policy data for ctest-vn-98444999 in API_Server ====== 2024-08-30 06:24:26,868 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-30 06:24:26,873 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895 2024-08-30 06:24:26,884 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922 2024-08-30 06:24:26,951 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/4b40cfad-265e-4021-b0d6-4dfb88cb3af5 2024-08-30 06:24:26,959 - DEBUG - ==>Verifying data for policy with id: 3ce9d972-9365-4a9b-b169-08d30059def3, fqn: ['default-domain', 'ctest-TestBasicPolicy-29193156', 'ctest-policy-allow-all-60720907'] 2024-08-30 06:24:26,959 - INFO - VN ctest-vn-98444999 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 06:24:26,959 - DEBUG - Verifying the vn in opserver 2024-08-30 06:24:26,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999 virtual network link through opserver 10.0.0.46 2024-08-30 06:24:26,960 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-08-30 06:24:26,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999?flat'} 2024-08-30 06:24:26,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-98444999 is found in opserver 2024-08-30 06:24:26,979 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 06:24:26,985 - DEBUG - VRF ids for VN ctest-vn-98444999: {} 2024-08-30 06:24:27,039 - DEBUG - Services list from nova: [, , ] 2024-08-30 06:24:28,306 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1821-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1821-1) 2024-08-30 06:24:29,537 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1821-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1821-1) 2024-08-30 06:24:29,538 - INFO - Waiting for VM ctest-TestBasicPolicy-29193156-30931789 to be up.. 2024-08-30 06:24:29,653 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-30 06:24:34,741 - DEBUG - VM is in ACTIVE state now 2024-08-30 06:24:34,741 - INFO - VM name : ctest-TestBasicPolicy-29193156-30931789 2024-08-30 06:24:34,818 - DEBUG - VM ctest-TestBasicPolicy-29193156-30931789 ID is 321bd751-40cf-4fdb-a0f3-744f9fcb2c2e 2024-08-30 06:24:34,841 - DEBUG - VM ctest-TestBasicPolicy-29193156-30931789 launched on Node cn-jenkins-deploy-platform-ansible-os-1821-1 2024-08-30 06:24:34,916 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/321bd751-40cf-4fdb-a0f3-744f9fcb2c2e 2024-08-30 06:24:34,931 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/a01b9ea4-c3d5-49b1-90ba-ccb82b800388 2024-08-30 06:24:38,182 - 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 1010ms') 2024-08-30 06:24:38,182 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29193156-30931789 failed! 2024-08-30 06:24:38,240 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29193156:ctest-vn-63855203 is 24.117.81.129 and allocation pool is NOT set 2024-08-30 06:24:40,303 - 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.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.410 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.410/4.775/9.141/4.365 ms') 2024-08-30 06:24:40,303 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29193156-30931789 passed 2024-08-30 06:24:40,460 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 06:24:40,460 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29193156-30931789, IP 24.117.81.131, Port 22 2024-08-30 06:24:40,628 - DEBUG - VM ctest-TestBasicPolicy-29193156-30931789 is ready for SSH connections 2024-08-30 06:24:40,628 - INFO - Waiting for VM ctest-TestBasicPolicy-29193156-57321865 to be up.. 2024-08-30 06:24:40,730 - DEBUG - VM is in ACTIVE state now 2024-08-30 06:24:40,730 - INFO - VM name : ctest-TestBasicPolicy-29193156-57321865 2024-08-30 06:24:40,843 - DEBUG - VM ctest-TestBasicPolicy-29193156-57321865 ID is 1e83dd94-9720-4b33-851a-da995ec16d10 2024-08-30 06:24:40,843 - DEBUG - VM ctest-TestBasicPolicy-29193156-57321865 launched on Node cn-jenkins-deploy-platform-ansible-os-1821-1 2024-08-30 06:24:40,959 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/1e83dd94-9720-4b33-851a-da995ec16d10 2024-08-30 06:24:40,969 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/bca58528-05d1-450e-8555-67bcc2f6b66f 2024-08-30 06:24:42,230 - 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=5.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.38 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1005ms\r\nrtt min/avg/max/mdev = 1.378/3.363/5.348/1.985 ms') 2024-08-30 06:24:42,231 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-29193156-57321865 passed 2024-08-30 06:24:42,388 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 06:24:42,388 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29193156-57321865, IP 81.206.135.3, Port 22 2024-08-30 06:24:42,568 - DEBUG - VM ctest-TestBasicPolicy-29193156-57321865 is ready for SSH connections 2024-08-30 06:24:42,568 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 06:24:42,568 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.206.135.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-08-30 06:24:42,569 - DEBUG - ping -s 56 -c 3 -W 1 81.206.135.3 2024-08-30 06:24:46,692 - DEBUG - PING 81.206.135.3 (81.206.135.3): 56 data bytes 64 bytes from 81.206.135.3: seq=0 ttl=63 time=3.898 ms 64 bytes from 81.206.135.3: seq=1 ttl=63 time=1.037 ms 64 bytes from 81.206.135.3: seq=2 ttl=63 time=0.834 ms --- 81.206.135.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.834/1.923/3.898 ms 2024-08-30 06:24:46,692 - INFO - Ping to IP 81.206.135.3 from VM ctest-TestBasicPolicy-29193156-30931789 passed 2024-08-30 06:24:46,892 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3ce9d972-9365-4a9b-b169-08d30059def3", "href": "http://10.0.0.46:8082/network-policy/3ce9d972-9365-4a9b-b169-08d30059def3"}} 2024-08-30 06:24:46,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 06:24:46,893 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.206.135.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-08-30 06:24:46,893 - DEBUG - ping -s 56 -c 3 -W 1 81.206.135.3 2024-08-30 06:24:50,135 - DEBUG - PING 81.206.135.3 (81.206.135.3): 56 data bytes 64 bytes from 81.206.135.3: seq=0 ttl=63 time=1.264 ms --- 81.206.135.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.264/1.264/1.264 ms 2024-08-30 06:24:50,136 - WARNING - Ping to IP 81.206.135.3 from VM ctest-TestBasicPolicy-29193156-30931789 failed 2024-08-30 06:24:50,136 - INFO - Deleting VM ctest-TestBasicPolicy-29193156-57321865 2024-08-30 06:24:50,199 - INFO - Deleting VM ctest-TestBasicPolicy-29193156-30931789 2024-08-30 06:24:50,610 - INFO - Deleted policy ctest-policy-allow-all-60720907 2024-08-30 06:24:50,610 - INFO - Deleting VN ctest-vn-98444999 2024-08-30 06:24:50,656 - DEBUG - VN 4b40cfad-265e-4021-b0d6-4dfb88cb3af5 still in use: Unable to complete operation on network 4b40cfad-265e-4021-b0d6-4dfb88cb3af5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-307fc2bf-83e7-4b11-9db3-8f83111cc067'] 2024-08-30 06:24:50,656 - WARNING - Deleting VN ctest-vn-98444999 failed..Will retry 2024-08-30 06:24:52,792 - DEBUG - Response for deleting network () 2024-08-30 06:24:52,792 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/94c4ac1d-0caf-434a-9299-d634f4e8b3c1 2024-08-30 06:24:52,800 - DEBUG - Response Code: 404 2024-08-30 06:24:52,800 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-30 06:24:52,806 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895 2024-08-30 06:24:52,862 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922 2024-08-30 06:24:52,935 - INFO - Validated that VN ctest-vn-98444999 is not found in API Server 2024-08-30 06:24:52,945 - DEBUG - VN ctest-vn-98444999 is not present in Agent 10.0.0.46 2024-08-30 06:24:52,945 - INFO - Validated that VN ctest-vn-98444999 is not in any agent 2024-08-30 06:24:52,960 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98444999 info 2024-08-30 06:24:52,960 - INFO - Deleting VN ctest-vn-63855203 2024-08-30 06:24:53,070 - DEBUG - Response for deleting network () 2024-08-30 06:24:53,070 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/89d33837-bea8-4318-88a2-6b2875391003 2024-08-30 06:24:53,077 - DEBUG - Response Code: 404 2024-08-30 06:24:53,077 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-30 06:24:53,082 - DEBUG - Requesting: http://10.0.0.46:8082/domain/28705196-9998-4d57-831f-e844e15ea895 2024-08-30 06:24:53,137 - DEBUG - Requesting: http://10.0.0.46:8082/project/4913acec-dfc9-4065-b5aa-6689561d6922 2024-08-30 06:24:53,212 - INFO - Validated that VN ctest-vn-63855203 is not found in API Server 2024-08-30 06:24:53,228 - DEBUG - VN ctest-vn-63855203 is not present in Agent 10.0.0.46 2024-08-30 06:24:53,228 - INFO - Validated that VN ctest-vn-63855203 is not in any agent 2024-08-30 06:24:53,242 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63855203 info 2024-08-30 06:24:53,502 - DEBUG - No XMPP flaps were noticed during the test
2024-08-30 06:24:53,502 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-30 06:24:53,502 - INFO - -------------------------------------------------------------------------------- 2024-08-30 06:24:54,176 - INFO - Deleted project: ctest-TestBasicPolicy-29193156, ID : 4913acec-dfc9-4065-b5aa-6689561d6922