2025-08-10 21:09:38,721 - INFO - Domain Default found not creating 2025-08-10 21:09:39,068 - INFO - Project ctest-TestBasicPolicy-08340086 not found, creating it 2025-08-10 21:09:39,774 - INFO - Created Project:ctest-TestBasicPolicy-08340086, ID : 4980a65a-50aa-48c0-a28c-82b3ca4e68f8 2025-08-10 21:09:41,280 - INFO - ================================================================================ 2025-08-10 21:09:41,280 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-10 21:09:41,280 - 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-08-10 21:09:42,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.50': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-08-10 21:09:42,522 - INFO - Initial checks done. Running the testcase now 2025-08-10 21:09:42,523 - INFO - 2025-08-10 21:09:43,101 - DEBUG - Response for create_network : {'network': {'id': '568859fb-c10a-4297-b31b-c5790b9a75d6', 'name': 'ctest-vn-83011057', 'tenant_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'project_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-vn-83011057'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 21:09:43,361 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afae9277-e57f-47d1-b087-892fc014bf8e', 'name': '', 'tenant_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'network_id': '568859fb-c10a-4297-b31b-c5790b9a75d6', 'ip_version': 4, 'cidr': '91.203.23.192/26', 'allocation_pools': [{'start': '91.203.23.194', 'end': '91.203.23.254'}], 'gateway_ip': '91.203.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.203.23.194', 'tags': [], 'project_id': '4980a65a50aa48c0a28c82b3ca4e68f8'}} 2025-08-10 21:09:43,382 - INFO - Created VN ctest-vn-83011057 2025-08-10 21:09:43,395 - DEBUG - VN ctest-vn-83011057 UUID is 568859fb-c10a-4297-b31b-c5790b9a75d6 2025-08-10 21:09:43,700 - DEBUG - Response for create_network : {'network': {'id': 'f590b399-627f-4835-bac4-a21c7fd05df8', 'name': 'ctest-vn-14601129', 'tenant_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'project_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-vn-14601129'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 21:09:43,920 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd543e88-0089-4561-8a2d-ef5700a48286', 'name': '', 'tenant_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'network_id': 'f590b399-627f-4835-bac4-a21c7fd05df8', 'ip_version': 4, 'cidr': '203.250.238.192/26', 'allocation_pools': [{'start': '203.250.238.194', 'end': '203.250.238.254'}], 'gateway_ip': '203.250.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.250.238.194', 'tags': [], 'project_id': '4980a65a50aa48c0a28c82b3ca4e68f8'}} 2025-08-10 21:09:43,942 - INFO - Created VN ctest-vn-14601129 2025-08-10 21:09:43,952 - DEBUG - VN ctest-vn-14601129 UUID is f590b399-627f-4835-bac4-a21c7fd05df8 2025-08-10 21:09:44,056 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057, 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-08340086:ctest-vn-14601129, 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-08-10 21:09:44,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '568859fb-c10a-4297-b31b-c5790b9a75d6', 'name': 'ctest-vn-83011057', 'tenant_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'project_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afae9277-e57f-47d1-b087-892fc014bf8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-vn-83011057'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-policy-allow-all-11563012']], 'subnet_ipam': [{'subnet_cidr': '91.203.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 21:09:44,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f590b399-627f-4835-bac4-a21c7fd05df8', 'name': 'ctest-vn-14601129', 'tenant_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'project_id': '4980a65a50aa48c0a28c82b3ca4e68f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd543e88-0089-4561-8a2d-ef5700a48286'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-vn-14601129'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-policy-allow-all-11563012']], 'subnet_ipam': [{'subnet_cidr': '203.250.238.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 21:09:44,639 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:09:44,939 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:09:44,965 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:09:44,979 - DEBUG - Requesting: http://10.0.0.48:8082/project/4980a65a-50aa-48c0-a28c-82b3ca4e68f8 2025-08-10 21:09:45,066 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/568859fb-c10a-4297-b31b-c5790b9a75d6 2025-08-10 21:09:45,077 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/568859fb-c10a-4297-b31b-c5790b9a75d6 2025-08-10 21:09:45,085 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/13f772f3-8aa9-42d2-b019-49b9bacafff1 2025-08-10 21:09:45,092 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/13f772f3-8aa9-42d2-b019-49b9bacafff1 2025-08-10 21:09:45,098 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b0115afc-4d9c-4792-9ed4-3787e56fcb98 2025-08-10 21:09:45,104 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:09:45,104 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/568859fb-c10a-4297-b31b-c5790b9a75d6 2025-08-10 21:09:45,113 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/13f772f3-8aa9-42d2-b019-49b9bacafff1 2025-08-10 21:09:45,126 - INFO - Verified VN network id 11 for VN 568859fb-c10a-4297-b31b-c5790b9a75d6 2025-08-10 21:09:45,126 - INFO - Verifications in API Server for VN ctest-vn-83011057 passed 2025-08-10 21:09:45,126 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/568859fb-c10a-4297-b31b-c5790b9a75d6 2025-08-10 21:09:45,134 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/13f772f3-8aa9-42d2-b019-49b9bacafff1 2025-08-10 21:09:45,141 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/13f772f3-8aa9-42d2-b019-49b9bacafff1 2025-08-10 21:09:45,147 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b0115afc-4d9c-4792-9ed4-3787e56fcb98 2025-08-10 21:09:45,159 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08340086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6235332621904790167', 'uuid-lslong': '12906126280836675030'}, 'enable': 'true', 'created': '2025-08-10T21:09:43', 'last-modified': '2025-08-10T21:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.834051'} 2025-08-10 21:09:45,165 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:09:45,170 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08340086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6235332621904790167', 'uuid-lslong': '12906126280836675030'}, 'enable': 'true', 'created': '2025-08-10T21:09:43', 'last-modified': '2025-08-10T21:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.843213'} 2025-08-10 21:09:45,176 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:09:45,181 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08340086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6235332621904790167', 'uuid-lslong': '12906126280836675030'}, 'enable': 'true', 'created': '2025-08-10T21:09:43', 'last-modified': '2025-08-10T21:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.857310'} 2025-08-10 21:09:45,187 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:09:45,187 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83011057 passed 2025-08-10 21:09:45,187 - DEBUG - ====Verifying policy data for ctest-vn-83011057 in API_Server ====== 2025-08-10 21:09:45,187 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:09:45,192 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:09:45,202 - DEBUG - Requesting: http://10.0.0.48:8082/project/4980a65a-50aa-48c0-a28c-82b3ca4e68f8 2025-08-10 21:09:45,287 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/568859fb-c10a-4297-b31b-c5790b9a75d6 2025-08-10 21:09:45,296 - DEBUG - ==>Verifying data for policy with id: 5d422118-54f9-400f-af29-4caf6c63471a, fqn: ['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-policy-allow-all-11563012'] 2025-08-10 21:09:45,296 - INFO - VN ctest-vn-83011057 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 21:09:45,296 - DEBUG - Verifying the vn in opserver 2025-08-10 21:09:45,296 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 virtual network link through opserver 10.0.0.48 2025-08-10 21:09:45,296 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-10 21:09:45,585 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-10 21:09:45,632 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057?flat'} 2025-08-10 21:09:45,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 virtual network link through opserver 10.0.0.38 2025-08-10 21:09:45,632 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-10 21:09:45,918 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-10 21:09:45,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057?flat'} 2025-08-10 21:09:45,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 virtual network link through opserver 10.0.0.49 2025-08-10 21:09:45,963 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 21:09:46,251 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 21:09:46,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057?flat'} 2025-08-10 21:09:46,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is found in opserver 2025-08-10 21:09:46,318 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 21:09:46,328 - DEBUG - VRF ids for VN ctest-vn-83011057: {} 2025-08-10 21:09:46,328 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:09:46,333 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:09:46,344 - DEBUG - Requesting: http://10.0.0.48:8082/project/4980a65a-50aa-48c0-a28c-82b3ca4e68f8 2025-08-10 21:09:46,418 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f590b399-627f-4835-bac4-a21c7fd05df8 2025-08-10 21:09:46,436 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f590b399-627f-4835-bac4-a21c7fd05df8 2025-08-10 21:09:46,445 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/48fe3209-8b38-49b6-a370-eb6755e836c6 2025-08-10 21:09:46,453 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/48fe3209-8b38-49b6-a370-eb6755e836c6 2025-08-10 21:09:46,459 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/638c267a-9fb3-4447-9038-9233c2f7cc53 2025-08-10 21:09:46,465 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 21:09:46,465 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f590b399-627f-4835-bac4-a21c7fd05df8 2025-08-10 21:09:46,473 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/48fe3209-8b38-49b6-a370-eb6755e836c6 2025-08-10 21:09:46,487 - INFO - Verified VN network id 12 for VN f590b399-627f-4835-bac4-a21c7fd05df8 2025-08-10 21:09:46,487 - INFO - Verifications in API Server for VN ctest-vn-14601129 passed 2025-08-10 21:09:46,487 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f590b399-627f-4835-bac4-a21c7fd05df8 2025-08-10 21:09:46,495 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/48fe3209-8b38-49b6-a370-eb6755e836c6 2025-08-10 21:09:46,502 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/48fe3209-8b38-49b6-a370-eb6755e836c6 2025-08-10 21:09:46,508 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/638c267a-9fb3-4447-9038-9233c2f7cc53 2025-08-10 21:09:46,519 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08340086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17694840407302555701', 'uuid-lslong': '13458059829777030648'}, 'enable': 'true', 'created': '2025-08-10T21:09:43', 'last-modified': '2025-08-10T21:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.011756'} 2025-08-10 21:09:46,525 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 21:09:46,530 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08340086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17694840407302555701', 'uuid-lslong': '13458059829777030648'}, 'enable': 'true', 'created': '2025-08-10T21:09:43', 'last-modified': '2025-08-10T21:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.015979'} 2025-08-10 21:09:46,536 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 21:09:46,541 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08340086', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17694840407302555701', 'uuid-lslong': '13458059829777030648'}, 'enable': 'true', 'created': '2025-08-10T21:09:43', 'last-modified': '2025-08-10T21:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.030059'} 2025-08-10 21:09:46,547 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-10 21:09:46,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14601129 passed 2025-08-10 21:09:46,547 - DEBUG - ====Verifying policy data for ctest-vn-14601129 in API_Server ====== 2025-08-10 21:09:46,547 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:09:46,552 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:09:46,562 - DEBUG - Requesting: http://10.0.0.48:8082/project/4980a65a-50aa-48c0-a28c-82b3ca4e68f8 2025-08-10 21:09:46,643 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f590b399-627f-4835-bac4-a21c7fd05df8 2025-08-10 21:09:46,653 - DEBUG - ==>Verifying data for policy with id: 5d422118-54f9-400f-af29-4caf6c63471a, fqn: ['default-domain', 'ctest-TestBasicPolicy-08340086', 'ctest-policy-allow-all-11563012'] 2025-08-10 21:09:46,653 - INFO - VN ctest-vn-14601129 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 21:09:46,653 - DEBUG - Verifying the vn in opserver 2025-08-10 21:09:46,653 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129 virtual network link through opserver 10.0.0.48 2025-08-10 21:09:46,653 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-10 21:09:46,718 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129?flat'} 2025-08-10 21:09:46,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129 virtual network link through opserver 10.0.0.38 2025-08-10 21:09:46,718 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-10 21:09:46,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129?flat'} 2025-08-10 21:09:46,769 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129 virtual network link through opserver 10.0.0.49 2025-08-10 21:09:46,769 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 21:09:46,817 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129?flat'} 2025-08-10 21:09:46,817 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-14601129 is found in opserver 2025-08-10 21:09:46,837 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 21:09:46,848 - DEBUG - VRF ids for VN ctest-vn-14601129: {} 2025-08-10 21:09:46,897 - DEBUG - Services list from nova: [, , , ] 2025-08-10 21:09:47,813 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3790-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3790-1) 2025-08-10 21:09:49,025 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3790-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3790-2) 2025-08-10 21:09:49,026 - INFO - Waiting for VM ctest-TestBasicPolicy-08340086-25237592 to be up.. 2025-08-10 21:09:49,090 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-10 21:09:54,162 - DEBUG - VM is in ACTIVE state now 2025-08-10 21:09:54,162 - INFO - VM name : ctest-TestBasicPolicy-08340086-25237592 2025-08-10 21:09:54,240 - DEBUG - VM ctest-TestBasicPolicy-08340086-25237592 ID is cf8a81ed-d045-4b29-ae92-3fd740a58115 2025-08-10 21:09:54,269 - DEBUG - VM ctest-TestBasicPolicy-08340086-25237592 launched on Node an-jenkins-deploy-platform-ansible-os-3790-1 2025-08-10 21:09:54,353 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/cf8a81ed-d045-4b29-ae92-3fd740a58115 2025-08-10 21:09:54,644 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/cf8a81ed-d045-4b29-ae92-3fd740a58115 2025-08-10 21:09:54,675 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e0161a4f-5e2e-45c7-9cc7-eaca72d71734 2025-08-10 21:09:57,896 - 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-08-10 21:09:57,896 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 failed! 2025-08-10 21:09:57,908 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is 91.203.23.193 and allocation pool is NOT set 2025-08-10 21:10:01,986 - 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-08-10 21:10:01,986 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 failed! 2025-08-10 21:10:01,999 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is 91.203.23.193 and allocation pool is NOT set 2025-08-10 21:10:06,088 - 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 1028ms') 2025-08-10 21:10:06,089 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 failed! 2025-08-10 21:10:06,101 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is 91.203.23.193 and allocation pool is NOT set 2025-08-10 21:10:10,185 - 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 1028ms') 2025-08-10 21:10:10,185 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 failed! 2025-08-10 21:10:10,199 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is 91.203.23.193 and allocation pool is NOT set 2025-08-10 21:10:14,278 - 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 1020ms') 2025-08-10 21:10:14,278 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 failed! 2025-08-10 21:10:14,292 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is 91.203.23.193 and allocation pool is NOT set 2025-08-10 21:10:18,382 - 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 1028ms') 2025-08-10 21:10:18,382 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 failed! 2025-08-10 21:10:18,395 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is 91.203.23.193 and allocation pool is NOT set 2025-08-10 21:10:22,476 - 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 1016ms') 2025-08-10 21:10:22,476 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 failed! 2025-08-10 21:10:22,492 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08340086:ctest-vn-83011057 is 91.203.23.193 and allocation pool is NOT set 2025-08-10 21:10:24,555 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.72 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.721/4.580/6.440/1.859 ms') 2025-08-10 21:10:24,556 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-25237592 passed 2025-08-10 21:10:24,666 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:10:24,666 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08340086-25237592, IP 91.203.23.195, Port 22 2025-08-10 21:10:24,721 - 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-08-10 21:10:24,795 - DEBUG - VM ctest-TestBasicPolicy-08340086-25237592 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:10:29,796 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:10:29,796 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08340086-25237592, IP 91.203.23.195, Port 22 2025-08-10 21:10:29,853 - 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-08-10 21:10:29,944 - DEBUG - VM ctest-TestBasicPolicy-08340086-25237592 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:10:34,945 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:10:34,945 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08340086-25237592, IP 91.203.23.195, Port 22 2025-08-10 21:10:35,000 - 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-08-10 21:10:35,076 - DEBUG - VM ctest-TestBasicPolicy-08340086-25237592 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 21:10:40,076 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:10:40,077 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08340086-25237592, IP 91.203.23.195, Port 22 2025-08-10 21:10:40,236 - DEBUG - VM ctest-TestBasicPolicy-08340086-25237592 is ready for SSH connections 2025-08-10 21:10:40,236 - INFO - Waiting for VM ctest-TestBasicPolicy-08340086-74873105 to be up.. 2025-08-10 21:10:40,314 - DEBUG - VM is in ACTIVE state now 2025-08-10 21:10:40,315 - INFO - VM name : ctest-TestBasicPolicy-08340086-74873105 2025-08-10 21:10:40,388 - DEBUG - VM ctest-TestBasicPolicy-08340086-74873105 ID is dbffa9d1-0e29-458a-aea2-967dddb8408a 2025-08-10 21:10:40,389 - DEBUG - VM ctest-TestBasicPolicy-08340086-74873105 launched on Node an-jenkins-deploy-platform-ansible-os-3790-2 2025-08-10 21:10:40,454 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/dbffa9d1-0e29-458a-aea2-967dddb8408a 2025-08-10 21:10:40,466 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/65906ce7-9f92-4a29-98c7-fb6c9cf1f134 2025-08-10 21:10:41,686 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.813 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.813/1.907/3.001/1.094 ms') 2025-08-10 21:10:41,686 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08340086-74873105 passed 2025-08-10 21:10:41,797 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:10:41,797 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08340086-74873105, IP 203.250.238.195, Port 22 2025-08-10 21:10:41,964 - DEBUG - VM ctest-TestBasicPolicy-08340086-74873105 is ready for SSH connections 2025-08-10 21:10:41,965 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:10:41,965 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.250.238.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-10 21:10:41,965 - DEBUG - ping -s 56 -c 3 -W 1 203.250.238.195 2025-08-10 21:11:01,583 - DEBUG - PING 203.250.238.195 (203.250.238.195) 56(84) bytes of data. 64 bytes from 203.250.238.195: icmp_req=1 ttl=63 time=7.40 ms 64 bytes from 203.250.238.195: icmp_req=2 ttl=63 time=1.11 ms 64 bytes from 203.250.238.195: icmp_req=3 ttl=63 time=1.58 ms --- 203.250.238.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 1.112/3.369/7.409/2.863 ms 2025-08-10 21:11:01,583 - INFO - Ping to IP 203.250.238.195 from VM ctest-TestBasicPolicy-08340086-25237592 passed 2025-08-10 21:11:01,780 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5d422118-54f9-400f-af29-4caf6c63471a", "href": "http://10.0.0.49:8082/network-policy/5d422118-54f9-400f-af29-4caf6c63471a"}} 2025-08-10 21:11:01,780 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 21:11:01,780 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.250.238.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-10 21:11:01,781 - DEBUG - ping -s 56 -c 3 -W 1 203.250.238.195 2025-08-10 21:11:05,337 - DEBUG - PING 203.250.238.195 (203.250.238.195) 56(84) bytes of data. 64 bytes from 203.250.238.195: icmp_req=1 ttl=63 time=2.98 ms --- 203.250.238.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2003ms rtt min/avg/max/mdev = 2.989/2.989/2.989/0.000 ms 2025-08-10 21:11:05,338 - WARNING - Ping to IP 203.250.238.195 from VM ctest-TestBasicPolicy-08340086-25237592 failed 2025-08-10 21:11:05,338 - INFO - Deleting VM ctest-TestBasicPolicy-08340086-74873105 2025-08-10 21:11:05,406 - INFO - Deleting VM ctest-TestBasicPolicy-08340086-25237592 2025-08-10 21:11:05,785 - INFO - Deleted policy ctest-policy-allow-all-11563012 2025-08-10 21:11:05,786 - INFO - Deleting VN ctest-vn-14601129 2025-08-10 21:11:05,820 - DEBUG - VN f590b399-627f-4835-bac4-a21c7fd05df8 still in use: Unable to complete operation on network f590b399-627f-4835-bac4-a21c7fd05df8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bd301f9f-0d0a-4480-9e9f-a1bb83102008'] 2025-08-10 21:11:05,820 - WARNING - Deleting VN ctest-vn-14601129 failed..Will retry 2025-08-10 21:11:07,949 - DEBUG - Response for deleting network () 2025-08-10 21:11:07,949 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/48fe3209-8b38-49b6-a370-eb6755e836c6 2025-08-10 21:11:07,955 - DEBUG - Response Code: 404 2025-08-10 21:11:07,955 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:11:07,962 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:11:07,977 - DEBUG - Requesting: http://10.0.0.48:8082/project/4980a65a-50aa-48c0-a28c-82b3ca4e68f8 2025-08-10 21:11:08,064 - INFO - Validated that VN ctest-vn-14601129 is not found in API Server 2025-08-10 21:11:08,074 - DEBUG - VN ctest-vn-14601129 is not present in Agent 10.0.0.254 2025-08-10 21:11:08,084 - DEBUG - VN ctest-vn-14601129 is not present in Agent 10.0.0.50 2025-08-10 21:11:08,084 - INFO - Validated that VN ctest-vn-14601129 is not in any agent 2025-08-10 21:11:08,114 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14601129 info 2025-08-10 21:11:08,114 - INFO - Deleting VN ctest-vn-83011057 2025-08-10 21:11:08,230 - DEBUG - Response for deleting network () 2025-08-10 21:11:08,230 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/13f772f3-8aa9-42d2-b019-49b9bacafff1 2025-08-10 21:11:08,235 - DEBUG - Response Code: 404 2025-08-10 21:11:08,235 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:11:08,239 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:11:08,254 - DEBUG - Requesting: http://10.0.0.48:8082/project/4980a65a-50aa-48c0-a28c-82b3ca4e68f8 2025-08-10 21:11:08,332 - INFO - Validated that VN ctest-vn-83011057 is not found in API Server 2025-08-10 21:11:08,343 - DEBUG - VN ctest-vn-83011057 is not present in Agent 10.0.0.254 2025-08-10 21:11:08,355 - DEBUG - VN ctest-vn-83011057 is not present in Agent 10.0.0.50 2025-08-10 21:11:08,355 - INFO - Validated that VN ctest-vn-83011057 is not in any agent 2025-08-10 21:11:08,386 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83011057 info 2025-08-10 21:11:09,627 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 21:11:09,627 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:28]
2025-08-10 21:11:09,627 - INFO - -------------------------------------------------------------------------------- 2025-08-10 21:11:10,312 - INFO - Deleted project: ctest-TestBasicPolicy-08340086, ID : 4980a65a-50aa-48c0-a28c-82b3ca4e68f8