2024-11-09 11:58:33,210 - INFO - Domain Default found not creating 2024-11-09 11:58:33,378 - INFO - Project ctest-TestBasicPolicy-78562672 not found, creating it 2024-11-09 11:58:33,879 - INFO - Created Project:ctest-TestBasicPolicy-78562672, ID : e937c645-78ed-48d9-aa32-b842ada8e509 2024-11-09 11:58:35,451 - INFO - ================================================================================ 2024-11-09 11:58:35,451 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-09 11:58:35,451 - 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-09 11:58:35,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.7': '0'}} with 2024-11-09 11:58:35,708 - INFO - Initial checks done. Running the testcase now 2024-11-09 11:58:35,708 - INFO - 2024-11-09 11:58:36,314 - DEBUG - Response for create_network : {'network': {'id': 'eced5a95-4043-428f-b868-f5a4435f73c9', 'name': 'ctest-vn-83114774', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-83114774'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 11:58:36,523 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b91cd4a0-2633-4db9-833f-6b98fa2ccb06', 'name': '', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'network_id': 'eced5a95-4043-428f-b868-f5a4435f73c9', 'ip_version': 4, 'cidr': '5.198.229.128/26', 'allocation_pools': [{'start': '5.198.229.130', 'end': '5.198.229.190'}], 'gateway_ip': '5.198.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.198.229.130', 'tags': [], 'project_id': 'e937c64578ed48d9aa32b842ada8e509'}} 2024-11-09 11:58:36,545 - INFO - Created VN ctest-vn-83114774 2024-11-09 11:58:36,609 - DEBUG - VN ctest-vn-83114774 UUID is eced5a95-4043-428f-b868-f5a4435f73c9 2024-11-09 11:58:36,934 - DEBUG - Response for create_network : {'network': {'id': '16c7d2a0-57e4-46f0-91df-352406807b22', 'name': 'ctest-vn-73441263', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-73441263'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 11:58:37,094 - DEBUG - Response for create_subnet : {'subnet': {'id': '57e87ecf-38aa-4574-a8b4-9ac9bc6a467b', 'name': '', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'network_id': '16c7d2a0-57e4-46f0-91df-352406807b22', 'ip_version': 4, 'cidr': '22.6.129.64/26', 'allocation_pools': [{'start': '22.6.129.66', 'end': '22.6.129.126'}], 'gateway_ip': '22.6.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.6.129.66', 'tags': [], 'project_id': 'e937c64578ed48d9aa32b842ada8e509'}} 2024-11-09 11:58:37,117 - INFO - Created VN ctest-vn-73441263 2024-11-09 11:58:37,178 - DEBUG - VN ctest-vn-73441263 UUID is 16c7d2a0-57e4-46f0-91df-352406807b22 2024-11-09 11:58:37,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774, 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-78562672:ctest-vn-73441263, 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-09 11:58:37,643 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eced5a95-4043-428f-b868-f5a4435f73c9', 'name': 'ctest-vn-83114774', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b91cd4a0-2633-4db9-833f-6b98fa2ccb06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-83114774'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738']], 'subnet_ipam': [{'subnet_cidr': '5.198.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-09 11:58:37,947 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16c7d2a0-57e4-46f0-91df-352406807b22', 'name': 'ctest-vn-73441263', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57e87ecf-38aa-4574-a8b4-9ac9bc6a467b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-73441263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738']], 'subnet_ipam': [{'subnet_cidr': '22.6.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-09 11:58:38,106 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-09 11:58:38,414 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-09 11:58:38,448 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f 2024-11-09 11:58:38,464 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509 2024-11-09 11:58:38,553 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9 2024-11-09 11:58:38,582 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9 2024-11-09 11:58:38,601 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa 2024-11-09 11:58:38,612 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa 2024-11-09 11:58:38,622 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/97e02ee1-26f5-423b-9e70-355c6129fb2b 2024-11-09 11:58:38,631 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-09 11:58:38,631 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9 2024-11-09 11:58:38,646 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa 2024-11-09 11:58:38,669 - INFO - Verified VN network id 7 for VN eced5a95-4043-428f-b868-f5a4435f73c9 2024-11-09 11:58:38,669 - INFO - Verifications in API Server for VN ctest-vn-83114774 passed 2024-11-09 11:58:38,669 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9 2024-11-09 11:58:38,683 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa 2024-11-09 11:58:38,693 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa 2024-11-09 11:58:38,702 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/97e02ee1-26f5-423b-9e70-355c6129fb2b 2024-11-09 11:58:38,718 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78562672', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17072401359506195087', 'uuid-lslong': '13288140786410419145'}, 'enable': 'true', 'created': '2024-11-09T11:58:36', 'last-modified': '2024-11-09T11:58:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110325'} 2024-11-09 11:58:38,726 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-09 11:58:38,726 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83114774 passed 2024-11-09 11:58:38,726 - DEBUG - ====Verifying policy data for ctest-vn-83114774 in API_Server ====== 2024-11-09 11:58:38,726 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-09 11:58:38,734 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f 2024-11-09 11:58:38,749 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509 2024-11-09 11:58:38,836 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9 2024-11-09 11:58:38,851 - DEBUG - ==>Verifying data for policy with id: 4086235f-6e8b-4920-a115-6d73b1df6e01, fqn: ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738'] 2024-11-09 11:58:38,851 - INFO - VN ctest-vn-83114774 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-09 11:58:38,852 - DEBUG - Verifying the vn in opserver 2024-11-09 11:58:38,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774 virtual network link through opserver 10.0.0.27 2024-11-09 11:58:38,852 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-11-09 11:58:39,155 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-11-09 11:58:39,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774?flat'} 2024-11-09 11:58:39,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774 is found in opserver 2024-11-09 11:58:39,242 - DEBUG - Do not have enough data to verify VN in agent 2024-11-09 11:58:39,247 - DEBUG - VRF ids for VN ctest-vn-83114774: {} 2024-11-09 11:58:39,247 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-09 11:58:39,254 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f 2024-11-09 11:58:39,267 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509 2024-11-09 11:58:39,350 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22 2024-11-09 11:58:39,371 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22 2024-11-09 11:58:39,390 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c 2024-11-09 11:58:39,399 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c 2024-11-09 11:58:39,410 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/acdd990b-6920-476d-bc95-fe2387ee914d 2024-11-09 11:58:39,418 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-09 11:58:39,418 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22 2024-11-09 11:58:39,432 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c 2024-11-09 11:58:39,458 - INFO - Verified VN network id 8 for VN 16c7d2a0-57e4-46f0-91df-352406807b22 2024-11-09 11:58:39,458 - INFO - Verifications in API Server for VN ctest-vn-73441263 passed 2024-11-09 11:58:39,458 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22 2024-11-09 11:58:39,477 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c 2024-11-09 11:58:39,488 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c 2024-11-09 11:58:39,497 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/acdd990b-6920-476d-bc95-fe2387ee914d 2024-11-09 11:58:39,513 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78562672', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1641512175311013616', 'uuid-lslong': '10511178484150205218'}, 'enable': 'true', 'created': '2024-11-09T11:58:36', 'last-modified': '2024-11-09T11:58:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.640838'} 2024-11-09 11:58:39,520 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-09 11:58:39,520 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73441263 passed 2024-11-09 11:58:39,520 - DEBUG - ====Verifying policy data for ctest-vn-73441263 in API_Server ====== 2024-11-09 11:58:39,520 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-09 11:58:39,527 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f 2024-11-09 11:58:39,543 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509 2024-11-09 11:58:39,632 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22 2024-11-09 11:58:39,651 - DEBUG - ==>Verifying data for policy with id: 4086235f-6e8b-4920-a115-6d73b1df6e01, fqn: ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738'] 2024-11-09 11:58:39,652 - INFO - VN ctest-vn-73441263 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-09 11:58:39,652 - DEBUG - Verifying the vn in opserver 2024-11-09 11:58:39,652 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263 virtual network link through opserver 10.0.0.27 2024-11-09 11:58:39,652 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-11-09 11:58:39,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263?flat'} 2024-11-09 11:58:39,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263 is found in opserver 2024-11-09 11:58:39,677 - DEBUG - Do not have enough data to verify VN in agent 2024-11-09 11:58:39,683 - DEBUG - VRF ids for VN ctest-vn-73441263: {} 2024-11-09 11:58:39,742 - DEBUG - Services list from nova: [, , ] 2024-11-09 11:58:40,832 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2245-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2245-1) 2024-11-09 11:58:42,201 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2245-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2245-1) 2024-11-09 11:58:42,202 - INFO - Waiting for VM ctest-TestBasicPolicy-78562672-03245989 to be up.. 2024-11-09 11:58:42,300 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:58:47,387 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:58:52,490 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:58:57,623 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:59:02,719 - DEBUG - VM is in ACTIVE state now 2024-11-09 11:59:02,719 - INFO - VM name : ctest-TestBasicPolicy-78562672-03245989 2024-11-09 11:59:02,828 - DEBUG - VM ctest-TestBasicPolicy-78562672-03245989 ID is 0d39e06a-2e2a-467b-a0bf-bd9841b39d33 2024-11-09 11:59:02,850 - DEBUG - VM ctest-TestBasicPolicy-78562672-03245989 launched on Node cn-jenkins-deploy-platform-ansible-os-2245-1 2024-11-09 11:59:02,936 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/0d39e06a-2e2a-467b-a0bf-bd9841b39d33 2024-11-09 11:59:02,948 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/dce8b587-b23d-483a-b087-5f26435101aa 2024-11-09 11:59:06,240 - 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 1027ms') 2024-11-09 11:59:06,240 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78562672-03245989 failed! 2024-11-09 11:59:06,303 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774 is 5.198.229.129 and allocation pool is NOT set 2024-11-09 11:59:08,366 - 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.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.82 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.822/7.766/11.710/3.944 ms') 2024-11-09 11:59:08,367 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78562672-03245989 passed 2024-11-09 11:59:08,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:59:08,526 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78562672-03245989, IP 5.198.229.131, Port 22 2024-11-09 11:59:08,592 - 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-09 11:59:08,683 - DEBUG - VM ctest-TestBasicPolicy-78562672-03245989 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-09 11:59:13,684 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:59:13,684 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78562672-03245989, IP 5.198.229.131, Port 22 2024-11-09 11:59:13,852 - DEBUG - VM ctest-TestBasicPolicy-78562672-03245989 is ready for SSH connections 2024-11-09 11:59:13,852 - INFO - Waiting for VM ctest-TestBasicPolicy-78562672-20767951 to be up.. 2024-11-09 11:59:13,936 - DEBUG - VM is in ACTIVE state now 2024-11-09 11:59:13,936 - INFO - VM name : ctest-TestBasicPolicy-78562672-20767951 2024-11-09 11:59:14,029 - DEBUG - VM ctest-TestBasicPolicy-78562672-20767951 ID is 8e515a57-046c-4405-bee5-895ea5319b14 2024-11-09 11:59:14,029 - DEBUG - VM ctest-TestBasicPolicy-78562672-20767951 launched on Node cn-jenkins-deploy-platform-ansible-os-2245-1 2024-11-09 11:59:14,115 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/8e515a57-046c-4405-bee5-895ea5319b14 2024-11-09 11:59:14,125 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/676163d9-78a6-48c9-8bd1-9698c5cbb5ec 2024-11-09 11:59:15,386 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.407 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.407/1.872/3.337/1.465 ms') 2024-11-09 11:59:15,386 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-78562672-20767951 passed 2024-11-09 11:59:15,550 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:59:15,550 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78562672-20767951, IP 22.6.129.67, Port 22 2024-11-09 11:59:15,730 - DEBUG - VM ctest-TestBasicPolicy-78562672-20767951 is ready for SSH connections 2024-11-09 11:59:15,731 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:59:15,731 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.6.129.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-11-09 11:59:15,731 - DEBUG - ping -s 56 -c 3 -W 1 22.6.129.67 2024-11-09 11:59:19,734 - DEBUG - PING 22.6.129.67 (22.6.129.67): 56 data bytes 64 bytes from 22.6.129.67: seq=0 ttl=63 time=3.634 ms 64 bytes from 22.6.129.67: seq=1 ttl=63 time=0.850 ms 64 bytes from 22.6.129.67: seq=2 ttl=63 time=1.155 ms --- 22.6.129.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.850/1.879/3.634 ms 2024-11-09 11:59:19,734 - INFO - Ping to IP 22.6.129.67 from VM ctest-TestBasicPolicy-78562672-03245989 passed 2024-11-09 11:59:19,933 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4086235f-6e8b-4920-a115-6d73b1df6e01", "href": "http://10.0.0.27:8082/network-policy/4086235f-6e8b-4920-a115-6d73b1df6e01"}} 2024-11-09 11:59:19,933 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:59:19,934 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.6.129.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-11-09 11:59:19,934 - DEBUG - ping -s 56 -c 3 -W 1 22.6.129.67 2024-11-09 11:59:23,154 - DEBUG - PING 22.6.129.67 (22.6.129.67): 56 data bytes --- 22.6.129.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-09 11:59:23,154 - WARNING - Ping to IP 22.6.129.67 from VM ctest-TestBasicPolicy-78562672-03245989 failed 2024-11-09 11:59:23,154 - INFO - Deleting VM ctest-TestBasicPolicy-78562672-20767951 2024-11-09 11:59:23,227 - INFO - Deleting VM ctest-TestBasicPolicy-78562672-03245989 2024-11-09 11:59:23,680 - INFO - Deleted policy ctest-policy-allow-all-09164738 2024-11-09 11:59:23,680 - INFO - Deleting VN ctest-vn-73441263 2024-11-09 11:59:23,744 - DEBUG - VN 16c7d2a0-57e4-46f0-91df-352406807b22 still in use: Unable to complete operation on network 16c7d2a0-57e4-46f0-91df-352406807b22. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e3505597-6d50-403e-85c1-6adebc72e22b'] 2024-11-09 11:59:23,745 - WARNING - Deleting VN ctest-vn-73441263 failed..Will retry 2024-11-09 11:59:25,904 - DEBUG - Response for deleting network () 2024-11-09 11:59:25,904 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c 2024-11-09 11:59:25,915 - DEBUG - Response Code: 404 2024-11-09 11:59:25,915 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-09 11:59:25,924 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f 2024-11-09 11:59:25,954 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509 2024-11-09 11:59:26,058 - INFO - Validated that VN ctest-vn-73441263 is not found in API Server 2024-11-09 11:59:26,073 - DEBUG - VN ctest-vn-73441263 is not present in Agent 10.0.0.27 2024-11-09 11:59:26,073 - INFO - Validated that VN ctest-vn-73441263 is not in any agent 2024-11-09 11:59:26,092 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73441263 info 2024-11-09 11:59:26,092 - INFO - Deleting VN ctest-vn-83114774 2024-11-09 11:59:26,218 - DEBUG - Response for deleting network () 2024-11-09 11:59:26,218 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa 2024-11-09 11:59:26,225 - DEBUG - Response Code: 404 2024-11-09 11:59:26,225 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-11-09 11:59:26,235 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f 2024-11-09 11:59:26,293 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509 2024-11-09 11:59:26,379 - INFO - Validated that VN ctest-vn-83114774 is not found in API Server 2024-11-09 11:59:26,390 - DEBUG - VN ctest-vn-83114774 is not present in Agent 10.0.0.27 2024-11-09 11:59:26,390 - INFO - Validated that VN ctest-vn-83114774 is not in any agent 2024-11-09 11:59:26,405 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83114774 info 2024-11-09 11:59:26,667 - DEBUG - No XMPP flaps were noticed during the test
2024-11-09 11:59:26,667 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:51]
2024-11-09 11:59:26,667 - INFO - -------------------------------------------------------------------------------- 2024-11-09 11:59:27,364 - INFO - Deleted project: ctest-TestBasicPolicy-78562672, ID : e937c645-78ed-48d9-aa32-b842ada8e509