2025-01-10 20:54:30,399 - INFO - Domain Default found not creating 2025-01-10 20:54:30,621 - INFO - Project ctest-TestBasicPolicy-38542488 not found, creating it 2025-01-10 20:54:31,268 - INFO - Created Project:ctest-TestBasicPolicy-38542488, ID : 4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5 2025-01-10 20:54:32,968 - INFO - ================================================================================ 2025-01-10 20:54:32,969 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-10 20:54:32,969 - 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-01-10 20:54:34,306 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.8': '0', '10.20.0.6': '0'}, '10.0.0.32': {'10.20.0.6': '0', '10.20.0.22': '0'}} with 2025-01-10 20:54:34,307 - INFO - Initial checks done. Running the testcase now 2025-01-10 20:54:34,307 - INFO - 2025-01-10 20:54:35,063 - DEBUG - Response for create_network : {'network': {'id': 'fa2ac679-371e-4156-be48-df34c79041b8', 'name': 'ctest-vn-40554038', 'tenant_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'project_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-vn-40554038'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 20:54:35,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '12f3b45b-e83a-4530-a37e-4d9d86065fb5', 'name': '', 'tenant_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'network_id': 'fa2ac679-371e-4156-be48-df34c79041b8', 'ip_version': 4, 'cidr': '65.247.221.128/26', 'allocation_pools': [{'start': '65.247.221.130', 'end': '65.247.221.190'}], 'gateway_ip': '65.247.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.247.221.130', 'tags': [], 'project_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5'}} 2025-01-10 20:54:35,396 - INFO - Created VN ctest-vn-40554038 2025-01-10 20:54:35,415 - DEBUG - VN ctest-vn-40554038 UUID is fa2ac679-371e-4156-be48-df34c79041b8 2025-01-10 20:54:35,798 - DEBUG - Response for create_network : {'network': {'id': '4597cced-6c04-44bd-b886-dd83624603e2', 'name': 'ctest-vn-77975350', 'tenant_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'project_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-vn-77975350'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 20:54:36,049 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7a3818d-e4f1-458a-af35-c067c1d9cd6d', 'name': '', 'tenant_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'network_id': '4597cced-6c04-44bd-b886-dd83624603e2', 'ip_version': 4, 'cidr': '87.215.141.0/26', 'allocation_pools': [{'start': '87.215.141.2', 'end': '87.215.141.62'}], 'gateway_ip': '87.215.141.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.215.141.2', 'tags': [], 'project_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5'}} 2025-01-10 20:54:36,083 - INFO - Created VN ctest-vn-77975350 2025-01-10 20:54:36,099 - DEBUG - VN ctest-vn-77975350 UUID is 4597cced-6c04-44bd-b886-dd83624603e2 2025-01-10 20:54:36,184 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038, 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-38542488:ctest-vn-77975350, 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-01-10 20:54:36,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa2ac679-371e-4156-be48-df34c79041b8', 'name': 'ctest-vn-40554038', 'tenant_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'project_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12f3b45b-e83a-4530-a37e-4d9d86065fb5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-vn-40554038'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-policy-allow-all-98092206']], 'subnet_ipam': [{'subnet_cidr': '65.247.221.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-10 20:54:36,794 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4597cced-6c04-44bd-b886-dd83624603e2', 'name': 'ctest-vn-77975350', 'tenant_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'project_id': '4c3c23cd7d1c4469b27b9a0930d8e8f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e7a3818d-e4f1-458a-af35-c067c1d9cd6d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-vn-77975350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-policy-allow-all-98092206']], 'subnet_ipam': [{'subnet_cidr': '87.215.141.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-10 20:54:36,916 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-10 20:54:37,247 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-10 20:54:37,311 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b8af61ed-606f-497b-8288-916001482160 2025-01-10 20:54:37,356 - DEBUG - Requesting: http://10.0.0.33:8082/project/4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5 2025-01-10 20:54:37,489 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa2ac679-371e-4156-be48-df34c79041b8 2025-01-10 20:54:37,514 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa2ac679-371e-4156-be48-df34c79041b8 2025-01-10 20:54:37,532 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0d3401ea-3a6a-4065-94f2-7caa930a0769 2025-01-10 20:54:37,546 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0d3401ea-3a6a-4065-94f2-7caa930a0769 2025-01-10 20:54:37,559 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/23d6b623-94dc-4318-9a37-8a8175dfb2e7 2025-01-10 20:54:37,571 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 20:54:37,571 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa2ac679-371e-4156-be48-df34c79041b8 2025-01-10 20:54:37,590 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0d3401ea-3a6a-4065-94f2-7caa930a0769 2025-01-10 20:54:37,616 - INFO - Verified VN network id 7 for VN fa2ac679-371e-4156-be48-df34c79041b8 2025-01-10 20:54:37,616 - INFO - Verifications in API Server for VN ctest-vn-40554038 passed 2025-01-10 20:54:37,617 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa2ac679-371e-4156-be48-df34c79041b8 2025-01-10 20:54:37,636 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0d3401ea-3a6a-4065-94f2-7caa930a0769 2025-01-10 20:54:37,650 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0d3401ea-3a6a-4065-94f2-7caa930a0769 2025-01-10 20:54:37,663 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/23d6b623-94dc-4318-9a37-8a8175dfb2e7 2025-01-10 20:54:37,688 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38542488', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18026438682421903702', 'uuid-lslong': '13711454483308888504'}, 'enable': 'true', 'created': '2025-01-10T20:54:34', 'last-modified': '2025-01-10T20:54:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.166111'} 2025-01-10 20:54:37,705 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 20:54:37,715 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38542488', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18026438682421903702', 'uuid-lslong': '13711454483308888504'}, 'enable': 'true', 'created': '2025-01-10T20:54:34', 'last-modified': '2025-01-10T20:54:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.192986'} 2025-01-10 20:54:37,727 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 20:54:37,739 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38542488', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18026438682421903702', 'uuid-lslong': '13711454483308888504'}, 'enable': 'true', 'created': '2025-01-10T20:54:34', 'last-modified': '2025-01-10T20:54:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.203972'} 2025-01-10 20:54:37,750 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 20:54:37,751 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40554038 passed 2025-01-10 20:54:37,751 - DEBUG - ====Verifying policy data for ctest-vn-40554038 in API_Server ====== 2025-01-10 20:54:37,751 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-10 20:54:37,764 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b8af61ed-606f-497b-8288-916001482160 2025-01-10 20:54:37,799 - DEBUG - Requesting: http://10.0.0.33:8082/project/4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5 2025-01-10 20:54:37,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fa2ac679-371e-4156-be48-df34c79041b8 2025-01-10 20:54:37,986 - DEBUG - ==>Verifying data for policy with id: 53007933-3d46-499e-b3fa-da1f7a0f1f2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-policy-allow-all-98092206'] 2025-01-10 20:54:37,986 - INFO - VN ctest-vn-40554038 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-10 20:54:37,986 - DEBUG - Verifying the vn in opserver 2025-01-10 20:54:37,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038 virtual network link through opserver 10.0.0.33 2025-01-10 20:54:37,987 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-10 20:54:38,309 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-10 20:54:38,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038?flat'} 2025-01-10 20:54:38,401 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038 virtual network link through opserver 10.0.0.37 2025-01-10 20:54:38,402 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-01-10 20:54:38,733 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-01-10 20:54:38,816 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038?flat'} 2025-01-10 20:54:38,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038 virtual network link through opserver 10.0.0.36 2025-01-10 20:54:38,817 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-01-10 20:54:39,135 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-01-10 20:54:39,377 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038?flat'} 2025-01-10 20:54:39,377 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038 is found in opserver 2025-01-10 20:54:39,413 - DEBUG - Do not have enough data to verify VN in agent 2025-01-10 20:54:39,432 - DEBUG - VRF ids for VN ctest-vn-40554038: {} 2025-01-10 20:54:39,432 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-10 20:54:39,444 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b8af61ed-606f-497b-8288-916001482160 2025-01-10 20:54:39,462 - DEBUG - Requesting: http://10.0.0.33:8082/project/4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5 2025-01-10 20:54:39,587 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4597cced-6c04-44bd-b886-dd83624603e2 2025-01-10 20:54:39,614 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4597cced-6c04-44bd-b886-dd83624603e2 2025-01-10 20:54:39,628 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfeefbb3-8e27-4d3d-9731-55ead28feaeb 2025-01-10 20:54:39,641 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfeefbb3-8e27-4d3d-9731-55ead28feaeb 2025-01-10 20:54:39,650 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/60bc8adc-c1ca-41ef-a88f-edf828708856 2025-01-10 20:54:39,659 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 20:54:39,659 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4597cced-6c04-44bd-b886-dd83624603e2 2025-01-10 20:54:39,674 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfeefbb3-8e27-4d3d-9731-55ead28feaeb 2025-01-10 20:54:39,704 - INFO - Verified VN network id 8 for VN 4597cced-6c04-44bd-b886-dd83624603e2 2025-01-10 20:54:39,704 - INFO - Verifications in API Server for VN ctest-vn-77975350 passed 2025-01-10 20:54:39,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4597cced-6c04-44bd-b886-dd83624603e2 2025-01-10 20:54:39,735 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfeefbb3-8e27-4d3d-9731-55ead28feaeb 2025-01-10 20:54:39,753 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfeefbb3-8e27-4d3d-9731-55ead28feaeb 2025-01-10 20:54:39,769 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/60bc8adc-c1ca-41ef-a88f-edf828708856 2025-01-10 20:54:39,802 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38542488', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5014702030191871165', 'uuid-lslong': '13296558506217178082'}, 'enable': 'true', 'created': '2025-01-10T20:54:35', 'last-modified': '2025-01-10T20:54:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.054621'} 2025-01-10 20:54:39,825 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 20:54:39,836 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38542488', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5014702030191871165', 'uuid-lslong': '13296558506217178082'}, 'enable': 'true', 'created': '2025-01-10T20:54:35', 'last-modified': '2025-01-10T20:54:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.092082'} 2025-01-10 20:54:39,850 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 20:54:39,865 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38542488', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5014702030191871165', 'uuid-lslong': '13296558506217178082'}, 'enable': 'true', 'created': '2025-01-10T20:54:35', 'last-modified': '2025-01-10T20:54:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.119264'} 2025-01-10 20:54:39,883 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 20:54:39,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77975350 passed 2025-01-10 20:54:39,883 - DEBUG - ====Verifying policy data for ctest-vn-77975350 in API_Server ====== 2025-01-10 20:54:39,883 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-10 20:54:39,893 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b8af61ed-606f-497b-8288-916001482160 2025-01-10 20:54:39,924 - DEBUG - Requesting: http://10.0.0.33:8082/project/4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5 2025-01-10 20:54:40,086 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4597cced-6c04-44bd-b886-dd83624603e2 2025-01-10 20:54:40,101 - DEBUG - ==>Verifying data for policy with id: 53007933-3d46-499e-b3fa-da1f7a0f1f2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38542488', 'ctest-policy-allow-all-98092206'] 2025-01-10 20:54:40,101 - INFO - VN ctest-vn-77975350 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-10 20:54:40,102 - DEBUG - Verifying the vn in opserver 2025-01-10 20:54:40,102 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350 virtual network link through opserver 10.0.0.33 2025-01-10 20:54:40,102 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-10 20:54:40,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350?flat'} 2025-01-10 20:54:40,178 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350 virtual network link through opserver 10.0.0.37 2025-01-10 20:54:40,178 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-01-10 20:54:40,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350?flat'} 2025-01-10 20:54:40,263 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350 virtual network link through opserver 10.0.0.36 2025-01-10 20:54:40,264 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-01-10 20:54:40,369 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350?flat'} 2025-01-10 20:54:40,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-77975350 is found in opserver 2025-01-10 20:54:40,406 - DEBUG - Do not have enough data to verify VN in agent 2025-01-10 20:54:40,424 - DEBUG - VRF ids for VN ctest-vn-77975350: {} 2025-01-10 20:54:40,586 - DEBUG - Services list from nova: [, , , ] 2025-01-10 20:54:42,211 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2599-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2599-1) 2025-01-10 20:54:43,983 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2599-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2599-2) 2025-01-10 20:54:43,984 - INFO - Waiting for VM ctest-TestBasicPolicy-38542488-28398356 to be up.. 2025-01-10 20:54:44,100 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-10 20:54:49,219 - DEBUG - VM is in ACTIVE state now 2025-01-10 20:54:49,219 - INFO - VM name : ctest-TestBasicPolicy-38542488-28398356 2025-01-10 20:54:49,331 - DEBUG - VM ctest-TestBasicPolicy-38542488-28398356 ID is e34d2fd2-cc78-4ba5-9f31-3a0ebc5956fa 2025-01-10 20:54:49,369 - DEBUG - VM ctest-TestBasicPolicy-38542488-28398356 launched on Node an-jenkins-deploy-platform-ansible-os-2599-1 2025-01-10 20:54:49,478 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/e34d2fd2-cc78-4ba5-9f31-3a0ebc5956fa 2025-01-10 20:54:49,809 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/e34d2fd2-cc78-4ba5-9f31-3a0ebc5956fa 2025-01-10 20:54:49,858 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/8011e4bd-fee0-496f-826f-13cf22ec9a99 2025-01-10 20:54:53,154 - 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 1004ms') 2025-01-10 20:54:53,154 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38542488-28398356 failed! 2025-01-10 20:54:53,191 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38542488:ctest-vn-40554038 is 65.247.221.129 and allocation pool is NOT set 2025-01-10 20:54:55,262 - 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.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.07 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.072/3.950/4.829/0.878 ms') 2025-01-10 20:54:55,262 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38542488-28398356 passed 2025-01-10 20:54:55,397 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 20:54:55,397 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38542488-28398356, IP 65.247.221.131, Port 22 2025-01-10 20:54:55,573 - DEBUG - VM ctest-TestBasicPolicy-38542488-28398356 is ready for SSH connections 2025-01-10 20:54:55,573 - INFO - Waiting for VM ctest-TestBasicPolicy-38542488-32782533 to be up.. 2025-01-10 20:54:55,786 - DEBUG - VM is in ACTIVE state now 2025-01-10 20:54:55,786 - INFO - VM name : ctest-TestBasicPolicy-38542488-32782533 2025-01-10 20:54:55,971 - DEBUG - VM ctest-TestBasicPolicy-38542488-32782533 ID is 18a453fa-603a-4297-8297-0f015b826adb 2025-01-10 20:54:55,971 - DEBUG - VM ctest-TestBasicPolicy-38542488-32782533 launched on Node an-jenkins-deploy-platform-ansible-os-2599-2 2025-01-10 20:54:56,164 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/18a453fa-603a-4297-8297-0f015b826adb 2025-01-10 20:54:56,186 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/5ea4fee4-5076-4492-b3e1-7c10ebdb4153 2025-01-10 20:54:57,435 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.396 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.396/2.958/5.521/2.562 ms') 2025-01-10 20:54:57,436 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38542488-32782533 passed 2025-01-10 20:54:57,573 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 20:54:57,573 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38542488-32782533, IP 87.215.141.3, Port 22 2025-01-10 20:54:57,755 - DEBUG - VM ctest-TestBasicPolicy-38542488-32782533 is ready for SSH connections 2025-01-10 20:54:57,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 20:54:57,755 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 87.215.141.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-10 20:54:57,756 - DEBUG - ping -s 56 -c 3 -W 1 87.215.141.3 2025-01-10 20:55:01,938 - DEBUG - PING 87.215.141.3 (87.215.141.3): 56 data bytes 64 bytes from 87.215.141.3: seq=0 ttl=63 time=7.401 ms 64 bytes from 87.215.141.3: seq=1 ttl=63 time=1.386 ms 64 bytes from 87.215.141.3: seq=2 ttl=63 time=1.888 ms --- 87.215.141.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.386/3.558/7.401 ms 2025-01-10 20:55:01,938 - INFO - Ping to IP 87.215.141.3 from VM ctest-TestBasicPolicy-38542488-28398356 passed 2025-01-10 20:55:02,206 - DEBUG - Policy Update Response {"network-policy": {"uuid": "53007933-3d46-499e-b3fa-da1f7a0f1f2b", "href": "http://10.0.0.36:8082/network-policy/53007933-3d46-499e-b3fa-da1f7a0f1f2b"}} 2025-01-10 20:55:02,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 20:55:02,207 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 87.215.141.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-10 20:55:02,207 - DEBUG - ping -s 56 -c 3 -W 1 87.215.141.3 2025-01-10 20:55:05,490 - DEBUG - PING 87.215.141.3 (87.215.141.3): 56 data bytes --- 87.215.141.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-10 20:55:05,490 - WARNING - Ping to IP 87.215.141.3 from VM ctest-TestBasicPolicy-38542488-28398356 failed 2025-01-10 20:55:05,491 - INFO - Deleting VM ctest-TestBasicPolicy-38542488-32782533 2025-01-10 20:55:05,677 - INFO - Deleting VM ctest-TestBasicPolicy-38542488-28398356 2025-01-10 20:55:06,442 - INFO - Deleted policy ctest-policy-allow-all-98092206 2025-01-10 20:55:06,442 - INFO - Deleting VN ctest-vn-77975350 2025-01-10 20:55:06,517 - DEBUG - VN 4597cced-6c04-44bd-b886-dd83624603e2 still in use: Unable to complete operation on network 4597cced-6c04-44bd-b886-dd83624603e2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9c6e2e2a-b9c9-40b8-acc5-d1bbfdd52934'] 2025-01-10 20:55:06,518 - WARNING - Deleting VN ctest-vn-77975350 failed..Will retry 2025-01-10 20:55:08,831 - DEBUG - Response for deleting network () 2025-01-10 20:55:08,831 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfeefbb3-8e27-4d3d-9731-55ead28feaeb 2025-01-10 20:55:08,842 - DEBUG - Response Code: 404 2025-01-10 20:55:08,842 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-10 20:55:08,860 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b8af61ed-606f-497b-8288-916001482160 2025-01-10 20:55:08,874 - DEBUG - Requesting: http://10.0.0.33:8082/project/4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5 2025-01-10 20:55:09,012 - INFO - Validated that VN ctest-vn-77975350 is not found in API Server 2025-01-10 20:55:09,026 - DEBUG - VN ctest-vn-77975350 is not present in Agent 10.0.0.27 2025-01-10 20:55:09,041 - DEBUG - VN ctest-vn-77975350 is not present in Agent 10.0.0.32 2025-01-10 20:55:09,041 - INFO - Validated that VN ctest-vn-77975350 is not in any agent 2025-01-10 20:55:09,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-77975350 info 2025-01-10 20:55:09,096 - INFO - Deleting VN ctest-vn-40554038 2025-01-10 20:55:09,325 - DEBUG - Response for deleting network () 2025-01-10 20:55:09,325 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0d3401ea-3a6a-4065-94f2-7caa930a0769 2025-01-10 20:55:09,332 - DEBUG - Response Code: 404 2025-01-10 20:55:09,332 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-10 20:55:09,339 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b8af61ed-606f-497b-8288-916001482160 2025-01-10 20:55:09,352 - DEBUG - Requesting: http://10.0.0.33:8082/project/4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5 2025-01-10 20:55:09,469 - INFO - Validated that VN ctest-vn-40554038 is not found in API Server 2025-01-10 20:55:09,486 - DEBUG - VN ctest-vn-40554038 is not present in Agent 10.0.0.27 2025-01-10 20:55:09,504 - DEBUG - VN ctest-vn-40554038 is not present in Agent 10.0.0.32 2025-01-10 20:55:09,504 - INFO - Validated that VN ctest-vn-40554038 is not in any agent 2025-01-10 20:55:09,568 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40554038 info 2025-01-10 20:55:10,944 - DEBUG - No XMPP flaps were noticed during the test
2025-01-10 20:55:10,944 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2025-01-10 20:55:10,944 - INFO - -------------------------------------------------------------------------------- 2025-01-10 20:55:11,800 - INFO - Deleted project: ctest-TestBasicPolicy-38542488, ID : 4c3c23cd-7d1c-4469-b27b-9a0930d8e8f5