2026-05-27 16:42:58,498 - INFO - Domain Default found not creating 2026-05-27 16:42:58,675 - INFO - Project ctest-TestBasicPolicy-40189575 not found, creating it 2026-05-27 16:42:59,251 - INFO - Created Project:ctest-TestBasicPolicy-40189575, ID : 7b64c5ef-f64c-4fb8-9721-54094db3a7f2 2026-05-27 16:43:00,837 - INFO - ================================================================================ 2026-05-27 16:43:00,838 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-05-27 16:43:00,838 - 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 2026-05-27 16:43:02,134 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.242': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-05-27 16:43:02,134 - INFO - Initial checks done. Running the testcase now 2026-05-27 16:43:02,134 - INFO - 2026-05-27 16:43:02,909 - DEBUG - Response for create_network : {'network': {'id': 'cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4', 'name': 'ctest-vn-48092239', 'tenant_id': '7b64c5eff64c4fb8972154094db3a7f2', 'project_id': '7b64c5eff64c4fb8972154094db3a7f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-vn-48092239'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:43:03,220 - DEBUG - Response for create_subnet : {'subnet': {'id': '09c3fed0-acb3-4471-b591-d22e391205a3', 'name': '', 'tenant_id': '7b64c5eff64c4fb8972154094db3a7f2', 'network_id': 'cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4', 'ip_version': 4, 'cidr': '110.182.68.128/26', 'allocation_pools': [{'start': '110.182.68.130', 'end': '110.182.68.190'}], 'gateway_ip': '110.182.68.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.182.68.130', 'tags': [], 'project_id': '7b64c5eff64c4fb8972154094db3a7f2'}} 2026-05-27 16:43:03,245 - INFO - Created VN ctest-vn-48092239 2026-05-27 16:43:03,258 - DEBUG - VN ctest-vn-48092239 UUID is cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4 2026-05-27 16:43:03,655 - DEBUG - Response for create_network : {'network': {'id': 'bc37fb5e-3f48-4378-bcca-db5d1e33351d', 'name': 'ctest-vn-12819885', 'tenant_id': '7b64c5eff64c4fb8972154094db3a7f2', 'project_id': '7b64c5eff64c4fb8972154094db3a7f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-vn-12819885'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:43:03,909 - DEBUG - Response for create_subnet : {'subnet': {'id': '36da28a9-8ba3-4ad9-828d-f16e8b24422a', 'name': '', 'tenant_id': '7b64c5eff64c4fb8972154094db3a7f2', 'network_id': 'bc37fb5e-3f48-4378-bcca-db5d1e33351d', 'ip_version': 4, 'cidr': '132.12.117.64/26', 'allocation_pools': [{'start': '132.12.117.66', 'end': '132.12.117.126'}], 'gateway_ip': '132.12.117.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.12.117.66', 'tags': [], 'project_id': '7b64c5eff64c4fb8972154094db3a7f2'}} 2026-05-27 16:43:03,933 - INFO - Created VN ctest-vn-12819885 2026-05-27 16:43:03,952 - DEBUG - VN ctest-vn-12819885 UUID is bc37fb5e-3f48-4378-bcca-db5d1e33351d 2026-05-27 16:43:04,040 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239, 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-40189575:ctest-vn-12819885, 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] 2026-05-27 16:43:04,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4', 'name': 'ctest-vn-48092239', 'tenant_id': '7b64c5eff64c4fb8972154094db3a7f2', 'project_id': '7b64c5eff64c4fb8972154094db3a7f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09c3fed0-acb3-4471-b591-d22e391205a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-vn-48092239'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-policy-allow-all-83796278']], 'subnet_ipam': [{'subnet_cidr': '110.182.68.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:43:04,610 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc37fb5e-3f48-4378-bcca-db5d1e33351d', 'name': 'ctest-vn-12819885', 'tenant_id': '7b64c5eff64c4fb8972154094db3a7f2', 'project_id': '7b64c5eff64c4fb8972154094db3a7f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36da28a9-8ba3-4ad9-828d-f16e8b24422a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-vn-12819885'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-policy-allow-all-83796278']], 'subnet_ipam': [{'subnet_cidr': '132.12.117.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:43:04,724 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:43:05,026 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:43:05,063 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:43:05,083 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b64c5ef-f64c-4fb8-9721-54094db3a7f2 2026-05-27 16:43:05,194 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4 2026-05-27 16:43:05,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4 2026-05-27 16:43:05,219 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ad1a4d0-0e42-4c24-8dde-526434dc064b 2026-05-27 16:43:05,228 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ad1a4d0-0e42-4c24-8dde-526434dc064b 2026-05-27 16:43:05,237 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9f4e0c3d-1825-4f30-83a9-137d1b39d01e 2026-05-27 16:43:05,245 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:43:05,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4 2026-05-27 16:43:05,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ad1a4d0-0e42-4c24-8dde-526434dc064b 2026-05-27 16:43:05,276 - INFO - Verified VN network id 13 for VN cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4 2026-05-27 16:43:05,276 - INFO - Verifications in API Server for VN ctest-vn-48092239 passed 2026-05-27 16:43:05,276 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4 2026-05-27 16:43:05,287 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ad1a4d0-0e42-4c24-8dde-526434dc064b 2026-05-27 16:43:05,296 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ad1a4d0-0e42-4c24-8dde-526434dc064b 2026-05-27 16:43:05,304 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9f4e0c3d-1825-4f30-83a9-137d1b39d01e 2026-05-27 16:43:05,317 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40189575', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14682468279990963722', 'uuid-lslong': '10702555808895778212'}, 'enable': 'true', 'created': '2026-05-27T16:43:02', 'last-modified': '2026-05-27T16:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964681'} 2026-05-27 16:43:05,322 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:43:05,329 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40189575', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14682468279990963722', 'uuid-lslong': '10702555808895778212'}, 'enable': 'true', 'created': '2026-05-27T16:43:02', 'last-modified': '2026-05-27T16:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981051'} 2026-05-27 16:43:05,337 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:43:05,344 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40189575', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14682468279990963722', 'uuid-lslong': '10702555808895778212'}, 'enable': 'true', 'created': '2026-05-27T16:43:02', 'last-modified': '2026-05-27T16:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989182'} 2026-05-27 16:43:05,350 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:43:05,351 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48092239 passed 2026-05-27 16:43:05,351 - DEBUG - ====Verifying policy data for ctest-vn-48092239 in API_Server ====== 2026-05-27 16:43:05,351 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:43:05,358 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:43:05,370 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b64c5ef-f64c-4fb8-9721-54094db3a7f2 2026-05-27 16:43:05,463 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cbc29b1c-0ecd-4e0a-9487-1dcdba06bda4 2026-05-27 16:43:05,475 - DEBUG - ==>Verifying data for policy with id: 7d78c100-57c7-427c-92f0-95bbbb82b5b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-policy-allow-all-83796278'] 2026-05-27 16:43:05,475 - INFO - VN ctest-vn-48092239 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 16:43:05,475 - DEBUG - Verifying the vn in opserver 2026-05-27 16:43:05,475 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 virtual network link through opserver 10.0.0.50 2026-05-27 16:43:05,475 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-27 16:43:05,877 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-27 16:43:05,960 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239?flat'} 2026-05-27 16:43:05,961 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 virtual network link through opserver 10.0.0.22 2026-05-27 16:43:05,961 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-27 16:43:06,275 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-27 16:43:06,649 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239?flat'} 2026-05-27 16:43:06,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 virtual network link through opserver 10.0.0.129 2026-05-27 16:43:06,649 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-27 16:43:06,962 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-27 16:43:07,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239?flat'} 2026-05-27 16:43:07,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is found in opserver 2026-05-27 16:43:07,359 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 16:43:07,372 - DEBUG - VRF ids for VN ctest-vn-48092239: {} 2026-05-27 16:43:07,372 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:43:07,378 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:43:07,392 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b64c5ef-f64c-4fb8-9721-54094db3a7f2 2026-05-27 16:43:07,497 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc37fb5e-3f48-4378-bcca-db5d1e33351d 2026-05-27 16:43:07,517 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc37fb5e-3f48-4378-bcca-db5d1e33351d 2026-05-27 16:43:07,530 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9562a9-6369-4127-9467-6b29345f9ad5 2026-05-27 16:43:07,540 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9562a9-6369-4127-9467-6b29345f9ad5 2026-05-27 16:43:07,551 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3e585729-b008-414c-8ea5-c17065af56f9 2026-05-27 16:43:07,559 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-27 16:43:07,560 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc37fb5e-3f48-4378-bcca-db5d1e33351d 2026-05-27 16:43:07,573 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9562a9-6369-4127-9467-6b29345f9ad5 2026-05-27 16:43:07,597 - INFO - Verified VN network id 14 for VN bc37fb5e-3f48-4378-bcca-db5d1e33351d 2026-05-27 16:43:07,597 - INFO - Verifications in API Server for VN ctest-vn-12819885 passed 2026-05-27 16:43:07,597 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc37fb5e-3f48-4378-bcca-db5d1e33351d 2026-05-27 16:43:07,608 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9562a9-6369-4127-9467-6b29345f9ad5 2026-05-27 16:43:07,623 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9562a9-6369-4127-9467-6b29345f9ad5 2026-05-27 16:43:07,632 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3e585729-b008-414c-8ea5-c17065af56f9 2026-05-27 16:43:07,645 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40189575', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13562585185056736120', 'uuid-lslong': '13603926817411118365'}, 'enable': 'true', 'created': '2026-05-27T16:43:03', 'last-modified': '2026-05-27T16:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.072633'} 2026-05-27 16:43:07,651 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-27 16:43:07,662 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40189575', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13562585185056736120', 'uuid-lslong': '13603926817411118365'}, 'enable': 'true', 'created': '2026-05-27T16:43:03', 'last-modified': '2026-05-27T16:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.091657'} 2026-05-27 16:43:07,675 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-27 16:43:07,682 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40189575', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13562585185056736120', 'uuid-lslong': '13603926817411118365'}, 'enable': 'true', 'created': '2026-05-27T16:43:03', 'last-modified': '2026-05-27T16:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.111163'} 2026-05-27 16:43:07,688 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-27 16:43:07,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12819885 passed 2026-05-27 16:43:07,689 - DEBUG - ====Verifying policy data for ctest-vn-12819885 in API_Server ====== 2026-05-27 16:43:07,689 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:43:07,695 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:43:07,708 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b64c5ef-f64c-4fb8-9721-54094db3a7f2 2026-05-27 16:43:07,806 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc37fb5e-3f48-4378-bcca-db5d1e33351d 2026-05-27 16:43:07,827 - DEBUG - ==>Verifying data for policy with id: 7d78c100-57c7-427c-92f0-95bbbb82b5b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-40189575', 'ctest-policy-allow-all-83796278'] 2026-05-27 16:43:07,827 - INFO - VN ctest-vn-12819885 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 16:43:07,827 - DEBUG - Verifying the vn in opserver 2026-05-27 16:43:07,827 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885 virtual network link through opserver 10.0.0.50 2026-05-27 16:43:07,827 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-27 16:43:07,912 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885?flat'} 2026-05-27 16:43:07,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885 virtual network link through opserver 10.0.0.22 2026-05-27 16:43:07,913 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-27 16:43:07,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885?flat'} 2026-05-27 16:43:07,981 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885 virtual network link through opserver 10.0.0.129 2026-05-27 16:43:07,981 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-27 16:43:08,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885?flat'} 2026-05-27 16:43:08,051 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-12819885 is found in opserver 2026-05-27 16:43:08,074 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 16:43:08,088 - DEBUG - VRF ids for VN ctest-vn-12819885: {} 2026-05-27 16:43:08,150 - DEBUG - Services list from nova: [, , , ] 2026-05-27 16:43:09,275 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5832-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5832-2) 2026-05-27 16:43:10,947 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5832-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5832-1) 2026-05-27 16:43:10,947 - INFO - Waiting for VM ctest-TestBasicPolicy-40189575-15769602 to be up.. 2026-05-27 16:43:11,053 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-05-27 16:43:16,156 - DEBUG - VM is in ACTIVE state now 2026-05-27 16:43:16,156 - INFO - VM name : ctest-TestBasicPolicy-40189575-15769602 2026-05-27 16:43:16,253 - DEBUG - VM ctest-TestBasicPolicy-40189575-15769602 ID is a0923ddf-0a00-48aa-80bb-074d1a1dd190 2026-05-27 16:43:16,284 - DEBUG - VM ctest-TestBasicPolicy-40189575-15769602 launched on Node an-jenkins-deploy-platform-ansible-os-5832-2 2026-05-27 16:43:16,381 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/a0923ddf-0a00-48aa-80bb-074d1a1dd190 2026-05-27 16:43:16,722 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/a0923ddf-0a00-48aa-80bb-074d1a1dd190 2026-05-27 16:43:16,763 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/4edccd2e-e023-495e-a467-2b22c941964c 2026-05-27 16:43:19,959 - 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 1030ms') 2026-05-27 16:43:19,959 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:19,976 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:24,062 - 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 1022ms') 2026-05-27 16:43:24,062 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:24,083 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:28,158 - 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 1010ms') 2026-05-27 16:43:28,159 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:28,175 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:32,250 - 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 1006ms') 2026-05-27 16:43:32,250 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:32,265 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:36,343 - 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 1018ms') 2026-05-27 16:43:36,343 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:36,358 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:40,444 - 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 1022ms') 2026-05-27 16:43:40,445 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:40,461 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:44,541 - 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 1013ms') 2026-05-27 16:43:44,541 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:44,558 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:48,638 - 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 1016ms') 2026-05-27 16:43:48,639 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:48,654 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:52,727 - 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 1012ms') 2026-05-27 16:43:52,727 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:52,746 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:43:56,830 - 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 1018ms') 2026-05-27 16:43:56,830 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 failed! 2026-05-27 16:43:56,854 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40189575:ctest-vn-48092239 is 110.182.68.129 and allocation pool is NOT set 2026-05-27 16:44:00,924 - 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=2 ttl=63 time=5.74 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1007ms\r\nrtt min/avg/max/mdev = 5.737/5.737/5.737/0.000 ms') 2026-05-27 16:44:00,924 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-15769602 passed 2026-05-27 16:44:00,999 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:00,999 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40189575-15769602, IP 110.182.68.131, Port 22 2026-05-27 16:44:01,067 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-27 16:44:01,162 - DEBUG - VM ctest-TestBasicPolicy-40189575-15769602 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-27 16:44:06,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:06,162 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40189575-15769602, IP 110.182.68.131, Port 22 2026-05-27 16:44:06,221 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-27 16:44:06,319 - DEBUG - VM ctest-TestBasicPolicy-40189575-15769602 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-27 16:44:11,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:11,320 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40189575-15769602, IP 110.182.68.131, Port 22 2026-05-27 16:44:11,398 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-27 16:44:11,499 - DEBUG - VM ctest-TestBasicPolicy-40189575-15769602 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-27 16:44:16,500 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:16,500 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40189575-15769602, IP 110.182.68.131, Port 22 2026-05-27 16:44:16,567 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-27 16:44:16,669 - DEBUG - VM ctest-TestBasicPolicy-40189575-15769602 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-27 16:44:21,670 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:21,671 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40189575-15769602, IP 110.182.68.131, Port 22 2026-05-27 16:44:21,829 - DEBUG - VM ctest-TestBasicPolicy-40189575-15769602 is ready for SSH connections 2026-05-27 16:44:21,829 - INFO - Waiting for VM ctest-TestBasicPolicy-40189575-51542385 to be up.. 2026-05-27 16:44:21,927 - DEBUG - VM is in ACTIVE state now 2026-05-27 16:44:21,927 - INFO - VM name : ctest-TestBasicPolicy-40189575-51542385 2026-05-27 16:44:22,027 - DEBUG - VM ctest-TestBasicPolicy-40189575-51542385 ID is d1e9b6d9-90f8-4380-92b3-5d5702968f63 2026-05-27 16:44:22,027 - DEBUG - VM ctest-TestBasicPolicy-40189575-51542385 launched on Node an-jenkins-deploy-platform-ansible-os-5832-1 2026-05-27 16:44:22,134 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/d1e9b6d9-90f8-4380-92b3-5d5702968f63 2026-05-27 16:44:22,145 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/cf618d21-3cc5-478f-b8b2-42a52c445593 2026-05-27 16:44:23,307 - 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=6.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.89 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 = 3.891/5.234/6.577/1.343 ms') 2026-05-27 16:44:23,308 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40189575-51542385 passed 2026-05-27 16:44:23,379 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:23,379 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40189575-51542385, IP 132.12.117.67, Port 22 2026-05-27 16:44:23,555 - DEBUG - VM ctest-TestBasicPolicy-40189575-51542385 is ready for SSH connections 2026-05-27 16:44:23,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:23,555 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.12.117.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2026-05-27 16:44:23,555 - DEBUG - ping -s 56 -c 3 -W 1 132.12.117.67 2026-05-27 16:44:46,146 - DEBUG - PING 132.12.117.67 (132.12.117.67) 56(84) bytes of data. 64 bytes from 132.12.117.67: icmp_req=1 ttl=63 time=7.01 ms 64 bytes from 132.12.117.67: icmp_req=2 ttl=63 time=1.26 ms 64 bytes from 132.12.117.67: icmp_req=3 ttl=63 time=1.41 ms --- 132.12.117.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.266/3.231/7.019/2.679 ms 2026-05-27 16:44:46,146 - INFO - Ping to IP 132.12.117.67 from VM ctest-TestBasicPolicy-40189575-15769602 passed 2026-05-27 16:44:46,391 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7d78c100-57c7-427c-92f0-95bbbb82b5b1", "href": "http://10.0.0.129:8082/network-policy/7d78c100-57c7-427c-92f0-95bbbb82b5b1"}} 2026-05-27 16:44:46,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-27 16:44:46,391 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.12.117.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2026-05-27 16:44:46,391 - DEBUG - ping -s 56 -c 3 -W 1 132.12.117.67 2026-05-27 16:44:50,466 - DEBUG - PING 132.12.117.67 (132.12.117.67) 56(84) bytes of data. --- 132.12.117.67 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2000ms 2026-05-27 16:44:50,466 - WARNING - Ping to IP 132.12.117.67 from VM ctest-TestBasicPolicy-40189575-15769602 failed 2026-05-27 16:44:50,467 - INFO - Deleting VM ctest-TestBasicPolicy-40189575-51542385 2026-05-27 16:44:50,549 - INFO - Deleting VM ctest-TestBasicPolicy-40189575-15769602 2026-05-27 16:44:51,187 - INFO - Deleted policy ctest-policy-allow-all-83796278 2026-05-27 16:44:51,187 - INFO - Deleting VN ctest-vn-12819885 2026-05-27 16:44:51,257 - DEBUG - VN bc37fb5e-3f48-4378-bcca-db5d1e33351d still in use: Unable to complete operation on network bc37fb5e-3f48-4378-bcca-db5d1e33351d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ffbc378d-8a83-4b4c-96b9-d81a33e928c4'] 2026-05-27 16:44:51,257 - WARNING - Deleting VN ctest-vn-12819885 failed..Will retry 2026-05-27 16:44:53,504 - DEBUG - Response for deleting network () 2026-05-27 16:44:53,504 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9562a9-6369-4127-9467-6b29345f9ad5 2026-05-27 16:44:53,511 - DEBUG - Response Code: 404 2026-05-27 16:44:53,511 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:44:53,521 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:44:53,541 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b64c5ef-f64c-4fb8-9721-54094db3a7f2 2026-05-27 16:44:53,658 - INFO - Validated that VN ctest-vn-12819885 is not found in API Server 2026-05-27 16:44:53,670 - DEBUG - VN ctest-vn-12819885 is not present in Agent 10.0.0.241 2026-05-27 16:44:53,682 - DEBUG - VN ctest-vn-12819885 is not present in Agent 10.0.0.242 2026-05-27 16:44:53,683 - INFO - Validated that VN ctest-vn-12819885 is not in any agent 2026-05-27 16:44:53,734 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12819885 info 2026-05-27 16:44:53,735 - INFO - Deleting VN ctest-vn-48092239 2026-05-27 16:44:53,979 - DEBUG - Response for deleting network () 2026-05-27 16:44:53,979 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ad1a4d0-0e42-4c24-8dde-526434dc064b 2026-05-27 16:44:53,986 - DEBUG - Response Code: 404 2026-05-27 16:44:53,987 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-27 16:44:53,995 - DEBUG - Requesting: http://10.0.0.50:8082/domain/dd011215-fca5-4e74-b1da-d431e9fe9325 2026-05-27 16:44:54,011 - DEBUG - Requesting: http://10.0.0.50:8082/project/7b64c5ef-f64c-4fb8-9721-54094db3a7f2 2026-05-27 16:44:54,119 - INFO - Validated that VN ctest-vn-48092239 is not found in API Server 2026-05-27 16:44:54,131 - DEBUG - VN ctest-vn-48092239 is not present in Agent 10.0.0.241 2026-05-27 16:44:54,144 - DEBUG - VN ctest-vn-48092239 is not present in Agent 10.0.0.242 2026-05-27 16:44:54,144 - INFO - Validated that VN ctest-vn-48092239 is not in any agent 2026-05-27 16:44:54,195 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48092239 info 2026-05-27 16:44:55,485 - DEBUG - No XMPP flaps were noticed during the test
2026-05-27 16:44:55,485 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:55]
2026-05-27 16:44:55,486 - INFO - -------------------------------------------------------------------------------- 2026-05-27 16:44:56,341 - INFO - Deleted project: ctest-TestBasicPolicy-40189575, ID : 7b64c5ef-f64c-4fb8-9721-54094db3a7f2