2025-09-04 02:38:44,006 - INFO - Domain Default found not creating 2025-09-04 02:38:44,151 - INFO - Project ctest-TestBasicPolicy-92864665 not found, creating it 2025-09-04 02:38:44,717 - INFO - Created Project:ctest-TestBasicPolicy-92864665, ID : 55f6d0b5-57a2-4183-948b-695aeac6fc4b 2025-09-04 02:38:46,184 - INFO - ================================================================================ 2025-09-04 02:38:46,184 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-04 02:38:46,184 - 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-04 02:38:47,482 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.242': {'10.20.0.25': '0', '10.20.0.254': '0'}} with 2025-09-04 02:38:47,482 - INFO - Initial checks done. Running the testcase now 2025-09-04 02:38:47,482 - INFO - 2025-09-04 02:38:48,148 - DEBUG - Response for create_network : {'network': {'id': '7cb72e17-a829-4252-9d59-40942d82fc5b', 'name': 'ctest-vn-07049124', 'tenant_id': '55f6d0b557a24183948b695aeac6fc4b', 'project_id': '55f6d0b557a24183948b695aeac6fc4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-vn-07049124'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:38:48,372 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4c883fb-d994-4b71-9cbb-dfb8fd165178', 'name': '', 'tenant_id': '55f6d0b557a24183948b695aeac6fc4b', 'network_id': '7cb72e17-a829-4252-9d59-40942d82fc5b', 'ip_version': 4, 'cidr': '56.36.6.192/26', 'allocation_pools': [{'start': '56.36.6.194', 'end': '56.36.6.254'}], 'gateway_ip': '56.36.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.36.6.194', 'tags': [], 'project_id': '55f6d0b557a24183948b695aeac6fc4b'}} 2025-09-04 02:38:48,395 - INFO - Created VN ctest-vn-07049124 2025-09-04 02:38:48,408 - DEBUG - VN ctest-vn-07049124 UUID is 7cb72e17-a829-4252-9d59-40942d82fc5b 2025-09-04 02:38:48,765 - DEBUG - Response for create_network : {'network': {'id': '21b37381-df66-4160-b306-8a07b486cc89', 'name': 'ctest-vn-38680981', 'tenant_id': '55f6d0b557a24183948b695aeac6fc4b', 'project_id': '55f6d0b557a24183948b695aeac6fc4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-vn-38680981'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:38:48,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '6da19983-7b60-4d97-b209-e4b6bab59d42', 'name': '', 'tenant_id': '55f6d0b557a24183948b695aeac6fc4b', 'network_id': '21b37381-df66-4160-b306-8a07b486cc89', 'ip_version': 4, 'cidr': '94.203.79.64/26', 'allocation_pools': [{'start': '94.203.79.66', 'end': '94.203.79.126'}], 'gateway_ip': '94.203.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.203.79.66', 'tags': [], 'project_id': '55f6d0b557a24183948b695aeac6fc4b'}} 2025-09-04 02:38:49,006 - INFO - Created VN ctest-vn-38680981 2025-09-04 02:38:49,017 - DEBUG - VN ctest-vn-38680981 UUID is 21b37381-df66-4160-b306-8a07b486cc89 2025-09-04 02:38:49,136 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124, 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-92864665:ctest-vn-38680981, 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-04 02:38:49,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cb72e17-a829-4252-9d59-40942d82fc5b', 'name': 'ctest-vn-07049124', 'tenant_id': '55f6d0b557a24183948b695aeac6fc4b', 'project_id': '55f6d0b557a24183948b695aeac6fc4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4c883fb-d994-4b71-9cbb-dfb8fd165178'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-vn-07049124'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-policy-allow-all-91690543']], 'subnet_ipam': [{'subnet_cidr': '56.36.6.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:38:49,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21b37381-df66-4160-b306-8a07b486cc89', 'name': 'ctest-vn-38680981', 'tenant_id': '55f6d0b557a24183948b695aeac6fc4b', 'project_id': '55f6d0b557a24183948b695aeac6fc4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6da19983-7b60-4d97-b209-e4b6bab59d42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-vn-38680981'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-policy-allow-all-91690543']], 'subnet_ipam': [{'subnet_cidr': '94.203.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:38:49,779 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:38:50,087 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:38:50,115 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:38:50,131 - DEBUG - Requesting: http://10.0.0.57:8082/project/55f6d0b5-57a2-4183-948b-695aeac6fc4b 2025-09-04 02:38:50,222 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7cb72e17-a829-4252-9d59-40942d82fc5b 2025-09-04 02:38:50,235 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7cb72e17-a829-4252-9d59-40942d82fc5b 2025-09-04 02:38:50,243 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ec4b0a31-3aae-4738-8460-b89b057413da 2025-09-04 02:38:50,251 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ec4b0a31-3aae-4738-8460-b89b057413da 2025-09-04 02:38:50,258 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/daf2f349-8647-4e4e-a7cd-a14ca04b9994 2025-09-04 02:38:50,265 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:38:50,265 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7cb72e17-a829-4252-9d59-40942d82fc5b 2025-09-04 02:38:50,273 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ec4b0a31-3aae-4738-8460-b89b057413da 2025-09-04 02:38:50,288 - INFO - Verified VN network id 13 for VN 7cb72e17-a829-4252-9d59-40942d82fc5b 2025-09-04 02:38:50,288 - INFO - Verifications in API Server for VN ctest-vn-07049124 passed 2025-09-04 02:38:50,289 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7cb72e17-a829-4252-9d59-40942d82fc5b 2025-09-04 02:38:50,298 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ec4b0a31-3aae-4738-8460-b89b057413da 2025-09-04 02:38:50,305 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ec4b0a31-3aae-4738-8460-b89b057413da 2025-09-04 02:38:50,314 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/daf2f349-8647-4e4e-a7cd-a14ca04b9994 2025-09-04 02:38:50,327 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92864665', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8986702260581515858', 'uuid-lslong': '11338164542044830811'}, 'enable': 'true', 'created': '2025-09-04T02:38:48', 'last-modified': '2025-09-04T02:38:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903703'} 2025-09-04 02:38:50,333 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:38:50,338 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92864665', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8986702260581515858', 'uuid-lslong': '11338164542044830811'}, 'enable': 'true', 'created': '2025-09-04T02:38:48', 'last-modified': '2025-09-04T02:38:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915227'} 2025-09-04 02:38:50,344 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:38:50,350 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92864665', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8986702260581515858', 'uuid-lslong': '11338164542044830811'}, 'enable': 'true', 'created': '2025-09-04T02:38:48', 'last-modified': '2025-09-04T02:38:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929795'} 2025-09-04 02:38:50,355 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:38:50,356 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07049124 passed 2025-09-04 02:38:50,356 - DEBUG - ====Verifying policy data for ctest-vn-07049124 in API_Server ====== 2025-09-04 02:38:50,356 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:38:50,363 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:38:50,375 - DEBUG - Requesting: http://10.0.0.57:8082/project/55f6d0b5-57a2-4183-948b-695aeac6fc4b 2025-09-04 02:38:50,466 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7cb72e17-a829-4252-9d59-40942d82fc5b 2025-09-04 02:38:50,478 - DEBUG - ==>Verifying data for policy with id: bf7374c1-6715-4410-bcd3-a66dcc714190, fqn: ['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-policy-allow-all-91690543'] 2025-09-04 02:38:50,478 - INFO - VN ctest-vn-07049124 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 02:38:50,478 - DEBUG - Verifying the vn in opserver 2025-09-04 02:38:50,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 virtual network link through opserver 10.0.0.57 2025-09-04 02:38:50,478 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-04 02:38:50,775 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-04 02:38:50,838 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124?flat'} 2025-09-04 02:38:50,838 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 virtual network link through opserver 10.0.0.38 2025-09-04 02:38:50,839 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-04 02:38:51,132 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-04 02:38:51,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124?flat'} 2025-09-04 02:38:51,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 virtual network link through opserver 10.0.0.131 2025-09-04 02:38:51,188 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-09-04 02:38:51,478 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-09-04 02:38:51,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124?flat'} 2025-09-04 02:38:51,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is found in opserver 2025-09-04 02:38:51,555 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 02:38:51,564 - DEBUG - VRF ids for VN ctest-vn-07049124: {} 2025-09-04 02:38:51,564 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:38:51,569 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:38:51,581 - DEBUG - Requesting: http://10.0.0.57:8082/project/55f6d0b5-57a2-4183-948b-695aeac6fc4b 2025-09-04 02:38:51,672 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/21b37381-df66-4160-b306-8a07b486cc89 2025-09-04 02:38:51,689 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/21b37381-df66-4160-b306-8a07b486cc89 2025-09-04 02:38:51,699 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6e07e8cc-7bdd-4e58-a6fd-fc65e9a59a01 2025-09-04 02:38:51,707 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6e07e8cc-7bdd-4e58-a6fd-fc65e9a59a01 2025-09-04 02:38:51,714 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9a8334ce-3d3b-4081-a51c-e36fff3d8cd7 2025-09-04 02:38:51,721 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 02:38:51,721 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/21b37381-df66-4160-b306-8a07b486cc89 2025-09-04 02:38:51,729 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6e07e8cc-7bdd-4e58-a6fd-fc65e9a59a01 2025-09-04 02:38:51,744 - INFO - Verified VN network id 14 for VN 21b37381-df66-4160-b306-8a07b486cc89 2025-09-04 02:38:51,745 - INFO - Verifications in API Server for VN ctest-vn-38680981 passed 2025-09-04 02:38:51,745 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/21b37381-df66-4160-b306-8a07b486cc89 2025-09-04 02:38:51,753 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6e07e8cc-7bdd-4e58-a6fd-fc65e9a59a01 2025-09-04 02:38:51,759 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6e07e8cc-7bdd-4e58-a6fd-fc65e9a59a01 2025-09-04 02:38:51,766 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9a8334ce-3d3b-4081-a51c-e36fff3d8cd7 2025-09-04 02:38:51,777 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92864665', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2428411625718825312', 'uuid-lslong': '12900149948347501705'}, 'enable': 'true', 'created': '2025-09-04T02:38:48', 'last-modified': '2025-09-04T02:38:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.142924'} 2025-09-04 02:38:51,782 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 02:38:51,788 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92864665', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2428411625718825312', 'uuid-lslong': '12900149948347501705'}, 'enable': 'true', 'created': '2025-09-04T02:38:48', 'last-modified': '2025-09-04T02:38:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.150812'} 2025-09-04 02:38:51,793 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 02:38:51,798 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92864665', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2428411625718825312', 'uuid-lslong': '12900149948347501705'}, 'enable': 'true', 'created': '2025-09-04T02:38:48', 'last-modified': '2025-09-04T02:38:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.172686'} 2025-09-04 02:38:51,803 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 02:38:51,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38680981 passed 2025-09-04 02:38:51,803 - DEBUG - ====Verifying policy data for ctest-vn-38680981 in API_Server ====== 2025-09-04 02:38:51,804 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:38:51,809 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:38:51,820 - DEBUG - Requesting: http://10.0.0.57:8082/project/55f6d0b5-57a2-4183-948b-695aeac6fc4b 2025-09-04 02:38:51,912 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/21b37381-df66-4160-b306-8a07b486cc89 2025-09-04 02:38:51,923 - DEBUG - ==>Verifying data for policy with id: bf7374c1-6715-4410-bcd3-a66dcc714190, fqn: ['default-domain', 'ctest-TestBasicPolicy-92864665', 'ctest-policy-allow-all-91690543'] 2025-09-04 02:38:51,923 - INFO - VN ctest-vn-38680981 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 02:38:51,923 - DEBUG - Verifying the vn in opserver 2025-09-04 02:38:51,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981 virtual network link through opserver 10.0.0.57 2025-09-04 02:38:51,923 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-04 02:38:51,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981?flat'} 2025-09-04 02:38:51,981 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981 virtual network link through opserver 10.0.0.38 2025-09-04 02:38:51,981 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-04 02:38:52,041 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981?flat'} 2025-09-04 02:38:52,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981 virtual network link through opserver 10.0.0.131 2025-09-04 02:38:52,041 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-09-04 02:38:52,098 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981?flat'} 2025-09-04 02:38:52,098 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-38680981 is found in opserver 2025-09-04 02:38:52,120 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 02:38:52,129 - DEBUG - VRF ids for VN ctest-vn-38680981: {} 2025-09-04 02:38:52,187 - DEBUG - Services list from nova: [, , , ] 2025-09-04 02:38:53,245 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4012-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4012-1) 2025-09-04 02:38:54,665 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4012-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4012-2) 2025-09-04 02:38:54,665 - INFO - Waiting for VM ctest-TestBasicPolicy-92864665-43525207 to be up.. 2025-09-04 02:38:54,773 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-04 02:38:59,855 - DEBUG - VM is in ACTIVE state now 2025-09-04 02:38:59,855 - INFO - VM name : ctest-TestBasicPolicy-92864665-43525207 2025-09-04 02:38:59,936 - DEBUG - VM ctest-TestBasicPolicy-92864665-43525207 ID is 439fed25-51cb-4323-bfba-b0ab1c9b9563 2025-09-04 02:38:59,961 - DEBUG - VM ctest-TestBasicPolicy-92864665-43525207 launched on Node an-jenkins-deploy-platform-ansible-os-4012-1 2025-09-04 02:39:00,040 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/439fed25-51cb-4323-bfba-b0ab1c9b9563 2025-09-04 02:39:00,342 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/439fed25-51cb-4323-bfba-b0ab1c9b9563 2025-09-04 02:39:00,374 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/0874a769-9da7-4b8e-ae8d-38e3c8463a97 2025-09-04 02:39:03,560 - 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 1032ms') 2025-09-04 02:39:03,560 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:03,573 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:07,660 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1026ms') 2025-09-04 02:39:07,660 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:07,675 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:11,758 - 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-04 02:39:11,758 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:11,775 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:15,849 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-09-04 02:39:15,849 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:15,862 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:19,944 - 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-04 02:39:19,944 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:19,958 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:24,045 - 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-04 02:39:24,045 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:24,059 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:28,137 - 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 1012ms') 2025-09-04 02:39:28,137 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:28,151 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:32,229 - 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-09-04 02:39:32,229 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 failed! 2025-09-04 02:39:32,243 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92864665:ctest-vn-07049124 is 56.36.6.193 and allocation pool is NOT set 2025-09-04 02:39:34,310 - 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.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.22 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 = 1.218/3.451/5.684/2.233 ms') 2025-09-04 02:39:34,311 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-43525207 passed 2025-09-04 02:39:34,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:39:34,381 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92864665-43525207, IP 56.36.6.195, Port 22 2025-09-04 02:39:34,453 - 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-04 02:39:34,540 - DEBUG - VM ctest-TestBasicPolicy-92864665-43525207 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 02:39:39,542 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:39:39,542 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92864665-43525207, IP 56.36.6.195, Port 22 2025-09-04 02:39:39,609 - 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-04 02:39:39,702 - DEBUG - VM ctest-TestBasicPolicy-92864665-43525207 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 02:39:44,703 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:39:44,703 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92864665-43525207, IP 56.36.6.195, Port 22 2025-09-04 02:39:44,770 - 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-04 02:39:44,862 - DEBUG - VM ctest-TestBasicPolicy-92864665-43525207 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 02:39:49,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:39:49,863 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92864665-43525207, IP 56.36.6.195, Port 22 2025-09-04 02:39:49,933 - 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-04 02:39:50,024 - DEBUG - VM ctest-TestBasicPolicy-92864665-43525207 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 02:39:55,025 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:39:55,025 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92864665-43525207, IP 56.36.6.195, Port 22 2025-09-04 02:39:55,201 - DEBUG - VM ctest-TestBasicPolicy-92864665-43525207 is ready for SSH connections 2025-09-04 02:39:55,201 - INFO - Waiting for VM ctest-TestBasicPolicy-92864665-94942913 to be up.. 2025-09-04 02:39:55,299 - DEBUG - VM is in ACTIVE state now 2025-09-04 02:39:55,299 - INFO - VM name : ctest-TestBasicPolicy-92864665-94942913 2025-09-04 02:39:55,386 - DEBUG - VM ctest-TestBasicPolicy-92864665-94942913 ID is d9121bde-dc82-4ef4-9cff-6d060bb83c26 2025-09-04 02:39:55,386 - DEBUG - VM ctest-TestBasicPolicy-92864665-94942913 launched on Node an-jenkins-deploy-platform-ansible-os-4012-2 2025-09-04 02:39:55,473 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/d9121bde-dc82-4ef4-9cff-6d060bb83c26 2025-09-04 02:39:55,484 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/c0868208-058a-45d5-9b2b-aafbd680b41c 2025-09-04 02:39:56,674 - 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.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.06 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 = 3.064/3.828/4.593/0.764 ms') 2025-09-04 02:39:56,674 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92864665-94942913 passed 2025-09-04 02:39:56,749 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:39:56,749 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92864665-94942913, IP 94.203.79.67, Port 22 2025-09-04 02:39:56,816 - 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-04 02:39:56,905 - DEBUG - VM ctest-TestBasicPolicy-92864665-94942913 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 02:40:01,905 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:40:01,905 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92864665-94942913, IP 94.203.79.67, Port 22 2025-09-04 02:40:02,073 - DEBUG - VM ctest-TestBasicPolicy-92864665-94942913 is ready for SSH connections 2025-09-04 02:40:02,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:40:02,073 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 94.203.79.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-09-04 02:40:02,073 - DEBUG - ping -s 56 -c 3 -W 1 94.203.79.67 2025-09-04 02:40:51,054 - DEBUG - PING 94.203.79.67 (94.203.79.67) 56(84) bytes of data. 64 bytes from 94.203.79.67: icmp_req=1 ttl=63 time=10.0 ms 64 bytes from 94.203.79.67: icmp_req=2 ttl=63 time=1.21 ms 64 bytes from 94.203.79.67: icmp_req=3 ttl=63 time=1.20 ms --- 94.203.79.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.209/4.159/10.051/4.166 ms 2025-09-04 02:40:51,054 - INFO - Ping to IP 94.203.79.67 from VM ctest-TestBasicPolicy-92864665-43525207 passed 2025-09-04 02:40:51,252 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bf7374c1-6715-4410-bcd3-a66dcc714190", "href": "http://10.0.0.131:8082/network-policy/bf7374c1-6715-4410-bcd3-a66dcc714190"}} 2025-09-04 02:40:51,252 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 02:40:51,252 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 94.203.79.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-09-04 02:40:51,253 - DEBUG - ping -s 56 -c 3 -W 1 94.203.79.67 2025-09-04 02:40:54,711 - DEBUG - PING 94.203.79.67 (94.203.79.67) 56(84) bytes of data. 64 bytes from 94.203.79.67: icmp_req=1 ttl=63 time=3.51 ms --- 94.203.79.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2009ms rtt min/avg/max/mdev = 3.517/3.517/3.517/0.000 ms 2025-09-04 02:40:54,711 - WARNING - Ping to IP 94.203.79.67 from VM ctest-TestBasicPolicy-92864665-43525207 failed 2025-09-04 02:40:54,711 - INFO - Deleting VM ctest-TestBasicPolicy-92864665-94942913 2025-09-04 02:40:54,790 - INFO - Deleting VM ctest-TestBasicPolicy-92864665-43525207 2025-09-04 02:40:55,270 - INFO - Deleted policy ctest-policy-allow-all-91690543 2025-09-04 02:40:55,271 - INFO - Deleting VN ctest-vn-38680981 2025-09-04 02:40:55,321 - DEBUG - VN 21b37381-df66-4160-b306-8a07b486cc89 still in use: Unable to complete operation on network 21b37381-df66-4160-b306-8a07b486cc89. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-533d2b71-77ae-4c74-85a1-590858735e54'] 2025-09-04 02:40:55,321 - WARNING - Deleting VN ctest-vn-38680981 failed..Will retry 2025-09-04 02:40:57,540 - DEBUG - Response for deleting network () 2025-09-04 02:40:57,540 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6e07e8cc-7bdd-4e58-a6fd-fc65e9a59a01 2025-09-04 02:40:57,549 - DEBUG - Response Code: 404 2025-09-04 02:40:57,549 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:40:57,555 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:40:57,612 - DEBUG - Requesting: http://10.0.0.57:8082/project/55f6d0b5-57a2-4183-948b-695aeac6fc4b 2025-09-04 02:40:57,723 - INFO - Validated that VN ctest-vn-38680981 is not found in API Server 2025-09-04 02:40:57,734 - DEBUG - VN ctest-vn-38680981 is not present in Agent 10.0.0.241 2025-09-04 02:40:57,744 - DEBUG - VN ctest-vn-38680981 is not present in Agent 10.0.0.242 2025-09-04 02:40:57,744 - INFO - Validated that VN ctest-vn-38680981 is not in any agent 2025-09-04 02:40:57,772 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38680981 info 2025-09-04 02:40:57,772 - INFO - Deleting VN ctest-vn-07049124 2025-09-04 02:40:57,998 - DEBUG - Response for deleting network () 2025-09-04 02:40:57,998 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ec4b0a31-3aae-4738-8460-b89b057413da 2025-09-04 02:40:58,007 - DEBUG - Response Code: 404 2025-09-04 02:40:58,007 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:40:58,013 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:40:58,042 - DEBUG - Requesting: http://10.0.0.57:8082/project/55f6d0b5-57a2-4183-948b-695aeac6fc4b 2025-09-04 02:40:58,132 - INFO - Validated that VN ctest-vn-07049124 is not found in API Server 2025-09-04 02:40:58,144 - DEBUG - VN ctest-vn-07049124 is not present in Agent 10.0.0.241 2025-09-04 02:40:58,153 - DEBUG - VN ctest-vn-07049124 is not present in Agent 10.0.0.242 2025-09-04 02:40:58,154 - INFO - Validated that VN ctest-vn-07049124 is not in any agent 2025-09-04 02:40:58,181 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-07049124 info 2025-09-04 02:40:59,478 - DEBUG - No XMPP flaps were noticed during the test 2025-09-04 02:40:59,478 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:13] 2025-09-04 02:40:59,478 - INFO - -------------------------------------------------------------------------------- 2025-09-04 02:41:00,288 - INFO - Deleted project: ctest-TestBasicPolicy-92864665, ID : 55f6d0b5-57a2-4183-948b-695aeac6fc4b