2024-08-26 22:25:24,157 - INFO - Domain Default found not creating 2024-08-26 22:25:24,327 - INFO - Project ctest-TestBasicPolicy-90212436 not found, creating it 2024-08-26 22:25:24,812 - INFO - Created Project:ctest-TestBasicPolicy-90212436, ID : f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1 2024-08-26 22:25:26,285 - INFO - ================================================================================ 2024-08-26 22:25:26,285 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-26 22:25:26,286 - 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-26 22:25:26,539 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.14': '0'}} with 2024-08-26 22:25:26,539 - INFO - Initial checks done. Running the testcase now 2024-08-26 22:25:26,539 - INFO - 2024-08-26 22:25:27,103 - DEBUG - Response for create_network : {'network': {'id': '8fbc21d5-3e50-4286-90fe-9fffc0c0fe72', 'name': 'ctest-vn-58941838', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-58941838'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 22:25:27,268 - DEBUG - Response for create_subnet : {'subnet': {'id': '02361666-99ac-4971-9e8a-5d093e41e731', 'name': '', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'network_id': '8fbc21d5-3e50-4286-90fe-9fffc0c0fe72', 'ip_version': 4, 'cidr': '53.204.214.128/26', 'allocation_pools': [{'start': '53.204.214.130', 'end': '53.204.214.190'}], 'gateway_ip': '53.204.214.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.204.214.130', 'tags': [], 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1'}} 2024-08-26 22:25:27,289 - INFO - Created VN ctest-vn-58941838 2024-08-26 22:25:27,344 - DEBUG - VN ctest-vn-58941838 UUID is 8fbc21d5-3e50-4286-90fe-9fffc0c0fe72 2024-08-26 22:25:27,886 - DEBUG - Response for create_network : {'network': {'id': 'a3410394-2149-4d1f-a123-74bfb7122137', 'name': 'ctest-vn-50793393', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-50793393'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 22:25:28,119 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c28cf4bb-d45e-4518-85e7-62883660f788', 'name': '', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'network_id': 'a3410394-2149-4d1f-a123-74bfb7122137', 'ip_version': 4, 'cidr': '163.143.92.0/26', 'allocation_pools': [{'start': '163.143.92.2', 'end': '163.143.92.62'}], 'gateway_ip': '163.143.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.143.92.2', 'tags': [], 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1'}} 2024-08-26 22:25:28,141 - INFO - Created VN ctest-vn-50793393 2024-08-26 22:25:28,197 - DEBUG - VN ctest-vn-50793393 UUID is a3410394-2149-4d1f-a123-74bfb7122137 2024-08-26 22:25:28,323 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838, 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-90212436:ctest-vn-50793393, 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-26 22:25:28,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fbc21d5-3e50-4286-90fe-9fffc0c0fe72', 'name': 'ctest-vn-58941838', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02361666-99ac-4971-9e8a-5d093e41e731'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-58941838'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333']], 'subnet_ipam': [{'subnet_cidr': '53.204.214.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 22:25:28,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3410394-2149-4d1f-a123-74bfb7122137', 'name': 'ctest-vn-50793393', 'tenant_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'project_id': 'f3cd8f812ae54b7e93c5e7b5f229b6d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c28cf4bb-d45e-4518-85e7-62883660f788'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-vn-50793393'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333']], 'subnet_ipam': [{'subnet_cidr': '163.143.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 22:25:29,077 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-26 22:25:29,375 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-26 22:25:29,405 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55 2024-08-26 22:25:29,420 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1 2024-08-26 22:25:29,492 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72 2024-08-26 22:25:29,502 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72 2024-08-26 22:25:29,510 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332 2024-08-26 22:25:29,517 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332 2024-08-26 22:25:29,524 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ad3ebcd6-198d-4eb6-81d5-6771a2a48dfb 2024-08-26 22:25:29,530 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 22:25:29,530 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72 2024-08-26 22:25:29,538 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332 2024-08-26 22:25:29,550 - INFO - Verified VN network id 8 for VN 8fbc21d5-3e50-4286-90fe-9fffc0c0fe72 2024-08-26 22:25:29,550 - INFO - Verifications in API Server for VN ctest-vn-58941838 passed 2024-08-26 22:25:29,550 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72 2024-08-26 22:25:29,559 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332 2024-08-26 22:25:29,566 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332 2024-08-26 22:25:29,574 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ad3ebcd6-198d-4eb6-81d5-6771a2a48dfb 2024-08-26 22:25:29,587 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90212436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10357190442802496134', 'uuid-lslong': '10447964106345479794'}, 'enable': 'true', 'created': '2024-08-26T22:25:27', 'last-modified': '2024-08-26T22:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983623'} 2024-08-26 22:25:29,594 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 22:25:29,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58941838 passed 2024-08-26 22:25:29,594 - DEBUG - ====Verifying policy data for ctest-vn-58941838 in API_Server ====== 2024-08-26 22:25:29,594 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-26 22:25:29,601 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55 2024-08-26 22:25:29,614 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1 2024-08-26 22:25:29,683 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8fbc21d5-3e50-4286-90fe-9fffc0c0fe72 2024-08-26 22:25:29,693 - DEBUG - ==>Verifying data for policy with id: 9e1a8103-d814-4077-ab33-8f1fe3902905, fqn: ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333'] 2024-08-26 22:25:29,693 - INFO - VN ctest-vn-58941838 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 22:25:29,693 - DEBUG - Verifying the vn in opserver 2024-08-26 22:25:29,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838 virtual network link through opserver 10.0.0.29 2024-08-26 22:25:29,694 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-08-26 22:25:29,989 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-08-26 22:25:30,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838?flat'} 2024-08-26 22:25:30,053 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838 is found in opserver 2024-08-26 22:25:30,065 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 22:25:30,071 - DEBUG - VRF ids for VN ctest-vn-58941838: {} 2024-08-26 22:25:30,071 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-26 22:25:30,078 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55 2024-08-26 22:25:30,091 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1 2024-08-26 22:25:30,162 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137 2024-08-26 22:25:30,173 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137 2024-08-26 22:25:30,183 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad 2024-08-26 22:25:30,190 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad 2024-08-26 22:25:30,199 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/372b03c8-9745-4ffe-b895-e3d289c157a8 2024-08-26 22:25:30,206 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 22:25:30,206 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137 2024-08-26 22:25:30,217 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad 2024-08-26 22:25:30,231 - INFO - Verified VN network id 9 for VN a3410394-2149-4d1f-a123-74bfb7122137 2024-08-26 22:25:30,231 - INFO - Verifications in API Server for VN ctest-vn-50793393 passed 2024-08-26 22:25:30,231 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137 2024-08-26 22:25:30,241 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad 2024-08-26 22:25:30,248 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad 2024-08-26 22:25:30,255 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/372b03c8-9745-4ffe-b895-e3d289c157a8 2024-08-26 22:25:30,268 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90212436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11763687636416941343', 'uuid-lslong': '11611252631050264887'}, 'enable': 'true', 'created': '2024-08-26T22:25:27', 'last-modified': '2024-08-26T22:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414916'} 2024-08-26 22:25:30,275 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 22:25:30,275 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50793393 passed 2024-08-26 22:25:30,275 - DEBUG - ====Verifying policy data for ctest-vn-50793393 in API_Server ====== 2024-08-26 22:25:30,275 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-26 22:25:30,281 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55 2024-08-26 22:25:30,296 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1 2024-08-26 22:25:30,375 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a3410394-2149-4d1f-a123-74bfb7122137 2024-08-26 22:25:30,384 - DEBUG - ==>Verifying data for policy with id: 9e1a8103-d814-4077-ab33-8f1fe3902905, fqn: ['default-domain', 'ctest-TestBasicPolicy-90212436', 'ctest-policy-allow-all-61537333'] 2024-08-26 22:25:30,384 - INFO - VN ctest-vn-50793393 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 22:25:30,384 - DEBUG - Verifying the vn in opserver 2024-08-26 22:25:30,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393 virtual network link through opserver 10.0.0.29 2024-08-26 22:25:30,384 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-08-26 22:25:30,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393?flat'} 2024-08-26 22:25:30,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-50793393 is found in opserver 2024-08-26 22:25:30,408 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 22:25:30,415 - DEBUG - VRF ids for VN ctest-vn-50793393: {} 2024-08-26 22:25:30,475 - DEBUG - Services list from nova: [, , ] 2024-08-26 22:25:31,528 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1776-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1776-1) 2024-08-26 22:25:32,801 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1776-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1776-1) 2024-08-26 22:25:32,801 - INFO - Waiting for VM ctest-TestBasicPolicy-90212436-96740031 to be up.. 2024-08-26 22:25:32,895 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 22:25:37,981 - DEBUG - VM is in ACTIVE state now 2024-08-26 22:25:37,981 - INFO - VM name : ctest-TestBasicPolicy-90212436-96740031 2024-08-26 22:25:38,061 - DEBUG - VM ctest-TestBasicPolicy-90212436-96740031 ID is a9bb00f5-b568-428c-b884-18b1ae467502 2024-08-26 22:25:38,081 - DEBUG - VM ctest-TestBasicPolicy-90212436-96740031 launched on Node cn-jenkins-deploy-platform-ansible-os-1776-1 2024-08-26 22:25:38,161 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/a9bb00f5-b568-428c-b884-18b1ae467502 2024-08-26 22:25:38,170 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/20d21313-4106-41ce-a387-656ecc10e121 2024-08-26 22:25:41,423 - 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-26 22:25:41,423 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90212436-96740031 failed! 2024-08-26 22:25:41,477 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90212436:ctest-vn-58941838 is 53.204.214.129 and allocation pool is NOT set 2024-08-26 22:25:43,539 - 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=11.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.489 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.489/6.006/11.524/5.517 ms') 2024-08-26 22:25:43,539 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90212436-96740031 passed 2024-08-26 22:25:43,693 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:43,693 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90212436-96740031, IP 53.204.214.131, Port 22 2024-08-26 22:25:43,748 - 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-26 22:25:43,828 - DEBUG - VM ctest-TestBasicPolicy-90212436-96740031 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 22:25:48,829 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:48,829 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90212436-96740031, IP 53.204.214.131, Port 22 2024-08-26 22:25:48,985 - DEBUG - VM ctest-TestBasicPolicy-90212436-96740031 is ready for SSH connections 2024-08-26 22:25:48,985 - INFO - Waiting for VM ctest-TestBasicPolicy-90212436-63004935 to be up.. 2024-08-26 22:25:49,071 - DEBUG - VM is in ACTIVE state now 2024-08-26 22:25:49,071 - INFO - VM name : ctest-TestBasicPolicy-90212436-63004935 2024-08-26 22:25:49,158 - DEBUG - VM ctest-TestBasicPolicy-90212436-63004935 ID is d192ac28-23f7-4b52-9e77-c68e0d2c6348 2024-08-26 22:25:49,158 - DEBUG - VM ctest-TestBasicPolicy-90212436-63004935 launched on Node cn-jenkins-deploy-platform-ansible-os-1776-1 2024-08-26 22:25:49,241 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/d192ac28-23f7-4b52-9e77-c68e0d2c6348 2024-08-26 22:25:49,250 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/63746cec-0cbd-4729-8ec1-f81fcc7cb7d4 2024-08-26 22:25:50,492 - 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=2.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.443 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.443/1.633/2.823/1.190 ms') 2024-08-26 22:25:50,492 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90212436-63004935 passed 2024-08-26 22:25:50,660 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:50,661 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90212436-63004935, IP 163.143.92.3, Port 22 2024-08-26 22:25:50,820 - DEBUG - VM ctest-TestBasicPolicy-90212436-63004935 is ready for SSH connections 2024-08-26 22:25:50,820 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:50,821 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.143.92.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-26 22:25:50,821 - DEBUG - ping -s 56 -c 3 -W 1 163.143.92.3 2024-08-26 22:25:54,506 - DEBUG - PING 163.143.92.3 (163.143.92.3): 56 data bytes 64 bytes from 163.143.92.3: seq=0 ttl=63 time=4.194 ms 64 bytes from 163.143.92.3: seq=1 ttl=63 time=0.835 ms 64 bytes from 163.143.92.3: seq=2 ttl=63 time=1.212 ms --- 163.143.92.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.835/2.080/4.194 ms 2024-08-26 22:25:54,506 - INFO - Ping to IP 163.143.92.3 from VM ctest-TestBasicPolicy-90212436-96740031 passed 2024-08-26 22:25:54,688 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9e1a8103-d814-4077-ab33-8f1fe3902905", "href": "http://10.0.0.29:8082/network-policy/9e1a8103-d814-4077-ab33-8f1fe3902905"}} 2024-08-26 22:25:54,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:54,689 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.143.92.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-26 22:25:54,689 - DEBUG - ping -s 56 -c 3 -W 1 163.143.92.3 2024-08-26 22:25:57,938 - DEBUG - PING 163.143.92.3 (163.143.92.3): 56 data bytes 64 bytes from 163.143.92.3: seq=0 ttl=63 time=1.372 ms --- 163.143.92.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.372/1.372/1.372 ms 2024-08-26 22:25:57,938 - WARNING - Ping to IP 163.143.92.3 from VM ctest-TestBasicPolicy-90212436-96740031 failed 2024-08-26 22:25:57,938 - INFO - Deleting VM ctest-TestBasicPolicy-90212436-63004935 2024-08-26 22:25:58,006 - INFO - Deleting VM ctest-TestBasicPolicy-90212436-96740031 2024-08-26 22:25:58,612 - INFO - Deleted policy ctest-policy-allow-all-61537333 2024-08-26 22:25:58,612 - INFO - Deleting VN ctest-vn-50793393 2024-08-26 22:25:58,668 - DEBUG - VN a3410394-2149-4d1f-a123-74bfb7122137 still in use: Unable to complete operation on network a3410394-2149-4d1f-a123-74bfb7122137. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8c11ff0b-5962-4451-8b23-b7b268bb6ed1'] 2024-08-26 22:25:58,669 - WARNING - Deleting VN ctest-vn-50793393 failed..Will retry 2024-08-26 22:26:00,783 - DEBUG - Response for deleting network () 2024-08-26 22:26:00,783 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/69a93934-77ff-4b6d-8d98-55dbd675b5ad 2024-08-26 22:26:00,790 - DEBUG - Response Code: 404 2024-08-26 22:26:00,790 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-26 22:26:00,797 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55 2024-08-26 22:26:00,860 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1 2024-08-26 22:26:00,930 - INFO - Validated that VN ctest-vn-50793393 is not found in API Server 2024-08-26 22:26:00,944 - DEBUG - VN ctest-vn-50793393 is not present in Agent 10.0.0.29 2024-08-26 22:26:00,944 - INFO - Validated that VN ctest-vn-50793393 is not in any agent 2024-08-26 22:26:00,960 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50793393 info 2024-08-26 22:26:00,960 - INFO - Deleting VN ctest-vn-58941838 2024-08-26 22:26:01,076 - DEBUG - Response for deleting network () 2024-08-26 22:26:01,077 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/24fda15d-fb09-4663-a155-19a5519b5332 2024-08-26 22:26:01,085 - DEBUG - Response Code: 404 2024-08-26 22:26:01,086 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-26 22:26:01,092 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2d81f321-0ba5-446a-b9e6-944050897b55 2024-08-26 22:26:01,145 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1 2024-08-26 22:26:01,215 - INFO - Validated that VN ctest-vn-58941838 is not found in API Server 2024-08-26 22:26:01,226 - DEBUG - VN ctest-vn-58941838 is not present in Agent 10.0.0.29 2024-08-26 22:26:01,226 - INFO - Validated that VN ctest-vn-58941838 is not in any agent 2024-08-26 22:26:01,242 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58941838 info 2024-08-26 22:26:01,502 - DEBUG - No XMPP flaps were noticed during the test
2024-08-26 22:26:01,502 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2024-08-26 22:26:01,502 - INFO - -------------------------------------------------------------------------------- 2024-08-26 22:26:02,779 - INFO - Deleted project: ctest-TestBasicPolicy-90212436, ID : f3cd8f81-2ae5-4b7e-93c5-e7b5f229b6d1