2025-11-13 02:39:49,782 - INFO - Domain Default found not creating 2025-11-13 02:39:49,934 - INFO - Project ctest-TestBasicPolicy-32102645 not found, creating it 2025-11-13 02:39:50,483 - INFO - Created Project:ctest-TestBasicPolicy-32102645, ID : b9357355-a2a0-423d-be34-0164b16b0f58 2025-11-13 02:39:52,237 - INFO - ================================================================================ 2025-11-13 02:39:52,237 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-13 02:39:52,237 - 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-11-13 02:39:53,500 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.23': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2025-11-13 02:39:53,500 - INFO - Initial checks done. Running the testcase now 2025-11-13 02:39:53,500 - INFO - 2025-11-13 02:39:54,163 - DEBUG - Response for create_network : {'network': {'id': 'ae119a23-4086-4696-bb9b-bb0d715a420c', 'name': 'ctest-vn-66691314', 'tenant_id': 'b9357355a2a0423dbe340164b16b0f58', 'project_id': 'b9357355a2a0423dbe340164b16b0f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-vn-66691314'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:39:54,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '12442e83-37f1-49c0-9e94-2cddf8047927', 'name': '', 'tenant_id': 'b9357355a2a0423dbe340164b16b0f58', 'network_id': 'ae119a23-4086-4696-bb9b-bb0d715a420c', 'ip_version': 4, 'cidr': '121.163.163.64/26', 'allocation_pools': [{'start': '121.163.163.66', 'end': '121.163.163.126'}], 'gateway_ip': '121.163.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.163.163.66', 'tags': [], 'project_id': 'b9357355a2a0423dbe340164b16b0f58'}} 2025-11-13 02:39:54,466 - INFO - Created VN ctest-vn-66691314 2025-11-13 02:39:54,477 - DEBUG - VN ctest-vn-66691314 UUID is ae119a23-4086-4696-bb9b-bb0d715a420c 2025-11-13 02:39:54,869 - DEBUG - Response for create_network : {'network': {'id': '286a2fd4-046b-46c0-bcc7-cad7b6eea64a', 'name': 'ctest-vn-26152041', 'tenant_id': 'b9357355a2a0423dbe340164b16b0f58', 'project_id': 'b9357355a2a0423dbe340164b16b0f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-vn-26152041'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:39:55,104 - DEBUG - Response for create_subnet : {'subnet': {'id': '60fb5152-1925-4e7c-a3e5-c8edb0ca180b', 'name': '', 'tenant_id': 'b9357355a2a0423dbe340164b16b0f58', 'network_id': '286a2fd4-046b-46c0-bcc7-cad7b6eea64a', 'ip_version': 4, 'cidr': '39.4.28.64/26', 'allocation_pools': [{'start': '39.4.28.66', 'end': '39.4.28.126'}], 'gateway_ip': '39.4.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.4.28.66', 'tags': [], 'project_id': 'b9357355a2a0423dbe340164b16b0f58'}} 2025-11-13 02:39:55,125 - INFO - Created VN ctest-vn-26152041 2025-11-13 02:39:55,137 - DEBUG - VN ctest-vn-26152041 UUID is 286a2fd4-046b-46c0-bcc7-cad7b6eea64a 2025-11-13 02:39:55,247 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314, 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-32102645:ctest-vn-26152041, 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-11-13 02:39:55,561 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae119a23-4086-4696-bb9b-bb0d715a420c', 'name': 'ctest-vn-66691314', 'tenant_id': 'b9357355a2a0423dbe340164b16b0f58', 'project_id': 'b9357355a2a0423dbe340164b16b0f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12442e83-37f1-49c0-9e94-2cddf8047927'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-vn-66691314'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-policy-allow-all-84912742']], 'subnet_ipam': [{'subnet_cidr': '121.163.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:39:55,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '286a2fd4-046b-46c0-bcc7-cad7b6eea64a', 'name': 'ctest-vn-26152041', 'tenant_id': 'b9357355a2a0423dbe340164b16b0f58', 'project_id': 'b9357355a2a0423dbe340164b16b0f58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60fb5152-1925-4e7c-a3e5-c8edb0ca180b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-vn-26152041'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-policy-allow-all-84912742']], 'subnet_ipam': [{'subnet_cidr': '39.4.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:39:55,852 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:39:56,228 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:39:56,255 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:39:56,269 - DEBUG - Requesting: http://10.0.0.141:8082/project/b9357355-a2a0-423d-be34-0164b16b0f58 2025-11-13 02:39:56,373 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae119a23-4086-4696-bb9b-bb0d715a420c 2025-11-13 02:39:56,384 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae119a23-4086-4696-bb9b-bb0d715a420c 2025-11-13 02:39:56,393 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4a5ce438-b2dd-463d-be2b-4adef6b105b4 2025-11-13 02:39:56,399 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4a5ce438-b2dd-463d-be2b-4adef6b105b4 2025-11-13 02:39:56,406 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1912cff6-17ad-43c7-aeb1-7434ee657d0e 2025-11-13 02:39:56,411 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:39:56,411 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae119a23-4086-4696-bb9b-bb0d715a420c 2025-11-13 02:39:56,420 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4a5ce438-b2dd-463d-be2b-4adef6b105b4 2025-11-13 02:39:56,435 - INFO - Verified VN network id 11 for VN ae119a23-4086-4696-bb9b-bb0d715a420c 2025-11-13 02:39:56,435 - INFO - Verifications in API Server for VN ctest-vn-66691314 passed 2025-11-13 02:39:56,435 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae119a23-4086-4696-bb9b-bb0d715a420c 2025-11-13 02:39:56,443 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4a5ce438-b2dd-463d-be2b-4adef6b105b4 2025-11-13 02:39:56,451 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4a5ce438-b2dd-463d-be2b-4adef6b105b4 2025-11-13 02:39:56,458 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1912cff6-17ad-43c7-aeb1-7434ee657d0e 2025-11-13 02:39:56,469 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32102645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12542975913400616598', 'uuid-lslong': '13518604372893385228'}, 'enable': 'true', 'created': '2025-11-13T02:39:54', 'last-modified': '2025-11-13T02:39:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943079'} 2025-11-13 02:39:56,474 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:39:56,487 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32102645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12542975913400616598', 'uuid-lslong': '13518604372893385228'}, 'enable': 'true', 'created': '2025-11-13T02:39:54', 'last-modified': '2025-11-13T02:39:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958694'} 2025-11-13 02:39:56,494 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:39:56,499 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32102645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12542975913400616598', 'uuid-lslong': '13518604372893385228'}, 'enable': 'true', 'created': '2025-11-13T02:39:54', 'last-modified': '2025-11-13T02:39:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972107'} 2025-11-13 02:39:56,504 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:39:56,504 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66691314 passed 2025-11-13 02:39:56,505 - DEBUG - ====Verifying policy data for ctest-vn-66691314 in API_Server ====== 2025-11-13 02:39:56,505 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:39:56,510 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:39:56,520 - DEBUG - Requesting: http://10.0.0.141:8082/project/b9357355-a2a0-423d-be34-0164b16b0f58 2025-11-13 02:39:56,618 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ae119a23-4086-4696-bb9b-bb0d715a420c 2025-11-13 02:39:56,635 - DEBUG - ==>Verifying data for policy with id: ab28eac8-8418-4442-8c8b-9028c4d72614, fqn: ['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-policy-allow-all-84912742'] 2025-11-13 02:39:56,635 - INFO - VN ctest-vn-66691314 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 02:39:56,636 - DEBUG - Verifying the vn in opserver 2025-11-13 02:39:56,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 virtual network link through opserver 10.0.0.141 2025-11-13 02:39:56,636 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-13 02:39:56,980 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-13 02:39:57,035 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314?flat'} 2025-11-13 02:39:57,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 virtual network link through opserver 10.0.0.56 2025-11-13 02:39:57,035 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-11-13 02:39:57,370 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-11-13 02:39:57,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314?flat'} 2025-11-13 02:39:57,423 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 virtual network link through opserver 10.0.0.61 2025-11-13 02:39:57,423 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-11-13 02:39:57,754 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-11-13 02:39:57,817 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314?flat'} 2025-11-13 02:39:57,817 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is found in opserver 2025-11-13 02:39:57,837 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 02:39:57,845 - DEBUG - VRF ids for VN ctest-vn-66691314: {} 2025-11-13 02:39:57,846 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:39:57,851 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:39:57,862 - DEBUG - Requesting: http://10.0.0.141:8082/project/b9357355-a2a0-423d-be34-0164b16b0f58 2025-11-13 02:39:57,944 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/286a2fd4-046b-46c0-bcc7-cad7b6eea64a 2025-11-13 02:39:57,966 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/286a2fd4-046b-46c0-bcc7-cad7b6eea64a 2025-11-13 02:39:57,977 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7e620f82-20a4-4440-a05c-cf1bfebce645 2025-11-13 02:39:57,984 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7e620f82-20a4-4440-a05c-cf1bfebce645 2025-11-13 02:39:57,991 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/65ce4f8b-bb04-4b9d-acc3-7413b8dac174 2025-11-13 02:39:57,998 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-13 02:39:57,998 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/286a2fd4-046b-46c0-bcc7-cad7b6eea64a 2025-11-13 02:39:58,007 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7e620f82-20a4-4440-a05c-cf1bfebce645 2025-11-13 02:39:58,022 - INFO - Verified VN network id 12 for VN 286a2fd4-046b-46c0-bcc7-cad7b6eea64a 2025-11-13 02:39:58,022 - INFO - Verifications in API Server for VN ctest-vn-26152041 passed 2025-11-13 02:39:58,022 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/286a2fd4-046b-46c0-bcc7-cad7b6eea64a 2025-11-13 02:39:58,032 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7e620f82-20a4-4440-a05c-cf1bfebce645 2025-11-13 02:39:58,039 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7e620f82-20a4-4440-a05c-cf1bfebce645 2025-11-13 02:39:58,045 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/65ce4f8b-bb04-4b9d-acc3-7413b8dac174 2025-11-13 02:39:58,056 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32102645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2912192696702158528', 'uuid-lslong': '13603064227331745354'}, 'enable': 'true', 'created': '2025-11-13T02:39:54', 'last-modified': '2025-11-13T02:39:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.334057'} 2025-11-13 02:39:58,065 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-13 02:39:58,071 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32102645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2912192696702158528', 'uuid-lslong': '13603064227331745354'}, 'enable': 'true', 'created': '2025-11-13T02:39:54', 'last-modified': '2025-11-13T02:39:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.330862'} 2025-11-13 02:39:58,076 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-13 02:39:58,081 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32102645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2912192696702158528', 'uuid-lslong': '13603064227331745354'}, 'enable': 'true', 'created': '2025-11-13T02:39:54', 'last-modified': '2025-11-13T02:39:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.354101'} 2025-11-13 02:39:58,087 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-13 02:39:58,087 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26152041 passed 2025-11-13 02:39:58,088 - DEBUG - ====Verifying policy data for ctest-vn-26152041 in API_Server ====== 2025-11-13 02:39:58,088 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:39:58,093 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:39:58,113 - DEBUG - Requesting: http://10.0.0.141:8082/project/b9357355-a2a0-423d-be34-0164b16b0f58 2025-11-13 02:39:58,213 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/286a2fd4-046b-46c0-bcc7-cad7b6eea64a 2025-11-13 02:39:58,223 - DEBUG - ==>Verifying data for policy with id: ab28eac8-8418-4442-8c8b-9028c4d72614, fqn: ['default-domain', 'ctest-TestBasicPolicy-32102645', 'ctest-policy-allow-all-84912742'] 2025-11-13 02:39:58,224 - INFO - VN ctest-vn-26152041 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 02:39:58,224 - DEBUG - Verifying the vn in opserver 2025-11-13 02:39:58,224 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041 virtual network link through opserver 10.0.0.141 2025-11-13 02:39:58,224 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-13 02:39:58,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041?flat'} 2025-11-13 02:39:58,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041 virtual network link through opserver 10.0.0.56 2025-11-13 02:39:58,284 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-11-13 02:39:58,337 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041?flat'} 2025-11-13 02:39:58,337 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041 virtual network link through opserver 10.0.0.61 2025-11-13 02:39:58,337 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-11-13 02:39:58,390 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041?flat'} 2025-11-13 02:39:58,390 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-26152041 is found in opserver 2025-11-13 02:39:58,411 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 02:39:58,420 - DEBUG - VRF ids for VN ctest-vn-26152041: {} 2025-11-13 02:39:58,474 - DEBUG - Services list from nova: [, , , ] 2025-11-13 02:39:59,625 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4712-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4712-2) 2025-11-13 02:40:01,129 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4712-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4712-1) 2025-11-13 02:40:01,130 - INFO - Waiting for VM ctest-TestBasicPolicy-32102645-25616495 to be up.. 2025-11-13 02:40:01,224 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-13 02:40:06,307 - DEBUG - VM is in ACTIVE state now 2025-11-13 02:40:06,307 - INFO - VM name : ctest-TestBasicPolicy-32102645-25616495 2025-11-13 02:40:06,391 - DEBUG - VM ctest-TestBasicPolicy-32102645-25616495 ID is fd1c517c-c4cc-41c9-a8aa-42527b344662 2025-11-13 02:40:06,423 - DEBUG - VM ctest-TestBasicPolicy-32102645-25616495 launched on Node an-jenkins-deploy-platform-ansible-os-4712-2 2025-11-13 02:40:06,508 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/fd1c517c-c4cc-41c9-a8aa-42527b344662 2025-11-13 02:40:06,840 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/fd1c517c-c4cc-41c9-a8aa-42527b344662 2025-11-13 02:40:06,871 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/f69abbeb-eb51-4314-8321-2f0c1f1e51e2 2025-11-13 02:40:10,035 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1006ms') 2025-11-13 02:40:10,035 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 failed! 2025-11-13 02:40:10,049 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is 121.163.163.65 and allocation pool is NOT set 2025-11-13 02:40:14,124 - 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-11-13 02:40:14,124 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 failed! 2025-11-13 02:40:14,137 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is 121.163.163.65 and allocation pool is NOT set 2025-11-13 02:40:18,226 - 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-11-13 02:40:18,226 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 failed! 2025-11-13 02:40:18,240 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is 121.163.163.65 and allocation pool is NOT set 2025-11-13 02:40:22,316 - 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-11-13 02:40:22,316 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 failed! 2025-11-13 02:40:22,329 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is 121.163.163.65 and allocation pool is NOT set 2025-11-13 02:40:26,417 - 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 1021ms') 2025-11-13 02:40:26,417 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 failed! 2025-11-13 02:40:26,431 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is 121.163.163.65 and allocation pool is NOT set 2025-11-13 02:40:30,508 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2025-11-13 02:40:30,508 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 failed! 2025-11-13 02:40:30,523 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is 121.163.163.65 and allocation pool is NOT set 2025-11-13 02:40:34,610 - 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-11-13 02:40:34,611 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 failed! 2025-11-13 02:40:34,626 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32102645:ctest-vn-66691314 is 121.163.163.65 and allocation pool is NOT set 2025-11-13 02:40:38,699 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=7.77 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1015ms\r\nrtt min/avg/max/mdev = 7.769/7.769/7.769/0.000 ms') 2025-11-13 02:40:38,700 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-25616495 passed 2025-11-13 02:40:38,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:40:38,772 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-25616495, IP 121.163.163.67, Port 22 2025-11-13 02:40:38,842 - 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-11-13 02:40:38,971 - DEBUG - VM ctest-TestBasicPolicy-32102645-25616495 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 02:40:43,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:40:43,972 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-25616495, IP 121.163.163.67, Port 22 2025-11-13 02:40:44,037 - 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-11-13 02:40:44,118 - DEBUG - VM ctest-TestBasicPolicy-32102645-25616495 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 02:40:49,119 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:40:49,119 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-25616495, IP 121.163.163.67, Port 22 2025-11-13 02:40:49,189 - 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-11-13 02:40:49,269 - DEBUG - VM ctest-TestBasicPolicy-32102645-25616495 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 02:40:54,269 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:40:54,269 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-25616495, IP 121.163.163.67, Port 22 2025-11-13 02:40:54,338 - 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-11-13 02:40:54,423 - DEBUG - VM ctest-TestBasicPolicy-32102645-25616495 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 02:40:59,424 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:40:59,424 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-25616495, IP 121.163.163.67, Port 22 2025-11-13 02:40:59,579 - DEBUG - VM ctest-TestBasicPolicy-32102645-25616495 is ready for SSH connections 2025-11-13 02:40:59,580 - INFO - Waiting for VM ctest-TestBasicPolicy-32102645-12643843 to be up.. 2025-11-13 02:40:59,660 - DEBUG - VM is in ACTIVE state now 2025-11-13 02:40:59,660 - INFO - VM name : ctest-TestBasicPolicy-32102645-12643843 2025-11-13 02:40:59,736 - DEBUG - VM ctest-TestBasicPolicy-32102645-12643843 ID is bd928ec1-5d17-45ab-a459-18a293405ece 2025-11-13 02:40:59,736 - DEBUG - VM ctest-TestBasicPolicy-32102645-12643843 launched on Node an-jenkins-deploy-platform-ansible-os-4712-1 2025-11-13 02:40:59,812 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/bd928ec1-5d17-45ab-a459-18a293405ece 2025-11-13 02:40:59,821 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/16a7b8e3-0eb0-4a4f-8dd2-37eaa51696e3 2025-11-13 02:41:00,978 - 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.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.574 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.574/2.721/4.868/2.147 ms') 2025-11-13 02:41:00,978 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32102645-12643843 passed 2025-11-13 02:41:01,049 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:41:01,049 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-12643843, IP 39.4.28.67, Port 22 2025-11-13 02:41:01,114 - 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-11-13 02:41:01,202 - DEBUG - VM ctest-TestBasicPolicy-32102645-12643843 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 02:41:06,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:41:06,202 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-12643843, IP 39.4.28.67, Port 22 2025-11-13 02:41:06,270 - 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-11-13 02:41:06,350 - DEBUG - VM ctest-TestBasicPolicy-32102645-12643843 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 02:41:11,351 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:41:11,351 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32102645-12643843, IP 39.4.28.67, Port 22 2025-11-13 02:41:11,518 - DEBUG - VM ctest-TestBasicPolicy-32102645-12643843 is ready for SSH connections 2025-11-13 02:41:11,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:41:11,519 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.4.28.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-11-13 02:41:11,519 - DEBUG - ping -s 56 -c 3 -W 1 39.4.28.67 2025-11-13 02:41:52,707 - DEBUG - PING 39.4.28.67 (39.4.28.67) 56(84) bytes of data. 64 bytes from 39.4.28.67: icmp_req=1 ttl=63 time=5.95 ms 64 bytes from 39.4.28.67: icmp_req=2 ttl=63 time=1.12 ms 64 bytes from 39.4.28.67: icmp_req=3 ttl=63 time=1.62 ms --- 39.4.28.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.127/2.902/5.955/2.168 ms 2025-11-13 02:41:52,707 - INFO - Ping to IP 39.4.28.67 from VM ctest-TestBasicPolicy-32102645-25616495 passed 2025-11-13 02:41:52,903 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ab28eac8-8418-4442-8c8b-9028c4d72614", "href": "http://10.0.0.61:8082/network-policy/ab28eac8-8418-4442-8c8b-9028c4d72614"}} 2025-11-13 02:41:52,903 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 02:41:52,903 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.4.28.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-11-13 02:41:52,904 - DEBUG - ping -s 56 -c 3 -W 1 39.4.28.67 2025-11-13 02:41:56,348 - DEBUG - PING 39.4.28.67 (39.4.28.67) 56(84) bytes of data. 64 bytes from 39.4.28.67: icmp_req=1 ttl=63 time=4.09 ms --- 39.4.28.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 4.097/4.097/4.097/0.000 ms 2025-11-13 02:41:56,348 - WARNING - Ping to IP 39.4.28.67 from VM ctest-TestBasicPolicy-32102645-25616495 failed 2025-11-13 02:41:56,348 - INFO - Deleting VM ctest-TestBasicPolicy-32102645-12643843 2025-11-13 02:41:56,415 - INFO - Deleting VM ctest-TestBasicPolicy-32102645-25616495 2025-11-13 02:41:56,884 - INFO - Deleted policy ctest-policy-allow-all-84912742 2025-11-13 02:41:56,884 - INFO - Deleting VN ctest-vn-26152041 2025-11-13 02:41:56,931 - DEBUG - VN 286a2fd4-046b-46c0-bcc7-cad7b6eea64a still in use: Unable to complete operation on network 286a2fd4-046b-46c0-bcc7-cad7b6eea64a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ac73c494-7439-4800-993c-b06d4ddda702'] 2025-11-13 02:41:56,931 - WARNING - Deleting VN ctest-vn-26152041 failed..Will retry 2025-11-13 02:41:59,100 - DEBUG - Response for deleting network () 2025-11-13 02:41:59,101 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7e620f82-20a4-4440-a05c-cf1bfebce645 2025-11-13 02:41:59,106 - DEBUG - Response Code: 404 2025-11-13 02:41:59,106 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:41:59,121 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:41:59,177 - DEBUG - Requesting: http://10.0.0.141:8082/project/b9357355-a2a0-423d-be34-0164b16b0f58 2025-11-13 02:41:59,278 - INFO - Validated that VN ctest-vn-26152041 is not found in API Server 2025-11-13 02:41:59,288 - DEBUG - VN ctest-vn-26152041 is not present in Agent 10.0.0.19 2025-11-13 02:41:59,297 - DEBUG - VN ctest-vn-26152041 is not present in Agent 10.0.0.23 2025-11-13 02:41:59,297 - INFO - Validated that VN ctest-vn-26152041 is not in any agent 2025-11-13 02:41:59,325 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26152041 info 2025-11-13 02:41:59,325 - INFO - Deleting VN ctest-vn-66691314 2025-11-13 02:41:59,459 - DEBUG - Response for deleting network () 2025-11-13 02:41:59,459 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4a5ce438-b2dd-463d-be2b-4adef6b105b4 2025-11-13 02:41:59,464 - DEBUG - Response Code: 404 2025-11-13 02:41:59,464 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:41:59,471 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:41:59,485 - DEBUG - Requesting: http://10.0.0.141:8082/project/b9357355-a2a0-423d-be34-0164b16b0f58 2025-11-13 02:41:59,574 - INFO - Validated that VN ctest-vn-66691314 is not found in API Server 2025-11-13 02:41:59,587 - DEBUG - VN ctest-vn-66691314 is not present in Agent 10.0.0.19 2025-11-13 02:41:59,598 - DEBUG - VN ctest-vn-66691314 is not present in Agent 10.0.0.23 2025-11-13 02:41:59,598 - INFO - Validated that VN ctest-vn-66691314 is not in any agent 2025-11-13 02:41:59,637 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66691314 info 2025-11-13 02:42:00,917 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 02:42:00,917 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:08] 2025-11-13 02:42:00,917 - INFO - -------------------------------------------------------------------------------- 2025-11-13 02:42:01,664 - INFO - Deleted project: ctest-TestBasicPolicy-32102645, ID : b9357355-a2a0-423d-be34-0164b16b0f58