2025-10-29 12:02:23,101 - INFO - Domain Default found not creating 2025-10-29 12:02:23,266 - INFO - Project ctest-TestBasicPolicy-41583826 not found, creating it 2025-10-29 12:02:23,828 - INFO - Created Project:ctest-TestBasicPolicy-41583826, ID : 98634754-4a51-4202-a591-5f50644b37f7 2025-10-29 12:02:25,347 - INFO - ================================================================================ 2025-10-29 12:02:25,348 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-29 12:02:25,348 - 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 12:02:26,634 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.50': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2025-10-29 12:02:26,634 - INFO - Initial checks done. Running the testcase now 2025-10-29 12:02:26,635 - INFO - 2025-10-29 12:02:27,481 - DEBUG - Response for create_network : {'network': {'id': 'ec1b2fe1-bb30-4aed-88ad-680e46f02291', 'name': 'ctest-vn-00177049', 'tenant_id': '986347544a514202a5915f50644b37f7', 'project_id': '986347544a514202a5915f50644b37f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-vn-00177049'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 12:02:27,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cec15486-20a9-49c9-9b60-afd7a913b16f', 'name': '', 'tenant_id': '986347544a514202a5915f50644b37f7', 'network_id': 'ec1b2fe1-bb30-4aed-88ad-680e46f02291', 'ip_version': 4, 'cidr': '59.90.80.192/26', 'allocation_pools': [{'start': '59.90.80.194', 'end': '59.90.80.254'}], 'gateway_ip': '59.90.80.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.90.80.194', 'tags': [], 'project_id': '986347544a514202a5915f50644b37f7'}} 2025-10-29 12:02:27,784 - INFO - Created VN ctest-vn-00177049 2025-10-29 12:02:27,799 - DEBUG - VN ctest-vn-00177049 UUID is ec1b2fe1-bb30-4aed-88ad-680e46f02291 2025-10-29 12:02:28,183 - DEBUG - Response for create_network : {'network': {'id': '20da4917-5899-4031-a042-ce8ea8b45596', 'name': 'ctest-vn-02801797', 'tenant_id': '986347544a514202a5915f50644b37f7', 'project_id': '986347544a514202a5915f50644b37f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-vn-02801797'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 12:02:28,399 - DEBUG - Response for create_subnet : {'subnet': {'id': '267b779b-8a1b-4065-96fb-96cb2c9cd82e', 'name': '', 'tenant_id': '986347544a514202a5915f50644b37f7', 'network_id': '20da4917-5899-4031-a042-ce8ea8b45596', 'ip_version': 4, 'cidr': '93.223.136.0/26', 'allocation_pools': [{'start': '93.223.136.2', 'end': '93.223.136.62'}], 'gateway_ip': '93.223.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.223.136.2', 'tags': [], 'project_id': '986347544a514202a5915f50644b37f7'}} 2025-10-29 12:02:28,426 - INFO - Created VN ctest-vn-02801797 2025-10-29 12:02:28,437 - DEBUG - VN ctest-vn-02801797 UUID is 20da4917-5899-4031-a042-ce8ea8b45596 2025-10-29 12:02:28,523 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049, 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-41583826:ctest-vn-02801797, 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 12:02:28,854 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec1b2fe1-bb30-4aed-88ad-680e46f02291', 'name': 'ctest-vn-00177049', 'tenant_id': '986347544a514202a5915f50644b37f7', 'project_id': '986347544a514202a5915f50644b37f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cec15486-20a9-49c9-9b60-afd7a913b16f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-vn-00177049'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-policy-allow-all-79057441']], 'subnet_ipam': [{'subnet_cidr': '59.90.80.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 12:02:29,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20da4917-5899-4031-a042-ce8ea8b45596', 'name': 'ctest-vn-02801797', 'tenant_id': '986347544a514202a5915f50644b37f7', 'project_id': '986347544a514202a5915f50644b37f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['267b779b-8a1b-4065-96fb-96cb2c9cd82e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-vn-02801797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-policy-allow-all-79057441']], 'subnet_ipam': [{'subnet_cidr': '93.223.136.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 12:02:29,164 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 12:02:29,497 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 12:02:29,531 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 12:02:29,547 - DEBUG - Requesting: http://10.0.0.38:8082/project/98634754-4a51-4202-a591-5f50644b37f7 2025-10-29 12:02:29,654 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec1b2fe1-bb30-4aed-88ad-680e46f02291 2025-10-29 12:02:29,672 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec1b2fe1-bb30-4aed-88ad-680e46f02291 2025-10-29 12:02:29,683 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0ed12ac-9759-4a02-8bbc-e68c511ac2fe 2025-10-29 12:02:29,692 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0ed12ac-9759-4a02-8bbc-e68c511ac2fe 2025-10-29 12:02:29,702 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8949d387-c0da-48ae-aac5-2271fa19cfae 2025-10-29 12:02:29,711 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 12:02:29,711 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec1b2fe1-bb30-4aed-88ad-680e46f02291 2025-10-29 12:02:29,721 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0ed12ac-9759-4a02-8bbc-e68c511ac2fe 2025-10-29 12:02:29,739 - INFO - Verified VN network id 15 for VN ec1b2fe1-bb30-4aed-88ad-680e46f02291 2025-10-29 12:02:29,740 - INFO - Verifications in API Server for VN ctest-vn-00177049 passed 2025-10-29 12:02:29,740 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec1b2fe1-bb30-4aed-88ad-680e46f02291 2025-10-29 12:02:29,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0ed12ac-9759-4a02-8bbc-e68c511ac2fe 2025-10-29 12:02:29,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0ed12ac-9759-4a02-8bbc-e68c511ac2fe 2025-10-29 12:02:29,768 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8949d387-c0da-48ae-aac5-2271fa19cfae 2025-10-29 12:02:29,782 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41583826', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17013244663876831981', 'uuid-lslong': '9848642370658116241'}, 'enable': 'true', 'created': '2025-10-29T12:02:27', 'last-modified': '2025-10-29T12:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953134'} 2025-10-29 12:02:29,789 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 12:02:29,795 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41583826', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17013244663876831981', 'uuid-lslong': '9848642370658116241'}, 'enable': 'true', 'created': '2025-10-29T12:02:27', 'last-modified': '2025-10-29T12:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963235'} 2025-10-29 12:02:29,801 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 12:02:29,808 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41583826', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17013244663876831981', 'uuid-lslong': '9848642370658116241'}, 'enable': 'true', 'created': '2025-10-29T12:02:27', 'last-modified': '2025-10-29T12:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981146'} 2025-10-29 12:02:29,814 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 12:02:29,814 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00177049 passed 2025-10-29 12:02:29,814 - DEBUG - ====Verifying policy data for ctest-vn-00177049 in API_Server ====== 2025-10-29 12:02:29,814 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 12:02:29,821 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 12:02:29,834 - DEBUG - Requesting: http://10.0.0.38:8082/project/98634754-4a51-4202-a591-5f50644b37f7 2025-10-29 12:02:29,935 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ec1b2fe1-bb30-4aed-88ad-680e46f02291 2025-10-29 12:02:29,946 - DEBUG - ==>Verifying data for policy with id: d30c79a6-4f82-4148-b29c-922227bceeae, fqn: ['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-policy-allow-all-79057441'] 2025-10-29 12:02:29,946 - INFO - VN ctest-vn-00177049 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 12:02:29,947 - DEBUG - Verifying the vn in opserver 2025-10-29 12:02:29,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 virtual network link through opserver 10.0.0.38 2025-10-29 12:02:29,947 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 12:02:30,252 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 12:02:30,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049?flat'} 2025-10-29 12:02:30,314 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 virtual network link through opserver 10.0.0.254 2025-10-29 12:02:30,314 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 12:02:30,620 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 12:02:30,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049?flat'} 2025-10-29 12:02:30,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 virtual network link through opserver 10.0.0.48 2025-10-29 12:02:30,687 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-29 12:02:31,002 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-29 12:02:31,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049?flat'} 2025-10-29 12:02:31,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is found in opserver 2025-10-29 12:02:31,089 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 12:02:31,100 - DEBUG - VRF ids for VN ctest-vn-00177049: {} 2025-10-29 12:02:31,100 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 12:02:31,106 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 12:02:31,119 - DEBUG - Requesting: http://10.0.0.38:8082/project/98634754-4a51-4202-a591-5f50644b37f7 2025-10-29 12:02:31,212 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20da4917-5899-4031-a042-ce8ea8b45596 2025-10-29 12:02:31,231 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20da4917-5899-4031-a042-ce8ea8b45596 2025-10-29 12:02:31,243 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69353e67-01cb-4e44-b0fa-1bfd2410ea2e 2025-10-29 12:02:31,250 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69353e67-01cb-4e44-b0fa-1bfd2410ea2e 2025-10-29 12:02:31,260 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8ce441f8-459f-405f-955f-820cb541207b 2025-10-29 12:02:31,268 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 12:02:31,268 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20da4917-5899-4031-a042-ce8ea8b45596 2025-10-29 12:02:31,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69353e67-01cb-4e44-b0fa-1bfd2410ea2e 2025-10-29 12:02:31,294 - INFO - Verified VN network id 16 for VN 20da4917-5899-4031-a042-ce8ea8b45596 2025-10-29 12:02:31,294 - INFO - Verifications in API Server for VN ctest-vn-02801797 passed 2025-10-29 12:02:31,294 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20da4917-5899-4031-a042-ce8ea8b45596 2025-10-29 12:02:31,305 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69353e67-01cb-4e44-b0fa-1bfd2410ea2e 2025-10-29 12:02:31,313 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69353e67-01cb-4e44-b0fa-1bfd2410ea2e 2025-10-29 12:02:31,322 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8ce441f8-459f-405f-955f-820cb541207b 2025-10-29 12:02:31,339 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41583826', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2367284918756130865', 'uuid-lslong': '11548019506642441622'}, 'enable': 'true', 'created': '2025-10-29T12:02:28', 'last-modified': '2025-10-29T12:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.324028'} 2025-10-29 12:02:31,345 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 12:02:31,352 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41583826', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2367284918756130865', 'uuid-lslong': '11548019506642441622'}, 'enable': 'true', 'created': '2025-10-29T12:02:28', 'last-modified': '2025-10-29T12:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.336570'} 2025-10-29 12:02:31,358 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 12:02:31,363 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41583826', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2367284918756130865', 'uuid-lslong': '11548019506642441622'}, 'enable': 'true', 'created': '2025-10-29T12:02:28', 'last-modified': '2025-10-29T12:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.350765'} 2025-10-29 12:02:31,370 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 12:02:31,370 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02801797 passed 2025-10-29 12:02:31,370 - DEBUG - ====Verifying policy data for ctest-vn-02801797 in API_Server ====== 2025-10-29 12:02:31,370 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 12:02:31,378 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 12:02:31,390 - DEBUG - Requesting: http://10.0.0.38:8082/project/98634754-4a51-4202-a591-5f50644b37f7 2025-10-29 12:02:31,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20da4917-5899-4031-a042-ce8ea8b45596 2025-10-29 12:02:31,509 - DEBUG - ==>Verifying data for policy with id: d30c79a6-4f82-4148-b29c-922227bceeae, fqn: ['default-domain', 'ctest-TestBasicPolicy-41583826', 'ctest-policy-allow-all-79057441'] 2025-10-29 12:02:31,509 - INFO - VN ctest-vn-02801797 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 12:02:31,509 - DEBUG - Verifying the vn in opserver 2025-10-29 12:02:31,510 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797 virtual network link through opserver 10.0.0.38 2025-10-29 12:02:31,510 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 12:02:31,575 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797?flat'} 2025-10-29 12:02:31,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797 virtual network link through opserver 10.0.0.254 2025-10-29 12:02:31,575 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 12:02:31,632 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797?flat'} 2025-10-29 12:02:31,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797 virtual network link through opserver 10.0.0.48 2025-10-29 12:02:31,632 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-29 12:02:31,706 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797?flat'} 2025-10-29 12:02:31,706 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-02801797 is found in opserver 2025-10-29 12:02:31,726 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 12:02:31,736 - DEBUG - VRF ids for VN ctest-vn-02801797: {} 2025-10-29 12:02:31,803 - DEBUG - Services list from nova: [, , , ] 2025-10-29 12:02:32,895 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4521-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4521-2) 2025-10-29 12:02:34,327 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4521-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4521-1) 2025-10-29 12:02:34,327 - INFO - Waiting for VM ctest-TestBasicPolicy-41583826-94794690 to be up.. 2025-10-29 12:02:34,431 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-29 12:02:39,517 - DEBUG - VM is in ACTIVE state now 2025-10-29 12:02:39,517 - INFO - VM name : ctest-TestBasicPolicy-41583826-94794690 2025-10-29 12:02:39,605 - DEBUG - VM ctest-TestBasicPolicy-41583826-94794690 ID is 6e020792-9b58-4efb-9bef-1f08977aaaee 2025-10-29 12:02:39,633 - DEBUG - VM ctest-TestBasicPolicy-41583826-94794690 launched on Node an-jenkins-deploy-platform-ansible-os-4521-2 2025-10-29 12:02:39,724 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/6e020792-9b58-4efb-9bef-1f08977aaaee 2025-10-29 12:02:40,024 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/6e020792-9b58-4efb-9bef-1f08977aaaee 2025-10-29 12:02:40,058 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/c37e1e01-e756-4e1b-bd86-e103971dc1bf 2025-10-29 12:02:43,252 - 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') 2025-10-29 12:02:43,252 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:02:43,269 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:02:47,353 - 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') 2025-10-29 12:02:47,353 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:02:47,368 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:02:51,446 - 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 12:02:51,446 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:02:51,460 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:02:55,539 - 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') 2025-10-29 12:02:55,539 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:02:55,554 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:02:59,639 - 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 12:02:59,639 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:02:59,656 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:03:03,731 - 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 12:03:03,731 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:03:03,748 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:03:07,829 - 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') 2025-10-29 12:03:07,829 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:03:07,845 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:03:11,919 - 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 12:03:11,919 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 failed! 2025-10-29 12:03:11,935 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-41583826:ctest-vn-00177049 is 59.90.80.193 and allocation pool is NOT set 2025-10-29 12:03:14,004 - 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.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=5.68 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 = 5.676/5.807/5.938/0.131 ms') 2025-10-29 12:03:14,004 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-94794690 passed 2025-10-29 12:03:14,079 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:14,080 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41583826-94794690, IP 59.90.80.195, Port 22 2025-10-29 12:03:14,146 - 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 12:03:14,256 - DEBUG - VM ctest-TestBasicPolicy-41583826-94794690 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 12:03:19,257 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:19,257 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41583826-94794690, IP 59.90.80.195, Port 22 2025-10-29 12:03:19,325 - 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 12:03:19,414 - DEBUG - VM ctest-TestBasicPolicy-41583826-94794690 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 12:03:24,415 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:24,415 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41583826-94794690, IP 59.90.80.195, Port 22 2025-10-29 12:03:24,481 - 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 12:03:24,575 - DEBUG - VM ctest-TestBasicPolicy-41583826-94794690 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 12:03:29,575 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:29,576 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41583826-94794690, IP 59.90.80.195, Port 22 2025-10-29 12:03:29,643 - 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 12:03:29,726 - DEBUG - VM ctest-TestBasicPolicy-41583826-94794690 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 12:03:34,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:34,727 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41583826-94794690, IP 59.90.80.195, Port 22 2025-10-29 12:03:34,904 - DEBUG - VM ctest-TestBasicPolicy-41583826-94794690 is ready for SSH connections 2025-10-29 12:03:34,904 - INFO - Waiting for VM ctest-TestBasicPolicy-41583826-08600006 to be up.. 2025-10-29 12:03:35,000 - DEBUG - VM is in ACTIVE state now 2025-10-29 12:03:35,000 - INFO - VM name : ctest-TestBasicPolicy-41583826-08600006 2025-10-29 12:03:35,095 - DEBUG - VM ctest-TestBasicPolicy-41583826-08600006 ID is 45864bb9-bb9f-4f46-b454-02f55a9b37a9 2025-10-29 12:03:35,095 - DEBUG - VM ctest-TestBasicPolicy-41583826-08600006 launched on Node an-jenkins-deploy-platform-ansible-os-4521-1 2025-10-29 12:03:35,187 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/45864bb9-bb9f-4f46-b454-02f55a9b37a9 2025-10-29 12:03:35,199 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/75a78093-6a15-4500-9c8b-614860159273 2025-10-29 12:03:36,379 - 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=8.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.48 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.484/5.676/8.869/3.192 ms') 2025-10-29 12:03:36,379 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-41583826-08600006 passed 2025-10-29 12:03:36,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:36,448 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41583826-08600006, IP 93.223.136.3, Port 22 2025-10-29 12:03:36,515 - 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 12:03:36,603 - DEBUG - VM ctest-TestBasicPolicy-41583826-08600006 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 12:03:41,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:41,604 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-41583826-08600006, IP 93.223.136.3, Port 22 2025-10-29 12:03:41,775 - DEBUG - VM ctest-TestBasicPolicy-41583826-08600006 is ready for SSH connections 2025-10-29 12:03:41,775 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:03:41,775 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.223.136.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-10-29 12:03:41,775 - DEBUG - ping -s 56 -c 3 -W 1 93.223.136.3 2025-10-29 12:04:31,048 - DEBUG - PING 93.223.136.3 (93.223.136.3) 56(84) bytes of data. 64 bytes from 93.223.136.3: icmp_req=1 ttl=63 time=6.56 ms 64 bytes from 93.223.136.3: icmp_req=2 ttl=63 time=1.64 ms 64 bytes from 93.223.136.3: icmp_req=3 ttl=63 time=1.26 ms --- 93.223.136.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.268/3.161/6.568/2.414 ms 2025-10-29 12:04:31,049 - INFO - Ping to IP 93.223.136.3 from VM ctest-TestBasicPolicy-41583826-94794690 passed 2025-10-29 12:04:31,284 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d30c79a6-4f82-4148-b29c-922227bceeae", "href": "http://10.0.0.48:8082/network-policy/d30c79a6-4f82-4148-b29c-922227bceeae"}} 2025-10-29 12:04:31,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 12:04:31,284 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.223.136.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-10-29 12:04:31,284 - DEBUG - ping -s 56 -c 3 -W 1 93.223.136.3 2025-10-29 12:04:34,758 - DEBUG - PING 93.223.136.3 (93.223.136.3) 56(84) bytes of data. 64 bytes from 93.223.136.3: icmp_req=1 ttl=63 time=3.62 ms --- 93.223.136.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 3.629/3.629/3.629/0.000 ms 2025-10-29 12:04:34,759 - WARNING - Ping to IP 93.223.136.3 from VM ctest-TestBasicPolicy-41583826-94794690 failed 2025-10-29 12:04:34,759 - INFO - Deleting VM ctest-TestBasicPolicy-41583826-08600006 2025-10-29 12:04:34,845 - INFO - Deleting VM ctest-TestBasicPolicy-41583826-94794690 2025-10-29 12:04:35,334 - INFO - Deleted policy ctest-policy-allow-all-79057441 2025-10-29 12:04:35,334 - INFO - Deleting VN ctest-vn-02801797 2025-10-29 12:04:35,392 - DEBUG - VN 20da4917-5899-4031-a042-ce8ea8b45596 still in use: Unable to complete operation on network 20da4917-5899-4031-a042-ce8ea8b45596. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-af211902-ca4e-4153-9321-d2622b76ca68'] 2025-10-29 12:04:35,392 - WARNING - Deleting VN ctest-vn-02801797 failed..Will retry 2025-10-29 12:04:37,557 - DEBUG - Response for deleting network () 2025-10-29 12:04:37,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69353e67-01cb-4e44-b0fa-1bfd2410ea2e 2025-10-29 12:04:37,570 - DEBUG - Response Code: 404 2025-10-29 12:04:37,571 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 12:04:37,577 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 12:04:37,590 - DEBUG - Requesting: http://10.0.0.38:8082/project/98634754-4a51-4202-a591-5f50644b37f7 2025-10-29 12:04:37,681 - INFO - Validated that VN ctest-vn-02801797 is not found in API Server 2025-10-29 12:04:37,696 - DEBUG - VN ctest-vn-02801797 is not present in Agent 10.0.0.49 2025-10-29 12:04:37,706 - DEBUG - VN ctest-vn-02801797 is not present in Agent 10.0.0.50 2025-10-29 12:04:37,707 - INFO - Validated that VN ctest-vn-02801797 is not in any agent 2025-10-29 12:04:37,741 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02801797 info 2025-10-29 12:04:37,741 - INFO - Deleting VN ctest-vn-00177049 2025-10-29 12:04:37,929 - DEBUG - Response for deleting network () 2025-10-29 12:04:37,929 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0ed12ac-9759-4a02-8bbc-e68c511ac2fe 2025-10-29 12:04:37,936 - DEBUG - Response Code: 404 2025-10-29 12:04:37,936 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 12:04:37,944 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 12:04:37,957 - DEBUG - Requesting: http://10.0.0.38:8082/project/98634754-4a51-4202-a591-5f50644b37f7 2025-10-29 12:04:38,052 - INFO - Validated that VN ctest-vn-00177049 is not found in API Server 2025-10-29 12:04:38,066 - DEBUG - VN ctest-vn-00177049 is not present in Agent 10.0.0.49 2025-10-29 12:04:38,078 - DEBUG - VN ctest-vn-00177049 is not present in Agent 10.0.0.50 2025-10-29 12:04:38,078 - INFO - Validated that VN ctest-vn-00177049 is not in any agent 2025-10-29 12:04:38,112 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-00177049 info 2025-10-29 12:04:39,383 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 12:04:39,383 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:14]
2025-10-29 12:04:39,383 - INFO - -------------------------------------------------------------------------------- 2025-10-29 12:04:40,195 - INFO - Deleted project: ctest-TestBasicPolicy-41583826, ID : 98634754-4a51-4202-a591-5f50644b37f7