2025-02-17 18:46:56,129 - INFO - Domain Default found not creating 2025-02-17 18:46:56,305 - INFO - Project ctest-TestBasicPolicy-29401368 not found, creating it 2025-02-17 18:46:56,806 - INFO - Created Project:ctest-TestBasicPolicy-29401368, ID : 4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8 2025-02-17 18:46:58,455 - INFO - ================================================================================ 2025-02-17 18:46:58,455 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-17 18:46:58,456 - 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-02-17 18:46:58,717 - DEBUG - Nothing to compare xmpp stats {'10.0.0.58': {'10.20.0.20': '0'}} with 2025-02-17 18:46:58,717 - INFO - Initial checks done. Running the testcase now 2025-02-17 18:46:58,718 - INFO - 2025-02-17 18:46:59,340 - DEBUG - Response for create_network : {'network': {'id': '4023cec2-de4f-48b8-b1da-ab752304ecbd', 'name': 'ctest-vn-52385605', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-52385605'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 18:46:59,544 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f37470b-3cfd-4bc8-b399-acb86fc2e528', 'name': '', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'network_id': '4023cec2-de4f-48b8-b1da-ab752304ecbd', 'ip_version': 4, 'cidr': '219.230.73.64/26', 'allocation_pools': [{'start': '219.230.73.66', 'end': '219.230.73.126'}], 'gateway_ip': '219.230.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.230.73.66', 'tags': [], 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8'}} 2025-02-17 18:46:59,567 - INFO - Created VN ctest-vn-52385605 2025-02-17 18:46:59,622 - DEBUG - VN ctest-vn-52385605 UUID is 4023cec2-de4f-48b8-b1da-ab752304ecbd 2025-02-17 18:46:59,959 - DEBUG - Response for create_network : {'network': {'id': '656ced23-b299-4604-a5b8-b3fabb9135e5', 'name': 'ctest-vn-27849003', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-27849003'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 18:47:00,152 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a56d11c7-22d3-4cd4-8ba7-5a286198e73b', 'name': '', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'network_id': '656ced23-b299-4604-a5b8-b3fabb9135e5', 'ip_version': 4, 'cidr': '210.20.220.64/26', 'allocation_pools': [{'start': '210.20.220.66', 'end': '210.20.220.126'}], 'gateway_ip': '210.20.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.20.220.66', 'tags': [], 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8'}} 2025-02-17 18:47:00,173 - INFO - Created VN ctest-vn-27849003 2025-02-17 18:47:00,230 - DEBUG - VN ctest-vn-27849003 UUID is 656ced23-b299-4604-a5b8-b3fabb9135e5 2025-02-17 18:47:00,355 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605, 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-29401368:ctest-vn-27849003, 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-02-17 18:47:00,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4023cec2-de4f-48b8-b1da-ab752304ecbd', 'name': 'ctest-vn-52385605', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f37470b-3cfd-4bc8-b399-acb86fc2e528'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-52385605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672']], 'subnet_ipam': [{'subnet_cidr': '219.230.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 18:47:00,907 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '656ced23-b299-4604-a5b8-b3fabb9135e5', 'name': 'ctest-vn-27849003', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a56d11c7-22d3-4cd4-8ba7-5a286198e73b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-27849003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672']], 'subnet_ipam': [{'subnet_cidr': '210.20.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 18:47:01,066 - DEBUG - Requesting: http://10.0.0.58:8082/domains 2025-02-17 18:47:01,405 - DEBUG - Requesting: http://10.0.0.58:8082/domains 2025-02-17 18:47:01,440 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411 2025-02-17 18:47:01,458 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8 2025-02-17 18:47:01,540 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd 2025-02-17 18:47:01,557 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd 2025-02-17 18:47:01,571 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65 2025-02-17 18:47:01,582 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65 2025-02-17 18:47:01,591 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/cda6bcac-e4f3-4ab0-8001-99f3b4d2bbf7 2025-02-17 18:47:01,599 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-17 18:47:01,599 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd 2025-02-17 18:47:01,615 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65 2025-02-17 18:47:01,632 - INFO - Verified VN network id 8 for VN 4023cec2-de4f-48b8-b1da-ab752304ecbd 2025-02-17 18:47:01,632 - INFO - Verifications in API Server for VN ctest-vn-52385605 passed 2025-02-17 18:47:01,632 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd 2025-02-17 18:47:01,643 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65 2025-02-17 18:47:01,651 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65 2025-02-17 18:47:01,659 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/cda6bcac-e4f3-4ab0-8001-99f3b4d2bbf7 2025-02-17 18:47:01,673 - DEBUG - Control-node 10.0.0.58 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29401368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4621764978960976056', 'uuid-lslong': '12815744209223216317'}, 'enable': 'true', 'created': '2025-02-17T18:46:59', 'last-modified': '2025-02-17T18:47:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034208'} 2025-02-17 18:47:01,681 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-17 18:47:01,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52385605 passed 2025-02-17 18:47:01,681 - DEBUG - ====Verifying policy data for ctest-vn-52385605 in API_Server ====== 2025-02-17 18:47:01,682 - DEBUG - Requesting: http://10.0.0.58:8082/domains 2025-02-17 18:47:01,688 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411 2025-02-17 18:47:01,702 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8 2025-02-17 18:47:01,785 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd 2025-02-17 18:47:01,796 - DEBUG - ==>Verifying data for policy with id: f03e534c-0858-42ae-9273-03bd213c4a71, fqn: ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672'] 2025-02-17 18:47:01,796 - INFO - VN ctest-vn-52385605 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 18:47:01,797 - DEBUG - Verifying the vn in opserver 2025-02-17 18:47:01,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605 virtual network link through opserver 10.0.0.58 2025-02-17 18:47:01,797 - DEBUG - Requesting: http://10.0.0.58:8081/analytics/uves/virtual-networks 2025-02-17 18:47:02,145 - DEBUG - Requesting: http://10.0.0.58:8081/analytics/uves/virtual-networks 2025-02-17 18:47:02,221 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605', 'href': 'http://10.0.0.58:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605?flat'} 2025-02-17 18:47:02,221 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605 is found in opserver 2025-02-17 18:47:02,234 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 18:47:02,239 - DEBUG - VRF ids for VN ctest-vn-52385605: {} 2025-02-17 18:47:02,240 - DEBUG - Requesting: http://10.0.0.58:8082/domains 2025-02-17 18:47:02,247 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411 2025-02-17 18:47:02,264 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8 2025-02-17 18:47:02,348 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5 2025-02-17 18:47:02,365 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5 2025-02-17 18:47:02,377 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c 2025-02-17 18:47:02,387 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c 2025-02-17 18:47:02,395 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/11979d1f-b146-47a6-9a94-15cb545dce00 2025-02-17 18:47:02,403 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 18:47:02,403 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5 2025-02-17 18:47:02,414 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c 2025-02-17 18:47:02,430 - INFO - Verified VN network id 9 for VN 656ced23-b299-4604-a5b8-b3fabb9135e5 2025-02-17 18:47:02,430 - INFO - Verifications in API Server for VN ctest-vn-27849003 passed 2025-02-17 18:47:02,430 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5 2025-02-17 18:47:02,441 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c 2025-02-17 18:47:02,450 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c 2025-02-17 18:47:02,457 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/11979d1f-b146-47a6-9a94-15cb545dce00 2025-02-17 18:47:02,473 - DEBUG - Control-node 10.0.0.58 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29401368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7308477032891500036', 'uuid-lslong': '11941492301442921957'}, 'enable': 'true', 'created': '2025-02-17T18:46:59', 'last-modified': '2025-02-17T18:47:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591371'} 2025-02-17 18:47:02,482 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 18:47:02,482 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27849003 passed 2025-02-17 18:47:02,482 - DEBUG - ====Verifying policy data for ctest-vn-27849003 in API_Server ====== 2025-02-17 18:47:02,482 - DEBUG - Requesting: http://10.0.0.58:8082/domains 2025-02-17 18:47:02,489 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411 2025-02-17 18:47:02,502 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8 2025-02-17 18:47:02,586 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5 2025-02-17 18:47:02,600 - DEBUG - ==>Verifying data for policy with id: f03e534c-0858-42ae-9273-03bd213c4a71, fqn: ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672'] 2025-02-17 18:47:02,600 - INFO - VN ctest-vn-27849003 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 18:47:02,600 - DEBUG - Verifying the vn in opserver 2025-02-17 18:47:02,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003 virtual network link through opserver 10.0.0.58 2025-02-17 18:47:02,601 - DEBUG - Requesting: http://10.0.0.58:8081/analytics/uves/virtual-networks 2025-02-17 18:47:02,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003', 'href': 'http://10.0.0.58:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003?flat'} 2025-02-17 18:47:02,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003 is found in opserver 2025-02-17 18:47:02,626 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 18:47:02,631 - DEBUG - VRF ids for VN ctest-vn-27849003: {} 2025-02-17 18:47:02,701 - DEBUG - Services list from nova: [, , ] 2025-02-17 18:47:03,840 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2743-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2743-1) 2025-02-17 18:47:05,272 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2743-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2743-1) 2025-02-17 18:47:05,272 - INFO - Waiting for VM ctest-TestBasicPolicy-29401368-29850577 to be up.. 2025-02-17 18:47:05,369 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-17 18:47:10,455 - DEBUG - VM is in ACTIVE state now 2025-02-17 18:47:10,455 - INFO - VM name : ctest-TestBasicPolicy-29401368-29850577 2025-02-17 18:47:10,541 - DEBUG - VM ctest-TestBasicPolicy-29401368-29850577 ID is 4de17b99-b005-40b4-b8f0-27266413800c 2025-02-17 18:47:10,563 - DEBUG - VM ctest-TestBasicPolicy-29401368-29850577 launched on Node cn-jenkins-deploy-platform-ansible-os-2743-1 2025-02-17 18:47:10,647 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine/4de17b99-b005-40b4-b8f0-27266413800c 2025-02-17 18:47:10,658 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine-interface/215463ff-0e36-4683-a217-17cb064ac5a8 2025-02-17 18:47:13,918 - 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 1008ms') 2025-02-17 18:47:13,918 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29401368-29850577 failed! 2025-02-17 18:47:13,982 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605 is 219.230.73.65 and allocation pool is NOT set 2025-02-17 18:47:16,053 - 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.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.984 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.984/5.936/10.889/4.952 ms') 2025-02-17 18:47:16,053 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29401368-29850577 passed 2025-02-17 18:47:16,210 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 18:47:16,210 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29401368-29850577, IP 219.230.73.67, Port 22 2025-02-17 18:47:16,266 - 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-02-17 18:47:16,351 - DEBUG - VM ctest-TestBasicPolicy-29401368-29850577 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-17 18:47:21,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 18:47:21,352 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29401368-29850577, IP 219.230.73.67, Port 22 2025-02-17 18:47:21,509 - DEBUG - VM ctest-TestBasicPolicy-29401368-29850577 is ready for SSH connections 2025-02-17 18:47:21,509 - INFO - Waiting for VM ctest-TestBasicPolicy-29401368-24770722 to be up.. 2025-02-17 18:47:21,593 - DEBUG - VM is in ACTIVE state now 2025-02-17 18:47:21,593 - INFO - VM name : ctest-TestBasicPolicy-29401368-24770722 2025-02-17 18:47:21,677 - DEBUG - VM ctest-TestBasicPolicy-29401368-24770722 ID is 8b7bff08-860b-4aa7-aa22-e95c1f7a750a 2025-02-17 18:47:21,678 - DEBUG - VM ctest-TestBasicPolicy-29401368-24770722 launched on Node cn-jenkins-deploy-platform-ansible-os-2743-1 2025-02-17 18:47:21,765 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine/8b7bff08-860b-4aa7-aa22-e95c1f7a750a 2025-02-17 18:47:21,777 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-machine-interface/1495971c-5dfe-4ca0-adad-881a81b15414 2025-02-17 18:47:23,031 - 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.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.492 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.492/2.021/3.551/1.529 ms') 2025-02-17 18:47:23,031 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-29401368-24770722 passed 2025-02-17 18:47:23,190 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 18:47:23,191 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29401368-24770722, IP 210.20.220.67, Port 22 2025-02-17 18:47:23,364 - DEBUG - VM ctest-TestBasicPolicy-29401368-24770722 is ready for SSH connections 2025-02-17 18:47:23,364 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 18:47:23,365 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.20.220.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.58, gateway password: c0ntrail123 2025-02-17 18:47:23,365 - DEBUG - ping -s 56 -c 3 -W 1 210.20.220.67 2025-02-17 18:47:27,438 - DEBUG - PING 210.20.220.67 (210.20.220.67): 56 data bytes 64 bytes from 210.20.220.67: seq=0 ttl=63 time=4.340 ms 64 bytes from 210.20.220.67: seq=1 ttl=63 time=0.978 ms 64 bytes from 210.20.220.67: seq=2 ttl=63 time=0.977 ms --- 210.20.220.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.977/2.098/4.340 ms 2025-02-17 18:47:27,438 - INFO - Ping to IP 210.20.220.67 from VM ctest-TestBasicPolicy-29401368-29850577 passed 2025-02-17 18:47:27,621 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f03e534c-0858-42ae-9273-03bd213c4a71", "href": "http://10.0.0.58:8082/network-policy/f03e534c-0858-42ae-9273-03bd213c4a71"}} 2025-02-17 18:47:27,622 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 18:47:27,622 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.20.220.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.58, gateway password: c0ntrail123 2025-02-17 18:47:27,622 - DEBUG - ping -s 56 -c 3 -W 1 210.20.220.67 2025-02-17 18:47:30,859 - DEBUG - PING 210.20.220.67 (210.20.220.67): 56 data bytes 64 bytes from 210.20.220.67: seq=0 ttl=63 time=1.553 ms --- 210.20.220.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.553/1.553/1.553 ms 2025-02-17 18:47:30,859 - WARNING - Ping to IP 210.20.220.67 from VM ctest-TestBasicPolicy-29401368-29850577 failed 2025-02-17 18:47:30,859 - INFO - Deleting VM ctest-TestBasicPolicy-29401368-24770722 2025-02-17 18:47:30,933 - INFO - Deleting VM ctest-TestBasicPolicy-29401368-29850577 2025-02-17 18:47:31,362 - INFO - Deleted policy ctest-policy-allow-all-24329672 2025-02-17 18:47:31,362 - INFO - Deleting VN ctest-vn-27849003 2025-02-17 18:47:31,412 - DEBUG - VN 656ced23-b299-4604-a5b8-b3fabb9135e5 still in use: Unable to complete operation on network 656ced23-b299-4604-a5b8-b3fabb9135e5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a56c58a7-7d6f-43f6-bb5e-a780d6b03277'] 2025-02-17 18:47:31,413 - WARNING - Deleting VN ctest-vn-27849003 failed..Will retry 2025-02-17 18:47:33,527 - DEBUG - Response for deleting network () 2025-02-17 18:47:33,527 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c 2025-02-17 18:47:33,532 - DEBUG - Response Code: 404 2025-02-17 18:47:33,533 - DEBUG - Requesting: http://10.0.0.58:8082/domains 2025-02-17 18:47:33,543 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411 2025-02-17 18:47:33,605 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8 2025-02-17 18:47:33,692 - INFO - Validated that VN ctest-vn-27849003 is not found in API Server 2025-02-17 18:47:33,704 - DEBUG - VN ctest-vn-27849003 is not present in Agent 10.0.0.58 2025-02-17 18:47:33,704 - INFO - Validated that VN ctest-vn-27849003 is not in any agent 2025-02-17 18:47:33,721 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27849003 info 2025-02-17 18:47:33,721 - INFO - Deleting VN ctest-vn-52385605 2025-02-17 18:47:33,852 - DEBUG - Response for deleting network () 2025-02-17 18:47:33,852 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65 2025-02-17 18:47:33,863 - DEBUG - Response Code: 404 2025-02-17 18:47:33,863 - DEBUG - Requesting: http://10.0.0.58:8082/domains 2025-02-17 18:47:33,870 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411 2025-02-17 18:47:33,928 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8 2025-02-17 18:47:34,001 - INFO - Validated that VN ctest-vn-52385605 is not found in API Server 2025-02-17 18:47:34,018 - DEBUG - VN ctest-vn-52385605 is not present in Agent 10.0.0.58 2025-02-17 18:47:34,018 - INFO - Validated that VN ctest-vn-52385605 is not in any agent 2025-02-17 18:47:34,036 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52385605 info 2025-02-17 18:47:34,312 - DEBUG - No XMPP flaps were noticed during the test 2025-02-17 18:47:34,312 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-02-17 18:47:34,312 - INFO - -------------------------------------------------------------------------------- 2025-02-17 18:47:35,080 - INFO - Deleted project: ctest-TestBasicPolicy-29401368, ID : 4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8