2024-11-13 12:56:15,301 - INFO - Domain Default found not creating 2024-11-13 12:56:15,502 - INFO - Project ctest-TestBasicPolicy-17634623 not found, creating it 2024-11-13 12:56:16,057 - INFO - Created Project:ctest-TestBasicPolicy-17634623, ID : 92891485-16d8-4621-ad18-97603e4f9071 2024-11-13 12:56:17,565 - INFO - ================================================================================ 2024-11-13 12:56:17,565 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-13 12:56:17,565 - 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-13 12:56:17,830 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.14': '0'}} with 2024-11-13 12:56:17,830 - INFO - Initial checks done. Running the testcase now 2024-11-13 12:56:17,830 - INFO - 2024-11-13 12:56:18,487 - DEBUG - Response for create_network : {'network': {'id': '26b8ffaa-bafd-4bbe-8161-2c933b0d129d', 'name': 'ctest-vn-66274815', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-66274815'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 12:56:18,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '94ca226d-edc6-45b6-8897-053e4dc57611', 'name': '', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'network_id': '26b8ffaa-bafd-4bbe-8161-2c933b0d129d', 'ip_version': 4, 'cidr': '79.150.209.192/26', 'allocation_pools': [{'start': '79.150.209.194', 'end': '79.150.209.254'}], 'gateway_ip': '79.150.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.150.209.194', 'tags': [], 'project_id': '9289148516d84621ad1897603e4f9071'}} 2024-11-13 12:56:18,756 - INFO - Created VN ctest-vn-66274815 2024-11-13 12:56:18,816 - DEBUG - VN ctest-vn-66274815 UUID is 26b8ffaa-bafd-4bbe-8161-2c933b0d129d 2024-11-13 12:56:19,217 - DEBUG - Response for create_network : {'network': {'id': '927a328a-8ff4-406d-9f15-74d3c426c185', 'name': 'ctest-vn-33624697', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-33624697'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 12:56:19,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef833fbd-0dd4-4ae1-a3c5-8994fe7c7f06', 'name': '', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'network_id': '927a328a-8ff4-406d-9f15-74d3c426c185', 'ip_version': 4, 'cidr': '85.238.73.64/26', 'allocation_pools': [{'start': '85.238.73.66', 'end': '85.238.73.126'}], 'gateway_ip': '85.238.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.238.73.66', 'tags': [], 'project_id': '9289148516d84621ad1897603e4f9071'}} 2024-11-13 12:56:19,475 - INFO - Created VN ctest-vn-33624697 2024-11-13 12:56:19,536 - DEBUG - VN ctest-vn-33624697 UUID is 927a328a-8ff4-406d-9f15-74d3c426c185 2024-11-13 12:56:19,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815, 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-17634623:ctest-vn-33624697, 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-13 12:56:20,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26b8ffaa-bafd-4bbe-8161-2c933b0d129d', 'name': 'ctest-vn-66274815', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94ca226d-edc6-45b6-8897-053e4dc57611'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-66274815'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497']], 'subnet_ipam': [{'subnet_cidr': '79.150.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 12:56:20,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '927a328a-8ff4-406d-9f15-74d3c426c185', 'name': 'ctest-vn-33624697', 'tenant_id': '9289148516d84621ad1897603e4f9071', 'project_id': '9289148516d84621ad1897603e4f9071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef833fbd-0dd4-4ae1-a3c5-8994fe7c7f06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-vn-33624697'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497']], 'subnet_ipam': [{'subnet_cidr': '85.238.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 12:56:20,468 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-13 12:56:20,781 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-13 12:56:20,814 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517 2024-11-13 12:56:20,833 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071 2024-11-13 12:56:20,928 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d 2024-11-13 12:56:20,947 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d 2024-11-13 12:56:20,963 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a 2024-11-13 12:56:20,973 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a 2024-11-13 12:56:20,983 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7d42605c-21f5-4c5a-99e5-44653ee25069 2024-11-13 12:56:20,991 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 12:56:20,991 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d 2024-11-13 12:56:21,006 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a 2024-11-13 12:56:21,027 - INFO - Verified VN network id 8 for VN 26b8ffaa-bafd-4bbe-8161-2c933b0d129d 2024-11-13 12:56:21,028 - INFO - Verifications in API Server for VN ctest-vn-66274815 passed 2024-11-13 12:56:21,028 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d 2024-11-13 12:56:21,043 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a 2024-11-13 12:56:21,053 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a 2024-11-13 12:56:21,063 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7d42605c-21f5-4c5a-99e5-44653ee25069 2024-11-13 12:56:21,077 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17634623', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2790261077902707646', 'uuid-lslong': '9322781714496164509'}, 'enable': 'true', 'created': '2024-11-13T12:56:18', 'last-modified': '2024-11-13T12:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074586'} 2024-11-13 12:56:21,084 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 12:56:21,085 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66274815 passed 2024-11-13 12:56:21,085 - DEBUG - ====Verifying policy data for ctest-vn-66274815 in API_Server ====== 2024-11-13 12:56:21,085 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-13 12:56:21,091 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517 2024-11-13 12:56:21,106 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071 2024-11-13 12:56:21,196 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/26b8ffaa-bafd-4bbe-8161-2c933b0d129d 2024-11-13 12:56:21,210 - DEBUG - ==>Verifying data for policy with id: 25633fc2-cfbb-4d83-a6e5-4050ffcbdce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497'] 2024-11-13 12:56:21,210 - INFO - VN ctest-vn-66274815 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 12:56:21,210 - DEBUG - Verifying the vn in opserver 2024-11-13 12:56:21,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815 virtual network link through opserver 10.0.0.46 2024-11-13 12:56:21,211 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-11-13 12:56:21,514 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-11-13 12:56:21,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815?flat'} 2024-11-13 12:56:21,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815 is found in opserver 2024-11-13 12:56:21,604 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 12:56:21,611 - DEBUG - VRF ids for VN ctest-vn-66274815: {} 2024-11-13 12:56:21,611 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-13 12:56:21,620 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517 2024-11-13 12:56:21,636 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071 2024-11-13 12:56:21,721 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185 2024-11-13 12:56:21,740 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185 2024-11-13 12:56:21,756 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0 2024-11-13 12:56:21,767 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0 2024-11-13 12:56:21,779 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/aaa2664d-2ea0-4ad3-8bfd-093a1f88202c 2024-11-13 12:56:21,788 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 12:56:21,788 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185 2024-11-13 12:56:21,805 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0 2024-11-13 12:56:21,830 - INFO - Verified VN network id 9 for VN 927a328a-8ff4-406d-9f15-74d3c426c185 2024-11-13 12:56:21,831 - INFO - Verifications in API Server for VN ctest-vn-33624697 passed 2024-11-13 12:56:21,831 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185 2024-11-13 12:56:21,849 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0 2024-11-13 12:56:21,859 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0 2024-11-13 12:56:21,892 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/aaa2664d-2ea0-4ad3-8bfd-093a1f88202c 2024-11-13 12:56:21,908 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17634623', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10554804247398203501', 'uuid-lslong': '11463196879419261317'}, 'enable': 'true', 'created': '2024-11-13T12:56:19', 'last-modified': '2024-11-13T12:56:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.650200'} 2024-11-13 12:56:21,916 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 12:56:21,916 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33624697 passed 2024-11-13 12:56:21,916 - DEBUG - ====Verifying policy data for ctest-vn-33624697 in API_Server ====== 2024-11-13 12:56:21,916 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-13 12:56:21,924 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517 2024-11-13 12:56:21,942 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071 2024-11-13 12:56:22,041 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/927a328a-8ff4-406d-9f15-74d3c426c185 2024-11-13 12:56:22,059 - DEBUG - ==>Verifying data for policy with id: 25633fc2-cfbb-4d83-a6e5-4050ffcbdce4, fqn: ['default-domain', 'ctest-TestBasicPolicy-17634623', 'ctest-policy-allow-all-61594497'] 2024-11-13 12:56:22,059 - INFO - VN ctest-vn-33624697 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 12:56:22,059 - DEBUG - Verifying the vn in opserver 2024-11-13 12:56:22,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697 virtual network link through opserver 10.0.0.46 2024-11-13 12:56:22,059 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-11-13 12:56:22,073 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697?flat'} 2024-11-13 12:56:22,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-33624697 is found in opserver 2024-11-13 12:56:22,087 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 12:56:22,093 - DEBUG - VRF ids for VN ctest-vn-33624697: {} 2024-11-13 12:56:22,169 - DEBUG - Services list from nova: [, , ] 2024-11-13 12:56:23,302 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2286-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2286-1) 2024-11-13 12:56:24,678 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2286-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2286-1) 2024-11-13 12:56:24,679 - INFO - Waiting for VM ctest-TestBasicPolicy-17634623-13679608 to be up.. 2024-11-13 12:56:24,779 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 12:56:29,865 - DEBUG - VM is in ACTIVE state now 2024-11-13 12:56:29,865 - INFO - VM name : ctest-TestBasicPolicy-17634623-13679608 2024-11-13 12:56:29,960 - DEBUG - VM ctest-TestBasicPolicy-17634623-13679608 ID is 9fa6fe85-187c-433a-99d6-2da2b9d7a311 2024-11-13 12:56:29,983 - DEBUG - VM ctest-TestBasicPolicy-17634623-13679608 launched on Node cn-jenkins-deploy-platform-ansible-os-2286-1 2024-11-13 12:56:30,074 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/9fa6fe85-187c-433a-99d6-2da2b9d7a311 2024-11-13 12:56:30,086 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/5ec01855-8633-4444-98d2-84dce26b2ebc 2024-11-13 12:56:33,382 - 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 1035ms') 2024-11-13 12:56:33,382 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17634623-13679608 failed! 2024-11-13 12:56:33,444 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17634623:ctest-vn-66274815 is 79.150.209.193 and allocation pool is NOT set 2024-11-13 12:56:35,510 - 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.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.782 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.782/5.103/9.425/4.321 ms') 2024-11-13 12:56:35,511 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17634623-13679608 passed 2024-11-13 12:56:35,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 12:56:35,680 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17634623-13679608, IP 79.150.209.195, Port 22 2024-11-13 12:56:35,836 - DEBUG - VM ctest-TestBasicPolicy-17634623-13679608 is ready for SSH connections 2024-11-13 12:56:35,836 - INFO - Waiting for VM ctest-TestBasicPolicy-17634623-43292680 to be up.. 2024-11-13 12:56:35,934 - DEBUG - VM is in ACTIVE state now 2024-11-13 12:56:35,934 - INFO - VM name : ctest-TestBasicPolicy-17634623-43292680 2024-11-13 12:56:36,052 - DEBUG - VM ctest-TestBasicPolicy-17634623-43292680 ID is 19529c95-ec66-4a97-9700-6721cd1828bd 2024-11-13 12:56:36,052 - DEBUG - VM ctest-TestBasicPolicy-17634623-43292680 launched on Node cn-jenkins-deploy-platform-ansible-os-2286-1 2024-11-13 12:56:36,151 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/19529c95-ec66-4a97-9700-6721cd1828bd 2024-11-13 12:56:36,161 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/946a5cf2-09c5-4fe4-ab24-28050a5bc24f 2024-11-13 12:56:37,420 - 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.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.827 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.827/2.089/3.352/1.262 ms') 2024-11-13 12:56:37,421 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17634623-43292680 passed 2024-11-13 12:56:37,580 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 12:56:37,580 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17634623-43292680, IP 85.238.73.67, Port 22 2024-11-13 12:56:37,736 - DEBUG - VM ctest-TestBasicPolicy-17634623-43292680 is ready for SSH connections 2024-11-13 12:56:37,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 12:56:37,736 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.238.73.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-11-13 12:56:37,736 - DEBUG - ping -s 56 -c 3 -W 1 85.238.73.67 2024-11-13 12:56:41,775 - DEBUG - PING 85.238.73.67 (85.238.73.67): 56 data bytes 64 bytes from 85.238.73.67: seq=0 ttl=63 time=4.635 ms 64 bytes from 85.238.73.67: seq=1 ttl=63 time=0.975 ms 64 bytes from 85.238.73.67: seq=2 ttl=63 time=0.941 ms --- 85.238.73.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.941/2.183/4.635 ms 2024-11-13 12:56:41,775 - INFO - Ping to IP 85.238.73.67 from VM ctest-TestBasicPolicy-17634623-13679608 passed 2024-11-13 12:56:41,967 - DEBUG - Policy Update Response {"network-policy": {"uuid": "25633fc2-cfbb-4d83-a6e5-4050ffcbdce4", "href": "http://10.0.0.46:8082/network-policy/25633fc2-cfbb-4d83-a6e5-4050ffcbdce4"}} 2024-11-13 12:56:41,968 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 12:56:41,968 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.238.73.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-11-13 12:56:41,968 - DEBUG - ping -s 56 -c 3 -W 1 85.238.73.67 2024-11-13 12:56:45,172 - DEBUG - PING 85.238.73.67 (85.238.73.67): 56 data bytes --- 85.238.73.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-13 12:56:45,174 - WARNING - Ping to IP 85.238.73.67 from VM ctest-TestBasicPolicy-17634623-13679608 failed 2024-11-13 12:56:45,174 - INFO - Deleting VM ctest-TestBasicPolicy-17634623-43292680 2024-11-13 12:56:45,248 - INFO - Deleting VM ctest-TestBasicPolicy-17634623-13679608 2024-11-13 12:56:45,686 - INFO - Deleted policy ctest-policy-allow-all-61594497 2024-11-13 12:56:45,686 - INFO - Deleting VN ctest-vn-33624697 2024-11-13 12:56:45,732 - DEBUG - VN 927a328a-8ff4-406d-9f15-74d3c426c185 still in use: Unable to complete operation on network 927a328a-8ff4-406d-9f15-74d3c426c185. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8140e4dc-b0e5-4ddd-9af2-aadbf8ac2389'] 2024-11-13 12:56:45,732 - WARNING - Deleting VN ctest-vn-33624697 failed..Will retry 2024-11-13 12:56:47,846 - DEBUG - Response for deleting network () 2024-11-13 12:56:47,846 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a43201b4-ea52-4fb6-a59c-13b299c73ae0 2024-11-13 12:56:47,853 - DEBUG - Response Code: 404 2024-11-13 12:56:47,853 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-13 12:56:47,864 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517 2024-11-13 12:56:47,922 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071 2024-11-13 12:56:48,006 - INFO - Validated that VN ctest-vn-33624697 is not found in API Server 2024-11-13 12:56:48,018 - DEBUG - VN ctest-vn-33624697 is not present in Agent 10.0.0.46 2024-11-13 12:56:48,018 - INFO - Validated that VN ctest-vn-33624697 is not in any agent 2024-11-13 12:56:48,036 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33624697 info 2024-11-13 12:56:48,037 - INFO - Deleting VN ctest-vn-66274815 2024-11-13 12:56:48,164 - DEBUG - Response for deleting network () 2024-11-13 12:56:48,164 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d94b3f90-9f7a-42d7-b532-a3e12dd2444a 2024-11-13 12:56:48,170 - DEBUG - Response Code: 404 2024-11-13 12:56:48,171 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-13 12:56:48,179 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b12432c-d4c1-4bcc-b3be-0519b3afc517 2024-11-13 12:56:48,234 - DEBUG - Requesting: http://10.0.0.46:8082/project/92891485-16d8-4621-ad18-97603e4f9071 2024-11-13 12:56:48,323 - INFO - Validated that VN ctest-vn-66274815 is not found in API Server 2024-11-13 12:56:48,334 - DEBUG - VN ctest-vn-66274815 is not present in Agent 10.0.0.46 2024-11-13 12:56:48,334 - INFO - Validated that VN ctest-vn-66274815 is not in any agent 2024-11-13 12:56:48,354 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66274815 info 2024-11-13 12:56:48,613 - DEBUG - No XMPP flaps were noticed during the test
2024-11-13 12:56:48,614 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-13 12:56:48,614 - INFO - -------------------------------------------------------------------------------- 2024-11-13 12:56:49,417 - INFO - Deleted project: ctest-TestBasicPolicy-17634623, ID : 92891485-16d8-4621-ad18-97603e4f9071