2025-03-31 14:32:14,851 - INFO - Domain Default found not creating 2025-03-31 14:32:15,032 - INFO - Project ctest-TestBasicPolicy-49707606 not found, creating it 2025-03-31 14:32:15,555 - INFO - Created Project:ctest-TestBasicPolicy-49707606, ID : d82b1cd1-e388-40e9-a03d-3070eb863303 2025-03-31 14:32:17,275 - INFO - ================================================================================ 2025-03-31 14:32:17,276 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-31 14:32:17,276 - 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-03-31 14:32:17,550 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.19': '0'}} with 2025-03-31 14:32:17,550 - INFO - Initial checks done. Running the testcase now 2025-03-31 14:32:17,550 - INFO - 2025-03-31 14:32:18,181 - DEBUG - Response for create_network : {'network': {'id': '0858d358-4de1-4ec2-9dac-cce279287125', 'name': 'ctest-vn-49236093', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-49236093'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 14:32:18,399 - DEBUG - Response for create_subnet : {'subnet': {'id': '36e9482d-fc59-42f3-8f5b-9843a07247b6', 'name': '', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'network_id': '0858d358-4de1-4ec2-9dac-cce279287125', 'ip_version': 4, 'cidr': '44.70.233.192/26', 'allocation_pools': [{'start': '44.70.233.194', 'end': '44.70.233.254'}], 'gateway_ip': '44.70.233.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.70.233.194', 'tags': [], 'project_id': 'd82b1cd1e38840e9a03d3070eb863303'}} 2025-03-31 14:32:18,422 - INFO - Created VN ctest-vn-49236093 2025-03-31 14:32:18,475 - DEBUG - VN ctest-vn-49236093 UUID is 0858d358-4de1-4ec2-9dac-cce279287125 2025-03-31 14:32:18,798 - DEBUG - Response for create_network : {'network': {'id': '970a1301-36e6-4e23-b429-d9f91bfcd9e4', 'name': 'ctest-vn-23512523', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-23512523'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 14:32:19,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '3595d0a5-4011-4edf-9b7f-270e8e084bd1', 'name': '', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'network_id': '970a1301-36e6-4e23-b429-d9f91bfcd9e4', 'ip_version': 4, 'cidr': '150.116.13.128/26', 'allocation_pools': [{'start': '150.116.13.130', 'end': '150.116.13.190'}], 'gateway_ip': '150.116.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.116.13.130', 'tags': [], 'project_id': 'd82b1cd1e38840e9a03d3070eb863303'}} 2025-03-31 14:32:19,025 - INFO - Created VN ctest-vn-23512523 2025-03-31 14:32:19,078 - DEBUG - VN ctest-vn-23512523 UUID is 970a1301-36e6-4e23-b429-d9f91bfcd9e4 2025-03-31 14:32:19,202 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093, 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-49707606:ctest-vn-23512523, 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-03-31 14:32:19,526 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0858d358-4de1-4ec2-9dac-cce279287125', 'name': 'ctest-vn-49236093', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36e9482d-fc59-42f3-8f5b-9843a07247b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-49236093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262']], 'subnet_ipam': [{'subnet_cidr': '44.70.233.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 14:32:19,803 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '970a1301-36e6-4e23-b429-d9f91bfcd9e4', 'name': 'ctest-vn-23512523', 'tenant_id': 'd82b1cd1e38840e9a03d3070eb863303', 'project_id': 'd82b1cd1e38840e9a03d3070eb863303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3595d0a5-4011-4edf-9b7f-270e8e084bd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-vn-23512523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262']], 'subnet_ipam': [{'subnet_cidr': '150.116.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 14:32:19,975 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-31 14:32:20,319 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-31 14:32:20,352 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c 2025-03-31 14:32:20,371 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303 2025-03-31 14:32:20,466 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125 2025-03-31 14:32:20,484 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125 2025-03-31 14:32:20,496 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399 2025-03-31 14:32:20,506 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399 2025-03-31 14:32:20,517 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/6f0a05ee-9d2c-44aa-829c-303f421dc118 2025-03-31 14:32:20,527 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 14:32:20,527 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125 2025-03-31 14:32:20,542 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399 2025-03-31 14:32:20,565 - INFO - Verified VN network id 8 for VN 0858d358-4de1-4ec2-9dac-cce279287125 2025-03-31 14:32:20,565 - INFO - Verifications in API Server for VN ctest-vn-49236093 passed 2025-03-31 14:32:20,565 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125 2025-03-31 14:32:20,579 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399 2025-03-31 14:32:20,589 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399 2025-03-31 14:32:20,599 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/6f0a05ee-9d2c-44aa-829c-303f421dc118 2025-03-31 14:32:20,618 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49707606', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '601462926471155394', 'uuid-lslong': '11361681233016287525'}, 'enable': 'true', 'created': '2025-03-31T14:32:18', 'last-modified': '2025-03-31T14:32:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.117954'} 2025-03-31 14:32:20,626 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 14:32:20,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49236093 passed 2025-03-31 14:32:20,626 - DEBUG - ====Verifying policy data for ctest-vn-49236093 in API_Server ====== 2025-03-31 14:32:20,626 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-31 14:32:20,633 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c 2025-03-31 14:32:20,649 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303 2025-03-31 14:32:20,735 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0858d358-4de1-4ec2-9dac-cce279287125 2025-03-31 14:32:20,746 - DEBUG - ==>Verifying data for policy with id: 90fdd20d-ff24-4d36-83d4-fef33cba9fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262'] 2025-03-31 14:32:20,747 - INFO - VN ctest-vn-49236093 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 14:32:20,747 - DEBUG - Verifying the vn in opserver 2025-03-31 14:32:20,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093 virtual network link through opserver 10.0.0.37 2025-03-31 14:32:20,747 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-03-31 14:32:21,221 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-03-31 14:32:21,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093?flat'} 2025-03-31 14:32:21,307 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093 is found in opserver 2025-03-31 14:32:21,323 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 14:32:21,331 - DEBUG - VRF ids for VN ctest-vn-49236093: {} 2025-03-31 14:32:21,331 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-31 14:32:21,337 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c 2025-03-31 14:32:21,354 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303 2025-03-31 14:32:21,427 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4 2025-03-31 14:32:21,442 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4 2025-03-31 14:32:21,454 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5 2025-03-31 14:32:21,463 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5 2025-03-31 14:32:21,472 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7629f0d3-cc9d-4655-b370-9831f7f1e234 2025-03-31 14:32:21,479 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 14:32:21,480 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4 2025-03-31 14:32:21,491 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5 2025-03-31 14:32:21,507 - INFO - Verified VN network id 9 for VN 970a1301-36e6-4e23-b429-d9f91bfcd9e4 2025-03-31 14:32:21,507 - INFO - Verifications in API Server for VN ctest-vn-23512523 passed 2025-03-31 14:32:21,507 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4 2025-03-31 14:32:21,519 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5 2025-03-31 14:32:21,528 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5 2025-03-31 14:32:21,536 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7629f0d3-cc9d-4655-b370-9831f7f1e234 2025-03-31 14:32:21,552 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49707606', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10883532345431182883', 'uuid-lslong': '12982147064811805156'}, 'enable': 'true', 'created': '2025-03-31T14:32:18', 'last-modified': '2025-03-31T14:32:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.788008'} 2025-03-31 14:32:21,561 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 14:32:21,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23512523 passed 2025-03-31 14:32:21,561 - DEBUG - ====Verifying policy data for ctest-vn-23512523 in API_Server ====== 2025-03-31 14:32:21,561 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-31 14:32:21,569 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c 2025-03-31 14:32:21,583 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303 2025-03-31 14:32:21,670 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/970a1301-36e6-4e23-b429-d9f91bfcd9e4 2025-03-31 14:32:21,685 - DEBUG - ==>Verifying data for policy with id: 90fdd20d-ff24-4d36-83d4-fef33cba9fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-49707606', 'ctest-policy-allow-all-62566262'] 2025-03-31 14:32:21,685 - INFO - VN ctest-vn-23512523 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 14:32:21,685 - DEBUG - Verifying the vn in opserver 2025-03-31 14:32:21,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523 virtual network link through opserver 10.0.0.37 2025-03-31 14:32:21,685 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-03-31 14:32:21,701 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523?flat'} 2025-03-31 14:32:21,701 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-23512523 is found in opserver 2025-03-31 14:32:21,716 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 14:32:21,722 - DEBUG - VRF ids for VN ctest-vn-23512523: {} 2025-03-31 14:32:21,786 - DEBUG - Services list from nova: [, , ] 2025-03-31 14:32:23,045 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3017-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3017-1) 2025-03-31 14:32:24,396 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3017-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3017-1) 2025-03-31 14:32:24,397 - INFO - Waiting for VM ctest-TestBasicPolicy-49707606-86741720 to be up.. 2025-03-31 14:32:24,505 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-31 14:32:29,604 - DEBUG - VM is in ACTIVE state now 2025-03-31 14:32:29,604 - INFO - VM name : ctest-TestBasicPolicy-49707606-86741720 2025-03-31 14:32:29,688 - DEBUG - VM ctest-TestBasicPolicy-49707606-86741720 ID is 69e45a98-141f-474a-a9f2-ed3953b55a0e 2025-03-31 14:32:29,713 - DEBUG - VM ctest-TestBasicPolicy-49707606-86741720 launched on Node cn-jenkins-deploy-platform-ansible-os-3017-1 2025-03-31 14:32:29,807 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/69e45a98-141f-474a-a9f2-ed3953b55a0e 2025-03-31 14:32:29,818 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/0874a72b-0575-4dbc-8c84-a97a9a7d72dc 2025-03-31 14:32:33,074 - 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 1005ms') 2025-03-31 14:32:33,074 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49707606-86741720 failed! 2025-03-31 14:32:33,130 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49707606:ctest-vn-49236093 is 44.70.233.193 and allocation pool is NOT set 2025-03-31 14:32:35,188 - 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=10.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.08 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.080/5.666/10.253/4.586 ms') 2025-03-31 14:32:35,188 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49707606-86741720 passed 2025-03-31 14:32:35,343 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:32:35,343 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49707606-86741720, IP 44.70.233.195, Port 22 2025-03-31 14:32:35,408 - 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-03-31 14:32:35,500 - DEBUG - VM ctest-TestBasicPolicy-49707606-86741720 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-31 14:32:40,501 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:32:40,501 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49707606-86741720, IP 44.70.233.195, Port 22 2025-03-31 14:32:40,666 - DEBUG - VM ctest-TestBasicPolicy-49707606-86741720 is ready for SSH connections 2025-03-31 14:32:40,667 - INFO - Waiting for VM ctest-TestBasicPolicy-49707606-38960233 to be up.. 2025-03-31 14:32:40,756 - DEBUG - VM is in ACTIVE state now 2025-03-31 14:32:40,756 - INFO - VM name : ctest-TestBasicPolicy-49707606-38960233 2025-03-31 14:32:40,872 - DEBUG - VM ctest-TestBasicPolicy-49707606-38960233 ID is 92886478-a22d-43d2-9088-11ddaa1e07b6 2025-03-31 14:32:40,872 - DEBUG - VM ctest-TestBasicPolicy-49707606-38960233 launched on Node cn-jenkins-deploy-platform-ansible-os-3017-1 2025-03-31 14:32:40,965 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/92886478-a22d-43d2-9088-11ddaa1e07b6 2025-03-31 14:32:40,975 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/5815611d-7dc9-4cf5-8257-fa91889930ca 2025-03-31 14:32:42,227 - 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.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.403 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.403/1.753/3.103/1.350 ms') 2025-03-31 14:32:42,228 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-49707606-38960233 passed 2025-03-31 14:32:42,387 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:32:42,387 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49707606-38960233, IP 150.116.13.131, Port 22 2025-03-31 14:32:42,552 - DEBUG - VM ctest-TestBasicPolicy-49707606-38960233 is ready for SSH connections 2025-03-31 14:32:42,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:32:42,553 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.116.13.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2025-03-31 14:32:42,553 - DEBUG - ping -s 56 -c 3 -W 1 150.116.13.131 2025-03-31 14:32:46,663 - DEBUG - PING 150.116.13.131 (150.116.13.131): 56 data bytes 64 bytes from 150.116.13.131: seq=0 ttl=63 time=4.803 ms 64 bytes from 150.116.13.131: seq=1 ttl=63 time=1.320 ms 64 bytes from 150.116.13.131: seq=2 ttl=63 time=1.099 ms --- 150.116.13.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.099/2.407/4.803 ms 2025-03-31 14:32:46,663 - INFO - Ping to IP 150.116.13.131 from VM ctest-TestBasicPolicy-49707606-86741720 passed 2025-03-31 14:32:46,858 - DEBUG - Policy Update Response {"network-policy": {"uuid": "90fdd20d-ff24-4d36-83d4-fef33cba9fd4", "href": "http://10.0.0.37:8082/network-policy/90fdd20d-ff24-4d36-83d4-fef33cba9fd4"}} 2025-03-31 14:32:46,859 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:32:46,859 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.116.13.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2025-03-31 14:32:46,859 - DEBUG - ping -s 56 -c 3 -W 1 150.116.13.131 2025-03-31 14:32:50,098 - DEBUG - PING 150.116.13.131 (150.116.13.131): 56 data bytes 64 bytes from 150.116.13.131: seq=0 ttl=63 time=2.123 ms --- 150.116.13.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.123/2.123/2.123 ms 2025-03-31 14:32:50,098 - WARNING - Ping to IP 150.116.13.131 from VM ctest-TestBasicPolicy-49707606-86741720 failed 2025-03-31 14:32:50,098 - INFO - Deleting VM ctest-TestBasicPolicy-49707606-38960233 2025-03-31 14:32:50,183 - INFO - Deleting VM ctest-TestBasicPolicy-49707606-86741720 2025-03-31 14:32:50,665 - INFO - Deleted policy ctest-policy-allow-all-62566262 2025-03-31 14:32:50,666 - INFO - Deleting VN ctest-vn-23512523 2025-03-31 14:32:50,713 - DEBUG - VN 970a1301-36e6-4e23-b429-d9f91bfcd9e4 still in use: Unable to complete operation on network 970a1301-36e6-4e23-b429-d9f91bfcd9e4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2472faea-bfd0-433b-9230-56390d539e61'] 2025-03-31 14:32:50,713 - WARNING - Deleting VN ctest-vn-23512523 failed..Will retry 2025-03-31 14:32:52,859 - DEBUG - Response for deleting network () 2025-03-31 14:32:52,859 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d987553d-3c3d-4405-beb7-5a25978b1ac5 2025-03-31 14:32:52,868 - DEBUG - Response Code: 404 2025-03-31 14:32:52,868 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-31 14:32:52,876 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c 2025-03-31 14:32:52,933 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303 2025-03-31 14:32:53,011 - INFO - Validated that VN ctest-vn-23512523 is not found in API Server 2025-03-31 14:32:53,024 - DEBUG - VN ctest-vn-23512523 is not present in Agent 10.0.0.37 2025-03-31 14:32:53,024 - INFO - Validated that VN ctest-vn-23512523 is not in any agent 2025-03-31 14:32:53,043 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23512523 info 2025-03-31 14:32:53,043 - INFO - Deleting VN ctest-vn-49236093 2025-03-31 14:32:53,171 - DEBUG - Response for deleting network () 2025-03-31 14:32:53,171 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/cc330bb8-4a82-407a-ba51-bc9465a71399 2025-03-31 14:32:53,178 - DEBUG - Response Code: 404 2025-03-31 14:32:53,178 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-31 14:32:53,185 - DEBUG - Requesting: http://10.0.0.37:8082/domain/7c96113d-97b5-4981-bace-5ae42096521c 2025-03-31 14:32:53,241 - DEBUG - Requesting: http://10.0.0.37:8082/project/d82b1cd1-e388-40e9-a03d-3070eb863303 2025-03-31 14:32:53,323 - INFO - Validated that VN ctest-vn-49236093 is not found in API Server 2025-03-31 14:32:53,336 - DEBUG - VN ctest-vn-49236093 is not present in Agent 10.0.0.37 2025-03-31 14:32:53,336 - INFO - Validated that VN ctest-vn-49236093 is not in any agent 2025-03-31 14:32:53,356 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49236093 info 2025-03-31 14:32:53,618 - DEBUG - No XMPP flaps were noticed during the test
2025-03-31 14:32:53,618 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-03-31 14:32:53,618 - INFO - -------------------------------------------------------------------------------- 2025-03-31 14:32:54,390 - INFO - Deleted project: ctest-TestBasicPolicy-49707606, ID : d82b1cd1-e388-40e9-a03d-3070eb863303