2024-11-10 18:05:54,577 - INFO - Domain Default found not creating 2024-11-10 18:05:55,052 - INFO - Project ctest-TestBasicPolicy-77393147 not found, creating it 2024-11-10 18:05:55,879 - INFO - Created Project:ctest-TestBasicPolicy-77393147, ID : a9443b00-192f-4cba-838c-758067028144 2024-11-10 18:05:58,297 - INFO - ================================================================================ 2024-11-10 18:05:58,299 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 18:05:58,299 - 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-10 18:05:58,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.26': '0'}} with 2024-11-10 18:05:58,612 - INFO - Initial checks done. Running the testcase now 2024-11-10 18:05:58,612 - INFO - 2024-11-10 18:05:59,592 - DEBUG - Response for create_network : {'network': {'id': 'a9432e60-489c-4a0d-a857-5e358207c887', 'name': 'ctest-vn-05658727', 'tenant_id': 'a9443b00192f4cba838c758067028144', 'project_id': 'a9443b00192f4cba838c758067028144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-vn-05658727'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:05:59,821 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc8fdaa0-a7d2-446d-967b-07f5cc8b1696', 'name': '', 'tenant_id': 'a9443b00192f4cba838c758067028144', 'network_id': 'a9432e60-489c-4a0d-a857-5e358207c887', 'ip_version': 4, 'cidr': '3.187.244.0/26', 'allocation_pools': [{'start': '3.187.244.2', 'end': '3.187.244.62'}], 'gateway_ip': '3.187.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.187.244.2', 'tags': [], 'project_id': 'a9443b00192f4cba838c758067028144'}} 2024-11-10 18:05:59,845 - INFO - Created VN ctest-vn-05658727 2024-11-10 18:05:59,908 - DEBUG - VN ctest-vn-05658727 UUID is a9432e60-489c-4a0d-a857-5e358207c887 2024-11-10 18:06:00,372 - DEBUG - Response for create_network : {'network': {'id': '6f43b785-ce57-440c-9a03-beb2f394f8ac', 'name': 'ctest-vn-94850498', 'tenant_id': 'a9443b00192f4cba838c758067028144', 'project_id': 'a9443b00192f4cba838c758067028144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-vn-94850498'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:06:00,608 - DEBUG - Response for create_subnet : {'subnet': {'id': '539cedfd-0ebe-463d-a6aa-bcbe76e12e58', 'name': '', 'tenant_id': 'a9443b00192f4cba838c758067028144', 'network_id': '6f43b785-ce57-440c-9a03-beb2f394f8ac', 'ip_version': 4, 'cidr': '20.104.48.192/26', 'allocation_pools': [{'start': '20.104.48.194', 'end': '20.104.48.254'}], 'gateway_ip': '20.104.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.104.48.194', 'tags': [], 'project_id': 'a9443b00192f4cba838c758067028144'}} 2024-11-10 18:06:00,628 - INFO - Created VN ctest-vn-94850498 2024-11-10 18:06:00,693 - DEBUG - VN ctest-vn-94850498 UUID is 6f43b785-ce57-440c-9a03-beb2f394f8ac 2024-11-10 18:06:00,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-05658727, 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-77393147:ctest-vn-94850498, 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-10 18:06:01,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9432e60-489c-4a0d-a857-5e358207c887', 'name': 'ctest-vn-05658727', 'tenant_id': 'a9443b00192f4cba838c758067028144', 'project_id': 'a9443b00192f4cba838c758067028144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc8fdaa0-a7d2-446d-967b-07f5cc8b1696'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-vn-05658727'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-policy-allow-all-34022425']], 'subnet_ipam': [{'subnet_cidr': '3.187.244.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:06:01,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f43b785-ce57-440c-9a03-beb2f394f8ac', 'name': 'ctest-vn-94850498', 'tenant_id': 'a9443b00192f4cba838c758067028144', 'project_id': 'a9443b00192f4cba838c758067028144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['539cedfd-0ebe-463d-a6aa-bcbe76e12e58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-vn-94850498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-policy-allow-all-34022425']], 'subnet_ipam': [{'subnet_cidr': '20.104.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:06:01,741 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 18:06:02,050 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 18:06:02,117 - DEBUG - Requesting: http://10.0.0.36:8082/domain/c09e2804-e5a0-4270-b14f-84c6a9b1a17a 2024-11-10 18:06:02,176 - DEBUG - Requesting: http://10.0.0.36:8082/project/a9443b00-192f-4cba-838c-758067028144 2024-11-10 18:06:02,234 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/a9432e60-489c-4a0d-a857-5e358207c887 2024-11-10 18:06:02,258 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/a9432e60-489c-4a0d-a857-5e358207c887 2024-11-10 18:06:02,276 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/161023df-5d86-497f-859d-dffab82524a3 2024-11-10 18:06:02,287 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/161023df-5d86-497f-859d-dffab82524a3 2024-11-10 18:06:02,298 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/b6b2340a-bd08-42f8-9f41-31093ef7695d 2024-11-10 18:06:02,311 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 18:06:02,311 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/a9432e60-489c-4a0d-a857-5e358207c887 2024-11-10 18:06:02,344 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/161023df-5d86-497f-859d-dffab82524a3 2024-11-10 18:06:02,381 - INFO - Verified VN network id 7 for VN a9432e60-489c-4a0d-a857-5e358207c887 2024-11-10 18:06:02,381 - INFO - Verifications in API Server for VN ctest-vn-05658727 passed 2024-11-10 18:06:02,381 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/a9432e60-489c-4a0d-a857-5e358207c887 2024-11-10 18:06:02,397 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/161023df-5d86-497f-859d-dffab82524a3 2024-11-10 18:06:02,411 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/161023df-5d86-497f-859d-dffab82524a3 2024-11-10 18:06:02,424 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/b6b2340a-bd08-42f8-9f41-31093ef7695d 2024-11-10 18:06:02,450 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-05658727', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77393147', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12196643206919375373', 'uuid-lslong': '12130267705253546119'}, 'enable': 'true', 'created': '2024-11-10T18:05:59', 'last-modified': '2024-11-10T18:06:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.217826'} 2024-11-10 18:06:02,466 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 18:06:02,466 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05658727 passed 2024-11-10 18:06:02,466 - DEBUG - ====Verifying policy data for ctest-vn-05658727 in API_Server ====== 2024-11-10 18:06:02,466 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 18:06:02,476 - DEBUG - Requesting: http://10.0.0.36:8082/domain/c09e2804-e5a0-4270-b14f-84c6a9b1a17a 2024-11-10 18:06:02,493 - DEBUG - Requesting: http://10.0.0.36:8082/project/a9443b00-192f-4cba-838c-758067028144 2024-11-10 18:06:02,610 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/a9432e60-489c-4a0d-a857-5e358207c887 2024-11-10 18:06:02,631 - DEBUG - ==>Verifying data for policy with id: d22583f4-4134-4cf7-a20f-8ba5cf5d9d1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-policy-allow-all-34022425'] 2024-11-10 18:06:02,631 - INFO - VN ctest-vn-05658727 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 18:06:02,631 - DEBUG - Verifying the vn in opserver 2024-11-10 18:06:02,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-05658727 virtual network link through opserver 10.0.0.36 2024-11-10 18:06:02,632 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-11-10 18:06:02,933 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-11-10 18:06:03,117 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-05658727', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-05658727?flat'} 2024-11-10 18:06:03,117 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-05658727 is found in opserver 2024-11-10 18:06:03,143 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 18:06:03,155 - DEBUG - VRF ids for VN ctest-vn-05658727: {} 2024-11-10 18:06:03,155 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 18:06:03,173 - DEBUG - Requesting: http://10.0.0.36:8082/domain/c09e2804-e5a0-4270-b14f-84c6a9b1a17a 2024-11-10 18:06:03,204 - DEBUG - Requesting: http://10.0.0.36:8082/project/a9443b00-192f-4cba-838c-758067028144 2024-11-10 18:06:03,330 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/6f43b785-ce57-440c-9a03-beb2f394f8ac 2024-11-10 18:06:03,363 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/6f43b785-ce57-440c-9a03-beb2f394f8ac 2024-11-10 18:06:03,407 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/b746f5aa-3d2a-4d36-982f-2d7c11981686 2024-11-10 18:06:03,445 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/b746f5aa-3d2a-4d36-982f-2d7c11981686 2024-11-10 18:06:03,471 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/fd3a0d2c-5e12-44b7-904d-de0316b7bee3 2024-11-10 18:06:03,490 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 18:06:03,490 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/6f43b785-ce57-440c-9a03-beb2f394f8ac 2024-11-10 18:06:03,529 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/b746f5aa-3d2a-4d36-982f-2d7c11981686 2024-11-10 18:06:03,586 - INFO - Verified VN network id 8 for VN 6f43b785-ce57-440c-9a03-beb2f394f8ac 2024-11-10 18:06:03,586 - INFO - Verifications in API Server for VN ctest-vn-94850498 passed 2024-11-10 18:06:03,587 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/6f43b785-ce57-440c-9a03-beb2f394f8ac 2024-11-10 18:06:03,628 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/b746f5aa-3d2a-4d36-982f-2d7c11981686 2024-11-10 18:06:03,661 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/b746f5aa-3d2a-4d36-982f-2d7c11981686 2024-11-10 18:06:03,695 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/fd3a0d2c-5e12-44b7-904d-de0316b7bee3 2024-11-10 18:06:03,722 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-94850498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77393147', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8017453546969973772', 'uuid-lslong': '11097923582571116716'}, 'enable': 'true', 'created': '2024-11-10T18:06:00', 'last-modified': '2024-11-10T18:06:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.233322'} 2024-11-10 18:06:03,735 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 18:06:03,735 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94850498 passed 2024-11-10 18:06:03,735 - DEBUG - ====Verifying policy data for ctest-vn-94850498 in API_Server ====== 2024-11-10 18:06:03,736 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 18:06:03,747 - DEBUG - Requesting: http://10.0.0.36:8082/domain/c09e2804-e5a0-4270-b14f-84c6a9b1a17a 2024-11-10 18:06:03,781 - DEBUG - Requesting: http://10.0.0.36:8082/project/a9443b00-192f-4cba-838c-758067028144 2024-11-10 18:06:03,902 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/6f43b785-ce57-440c-9a03-beb2f394f8ac 2024-11-10 18:06:03,928 - DEBUG - ==>Verifying data for policy with id: d22583f4-4134-4cf7-a20f-8ba5cf5d9d1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-77393147', 'ctest-policy-allow-all-34022425'] 2024-11-10 18:06:03,928 - INFO - VN ctest-vn-94850498 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 18:06:03,929 - DEBUG - Verifying the vn in opserver 2024-11-10 18:06:03,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-94850498 virtual network link through opserver 10.0.0.36 2024-11-10 18:06:03,929 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-11-10 18:06:03,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-94850498', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-94850498?flat'} 2024-11-10 18:06:03,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-94850498 is found in opserver 2024-11-10 18:06:03,981 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 18:06:03,996 - DEBUG - VRF ids for VN ctest-vn-94850498: {} 2024-11-10 18:06:04,110 - DEBUG - Services list from nova: [, , ] 2024-11-10 18:06:05,803 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2258-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2258-1) 2024-11-10 18:06:07,409 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2258-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2258-1) 2024-11-10 18:06:07,409 - INFO - Waiting for VM ctest-TestBasicPolicy-77393147-55977347 to be up.. 2024-11-10 18:06:07,498 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 18:06:12,624 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:06:12,624 - INFO - VM name : ctest-TestBasicPolicy-77393147-55977347 2024-11-10 18:06:12,735 - DEBUG - VM ctest-TestBasicPolicy-77393147-55977347 ID is 42dd1cd0-b74e-4f10-80b0-72c302254963 2024-11-10 18:06:12,761 - DEBUG - VM ctest-TestBasicPolicy-77393147-55977347 launched on Node cn-jenkins-deploy-platform-ansible-os-2258-1 2024-11-10 18:06:12,880 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/42dd1cd0-b74e-4f10-80b0-72c302254963 2024-11-10 18:06:12,893 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/8fc720fa-db10-45d0-a799-93ab7e9ea089 2024-11-10 18:06:16,215 - 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 1015ms') 2024-11-10 18:06:16,215 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77393147-55977347 failed! 2024-11-10 18:06:16,289 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77393147:ctest-vn-05658727 is 3.187.244.1 and allocation pool is NOT set 2024-11-10 18:06:18,365 - 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=10.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.27 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.267/6.981/10.695/3.714 ms') 2024-11-10 18:06:18,365 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77393147-55977347 passed 2024-11-10 18:06:18,533 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:06:18,533 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77393147-55977347, IP 3.187.244.3, Port 22 2024-11-10 18:06:18,613 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-10 18:06:18,753 - DEBUG - VM ctest-TestBasicPolicy-77393147-55977347 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 18:06:23,754 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:06:23,754 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77393147-55977347, IP 3.187.244.3, Port 22 2024-11-10 18:06:23,942 - DEBUG - VM ctest-TestBasicPolicy-77393147-55977347 is ready for SSH connections 2024-11-10 18:06:23,942 - INFO - Waiting for VM ctest-TestBasicPolicy-77393147-92462951 to be up.. 2024-11-10 18:06:24,098 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:06:24,098 - INFO - VM name : ctest-TestBasicPolicy-77393147-92462951 2024-11-10 18:06:24,233 - DEBUG - VM ctest-TestBasicPolicy-77393147-92462951 ID is fb145311-a98a-4f57-af3e-3294cc0d44a9 2024-11-10 18:06:24,233 - DEBUG - VM ctest-TestBasicPolicy-77393147-92462951 launched on Node cn-jenkins-deploy-platform-ansible-os-2258-1 2024-11-10 18:06:24,395 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/fb145311-a98a-4f57-af3e-3294cc0d44a9 2024-11-10 18:06:24,411 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/657a2999-7b42-46dd-9524-e39286e76287 2024-11-10 18:06:25,699 - 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=7.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.631 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.631/3.919/7.208/3.288 ms') 2024-11-10 18:06:25,700 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77393147-92462951 passed 2024-11-10 18:06:25,894 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:06:25,894 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77393147-92462951, IP 20.104.48.195, Port 22 2024-11-10 18:06:26,082 - DEBUG - VM ctest-TestBasicPolicy-77393147-92462951 is ready for SSH connections 2024-11-10 18:06:26,082 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:06:26,083 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.104.48.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-11-10 18:06:26,083 - DEBUG - ping -s 56 -c 3 -W 1 20.104.48.195 2024-11-10 18:06:30,309 - DEBUG - PING 20.104.48.195 (20.104.48.195): 56 data bytes 64 bytes from 20.104.48.195: seq=0 ttl=63 time=4.448 ms 64 bytes from 20.104.48.195: seq=1 ttl=63 time=0.930 ms 64 bytes from 20.104.48.195: seq=2 ttl=63 time=1.660 ms --- 20.104.48.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.930/2.346/4.448 ms 2024-11-10 18:06:30,309 - INFO - Ping to IP 20.104.48.195 from VM ctest-TestBasicPolicy-77393147-55977347 passed 2024-11-10 18:06:30,545 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d22583f4-4134-4cf7-a20f-8ba5cf5d9d1b", "href": "http://10.0.0.36:8082/network-policy/d22583f4-4134-4cf7-a20f-8ba5cf5d9d1b"}} 2024-11-10 18:06:30,545 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:06:30,545 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.104.48.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-11-10 18:06:30,545 - DEBUG - ping -s 56 -c 3 -W 1 20.104.48.195 2024-11-10 18:06:33,797 - DEBUG - PING 20.104.48.195 (20.104.48.195): 56 data bytes --- 20.104.48.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-10 18:06:33,797 - WARNING - Ping to IP 20.104.48.195 from VM ctest-TestBasicPolicy-77393147-55977347 failed 2024-11-10 18:06:33,798 - INFO - Deleting VM ctest-TestBasicPolicy-77393147-92462951 2024-11-10 18:06:33,982 - INFO - Deleting VM ctest-TestBasicPolicy-77393147-55977347 2024-11-10 18:06:34,661 - INFO - Deleted policy ctest-policy-allow-all-34022425 2024-11-10 18:06:34,661 - INFO - Deleting VN ctest-vn-94850498 2024-11-10 18:06:34,712 - DEBUG - VN 6f43b785-ce57-440c-9a03-beb2f394f8ac still in use: Unable to complete operation on network 6f43b785-ce57-440c-9a03-beb2f394f8ac. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1b84f4b5-412a-48e7-a0d0-a6170e6e54b6'] 2024-11-10 18:06:34,712 - WARNING - Deleting VN ctest-vn-94850498 failed..Will retry 2024-11-10 18:06:36,967 - DEBUG - Response for deleting network () 2024-11-10 18:06:36,967 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/b746f5aa-3d2a-4d36-982f-2d7c11981686 2024-11-10 18:06:36,976 - DEBUG - Response Code: 404 2024-11-10 18:06:36,976 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 18:06:36,988 - DEBUG - Requesting: http://10.0.0.36:8082/domain/c09e2804-e5a0-4270-b14f-84c6a9b1a17a 2024-11-10 18:06:37,008 - DEBUG - Requesting: http://10.0.0.36:8082/project/a9443b00-192f-4cba-838c-758067028144 2024-11-10 18:06:37,110 - INFO - Validated that VN ctest-vn-94850498 is not found in API Server 2024-11-10 18:06:37,131 - DEBUG - VN ctest-vn-94850498 is not present in Agent 10.0.0.36 2024-11-10 18:06:37,131 - INFO - Validated that VN ctest-vn-94850498 is not in any agent 2024-11-10 18:06:37,153 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94850498 info 2024-11-10 18:06:37,154 - INFO - Deleting VN ctest-vn-05658727 2024-11-10 18:06:37,316 - DEBUG - Response for deleting network () 2024-11-10 18:06:37,316 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/161023df-5d86-497f-859d-dffab82524a3 2024-11-10 18:06:37,324 - DEBUG - Response Code: 404 2024-11-10 18:06:37,325 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 18:06:37,330 - DEBUG - Requesting: http://10.0.0.36:8082/domain/c09e2804-e5a0-4270-b14f-84c6a9b1a17a 2024-11-10 18:06:37,390 - DEBUG - Requesting: http://10.0.0.36:8082/project/a9443b00-192f-4cba-838c-758067028144 2024-11-10 18:06:37,505 - INFO - Validated that VN ctest-vn-05658727 is not found in API Server 2024-11-10 18:06:37,524 - DEBUG - VN ctest-vn-05658727 is not present in Agent 10.0.0.36 2024-11-10 18:06:37,524 - INFO - Validated that VN ctest-vn-05658727 is not in any agent 2024-11-10 18:06:37,553 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05658727 info 2024-11-10 18:06:37,881 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 18:06:37,881 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2024-11-10 18:06:37,881 - INFO - -------------------------------------------------------------------------------- 2024-11-10 18:06:38,796 - INFO - Deleted project: ctest-TestBasicPolicy-77393147, ID : a9443b00-192f-4cba-838c-758067028144