2025-10-31 05:41:11,391 - INFO - Domain Default found not creating 2025-10-31 05:41:11,537 - INFO - Project ctest-TestBasicPolicy-84157436 not found, creating it 2025-10-31 05:41:11,967 - INFO - Created Project:ctest-TestBasicPolicy-84157436, ID : 765326b7-4eb4-419f-b6aa-59b8d5074a2a 2025-10-31 05:41:13,506 - INFO - ================================================================================ 2025-10-31 05:41:13,506 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-31 05:41:13,506 - 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-10-31 05:41:13,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with 2025-10-31 05:41:13,758 - INFO - Initial checks done. Running the testcase now 2025-10-31 05:41:13,758 - INFO - 2025-10-31 05:41:14,356 - DEBUG - Response for create_network : {'network': {'id': 'ffff49c8-e218-4968-a6cb-d125e792f5d4', 'name': 'ctest-vn-72284674', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-72284674'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:41:14,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '6bc67c2e-5a8f-43c9-b4f9-a71605f95c61', 'name': '', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'network_id': 'ffff49c8-e218-4968-a6cb-d125e792f5d4', 'ip_version': 4, 'cidr': '158.92.28.0/26', 'allocation_pools': [{'start': '158.92.28.2', 'end': '158.92.28.62'}], 'gateway_ip': '158.92.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.92.28.2', 'tags': [], 'project_id': '765326b74eb4419fb6aa59b8d5074a2a'}} 2025-10-31 05:41:14,556 - INFO - Created VN ctest-vn-72284674 2025-10-31 05:41:14,609 - DEBUG - VN ctest-vn-72284674 UUID is ffff49c8-e218-4968-a6cb-d125e792f5d4 2025-10-31 05:41:14,935 - DEBUG - Response for create_network : {'network': {'id': '9ed5cbb3-df74-4355-99d0-d1a6a2fc6065', 'name': 'ctest-vn-82267141', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-82267141'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:41:15,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '31af4d1f-adb8-48b1-a7de-3a7b5b8f3b02', 'name': '', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'network_id': '9ed5cbb3-df74-4355-99d0-d1a6a2fc6065', 'ip_version': 4, 'cidr': '81.4.119.192/26', 'allocation_pools': [{'start': '81.4.119.194', 'end': '81.4.119.254'}], 'gateway_ip': '81.4.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.4.119.194', 'tags': [], 'project_id': '765326b74eb4419fb6aa59b8d5074a2a'}} 2025-10-31 05:41:15,155 - INFO - Created VN ctest-vn-82267141 2025-10-31 05:41:15,205 - DEBUG - VN ctest-vn-82267141 UUID is 9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 2025-10-31 05:41:15,357 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674, 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-84157436:ctest-vn-82267141, 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-10-31 05:41:15,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffff49c8-e218-4968-a6cb-d125e792f5d4', 'name': 'ctest-vn-72284674', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6bc67c2e-5a8f-43c9-b4f9-a71605f95c61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-72284674'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218']], 'subnet_ipam': [{'subnet_cidr': '158.92.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:41:15,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ed5cbb3-df74-4355-99d0-d1a6a2fc6065', 'name': 'ctest-vn-82267141', 'tenant_id': '765326b74eb4419fb6aa59b8d5074a2a', 'project_id': '765326b74eb4419fb6aa59b8d5074a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31af4d1f-adb8-48b1-a7de-3a7b5b8f3b02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-vn-82267141'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218']], 'subnet_ipam': [{'subnet_cidr': '81.4.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:41:16,057 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:16,401 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:16,430 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:16,444 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a 2025-10-31 05:41:16,519 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4 2025-10-31 05:41:16,531 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4 2025-10-31 05:41:16,543 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24 2025-10-31 05:41:16,553 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24 2025-10-31 05:41:16,562 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/18fd41fa-4eb6-4a21-9ec3-b8dab8636639 2025-10-31 05:41:16,570 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 05:41:16,570 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4 2025-10-31 05:41:16,582 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24 2025-10-31 05:41:16,600 - INFO - Verified VN network id 11 for VN ffff49c8-e218-4968-a6cb-d125e792f5d4 2025-10-31 05:41:16,600 - INFO - Verifications in API Server for VN ctest-vn-72284674 passed 2025-10-31 05:41:16,600 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4 2025-10-31 05:41:16,610 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24 2025-10-31 05:41:16,620 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24 2025-10-31 05:41:16,627 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/18fd41fa-4eb6-4a21-9ec3-b8dab8636639 2025-10-31 05:41:16,639 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84157436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18446543725868370280', 'uuid-lslong': '12018929991297463764'}, 'enable': 'true', 'created': '2025-10-31T05:41:14', 'last-modified': '2025-10-31T05:41:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986430'} 2025-10-31 05:41:16,647 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 05:41:16,647 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72284674 passed 2025-10-31 05:41:16,647 - DEBUG - ====Verifying policy data for ctest-vn-72284674 in API_Server ====== 2025-10-31 05:41:16,648 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:16,654 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:16,666 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a 2025-10-31 05:41:16,738 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ffff49c8-e218-4968-a6cb-d125e792f5d4 2025-10-31 05:41:16,748 - DEBUG - ==>Verifying data for policy with id: 9593f243-e21b-43f1-b1dc-64a4e03a6ec7, fqn: ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218'] 2025-10-31 05:41:16,748 - INFO - VN ctest-vn-72284674 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 05:41:16,748 - DEBUG - Verifying the vn in opserver 2025-10-31 05:41:16,748 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674 virtual network link through opserver 10.0.0.137 2025-10-31 05:41:16,748 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 05:41:17,080 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 05:41:17,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674?flat'} 2025-10-31 05:41:17,134 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674 is found in opserver 2025-10-31 05:41:17,143 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 05:41:17,147 - DEBUG - VRF ids for VN ctest-vn-72284674: {} 2025-10-31 05:41:17,147 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:17,152 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:17,162 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a 2025-10-31 05:41:17,228 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 2025-10-31 05:41:17,239 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 2025-10-31 05:41:17,247 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1 2025-10-31 05:41:17,254 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1 2025-10-31 05:41:17,261 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/dc13780d-3e19-4d24-b925-e9a009ee0c62 2025-10-31 05:41:17,275 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 05:41:17,275 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 2025-10-31 05:41:17,284 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1 2025-10-31 05:41:17,298 - INFO - Verified VN network id 12 for VN 9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 2025-10-31 05:41:17,298 - INFO - Verifications in API Server for VN ctest-vn-82267141 passed 2025-10-31 05:41:17,298 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 2025-10-31 05:41:17,307 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1 2025-10-31 05:41:17,313 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1 2025-10-31 05:41:17,318 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/dc13780d-3e19-4d24-b925-e9a009ee0c62 2025-10-31 05:41:17,330 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84157436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11445278001440506709', 'uuid-lslong': '11083589196588015717'}, 'enable': 'true', 'created': '2025-10-31T05:41:14', 'last-modified': '2025-10-31T05:41:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454324'} 2025-10-31 05:41:17,335 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 05:41:17,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82267141 passed 2025-10-31 05:41:17,335 - DEBUG - ====Verifying policy data for ctest-vn-82267141 in API_Server ====== 2025-10-31 05:41:17,335 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:17,340 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:17,350 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a 2025-10-31 05:41:17,416 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 2025-10-31 05:41:17,425 - DEBUG - ==>Verifying data for policy with id: 9593f243-e21b-43f1-b1dc-64a4e03a6ec7, fqn: ['default-domain', 'ctest-TestBasicPolicy-84157436', 'ctest-policy-allow-all-08727218'] 2025-10-31 05:41:17,425 - INFO - VN ctest-vn-82267141 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 05:41:17,425 - DEBUG - Verifying the vn in opserver 2025-10-31 05:41:17,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141 virtual network link through opserver 10.0.0.137 2025-10-31 05:41:17,425 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 05:41:17,434 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141?flat'} 2025-10-31 05:41:17,434 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-82267141 is found in opserver 2025-10-31 05:41:17,442 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 05:41:17,446 - DEBUG - VRF ids for VN ctest-vn-82267141: {} 2025-10-31 05:41:17,501 - DEBUG - Services list from nova: [, , ] 2025-10-31 05:41:18,583 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4571-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4571-1) 2025-10-31 05:41:19,836 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4571-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4571-1) 2025-10-31 05:41:19,836 - INFO - Waiting for VM ctest-TestBasicPolicy-84157436-64314808 to be up.. 2025-10-31 05:41:19,929 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-31 05:41:25,012 - DEBUG - VM is in ACTIVE state now 2025-10-31 05:41:25,013 - INFO - VM name : ctest-TestBasicPolicy-84157436-64314808 2025-10-31 05:41:25,091 - DEBUG - VM ctest-TestBasicPolicy-84157436-64314808 ID is b65795f9-1975-4c70-a942-061288cb382e 2025-10-31 05:41:25,108 - DEBUG - VM ctest-TestBasicPolicy-84157436-64314808 launched on Node cn-jenkins-deploy-platform-ansible-os-4571-1 2025-10-31 05:41:25,180 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/b65795f9-1975-4c70-a942-061288cb382e 2025-10-31 05:41:25,188 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/d7c7db4f-ad96-48ac-b185-0603d56bfe02 2025-10-31 05:41:28,419 - 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 1007ms') 2025-10-31 05:41:28,420 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84157436-64314808 failed! 2025-10-31 05:41:28,477 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-84157436:ctest-vn-72284674 is 158.92.28.1 and allocation pool is NOT set 2025-10-31 05:41:30,540 - 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.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.27 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 = 2.271/5.681/9.092/3.410 ms') 2025-10-31 05:41:30,540 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84157436-64314808 passed 2025-10-31 05:41:30,693 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 05:41:30,693 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84157436-64314808, IP 158.92.28.3, Port 22 2025-10-31 05:41:30,849 - DEBUG - VM ctest-TestBasicPolicy-84157436-64314808 is ready for SSH connections 2025-10-31 05:41:30,849 - INFO - Waiting for VM ctest-TestBasicPolicy-84157436-91947243 to be up.. 2025-10-31 05:41:30,918 - DEBUG - VM is in ACTIVE state now 2025-10-31 05:41:30,918 - INFO - VM name : ctest-TestBasicPolicy-84157436-91947243 2025-10-31 05:41:30,991 - DEBUG - VM ctest-TestBasicPolicy-84157436-91947243 ID is 685e3148-81ac-40c7-a309-7f475f6a4bbb 2025-10-31 05:41:30,992 - DEBUG - VM ctest-TestBasicPolicy-84157436-91947243 launched on Node cn-jenkins-deploy-platform-ansible-os-4571-1 2025-10-31 05:41:31,067 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/685e3148-81ac-40c7-a309-7f475f6a4bbb 2025-10-31 05:41:31,074 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/f6c9f7fe-5e32-4c4d-ab15-b2fb47e2c1e2 2025-10-31 05:41:32,315 - 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=4.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.36 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.356/4.015/4.674/0.659 ms') 2025-10-31 05:41:32,316 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84157436-91947243 passed 2025-10-31 05:41:32,465 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 05:41:32,465 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84157436-91947243, IP 81.4.119.195, Port 22 2025-10-31 05:41:32,521 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-31 05:41:32,596 - DEBUG - VM ctest-TestBasicPolicy-84157436-91947243 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-31 05:41:37,597 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 05:41:37,597 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84157436-91947243, IP 81.4.119.195, Port 22 2025-10-31 05:41:37,752 - DEBUG - VM ctest-TestBasicPolicy-84157436-91947243 is ready for SSH connections 2025-10-31 05:41:37,752 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 05:41:37,753 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.4.119.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-10-31 05:41:37,753 - DEBUG - ping -s 56 -c 3 -W 1 81.4.119.195 2025-10-31 05:41:41,842 - DEBUG - PING 81.4.119.195 (81.4.119.195): 56 data bytes 64 bytes from 81.4.119.195: seq=0 ttl=63 time=3.766 ms 64 bytes from 81.4.119.195: seq=1 ttl=63 time=0.946 ms 64 bytes from 81.4.119.195: seq=2 ttl=63 time=0.726 ms --- 81.4.119.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.726/1.812/3.766 ms 2025-10-31 05:41:41,842 - INFO - Ping to IP 81.4.119.195 from VM ctest-TestBasicPolicy-84157436-64314808 passed 2025-10-31 05:41:42,021 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9593f243-e21b-43f1-b1dc-64a4e03a6ec7", "href": "http://10.0.0.137:8082/network-policy/9593f243-e21b-43f1-b1dc-64a4e03a6ec7"}} 2025-10-31 05:41:42,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 05:41:42,021 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.4.119.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-10-31 05:41:42,021 - DEBUG - ping -s 56 -c 3 -W 1 81.4.119.195 2025-10-31 05:41:45,234 - DEBUG - PING 81.4.119.195 (81.4.119.195): 56 data bytes --- 81.4.119.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-31 05:41:45,235 - WARNING - Ping to IP 81.4.119.195 from VM ctest-TestBasicPolicy-84157436-64314808 failed 2025-10-31 05:41:45,235 - INFO - Deleting VM ctest-TestBasicPolicy-84157436-91947243 2025-10-31 05:41:45,304 - INFO - Deleting VM ctest-TestBasicPolicy-84157436-64314808 2025-10-31 05:41:45,645 - INFO - Deleted policy ctest-policy-allow-all-08727218 2025-10-31 05:41:45,646 - INFO - Deleting VN ctest-vn-82267141 2025-10-31 05:41:45,685 - DEBUG - VN 9ed5cbb3-df74-4355-99d0-d1a6a2fc6065 still in use: Unable to complete operation on network 9ed5cbb3-df74-4355-99d0-d1a6a2fc6065. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d9fce061-4ab4-4d40-8e85-fbd588668f5b'] 2025-10-31 05:41:45,685 - WARNING - Deleting VN ctest-vn-82267141 failed..Will retry 2025-10-31 05:41:47,781 - DEBUG - Response for deleting network () 2025-10-31 05:41:47,782 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5b4bad0d-e17a-459a-a3b3-c68225e888d1 2025-10-31 05:41:47,788 - DEBUG - Response Code: 404 2025-10-31 05:41:47,788 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:47,792 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:47,846 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a 2025-10-31 05:41:47,917 - INFO - Validated that VN ctest-vn-82267141 is not found in API Server 2025-10-31 05:41:47,925 - DEBUG - VN ctest-vn-82267141 is not present in Agent 10.0.0.137 2025-10-31 05:41:47,925 - INFO - Validated that VN ctest-vn-82267141 is not in any agent 2025-10-31 05:41:47,937 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82267141 info 2025-10-31 05:41:47,937 - INFO - Deleting VN ctest-vn-72284674 2025-10-31 05:41:48,028 - DEBUG - Response for deleting network () 2025-10-31 05:41:48,028 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/97c0c118-9518-42c3-8a5f-05aa2991ec24 2025-10-31 05:41:48,033 - DEBUG - Response Code: 404 2025-10-31 05:41:48,033 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:48,041 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:48,094 - DEBUG - Requesting: http://10.0.0.137:8082/project/765326b7-4eb4-419f-b6aa-59b8d5074a2a 2025-10-31 05:41:48,160 - INFO - Validated that VN ctest-vn-72284674 is not found in API Server 2025-10-31 05:41:48,169 - DEBUG - VN ctest-vn-72284674 is not present in Agent 10.0.0.137 2025-10-31 05:41:48,169 - INFO - Validated that VN ctest-vn-72284674 is not in any agent 2025-10-31 05:41:48,182 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72284674 info 2025-10-31 05:41:48,434 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 05:41:48,434 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-10-31 05:41:48,434 - INFO - -------------------------------------------------------------------------------- 2025-10-31 05:41:49,279 - INFO - Deleted project: ctest-TestBasicPolicy-84157436, ID : 765326b7-4eb4-419f-b6aa-59b8d5074a2a