2025-09-18 02:27:02,632 - INFO - Domain Default found not creating 2025-09-18 02:27:02,826 - INFO - Project ctest-TestBasicPolicy-99497760 not found, creating it 2025-09-18 02:27:03,403 - INFO - Created Project:ctest-TestBasicPolicy-99497760, ID : b7377416-652e-4d65-bcea-7df03245cb39 2025-09-18 02:27:05,092 - INFO - ================================================================================ 2025-09-18 02:27:05,092 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-18 02:27:05,092 - 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-09-18 02:27:06,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-09-18 02:27:06,359 - INFO - Initial checks done. Running the testcase now 2025-09-18 02:27:06,359 - INFO - 2025-09-18 02:27:07,082 - DEBUG - Response for create_network : {'network': {'id': '1b031d96-f8af-4060-8581-09c484f62de6', 'name': 'ctest-vn-80714711', 'tenant_id': 'b7377416652e4d65bcea7df03245cb39', 'project_id': 'b7377416652e4d65bcea7df03245cb39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-vn-80714711'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 02:27:07,372 - DEBUG - Response for create_subnet : {'subnet': {'id': '201b3a40-9006-4c5b-8b84-61e69316252d', 'name': '', 'tenant_id': 'b7377416652e4d65bcea7df03245cb39', 'network_id': '1b031d96-f8af-4060-8581-09c484f62de6', 'ip_version': 4, 'cidr': '4.96.162.128/26', 'allocation_pools': [{'start': '4.96.162.130', 'end': '4.96.162.190'}], 'gateway_ip': '4.96.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.96.162.130', 'tags': [], 'project_id': 'b7377416652e4d65bcea7df03245cb39'}} 2025-09-18 02:27:07,399 - INFO - Created VN ctest-vn-80714711 2025-09-18 02:27:07,412 - DEBUG - VN ctest-vn-80714711 UUID is 1b031d96-f8af-4060-8581-09c484f62de6 2025-09-18 02:27:07,785 - DEBUG - Response for create_network : {'network': {'id': '6975f37a-2709-4fd3-9dc5-a3968385cce3', 'name': 'ctest-vn-11228574', 'tenant_id': 'b7377416652e4d65bcea7df03245cb39', 'project_id': 'b7377416652e4d65bcea7df03245cb39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-vn-11228574'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 02:27:07,995 - DEBUG - Response for create_subnet : {'subnet': {'id': 'deea2536-97b7-4a5d-8365-ab1db0fde8fa', 'name': '', 'tenant_id': 'b7377416652e4d65bcea7df03245cb39', 'network_id': '6975f37a-2709-4fd3-9dc5-a3968385cce3', 'ip_version': 4, 'cidr': '55.196.99.192/26', 'allocation_pools': [{'start': '55.196.99.194', 'end': '55.196.99.254'}], 'gateway_ip': '55.196.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.196.99.194', 'tags': [], 'project_id': 'b7377416652e4d65bcea7df03245cb39'}} 2025-09-18 02:27:08,022 - INFO - Created VN ctest-vn-11228574 2025-09-18 02:27:08,032 - DEBUG - VN ctest-vn-11228574 UUID is 6975f37a-2709-4fd3-9dc5-a3968385cce3 2025-09-18 02:27:08,114 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711, 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-99497760:ctest-vn-11228574, 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-09-18 02:27:08,446 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b031d96-f8af-4060-8581-09c484f62de6', 'name': 'ctest-vn-80714711', 'tenant_id': 'b7377416652e4d65bcea7df03245cb39', 'project_id': 'b7377416652e4d65bcea7df03245cb39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['201b3a40-9006-4c5b-8b84-61e69316252d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-vn-80714711'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-policy-allow-all-46712405']], 'subnet_ipam': [{'subnet_cidr': '4.96.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 02:27:08,654 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6975f37a-2709-4fd3-9dc5-a3968385cce3', 'name': 'ctest-vn-11228574', 'tenant_id': 'b7377416652e4d65bcea7df03245cb39', 'project_id': 'b7377416652e4d65bcea7df03245cb39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['deea2536-97b7-4a5d-8365-ab1db0fde8fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-vn-11228574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-policy-allow-all-46712405']], 'subnet_ipam': [{'subnet_cidr': '55.196.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 02:27:08,744 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:27:09,154 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:27:09,187 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:27:09,202 - DEBUG - Requesting: http://10.0.0.56:8082/project/b7377416-652e-4d65-bcea-7df03245cb39 2025-09-18 02:27:09,298 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1b031d96-f8af-4060-8581-09c484f62de6 2025-09-18 02:27:09,311 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1b031d96-f8af-4060-8581-09c484f62de6 2025-09-18 02:27:09,321 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f4d3a87a-3a7d-496a-bf8a-c648eda5e115 2025-09-18 02:27:09,331 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f4d3a87a-3a7d-496a-bf8a-c648eda5e115 2025-09-18 02:27:09,338 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/6323973e-721b-46c3-b869-9dcf3abf775f 2025-09-18 02:27:09,346 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:27:09,346 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1b031d96-f8af-4060-8581-09c484f62de6 2025-09-18 02:27:09,357 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f4d3a87a-3a7d-496a-bf8a-c648eda5e115 2025-09-18 02:27:09,377 - INFO - Verified VN network id 12 for VN 1b031d96-f8af-4060-8581-09c484f62de6 2025-09-18 02:27:09,378 - INFO - Verifications in API Server for VN ctest-vn-80714711 passed 2025-09-18 02:27:09,378 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1b031d96-f8af-4060-8581-09c484f62de6 2025-09-18 02:27:09,389 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f4d3a87a-3a7d-496a-bf8a-c648eda5e115 2025-09-18 02:27:09,397 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f4d3a87a-3a7d-496a-bf8a-c648eda5e115 2025-09-18 02:27:09,405 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/6323973e-721b-46c3-b869-9dcf3abf775f 2025-09-18 02:27:09,418 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99497760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1946431998208720992', 'uuid-lslong': '9619981018689056230'}, 'enable': 'true', 'created': '2025-09-18T02:27:07', 'last-modified': '2025-09-18T02:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024700'} 2025-09-18 02:27:09,424 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:27:09,429 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99497760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1946431998208720992', 'uuid-lslong': '9619981018689056230'}, 'enable': 'true', 'created': '2025-09-18T02:27:07', 'last-modified': '2025-09-18T02:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035898'} 2025-09-18 02:27:09,435 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:27:09,440 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99497760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1946431998208720992', 'uuid-lslong': '9619981018689056230'}, 'enable': 'true', 'created': '2025-09-18T02:27:07', 'last-modified': '2025-09-18T02:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047570'} 2025-09-18 02:27:09,446 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:27:09,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80714711 passed 2025-09-18 02:27:09,446 - DEBUG - ====Verifying policy data for ctest-vn-80714711 in API_Server ====== 2025-09-18 02:27:09,446 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:27:09,453 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:27:09,465 - DEBUG - Requesting: http://10.0.0.56:8082/project/b7377416-652e-4d65-bcea-7df03245cb39 2025-09-18 02:27:09,568 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1b031d96-f8af-4060-8581-09c484f62de6 2025-09-18 02:27:09,579 - DEBUG - ==>Verifying data for policy with id: fd2b6414-b851-42bc-97c6-249c749fb816, fqn: ['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-policy-allow-all-46712405'] 2025-09-18 02:27:09,579 - INFO - VN ctest-vn-80714711 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 02:27:09,579 - DEBUG - Verifying the vn in opserver 2025-09-18 02:27:09,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 virtual network link through opserver 10.0.0.56 2025-09-18 02:27:09,580 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-09-18 02:27:09,921 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-09-18 02:27:09,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711?flat'} 2025-09-18 02:27:09,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 virtual network link through opserver 10.0.0.22 2025-09-18 02:27:09,986 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-18 02:27:10,337 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-18 02:27:10,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711?flat'} 2025-09-18 02:27:10,404 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 virtual network link through opserver 10.0.0.41 2025-09-18 02:27:10,405 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-18 02:27:10,763 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-18 02:27:10,841 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711?flat'} 2025-09-18 02:27:10,841 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is found in opserver 2025-09-18 02:27:10,870 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 02:27:10,880 - DEBUG - VRF ids for VN ctest-vn-80714711: {} 2025-09-18 02:27:10,880 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:27:10,888 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:27:10,903 - DEBUG - Requesting: http://10.0.0.56:8082/project/b7377416-652e-4d65-bcea-7df03245cb39 2025-09-18 02:27:11,004 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6975f37a-2709-4fd3-9dc5-a3968385cce3 2025-09-18 02:27:11,022 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6975f37a-2709-4fd3-9dc5-a3968385cce3 2025-09-18 02:27:11,034 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46681055-6f4c-4e2c-9f79-0a976f6b78dc 2025-09-18 02:27:11,042 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46681055-6f4c-4e2c-9f79-0a976f6b78dc 2025-09-18 02:27:11,051 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/50014914-5b1c-42e5-98fc-992ab0d70139 2025-09-18 02:27:11,059 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-18 02:27:11,059 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6975f37a-2709-4fd3-9dc5-a3968385cce3 2025-09-18 02:27:11,071 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46681055-6f4c-4e2c-9f79-0a976f6b78dc 2025-09-18 02:27:11,088 - INFO - Verified VN network id 13 for VN 6975f37a-2709-4fd3-9dc5-a3968385cce3 2025-09-18 02:27:11,088 - INFO - Verifications in API Server for VN ctest-vn-11228574 passed 2025-09-18 02:27:11,088 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6975f37a-2709-4fd3-9dc5-a3968385cce3 2025-09-18 02:27:11,101 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46681055-6f4c-4e2c-9f79-0a976f6b78dc 2025-09-18 02:27:11,110 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46681055-6f4c-4e2c-9f79-0a976f6b78dc 2025-09-18 02:27:11,119 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/50014914-5b1c-42e5-98fc-992ab0d70139 2025-09-18 02:27:11,133 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99497760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7599247652224061395', 'uuid-lslong': '11368672701213691107'}, 'enable': 'true', 'created': '2025-09-18T02:27:07', 'last-modified': '2025-09-18T02:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.514811'} 2025-09-18 02:27:11,139 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-18 02:27:11,145 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99497760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7599247652224061395', 'uuid-lslong': '11368672701213691107'}, 'enable': 'true', 'created': '2025-09-18T02:27:07', 'last-modified': '2025-09-18T02:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.532501'} 2025-09-18 02:27:11,152 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-18 02:27:11,157 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99497760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7599247652224061395', 'uuid-lslong': '11368672701213691107'}, 'enable': 'true', 'created': '2025-09-18T02:27:07', 'last-modified': '2025-09-18T02:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.540606'} 2025-09-18 02:27:11,163 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-18 02:27:11,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11228574 passed 2025-09-18 02:27:11,164 - DEBUG - ====Verifying policy data for ctest-vn-11228574 in API_Server ====== 2025-09-18 02:27:11,164 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:27:11,170 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:27:11,183 - DEBUG - Requesting: http://10.0.0.56:8082/project/b7377416-652e-4d65-bcea-7df03245cb39 2025-09-18 02:27:11,292 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6975f37a-2709-4fd3-9dc5-a3968385cce3 2025-09-18 02:27:11,306 - DEBUG - ==>Verifying data for policy with id: fd2b6414-b851-42bc-97c6-249c749fb816, fqn: ['default-domain', 'ctest-TestBasicPolicy-99497760', 'ctest-policy-allow-all-46712405'] 2025-09-18 02:27:11,307 - INFO - VN ctest-vn-11228574 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 02:27:11,307 - DEBUG - Verifying the vn in opserver 2025-09-18 02:27:11,307 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574 virtual network link through opserver 10.0.0.56 2025-09-18 02:27:11,307 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-09-18 02:27:11,378 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574?flat'} 2025-09-18 02:27:11,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574 virtual network link through opserver 10.0.0.22 2025-09-18 02:27:11,380 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-18 02:27:11,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574?flat'} 2025-09-18 02:27:11,451 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574 virtual network link through opserver 10.0.0.41 2025-09-18 02:27:11,451 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-18 02:27:11,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574?flat'} 2025-09-18 02:27:11,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-11228574 is found in opserver 2025-09-18 02:27:11,538 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 02:27:11,548 - DEBUG - VRF ids for VN ctest-vn-11228574: {} 2025-09-18 02:27:11,612 - DEBUG - Services list from nova: [, , , ] 2025-09-18 02:27:12,877 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4130-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4130-1) 2025-09-18 02:27:14,386 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4130-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4130-2) 2025-09-18 02:27:14,386 - INFO - Waiting for VM ctest-TestBasicPolicy-99497760-68845837 to be up.. 2025-09-18 02:27:14,483 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-18 02:27:19,583 - DEBUG - VM is in ACTIVE state now 2025-09-18 02:27:19,583 - INFO - VM name : ctest-TestBasicPolicy-99497760-68845837 2025-09-18 02:27:19,694 - DEBUG - VM ctest-TestBasicPolicy-99497760-68845837 ID is 73b49ba6-efad-4a80-9bbd-caa5dd85547d 2025-09-18 02:27:19,725 - DEBUG - VM ctest-TestBasicPolicy-99497760-68845837 launched on Node an-jenkins-deploy-platform-ansible-os-4130-1 2025-09-18 02:27:19,834 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/73b49ba6-efad-4a80-9bbd-caa5dd85547d 2025-09-18 02:27:20,195 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/73b49ba6-efad-4a80-9bbd-caa5dd85547d 2025-09-18 02:27:20,232 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/dbf6388d-d280-4a34-9b0f-c77444c986ef 2025-09-18 02:27:23,403 - 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 1010ms') 2025-09-18 02:27:23,403 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 failed! 2025-09-18 02:27:23,417 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is 4.96.162.129 and allocation pool is NOT set 2025-09-18 02:27:27,495 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2025-09-18 02:27:27,495 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 failed! 2025-09-18 02:27:27,509 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is 4.96.162.129 and allocation pool is NOT set 2025-09-18 02:27:31,597 - 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-09-18 02:27:31,597 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 failed! 2025-09-18 02:27:31,611 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is 4.96.162.129 and allocation pool is NOT set 2025-09-18 02:27:35,693 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2025-09-18 02:27:35,693 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 failed! 2025-09-18 02:27:35,707 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is 4.96.162.129 and allocation pool is NOT set 2025-09-18 02:27:39,795 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-09-18 02:27:39,795 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 failed! 2025-09-18 02:27:39,810 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is 4.96.162.129 and allocation pool is NOT set 2025-09-18 02:27:43,887 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-09-18 02:27:43,887 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 failed! 2025-09-18 02:27:43,901 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is 4.96.162.129 and allocation pool is NOT set 2025-09-18 02:27:47,981 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1014ms') 2025-09-18 02:27:47,981 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 failed! 2025-09-18 02:27:47,995 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99497760:ctest-vn-80714711 is 4.96.162.129 and allocation pool is NOT set 2025-09-18 02:27:52,072 - 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=11.0 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1019ms\r\nrtt min/avg/max/mdev = 11.027/11.027/11.027/0.000 ms') 2025-09-18 02:27:52,072 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-68845837 passed 2025-09-18 02:27:52,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:27:52,143 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-68845837, IP 4.96.162.131, Port 22 2025-09-18 02:27:52,211 - 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-09-18 02:27:52,317 - DEBUG - VM ctest-TestBasicPolicy-99497760-68845837 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-18 02:27:57,318 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:27:57,318 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-68845837, IP 4.96.162.131, Port 22 2025-09-18 02:27:57,388 - 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-09-18 02:27:57,489 - DEBUG - VM ctest-TestBasicPolicy-99497760-68845837 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-18 02:28:02,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:28:02,489 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-68845837, IP 4.96.162.131, Port 22 2025-09-18 02:28:02,555 - 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-09-18 02:28:02,650 - DEBUG - VM ctest-TestBasicPolicy-99497760-68845837 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-18 02:28:07,651 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:28:07,651 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-68845837, IP 4.96.162.131, Port 22 2025-09-18 02:28:07,710 - 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-09-18 02:28:07,802 - DEBUG - VM ctest-TestBasicPolicy-99497760-68845837 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-18 02:28:12,803 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:28:12,803 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-68845837, IP 4.96.162.131, Port 22 2025-09-18 02:28:12,971 - DEBUG - VM ctest-TestBasicPolicy-99497760-68845837 is ready for SSH connections 2025-09-18 02:28:12,972 - INFO - Waiting for VM ctest-TestBasicPolicy-99497760-55534195 to be up.. 2025-09-18 02:28:13,069 - DEBUG - VM is in ACTIVE state now 2025-09-18 02:28:13,069 - INFO - VM name : ctest-TestBasicPolicy-99497760-55534195 2025-09-18 02:28:13,168 - DEBUG - VM ctest-TestBasicPolicy-99497760-55534195 ID is ef7c71b5-bcd1-40e7-b7ad-28340e44beae 2025-09-18 02:28:13,168 - DEBUG - VM ctest-TestBasicPolicy-99497760-55534195 launched on Node an-jenkins-deploy-platform-ansible-os-4130-2 2025-09-18 02:28:13,265 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/ef7c71b5-bcd1-40e7-b7ad-28340e44beae 2025-09-18 02:28:13,275 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/ec22dc23-e2c7-4cd5-82fe-053d1ba1bb57 2025-09-18 02:28:14,436 - 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=8.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.23 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 = 2.232/5.438/8.645/3.206 ms') 2025-09-18 02:28:14,437 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99497760-55534195 passed 2025-09-18 02:28:14,507 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:28:14,507 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-55534195, IP 55.196.99.195, Port 22 2025-09-18 02:28:14,575 - 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-09-18 02:28:14,666 - DEBUG - VM ctest-TestBasicPolicy-99497760-55534195 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-18 02:28:19,667 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:28:19,667 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-55534195, IP 55.196.99.195, Port 22 2025-09-18 02:28:19,735 - 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-09-18 02:28:19,832 - DEBUG - VM ctest-TestBasicPolicy-99497760-55534195 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-18 02:28:24,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:28:24,833 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99497760-55534195, IP 55.196.99.195, Port 22 2025-09-18 02:28:24,988 - DEBUG - VM ctest-TestBasicPolicy-99497760-55534195 is ready for SSH connections 2025-09-18 02:28:24,988 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:28:24,988 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 55.196.99.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2025-09-18 02:28:24,989 - DEBUG - ping -s 56 -c 3 -W 1 55.196.99.195 2025-09-18 02:29:07,691 - DEBUG - PING 55.196.99.195 (55.196.99.195) 56(84) bytes of data. 64 bytes from 55.196.99.195: icmp_req=1 ttl=63 time=7.88 ms 64 bytes from 55.196.99.195: icmp_req=2 ttl=63 time=1.10 ms 64 bytes from 55.196.99.195: icmp_req=3 ttl=63 time=1.30 ms --- 55.196.99.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.102/3.431/7.883/3.149 ms 2025-09-18 02:29:07,691 - INFO - Ping to IP 55.196.99.195 from VM ctest-TestBasicPolicy-99497760-68845837 passed 2025-09-18 02:29:07,949 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fd2b6414-b851-42bc-97c6-249c749fb816", "href": "http://10.0.0.41:8082/network-policy/fd2b6414-b851-42bc-97c6-249c749fb816"}} 2025-09-18 02:29:07,949 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 02:29:07,949 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 55.196.99.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2025-09-18 02:29:07,950 - DEBUG - ping -s 56 -c 3 -W 1 55.196.99.195 2025-09-18 02:29:12,419 - DEBUG - PING 55.196.99.195 (55.196.99.195) 56(84) bytes of data. 64 bytes from 55.196.99.195: icmp_req=1 ttl=63 time=3.16 ms --- 55.196.99.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 3.162/3.162/3.162/0.000 ms 2025-09-18 02:29:12,419 - WARNING - Ping to IP 55.196.99.195 from VM ctest-TestBasicPolicy-99497760-68845837 failed 2025-09-18 02:29:12,420 - INFO - Deleting VM ctest-TestBasicPolicy-99497760-55534195 2025-09-18 02:29:12,504 - INFO - Deleting VM ctest-TestBasicPolicy-99497760-68845837 2025-09-18 02:29:12,959 - INFO - Deleted policy ctest-policy-allow-all-46712405 2025-09-18 02:29:12,959 - INFO - Deleting VN ctest-vn-11228574 2025-09-18 02:29:13,027 - DEBUG - VN 6975f37a-2709-4fd3-9dc5-a3968385cce3 still in use: Unable to complete operation on network 6975f37a-2709-4fd3-9dc5-a3968385cce3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-45d1d181-d8bf-4cb8-9b9e-440907d0e81a'] 2025-09-18 02:29:13,027 - WARNING - Deleting VN ctest-vn-11228574 failed..Will retry 2025-09-18 02:29:15,224 - DEBUG - Response for deleting network () 2025-09-18 02:29:15,225 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46681055-6f4c-4e2c-9f79-0a976f6b78dc 2025-09-18 02:29:15,231 - DEBUG - Response Code: 404 2025-09-18 02:29:15,231 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:29:15,238 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:29:15,280 - DEBUG - Requesting: http://10.0.0.56:8082/project/b7377416-652e-4d65-bcea-7df03245cb39 2025-09-18 02:29:15,382 - INFO - Validated that VN ctest-vn-11228574 is not found in API Server 2025-09-18 02:29:15,401 - DEBUG - VN ctest-vn-11228574 is not present in Agent 10.0.0.61 2025-09-18 02:29:15,413 - DEBUG - VN ctest-vn-11228574 is not present in Agent 10.0.0.27 2025-09-18 02:29:15,413 - INFO - Validated that VN ctest-vn-11228574 is not in any agent 2025-09-18 02:29:15,445 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11228574 info 2025-09-18 02:29:15,445 - INFO - Deleting VN ctest-vn-80714711 2025-09-18 02:29:15,641 - DEBUG - Response for deleting network () 2025-09-18 02:29:15,641 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f4d3a87a-3a7d-496a-bf8a-c648eda5e115 2025-09-18 02:29:15,649 - DEBUG - Response Code: 404 2025-09-18 02:29:15,650 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:29:15,664 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:29:15,681 - DEBUG - Requesting: http://10.0.0.56:8082/project/b7377416-652e-4d65-bcea-7df03245cb39 2025-09-18 02:29:15,778 - INFO - Validated that VN ctest-vn-80714711 is not found in API Server 2025-09-18 02:29:15,790 - DEBUG - VN ctest-vn-80714711 is not present in Agent 10.0.0.61 2025-09-18 02:29:15,800 - DEBUG - VN ctest-vn-80714711 is not present in Agent 10.0.0.27 2025-09-18 02:29:15,801 - INFO - Validated that VN ctest-vn-80714711 is not in any agent 2025-09-18 02:29:15,832 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80714711 info 2025-09-18 02:29:17,106 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 02:29:17,106 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:12]
2025-09-18 02:29:17,106 - INFO - -------------------------------------------------------------------------------- 2025-09-18 02:29:17,959 - INFO - Deleted project: ctest-TestBasicPolicy-99497760, ID : b7377416-652e-4d65-bcea-7df03245cb39