2025-10-29 18:27:53,125 - INFO - Domain Default found not creating 2025-10-29 18:27:53,272 - INFO - Project ctest-TestBasicPolicy-59222840 not found, creating it 2025-10-29 18:27:53,804 - INFO - Created Project:ctest-TestBasicPolicy-59222840, ID : 2edfdc6e-7a12-48ed-b0bf-443bd097f2eb 2025-10-29 18:27:55,872 - INFO - ================================================================================ 2025-10-29 18:27:55,872 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-29 18:27:55,872 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-10-29 18:27:57,311 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.201': '0', '10.20.0.200': '0'}, '10.0.0.27': {'10.20.0.201': '0', '10.20.0.200': '0'}} with 2025-10-29 18:27:57,311 - INFO - Initial checks done. Running the testcase now 2025-10-29 18:27:57,311 - INFO - 2025-10-29 18:27:58,182 - DEBUG - Response for create_network : {'network': {'id': 'bdc28a7a-c1c6-43e7-8b9f-53cc20067c42', 'name': 'ctest-vn-47909738', 'tenant_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'project_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-vn-47909738'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 18:27:58,454 - DEBUG - Response for create_subnet : {'subnet': {'id': '306d0fae-9f82-42ca-ac87-50018bd03ae9', 'name': '', 'tenant_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'network_id': 'bdc28a7a-c1c6-43e7-8b9f-53cc20067c42', 'ip_version': 4, 'cidr': '160.158.174.128/26', 'allocation_pools': [{'start': '160.158.174.130', 'end': '160.158.174.190'}], 'gateway_ip': '160.158.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.158.174.130', 'tags': [], 'project_id': '2edfdc6e7a1248edb0bf443bd097f2eb'}} 2025-10-29 18:27:58,476 - INFO - Created VN ctest-vn-47909738 2025-10-29 18:27:58,487 - DEBUG - VN ctest-vn-47909738 UUID is bdc28a7a-c1c6-43e7-8b9f-53cc20067c42 2025-10-29 18:27:58,901 - DEBUG - Response for create_network : {'network': {'id': '6737076b-1391-4e9e-819c-cb96dd266a54', 'name': 'ctest-vn-51227188', 'tenant_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'project_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-vn-51227188'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 18:27:59,185 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcbc1c59-4cda-43d3-9b02-4dd10e906a57', 'name': '', 'tenant_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'network_id': '6737076b-1391-4e9e-819c-cb96dd266a54', 'ip_version': 4, 'cidr': '37.82.144.192/26', 'allocation_pools': [{'start': '37.82.144.194', 'end': '37.82.144.254'}], 'gateway_ip': '37.82.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.82.144.194', 'tags': [], 'project_id': '2edfdc6e7a1248edb0bf443bd097f2eb'}} 2025-10-29 18:27:59,206 - INFO - Created VN ctest-vn-51227188 2025-10-29 18:27:59,222 - DEBUG - VN ctest-vn-51227188 UUID is 6737076b-1391-4e9e-819c-cb96dd266a54 2025-10-29 18:27:59,314 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738, 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-59222840:ctest-vn-51227188, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-10-29 18:27:59,666 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdc28a7a-c1c6-43e7-8b9f-53cc20067c42', 'name': 'ctest-vn-47909738', 'tenant_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'project_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['306d0fae-9f82-42ca-ac87-50018bd03ae9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-vn-47909738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-policy-allow-all-61108959']], 'subnet_ipam': [{'subnet_cidr': '160.158.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 18:27:59,873 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6737076b-1391-4e9e-819c-cb96dd266a54', 'name': 'ctest-vn-51227188', 'tenant_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'project_id': '2edfdc6e7a1248edb0bf443bd097f2eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcbc1c59-4cda-43d3-9b02-4dd10e906a57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-vn-51227188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-policy-allow-all-61108959']], 'subnet_ipam': [{'subnet_cidr': '37.82.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 18:27:59,979 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:28:00,309 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:28:00,354 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:28:00,376 - DEBUG - Requesting: http://10.0.0.249:8082/project/2edfdc6e-7a12-48ed-b0bf-443bd097f2eb 2025-10-29 18:28:00,480 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc28a7a-c1c6-43e7-8b9f-53cc20067c42 2025-10-29 18:28:00,496 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc28a7a-c1c6-43e7-8b9f-53cc20067c42 2025-10-29 18:28:00,511 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f5079302-7f71-4f33-8853-fb27eec4498d 2025-10-29 18:28:00,528 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f5079302-7f71-4f33-8853-fb27eec4498d 2025-10-29 18:28:00,546 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0ff7ddab-167e-41b9-b705-458c2ab174fc 2025-10-29 18:28:00,553 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:28:00,553 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc28a7a-c1c6-43e7-8b9f-53cc20067c42 2025-10-29 18:28:00,564 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f5079302-7f71-4f33-8853-fb27eec4498d 2025-10-29 18:28:00,584 - INFO - Verified VN network id 11 for VN bdc28a7a-c1c6-43e7-8b9f-53cc20067c42 2025-10-29 18:28:00,584 - INFO - Verifications in API Server for VN ctest-vn-47909738 passed 2025-10-29 18:28:00,584 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc28a7a-c1c6-43e7-8b9f-53cc20067c42 2025-10-29 18:28:00,596 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f5079302-7f71-4f33-8853-fb27eec4498d 2025-10-29 18:28:00,606 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f5079302-7f71-4f33-8853-fb27eec4498d 2025-10-29 18:28:00,615 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0ff7ddab-167e-41b9-b705-458c2ab174fc 2025-10-29 18:28:00,635 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59222840', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13673643678491886567', 'uuid-lslong': '10060852228744707138'}, 'enable': 'true', 'created': '2025-10-29T18:27:58', 'last-modified': '2025-10-29T18:27:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015145'} 2025-10-29 18:28:00,643 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:28:00,651 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59222840', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13673643678491886567', 'uuid-lslong': '10060852228744707138'}, 'enable': 'true', 'created': '2025-10-29T18:27:58', 'last-modified': '2025-10-29T18:27:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031228'} 2025-10-29 18:28:00,660 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:28:00,668 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59222840', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13673643678491886567', 'uuid-lslong': '10060852228744707138'}, 'enable': 'true', 'created': '2025-10-29T18:27:58', 'last-modified': '2025-10-29T18:27:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048281'} 2025-10-29 18:28:00,677 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 18:28:00,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47909738 passed 2025-10-29 18:28:00,678 - DEBUG - ====Verifying policy data for ctest-vn-47909738 in API_Server ====== 2025-10-29 18:28:00,678 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:28:00,689 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:28:00,705 - DEBUG - Requesting: http://10.0.0.249:8082/project/2edfdc6e-7a12-48ed-b0bf-443bd097f2eb 2025-10-29 18:28:00,837 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc28a7a-c1c6-43e7-8b9f-53cc20067c42 2025-10-29 18:28:00,854 - DEBUG - ==>Verifying data for policy with id: 67157c10-de51-4d17-9df8-e9d7d7052e84, fqn: ['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-policy-allow-all-61108959'] 2025-10-29 18:28:00,854 - INFO - VN ctest-vn-47909738 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 18:28:00,854 - DEBUG - Verifying the vn in opserver 2025-10-29 18:28:00,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 virtual network link through opserver 10.0.0.249 2025-10-29 18:28:00,854 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-29 18:28:01,164 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-29 18:28:01,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738?flat'} 2025-10-29 18:28:01,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 virtual network link through opserver 10.0.0.19 2025-10-29 18:28:01,288 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-29 18:28:01,644 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-29 18:28:01,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738?flat'} 2025-10-29 18:28:01,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 virtual network link through opserver 10.0.0.41 2025-10-29 18:28:01,749 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-29 18:28:02,102 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-29 18:28:02,210 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738?flat'} 2025-10-29 18:28:02,210 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is found in opserver 2025-10-29 18:28:02,264 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 18:28:02,287 - DEBUG - VRF ids for VN ctest-vn-47909738: {} 2025-10-29 18:28:02,287 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:28:02,302 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:28:02,327 - DEBUG - Requesting: http://10.0.0.249:8082/project/2edfdc6e-7a12-48ed-b0bf-443bd097f2eb 2025-10-29 18:28:02,471 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6737076b-1391-4e9e-819c-cb96dd266a54 2025-10-29 18:28:02,492 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6737076b-1391-4e9e-819c-cb96dd266a54 2025-10-29 18:28:02,506 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2321e4d-e317-4bc7-8266-23890cebfd6b 2025-10-29 18:28:02,520 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2321e4d-e317-4bc7-8266-23890cebfd6b 2025-10-29 18:28:02,537 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8e086baf-bb8d-4d4a-a674-84509706eadf 2025-10-29 18:28:02,553 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 18:28:02,553 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6737076b-1391-4e9e-819c-cb96dd266a54 2025-10-29 18:28:02,569 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2321e4d-e317-4bc7-8266-23890cebfd6b 2025-10-29 18:28:02,592 - INFO - Verified VN network id 12 for VN 6737076b-1391-4e9e-819c-cb96dd266a54 2025-10-29 18:28:02,592 - INFO - Verifications in API Server for VN ctest-vn-51227188 passed 2025-10-29 18:28:02,592 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6737076b-1391-4e9e-819c-cb96dd266a54 2025-10-29 18:28:02,606 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2321e4d-e317-4bc7-8266-23890cebfd6b 2025-10-29 18:28:02,618 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2321e4d-e317-4bc7-8266-23890cebfd6b 2025-10-29 18:28:02,627 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8e086baf-bb8d-4d4a-a674-84509706eadf 2025-10-29 18:28:02,646 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59222840', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7437421466096848542', 'uuid-lslong': '9339563576075381332'}, 'enable': 'true', 'created': '2025-10-29T18:27:58', 'last-modified': '2025-10-29T18:27:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.803906'} 2025-10-29 18:28:02,654 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 18:28:02,662 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59222840', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7437421466096848542', 'uuid-lslong': '9339563576075381332'}, 'enable': 'true', 'created': '2025-10-29T18:27:58', 'last-modified': '2025-10-29T18:27:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.825581'} 2025-10-29 18:28:02,669 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 18:28:02,676 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59222840', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7437421466096848542', 'uuid-lslong': '9339563576075381332'}, 'enable': 'true', 'created': '2025-10-29T18:27:58', 'last-modified': '2025-10-29T18:27:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.840020'} 2025-10-29 18:28:02,682 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-29 18:28:02,682 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51227188 passed 2025-10-29 18:28:02,682 - DEBUG - ====Verifying policy data for ctest-vn-51227188 in API_Server ====== 2025-10-29 18:28:02,682 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:28:02,689 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:28:02,701 - DEBUG - Requesting: http://10.0.0.249:8082/project/2edfdc6e-7a12-48ed-b0bf-443bd097f2eb 2025-10-29 18:28:02,806 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6737076b-1391-4e9e-819c-cb96dd266a54 2025-10-29 18:28:02,816 - DEBUG - ==>Verifying data for policy with id: 67157c10-de51-4d17-9df8-e9d7d7052e84, fqn: ['default-domain', 'ctest-TestBasicPolicy-59222840', 'ctest-policy-allow-all-61108959'] 2025-10-29 18:28:02,816 - INFO - VN ctest-vn-51227188 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 18:28:02,816 - DEBUG - Verifying the vn in opserver 2025-10-29 18:28:02,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188 virtual network link through opserver 10.0.0.249 2025-10-29 18:28:02,817 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-29 18:28:02,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188?flat'} 2025-10-29 18:28:02,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188 virtual network link through opserver 10.0.0.19 2025-10-29 18:28:02,880 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-29 18:28:02,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188?flat'} 2025-10-29 18:28:02,956 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188 virtual network link through opserver 10.0.0.41 2025-10-29 18:28:02,956 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-29 18:28:03,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188?flat'} 2025-10-29 18:28:03,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-51227188 is found in opserver 2025-10-29 18:28:03,060 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 18:28:03,077 - DEBUG - VRF ids for VN ctest-vn-51227188: {} 2025-10-29 18:28:03,142 - DEBUG - Services list from nova: [, , , ] 2025-10-29 18:28:04,627 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4526-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4526-2) 2025-10-29 18:28:05,905 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4526-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4526-1) 2025-10-29 18:28:05,905 - INFO - Waiting for VM ctest-TestBasicPolicy-59222840-09375784 to be up.. 2025-10-29 18:28:06,001 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-29 18:28:11,193 - DEBUG - VM is in ACTIVE state now 2025-10-29 18:28:11,193 - INFO - VM name : ctest-TestBasicPolicy-59222840-09375784 2025-10-29 18:28:11,371 - DEBUG - VM ctest-TestBasicPolicy-59222840-09375784 ID is 8232ceaa-cb26-498f-a796-4c86a32b9332 2025-10-29 18:28:11,424 - DEBUG - VM ctest-TestBasicPolicy-59222840-09375784 launched on Node an-jenkins-deploy-platform-ansible-os-4526-2 2025-10-29 18:28:11,562 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/8232ceaa-cb26-498f-a796-4c86a32b9332 2025-10-29 18:28:11,900 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/8232ceaa-cb26-498f-a796-4c86a32b9332 2025-10-29 18:28:11,960 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/bbd5cab1-dd69-4768-9a46-c1216b26112a 2025-10-29 18:28:15,193 - 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 1027ms') 2025-10-29 18:28:15,193 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 failed! 2025-10-29 18:28:15,214 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is 160.158.174.129 and allocation pool is NOT set 2025-10-29 18:28:19,286 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2025-10-29 18:28:19,286 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 failed! 2025-10-29 18:28:19,306 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is 160.158.174.129 and allocation pool is NOT set 2025-10-29 18:28:23,379 - 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') 2025-10-29 18:28:23,379 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 failed! 2025-10-29 18:28:23,400 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is 160.158.174.129 and allocation pool is NOT set 2025-10-29 18:28:27,475 - 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 1014ms') 2025-10-29 18:28:27,475 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 failed! 2025-10-29 18:28:27,501 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is 160.158.174.129 and allocation pool is NOT set 2025-10-29 18:28:31,578 - 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 1011ms') 2025-10-29 18:28:31,578 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 failed! 2025-10-29 18:28:31,600 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is 160.158.174.129 and allocation pool is NOT set 2025-10-29 18:28:35,674 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2025-10-29 18:28:35,674 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 failed! 2025-10-29 18:28:35,700 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is 160.158.174.129 and allocation pool is NOT set 2025-10-29 18:28:39,802 - 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 1031ms') 2025-10-29 18:28:39,802 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 failed! 2025-10-29 18:28:39,826 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59222840:ctest-vn-47909738 is 160.158.174.129 and allocation pool is NOT set 2025-10-29 18:28:41,885 - 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=14.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.882 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 = 0.882/7.418/13.955/6.536 ms') 2025-10-29 18:28:41,885 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-09375784 passed 2025-10-29 18:28:41,958 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:28:41,958 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59222840-09375784, IP 160.158.174.131, Port 22 2025-10-29 18:28:42,026 - 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': ''} 2025-10-29 18:28:42,182 - DEBUG - VM ctest-TestBasicPolicy-59222840-09375784 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 18:28:47,182 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:28:47,183 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59222840-09375784, IP 160.158.174.131, Port 22 2025-10-29 18:28:47,244 - 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': ''} 2025-10-29 18:28:47,445 - DEBUG - VM ctest-TestBasicPolicy-59222840-09375784 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 18:28:52,446 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:28:52,447 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59222840-09375784, IP 160.158.174.131, Port 22 2025-10-29 18:28:52,504 - 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': ''} 2025-10-29 18:28:52,633 - DEBUG - VM ctest-TestBasicPolicy-59222840-09375784 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 18:28:57,634 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:28:57,634 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59222840-09375784, IP 160.158.174.131, Port 22 2025-10-29 18:28:57,694 - 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': ''} 2025-10-29 18:28:57,793 - DEBUG - VM ctest-TestBasicPolicy-59222840-09375784 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 18:29:02,794 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:29:02,794 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59222840-09375784, IP 160.158.174.131, Port 22 2025-10-29 18:29:02,966 - DEBUG - VM ctest-TestBasicPolicy-59222840-09375784 is ready for SSH connections 2025-10-29 18:29:02,967 - INFO - Waiting for VM ctest-TestBasicPolicy-59222840-42534602 to be up.. 2025-10-29 18:29:03,087 - DEBUG - VM is in ACTIVE state now 2025-10-29 18:29:03,088 - INFO - VM name : ctest-TestBasicPolicy-59222840-42534602 2025-10-29 18:29:03,200 - DEBUG - VM ctest-TestBasicPolicy-59222840-42534602 ID is d627aaec-94a1-4e2e-9196-d2e11cc067f7 2025-10-29 18:29:03,200 - DEBUG - VM ctest-TestBasicPolicy-59222840-42534602 launched on Node an-jenkins-deploy-platform-ansible-os-4526-1 2025-10-29 18:29:03,335 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/d627aaec-94a1-4e2e-9196-d2e11cc067f7 2025-10-29 18:29:03,359 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/38a1479b-d270-462e-9934-8732673bbcf9 2025-10-29 18:29:04,627 - 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=3.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.34 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.344/3.620/3.897/0.276 ms') 2025-10-29 18:29:04,627 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59222840-42534602 passed 2025-10-29 18:29:04,722 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:29:04,722 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59222840-42534602, IP 37.82.144.195, Port 22 2025-10-29 18:29:04,813 - 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': ''} 2025-10-29 18:29:04,923 - DEBUG - VM ctest-TestBasicPolicy-59222840-42534602 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 18:29:09,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:29:09,925 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59222840-42534602, IP 37.82.144.195, Port 22 2025-10-29 18:29:10,117 - DEBUG - VM ctest-TestBasicPolicy-59222840-42534602 is ready for SSH connections 2025-10-29 18:29:10,117 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:29:10,118 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.82.144.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-29 18:29:10,118 - DEBUG - ping -s 56 -c 3 -W 1 37.82.144.195 2025-10-29 18:29:26,326 - DEBUG - PING 37.82.144.195 (37.82.144.195) 56(84) bytes of data. 64 bytes from 37.82.144.195: icmp_req=1 ttl=63 time=8.61 ms 64 bytes from 37.82.144.195: icmp_req=2 ttl=63 time=2.16 ms 64 bytes from 37.82.144.195: icmp_req=3 ttl=63 time=1.87 ms --- 37.82.144.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.870/4.214/8.611/3.111 ms 2025-10-29 18:29:26,327 - INFO - Ping to IP 37.82.144.195 from VM ctest-TestBasicPolicy-59222840-09375784 passed 2025-10-29 18:29:26,565 - DEBUG - Policy Update Response {"network-policy": {"uuid": "67157c10-de51-4d17-9df8-e9d7d7052e84", "href": "http://10.0.0.41:8082/network-policy/67157c10-de51-4d17-9df8-e9d7d7052e84"}} 2025-10-29 18:29:26,565 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 18:29:26,565 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.82.144.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-29 18:29:26,565 - DEBUG - ping -s 56 -c 3 -W 1 37.82.144.195 2025-10-29 18:29:30,017 - DEBUG - PING 37.82.144.195 (37.82.144.195) 56(84) bytes of data. 64 bytes from 37.82.144.195: icmp_req=1 ttl=63 time=7.33 ms --- 37.82.144.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 7.333/7.333/7.333/0.000 ms 2025-10-29 18:29:30,017 - WARNING - Ping to IP 37.82.144.195 from VM ctest-TestBasicPolicy-59222840-09375784 failed 2025-10-29 18:29:30,018 - INFO - Deleting VM ctest-TestBasicPolicy-59222840-42534602 2025-10-29 18:29:30,094 - INFO - Deleting VM ctest-TestBasicPolicy-59222840-09375784 2025-10-29 18:29:30,584 - INFO - Deleted policy ctest-policy-allow-all-61108959 2025-10-29 18:29:30,584 - INFO - Deleting VN ctest-vn-51227188 2025-10-29 18:29:30,639 - DEBUG - VN 6737076b-1391-4e9e-819c-cb96dd266a54 still in use: Unable to complete operation on network 6737076b-1391-4e9e-819c-cb96dd266a54. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-90811056-2228-4ddf-9638-14e1e085d4d3'] 2025-10-29 18:29:30,639 - WARNING - Deleting VN ctest-vn-51227188 failed..Will retry 2025-10-29 18:29:32,789 - DEBUG - Response for deleting network () 2025-10-29 18:29:32,789 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2321e4d-e317-4bc7-8266-23890cebfd6b 2025-10-29 18:29:32,794 - DEBUG - Response Code: 404 2025-10-29 18:29:32,794 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:29:32,800 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:29:32,819 - DEBUG - Requesting: http://10.0.0.249:8082/project/2edfdc6e-7a12-48ed-b0bf-443bd097f2eb 2025-10-29 18:29:32,914 - INFO - Validated that VN ctest-vn-51227188 is not found in API Server 2025-10-29 18:29:32,936 - DEBUG - VN ctest-vn-51227188 is not present in Agent 10.0.0.73 2025-10-29 18:29:32,947 - DEBUG - VN ctest-vn-51227188 is not present in Agent 10.0.0.27 2025-10-29 18:29:32,947 - INFO - Validated that VN ctest-vn-51227188 is not in any agent 2025-10-29 18:29:32,992 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51227188 info 2025-10-29 18:29:32,993 - INFO - Deleting VN ctest-vn-47909738 2025-10-29 18:29:33,172 - DEBUG - Response for deleting network () 2025-10-29 18:29:33,172 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f5079302-7f71-4f33-8853-fb27eec4498d 2025-10-29 18:29:33,177 - DEBUG - Response Code: 404 2025-10-29 18:29:33,177 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 18:29:33,183 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ab5f52cf-59f5-4d8f-a294-1eaf08d80442 2025-10-29 18:29:33,200 - DEBUG - Requesting: http://10.0.0.249:8082/project/2edfdc6e-7a12-48ed-b0bf-443bd097f2eb 2025-10-29 18:29:33,284 - INFO - Validated that VN ctest-vn-47909738 is not found in API Server 2025-10-29 18:29:33,309 - DEBUG - VN ctest-vn-47909738 is not present in Agent 10.0.0.73 2025-10-29 18:29:33,319 - DEBUG - VN ctest-vn-47909738 is not present in Agent 10.0.0.27 2025-10-29 18:29:33,319 - INFO - Validated that VN ctest-vn-47909738 is not in any agent 2025-10-29 18:29:33,356 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47909738 info 2025-10-29 18:29:34,756 - DEBUG - No XMPP flaps were noticed during the test 2025-10-29 18:29:34,756 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:39] 2025-10-29 18:29:34,756 - INFO - -------------------------------------------------------------------------------- 2025-10-29 18:29:35,526 - INFO - Deleted project: ctest-TestBasicPolicy-59222840, ID : 2edfdc6e-7a12-48ed-b0bf-443bd097f2eb