2025-01-09 16:37:42,684 - INFO - Domain Default found not creating 2025-01-09 16:37:42,834 - INFO - Project ctest-TestBasicPolicy-15619441 not found, creating it 2025-01-09 16:37:43,296 - INFO - Created Project:ctest-TestBasicPolicy-15619441, ID : 0b37f9ab-22ab-4558-bfab-e35fcf080caa 2025-01-09 16:37:44,743 - INFO - ================================================================================ 2025-01-09 16:37:44,744 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-09 16:37:44,744 - 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 2025-01-09 16:37:45,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with 2025-01-09 16:37:45,000 - INFO - Initial checks done. Running the testcase now 2025-01-09 16:37:45,001 - INFO - 2025-01-09 16:37:45,526 - DEBUG - Response for create_network : {'network': {'id': 'b3cd2c45-66de-45e4-b4a2-2e3ac783fb16', 'name': 'ctest-vn-24307299', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-24307299'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:45,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f58cd4e0-1284-43c6-8b43-d34c571c5479', 'name': '', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'network_id': 'b3cd2c45-66de-45e4-b4a2-2e3ac783fb16', 'ip_version': 4, 'cidr': '86.124.8.128/26', 'allocation_pools': [{'start': '86.124.8.130', 'end': '86.124.8.190'}], 'gateway_ip': '86.124.8.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.124.8.130', 'tags': [], 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa'}} 2025-01-09 16:37:45,723 - INFO - Created VN ctest-vn-24307299 2025-01-09 16:37:45,779 - DEBUG - VN ctest-vn-24307299 UUID is b3cd2c45-66de-45e4-b4a2-2e3ac783fb16 2025-01-09 16:37:46,057 - DEBUG - Response for create_network : {'network': {'id': '950cc273-499e-4c13-87ff-437e692e8436', 'name': 'ctest-vn-72908044', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-72908044'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:46,238 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e88e0e84-1df2-4950-868f-e95518b378b2', 'name': '', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'network_id': '950cc273-499e-4c13-87ff-437e692e8436', 'ip_version': 4, 'cidr': '46.13.9.192/26', 'allocation_pools': [{'start': '46.13.9.194', 'end': '46.13.9.254'}], 'gateway_ip': '46.13.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.13.9.194', 'tags': [], 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa'}} 2025-01-09 16:37:46,256 - INFO - Created VN ctest-vn-72908044 2025-01-09 16:37:46,311 - DEBUG - VN ctest-vn-72908044 UUID is 950cc273-499e-4c13-87ff-437e692e8436 2025-01-09 16:37:46,423 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299, 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-15619441:ctest-vn-72908044, 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] 2025-01-09 16:37:46,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3cd2c45-66de-45e4-b4a2-2e3ac783fb16', 'name': 'ctest-vn-24307299', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f58cd4e0-1284-43c6-8b43-d34c571c5479'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-24307299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310']], 'subnet_ipam': [{'subnet_cidr': '86.124.8.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:46,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '950cc273-499e-4c13-87ff-437e692e8436', 'name': 'ctest-vn-72908044', 'tenant_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'project_id': '0b37f9ab22ab4558bfabe35fcf080caa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e88e0e84-1df2-4950-868f-e95518b378b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-vn-72908044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310']], 'subnet_ipam': [{'subnet_cidr': '46.13.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 16:37:47,135 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-09 16:37:47,654 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-09 16:37:47,692 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773 2025-01-09 16:37:47,707 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa 2025-01-09 16:37:47,781 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16 2025-01-09 16:37:47,792 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16 2025-01-09 16:37:47,804 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843 2025-01-09 16:37:47,812 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843 2025-01-09 16:37:47,819 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f8c884cd-6a69-42da-a416-8c0439456828 2025-01-09 16:37:47,827 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 16:37:47,827 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16 2025-01-09 16:37:47,837 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843 2025-01-09 16:37:47,852 - INFO - Verified VN network id 8 for VN b3cd2c45-66de-45e4-b4a2-2e3ac783fb16 2025-01-09 16:37:47,852 - INFO - Verifications in API Server for VN ctest-vn-24307299 passed 2025-01-09 16:37:47,852 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16 2025-01-09 16:37:47,863 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843 2025-01-09 16:37:47,871 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843 2025-01-09 16:37:47,879 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f8c884cd-6a69-42da-a416-8c0439456828 2025-01-09 16:37:47,894 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15619441', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12956060379604993508', 'uuid-lslong': '13016016703044451094'}, 'enable': 'true', 'created': '2025-01-09T16:37:45', 'last-modified': '2025-01-09T16:37:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.191810'} 2025-01-09 16:37:47,901 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 16:37:47,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24307299 passed 2025-01-09 16:37:47,901 - DEBUG - ====Verifying policy data for ctest-vn-24307299 in API_Server ====== 2025-01-09 16:37:47,901 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-09 16:37:47,909 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773 2025-01-09 16:37:47,923 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa 2025-01-09 16:37:47,996 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3cd2c45-66de-45e4-b4a2-2e3ac783fb16 2025-01-09 16:37:48,007 - DEBUG - ==>Verifying data for policy with id: a02fc857-3b93-412c-9188-0349d12a55f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310'] 2025-01-09 16:37:48,007 - INFO - VN ctest-vn-24307299 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 16:37:48,007 - DEBUG - Verifying the vn in opserver 2025-01-09 16:37:48,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299 virtual network link through opserver 10.0.0.24 2025-01-09 16:37:48,007 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-01-09 16:37:48,298 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-01-09 16:37:48,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299?flat'} 2025-01-09 16:37:48,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299 is found in opserver 2025-01-09 16:37:48,376 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 16:37:48,382 - DEBUG - VRF ids for VN ctest-vn-24307299: {} 2025-01-09 16:37:48,382 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-09 16:37:48,389 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773 2025-01-09 16:37:48,401 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa 2025-01-09 16:37:48,475 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436 2025-01-09 16:37:48,488 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436 2025-01-09 16:37:48,499 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad 2025-01-09 16:37:48,507 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad 2025-01-09 16:37:48,515 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0e294379-4eb2-4004-aef0-3c200537f1db 2025-01-09 16:37:48,522 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 16:37:48,522 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436 2025-01-09 16:37:48,533 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad 2025-01-09 16:37:48,548 - INFO - Verified VN network id 9 for VN 950cc273-499e-4c13-87ff-437e692e8436 2025-01-09 16:37:48,549 - INFO - Verifications in API Server for VN ctest-vn-72908044 passed 2025-01-09 16:37:48,549 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436 2025-01-09 16:37:48,560 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad 2025-01-09 16:37:48,569 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad 2025-01-09 16:37:48,576 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0e294379-4eb2-4004-aef0-3c200537f1db 2025-01-09 16:37:48,589 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15619441', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10740173011783928851', 'uuid-lslong': '9799625524391085110'}, 'enable': 'true', 'created': '2025-01-09T16:37:46', 'last-modified': '2025-01-09T16:37:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.656254'} 2025-01-09 16:37:48,596 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 16:37:48,596 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72908044 passed 2025-01-09 16:37:48,596 - DEBUG - ====Verifying policy data for ctest-vn-72908044 in API_Server ====== 2025-01-09 16:37:48,596 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-09 16:37:48,602 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773 2025-01-09 16:37:48,617 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa 2025-01-09 16:37:48,688 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/950cc273-499e-4c13-87ff-437e692e8436 2025-01-09 16:37:48,698 - DEBUG - ==>Verifying data for policy with id: a02fc857-3b93-412c-9188-0349d12a55f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-15619441', 'ctest-policy-allow-all-47248310'] 2025-01-09 16:37:48,698 - INFO - VN ctest-vn-72908044 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 16:37:48,698 - DEBUG - Verifying the vn in opserver 2025-01-09 16:37:48,698 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044 virtual network link through opserver 10.0.0.24 2025-01-09 16:37:48,699 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-01-09 16:37:48,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044?flat'} 2025-01-09 16:37:48,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-72908044 is found in opserver 2025-01-09 16:37:48,720 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 16:37:48,725 - DEBUG - VRF ids for VN ctest-vn-72908044: {} 2025-01-09 16:37:48,785 - DEBUG - Services list from nova: [, , ] 2025-01-09 16:37:49,801 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2591-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2591-1) 2025-01-09 16:37:51,030 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2591-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2591-1) 2025-01-09 16:37:51,030 - INFO - Waiting for VM ctest-TestBasicPolicy-15619441-85179233 to be up.. 2025-01-09 16:37:51,109 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-09 16:37:56,191 - DEBUG - VM is in ACTIVE state now 2025-01-09 16:37:56,191 - INFO - VM name : ctest-TestBasicPolicy-15619441-85179233 2025-01-09 16:37:56,282 - DEBUG - VM ctest-TestBasicPolicy-15619441-85179233 ID is 9a0db947-b7e5-49e6-8c9b-519cb4845e39 2025-01-09 16:37:56,301 - DEBUG - VM ctest-TestBasicPolicy-15619441-85179233 launched on Node cn-jenkins-deploy-platform-ansible-os-2591-1 2025-01-09 16:37:56,380 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/9a0db947-b7e5-49e6-8c9b-519cb4845e39 2025-01-09 16:37:56,389 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/06842931-516d-49fb-8312-dcf0008438b9 2025-01-09 16:37:59,623 - 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 1002ms') 2025-01-09 16:37:59,624 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15619441-85179233 failed! 2025-01-09 16:37:59,683 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15619441:ctest-vn-24307299 is 86.124.8.129 and allocation pool is NOT set 2025-01-09 16:38:01,745 - 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.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.76 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.756/5.803/9.850/4.047 ms') 2025-01-09 16:38:01,745 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15619441-85179233 passed 2025-01-09 16:38:01,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:38:01,899 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15619441-85179233, IP 86.124.8.131, Port 22 2025-01-09 16:38:01,966 - 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': ''} 2025-01-09 16:38:02,050 - DEBUG - VM ctest-TestBasicPolicy-15619441-85179233 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-09 16:38:07,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:38:07,051 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15619441-85179233, IP 86.124.8.131, Port 22 2025-01-09 16:38:07,206 - DEBUG - VM ctest-TestBasicPolicy-15619441-85179233 is ready for SSH connections 2025-01-09 16:38:07,206 - INFO - Waiting for VM ctest-TestBasicPolicy-15619441-63746842 to be up.. 2025-01-09 16:38:07,285 - DEBUG - VM is in ACTIVE state now 2025-01-09 16:38:07,285 - INFO - VM name : ctest-TestBasicPolicy-15619441-63746842 2025-01-09 16:38:07,366 - DEBUG - VM ctest-TestBasicPolicy-15619441-63746842 ID is c90c9879-b7e2-4c40-80c8-237aedc200b7 2025-01-09 16:38:07,367 - DEBUG - VM ctest-TestBasicPolicy-15619441-63746842 launched on Node cn-jenkins-deploy-platform-ansible-os-2591-1 2025-01-09 16:38:07,441 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/c90c9879-b7e2-4c40-80c8-237aedc200b7 2025-01-09 16:38:07,450 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/e52cb00c-e9fc-46c9-b8f4-db230738c0a3 2025-01-09 16:38:08,690 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.379 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.379/1.659/2.940/1.280 ms') 2025-01-09 16:38:08,691 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15619441-63746842 passed 2025-01-09 16:38:08,839 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:38:08,839 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15619441-63746842, IP 46.13.9.195, Port 22 2025-01-09 16:38:08,991 - DEBUG - VM ctest-TestBasicPolicy-15619441-63746842 is ready for SSH connections 2025-01-09 16:38:08,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:38:08,991 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.13.9.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-01-09 16:38:08,991 - DEBUG - ping -s 56 -c 3 -W 1 46.13.9.195 2025-01-09 16:38:12,665 - DEBUG - PING 46.13.9.195 (46.13.9.195): 56 data bytes 64 bytes from 46.13.9.195: seq=0 ttl=63 time=3.323 ms 64 bytes from 46.13.9.195: seq=1 ttl=63 time=0.908 ms 64 bytes from 46.13.9.195: seq=2 ttl=63 time=0.785 ms --- 46.13.9.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.785/1.672/3.323 ms 2025-01-09 16:38:12,665 - INFO - Ping to IP 46.13.9.195 from VM ctest-TestBasicPolicy-15619441-85179233 passed 2025-01-09 16:38:12,846 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a02fc857-3b93-412c-9188-0349d12a55f4", "href": "http://10.0.0.24:8082/network-policy/a02fc857-3b93-412c-9188-0349d12a55f4"}} 2025-01-09 16:38:12,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 16:38:12,847 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.13.9.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-01-09 16:38:12,847 - DEBUG - ping -s 56 -c 3 -W 1 46.13.9.195 2025-01-09 16:38:16,056 - DEBUG - PING 46.13.9.195 (46.13.9.195): 56 data bytes 64 bytes from 46.13.9.195: seq=0 ttl=63 time=1.467 ms --- 46.13.9.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.467/1.467/1.467 ms 2025-01-09 16:38:16,056 - WARNING - Ping to IP 46.13.9.195 from VM ctest-TestBasicPolicy-15619441-85179233 failed 2025-01-09 16:38:16,056 - INFO - Deleting VM ctest-TestBasicPolicy-15619441-63746842 2025-01-09 16:38:16,127 - INFO - Deleting VM ctest-TestBasicPolicy-15619441-85179233 2025-01-09 16:38:16,504 - INFO - Deleted policy ctest-policy-allow-all-47248310 2025-01-09 16:38:16,504 - INFO - Deleting VN ctest-vn-72908044 2025-01-09 16:38:16,543 - DEBUG - VN 950cc273-499e-4c13-87ff-437e692e8436 still in use: Unable to complete operation on network 950cc273-499e-4c13-87ff-437e692e8436. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-faf89854-28ee-4f46-a0e7-ba21ed6af0eb'] 2025-01-09 16:38:16,543 - WARNING - Deleting VN ctest-vn-72908044 failed..Will retry 2025-01-09 16:38:18,656 - DEBUG - Response for deleting network () 2025-01-09 16:38:18,656 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/6e3eecad-a9eb-4908-a931-97ca1e8e24ad 2025-01-09 16:38:18,664 - DEBUG - Response Code: 404 2025-01-09 16:38:18,664 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-09 16:38:18,670 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773 2025-01-09 16:38:18,724 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa 2025-01-09 16:38:18,798 - INFO - Validated that VN ctest-vn-72908044 is not found in API Server 2025-01-09 16:38:18,809 - DEBUG - VN ctest-vn-72908044 is not present in Agent 10.0.0.24 2025-01-09 16:38:18,809 - INFO - Validated that VN ctest-vn-72908044 is not in any agent 2025-01-09 16:38:18,827 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72908044 info 2025-01-09 16:38:18,827 - INFO - Deleting VN ctest-vn-24307299 2025-01-09 16:38:18,925 - DEBUG - Response for deleting network () 2025-01-09 16:38:18,925 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffe83e5f-eca6-4890-9e28-bdc313c49843 2025-01-09 16:38:18,931 - DEBUG - Response Code: 404 2025-01-09 16:38:18,931 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-09 16:38:18,939 - DEBUG - Requesting: http://10.0.0.24:8082/domain/1291483c-5412-4ec8-85c7-d15c937be773 2025-01-09 16:38:18,992 - DEBUG - Requesting: http://10.0.0.24:8082/project/0b37f9ab-22ab-4558-bfab-e35fcf080caa 2025-01-09 16:38:19,066 - INFO - Validated that VN ctest-vn-24307299 is not found in API Server 2025-01-09 16:38:19,077 - DEBUG - VN ctest-vn-24307299 is not present in Agent 10.0.0.24 2025-01-09 16:38:19,077 - INFO - Validated that VN ctest-vn-24307299 is not in any agent 2025-01-09 16:38:19,093 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24307299 info 2025-01-09 16:38:19,349 - DEBUG - No XMPP flaps were noticed during the test
2025-01-09 16:38:19,349 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-09 16:38:19,349 - INFO - -------------------------------------------------------------------------------- 2025-01-09 16:38:20,013 - INFO - Deleted project: ctest-TestBasicPolicy-15619441, ID : 0b37f9ab-22ab-4558-bfab-e35fcf080caa