2025-10-29 23:33:30,305 - INFO - Domain Default found not creating 2025-10-29 23:33:30,445 - INFO - Project ctest-TestBasicPolicy-03758568 not found, creating it 2025-10-29 23:33:31,011 - INFO - Created Project:ctest-TestBasicPolicy-03758568, ID : 87f8807a-d377-4c37-ba89-13f39029c82f 2025-10-29 23:33:32,477 - INFO - ================================================================================ 2025-10-29 23:33:32,477 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-29 23:33:32,477 - 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 23:33:33,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0', '10.20.0.5': '0'}, '10.0.0.33': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-10-29 23:33:33,852 - INFO - Initial checks done. Running the testcase now 2025-10-29 23:33:33,852 - INFO - 2025-10-29 23:33:34,503 - DEBUG - Response for create_network : {'network': {'id': '2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3', 'name': 'ctest-vn-49478286', 'tenant_id': '87f8807ad3774c37ba8913f39029c82f', 'project_id': '87f8807ad3774c37ba8913f39029c82f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-vn-49478286'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:33:34,813 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b192d913-2362-48a7-a815-60b883d2c917', 'name': '', 'tenant_id': '87f8807ad3774c37ba8913f39029c82f', 'network_id': '2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3', 'ip_version': 4, 'cidr': '187.92.58.192/26', 'allocation_pools': [{'start': '187.92.58.194', 'end': '187.92.58.254'}], 'gateway_ip': '187.92.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.92.58.194', 'tags': [], 'project_id': '87f8807ad3774c37ba8913f39029c82f'}} 2025-10-29 23:33:34,846 - INFO - Created VN ctest-vn-49478286 2025-10-29 23:33:34,857 - DEBUG - VN ctest-vn-49478286 UUID is 2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3 2025-10-29 23:33:35,203 - DEBUG - Response for create_network : {'network': {'id': '259086a9-4db8-4707-b71e-653e3ab1f9b7', 'name': 'ctest-vn-63482481', 'tenant_id': '87f8807ad3774c37ba8913f39029c82f', 'project_id': '87f8807ad3774c37ba8913f39029c82f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-vn-63482481'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:33:35,397 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da185547-b55f-4bce-b98b-495ae147c628', 'name': '', 'tenant_id': '87f8807ad3774c37ba8913f39029c82f', 'network_id': '259086a9-4db8-4707-b71e-653e3ab1f9b7', 'ip_version': 4, 'cidr': '69.207.27.192/26', 'allocation_pools': [{'start': '69.207.27.194', 'end': '69.207.27.254'}], 'gateway_ip': '69.207.27.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.207.27.194', 'tags': [], 'project_id': '87f8807ad3774c37ba8913f39029c82f'}} 2025-10-29 23:33:35,421 - INFO - Created VN ctest-vn-63482481 2025-10-29 23:33:35,432 - DEBUG - VN ctest-vn-63482481 UUID is 259086a9-4db8-4707-b71e-653e3ab1f9b7 2025-10-29 23:33:35,524 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286, 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-03758568:ctest-vn-63482481, 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 23:33:35,828 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3', 'name': 'ctest-vn-49478286', 'tenant_id': '87f8807ad3774c37ba8913f39029c82f', 'project_id': '87f8807ad3774c37ba8913f39029c82f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b192d913-2362-48a7-a815-60b883d2c917'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-vn-49478286'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-policy-allow-all-41492061']], 'subnet_ipam': [{'subnet_cidr': '187.92.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:33:36,017 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '259086a9-4db8-4707-b71e-653e3ab1f9b7', 'name': 'ctest-vn-63482481', 'tenant_id': '87f8807ad3774c37ba8913f39029c82f', 'project_id': '87f8807ad3774c37ba8913f39029c82f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da185547-b55f-4bce-b98b-495ae147c628'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-vn-63482481'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-policy-allow-all-41492061']], 'subnet_ipam': [{'subnet_cidr': '69.207.27.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:33:36,129 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:33:36,511 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:33:36,542 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:33:36,555 - DEBUG - Requesting: http://10.0.0.254:8082/project/87f8807a-d377-4c37-ba89-13f39029c82f 2025-10-29 23:33:36,657 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3 2025-10-29 23:33:36,671 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3 2025-10-29 23:33:36,682 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/51d950a8-9802-43db-8e99-29d7d1c4d80e 2025-10-29 23:33:36,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/51d950a8-9802-43db-8e99-29d7d1c4d80e 2025-10-29 23:33:36,701 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e1c4e8ef-6255-48ec-a167-cbf8d622b92e 2025-10-29 23:33:36,708 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:33:36,709 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3 2025-10-29 23:33:36,720 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/51d950a8-9802-43db-8e99-29d7d1c4d80e 2025-10-29 23:33:36,739 - INFO - Verified VN network id 16 for VN 2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3 2025-10-29 23:33:36,739 - INFO - Verifications in API Server for VN ctest-vn-49478286 passed 2025-10-29 23:33:36,739 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3 2025-10-29 23:33:36,750 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/51d950a8-9802-43db-8e99-29d7d1c4d80e 2025-10-29 23:33:36,759 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/51d950a8-9802-43db-8e99-29d7d1c4d80e 2025-10-29 23:33:36,768 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e1c4e8ef-6255-48ec-a167-cbf8d622b92e 2025-10-29 23:33:36,783 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03758568', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3223892247503851092', 'uuid-lslong': '11079582640255953347'}, 'enable': 'true', 'created': '2025-10-29T23:33:34', 'last-modified': '2025-10-29T23:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983850'} 2025-10-29 23:33:36,789 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:33:36,794 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03758568', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3223892247503851092', 'uuid-lslong': '11079582640255953347'}, 'enable': 'true', 'created': '2025-10-29T23:33:34', 'last-modified': '2025-10-29T23:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995635'} 2025-10-29 23:33:36,800 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:33:36,805 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03758568', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3223892247503851092', 'uuid-lslong': '11079582640255953347'}, 'enable': 'true', 'created': '2025-10-29T23:33:34', 'last-modified': '2025-10-29T23:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008540'} 2025-10-29 23:33:36,810 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:33:36,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49478286 passed 2025-10-29 23:33:36,811 - DEBUG - ====Verifying policy data for ctest-vn-49478286 in API_Server ====== 2025-10-29 23:33:36,811 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:33:36,817 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:33:36,828 - DEBUG - Requesting: http://10.0.0.254:8082/project/87f8807a-d377-4c37-ba89-13f39029c82f 2025-10-29 23:33:36,940 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2cbd90eb-0e9a-4e54-99c2-95b58c0a69c3 2025-10-29 23:33:36,954 - DEBUG - ==>Verifying data for policy with id: ce3a33dc-8624-48f0-b436-bc3ce6a0aa90, fqn: ['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-policy-allow-all-41492061'] 2025-10-29 23:33:36,954 - INFO - VN ctest-vn-49478286 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 23:33:36,954 - DEBUG - Verifying the vn in opserver 2025-10-29 23:33:36,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 virtual network link through opserver 10.0.0.254 2025-10-29 23:33:36,954 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 23:33:37,283 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 23:33:37,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286?flat'} 2025-10-29 23:33:37,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 virtual network link through opserver 10.0.0.49 2025-10-29 23:33:37,347 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-29 23:33:37,656 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-29 23:33:37,720 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286?flat'} 2025-10-29 23:33:37,720 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 virtual network link through opserver 10.0.0.38 2025-10-29 23:33:37,720 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 23:33:38,021 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 23:33:38,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286?flat'} 2025-10-29 23:33:38,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is found in opserver 2025-10-29 23:33:38,108 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 23:33:38,124 - DEBUG - VRF ids for VN ctest-vn-49478286: {} 2025-10-29 23:33:38,124 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:33:38,131 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:33:38,143 - DEBUG - Requesting: http://10.0.0.254:8082/project/87f8807a-d377-4c37-ba89-13f39029c82f 2025-10-29 23:33:38,233 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/259086a9-4db8-4707-b71e-653e3ab1f9b7 2025-10-29 23:33:38,258 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/259086a9-4db8-4707-b71e-653e3ab1f9b7 2025-10-29 23:33:38,271 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9cef7ccd-ba31-49bf-bd95-c945ccf1e771 2025-10-29 23:33:38,279 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9cef7ccd-ba31-49bf-bd95-c945ccf1e771 2025-10-29 23:33:38,289 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a31e8381-b9f8-4d00-8012-86285eaa7db5 2025-10-29 23:33:38,295 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 23:33:38,295 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/259086a9-4db8-4707-b71e-653e3ab1f9b7 2025-10-29 23:33:38,303 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9cef7ccd-ba31-49bf-bd95-c945ccf1e771 2025-10-29 23:33:38,327 - INFO - Verified VN network id 17 for VN 259086a9-4db8-4707-b71e-653e3ab1f9b7 2025-10-29 23:33:38,328 - INFO - Verifications in API Server for VN ctest-vn-63482481 passed 2025-10-29 23:33:38,328 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/259086a9-4db8-4707-b71e-653e3ab1f9b7 2025-10-29 23:33:38,341 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9cef7ccd-ba31-49bf-bd95-c945ccf1e771 2025-10-29 23:33:38,348 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9cef7ccd-ba31-49bf-bd95-c945ccf1e771 2025-10-29 23:33:38,355 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a31e8381-b9f8-4d00-8012-86285eaa7db5 2025-10-29 23:33:38,367 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03758568', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2706811437761185543', 'uuid-lslong': '13195095276189252023'}, 'enable': 'true', 'created': '2025-10-29T23:33:35', 'last-modified': '2025-10-29T23:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.388436'} 2025-10-29 23:33:38,373 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 23:33:38,379 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03758568', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2706811437761185543', 'uuid-lslong': '13195095276189252023'}, 'enable': 'true', 'created': '2025-10-29T23:33:35', 'last-modified': '2025-10-29T23:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.402903'} 2025-10-29 23:33:38,386 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 23:33:38,391 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03758568', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2706811437761185543', 'uuid-lslong': '13195095276189252023'}, 'enable': 'true', 'created': '2025-10-29T23:33:35', 'last-modified': '2025-10-29T23:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.414734'} 2025-10-29 23:33:38,397 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-29 23:33:38,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63482481 passed 2025-10-29 23:33:38,397 - DEBUG - ====Verifying policy data for ctest-vn-63482481 in API_Server ====== 2025-10-29 23:33:38,397 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:33:38,403 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:33:38,413 - DEBUG - Requesting: http://10.0.0.254:8082/project/87f8807a-d377-4c37-ba89-13f39029c82f 2025-10-29 23:33:38,520 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/259086a9-4db8-4707-b71e-653e3ab1f9b7 2025-10-29 23:33:38,533 - DEBUG - ==>Verifying data for policy with id: ce3a33dc-8624-48f0-b436-bc3ce6a0aa90, fqn: ['default-domain', 'ctest-TestBasicPolicy-03758568', 'ctest-policy-allow-all-41492061'] 2025-10-29 23:33:38,533 - INFO - VN ctest-vn-63482481 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 23:33:38,534 - DEBUG - Verifying the vn in opserver 2025-10-29 23:33:38,534 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481 virtual network link through opserver 10.0.0.254 2025-10-29 23:33:38,534 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 23:33:38,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481?flat'} 2025-10-29 23:33:38,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481 virtual network link through opserver 10.0.0.49 2025-10-29 23:33:38,600 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-29 23:33:38,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481?flat'} 2025-10-29 23:33:38,660 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481 virtual network link through opserver 10.0.0.38 2025-10-29 23:33:38,660 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 23:33:38,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481?flat'} 2025-10-29 23:33:38,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-63482481 is found in opserver 2025-10-29 23:33:38,750 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 23:33:38,765 - DEBUG - VRF ids for VN ctest-vn-63482481: {} 2025-10-29 23:33:38,819 - DEBUG - Services list from nova: [, , , ] 2025-10-29 23:33:39,972 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4529-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4529-1) 2025-10-29 23:33:41,369 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4529-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4529-2) 2025-10-29 23:33:41,369 - INFO - Waiting for VM ctest-TestBasicPolicy-03758568-70255583 to be up.. 2025-10-29 23:33:41,454 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-29 23:33:46,535 - DEBUG - VM is in ACTIVE state now 2025-10-29 23:33:46,535 - INFO - VM name : ctest-TestBasicPolicy-03758568-70255583 2025-10-29 23:33:46,616 - DEBUG - VM ctest-TestBasicPolicy-03758568-70255583 ID is 12b5203f-8951-4942-8a57-30d0671990af 2025-10-29 23:33:46,644 - DEBUG - VM ctest-TestBasicPolicy-03758568-70255583 launched on Node an-jenkins-deploy-platform-ansible-os-4529-1 2025-10-29 23:33:46,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/12b5203f-8951-4942-8a57-30d0671990af 2025-10-29 23:33:47,332 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/12b5203f-8951-4942-8a57-30d0671990af 2025-10-29 23:33:47,374 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/4ddc02af-a5f7-4930-b359-44bf787a4e21 2025-10-29 23:33:50,550 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2025-10-29 23:33:50,550 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 failed! 2025-10-29 23:33:50,567 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is 187.92.58.193 and allocation pool is NOT set 2025-10-29 23:33:54,637 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-10-29 23:33:54,637 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 failed! 2025-10-29 23:33:54,650 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is 187.92.58.193 and allocation pool is NOT set 2025-10-29 23:33:58,734 - 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 1026ms') 2025-10-29 23:33:58,735 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 failed! 2025-10-29 23:33:58,748 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is 187.92.58.193 and allocation pool is NOT set 2025-10-29 23:34:02,830 - 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 1024ms') 2025-10-29 23:34:02,831 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 failed! 2025-10-29 23:34:02,846 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is 187.92.58.193 and allocation pool is NOT set 2025-10-29 23:34:06,925 - 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-10-29 23:34:06,925 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 failed! 2025-10-29 23:34:06,938 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is 187.92.58.193 and allocation pool is NOT set 2025-10-29 23:34:11,028 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1031ms') 2025-10-29 23:34:11,028 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 failed! 2025-10-29 23:34:11,043 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is 187.92.58.193 and allocation pool is NOT set 2025-10-29 23:34:15,122 - 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 23:34:15,122 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 failed! 2025-10-29 23:34:15,134 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03758568:ctest-vn-49478286 is 187.92.58.193 and allocation pool is NOT set 2025-10-29 23:34:19,215 - 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=9.07 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1023ms\r\nrtt min/avg/max/mdev = 9.066/9.066/9.066/0.000 ms') 2025-10-29 23:34:19,215 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-70255583 passed 2025-10-29 23:34:19,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:19,283 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03758568-70255583, IP 187.92.58.195, Port 22 2025-10-29 23:34:19,349 - 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 23:34:19,457 - DEBUG - VM ctest-TestBasicPolicy-03758568-70255583 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 23:34:24,458 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:24,458 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03758568-70255583, IP 187.92.58.195, Port 22 2025-10-29 23:34:24,526 - 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 23:34:24,613 - DEBUG - VM ctest-TestBasicPolicy-03758568-70255583 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 23:34:29,613 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:29,613 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03758568-70255583, IP 187.92.58.195, Port 22 2025-10-29 23:34:29,681 - 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 23:34:29,763 - DEBUG - VM ctest-TestBasicPolicy-03758568-70255583 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 23:34:34,763 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:34,763 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03758568-70255583, IP 187.92.58.195, Port 22 2025-10-29 23:34:34,840 - 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 23:34:34,923 - DEBUG - VM ctest-TestBasicPolicy-03758568-70255583 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 23:34:39,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:39,924 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03758568-70255583, IP 187.92.58.195, Port 22 2025-10-29 23:34:40,083 - DEBUG - VM ctest-TestBasicPolicy-03758568-70255583 is ready for SSH connections 2025-10-29 23:34:40,083 - INFO - Waiting for VM ctest-TestBasicPolicy-03758568-74768239 to be up.. 2025-10-29 23:34:40,173 - DEBUG - VM is in ACTIVE state now 2025-10-29 23:34:40,173 - INFO - VM name : ctest-TestBasicPolicy-03758568-74768239 2025-10-29 23:34:40,261 - DEBUG - VM ctest-TestBasicPolicy-03758568-74768239 ID is 7ba80c1e-acfe-431a-8703-183587313dd9 2025-10-29 23:34:40,261 - DEBUG - VM ctest-TestBasicPolicy-03758568-74768239 launched on Node an-jenkins-deploy-platform-ansible-os-4529-2 2025-10-29 23:34:40,365 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/7ba80c1e-acfe-431a-8703-183587313dd9 2025-10-29 23:34:40,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b5055d3b-0ddf-443b-9414-565697aaedb1 2025-10-29 23:34:41,620 - 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=6.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.43 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 3.425/5.074/6.723/1.649 ms') 2025-10-29 23:34:41,621 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03758568-74768239 passed 2025-10-29 23:34:41,685 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:41,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03758568-74768239, IP 69.207.27.195, Port 22 2025-10-29 23:34:41,753 - 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 23:34:41,833 - DEBUG - VM ctest-TestBasicPolicy-03758568-74768239 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 23:34:46,834 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:46,834 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03758568-74768239, IP 69.207.27.195, Port 22 2025-10-29 23:34:47,046 - DEBUG - VM ctest-TestBasicPolicy-03758568-74768239 is ready for SSH connections 2025-10-29 23:34:47,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:34:47,046 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 69.207.27.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-10-29 23:34:47,046 - DEBUG - ping -s 56 -c 3 -W 1 69.207.27.195 2025-10-29 23:35:35,253 - DEBUG - PING 69.207.27.195 (69.207.27.195) 56(84) bytes of data. 64 bytes from 69.207.27.195: icmp_req=1 ttl=63 time=11.4 ms 64 bytes from 69.207.27.195: icmp_req=2 ttl=63 time=2.11 ms 64 bytes from 69.207.27.195: icmp_req=3 ttl=63 time=1.25 ms --- 69.207.27.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.257/4.931/11.421/4.602 ms 2025-10-29 23:35:35,253 - INFO - Ping to IP 69.207.27.195 from VM ctest-TestBasicPolicy-03758568-70255583 passed 2025-10-29 23:35:35,462 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ce3a33dc-8624-48f0-b436-bc3ce6a0aa90", "href": "http://10.0.0.38:8082/network-policy/ce3a33dc-8624-48f0-b436-bc3ce6a0aa90"}} 2025-10-29 23:35:35,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 23:35:35,462 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 69.207.27.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-10-29 23:35:35,462 - DEBUG - ping -s 56 -c 3 -W 1 69.207.27.195 2025-10-29 23:35:38,955 - DEBUG - PING 69.207.27.195 (69.207.27.195) 56(84) bytes of data. 64 bytes from 69.207.27.195: icmp_req=1 ttl=63 time=2.98 ms --- 69.207.27.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2011ms rtt min/avg/max/mdev = 2.988/2.988/2.988/0.000 ms 2025-10-29 23:35:38,956 - WARNING - Ping to IP 69.207.27.195 from VM ctest-TestBasicPolicy-03758568-70255583 failed 2025-10-29 23:35:38,956 - INFO - Deleting VM ctest-TestBasicPolicy-03758568-74768239 2025-10-29 23:35:39,039 - INFO - Deleting VM ctest-TestBasicPolicy-03758568-70255583 2025-10-29 23:35:39,494 - INFO - Deleted policy ctest-policy-allow-all-41492061 2025-10-29 23:35:39,494 - INFO - Deleting VN ctest-vn-63482481 2025-10-29 23:35:39,557 - DEBUG - VN 259086a9-4db8-4707-b71e-653e3ab1f9b7 still in use: Unable to complete operation on network 259086a9-4db8-4707-b71e-653e3ab1f9b7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0ae5b30f-ee69-42eb-8225-f50ed770d15d'] 2025-10-29 23:35:39,557 - WARNING - Deleting VN ctest-vn-63482481 failed..Will retry 2025-10-29 23:35:41,751 - DEBUG - Response for deleting network () 2025-10-29 23:35:41,751 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9cef7ccd-ba31-49bf-bd95-c945ccf1e771 2025-10-29 23:35:41,758 - DEBUG - Response Code: 404 2025-10-29 23:35:41,758 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:35:41,764 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:35:41,819 - DEBUG - Requesting: http://10.0.0.254:8082/project/87f8807a-d377-4c37-ba89-13f39029c82f 2025-10-29 23:35:41,901 - INFO - Validated that VN ctest-vn-63482481 is not found in API Server 2025-10-29 23:35:41,915 - DEBUG - VN ctest-vn-63482481 is not present in Agent 10.0.0.65 2025-10-29 23:35:41,933 - DEBUG - VN ctest-vn-63482481 is not present in Agent 10.0.0.33 2025-10-29 23:35:41,933 - INFO - Validated that VN ctest-vn-63482481 is not in any agent 2025-10-29 23:35:41,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63482481 info 2025-10-29 23:35:41,970 - INFO - Deleting VN ctest-vn-49478286 2025-10-29 23:35:42,114 - DEBUG - Response for deleting network () 2025-10-29 23:35:42,114 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/51d950a8-9802-43db-8e99-29d7d1c4d80e 2025-10-29 23:35:42,120 - DEBUG - Response Code: 404 2025-10-29 23:35:42,121 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:35:42,132 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:35:42,146 - DEBUG - Requesting: http://10.0.0.254:8082/project/87f8807a-d377-4c37-ba89-13f39029c82f 2025-10-29 23:35:42,236 - INFO - Validated that VN ctest-vn-49478286 is not found in API Server 2025-10-29 23:35:42,248 - DEBUG - VN ctest-vn-49478286 is not present in Agent 10.0.0.65 2025-10-29 23:35:42,263 - DEBUG - VN ctest-vn-49478286 is not present in Agent 10.0.0.33 2025-10-29 23:35:42,263 - INFO - Validated that VN ctest-vn-49478286 is not in any agent 2025-10-29 23:35:42,293 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49478286 info 2025-10-29 23:35:43,631 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 23:35:43,631 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:11]
2025-10-29 23:35:43,631 - INFO - -------------------------------------------------------------------------------- 2025-10-29 23:35:44,350 - INFO - Deleted project: ctest-TestBasicPolicy-03758568, ID : 87f8807a-d377-4c37-ba89-13f39029c82f