2024-09-12 02:27:14,538 - INFO - Domain Default found not creating 2024-09-12 02:27:14,712 - INFO - Project ctest-TestBasicPolicy-46140585 not found, creating it 2024-09-12 02:27:15,224 - INFO - Created Project:ctest-TestBasicPolicy-46140585, ID : f0a332e5-a375-4a86-928d-a745bbb36ed9 2024-09-12 02:27:16,987 - INFO - ================================================================================ 2024-09-12 02:27:16,987 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-12 02:27:16,988 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-09-12 02:27:17,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.13': '0'}} with 2024-09-12 02:27:17,254 - INFO - Initial checks done. Running the testcase now 2024-09-12 02:27:17,254 - INFO - 2024-09-12 02:27:17,910 - DEBUG - Response for create_network : {'network': {'id': '6570f726-6f01-4353-929f-68450d0861a7', 'name': 'ctest-vn-53433651', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-53433651'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:27:18,110 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a06ffeda-fd68-4e64-ab6c-dbf4b91d0705', 'name': '', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'network_id': '6570f726-6f01-4353-929f-68450d0861a7', 'ip_version': 4, 'cidr': '62.194.184.64/26', 'allocation_pools': [{'start': '62.194.184.66', 'end': '62.194.184.126'}], 'gateway_ip': '62.194.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.194.184.66', 'tags': [], 'project_id': 'f0a332e5a3754a86928da745bbb36ed9'}} 2024-09-12 02:27:18,132 - INFO - Created VN ctest-vn-53433651 2024-09-12 02:27:18,193 - DEBUG - VN ctest-vn-53433651 UUID is 6570f726-6f01-4353-929f-68450d0861a7 2024-09-12 02:27:18,559 - DEBUG - Response for create_network : {'network': {'id': 'eb2cffe3-08a1-434a-962f-bda8a2ddfd5f', 'name': 'ctest-vn-06254196', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-06254196'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:27:18,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '237340f1-db86-462e-b699-f67321491249', 'name': '', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'network_id': 'eb2cffe3-08a1-434a-962f-bda8a2ddfd5f', 'ip_version': 4, 'cidr': '21.55.255.64/26', 'allocation_pools': [{'start': '21.55.255.66', 'end': '21.55.255.126'}], 'gateway_ip': '21.55.255.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.55.255.66', 'tags': [], 'project_id': 'f0a332e5a3754a86928da745bbb36ed9'}} 2024-09-12 02:27:18,777 - INFO - Created VN ctest-vn-06254196 2024-09-12 02:27:18,837 - DEBUG - VN ctest-vn-06254196 UUID is eb2cffe3-08a1-434a-962f-bda8a2ddfd5f 2024-09-12 02:27:18,975 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651, 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-46140585:ctest-vn-06254196, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-09-12 02:27:19,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6570f726-6f01-4353-929f-68450d0861a7', 'name': 'ctest-vn-53433651', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a06ffeda-fd68-4e64-ab6c-dbf4b91d0705'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-53433651'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551']], 'subnet_ipam': [{'subnet_cidr': '62.194.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:27:19,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb2cffe3-08a1-434a-962f-bda8a2ddfd5f', 'name': 'ctest-vn-06254196', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['237340f1-db86-462e-b699-f67321491249'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-06254196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551']], 'subnet_ipam': [{'subnet_cidr': '21.55.255.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:27:19,757 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-12 02:27:20,126 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-12 02:27:20,164 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f 2024-09-12 02:27:20,183 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9 2024-09-12 02:27:20,269 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7 2024-09-12 02:27:20,290 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7 2024-09-12 02:27:20,311 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0 2024-09-12 02:27:20,321 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0 2024-09-12 02:27:20,332 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55c347e9-fa4f-4988-84dc-d8269b0528b3 2024-09-12 02:27:20,340 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 02:27:20,341 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7 2024-09-12 02:27:20,357 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0 2024-09-12 02:27:20,386 - INFO - Verified VN network id 8 for VN 6570f726-6f01-4353-929f-68450d0861a7 2024-09-12 02:27:20,386 - INFO - Verifications in API Server for VN ctest-vn-53433651 passed 2024-09-12 02:27:20,387 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7 2024-09-12 02:27:20,406 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0 2024-09-12 02:27:20,417 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0 2024-09-12 02:27:20,427 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55c347e9-fa4f-4988-84dc-d8269b0528b3 2024-09-12 02:27:20,443 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46140585', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7309613939665486675', 'uuid-lslong': '10565277896615158183'}, 'enable': 'true', 'created': '2024-09-12T02:27:17', 'last-modified': '2024-09-12T02:27:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.160845'} 2024-09-12 02:27:20,451 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 02:27:20,451 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53433651 passed 2024-09-12 02:27:20,451 - DEBUG - ====Verifying policy data for ctest-vn-53433651 in API_Server ====== 2024-09-12 02:27:20,451 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-12 02:27:20,458 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f 2024-09-12 02:27:20,473 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9 2024-09-12 02:27:20,557 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7 2024-09-12 02:27:20,573 - DEBUG - ==>Verifying data for policy with id: 49d94e0d-3b01-4c8d-b8af-bc431398a061, fqn: ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551'] 2024-09-12 02:27:20,573 - INFO - VN ctest-vn-53433651 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 02:27:20,573 - DEBUG - Verifying the vn in opserver 2024-09-12 02:27:20,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651 virtual network link through opserver 10.0.0.30 2024-09-12 02:27:20,574 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-09-12 02:27:20,917 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-09-12 02:27:20,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651?flat'} 2024-09-12 02:27:20,992 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651 is found in opserver 2024-09-12 02:27:21,005 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 02:27:21,011 - DEBUG - VRF ids for VN ctest-vn-53433651: {} 2024-09-12 02:27:21,011 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-12 02:27:21,017 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f 2024-09-12 02:27:21,032 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9 2024-09-12 02:27:21,115 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f 2024-09-12 02:27:21,138 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f 2024-09-12 02:27:21,153 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6 2024-09-12 02:27:21,164 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6 2024-09-12 02:27:21,174 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/6ab9d48d-4ac4-45a9-9a9b-f6b90894c93e 2024-09-12 02:27:21,183 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 02:27:21,183 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f 2024-09-12 02:27:21,200 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6 2024-09-12 02:27:21,225 - INFO - Verified VN network id 9 for VN eb2cffe3-08a1-434a-962f-bda8a2ddfd5f 2024-09-12 02:27:21,225 - INFO - Verifications in API Server for VN ctest-vn-06254196 passed 2024-09-12 02:27:21,225 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f 2024-09-12 02:27:21,243 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6 2024-09-12 02:27:21,255 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6 2024-09-12 02:27:21,265 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/6ab9d48d-4ac4-45a9-9a9b-f6b90894c93e 2024-09-12 02:27:21,282 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46140585', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16946200848455779146', 'uuid-lslong': '10822076961579203935'}, 'enable': 'true', 'created': '2024-09-12T02:27:18', 'last-modified': '2024-09-12T02:27:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.715414'} 2024-09-12 02:27:21,289 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 02:27:21,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06254196 passed 2024-09-12 02:27:21,290 - DEBUG - ====Verifying policy data for ctest-vn-06254196 in API_Server ====== 2024-09-12 02:27:21,290 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-12 02:27:21,297 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f 2024-09-12 02:27:21,313 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9 2024-09-12 02:27:21,398 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f 2024-09-12 02:27:21,416 - DEBUG - ==>Verifying data for policy with id: 49d94e0d-3b01-4c8d-b8af-bc431398a061, fqn: ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551'] 2024-09-12 02:27:21,416 - INFO - VN ctest-vn-06254196 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 02:27:21,417 - DEBUG - Verifying the vn in opserver 2024-09-12 02:27:21,417 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196 virtual network link through opserver 10.0.0.30 2024-09-12 02:27:21,417 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-09-12 02:27:21,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196?flat'} 2024-09-12 02:27:21,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196 is found in opserver 2024-09-12 02:27:21,445 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 02:27:21,452 - DEBUG - VRF ids for VN ctest-vn-06254196: {} 2024-09-12 02:27:21,521 - DEBUG - Services list from nova: [, , ] 2024-09-12 02:27:22,701 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1903-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1903-1) 2024-09-12 02:27:24,185 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1903-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1903-1) 2024-09-12 02:27:24,185 - INFO - Waiting for VM ctest-TestBasicPolicy-46140585-32933630 to be up.. 2024-09-12 02:27:24,290 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 02:27:29,410 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:27:29,410 - INFO - VM name : ctest-TestBasicPolicy-46140585-32933630 2024-09-12 02:27:29,507 - DEBUG - VM ctest-TestBasicPolicy-46140585-32933630 ID is fd1dfabf-9d5f-4dbf-a14f-860edc242d1e 2024-09-12 02:27:29,536 - DEBUG - VM ctest-TestBasicPolicy-46140585-32933630 launched on Node cn-jenkins-deploy-platform-ansible-os-1903-1 2024-09-12 02:27:29,656 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/fd1dfabf-9d5f-4dbf-a14f-860edc242d1e 2024-09-12 02:27:29,669 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/9c807ebd-0e2f-4f5b-91e3-828b14ece3b7 2024-09-12 02:27:32,966 - 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 1021ms') 2024-09-12 02:27:32,966 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46140585-32933630 failed! 2024-09-12 02:27:33,029 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651 is 62.194.184.65 and allocation pool is NOT set 2024-09-12 02:27:35,096 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.672 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.672/2.143/3.614/1.471 ms') 2024-09-12 02:27:35,096 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46140585-32933630 passed 2024-09-12 02:27:35,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:27:35,265 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46140585-32933630, IP 62.194.184.67, Port 22 2024-09-12 02:27:35,440 - DEBUG - VM ctest-TestBasicPolicy-46140585-32933630 is ready for SSH connections 2024-09-12 02:27:35,441 - INFO - Waiting for VM ctest-TestBasicPolicy-46140585-14288536 to be up.. 2024-09-12 02:27:35,545 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:27:35,545 - INFO - VM name : ctest-TestBasicPolicy-46140585-14288536 2024-09-12 02:27:35,679 - DEBUG - VM ctest-TestBasicPolicy-46140585-14288536 ID is 26a6578e-99b0-4c17-a469-1f4048a656a4 2024-09-12 02:27:35,679 - DEBUG - VM ctest-TestBasicPolicy-46140585-14288536 launched on Node cn-jenkins-deploy-platform-ansible-os-1903-1 2024-09-12 02:27:35,801 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/26a6578e-99b0-4c17-a469-1f4048a656a4 2024-09-12 02:27:35,817 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/59e492e9-dd31-4346-adaa-99a3145cef3e 2024-09-12 02:27:37,087 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.61 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.606/3.254/4.902/1.648 ms') 2024-09-12 02:27:37,087 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-46140585-14288536 passed 2024-09-12 02:27:37,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:27:37,253 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46140585-14288536, IP 21.55.255.67, Port 22 2024-09-12 02:27:37,319 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-12 02:27:37,408 - DEBUG - VM ctest-TestBasicPolicy-46140585-14288536 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-12 02:27:42,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:27:42,409 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46140585-14288536, IP 21.55.255.67, Port 22 2024-09-12 02:27:42,575 - DEBUG - VM ctest-TestBasicPolicy-46140585-14288536 is ready for SSH connections 2024-09-12 02:27:42,575 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:27:42,576 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 21.55.255.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-09-12 02:27:42,576 - DEBUG - ping -s 56 -c 3 -W 1 21.55.255.67 2024-09-12 02:27:46,681 - DEBUG - PING 21.55.255.67 (21.55.255.67): 56 data bytes 64 bytes from 21.55.255.67: seq=0 ttl=63 time=4.260 ms 64 bytes from 21.55.255.67: seq=1 ttl=63 time=1.069 ms 64 bytes from 21.55.255.67: seq=2 ttl=63 time=1.000 ms --- 21.55.255.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.000/2.109/4.260 ms 2024-09-12 02:27:46,681 - INFO - Ping to IP 21.55.255.67 from VM ctest-TestBasicPolicy-46140585-32933630 passed 2024-09-12 02:27:46,885 - DEBUG - Policy Update Response {"network-policy": {"uuid": "49d94e0d-3b01-4c8d-b8af-bc431398a061", "href": "http://10.0.0.30:8082/network-policy/49d94e0d-3b01-4c8d-b8af-bc431398a061"}} 2024-09-12 02:27:46,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:27:46,885 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 21.55.255.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-09-12 02:27:46,885 - DEBUG - ping -s 56 -c 3 -W 1 21.55.255.67 2024-09-12 02:27:50,133 - DEBUG - PING 21.55.255.67 (21.55.255.67): 56 data bytes 64 bytes from 21.55.255.67: seq=0 ttl=63 time=1.955 ms --- 21.55.255.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.955/1.955/1.955 ms 2024-09-12 02:27:50,134 - WARNING - Ping to IP 21.55.255.67 from VM ctest-TestBasicPolicy-46140585-32933630 failed 2024-09-12 02:27:50,134 - INFO - Deleting VM ctest-TestBasicPolicy-46140585-14288536 2024-09-12 02:27:50,214 - INFO - Deleting VM ctest-TestBasicPolicy-46140585-32933630 2024-09-12 02:27:50,678 - INFO - Deleted policy ctest-policy-allow-all-68464551 2024-09-12 02:27:50,679 - INFO - Deleting VN ctest-vn-06254196 2024-09-12 02:27:50,728 - DEBUG - VN eb2cffe3-08a1-434a-962f-bda8a2ddfd5f still in use: Unable to complete operation on network eb2cffe3-08a1-434a-962f-bda8a2ddfd5f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-75649aa4-71aa-4d07-9806-1b30046e90f2'] 2024-09-12 02:27:50,729 - WARNING - Deleting VN ctest-vn-06254196 failed..Will retry 2024-09-12 02:27:52,857 - DEBUG - Response for deleting network () 2024-09-12 02:27:52,857 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6 2024-09-12 02:27:52,868 - DEBUG - Response Code: 404 2024-09-12 02:27:52,868 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-12 02:27:52,876 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f 2024-09-12 02:27:52,938 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9 2024-09-12 02:27:53,032 - INFO - Validated that VN ctest-vn-06254196 is not found in API Server 2024-09-12 02:27:53,044 - DEBUG - VN ctest-vn-06254196 is not present in Agent 10.0.0.30 2024-09-12 02:27:53,044 - INFO - Validated that VN ctest-vn-06254196 is not in any agent 2024-09-12 02:27:53,061 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06254196 info 2024-09-12 02:27:53,061 - INFO - Deleting VN ctest-vn-53433651 2024-09-12 02:27:53,183 - DEBUG - Response for deleting network () 2024-09-12 02:27:53,184 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0 2024-09-12 02:27:53,194 - DEBUG - Response Code: 404 2024-09-12 02:27:53,195 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-09-12 02:27:53,208 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f 2024-09-12 02:27:53,268 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9 2024-09-12 02:27:53,355 - INFO - Validated that VN ctest-vn-53433651 is not found in API Server 2024-09-12 02:27:53,367 - DEBUG - VN ctest-vn-53433651 is not present in Agent 10.0.0.30 2024-09-12 02:27:53,368 - INFO - Validated that VN ctest-vn-53433651 is not in any agent 2024-09-12 02:27:53,386 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53433651 info 2024-09-12 02:27:53,643 - DEBUG - No XMPP flaps were noticed during the test 2024-09-12 02:27:53,643 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-09-12 02:27:53,643 - INFO - -------------------------------------------------------------------------------- 2024-09-12 02:27:54,411 - INFO - Deleted project: ctest-TestBasicPolicy-46140585, ID : f0a332e5-a375-4a86-928d-a745bbb36ed9