2025-12-15 02:47:58,717 - INFO - Domain Default found not creating 2025-12-15 02:47:58,899 - INFO - Project ctest-TestBasicPolicy-74041877 not found, creating it 2025-12-15 02:47:59,469 - INFO - Created Project:ctest-TestBasicPolicy-74041877, ID : dde509c5-b401-437b-af72-e35dce50cde6 2025-12-15 02:48:00,874 - INFO - ================================================================================ 2025-12-15 02:48:00,875 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-15 02:48:00,875 - 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-12-15 02:48:02,159 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0', '10.20.0.129': '0'}, '10.0.0.27': {'10.20.0.254': '0', '10.20.0.18': '0'}} with 2025-12-15 02:48:02,159 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:48:02,159 - INFO - 2025-12-15 02:48:03,039 - DEBUG - Response for create_network : {'network': {'id': '37243a38-2bc7-4c95-9122-8de3b2783cbb', 'name': 'ctest-vn-83131104', 'tenant_id': 'dde509c5b401437baf72e35dce50cde6', 'project_id': 'dde509c5b401437baf72e35dce50cde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-vn-83131104'], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:48:03,459 - DEBUG - Response for create_subnet : {'subnet': {'id': '042000c6-110e-4f26-b2cc-bdd15c8cd1d0', 'name': '', 'tenant_id': 'dde509c5b401437baf72e35dce50cde6', 'network_id': '37243a38-2bc7-4c95-9122-8de3b2783cbb', 'ip_version': 4, 'cidr': '220.92.184.128/26', 'allocation_pools': [{'start': '220.92.184.130', 'end': '220.92.184.190'}], 'gateway_ip': '220.92.184.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.92.184.130', 'tags': [], 'project_id': 'dde509c5b401437baf72e35dce50cde6'}} 2025-12-15 02:48:03,482 - INFO - Created VN ctest-vn-83131104 2025-12-15 02:48:03,497 - DEBUG - VN ctest-vn-83131104 UUID is 37243a38-2bc7-4c95-9122-8de3b2783cbb 2025-12-15 02:48:03,895 - DEBUG - Response for create_network : {'network': {'id': 'dfd8322a-e81d-4221-9f7d-49161ed5a807', 'name': 'ctest-vn-08287401', 'tenant_id': 'dde509c5b401437baf72e35dce50cde6', 'project_id': 'dde509c5b401437baf72e35dce50cde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-vn-08287401'], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:48:04,151 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b447d60e-d276-440c-a77b-1f799a07f819', 'name': '', 'tenant_id': 'dde509c5b401437baf72e35dce50cde6', 'network_id': 'dfd8322a-e81d-4221-9f7d-49161ed5a807', 'ip_version': 4, 'cidr': '158.191.249.64/26', 'allocation_pools': [{'start': '158.191.249.66', 'end': '158.191.249.126'}], 'gateway_ip': '158.191.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.191.249.66', 'tags': [], 'project_id': 'dde509c5b401437baf72e35dce50cde6'}} 2025-12-15 02:48:04,176 - INFO - Created VN ctest-vn-08287401 2025-12-15 02:48:04,189 - DEBUG - VN ctest-vn-08287401 UUID is dfd8322a-e81d-4221-9f7d-49161ed5a807 2025-12-15 02:48:04,273 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104, 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-74041877:ctest-vn-08287401, 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-12-15 02:48:04,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37243a38-2bc7-4c95-9122-8de3b2783cbb', 'name': 'ctest-vn-83131104', 'tenant_id': 'dde509c5b401437baf72e35dce50cde6', 'project_id': 'dde509c5b401437baf72e35dce50cde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['042000c6-110e-4f26-b2cc-bdd15c8cd1d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-vn-83131104'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-policy-allow-all-11251822']], 'subnet_ipam': [{'subnet_cidr': '220.92.184.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:48:04,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfd8322a-e81d-4221-9f7d-49161ed5a807', 'name': 'ctest-vn-08287401', 'tenant_id': 'dde509c5b401437baf72e35dce50cde6', 'project_id': 'dde509c5b401437baf72e35dce50cde6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b447d60e-d276-440c-a77b-1f799a07f819'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-vn-08287401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-policy-allow-all-11251822']], 'subnet_ipam': [{'subnet_cidr': '158.191.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:48:04,908 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:48:05,221 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:48:05,253 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:48:05,265 - DEBUG - Requesting: http://10.0.0.23:8082/project/dde509c5-b401-437b-af72-e35dce50cde6 2025-12-15 02:48:05,356 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37243a38-2bc7-4c95-9122-8de3b2783cbb 2025-12-15 02:48:05,368 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37243a38-2bc7-4c95-9122-8de3b2783cbb 2025-12-15 02:48:05,377 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3c63b1ac-896e-45b8-9608-f7d1aec021ca 2025-12-15 02:48:05,384 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3c63b1ac-896e-45b8-9608-f7d1aec021ca 2025-12-15 02:48:05,390 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/a4f30589-32bb-43d1-a32f-391dcbb6ac70 2025-12-15 02:48:05,395 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:48:05,395 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37243a38-2bc7-4c95-9122-8de3b2783cbb 2025-12-15 02:48:05,405 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3c63b1ac-896e-45b8-9608-f7d1aec021ca 2025-12-15 02:48:05,423 - INFO - Verified VN network id 11 for VN 37243a38-2bc7-4c95-9122-8de3b2783cbb 2025-12-15 02:48:05,423 - INFO - Verifications in API Server for VN ctest-vn-83131104 passed 2025-12-15 02:48:05,423 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37243a38-2bc7-4c95-9122-8de3b2783cbb 2025-12-15 02:48:05,432 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3c63b1ac-896e-45b8-9608-f7d1aec021ca 2025-12-15 02:48:05,438 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3c63b1ac-896e-45b8-9608-f7d1aec021ca 2025-12-15 02:48:05,444 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/a4f30589-32bb-43d1-a32f-391dcbb6ac70 2025-12-15 02:48:05,454 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74041877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3973364784174681237', 'uuid-lslong': '10458077293799029947'}, 'enable': 'true', 'created': '2025-12-15T02:48:02', 'last-modified': '2025-12-15T02:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913639'} 2025-12-15 02:48:05,459 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:48:05,464 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74041877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3973364784174681237', 'uuid-lslong': '10458077293799029947'}, 'enable': 'true', 'created': '2025-12-15T02:48:02', 'last-modified': '2025-12-15T02:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923965'} 2025-12-15 02:48:05,469 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:48:05,474 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74041877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3973364784174681237', 'uuid-lslong': '10458077293799029947'}, 'enable': 'true', 'created': '2025-12-15T02:48:02', 'last-modified': '2025-12-15T02:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934167'} 2025-12-15 02:48:05,479 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:48:05,479 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83131104 passed 2025-12-15 02:48:05,480 - DEBUG - ====Verifying policy data for ctest-vn-83131104 in API_Server ====== 2025-12-15 02:48:05,480 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:48:05,485 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:48:05,494 - DEBUG - Requesting: http://10.0.0.23:8082/project/dde509c5-b401-437b-af72-e35dce50cde6 2025-12-15 02:48:05,576 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37243a38-2bc7-4c95-9122-8de3b2783cbb 2025-12-15 02:48:05,589 - DEBUG - ==>Verifying data for policy with id: 63eabc35-3649-473e-b810-aa2bf24e1dd7, fqn: ['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-policy-allow-all-11251822'] 2025-12-15 02:48:05,589 - INFO - VN ctest-vn-83131104 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-15 02:48:05,589 - DEBUG - Verifying the vn in opserver 2025-12-15 02:48:05,589 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 virtual network link through opserver 10.0.0.23 2025-12-15 02:48:05,589 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-15 02:48:05,888 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-15 02:48:05,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104?flat'} 2025-12-15 02:48:05,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 virtual network link through opserver 10.0.0.50 2025-12-15 02:48:05,948 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-15 02:48:06,244 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-15 02:48:06,310 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104?flat'} 2025-12-15 02:48:06,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 virtual network link through opserver 10.0.0.65 2025-12-15 02:48:06,310 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-15 02:48:06,625 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-15 02:48:06,708 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104?flat'} 2025-12-15 02:48:06,708 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is found in opserver 2025-12-15 02:48:06,729 - DEBUG - Do not have enough data to verify VN in agent 2025-12-15 02:48:06,740 - DEBUG - VRF ids for VN ctest-vn-83131104: {} 2025-12-15 02:48:06,740 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:48:06,746 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:48:06,758 - DEBUG - Requesting: http://10.0.0.23:8082/project/dde509c5-b401-437b-af72-e35dce50cde6 2025-12-15 02:48:06,848 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dfd8322a-e81d-4221-9f7d-49161ed5a807 2025-12-15 02:48:06,868 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dfd8322a-e81d-4221-9f7d-49161ed5a807 2025-12-15 02:48:06,880 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/29434c3a-9973-4499-8a13-bafc4fb064b0 2025-12-15 02:48:06,889 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/29434c3a-9973-4499-8a13-bafc4fb064b0 2025-12-15 02:48:06,897 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/990f63ff-acf6-4b06-82e1-81d1502d23d7 2025-12-15 02:48:06,908 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-15 02:48:06,908 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dfd8322a-e81d-4221-9f7d-49161ed5a807 2025-12-15 02:48:06,916 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/29434c3a-9973-4499-8a13-bafc4fb064b0 2025-12-15 02:48:06,932 - INFO - Verified VN network id 12 for VN dfd8322a-e81d-4221-9f7d-49161ed5a807 2025-12-15 02:48:06,932 - INFO - Verifications in API Server for VN ctest-vn-08287401 passed 2025-12-15 02:48:06,932 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dfd8322a-e81d-4221-9f7d-49161ed5a807 2025-12-15 02:48:06,943 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/29434c3a-9973-4499-8a13-bafc4fb064b0 2025-12-15 02:48:06,952 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/29434c3a-9973-4499-8a13-bafc4fb064b0 2025-12-15 02:48:06,961 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/990f63ff-acf6-4b06-82e1-81d1502d23d7 2025-12-15 02:48:06,975 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74041877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16129697225291678241', 'uuid-lslong': '11492422183474800647'}, 'enable': 'true', 'created': '2025-12-15T02:48:03', 'last-modified': '2025-12-15T02:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.209570'} 2025-12-15 02:48:06,982 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-15 02:48:06,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74041877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16129697225291678241', 'uuid-lslong': '11492422183474800647'}, 'enable': 'true', 'created': '2025-12-15T02:48:03', 'last-modified': '2025-12-15T02:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.226883'} 2025-12-15 02:48:06,993 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-15 02:48:06,997 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74041877', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16129697225291678241', 'uuid-lslong': '11492422183474800647'}, 'enable': 'true', 'created': '2025-12-15T02:48:03', 'last-modified': '2025-12-15T02:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.234446'} 2025-12-15 02:48:07,004 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-15 02:48:07,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08287401 passed 2025-12-15 02:48:07,004 - DEBUG - ====Verifying policy data for ctest-vn-08287401 in API_Server ====== 2025-12-15 02:48:07,004 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:48:07,011 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:48:07,023 - DEBUG - Requesting: http://10.0.0.23:8082/project/dde509c5-b401-437b-af72-e35dce50cde6 2025-12-15 02:48:07,119 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dfd8322a-e81d-4221-9f7d-49161ed5a807 2025-12-15 02:48:07,133 - DEBUG - ==>Verifying data for policy with id: 63eabc35-3649-473e-b810-aa2bf24e1dd7, fqn: ['default-domain', 'ctest-TestBasicPolicy-74041877', 'ctest-policy-allow-all-11251822'] 2025-12-15 02:48:07,133 - INFO - VN ctest-vn-08287401 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-15 02:48:07,133 - DEBUG - Verifying the vn in opserver 2025-12-15 02:48:07,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401 virtual network link through opserver 10.0.0.23 2025-12-15 02:48:07,133 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-15 02:48:07,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401?flat'} 2025-12-15 02:48:07,184 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401 virtual network link through opserver 10.0.0.50 2025-12-15 02:48:07,184 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-15 02:48:07,238 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401?flat'} 2025-12-15 02:48:07,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401 virtual network link through opserver 10.0.0.65 2025-12-15 02:48:07,238 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-15 02:48:07,293 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401?flat'} 2025-12-15 02:48:07,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-08287401 is found in opserver 2025-12-15 02:48:07,313 - DEBUG - Do not have enough data to verify VN in agent 2025-12-15 02:48:07,323 - DEBUG - VRF ids for VN ctest-vn-08287401: {} 2025-12-15 02:48:07,372 - DEBUG - Services list from nova: [, , , ] 2025-12-15 02:48:08,383 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4894-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4894-2) 2025-12-15 02:48:09,650 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4894-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4894-1) 2025-12-15 02:48:09,650 - INFO - Waiting for VM ctest-TestBasicPolicy-74041877-79505643 to be up.. 2025-12-15 02:48:09,729 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-15 02:48:14,811 - DEBUG - VM is in ACTIVE state now 2025-12-15 02:48:14,811 - INFO - VM name : ctest-TestBasicPolicy-74041877-79505643 2025-12-15 02:48:14,883 - DEBUG - VM ctest-TestBasicPolicy-74041877-79505643 ID is b5de5e02-fec3-4d1e-9da3-d8731346e50c 2025-12-15 02:48:14,904 - DEBUG - VM ctest-TestBasicPolicy-74041877-79505643 launched on Node an-jenkins-deploy-platform-ansible-os-4894-2 2025-12-15 02:48:14,979 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/b5de5e02-fec3-4d1e-9da3-d8731346e50c 2025-12-15 02:48:15,270 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/b5de5e02-fec3-4d1e-9da3-d8731346e50c 2025-12-15 02:48:15,308 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/2a6a7b3c-2624-4246-b694-e88bc767b539 2025-12-15 02:48:18,488 - 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 1023ms') 2025-12-15 02:48:18,488 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:18,502 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:22,580 - 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-12-15 02:48:22,580 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:22,594 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:26,677 - 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') 2025-12-15 02:48:26,678 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:26,692 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:30,775 - 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-12-15 02:48:30,775 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:30,788 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:34,873 - 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-12-15 02:48:34,873 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:34,887 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:38,962 - 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 1009ms') 2025-12-15 02:48:38,962 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:38,978 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:43,065 - 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-12-15 02:48:43,065 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:43,083 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:47,156 - 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-12-15 02:48:47,156 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 failed! 2025-12-15 02:48:47,170 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-74041877:ctest-vn-83131104 is 220.92.184.129 and allocation pool is NOT set 2025-12-15 02:48:49,235 - 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=10.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.903 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 = 0.903/5.656/10.409/4.753 ms') 2025-12-15 02:48:49,235 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-79505643 passed 2025-12-15 02:48:49,308 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:48:49,308 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74041877-79505643, IP 220.92.184.131, Port 22 2025-12-15 02:48:49,377 - 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-12-15 02:48:49,474 - DEBUG - VM ctest-TestBasicPolicy-74041877-79505643 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-15 02:48:54,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:48:54,474 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74041877-79505643, IP 220.92.184.131, Port 22 2025-12-15 02:48:54,541 - 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-12-15 02:48:54,621 - DEBUG - VM ctest-TestBasicPolicy-74041877-79505643 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-15 02:48:59,621 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:48:59,622 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74041877-79505643, IP 220.92.184.131, Port 22 2025-12-15 02:48:59,812 - 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-12-15 02:48:59,900 - DEBUG - VM ctest-TestBasicPolicy-74041877-79505643 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-15 02:49:04,902 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:49:04,902 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74041877-79505643, IP 220.92.184.131, Port 22 2025-12-15 02:49:04,968 - 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-12-15 02:49:05,045 - DEBUG - VM ctest-TestBasicPolicy-74041877-79505643 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-15 02:49:10,047 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:49:10,047 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74041877-79505643, IP 220.92.184.131, Port 22 2025-12-15 02:49:10,212 - DEBUG - VM ctest-TestBasicPolicy-74041877-79505643 is ready for SSH connections 2025-12-15 02:49:10,212 - INFO - Waiting for VM ctest-TestBasicPolicy-74041877-82797554 to be up.. 2025-12-15 02:49:10,297 - DEBUG - VM is in ACTIVE state now 2025-12-15 02:49:10,297 - INFO - VM name : ctest-TestBasicPolicy-74041877-82797554 2025-12-15 02:49:10,382 - DEBUG - VM ctest-TestBasicPolicy-74041877-82797554 ID is fcac994a-d72a-4ecd-9a8f-2f42f1593b32 2025-12-15 02:49:10,382 - DEBUG - VM ctest-TestBasicPolicy-74041877-82797554 launched on Node an-jenkins-deploy-platform-ansible-os-4894-1 2025-12-15 02:49:10,463 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/fcac994a-d72a-4ecd-9a8f-2f42f1593b32 2025-12-15 02:49:10,474 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/3c88c2a8-55c8-44da-9901-90b5fa09d271 2025-12-15 02:49:11,657 - 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=4.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.99 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 = 1.989/3.243/4.498/1.254 ms') 2025-12-15 02:49:11,657 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-74041877-82797554 passed 2025-12-15 02:49:11,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:49:11,727 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-74041877-82797554, IP 158.191.249.67, Port 22 2025-12-15 02:49:11,906 - DEBUG - VM ctest-TestBasicPolicy-74041877-82797554 is ready for SSH connections 2025-12-15 02:49:11,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:49:11,907 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.191.249.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-12-15 02:49:11,907 - DEBUG - ping -s 56 -c 3 -W 1 158.191.249.67 2025-12-15 02:49:35,094 - DEBUG - PING 158.191.249.67 (158.191.249.67) 56(84) bytes of data. 64 bytes from 158.191.249.67: icmp_req=1 ttl=63 time=9.29 ms 64 bytes from 158.191.249.67: icmp_req=2 ttl=63 time=1.30 ms 64 bytes from 158.191.249.67: icmp_req=3 ttl=63 time=1.45 ms --- 158.191.249.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.304/4.017/9.299/3.735 ms 2025-12-15 02:49:35,094 - INFO - Ping to IP 158.191.249.67 from VM ctest-TestBasicPolicy-74041877-79505643 passed 2025-12-15 02:49:35,299 - DEBUG - Policy Update Response {"network-policy": {"uuid": "63eabc35-3649-473e-b810-aa2bf24e1dd7", "href": "http://10.0.0.65:8082/network-policy/63eabc35-3649-473e-b810-aa2bf24e1dd7"}} 2025-12-15 02:49:35,299 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-15 02:49:35,299 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.191.249.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-12-15 02:49:35,299 - DEBUG - ping -s 56 -c 3 -W 1 158.191.249.67 2025-12-15 02:49:39,266 - DEBUG - PING 158.191.249.67 (158.191.249.67) 56(84) bytes of data. --- 158.191.249.67 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms 2025-12-15 02:49:39,266 - WARNING - Ping to IP 158.191.249.67 from VM ctest-TestBasicPolicy-74041877-79505643 failed 2025-12-15 02:49:39,267 - INFO - Deleting VM ctest-TestBasicPolicy-74041877-82797554 2025-12-15 02:49:39,334 - INFO - Deleting VM ctest-TestBasicPolicy-74041877-79505643 2025-12-15 02:49:39,857 - INFO - Deleted policy ctest-policy-allow-all-11251822 2025-12-15 02:49:39,858 - INFO - Deleting VN ctest-vn-08287401 2025-12-15 02:49:39,902 - DEBUG - VN dfd8322a-e81d-4221-9f7d-49161ed5a807 still in use: Unable to complete operation on network dfd8322a-e81d-4221-9f7d-49161ed5a807. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4e8bf27f-8b2c-447f-aca5-ab7fd77c711c'] 2025-12-15 02:49:39,902 - WARNING - Deleting VN ctest-vn-08287401 failed..Will retry 2025-12-15 02:49:42,056 - DEBUG - Response for deleting network () 2025-12-15 02:49:42,056 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/29434c3a-9973-4499-8a13-bafc4fb064b0 2025-12-15 02:49:42,061 - DEBUG - Response Code: 404 2025-12-15 02:49:42,061 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:49:42,067 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:49:42,097 - DEBUG - Requesting: http://10.0.0.23:8082/project/dde509c5-b401-437b-af72-e35dce50cde6 2025-12-15 02:49:42,189 - INFO - Validated that VN ctest-vn-08287401 is not found in API Server 2025-12-15 02:49:42,199 - DEBUG - VN ctest-vn-08287401 is not present in Agent 10.0.0.22 2025-12-15 02:49:42,209 - DEBUG - VN ctest-vn-08287401 is not present in Agent 10.0.0.27 2025-12-15 02:49:42,209 - INFO - Validated that VN ctest-vn-08287401 is not in any agent 2025-12-15 02:49:42,238 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08287401 info 2025-12-15 02:49:42,238 - INFO - Deleting VN ctest-vn-83131104 2025-12-15 02:49:42,388 - DEBUG - Response for deleting network () 2025-12-15 02:49:42,388 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3c63b1ac-896e-45b8-9608-f7d1aec021ca 2025-12-15 02:49:42,393 - DEBUG - Response Code: 404 2025-12-15 02:49:42,393 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:49:42,399 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:49:42,414 - DEBUG - Requesting: http://10.0.0.23:8082/project/dde509c5-b401-437b-af72-e35dce50cde6 2025-12-15 02:49:42,504 - INFO - Validated that VN ctest-vn-83131104 is not found in API Server 2025-12-15 02:49:42,514 - DEBUG - VN ctest-vn-83131104 is not present in Agent 10.0.0.22 2025-12-15 02:49:42,525 - DEBUG - VN ctest-vn-83131104 is not present in Agent 10.0.0.27 2025-12-15 02:49:42,525 - INFO - Validated that VN ctest-vn-83131104 is not in any agent 2025-12-15 02:49:42,553 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83131104 info 2025-12-15 02:49:43,818 - DEBUG - No XMPP flaps were noticed during the test 2025-12-15 02:49:43,818 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:43] 2025-12-15 02:49:43,818 - INFO - -------------------------------------------------------------------------------- 2025-12-15 02:49:44,560 - INFO - Deleted project: ctest-TestBasicPolicy-74041877, ID : dde509c5-b401-437b-af72-e35dce50cde6