2024-11-10 20:41:29,011 - INFO - Domain Default found not creating 2024-11-10 20:41:29,181 - INFO - Project ctest-TestBasicPolicy-32082483 not found, creating it 2024-11-10 20:41:29,672 - INFO - Created Project:ctest-TestBasicPolicy-32082483, ID : f268f735-1e8a-4944-9637-7823ca7a3c25 2024-11-10 20:41:31,357 - INFO - ================================================================================ 2024-11-10 20:41:31,357 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 20:41:31,357 - 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 20:41:31,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.13': '0'}} with 2024-11-10 20:41:31,612 - INFO - Initial checks done. Running the testcase now 2024-11-10 20:41:31,612 - INFO - 2024-11-10 20:41:32,530 - DEBUG - Response for create_network : {'network': {'id': '4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb', 'name': 'ctest-vn-96056093', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-96056093'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:41:32,767 - DEBUG - Response for create_subnet : {'subnet': {'id': '2435458f-8557-4eb6-b62b-de2dea32feaf', 'name': '', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'network_id': '4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb', 'ip_version': 4, 'cidr': '11.239.114.192/26', 'allocation_pools': [{'start': '11.239.114.194', 'end': '11.239.114.254'}], 'gateway_ip': '11.239.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.239.114.194', 'tags': [], 'project_id': 'f268f7351e8a494496377823ca7a3c25'}} 2024-11-10 20:41:32,787 - INFO - Created VN ctest-vn-96056093 2024-11-10 20:41:32,845 - DEBUG - VN ctest-vn-96056093 UUID is 4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb 2024-11-10 20:41:33,178 - DEBUG - Response for create_network : {'network': {'id': '761b3c29-faa2-477e-aeb1-7ca0bc1d3055', 'name': 'ctest-vn-22696811', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-22696811'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:41:33,389 - DEBUG - Response for create_subnet : {'subnet': {'id': '56ec4b6e-29fb-4403-834c-2311ae14b04b', 'name': '', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'network_id': '761b3c29-faa2-477e-aeb1-7ca0bc1d3055', 'ip_version': 4, 'cidr': '93.162.187.128/26', 'allocation_pools': [{'start': '93.162.187.130', 'end': '93.162.187.190'}], 'gateway_ip': '93.162.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.162.187.130', 'tags': [], 'project_id': 'f268f7351e8a494496377823ca7a3c25'}} 2024-11-10 20:41:33,414 - INFO - Created VN ctest-vn-22696811 2024-11-10 20:41:33,473 - DEBUG - VN ctest-vn-22696811 UUID is 761b3c29-faa2-477e-aeb1-7ca0bc1d3055 2024-11-10 20:41:33,604 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093, 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-32082483:ctest-vn-22696811, 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 20:41:33,931 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb', 'name': 'ctest-vn-96056093', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2435458f-8557-4eb6-b62b-de2dea32feaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-96056093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255']], 'subnet_ipam': [{'subnet_cidr': '11.239.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:41:34,180 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '761b3c29-faa2-477e-aeb1-7ca0bc1d3055', 'name': 'ctest-vn-22696811', 'tenant_id': 'f268f7351e8a494496377823ca7a3c25', 'project_id': 'f268f7351e8a494496377823ca7a3c25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56ec4b6e-29fb-4403-834c-2311ae14b04b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-vn-22696811'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255']], 'subnet_ipam': [{'subnet_cidr': '93.162.187.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:41:34,333 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 20:41:34,690 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 20:41:34,725 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1 2024-11-10 20:41:34,743 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25 2024-11-10 20:41:34,828 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb 2024-11-10 20:41:34,845 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb 2024-11-10 20:41:34,860 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7 2024-11-10 20:41:34,871 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7 2024-11-10 20:41:34,881 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e40f980e-dde5-4026-ae83-8c60fceeacaf 2024-11-10 20:41:34,890 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 20:41:34,890 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb 2024-11-10 20:41:34,905 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7 2024-11-10 20:41:34,930 - INFO - Verified VN network id 8 for VN 4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb 2024-11-10 20:41:34,930 - INFO - Verifications in API Server for VN ctest-vn-96056093 passed 2024-11-10 20:41:34,930 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb 2024-11-10 20:41:34,948 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7 2024-11-10 20:41:34,958 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7 2024-11-10 20:41:34,967 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e40f980e-dde5-4026-ae83-8c60fceeacaf 2024-11-10 20:41:34,982 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32082483', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5724214724547659988', 'uuid-lslong': '12896442142644695531'}, 'enable': 'true', 'created': '2024-11-10T20:41:32', 'last-modified': '2024-11-10T20:41:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.081915'} 2024-11-10 20:41:34,989 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 20:41:34,990 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96056093 passed 2024-11-10 20:41:34,990 - DEBUG - ====Verifying policy data for ctest-vn-96056093 in API_Server ====== 2024-11-10 20:41:34,990 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 20:41:34,996 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1 2024-11-10 20:41:35,011 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25 2024-11-10 20:41:35,097 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4f707ef6-bab9-48d4-b2f9-5dcceab6f1eb 2024-11-10 20:41:35,113 - DEBUG - ==>Verifying data for policy with id: bcaf53a3-0fc7-4ee7-a129-3fbca71baa2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255'] 2024-11-10 20:41:35,113 - INFO - VN ctest-vn-96056093 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 20:41:35,113 - DEBUG - Verifying the vn in opserver 2024-11-10 20:41:35,113 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093 virtual network link through opserver 10.0.0.36 2024-11-10 20:41:35,113 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-11-10 20:41:35,455 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-11-10 20:41:35,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093?flat'} 2024-11-10 20:41:35,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093 is found in opserver 2024-11-10 20:41:35,538 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 20:41:35,547 - DEBUG - VRF ids for VN ctest-vn-96056093: {} 2024-11-10 20:41:35,547 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 20:41:35,554 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1 2024-11-10 20:41:35,568 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25 2024-11-10 20:41:35,653 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055 2024-11-10 20:41:35,677 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055 2024-11-10 20:41:35,691 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d 2024-11-10 20:41:35,701 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d 2024-11-10 20:41:35,712 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d7ba4afd-4a5f-446e-938d-ffcbb2d6933c 2024-11-10 20:41:35,722 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 20:41:35,723 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055 2024-11-10 20:41:35,738 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d 2024-11-10 20:41:35,761 - INFO - Verified VN network id 9 for VN 761b3c29-faa2-477e-aeb1-7ca0bc1d3055 2024-11-10 20:41:35,761 - INFO - Verifications in API Server for VN ctest-vn-22696811 passed 2024-11-10 20:41:35,761 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055 2024-11-10 20:41:35,778 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d 2024-11-10 20:41:35,787 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d 2024-11-10 20:41:35,797 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d7ba4afd-4a5f-446e-938d-ffcbb2d6933c 2024-11-10 20:41:35,812 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32082483', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8510462071842948990', 'uuid-lslong': '12587979463269888085'}, 'enable': 'true', 'created': '2024-11-10T20:41:33', 'last-modified': '2024-11-10T20:41:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.655556'} 2024-11-10 20:41:35,819 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 20:41:35,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22696811 passed 2024-11-10 20:41:35,819 - DEBUG - ====Verifying policy data for ctest-vn-22696811 in API_Server ====== 2024-11-10 20:41:35,819 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 20:41:35,826 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1 2024-11-10 20:41:35,840 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25 2024-11-10 20:41:35,919 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/761b3c29-faa2-477e-aeb1-7ca0bc1d3055 2024-11-10 20:41:35,935 - DEBUG - ==>Verifying data for policy with id: bcaf53a3-0fc7-4ee7-a129-3fbca71baa2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-32082483', 'ctest-policy-allow-all-47954255'] 2024-11-10 20:41:35,935 - INFO - VN ctest-vn-22696811 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 20:41:35,935 - DEBUG - Verifying the vn in opserver 2024-11-10 20:41:35,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811 virtual network link through opserver 10.0.0.36 2024-11-10 20:41:35,935 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-11-10 20:41:35,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811?flat'} 2024-11-10 20:41:35,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-22696811 is found in opserver 2024-11-10 20:41:35,959 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 20:41:35,964 - DEBUG - VRF ids for VN ctest-vn-22696811: {} 2024-11-10 20:41:36,026 - DEBUG - Services list from nova: [, , ] 2024-11-10 20:41:37,198 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2262-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2262-1) 2024-11-10 20:41:38,736 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2262-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2262-1) 2024-11-10 20:41:38,736 - INFO - Waiting for VM ctest-TestBasicPolicy-32082483-68271487 to be up.. 2024-11-10 20:41:38,829 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 20:41:43,924 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:41:43,924 - INFO - VM name : ctest-TestBasicPolicy-32082483-68271487 2024-11-10 20:41:44,016 - DEBUG - VM ctest-TestBasicPolicy-32082483-68271487 ID is e2d5fe90-08f4-4178-af55-187164406557 2024-11-10 20:41:44,037 - DEBUG - VM ctest-TestBasicPolicy-32082483-68271487 launched on Node cn-jenkins-deploy-platform-ansible-os-2262-1 2024-11-10 20:41:44,141 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/e2d5fe90-08f4-4178-af55-187164406557 2024-11-10 20:41:44,153 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/02d36e94-4fd6-4462-9bfc-0e730ced5fe2 2024-11-10 20:41:47,422 - 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 1018ms') 2024-11-10 20:41:47,422 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32082483-68271487 failed! 2024-11-10 20:41:47,485 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32082483:ctest-vn-96056093 is 11.239.114.193 and allocation pool is NOT set 2024-11-10 20:41:49,551 - 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.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.578 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 = 0.578/5.047/9.516/4.469 ms') 2024-11-10 20:41:49,551 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32082483-68271487 passed 2024-11-10 20:41:49,721 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:41:49,722 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32082483-68271487, IP 11.239.114.195, Port 22 2024-11-10 20:41:49,788 - 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 20:41:49,900 - DEBUG - VM ctest-TestBasicPolicy-32082483-68271487 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 20:41:54,901 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:41:54,901 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32082483-68271487, IP 11.239.114.195, Port 22 2024-11-10 20:41:55,058 - DEBUG - VM ctest-TestBasicPolicy-32082483-68271487 is ready for SSH connections 2024-11-10 20:41:55,058 - INFO - Waiting for VM ctest-TestBasicPolicy-32082483-13146798 to be up.. 2024-11-10 20:41:55,142 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:41:55,142 - INFO - VM name : ctest-TestBasicPolicy-32082483-13146798 2024-11-10 20:41:55,243 - DEBUG - VM ctest-TestBasicPolicy-32082483-13146798 ID is 2480d1e3-60f4-46e9-bd93-2efeccaaa82c 2024-11-10 20:41:55,243 - DEBUG - VM ctest-TestBasicPolicy-32082483-13146798 launched on Node cn-jenkins-deploy-platform-ansible-os-2262-1 2024-11-10 20:41:55,333 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/2480d1e3-60f4-46e9-bd93-2efeccaaa82c 2024-11-10 20:41:55,343 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/b15cbfe9-861c-4959-b288-86ce38c70734 2024-11-10 20:41:56,607 - 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.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.417 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.417/1.837/3.257/1.420 ms') 2024-11-10 20:41:56,607 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-32082483-13146798 passed 2024-11-10 20:41:56,769 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:41:56,769 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32082483-13146798, IP 93.162.187.131, Port 22 2024-11-10 20:41:56,925 - DEBUG - VM ctest-TestBasicPolicy-32082483-13146798 is ready for SSH connections 2024-11-10 20:41:56,925 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:41:56,926 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.162.187.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-11-10 20:41:56,926 - DEBUG - ping -s 56 -c 3 -W 1 93.162.187.131 2024-11-10 20:42:01,000 - DEBUG - PING 93.162.187.131 (93.162.187.131): 56 data bytes 64 bytes from 93.162.187.131: seq=0 ttl=63 time=3.688 ms 64 bytes from 93.162.187.131: seq=1 ttl=63 time=1.050 ms 64 bytes from 93.162.187.131: seq=2 ttl=63 time=0.816 ms --- 93.162.187.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.816/1.851/3.688 ms 2024-11-10 20:42:01,000 - INFO - Ping to IP 93.162.187.131 from VM ctest-TestBasicPolicy-32082483-68271487 passed 2024-11-10 20:42:01,193 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bcaf53a3-0fc7-4ee7-a129-3fbca71baa2c", "href": "http://10.0.0.36:8082/network-policy/bcaf53a3-0fc7-4ee7-a129-3fbca71baa2c"}} 2024-11-10 20:42:01,193 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:42:01,193 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.162.187.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-11-10 20:42:01,193 - DEBUG - ping -s 56 -c 3 -W 1 93.162.187.131 2024-11-10 20:42:04,412 - DEBUG - PING 93.162.187.131 (93.162.187.131): 56 data bytes 64 bytes from 93.162.187.131: seq=0 ttl=63 time=1.580 ms --- 93.162.187.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.580/1.580/1.580 ms 2024-11-10 20:42:04,412 - WARNING - Ping to IP 93.162.187.131 from VM ctest-TestBasicPolicy-32082483-68271487 failed 2024-11-10 20:42:04,412 - INFO - Deleting VM ctest-TestBasicPolicy-32082483-13146798 2024-11-10 20:42:04,547 - INFO - Deleting VM ctest-TestBasicPolicy-32082483-68271487 2024-11-10 20:42:05,009 - INFO - Deleted policy ctest-policy-allow-all-47954255 2024-11-10 20:42:05,010 - INFO - Deleting VN ctest-vn-22696811 2024-11-10 20:42:05,068 - DEBUG - VN 761b3c29-faa2-477e-aeb1-7ca0bc1d3055 still in use: Unable to complete operation on network 761b3c29-faa2-477e-aeb1-7ca0bc1d3055. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-78d63e41-0c1e-43c0-9fdb-7acdb58e900e'] 2024-11-10 20:42:05,069 - WARNING - Deleting VN ctest-vn-22696811 failed..Will retry 2024-11-10 20:42:07,200 - DEBUG - Response for deleting network () 2024-11-10 20:42:07,200 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/56fd8e37-b29e-4e19-9128-29c34774ba6d 2024-11-10 20:42:07,208 - DEBUG - Response Code: 404 2024-11-10 20:42:07,208 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 20:42:07,215 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1 2024-11-10 20:42:07,272 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25 2024-11-10 20:42:07,369 - INFO - Validated that VN ctest-vn-22696811 is not found in API Server 2024-11-10 20:42:07,382 - DEBUG - VN ctest-vn-22696811 is not present in Agent 10.0.0.36 2024-11-10 20:42:07,382 - INFO - Validated that VN ctest-vn-22696811 is not in any agent 2024-11-10 20:42:07,399 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22696811 info 2024-11-10 20:42:07,399 - INFO - Deleting VN ctest-vn-96056093 2024-11-10 20:42:07,523 - DEBUG - Response for deleting network () 2024-11-10 20:42:07,524 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/e723e1e9-6204-402a-bcc1-e9daa180c7c7 2024-11-10 20:42:07,530 - DEBUG - Response Code: 404 2024-11-10 20:42:07,530 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-11-10 20:42:07,537 - DEBUG - Requesting: http://10.0.0.36:8082/domain/72129831-e805-4eb4-aa40-5bb66b1694f1 2024-11-10 20:42:07,592 - DEBUG - Requesting: http://10.0.0.36:8082/project/f268f735-1e8a-4944-9637-7823ca7a3c25 2024-11-10 20:42:07,684 - INFO - Validated that VN ctest-vn-96056093 is not found in API Server 2024-11-10 20:42:07,696 - DEBUG - VN ctest-vn-96056093 is not present in Agent 10.0.0.36 2024-11-10 20:42:07,697 - INFO - Validated that VN ctest-vn-96056093 is not in any agent 2024-11-10 20:42:07,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96056093 info 2024-11-10 20:42:07,971 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 20:42:07,972 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-11-10 20:42:07,972 - INFO - -------------------------------------------------------------------------------- 2024-11-10 20:42:08,745 - INFO - Deleted project: ctest-TestBasicPolicy-32082483, ID : f268f735-1e8a-4944-9637-7823ca7a3c25