2026-01-08 02:31:32,032 - INFO - Domain Default found not creating 2026-01-08 02:31:32,196 - INFO - Project ctest-TestBasicPolicy-16921689 not found, creating it 2026-01-08 02:31:32,780 - INFO - Created Project:ctest-TestBasicPolicy-16921689, ID : 216becdf-cffc-464a-a4eb-46340d74d11f 2026-01-08 02:31:34,389 - INFO - ================================================================================ 2026-01-08 02:31:34,389 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-01-08 02:31:34,389 - 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-01-08 02:31:35,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.56': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2026-01-08 02:31:35,658 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:31:35,658 - INFO - 2026-01-08 02:31:36,314 - DEBUG - Response for create_network : {'network': {'id': 'a2d728b7-dec2-4413-93db-fa0a94f76b25', 'name': 'ctest-vn-34303893', 'tenant_id': '216becdfcffc464aa4eb46340d74d11f', 'project_id': '216becdfcffc464aa4eb46340d74d11f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-vn-34303893'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:31:36,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '48f555e5-a67e-48aa-b6c1-25648b91bd24', 'name': '', 'tenant_id': '216becdfcffc464aa4eb46340d74d11f', 'network_id': 'a2d728b7-dec2-4413-93db-fa0a94f76b25', 'ip_version': 4, 'cidr': '69.19.50.128/26', 'allocation_pools': [{'start': '69.19.50.130', 'end': '69.19.50.190'}], 'gateway_ip': '69.19.50.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.19.50.130', 'tags': [], 'project_id': '216becdfcffc464aa4eb46340d74d11f'}} 2026-01-08 02:31:36,619 - INFO - Created VN ctest-vn-34303893 2026-01-08 02:31:36,633 - DEBUG - VN ctest-vn-34303893 UUID is a2d728b7-dec2-4413-93db-fa0a94f76b25 2026-01-08 02:31:36,987 - DEBUG - Response for create_network : {'network': {'id': 'e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a', 'name': 'ctest-vn-28602624', 'tenant_id': '216becdfcffc464aa4eb46340d74d11f', 'project_id': '216becdfcffc464aa4eb46340d74d11f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-vn-28602624'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:31:37,244 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab7f1292-5594-43a9-972a-b29647ee6682', 'name': '', 'tenant_id': '216becdfcffc464aa4eb46340d74d11f', 'network_id': 'e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a', 'ip_version': 4, 'cidr': '198.248.145.0/26', 'allocation_pools': [{'start': '198.248.145.2', 'end': '198.248.145.62'}], 'gateway_ip': '198.248.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.248.145.2', 'tags': [], 'project_id': '216becdfcffc464aa4eb46340d74d11f'}} 2026-01-08 02:31:37,273 - INFO - Created VN ctest-vn-28602624 2026-01-08 02:31:37,288 - DEBUG - VN ctest-vn-28602624 UUID is e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a 2026-01-08 02:31:37,363 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893, 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-16921689:ctest-vn-28602624, 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-01-08 02:31:37,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2d728b7-dec2-4413-93db-fa0a94f76b25', 'name': 'ctest-vn-34303893', 'tenant_id': '216becdfcffc464aa4eb46340d74d11f', 'project_id': '216becdfcffc464aa4eb46340d74d11f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48f555e5-a67e-48aa-b6c1-25648b91bd24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-vn-34303893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-policy-allow-all-03288327']], 'subnet_ipam': [{'subnet_cidr': '69.19.50.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:31:37,924 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a', 'name': 'ctest-vn-28602624', 'tenant_id': '216becdfcffc464aa4eb46340d74d11f', 'project_id': '216becdfcffc464aa4eb46340d74d11f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab7f1292-5594-43a9-972a-b29647ee6682'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-vn-28602624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-policy-allow-all-03288327']], 'subnet_ipam': [{'subnet_cidr': '198.248.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:31:38,023 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:31:38,384 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:31:38,462 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:31:38,477 - DEBUG - Requesting: http://10.0.0.242:8082/project/216becdf-cffc-464a-a4eb-46340d74d11f 2026-01-08 02:31:38,580 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2d728b7-dec2-4413-93db-fa0a94f76b25 2026-01-08 02:31:38,594 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2d728b7-dec2-4413-93db-fa0a94f76b25 2026-01-08 02:31:38,603 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8dc5c46-7d44-4123-b54a-d6b036c46cee 2026-01-08 02:31:38,611 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8dc5c46-7d44-4123-b54a-d6b036c46cee 2026-01-08 02:31:38,618 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/caf11445-85a7-4f6b-8ddd-1b500a0366d2 2026-01-08 02:31:38,628 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:31:38,628 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2d728b7-dec2-4413-93db-fa0a94f76b25 2026-01-08 02:31:38,643 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8dc5c46-7d44-4123-b54a-d6b036c46cee 2026-01-08 02:31:38,662 - INFO - Verified VN network id 13 for VN a2d728b7-dec2-4413-93db-fa0a94f76b25 2026-01-08 02:31:38,662 - INFO - Verifications in API Server for VN ctest-vn-34303893 passed 2026-01-08 02:31:38,662 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2d728b7-dec2-4413-93db-fa0a94f76b25 2026-01-08 02:31:38,672 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8dc5c46-7d44-4123-b54a-d6b036c46cee 2026-01-08 02:31:38,682 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8dc5c46-7d44-4123-b54a-d6b036c46cee 2026-01-08 02:31:38,692 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/caf11445-85a7-4f6b-8ddd-1b500a0366d2 2026-01-08 02:31:38,705 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16921689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11733892124318516243', 'uuid-lslong': '10654384266830900005'}, 'enable': 'true', 'created': '2026-01-08T02:31:36', 'last-modified': '2026-01-08T02:31:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052416'} 2026-01-08 02:31:38,712 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:31:38,716 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16921689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11733892124318516243', 'uuid-lslong': '10654384266830900005'}, 'enable': 'true', 'created': '2026-01-08T02:31:36', 'last-modified': '2026-01-08T02:31:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066536'} 2026-01-08 02:31:38,722 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:31:38,727 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16921689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11733892124318516243', 'uuid-lslong': '10654384266830900005'}, 'enable': 'true', 'created': '2026-01-08T02:31:36', 'last-modified': '2026-01-08T02:31:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.075714'} 2026-01-08 02:31:38,735 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:31:38,735 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34303893 passed 2026-01-08 02:31:38,738 - DEBUG - ====Verifying policy data for ctest-vn-34303893 in API_Server ====== 2026-01-08 02:31:38,738 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:31:38,745 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:31:38,758 - DEBUG - Requesting: http://10.0.0.242:8082/project/216becdf-cffc-464a-a4eb-46340d74d11f 2026-01-08 02:31:38,860 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2d728b7-dec2-4413-93db-fa0a94f76b25 2026-01-08 02:31:38,869 - DEBUG - ==>Verifying data for policy with id: 00c5011e-e027-4b47-b59b-4f953fdbf672, fqn: ['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-policy-allow-all-03288327'] 2026-01-08 02:31:38,869 - INFO - VN ctest-vn-34303893 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 02:31:38,870 - DEBUG - Verifying the vn in opserver 2026-01-08 02:31:38,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 virtual network link through opserver 10.0.0.242 2026-01-08 02:31:38,870 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-08 02:31:39,171 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-08 02:31:39,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893?flat'} 2026-01-08 02:31:39,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 virtual network link through opserver 10.0.0.50 2026-01-08 02:31:39,230 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-08 02:31:39,540 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-08 02:31:39,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893?flat'} 2026-01-08 02:31:39,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 virtual network link through opserver 10.0.0.27 2026-01-08 02:31:39,600 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-08 02:31:39,906 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-08 02:31:39,967 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893?flat'} 2026-01-08 02:31:39,967 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is found in opserver 2026-01-08 02:31:39,987 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 02:31:39,996 - DEBUG - VRF ids for VN ctest-vn-34303893: {} 2026-01-08 02:31:39,996 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:31:40,002 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:31:40,013 - DEBUG - Requesting: http://10.0.0.242:8082/project/216becdf-cffc-464a-a4eb-46340d74d11f 2026-01-08 02:31:40,113 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a 2026-01-08 02:31:40,124 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a 2026-01-08 02:31:40,133 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d1f37352-b102-46f3-a960-6b0ee77f9532 2026-01-08 02:31:40,140 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d1f37352-b102-46f3-a960-6b0ee77f9532 2026-01-08 02:31:40,147 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2b1b42ae-d564-4fd6-b94c-ab969fba7c9e 2026-01-08 02:31:40,154 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-08 02:31:40,154 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a 2026-01-08 02:31:40,162 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d1f37352-b102-46f3-a960-6b0ee77f9532 2026-01-08 02:31:40,179 - INFO - Verified VN network id 14 for VN e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a 2026-01-08 02:31:40,180 - INFO - Verifications in API Server for VN ctest-vn-28602624 passed 2026-01-08 02:31:40,180 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a 2026-01-08 02:31:40,190 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d1f37352-b102-46f3-a960-6b0ee77f9532 2026-01-08 02:31:40,199 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d1f37352-b102-46f3-a960-6b0ee77f9532 2026-01-08 02:31:40,207 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2b1b42ae-d564-4fd6-b94c-ab969fba7c9e 2026-01-08 02:31:40,223 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16921689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16631760196211527175', 'uuid-lslong': '9468387479070272026'}, 'enable': 'true', 'created': '2026-01-08T02:31:36', 'last-modified': '2026-01-08T02:31:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.332656'} 2026-01-08 02:31:40,233 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-08 02:31:40,240 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16921689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16631760196211527175', 'uuid-lslong': '9468387479070272026'}, 'enable': 'true', 'created': '2026-01-08T02:31:36', 'last-modified': '2026-01-08T02:31:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.359196'} 2026-01-08 02:31:40,246 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-08 02:31:40,251 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16921689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16631760196211527175', 'uuid-lslong': '9468387479070272026'}, 'enable': 'true', 'created': '2026-01-08T02:31:36', 'last-modified': '2026-01-08T02:31:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.365774'} 2026-01-08 02:31:40,257 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-08 02:31:40,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28602624 passed 2026-01-08 02:31:40,257 - DEBUG - ====Verifying policy data for ctest-vn-28602624 in API_Server ====== 2026-01-08 02:31:40,257 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:31:40,263 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:31:40,275 - DEBUG - Requesting: http://10.0.0.242:8082/project/216becdf-cffc-464a-a4eb-46340d74d11f 2026-01-08 02:31:40,373 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a 2026-01-08 02:31:40,383 - DEBUG - ==>Verifying data for policy with id: 00c5011e-e027-4b47-b59b-4f953fdbf672, fqn: ['default-domain', 'ctest-TestBasicPolicy-16921689', 'ctest-policy-allow-all-03288327'] 2026-01-08 02:31:40,383 - INFO - VN ctest-vn-28602624 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 02:31:40,383 - DEBUG - Verifying the vn in opserver 2026-01-08 02:31:40,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624 virtual network link through opserver 10.0.0.242 2026-01-08 02:31:40,383 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-08 02:31:40,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624?flat'} 2026-01-08 02:31:40,444 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624 virtual network link through opserver 10.0.0.50 2026-01-08 02:31:40,444 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-08 02:31:40,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624?flat'} 2026-01-08 02:31:40,510 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624 virtual network link through opserver 10.0.0.27 2026-01-08 02:31:40,510 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-08 02:31:40,595 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624?flat'} 2026-01-08 02:31:40,595 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-28602624 is found in opserver 2026-01-08 02:31:40,614 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 02:31:40,624 - DEBUG - VRF ids for VN ctest-vn-28602624: {} 2026-01-08 02:31:40,688 - DEBUG - Services list from nova: [, , , ] 2026-01-08 02:31:41,765 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4976-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4976-2) 2026-01-08 02:31:43,173 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4976-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4976-1) 2026-01-08 02:31:43,173 - INFO - Waiting for VM ctest-TestBasicPolicy-16921689-03339604 to be up.. 2026-01-08 02:31:43,281 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-01-08 02:31:48,382 - DEBUG - VM is in ACTIVE state now 2026-01-08 02:31:48,382 - INFO - VM name : ctest-TestBasicPolicy-16921689-03339604 2026-01-08 02:31:48,476 - DEBUG - VM ctest-TestBasicPolicy-16921689-03339604 ID is 23bbddfc-fb16-482e-aad0-f320c7b2eb51 2026-01-08 02:31:48,518 - DEBUG - VM ctest-TestBasicPolicy-16921689-03339604 launched on Node an-jenkins-deploy-platform-ansible-os-4976-2 2026-01-08 02:31:48,625 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/23bbddfc-fb16-482e-aad0-f320c7b2eb51 2026-01-08 02:31:48,931 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/23bbddfc-fb16-482e-aad0-f320c7b2eb51 2026-01-08 02:31:48,966 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/ed6d2d16-ca98-41ff-8085-f52e476f0f3a 2026-01-08 02:31:52,139 - 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 1004ms') 2026-01-08 02:31:52,139 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:31:52,152 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:31:56,229 - 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-01-08 02:31:56,229 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:31:56,242 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:32:00,328 - 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-01-08 02:32:00,328 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:32:00,342 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:32:04,427 - 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 1019ms') 2026-01-08 02:32:04,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:32:04,441 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:32:08,524 - 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 1019ms') 2026-01-08 02:32:08,524 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:32:08,538 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:32:12,620 - 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 1017ms') 2026-01-08 02:32:12,620 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:32:12,636 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:32:16,707 - 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 1015ms') 2026-01-08 02:32:16,707 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:32:16,721 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:32:20,807 - 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-01-08 02:32:20,807 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 failed! 2026-01-08 02:32:20,822 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16921689:ctest-vn-34303893 is 69.19.50.129 and allocation pool is NOT set 2026-01-08 02:32:22,886 - 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=5.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.79 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.789/4.169/5.549/1.380 ms') 2026-01-08 02:32:22,887 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-03339604 passed 2026-01-08 02:32:22,955 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:22,955 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16921689-03339604, IP 69.19.50.131, Port 22 2026-01-08 02:32:23,023 - 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-01-08 02:32:23,147 - DEBUG - VM ctest-TestBasicPolicy-16921689-03339604 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-08 02:32:28,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:28,148 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16921689-03339604, IP 69.19.50.131, Port 22 2026-01-08 02:32:28,215 - 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-01-08 02:32:28,289 - DEBUG - VM ctest-TestBasicPolicy-16921689-03339604 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-08 02:32:33,290 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:33,290 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16921689-03339604, IP 69.19.50.131, Port 22 2026-01-08 02:32:33,355 - 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-01-08 02:32:33,466 - DEBUG - VM ctest-TestBasicPolicy-16921689-03339604 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-08 02:32:38,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:38,467 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16921689-03339604, IP 69.19.50.131, Port 22 2026-01-08 02:32:38,536 - 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-01-08 02:32:38,614 - DEBUG - VM ctest-TestBasicPolicy-16921689-03339604 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-08 02:32:43,615 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:43,615 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16921689-03339604, IP 69.19.50.131, Port 22 2026-01-08 02:32:43,783 - DEBUG - VM ctest-TestBasicPolicy-16921689-03339604 is ready for SSH connections 2026-01-08 02:32:43,783 - INFO - Waiting for VM ctest-TestBasicPolicy-16921689-66996273 to be up.. 2026-01-08 02:32:43,873 - DEBUG - VM is in ACTIVE state now 2026-01-08 02:32:43,873 - INFO - VM name : ctest-TestBasicPolicy-16921689-66996273 2026-01-08 02:32:43,964 - DEBUG - VM ctest-TestBasicPolicy-16921689-66996273 ID is 669ee09b-be2d-4f45-a959-e751912649c0 2026-01-08 02:32:43,964 - DEBUG - VM ctest-TestBasicPolicy-16921689-66996273 launched on Node an-jenkins-deploy-platform-ansible-os-4976-1 2026-01-08 02:32:44,051 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/669ee09b-be2d-4f45-a959-e751912649c0 2026-01-08 02:32:44,063 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/24ba7719-cdbc-4bcf-a546-865eab3977b0 2026-01-08 02:32:45,234 - 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.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.26 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 = 1.261/2.080/2.900/0.819 ms') 2026-01-08 02:32:45,234 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16921689-66996273 passed 2026-01-08 02:32:45,309 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:45,309 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16921689-66996273, IP 198.248.145.3, Port 22 2026-01-08 02:32:45,379 - 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-01-08 02:32:45,469 - DEBUG - VM ctest-TestBasicPolicy-16921689-66996273 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-08 02:32:50,469 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:50,469 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16921689-66996273, IP 198.248.145.3, Port 22 2026-01-08 02:32:50,648 - DEBUG - VM ctest-TestBasicPolicy-16921689-66996273 is ready for SSH connections 2026-01-08 02:32:50,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:32:50,649 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.248.145.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2026-01-08 02:32:50,649 - DEBUG - ping -s 56 -c 3 -W 1 198.248.145.3 2026-01-08 02:33:42,094 - DEBUG - PING 198.248.145.3 (198.248.145.3) 56(84) bytes of data. 64 bytes from 198.248.145.3: icmp_req=1 ttl=63 time=11.4 ms 64 bytes from 198.248.145.3: icmp_req=2 ttl=63 time=1.68 ms 64 bytes from 198.248.145.3: icmp_req=3 ttl=63 time=1.46 ms --- 198.248.145.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.464/4.862/11.438/4.651 ms 2026-01-08 02:33:42,094 - INFO - Ping to IP 198.248.145.3 from VM ctest-TestBasicPolicy-16921689-03339604 passed 2026-01-08 02:33:42,331 - DEBUG - Policy Update Response {"network-policy": {"uuid": "00c5011e-e027-4b47-b59b-4f953fdbf672", "href": "http://10.0.0.27:8082/network-policy/00c5011e-e027-4b47-b59b-4f953fdbf672"}} 2026-01-08 02:33:42,331 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-08 02:33:42,331 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.248.145.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2026-01-08 02:33:42,331 - DEBUG - ping -s 56 -c 3 -W 1 198.248.145.3 2026-01-08 02:33:45,817 - DEBUG - PING 198.248.145.3 (198.248.145.3) 56(84) bytes of data. 64 bytes from 198.248.145.3: icmp_req=1 ttl=63 time=2.77 ms --- 198.248.145.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 2.777/2.777/2.777/0.000 ms 2026-01-08 02:33:45,817 - WARNING - Ping to IP 198.248.145.3 from VM ctest-TestBasicPolicy-16921689-03339604 failed 2026-01-08 02:33:45,817 - INFO - Deleting VM ctest-TestBasicPolicy-16921689-66996273 2026-01-08 02:33:45,897 - INFO - Deleting VM ctest-TestBasicPolicy-16921689-03339604 2026-01-08 02:33:46,342 - INFO - Deleted policy ctest-policy-allow-all-03288327 2026-01-08 02:33:46,342 - INFO - Deleting VN ctest-vn-28602624 2026-01-08 02:33:46,403 - DEBUG - VN e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a still in use: Unable to complete operation on network e6cfe1c7-94ab-4e07-8366-783f1dbd6a1a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9c63457d-d0e5-4ee0-8085-66d21105fed7'] 2026-01-08 02:33:46,403 - WARNING - Deleting VN ctest-vn-28602624 failed..Will retry 2026-01-08 02:33:48,633 - DEBUG - Response for deleting network () 2026-01-08 02:33:48,633 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d1f37352-b102-46f3-a960-6b0ee77f9532 2026-01-08 02:33:48,639 - DEBUG - Response Code: 404 2026-01-08 02:33:48,639 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:33:48,645 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:33:48,684 - DEBUG - Requesting: http://10.0.0.242:8082/project/216becdf-cffc-464a-a4eb-46340d74d11f 2026-01-08 02:33:48,776 - INFO - Validated that VN ctest-vn-28602624 is not found in API Server 2026-01-08 02:33:48,789 - DEBUG - VN ctest-vn-28602624 is not present in Agent 10.0.0.57 2026-01-08 02:33:48,799 - DEBUG - VN ctest-vn-28602624 is not present in Agent 10.0.0.56 2026-01-08 02:33:48,799 - INFO - Validated that VN ctest-vn-28602624 is not in any agent 2026-01-08 02:33:48,828 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28602624 info 2026-01-08 02:33:48,828 - INFO - Deleting VN ctest-vn-34303893 2026-01-08 02:33:49,110 - DEBUG - Response for deleting network () 2026-01-08 02:33:49,110 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8dc5c46-7d44-4123-b54a-d6b036c46cee 2026-01-08 02:33:49,115 - DEBUG - Response Code: 404 2026-01-08 02:33:49,115 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:33:49,129 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:33:49,188 - DEBUG - Requesting: http://10.0.0.242:8082/project/216becdf-cffc-464a-a4eb-46340d74d11f 2026-01-08 02:33:49,287 - INFO - Validated that VN ctest-vn-34303893 is not found in API Server 2026-01-08 02:33:49,302 - DEBUG - VN ctest-vn-34303893 is not present in Agent 10.0.0.57 2026-01-08 02:33:49,312 - DEBUG - VN ctest-vn-34303893 is not present in Agent 10.0.0.56 2026-01-08 02:33:49,312 - INFO - Validated that VN ctest-vn-34303893 is not in any agent 2026-01-08 02:33:49,342 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34303893 info 2026-01-08 02:33:50,619 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 02:33:50,619 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:16] 2026-01-08 02:33:50,619 - INFO - -------------------------------------------------------------------------------- 2026-01-08 02:33:51,346 - INFO - Deleted project: ctest-TestBasicPolicy-16921689, ID : 216becdf-cffc-464a-a4eb-46340d74d11f