2024-08-21 12:02:42,055 - INFO - Domain Default found not creating 2024-08-21 12:02:42,439 - INFO - Project ctest-TestBasicPolicy-91527187 not found, creating it 2024-08-21 12:02:43,208 - INFO - Created Project:ctest-TestBasicPolicy-91527187, ID : 1478ef8a-02d9-4daf-8c13-620d62890ed7 2024-08-21 12:02:45,248 - INFO - ================================================================================ 2024-08-21 12:02:45,248 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 12:02:45,248 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-08-21 12:02:45,537 - DEBUG - Nothing to compare xmpp stats {'10.0.0.60': {'10.20.0.18': '0'}} with 2024-08-21 12:02:45,537 - INFO - Initial checks done. Running the testcase now 2024-08-21 12:02:45,537 - INFO - 2024-08-21 12:02:46,283 - DEBUG - Response for create_network : {'network': {'id': '608df5fc-0c2b-4288-91a2-fd530f9dae9d', 'name': 'ctest-vn-79728156', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-79728156'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:02:46,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d6403f2-f674-4e7c-a51f-3fd59cd983f4', 'name': '', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'network_id': '608df5fc-0c2b-4288-91a2-fd530f9dae9d', 'ip_version': 4, 'cidr': '99.25.131.0/26', 'allocation_pools': [{'start': '99.25.131.2', 'end': '99.25.131.62'}], 'gateway_ip': '99.25.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.25.131.2', 'tags': [], 'project_id': '1478ef8a02d94daf8c13620d62890ed7'}} 2024-08-21 12:02:46,579 - INFO - Created VN ctest-vn-79728156 2024-08-21 12:02:46,638 - DEBUG - VN ctest-vn-79728156 UUID is 608df5fc-0c2b-4288-91a2-fd530f9dae9d 2024-08-21 12:02:47,023 - DEBUG - Response for create_network : {'network': {'id': 'f9aa7cab-7eed-4535-ba2a-171033d9cf67', 'name': 'ctest-vn-53406736', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-53406736'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:02:47,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '44fe6bc8-969d-42ec-b1bd-e889e1009dcb', 'name': '', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'network_id': 'f9aa7cab-7eed-4535-ba2a-171033d9cf67', 'ip_version': 4, 'cidr': '8.243.85.192/26', 'allocation_pools': [{'start': '8.243.85.194', 'end': '8.243.85.254'}], 'gateway_ip': '8.243.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.243.85.194', 'tags': [], 'project_id': '1478ef8a02d94daf8c13620d62890ed7'}} 2024-08-21 12:02:47,252 - INFO - Created VN ctest-vn-53406736 2024-08-21 12:02:47,310 - DEBUG - VN ctest-vn-53406736 UUID is f9aa7cab-7eed-4535-ba2a-171033d9cf67 2024-08-21 12:02:47,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156, 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-91527187:ctest-vn-53406736, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-08-21 12:02:47,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '608df5fc-0c2b-4288-91a2-fd530f9dae9d', 'name': 'ctest-vn-79728156', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d6403f2-f674-4e7c-a51f-3fd59cd983f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-79728156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506']], 'subnet_ipam': [{'subnet_cidr': '99.25.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:02:48,222 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9aa7cab-7eed-4535-ba2a-171033d9cf67', 'name': 'ctest-vn-53406736', 'tenant_id': '1478ef8a02d94daf8c13620d62890ed7', 'project_id': '1478ef8a02d94daf8c13620d62890ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44fe6bc8-969d-42ec-b1bd-e889e1009dcb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-vn-53406736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506']], 'subnet_ipam': [{'subnet_cidr': '8.243.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:02:48,402 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2024-08-21 12:02:48,732 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2024-08-21 12:02:48,774 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892 2024-08-21 12:02:48,804 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7 2024-08-21 12:02:48,901 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d 2024-08-21 12:02:48,923 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d 2024-08-21 12:02:48,948 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a 2024-08-21 12:02:48,968 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a 2024-08-21 12:02:48,987 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/fcfbe60b-4880-4f26-b490-bf712338626a 2024-08-21 12:02:49,004 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 12:02:49,005 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d 2024-08-21 12:02:49,028 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a 2024-08-21 12:02:49,057 - INFO - Verified VN network id 7 for VN 608df5fc-0c2b-4288-91a2-fd530f9dae9d 2024-08-21 12:02:49,057 - INFO - Verifications in API Server for VN ctest-vn-79728156 passed 2024-08-21 12:02:49,057 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d 2024-08-21 12:02:49,079 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a 2024-08-21 12:02:49,098 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a 2024-08-21 12:02:49,115 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/fcfbe60b-4880-4f26-b490-bf712338626a 2024-08-21 12:02:49,145 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91527187', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6957487462242009736', 'uuid-lslong': '10494228614912781981'}, 'enable': 'true', 'created': '2024-08-21T12:02:46', 'last-modified': '2024-08-21T12:02:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.305213'} 2024-08-21 12:02:49,162 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 12:02:49,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79728156 passed 2024-08-21 12:02:49,163 - DEBUG - ====Verifying policy data for ctest-vn-79728156 in API_Server ====== 2024-08-21 12:02:49,163 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2024-08-21 12:02:49,179 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892 2024-08-21 12:02:49,223 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7 2024-08-21 12:02:49,323 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/608df5fc-0c2b-4288-91a2-fd530f9dae9d 2024-08-21 12:02:49,345 - DEBUG - ==>Verifying data for policy with id: 8b02b20f-33eb-4ca4-8c04-f6f6adb626b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506'] 2024-08-21 12:02:49,345 - INFO - VN ctest-vn-79728156 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 12:02:49,346 - DEBUG - Verifying the vn in opserver 2024-08-21 12:02:49,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156 virtual network link through opserver 10.0.0.60 2024-08-21 12:02:49,346 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks 2024-08-21 12:02:49,703 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks 2024-08-21 12:02:49,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156?flat'} 2024-08-21 12:02:49,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156 is found in opserver 2024-08-21 12:02:49,833 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 12:02:49,839 - DEBUG - VRF ids for VN ctest-vn-79728156: {} 2024-08-21 12:02:49,839 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2024-08-21 12:02:49,861 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892 2024-08-21 12:02:49,879 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7 2024-08-21 12:02:49,995 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67 2024-08-21 12:02:50,017 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67 2024-08-21 12:02:50,035 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9 2024-08-21 12:02:50,051 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9 2024-08-21 12:02:50,064 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/14ad2df5-479c-4c64-a1be-68329232e126 2024-08-21 12:02:50,079 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 12:02:50,079 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67 2024-08-21 12:02:50,094 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9 2024-08-21 12:02:50,118 - INFO - Verified VN network id 8 for VN f9aa7cab-7eed-4535-ba2a-171033d9cf67 2024-08-21 12:02:50,118 - INFO - Verifications in API Server for VN ctest-vn-53406736 passed 2024-08-21 12:02:50,119 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67 2024-08-21 12:02:50,135 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9 2024-08-21 12:02:50,147 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9 2024-08-21 12:02:50,160 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/14ad2df5-479c-4c64-a1be-68329232e126 2024-08-21 12:02:50,189 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91527187', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17990328737495598389', 'uuid-lslong': '13414559798433271655'}, 'enable': 'true', 'created': '2024-08-21T12:02:46', 'last-modified': '2024-08-21T12:02:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.005963'} 2024-08-21 12:02:50,213 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 12:02:50,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53406736 passed 2024-08-21 12:02:50,214 - DEBUG - ====Verifying policy data for ctest-vn-53406736 in API_Server ====== 2024-08-21 12:02:50,214 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2024-08-21 12:02:50,230 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892 2024-08-21 12:02:50,258 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7 2024-08-21 12:02:50,384 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f9aa7cab-7eed-4535-ba2a-171033d9cf67 2024-08-21 12:02:50,397 - DEBUG - ==>Verifying data for policy with id: 8b02b20f-33eb-4ca4-8c04-f6f6adb626b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-91527187', 'ctest-policy-allow-all-56584506'] 2024-08-21 12:02:50,397 - INFO - VN ctest-vn-53406736 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 12:02:50,397 - DEBUG - Verifying the vn in opserver 2024-08-21 12:02:50,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736 virtual network link through opserver 10.0.0.60 2024-08-21 12:02:50,398 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks 2024-08-21 12:02:50,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736?flat'} 2024-08-21 12:02:50,422 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-53406736 is found in opserver 2024-08-21 12:02:50,446 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 12:02:50,458 - DEBUG - VRF ids for VN ctest-vn-53406736: {} 2024-08-21 12:02:50,617 - DEBUG - Services list from nova: [, , ] 2024-08-21 12:02:52,147 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1684-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1684-1) 2024-08-21 12:02:53,791 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1684-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1684-1) 2024-08-21 12:02:53,791 - INFO - Waiting for VM ctest-TestBasicPolicy-91527187-04182270 to be up.. 2024-08-21 12:02:53,894 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 12:02:59,007 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:02:59,008 - INFO - VM name : ctest-TestBasicPolicy-91527187-04182270 2024-08-21 12:02:59,141 - DEBUG - VM ctest-TestBasicPolicy-91527187-04182270 ID is ecace891-c796-40c4-aef7-dd3f2a121923 2024-08-21 12:02:59,168 - DEBUG - VM ctest-TestBasicPolicy-91527187-04182270 launched on Node cn-jenkins-deploy-platform-ansible-os-1684-1 2024-08-21 12:02:59,283 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine/ecace891-c796-40c4-aef7-dd3f2a121923 2024-08-21 12:02:59,296 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine-interface/e3d5cbc0-568c-49c5-9b12-733dd8305f6f 2024-08-21 12:03:02,595 - 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 1019ms') 2024-08-21 12:03:02,595 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91527187-04182270 failed! 2024-08-21 12:03:02,653 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91527187:ctest-vn-79728156 is 99.25.131.1 and allocation pool is NOT set 2024-08-21 12:03:04,726 - 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=6.60 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.80 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 = 2.801/4.700/6.600/1.899 ms') 2024-08-21 12:03:04,726 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91527187-04182270 passed 2024-08-21 12:03:04,902 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:03:04,902 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91527187-04182270, IP 99.25.131.3, Port 22 2024-08-21 12:03:04,967 - 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-08-21 12:03:05,107 - DEBUG - VM ctest-TestBasicPolicy-91527187-04182270 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 12:03:10,108 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:03:10,108 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91527187-04182270, IP 99.25.131.3, Port 22 2024-08-21 12:03:10,320 - DEBUG - VM ctest-TestBasicPolicy-91527187-04182270 is ready for SSH connections 2024-08-21 12:03:10,320 - INFO - Waiting for VM ctest-TestBasicPolicy-91527187-59195854 to be up.. 2024-08-21 12:03:10,532 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:03:10,532 - INFO - VM name : ctest-TestBasicPolicy-91527187-59195854 2024-08-21 12:03:10,722 - DEBUG - VM ctest-TestBasicPolicy-91527187-59195854 ID is 59208a9b-786a-4c9e-8c24-8488612d85de 2024-08-21 12:03:10,722 - DEBUG - VM ctest-TestBasicPolicy-91527187-59195854 launched on Node cn-jenkins-deploy-platform-ansible-os-1684-1 2024-08-21 12:03:10,891 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine/59208a9b-786a-4c9e-8c24-8488612d85de 2024-08-21 12:03:10,908 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine-interface/784cca6f-134f-42e9-b2ba-9f382fd4dedc 2024-08-21 12:03:12,224 - 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=6.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.512 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.512/3.474/6.436/2.962 ms') 2024-08-21 12:03:12,224 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-91527187-59195854 passed 2024-08-21 12:03:12,382 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:03:12,382 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91527187-59195854, IP 8.243.85.195, Port 22 2024-08-21 12:03:12,555 - DEBUG - VM ctest-TestBasicPolicy-91527187-59195854 is ready for SSH connections 2024-08-21 12:03:12,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:03:12,555 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 8.243.85.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.60, gateway password: c0ntrail123 2024-08-21 12:03:12,555 - DEBUG - ping -s 56 -c 3 -W 1 8.243.85.195 2024-08-21 12:03:16,884 - DEBUG - PING 8.243.85.195 (8.243.85.195): 56 data bytes 64 bytes from 8.243.85.195: seq=0 ttl=63 time=4.839 ms 64 bytes from 8.243.85.195: seq=1 ttl=63 time=1.547 ms 64 bytes from 8.243.85.195: seq=2 ttl=63 time=2.401 ms --- 8.243.85.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.547/2.929/4.839 ms 2024-08-21 12:03:16,885 - INFO - Ping to IP 8.243.85.195 from VM ctest-TestBasicPolicy-91527187-04182270 passed 2024-08-21 12:03:17,162 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8b02b20f-33eb-4ca4-8c04-f6f6adb626b8", "href": "http://10.0.0.60:8082/network-policy/8b02b20f-33eb-4ca4-8c04-f6f6adb626b8"}} 2024-08-21 12:03:17,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:03:17,162 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 8.243.85.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.60, gateway password: c0ntrail123 2024-08-21 12:03:17,162 - DEBUG - ping -s 56 -c 3 -W 1 8.243.85.195 2024-08-21 12:03:20,448 - DEBUG - PING 8.243.85.195 (8.243.85.195): 56 data bytes --- 8.243.85.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-21 12:03:20,448 - WARNING - Ping to IP 8.243.85.195 from VM ctest-TestBasicPolicy-91527187-04182270 failed 2024-08-21 12:03:20,449 - INFO - Deleting VM ctest-TestBasicPolicy-91527187-59195854 2024-08-21 12:03:20,599 - INFO - Deleting VM ctest-TestBasicPolicy-91527187-04182270 2024-08-21 12:03:21,167 - INFO - Deleted policy ctest-policy-allow-all-56584506 2024-08-21 12:03:21,167 - INFO - Deleting VN ctest-vn-53406736 2024-08-21 12:03:21,229 - DEBUG - VN f9aa7cab-7eed-4535-ba2a-171033d9cf67 still in use: Unable to complete operation on network f9aa7cab-7eed-4535-ba2a-171033d9cf67. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fb01fc25-c98f-4577-a27a-389e2f90c02c'] 2024-08-21 12:03:21,229 - WARNING - Deleting VN ctest-vn-53406736 failed..Will retry 2024-08-21 12:03:23,443 - DEBUG - Response for deleting network () 2024-08-21 12:03:23,443 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/185cfbe8-a8a0-4687-b46e-803db1e00eb9 2024-08-21 12:03:23,458 - DEBUG - Response Code: 404 2024-08-21 12:03:23,458 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2024-08-21 12:03:23,470 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892 2024-08-21 12:03:23,498 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7 2024-08-21 12:03:23,603 - INFO - Validated that VN ctest-vn-53406736 is not found in API Server 2024-08-21 12:03:23,625 - DEBUG - VN ctest-vn-53406736 is not present in Agent 10.0.0.60 2024-08-21 12:03:23,625 - INFO - Validated that VN ctest-vn-53406736 is not in any agent 2024-08-21 12:03:23,652 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53406736 info 2024-08-21 12:03:23,652 - INFO - Deleting VN ctest-vn-79728156 2024-08-21 12:03:23,854 - DEBUG - Response for deleting network () 2024-08-21 12:03:23,854 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/ed10b749-930d-4b2f-9b93-6c54c91a781a 2024-08-21 12:03:23,866 - DEBUG - Response Code: 404 2024-08-21 12:03:23,867 - DEBUG - Requesting: http://10.0.0.60:8082/domains 2024-08-21 12:03:23,877 - DEBUG - Requesting: http://10.0.0.60:8082/domain/c3eb752b-bca0-43f1-ab6d-ff11a1cac892 2024-08-21 12:03:23,898 - DEBUG - Requesting: http://10.0.0.60:8082/project/1478ef8a-02d9-4daf-8c13-620d62890ed7 2024-08-21 12:03:23,985 - INFO - Validated that VN ctest-vn-79728156 is not found in API Server 2024-08-21 12:03:24,004 - DEBUG - VN ctest-vn-79728156 is not present in Agent 10.0.0.60 2024-08-21 12:03:24,004 - INFO - Validated that VN ctest-vn-79728156 is not in any agent 2024-08-21 12:03:24,030 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79728156 info 2024-08-21 12:03:24,322 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 12:03:24,322 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2024-08-21 12:03:24,323 - INFO - -------------------------------------------------------------------------------- 2024-08-21 12:03:25,196 - INFO - Deleted project: ctest-TestBasicPolicy-91527187, ID : 1478ef8a-02d9-4daf-8c13-620d62890ed7