2025-03-31 02:37:23,825 - INFO - Domain Default found not creating 2025-03-31 02:37:23,969 - INFO - Project ctest-TestBasicPolicy-15930578 not found, creating it 2025-03-31 02:37:24,454 - INFO - Created Project:ctest-TestBasicPolicy-15930578, ID : a7a0160d-2422-4fe2-a29f-d5982cac7ea0 2025-03-31 02:37:25,903 - INFO - ================================================================================ 2025-03-31 02:37:25,903 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-31 02:37:25,903 - 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 02:37:26,156 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.23': '0'}} with 2025-03-31 02:37:26,156 - INFO - Initial checks done. Running the testcase now 2025-03-31 02:37:26,156 - INFO - 2025-03-31 02:37:26,712 - DEBUG - Response for create_network : {'network': {'id': '2c0e0d08-0c34-448f-baee-5980766eec76', 'name': 'ctest-vn-93931822', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-93931822'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:37:26,922 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7ea3649-9805-48c1-8108-3450f719d210', 'name': '', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'network_id': '2c0e0d08-0c34-448f-baee-5980766eec76', 'ip_version': 4, 'cidr': '161.94.135.0/26', 'allocation_pools': [{'start': '161.94.135.2', 'end': '161.94.135.62'}], 'gateway_ip': '161.94.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.94.135.2', 'tags': [], 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0'}} 2025-03-31 02:37:26,939 - INFO - Created VN ctest-vn-93931822 2025-03-31 02:37:26,990 - DEBUG - VN ctest-vn-93931822 UUID is 2c0e0d08-0c34-448f-baee-5980766eec76 2025-03-31 02:37:27,320 - DEBUG - Response for create_network : {'network': {'id': 'a16cbd45-af30-43fc-8181-ce48e85b0911', 'name': 'ctest-vn-65294759', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-65294759'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:37:27,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '9311d130-6364-4968-bcfa-337d101c6d5a', 'name': '', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'network_id': 'a16cbd45-af30-43fc-8181-ce48e85b0911', 'ip_version': 4, 'cidr': '44.92.218.64/26', 'allocation_pools': [{'start': '44.92.218.66', 'end': '44.92.218.126'}], 'gateway_ip': '44.92.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.92.218.66', 'tags': [], 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0'}} 2025-03-31 02:37:27,512 - INFO - Created VN ctest-vn-65294759 2025-03-31 02:37:27,566 - DEBUG - VN ctest-vn-65294759 UUID is a16cbd45-af30-43fc-8181-ce48e85b0911 2025-03-31 02:37:27,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822, 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-15930578:ctest-vn-65294759, 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 02:37:28,008 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c0e0d08-0c34-448f-baee-5980766eec76', 'name': 'ctest-vn-93931822', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7ea3649-9805-48c1-8108-3450f719d210'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-93931822'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301']], 'subnet_ipam': [{'subnet_cidr': '161.94.135.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:37:28,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a16cbd45-af30-43fc-8181-ce48e85b0911', 'name': 'ctest-vn-65294759', 'tenant_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'project_id': 'a7a0160d24224fe2a29fd5982cac7ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9311d130-6364-4968-bcfa-337d101c6d5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-vn-65294759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301']], 'subnet_ipam': [{'subnet_cidr': '44.92.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 02:37:28,450 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-31 02:37:28,749 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-31 02:37:28,777 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62 2025-03-31 02:37:28,790 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0 2025-03-31 02:37:28,867 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76 2025-03-31 02:37:28,879 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76 2025-03-31 02:37:28,889 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3 2025-03-31 02:37:28,896 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3 2025-03-31 02:37:28,904 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/053c8302-3573-4dd4-a6b4-4223a30f27fe 2025-03-31 02:37:28,910 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 02:37:28,910 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76 2025-03-31 02:37:28,919 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3 2025-03-31 02:37:28,935 - INFO - Verified VN network id 9 for VN 2c0e0d08-0c34-448f-baee-5980766eec76 2025-03-31 02:37:28,935 - INFO - Verifications in API Server for VN ctest-vn-93931822 passed 2025-03-31 02:37:28,935 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76 2025-03-31 02:37:28,944 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3 2025-03-31 02:37:28,950 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3 2025-03-31 02:37:28,957 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/053c8302-3573-4dd4-a6b4-4223a30f27fe 2025-03-31 02:37:28,969 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15930578', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3174489115558429839', 'uuid-lslong': '13469801943789399158'}, 'enable': 'true', 'created': '2025-03-31T02:37:26', 'last-modified': '2025-03-31T02:37:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984140'} 2025-03-31 02:37:28,975 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 02:37:28,975 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93931822 passed 2025-03-31 02:37:28,975 - DEBUG - ====Verifying policy data for ctest-vn-93931822 in API_Server ====== 2025-03-31 02:37:28,975 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-31 02:37:28,980 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62 2025-03-31 02:37:28,991 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0 2025-03-31 02:37:29,060 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2c0e0d08-0c34-448f-baee-5980766eec76 2025-03-31 02:37:29,070 - DEBUG - ==>Verifying data for policy with id: 87a0ff57-ce05-4fbd-b221-518d742617b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301'] 2025-03-31 02:37:29,070 - INFO - VN ctest-vn-93931822 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 02:37:29,070 - DEBUG - Verifying the vn in opserver 2025-03-31 02:37:29,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822 virtual network link through opserver 10.0.0.22 2025-03-31 02:37:29,070 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-31 02:37:29,364 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-31 02:37:29,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822?flat'} 2025-03-31 02:37:29,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822 is found in opserver 2025-03-31 02:37:29,426 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 02:37:29,430 - DEBUG - VRF ids for VN ctest-vn-93931822: {} 2025-03-31 02:37:29,430 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-31 02:37:29,436 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62 2025-03-31 02:37:29,448 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0 2025-03-31 02:37:29,525 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911 2025-03-31 02:37:29,537 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911 2025-03-31 02:37:29,548 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810 2025-03-31 02:37:29,555 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810 2025-03-31 02:37:29,562 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e265a51-79a6-4380-ab86-083bec984dfb 2025-03-31 02:37:29,568 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 02:37:29,568 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911 2025-03-31 02:37:29,576 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810 2025-03-31 02:37:29,589 - INFO - Verified VN network id 10 for VN a16cbd45-af30-43fc-8181-ce48e85b0911 2025-03-31 02:37:29,589 - INFO - Verifications in API Server for VN ctest-vn-65294759 passed 2025-03-31 02:37:29,589 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911 2025-03-31 02:37:29,598 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810 2025-03-31 02:37:29,605 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810 2025-03-31 02:37:29,611 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e265a51-79a6-4380-ab86-083bec984dfb 2025-03-31 02:37:29,624 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15930578', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11631880044580717564', 'uuid-lslong': '9331966715419625745'}, 'enable': 'true', 'created': '2025-03-31T02:37:27', 'last-modified': '2025-03-31T02:37:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398679'} 2025-03-31 02:37:29,630 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 02:37:29,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65294759 passed 2025-03-31 02:37:29,630 - DEBUG - ====Verifying policy data for ctest-vn-65294759 in API_Server ====== 2025-03-31 02:37:29,630 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-31 02:37:29,636 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62 2025-03-31 02:37:29,648 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0 2025-03-31 02:37:29,723 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a16cbd45-af30-43fc-8181-ce48e85b0911 2025-03-31 02:37:29,733 - DEBUG - ==>Verifying data for policy with id: 87a0ff57-ce05-4fbd-b221-518d742617b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15930578', 'ctest-policy-allow-all-14865301'] 2025-03-31 02:37:29,733 - INFO - VN ctest-vn-65294759 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 02:37:29,733 - DEBUG - Verifying the vn in opserver 2025-03-31 02:37:29,733 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759 virtual network link through opserver 10.0.0.22 2025-03-31 02:37:29,733 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-31 02:37:29,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759?flat'} 2025-03-31 02:37:29,743 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-65294759 is found in opserver 2025-03-31 02:37:29,753 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 02:37:29,759 - DEBUG - VRF ids for VN ctest-vn-65294759: {} 2025-03-31 02:37:29,810 - DEBUG - Services list from nova: [, , ] 2025-03-31 02:37:30,870 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3014-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3014-1) 2025-03-31 02:37:31,942 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3014-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3014-1) 2025-03-31 02:37:31,942 - INFO - Waiting for VM ctest-TestBasicPolicy-15930578-58117179 to be up.. 2025-03-31 02:37:32,018 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-31 02:37:37,109 - DEBUG - VM is in ACTIVE state now 2025-03-31 02:37:37,109 - INFO - VM name : ctest-TestBasicPolicy-15930578-58117179 2025-03-31 02:37:37,193 - DEBUG - VM ctest-TestBasicPolicy-15930578-58117179 ID is 594a395c-af1c-4870-b684-b34bf3ac78dc 2025-03-31 02:37:37,211 - DEBUG - VM ctest-TestBasicPolicy-15930578-58117179 launched on Node cn-jenkins-deploy-platform-ansible-os-3014-1 2025-03-31 02:37:37,285 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/594a395c-af1c-4870-b684-b34bf3ac78dc 2025-03-31 02:37:37,295 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ca7e0560-dc0b-4724-a65c-7a79f3d1b3e6 2025-03-31 02:37:40,565 - 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 1025ms') 2025-03-31 02:37:40,566 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15930578-58117179 failed! 2025-03-31 02:37:40,622 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15930578:ctest-vn-93931822 is 161.94.135.1 and allocation pool is NOT set 2025-03-31 02:37:42,683 - 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=3.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.838 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 = 0.838/2.087/3.336/1.249 ms') 2025-03-31 02:37:42,683 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15930578-58117179 passed 2025-03-31 02:37:42,830 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:42,830 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15930578-58117179, IP 161.94.135.3, Port 22 2025-03-31 02:37:42,896 - 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 02:37:42,975 - DEBUG - VM ctest-TestBasicPolicy-15930578-58117179 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-31 02:37:47,976 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:47,976 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15930578-58117179, IP 161.94.135.3, Port 22 2025-03-31 02:37:48,130 - DEBUG - VM ctest-TestBasicPolicy-15930578-58117179 is ready for SSH connections 2025-03-31 02:37:48,130 - INFO - Waiting for VM ctest-TestBasicPolicy-15930578-64062364 to be up.. 2025-03-31 02:37:48,208 - DEBUG - VM is in ACTIVE state now 2025-03-31 02:37:48,208 - INFO - VM name : ctest-TestBasicPolicy-15930578-64062364 2025-03-31 02:37:48,280 - DEBUG - VM ctest-TestBasicPolicy-15930578-64062364 ID is af1e7ab9-21bf-4ae2-81cf-79cb3af70f00 2025-03-31 02:37:48,280 - DEBUG - VM ctest-TestBasicPolicy-15930578-64062364 launched on Node cn-jenkins-deploy-platform-ansible-os-3014-1 2025-03-31 02:37:48,350 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/af1e7ab9-21bf-4ae2-81cf-79cb3af70f00 2025-03-31 02:37:48,360 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/93b0448d-9629-46e7-a16c-9ac5568ac1a4 2025-03-31 02:37:49,610 - 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.41 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.441 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.441/1.425/2.410/0.984 ms') 2025-03-31 02:37:49,611 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15930578-64062364 passed 2025-03-31 02:37:49,762 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:49,762 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15930578-64062364, IP 44.92.218.67, Port 22 2025-03-31 02:37:49,926 - DEBUG - VM ctest-TestBasicPolicy-15930578-64062364 is ready for SSH connections 2025-03-31 02:37:49,926 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:49,926 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.92.218.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-31 02:37:49,926 - DEBUG - ping -s 56 -c 3 -W 1 44.92.218.67 2025-03-31 02:37:53,898 - DEBUG - PING 44.92.218.67 (44.92.218.67): 56 data bytes 64 bytes from 44.92.218.67: seq=0 ttl=63 time=3.586 ms 64 bytes from 44.92.218.67: seq=1 ttl=63 time=1.227 ms 64 bytes from 44.92.218.67: seq=2 ttl=63 time=0.869 ms --- 44.92.218.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.869/1.894/3.586 ms 2025-03-31 02:37:53,899 - INFO - Ping to IP 44.92.218.67 from VM ctest-TestBasicPolicy-15930578-58117179 passed 2025-03-31 02:37:54,086 - DEBUG - Policy Update Response {"network-policy": {"uuid": "87a0ff57-ce05-4fbd-b221-518d742617b6", "href": "http://10.0.0.22:8082/network-policy/87a0ff57-ce05-4fbd-b221-518d742617b6"}} 2025-03-31 02:37:54,086 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 02:37:54,086 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.92.218.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-31 02:37:54,086 - DEBUG - ping -s 56 -c 3 -W 1 44.92.218.67 2025-03-31 02:37:57,292 - DEBUG - PING 44.92.218.67 (44.92.218.67): 56 data bytes 64 bytes from 44.92.218.67: seq=0 ttl=63 time=1.384 ms --- 44.92.218.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.384/1.384/1.384 ms 2025-03-31 02:37:57,292 - WARNING - Ping to IP 44.92.218.67 from VM ctest-TestBasicPolicy-15930578-58117179 failed 2025-03-31 02:37:57,293 - INFO - Deleting VM ctest-TestBasicPolicy-15930578-64062364 2025-03-31 02:37:57,372 - INFO - Deleting VM ctest-TestBasicPolicy-15930578-58117179 2025-03-31 02:37:57,792 - INFO - Deleted policy ctest-policy-allow-all-14865301 2025-03-31 02:37:57,792 - INFO - Deleting VN ctest-vn-65294759 2025-03-31 02:37:57,836 - DEBUG - VN a16cbd45-af30-43fc-8181-ce48e85b0911 still in use: Unable to complete operation on network a16cbd45-af30-43fc-8181-ce48e85b0911. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8bfb8516-f2c6-4097-b0b4-dab357c1b2fa'] 2025-03-31 02:37:57,836 - WARNING - Deleting VN ctest-vn-65294759 failed..Will retry 2025-03-31 02:37:59,936 - DEBUG - Response for deleting network () 2025-03-31 02:37:59,936 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6eff2d59-168a-4fde-906b-fd3c3fb00810 2025-03-31 02:37:59,944 - DEBUG - Response Code: 404 2025-03-31 02:37:59,944 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-31 02:37:59,949 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62 2025-03-31 02:38:00,006 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0 2025-03-31 02:38:00,079 - INFO - Validated that VN ctest-vn-65294759 is not found in API Server 2025-03-31 02:38:00,089 - DEBUG - VN ctest-vn-65294759 is not present in Agent 10.0.0.22 2025-03-31 02:38:00,089 - INFO - Validated that VN ctest-vn-65294759 is not in any agent 2025-03-31 02:38:00,105 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65294759 info 2025-03-31 02:38:00,105 - INFO - Deleting VN ctest-vn-93931822 2025-03-31 02:38:00,211 - DEBUG - Response for deleting network () 2025-03-31 02:38:00,211 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a0c2092b-dd99-4967-99b8-b15882bf0fc3 2025-03-31 02:38:00,220 - DEBUG - Response Code: 404 2025-03-31 02:38:00,220 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-31 02:38:00,225 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e3ba078-0ff6-4cdb-b0cb-5f08421c2c62 2025-03-31 02:38:00,279 - DEBUG - Requesting: http://10.0.0.22:8082/project/a7a0160d-2422-4fe2-a29f-d5982cac7ea0 2025-03-31 02:38:00,357 - INFO - Validated that VN ctest-vn-93931822 is not found in API Server 2025-03-31 02:38:00,366 - DEBUG - VN ctest-vn-93931822 is not present in Agent 10.0.0.22 2025-03-31 02:38:00,367 - INFO - Validated that VN ctest-vn-93931822 is not in any agent 2025-03-31 02:38:00,382 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93931822 info 2025-03-31 02:38:00,634 - DEBUG - No XMPP flaps were noticed during the test 2025-03-31 02:38:00,635 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-03-31 02:38:00,635 - INFO - -------------------------------------------------------------------------------- 2025-03-31 02:38:01,316 - INFO - Deleted project: ctest-TestBasicPolicy-15930578, ID : a7a0160d-2422-4fe2-a29f-d5982cac7ea0