2024-11-05 11:51:31,027 - INFO - Domain Default found not creating 2024-11-05 11:51:31,330 - INFO - Project ctest-TestBasicPolicy-64381694 not found, creating it 2024-11-05 11:51:32,334 - INFO - Created Project:ctest-TestBasicPolicy-64381694, ID : ed19980c-3ffc-46af-8a51-d7c69a1bdb5f 2024-11-05 11:51:34,115 - INFO - ================================================================================ 2024-11-05 11:51:34,115 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-05 11:51:34,115 - 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-05 11:51:34,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.29': '0'}} with 2024-11-05 11:51:34,378 - INFO - Initial checks done. Running the testcase now 2024-11-05 11:51:34,378 - INFO - 2024-11-05 11:51:35,097 - DEBUG - Response for create_network : {'network': {'id': '8821bbef-6d53-4715-897c-89b57a6ee0a2', 'name': 'ctest-vn-13134779', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-13134779'], 'port_security_enabled': True, 'description': ''}} 2024-11-05 11:51:35,349 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8c1991f-ecd4-4025-a5bf-4b563549e0dc', 'name': '', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'network_id': '8821bbef-6d53-4715-897c-89b57a6ee0a2', 'ip_version': 4, 'cidr': '119.121.212.128/26', 'allocation_pools': [{'start': '119.121.212.130', 'end': '119.121.212.190'}], 'gateway_ip': '119.121.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.121.212.130', 'tags': [], 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f'}} 2024-11-05 11:51:35,377 - INFO - Created VN ctest-vn-13134779 2024-11-05 11:51:35,439 - DEBUG - VN ctest-vn-13134779 UUID is 8821bbef-6d53-4715-897c-89b57a6ee0a2 2024-11-05 11:51:35,840 - DEBUG - Response for create_network : {'network': {'id': 'c8a63f86-de16-456e-bc20-294344ba3ef3', 'name': 'ctest-vn-24493284', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-24493284'], 'port_security_enabled': True, 'description': ''}} 2024-11-05 11:51:36,088 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e49b086-0c65-4602-b306-124752edf4bb', 'name': '', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'network_id': 'c8a63f86-de16-456e-bc20-294344ba3ef3', 'ip_version': 4, 'cidr': '205.18.17.128/26', 'allocation_pools': [{'start': '205.18.17.130', 'end': '205.18.17.190'}], 'gateway_ip': '205.18.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.18.17.130', 'tags': [], 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f'}} 2024-11-05 11:51:36,112 - INFO - Created VN ctest-vn-24493284 2024-11-05 11:51:36,171 - DEBUG - VN ctest-vn-24493284 UUID is c8a63f86-de16-456e-bc20-294344ba3ef3 2024-11-05 11:51:36,317 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779, 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-64381694:ctest-vn-24493284, 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-05 11:51:36,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8821bbef-6d53-4715-897c-89b57a6ee0a2', 'name': 'ctest-vn-13134779', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8c1991f-ecd4-4025-a5bf-4b563549e0dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-13134779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338']], 'subnet_ipam': [{'subnet_cidr': '119.121.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-05 11:51:36,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8a63f86-de16-456e-bc20-294344ba3ef3', 'name': 'ctest-vn-24493284', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e49b086-0c65-4602-b306-124752edf4bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-24493284'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338']], 'subnet_ipam': [{'subnet_cidr': '205.18.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-05 11:51:37,127 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-05 11:51:37,491 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-05 11:51:37,870 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf 2024-11-05 11:51:37,897 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f 2024-11-05 11:51:37,995 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2 2024-11-05 11:51:38,014 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2 2024-11-05 11:51:38,031 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65 2024-11-05 11:51:38,042 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65 2024-11-05 11:51:38,053 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/43d9defe-89d9-4c67-b784-15118f271206 2024-11-05 11:51:38,063 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-05 11:51:38,063 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2 2024-11-05 11:51:38,081 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65 2024-11-05 11:51:38,110 - INFO - Verified VN network id 8 for VN 8821bbef-6d53-4715-897c-89b57a6ee0a2 2024-11-05 11:51:38,110 - INFO - Verifications in API Server for VN ctest-vn-13134779 passed 2024-11-05 11:51:38,111 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2 2024-11-05 11:51:38,136 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65 2024-11-05 11:51:38,152 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65 2024-11-05 11:51:38,163 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/43d9defe-89d9-4c67-b784-15118f271206 2024-11-05 11:51:38,178 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64381694', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9809328100395403029', 'uuid-lslong': '9906944692844421282'}, 'enable': 'true', 'created': '2024-11-05T11:51:35', 'last-modified': '2024-11-05T11:51:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.537821'} 2024-11-05 11:51:38,186 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-05 11:51:38,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13134779 passed 2024-11-05 11:51:38,187 - DEBUG - ====Verifying policy data for ctest-vn-13134779 in API_Server ====== 2024-11-05 11:51:38,187 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-05 11:51:38,195 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf 2024-11-05 11:51:38,210 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f 2024-11-05 11:51:38,300 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2 2024-11-05 11:51:38,324 - DEBUG - ==>Verifying data for policy with id: 7cce0eb9-1e7e-4d36-90c0-ffb70d0fedb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338'] 2024-11-05 11:51:38,324 - INFO - VN ctest-vn-13134779 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-05 11:51:38,324 - DEBUG - Verifying the vn in opserver 2024-11-05 11:51:38,324 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779 virtual network link through opserver 10.0.0.40 2024-11-05 11:51:38,325 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-11-05 11:51:38,668 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-11-05 11:51:38,754 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779?flat'} 2024-11-05 11:51:38,754 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779 is found in opserver 2024-11-05 11:51:38,767 - DEBUG - Do not have enough data to verify VN in agent 2024-11-05 11:51:38,772 - DEBUG - VRF ids for VN ctest-vn-13134779: {} 2024-11-05 11:51:38,772 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-05 11:51:38,779 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf 2024-11-05 11:51:38,800 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f 2024-11-05 11:51:38,883 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3 2024-11-05 11:51:38,903 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3 2024-11-05 11:51:38,927 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716 2024-11-05 11:51:38,941 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716 2024-11-05 11:51:38,951 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ff6f8f4f-bbc6-4657-92a5-4960f32e9833 2024-11-05 11:51:38,961 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-05 11:51:38,961 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3 2024-11-05 11:51:38,979 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716 2024-11-05 11:51:39,003 - INFO - Verified VN network id 9 for VN c8a63f86-de16-456e-bc20-294344ba3ef3 2024-11-05 11:51:39,003 - INFO - Verifications in API Server for VN ctest-vn-24493284 passed 2024-11-05 11:51:39,003 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3 2024-11-05 11:51:39,020 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716 2024-11-05 11:51:39,032 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716 2024-11-05 11:51:39,045 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ff6f8f4f-bbc6-4657-92a5-4960f32e9833 2024-11-05 11:51:39,061 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64381694', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14458313502203725166', 'uuid-lslong': '13555880247277797107'}, 'enable': 'true', 'created': '2024-11-05T11:51:35', 'last-modified': '2024-11-05T11:51:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.152970'} 2024-11-05 11:51:39,070 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-05 11:51:39,070 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24493284 passed 2024-11-05 11:51:39,070 - DEBUG - ====Verifying policy data for ctest-vn-24493284 in API_Server ====== 2024-11-05 11:51:39,070 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-05 11:51:39,077 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf 2024-11-05 11:51:39,094 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f 2024-11-05 11:51:39,182 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3 2024-11-05 11:51:39,199 - DEBUG - ==>Verifying data for policy with id: 7cce0eb9-1e7e-4d36-90c0-ffb70d0fedb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338'] 2024-11-05 11:51:39,199 - INFO - VN ctest-vn-24493284 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-05 11:51:39,199 - DEBUG - Verifying the vn in opserver 2024-11-05 11:51:39,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284 virtual network link through opserver 10.0.0.40 2024-11-05 11:51:39,199 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-11-05 11:51:39,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284?flat'} 2024-11-05 11:51:39,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284 is found in opserver 2024-11-05 11:51:39,227 - DEBUG - Do not have enough data to verify VN in agent 2024-11-05 11:51:39,233 - DEBUG - VRF ids for VN ctest-vn-24493284: {} 2024-11-05 11:51:39,307 - DEBUG - Services list from nova: [, , ] 2024-11-05 11:51:40,541 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2199-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2199-1) 2024-11-05 11:51:42,081 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2199-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2199-1) 2024-11-05 11:51:42,081 - INFO - Waiting for VM ctest-TestBasicPolicy-64381694-03554483 to be up.. 2024-11-05 11:51:42,201 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-05 11:51:47,319 - DEBUG - VM is in ACTIVE state now 2024-11-05 11:51:47,320 - INFO - VM name : ctest-TestBasicPolicy-64381694-03554483 2024-11-05 11:51:47,429 - DEBUG - VM ctest-TestBasicPolicy-64381694-03554483 ID is d48ca6ac-d682-44fd-9be6-6c25055b8205 2024-11-05 11:51:47,454 - DEBUG - VM ctest-TestBasicPolicy-64381694-03554483 launched on Node cn-jenkins-deploy-platform-ansible-os-2199-1 2024-11-05 11:51:47,569 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/d48ca6ac-d682-44fd-9be6-6c25055b8205 2024-11-05 11:51:47,584 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/ce0ed351-5ded-4c58-8bdd-f5ded7dc9089 2024-11-05 11:51:50,888 - 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-11-05 11:51:50,888 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64381694-03554483 failed! 2024-11-05 11:51:50,951 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779 is 119.121.212.129 and allocation pool is NOT set 2024-11-05 11:51:53,018 - 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.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.45 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.447/6.043/9.639/3.596 ms') 2024-11-05 11:51:53,018 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64381694-03554483 passed 2024-11-05 11:51:53,183 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:53,183 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64381694-03554483, IP 119.121.212.131, Port 22 2024-11-05 11:51:53,349 - DEBUG - VM ctest-TestBasicPolicy-64381694-03554483 is ready for SSH connections 2024-11-05 11:51:53,349 - INFO - Waiting for VM ctest-TestBasicPolicy-64381694-24544623 to be up.. 2024-11-05 11:51:53,469 - DEBUG - VM is in ACTIVE state now 2024-11-05 11:51:53,469 - INFO - VM name : ctest-TestBasicPolicy-64381694-24544623 2024-11-05 11:51:53,578 - DEBUG - VM ctest-TestBasicPolicy-64381694-24544623 ID is d195b3fe-c6c2-4adc-9aa4-628a04ed395c 2024-11-05 11:51:53,578 - DEBUG - VM ctest-TestBasicPolicy-64381694-24544623 launched on Node cn-jenkins-deploy-platform-ansible-os-2199-1 2024-11-05 11:51:53,682 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/d195b3fe-c6c2-4adc-9aa4-628a04ed395c 2024-11-05 11:51:53,704 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/806a8702-d664-4cb5-a601-4b9e034e3f4d 2024-11-05 11:51:54,977 - 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.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.737 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.737/2.507/4.277/1.770 ms') 2024-11-05 11:51:54,977 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64381694-24544623 passed 2024-11-05 11:51:55,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:55,143 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64381694-24544623, IP 205.18.17.131, Port 22 2024-11-05 11:51:55,306 - DEBUG - VM ctest-TestBasicPolicy-64381694-24544623 is ready for SSH connections 2024-11-05 11:51:55,307 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:55,307 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.18.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-11-05 11:51:55,307 - DEBUG - ping -s 56 -c 3 -W 1 205.18.17.131 2024-11-05 11:51:59,408 - DEBUG - PING 205.18.17.131 (205.18.17.131): 56 data bytes 64 bytes from 205.18.17.131: seq=0 ttl=63 time=4.420 ms 64 bytes from 205.18.17.131: seq=1 ttl=63 time=0.991 ms 64 bytes from 205.18.17.131: seq=2 ttl=63 time=0.965 ms --- 205.18.17.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.965/2.125/4.420 ms 2024-11-05 11:51:59,408 - INFO - Ping to IP 205.18.17.131 from VM ctest-TestBasicPolicy-64381694-03554483 passed 2024-11-05 11:51:59,607 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7cce0eb9-1e7e-4d36-90c0-ffb70d0fedb6", "href": "http://10.0.0.40:8082/network-policy/7cce0eb9-1e7e-4d36-90c0-ffb70d0fedb6"}} 2024-11-05 11:51:59,607 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-05 11:51:59,607 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.18.17.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-11-05 11:51:59,607 - DEBUG - ping -s 56 -c 3 -W 1 205.18.17.131 2024-11-05 11:52:02,834 - DEBUG - PING 205.18.17.131 (205.18.17.131): 56 data bytes --- 205.18.17.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-05 11:52:02,835 - WARNING - Ping to IP 205.18.17.131 from VM ctest-TestBasicPolicy-64381694-03554483 failed 2024-11-05 11:52:02,835 - INFO - Deleting VM ctest-TestBasicPolicy-64381694-24544623 2024-11-05 11:52:02,919 - INFO - Deleting VM ctest-TestBasicPolicy-64381694-03554483 2024-11-05 11:52:03,548 - INFO - Deleted policy ctest-policy-allow-all-57233338 2024-11-05 11:52:03,548 - INFO - Deleting VN ctest-vn-24493284 2024-11-05 11:52:03,610 - DEBUG - VN c8a63f86-de16-456e-bc20-294344ba3ef3 still in use: Unable to complete operation on network c8a63f86-de16-456e-bc20-294344ba3ef3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f2111b4b-d3de-4dd1-9e8f-1facfb29c2f4'] 2024-11-05 11:52:03,610 - WARNING - Deleting VN ctest-vn-24493284 failed..Will retry 2024-11-05 11:52:05,752 - DEBUG - Response for deleting network () 2024-11-05 11:52:05,752 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716 2024-11-05 11:52:05,764 - DEBUG - Response Code: 404 2024-11-05 11:52:05,764 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-05 11:52:05,771 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf 2024-11-05 11:52:05,831 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f 2024-11-05 11:52:05,925 - INFO - Validated that VN ctest-vn-24493284 is not found in API Server 2024-11-05 11:52:05,937 - DEBUG - VN ctest-vn-24493284 is not present in Agent 10.0.0.40 2024-11-05 11:52:05,937 - INFO - Validated that VN ctest-vn-24493284 is not in any agent 2024-11-05 11:52:05,956 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24493284 info 2024-11-05 11:52:05,956 - INFO - Deleting VN ctest-vn-13134779 2024-11-05 11:52:06,081 - DEBUG - Response for deleting network () 2024-11-05 11:52:06,081 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65 2024-11-05 11:52:06,089 - DEBUG - Response Code: 404 2024-11-05 11:52:06,089 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-05 11:52:06,098 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf 2024-11-05 11:52:06,158 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f 2024-11-05 11:52:06,254 - INFO - Validated that VN ctest-vn-13134779 is not found in API Server 2024-11-05 11:52:06,268 - DEBUG - VN ctest-vn-13134779 is not present in Agent 10.0.0.40 2024-11-05 11:52:06,268 - INFO - Validated that VN ctest-vn-13134779 is not in any agent 2024-11-05 11:52:06,286 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13134779 info 2024-11-05 11:52:06,557 - DEBUG - No XMPP flaps were noticed during the test 2024-11-05 11:52:06,557 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32] 2024-11-05 11:52:06,557 - INFO - -------------------------------------------------------------------------------- 2024-11-05 11:52:07,333 - INFO - Deleted project: ctest-TestBasicPolicy-64381694, ID : ed19980c-3ffc-46af-8a51-d7c69a1bdb5f