2025-09-04 12:33:38,986 - INFO - Domain Default found not creating 2025-09-04 12:33:39,117 - INFO - Project ctest-TestBasicPolicy-87836222 not found, creating it 2025-09-04 12:33:39,562 - INFO - Created Project:ctest-TestBasicPolicy-87836222, ID : 46f101aa-3a07-40bc-a6f1-0770991bc6ab 2025-09-04 12:33:40,898 - INFO - ================================================================================ 2025-09-04 12:33:40,898 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-04 12:33:40,898 - 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-09-04 12:33:41,155 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-04 12:33:41,155 - INFO - Initial checks done. Running the testcase now 2025-09-04 12:33:41,155 - INFO - 2025-09-04 12:33:41,670 - DEBUG - Response for create_network : {'network': {'id': 'c6b80222-ab1d-41b9-b9b3-1b390a4c77ec', 'name': 'ctest-vn-86055143', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-86055143'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 12:33:41,843 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3bb845d-48f5-433c-8451-c1aabbc50f2c', 'name': '', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'network_id': 'c6b80222-ab1d-41b9-b9b3-1b390a4c77ec', 'ip_version': 4, 'cidr': '214.100.73.192/26', 'allocation_pools': [{'start': '214.100.73.194', 'end': '214.100.73.254'}], 'gateway_ip': '214.100.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.100.73.194', 'tags': [], 'project_id': '46f101aa3a0740bca6f10770991bc6ab'}} 2025-09-04 12:33:41,858 - INFO - Created VN ctest-vn-86055143 2025-09-04 12:33:41,910 - DEBUG - VN ctest-vn-86055143 UUID is c6b80222-ab1d-41b9-b9b3-1b390a4c77ec 2025-09-04 12:33:42,207 - DEBUG - Response for create_network : {'network': {'id': '6c7d778c-e30b-4c0e-a41d-1335fbb33c15', 'name': 'ctest-vn-87259682', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-87259682'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 12:33:42,358 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c80b57f2-0608-48ad-afed-be4b9ccbd63b', 'name': '', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'network_id': '6c7d778c-e30b-4c0e-a41d-1335fbb33c15', 'ip_version': 4, 'cidr': '166.21.174.192/26', 'allocation_pools': [{'start': '166.21.174.194', 'end': '166.21.174.254'}], 'gateway_ip': '166.21.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.21.174.194', 'tags': [], 'project_id': '46f101aa3a0740bca6f10770991bc6ab'}} 2025-09-04 12:33:42,373 - INFO - Created VN ctest-vn-87259682 2025-09-04 12:33:42,422 - DEBUG - VN ctest-vn-87259682 UUID is 6c7d778c-e30b-4c0e-a41d-1335fbb33c15 2025-09-04 12:33:42,566 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143, 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-87836222:ctest-vn-87259682, 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-09-04 12:33:42,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6b80222-ab1d-41b9-b9b3-1b390a4c77ec', 'name': 'ctest-vn-86055143', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3bb845d-48f5-433c-8451-c1aabbc50f2c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-86055143'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824']], 'subnet_ipam': [{'subnet_cidr': '214.100.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 12:33:43,071 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c7d778c-e30b-4c0e-a41d-1335fbb33c15', 'name': 'ctest-vn-87259682', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c80b57f2-0608-48ad-afed-be4b9ccbd63b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-87259682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824']], 'subnet_ipam': [{'subnet_cidr': '166.21.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 12:33:43,234 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-04 12:33:43,522 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-04 12:33:43,546 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc 2025-09-04 12:33:43,556 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab 2025-09-04 12:33:43,630 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec 2025-09-04 12:33:43,639 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec 2025-09-04 12:33:43,646 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc 2025-09-04 12:33:43,652 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc 2025-09-04 12:33:43,657 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/afdb97fd-e938-4f76-9aef-0f88fbefebd7 2025-09-04 12:33:43,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 12:33:43,663 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec 2025-09-04 12:33:43,671 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc 2025-09-04 12:33:43,683 - INFO - Verified VN network id 11 for VN c6b80222-ab1d-41b9-b9b3-1b390a4c77ec 2025-09-04 12:33:43,683 - INFO - Verifications in API Server for VN ctest-vn-86055143 passed 2025-09-04 12:33:43,683 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec 2025-09-04 12:33:43,691 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc 2025-09-04 12:33:43,696 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc 2025-09-04 12:33:43,701 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/afdb97fd-e938-4f76-9aef-0f88fbefebd7 2025-09-04 12:33:43,711 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87836222', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14319197363147456953', 'uuid-lslong': '13381068849647745004'}, 'enable': 'true', 'created': '2025-09-04T12:33:41', 'last-modified': '2025-09-04T12:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882108'} 2025-09-04 12:33:43,716 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 12:33:43,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86055143 passed 2025-09-04 12:33:43,716 - DEBUG - ====Verifying policy data for ctest-vn-86055143 in API_Server ====== 2025-09-04 12:33:43,716 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-04 12:33:43,721 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc 2025-09-04 12:33:43,731 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab 2025-09-04 12:33:43,797 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec 2025-09-04 12:33:43,804 - DEBUG - ==>Verifying data for policy with id: 91f6d65c-c3e8-446d-bdb6-b84c5eb1cadb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824'] 2025-09-04 12:33:43,804 - INFO - VN ctest-vn-86055143 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 12:33:43,804 - DEBUG - Verifying the vn in opserver 2025-09-04 12:33:43,804 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143 virtual network link through opserver 10.0.0.254 2025-09-04 12:33:43,804 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-04 12:33:44,091 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-04 12:33:44,138 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143?flat'} 2025-09-04 12:33:44,138 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143 is found in opserver 2025-09-04 12:33:44,146 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 12:33:44,150 - DEBUG - VRF ids for VN ctest-vn-86055143: {} 2025-09-04 12:33:44,150 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-04 12:33:44,154 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc 2025-09-04 12:33:44,164 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab 2025-09-04 12:33:44,230 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15 2025-09-04 12:33:44,240 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15 2025-09-04 12:33:44,247 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797 2025-09-04 12:33:44,253 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797 2025-09-04 12:33:44,259 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04591233-1474-43c9-a002-e2e20a863e84 2025-09-04 12:33:44,264 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 12:33:44,264 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15 2025-09-04 12:33:44,271 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797 2025-09-04 12:33:44,282 - INFO - Verified VN network id 12 for VN 6c7d778c-e30b-4c0e-a41d-1335fbb33c15 2025-09-04 12:33:44,282 - INFO - Verifications in API Server for VN ctest-vn-87259682 passed 2025-09-04 12:33:44,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15 2025-09-04 12:33:44,290 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797 2025-09-04 12:33:44,295 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797 2025-09-04 12:33:44,301 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04591233-1474-43c9-a002-e2e20a863e84 2025-09-04 12:33:44,311 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87836222', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7817535975173344270', 'uuid-lslong': '11825629319121812501'}, 'enable': 'true', 'created': '2025-09-04T12:33:42', 'last-modified': '2025-09-04T12:33:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.263715'} 2025-09-04 12:33:44,317 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 12:33:44,317 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87259682 passed 2025-09-04 12:33:44,318 - DEBUG - ====Verifying policy data for ctest-vn-87259682 in API_Server ====== 2025-09-04 12:33:44,318 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-04 12:33:44,323 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc 2025-09-04 12:33:44,332 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab 2025-09-04 12:33:44,398 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15 2025-09-04 12:33:44,405 - DEBUG - ==>Verifying data for policy with id: 91f6d65c-c3e8-446d-bdb6-b84c5eb1cadb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824'] 2025-09-04 12:33:44,406 - INFO - VN ctest-vn-87259682 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 12:33:44,406 - DEBUG - Verifying the vn in opserver 2025-09-04 12:33:44,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682 virtual network link through opserver 10.0.0.254 2025-09-04 12:33:44,406 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-04 12:33:44,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682?flat'} 2025-09-04 12:33:44,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682 is found in opserver 2025-09-04 12:33:44,423 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 12:33:44,426 - DEBUG - VRF ids for VN ctest-vn-87259682: {} 2025-09-04 12:33:44,477 - DEBUG - Services list from nova: [, , ] 2025-09-04 12:33:45,452 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4014-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4014-1) 2025-09-04 12:33:46,556 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4014-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4014-1) 2025-09-04 12:33:46,557 - INFO - Waiting for VM ctest-TestBasicPolicy-87836222-27642833 to be up.. 2025-09-04 12:33:46,633 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-04 12:33:51,697 - DEBUG - VM is in ACTIVE state now 2025-09-04 12:33:51,697 - INFO - VM name : ctest-TestBasicPolicy-87836222-27642833 2025-09-04 12:33:51,762 - DEBUG - VM ctest-TestBasicPolicy-87836222-27642833 ID is e682daa2-dcd1-4370-9a04-1b5df6b4259a 2025-09-04 12:33:51,778 - DEBUG - VM ctest-TestBasicPolicy-87836222-27642833 launched on Node cn-jenkins-deploy-platform-ansible-os-4014-1 2025-09-04 12:33:51,840 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e682daa2-dcd1-4370-9a04-1b5df6b4259a 2025-09-04 12:33:51,846 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b34e55a7-bded-43b8-8441-101054bca73b 2025-09-04 12:33:55,094 - 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 1024ms') 2025-09-04 12:33:55,094 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87836222-27642833 failed! 2025-09-04 12:33:55,146 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143 is 214.100.73.193 and allocation pool is NOT set 2025-09-04 12:33:57,209 - 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=2.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.34 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.340/2.524/2.708/0.184 ms') 2025-09-04 12:33:57,209 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87836222-27642833 passed 2025-09-04 12:33:57,362 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 12:33:57,362 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87836222-27642833, IP 214.100.73.195, Port 22 2025-09-04 12:33:57,422 - 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-09-04 12:33:57,486 - DEBUG - VM ctest-TestBasicPolicy-87836222-27642833 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 12:34:02,487 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 12:34:02,488 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87836222-27642833, IP 214.100.73.195, Port 22 2025-09-04 12:34:02,646 - DEBUG - VM ctest-TestBasicPolicy-87836222-27642833 is ready for SSH connections 2025-09-04 12:34:02,646 - INFO - Waiting for VM ctest-TestBasicPolicy-87836222-81256302 to be up.. 2025-09-04 12:34:02,726 - DEBUG - VM is in ACTIVE state now 2025-09-04 12:34:02,726 - INFO - VM name : ctest-TestBasicPolicy-87836222-81256302 2025-09-04 12:34:02,794 - DEBUG - VM ctest-TestBasicPolicy-87836222-81256302 ID is 2b74b8ae-1f9a-476b-bc9b-3104df721822 2025-09-04 12:34:02,794 - DEBUG - VM ctest-TestBasicPolicy-87836222-81256302 launched on Node cn-jenkins-deploy-platform-ansible-os-4014-1 2025-09-04 12:34:02,864 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/2b74b8ae-1f9a-476b-bc9b-3104df721822 2025-09-04 12:34:02,873 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4c17100e-f882-4473-9c4d-f4695f7ca3d6 2025-09-04 12:34:04,112 - 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.69 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.405 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 = 0.405/1.546/2.687/1.141 ms') 2025-09-04 12:34:04,112 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87836222-81256302 passed 2025-09-04 12:34:04,262 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 12:34:04,262 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87836222-81256302, IP 166.21.174.195, Port 22 2025-09-04 12:34:04,413 - DEBUG - VM ctest-TestBasicPolicy-87836222-81256302 is ready for SSH connections 2025-09-04 12:34:04,413 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 12:34:04,414 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.21.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-04 12:34:04,414 - DEBUG - ping -s 56 -c 3 -W 1 166.21.174.195 2025-09-04 12:34:08,375 - DEBUG - PING 166.21.174.195 (166.21.174.195): 56 data bytes 64 bytes from 166.21.174.195: seq=0 ttl=63 time=3.346 ms 64 bytes from 166.21.174.195: seq=1 ttl=63 time=0.703 ms 64 bytes from 166.21.174.195: seq=2 ttl=63 time=0.842 ms --- 166.21.174.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.703/1.630/3.346 ms 2025-09-04 12:34:08,375 - INFO - Ping to IP 166.21.174.195 from VM ctest-TestBasicPolicy-87836222-27642833 passed 2025-09-04 12:34:08,542 - DEBUG - Policy Update Response {"network-policy": {"uuid": "91f6d65c-c3e8-446d-bdb6-b84c5eb1cadb", "href": "http://10.0.0.254:8082/network-policy/91f6d65c-c3e8-446d-bdb6-b84c5eb1cadb"}} 2025-09-04 12:34:08,542 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 12:34:08,542 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.21.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-04 12:34:08,542 - DEBUG - ping -s 56 -c 3 -W 1 166.21.174.195 2025-09-04 12:34:11,737 - DEBUG - PING 166.21.174.195 (166.21.174.195): 56 data bytes 64 bytes from 166.21.174.195: seq=0 ttl=63 time=1.361 ms --- 166.21.174.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.361/1.361/1.361 ms 2025-09-04 12:34:11,737 - WARNING - Ping to IP 166.21.174.195 from VM ctest-TestBasicPolicy-87836222-27642833 failed 2025-09-04 12:34:11,738 - INFO - Deleting VM ctest-TestBasicPolicy-87836222-81256302 2025-09-04 12:34:11,798 - INFO - Deleting VM ctest-TestBasicPolicy-87836222-27642833 2025-09-04 12:34:12,122 - INFO - Deleted policy ctest-policy-allow-all-38824824 2025-09-04 12:34:12,122 - INFO - Deleting VN ctest-vn-87259682 2025-09-04 12:34:12,158 - DEBUG - VN 6c7d778c-e30b-4c0e-a41d-1335fbb33c15 still in use: Unable to complete operation on network 6c7d778c-e30b-4c0e-a41d-1335fbb33c15. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c9be9318-99e9-4e1e-9b48-d953a2c47d47'] 2025-09-04 12:34:12,158 - WARNING - Deleting VN ctest-vn-87259682 failed..Will retry 2025-09-04 12:34:14,253 - DEBUG - Response for deleting network () 2025-09-04 12:34:14,253 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797 2025-09-04 12:34:14,259 - DEBUG - Response Code: 404 2025-09-04 12:34:14,259 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-04 12:34:14,264 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc 2025-09-04 12:34:14,315 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab 2025-09-04 12:34:14,381 - INFO - Validated that VN ctest-vn-87259682 is not found in API Server 2025-09-04 12:34:14,388 - DEBUG - VN ctest-vn-87259682 is not present in Agent 10.0.0.254 2025-09-04 12:34:14,388 - INFO - Validated that VN ctest-vn-87259682 is not in any agent 2025-09-04 12:34:14,400 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87259682 info 2025-09-04 12:34:14,400 - INFO - Deleting VN ctest-vn-86055143 2025-09-04 12:34:14,486 - DEBUG - Response for deleting network () 2025-09-04 12:34:14,486 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc 2025-09-04 12:34:14,491 - DEBUG - Response Code: 404 2025-09-04 12:34:14,491 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-04 12:34:14,495 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc 2025-09-04 12:34:14,546 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab 2025-09-04 12:34:14,610 - INFO - Validated that VN ctest-vn-86055143 is not found in API Server 2025-09-04 12:34:14,618 - DEBUG - VN ctest-vn-86055143 is not present in Agent 10.0.0.254 2025-09-04 12:34:14,618 - INFO - Validated that VN ctest-vn-86055143 is not in any agent 2025-09-04 12:34:14,630 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86055143 info 2025-09-04 12:34:14,878 - DEBUG - No XMPP flaps were noticed during the test
2025-09-04 12:34:14,878 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-09-04 12:34:14,878 - INFO - -------------------------------------------------------------------------------- 2025-09-04 12:34:15,518 - INFO - Deleted project: ctest-TestBasicPolicy-87836222, ID : 46f101aa-3a07-40bc-a6f1-0770991bc6ab