2025-08-14 02:33:16,878 - INFO - Domain Default found not creating 2025-08-14 02:33:17,037 - INFO - Project ctest-TestBasicPolicy-60286126 not found, creating it 2025-08-14 02:33:17,645 - INFO - Created Project:ctest-TestBasicPolicy-60286126, ID : e84638e2-92ed-4ef8-a257-d5d08dbc6fc3 2025-08-14 02:33:19,138 - INFO - ================================================================================ 2025-08-14 02:33:19,138 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-14 02:33:19,138 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-08-14 02:33:20,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.193': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2025-08-14 02:33:20,406 - INFO - Initial checks done. Running the testcase now 2025-08-14 02:33:20,406 - INFO - 2025-08-14 02:33:21,093 - DEBUG - Response for create_network : {'network': {'id': '054d26b7-b034-417f-a2e4-81c2c1bbc4c6', 'name': 'ctest-vn-11701163', 'tenant_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'project_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-vn-11701163'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:33:21,369 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4e0f547-154e-4169-82af-ed8d252381a7', 'name': '', 'tenant_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'network_id': '054d26b7-b034-417f-a2e4-81c2c1bbc4c6', 'ip_version': 4, 'cidr': '149.224.227.192/26', 'allocation_pools': [{'start': '149.224.227.194', 'end': '149.224.227.254'}], 'gateway_ip': '149.224.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.224.227.194', 'tags': [], 'project_id': 'e84638e292ed4ef8a257d5d08dbc6fc3'}} 2025-08-14 02:33:21,396 - INFO - Created VN ctest-vn-11701163 2025-08-14 02:33:21,408 - DEBUG - VN ctest-vn-11701163 UUID is 054d26b7-b034-417f-a2e4-81c2c1bbc4c6 2025-08-14 02:33:21,817 - DEBUG - Response for create_network : {'network': {'id': '560b1b77-9883-4f57-9eab-a9381dc7eac2', 'name': 'ctest-vn-11935439', 'tenant_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'project_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-vn-11935439'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:33:22,083 - DEBUG - Response for create_subnet : {'subnet': {'id': '91c5d16f-9b04-43ce-aa5d-44eb410620a7', 'name': '', 'tenant_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'network_id': '560b1b77-9883-4f57-9eab-a9381dc7eac2', 'ip_version': 4, 'cidr': '223.77.97.128/26', 'allocation_pools': [{'start': '223.77.97.130', 'end': '223.77.97.190'}], 'gateway_ip': '223.77.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.77.97.130', 'tags': [], 'project_id': 'e84638e292ed4ef8a257d5d08dbc6fc3'}} 2025-08-14 02:33:22,104 - INFO - Created VN ctest-vn-11935439 2025-08-14 02:33:22,116 - DEBUG - VN ctest-vn-11935439 UUID is 560b1b77-9883-4f57-9eab-a9381dc7eac2 2025-08-14 02:33:22,240 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163, 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-60286126:ctest-vn-11935439, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-08-14 02:33:22,578 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '054d26b7-b034-417f-a2e4-81c2c1bbc4c6', 'name': 'ctest-vn-11701163', 'tenant_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'project_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4e0f547-154e-4169-82af-ed8d252381a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-vn-11701163'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-policy-allow-all-87740180']], 'subnet_ipam': [{'subnet_cidr': '149.224.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:33:22,806 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '560b1b77-9883-4f57-9eab-a9381dc7eac2', 'name': 'ctest-vn-11935439', 'tenant_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'project_id': 'e84638e292ed4ef8a257d5d08dbc6fc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91c5d16f-9b04-43ce-aa5d-44eb410620a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-vn-11935439'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-policy-allow-all-87740180']], 'subnet_ipam': [{'subnet_cidr': '223.77.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:33:22,906 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:33:23,226 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:33:23,255 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:33:23,271 - DEBUG - Requesting: http://10.0.0.38:8082/project/e84638e2-92ed-4ef8-a257-d5d08dbc6fc3 2025-08-14 02:33:23,375 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/054d26b7-b034-417f-a2e4-81c2c1bbc4c6 2025-08-14 02:33:23,402 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/054d26b7-b034-417f-a2e4-81c2c1bbc4c6 2025-08-14 02:33:23,413 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46b19c28-931b-44f3-a528-7b808926cbfa 2025-08-14 02:33:23,428 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46b19c28-931b-44f3-a528-7b808926cbfa 2025-08-14 02:33:23,438 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4cfa938b-5aea-470d-82b0-c1b137b55ede 2025-08-14 02:33:23,448 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:33:23,448 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/054d26b7-b034-417f-a2e4-81c2c1bbc4c6 2025-08-14 02:33:23,460 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46b19c28-931b-44f3-a528-7b808926cbfa 2025-08-14 02:33:23,478 - INFO - Verified VN network id 13 for VN 054d26b7-b034-417f-a2e4-81c2c1bbc4c6 2025-08-14 02:33:23,479 - INFO - Verifications in API Server for VN ctest-vn-11701163 passed 2025-08-14 02:33:23,479 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/054d26b7-b034-417f-a2e4-81c2c1bbc4c6 2025-08-14 02:33:23,492 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46b19c28-931b-44f3-a528-7b808926cbfa 2025-08-14 02:33:23,501 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46b19c28-931b-44f3-a528-7b808926cbfa 2025-08-14 02:33:23,512 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4cfa938b-5aea-470d-82b0-c1b137b55ede 2025-08-14 02:33:23,529 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '382004113773445503', 'uuid-lslong': '11737649202308302022'}, 'enable': 'true', 'created': '2025-08-14T02:33:21', 'last-modified': '2025-08-14T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999944'} 2025-08-14 02:33:23,541 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:33:23,548 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '382004113773445503', 'uuid-lslong': '11737649202308302022'}, 'enable': 'true', 'created': '2025-08-14T02:33:21', 'last-modified': '2025-08-14T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021536'} 2025-08-14 02:33:23,555 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:33:23,562 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '382004113773445503', 'uuid-lslong': '11737649202308302022'}, 'enable': 'true', 'created': '2025-08-14T02:33:21', 'last-modified': '2025-08-14T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042463'} 2025-08-14 02:33:23,570 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:33:23,570 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11701163 passed 2025-08-14 02:33:23,570 - DEBUG - ====Verifying policy data for ctest-vn-11701163 in API_Server ====== 2025-08-14 02:33:23,570 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:33:23,577 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:33:23,592 - DEBUG - Requesting: http://10.0.0.38:8082/project/e84638e2-92ed-4ef8-a257-d5d08dbc6fc3 2025-08-14 02:33:23,695 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/054d26b7-b034-417f-a2e4-81c2c1bbc4c6 2025-08-14 02:33:23,706 - DEBUG - ==>Verifying data for policy with id: c079e0f5-366b-49d8-90cb-d7eefea5eb23, fqn: ['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-policy-allow-all-87740180'] 2025-08-14 02:33:23,707 - INFO - VN ctest-vn-11701163 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 02:33:23,707 - DEBUG - Verifying the vn in opserver 2025-08-14 02:33:23,707 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 virtual network link through opserver 10.0.0.38 2025-08-14 02:33:23,707 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-14 02:33:24,003 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-14 02:33:24,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163?flat'} 2025-08-14 02:33:24,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 virtual network link through opserver 10.0.0.27 2025-08-14 02:33:24,060 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-14 02:33:24,356 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-14 02:33:24,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163?flat'} 2025-08-14 02:33:24,416 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 virtual network link through opserver 10.0.0.23 2025-08-14 02:33:24,416 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-14 02:33:24,709 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-14 02:33:24,776 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163?flat'} 2025-08-14 02:33:24,776 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is found in opserver 2025-08-14 02:33:24,801 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 02:33:24,813 - DEBUG - VRF ids for VN ctest-vn-11701163: {} 2025-08-14 02:33:24,813 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:33:24,821 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:33:24,834 - DEBUG - Requesting: http://10.0.0.38:8082/project/e84638e2-92ed-4ef8-a257-d5d08dbc6fc3 2025-08-14 02:33:24,935 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/560b1b77-9883-4f57-9eab-a9381dc7eac2 2025-08-14 02:33:24,952 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/560b1b77-9883-4f57-9eab-a9381dc7eac2 2025-08-14 02:33:24,966 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac66aef-4f82-48d3-b4e9-4296f384b55f 2025-08-14 02:33:24,976 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac66aef-4f82-48d3-b4e9-4296f384b55f 2025-08-14 02:33:24,986 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5d49f00-1c8a-4b7f-ae34-39b71d3cd3c3 2025-08-14 02:33:24,994 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-14 02:33:24,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/560b1b77-9883-4f57-9eab-a9381dc7eac2 2025-08-14 02:33:25,005 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac66aef-4f82-48d3-b4e9-4296f384b55f 2025-08-14 02:33:25,026 - INFO - Verified VN network id 14 for VN 560b1b77-9883-4f57-9eab-a9381dc7eac2 2025-08-14 02:33:25,026 - INFO - Verifications in API Server for VN ctest-vn-11935439 passed 2025-08-14 02:33:25,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/560b1b77-9883-4f57-9eab-a9381dc7eac2 2025-08-14 02:33:25,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac66aef-4f82-48d3-b4e9-4296f384b55f 2025-08-14 02:33:25,046 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac66aef-4f82-48d3-b4e9-4296f384b55f 2025-08-14 02:33:25,054 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5d49f00-1c8a-4b7f-ae34-39b71d3cd3c3 2025-08-14 02:33:25,067 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6200079512479420247', 'uuid-lslong': '11433418137493039810'}, 'enable': 'true', 'created': '2025-08-14T02:33:21', 'last-modified': '2025-08-14T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.310808'} 2025-08-14 02:33:25,074 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-14 02:33:25,082 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6200079512479420247', 'uuid-lslong': '11433418137493039810'}, 'enable': 'true', 'created': '2025-08-14T02:33:21', 'last-modified': '2025-08-14T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.326586'} 2025-08-14 02:33:25,090 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-14 02:33:25,096 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6200079512479420247', 'uuid-lslong': '11433418137493039810'}, 'enable': 'true', 'created': '2025-08-14T02:33:21', 'last-modified': '2025-08-14T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.336174'} 2025-08-14 02:33:25,103 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-14 02:33:25,103 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11935439 passed 2025-08-14 02:33:25,103 - DEBUG - ====Verifying policy data for ctest-vn-11935439 in API_Server ====== 2025-08-14 02:33:25,103 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:33:25,110 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:33:25,123 - DEBUG - Requesting: http://10.0.0.38:8082/project/e84638e2-92ed-4ef8-a257-d5d08dbc6fc3 2025-08-14 02:33:25,227 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/560b1b77-9883-4f57-9eab-a9381dc7eac2 2025-08-14 02:33:25,240 - DEBUG - ==>Verifying data for policy with id: c079e0f5-366b-49d8-90cb-d7eefea5eb23, fqn: ['default-domain', 'ctest-TestBasicPolicy-60286126', 'ctest-policy-allow-all-87740180'] 2025-08-14 02:33:25,240 - INFO - VN ctest-vn-11935439 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 02:33:25,240 - DEBUG - Verifying the vn in opserver 2025-08-14 02:33:25,240 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439 virtual network link through opserver 10.0.0.38 2025-08-14 02:33:25,240 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-14 02:33:25,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439?flat'} 2025-08-14 02:33:25,299 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439 virtual network link through opserver 10.0.0.27 2025-08-14 02:33:25,299 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-14 02:33:25,360 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439?flat'} 2025-08-14 02:33:25,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439 virtual network link through opserver 10.0.0.23 2025-08-14 02:33:25,360 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-14 02:33:25,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439?flat'} 2025-08-14 02:33:25,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11935439 is found in opserver 2025-08-14 02:33:25,444 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 02:33:25,457 - DEBUG - VRF ids for VN ctest-vn-11935439: {} 2025-08-14 02:33:25,511 - DEBUG - Services list from nova: [, , , ] 2025-08-14 02:33:26,555 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3851-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3851-2) 2025-08-14 02:33:27,878 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3851-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3851-1) 2025-08-14 02:33:27,878 - INFO - Waiting for VM ctest-TestBasicPolicy-60286126-72904720 to be up.. 2025-08-14 02:33:27,985 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-14 02:33:33,067 - DEBUG - VM is in ACTIVE state now 2025-08-14 02:33:33,067 - INFO - VM name : ctest-TestBasicPolicy-60286126-72904720 2025-08-14 02:33:33,145 - DEBUG - VM ctest-TestBasicPolicy-60286126-72904720 ID is e55087e6-7947-4488-9ef8-1ba65cb5127c 2025-08-14 02:33:33,170 - DEBUG - VM ctest-TestBasicPolicy-60286126-72904720 launched on Node an-jenkins-deploy-platform-ansible-os-3851-2 2025-08-14 02:33:33,263 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/e55087e6-7947-4488-9ef8-1ba65cb5127c 2025-08-14 02:33:33,566 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/e55087e6-7947-4488-9ef8-1ba65cb5127c 2025-08-14 02:33:33,604 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/82aba329-f931-4b9d-97d4-da041414dad1 2025-08-14 02:33:36,779 - 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-08-14 02:33:36,779 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 failed! 2025-08-14 02:33:36,795 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is 149.224.227.193 and allocation pool is NOT set 2025-08-14 02:33:40,878 - 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-08-14 02:33:40,879 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 failed! 2025-08-14 02:33:40,895 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is 149.224.227.193 and allocation pool is NOT set 2025-08-14 02:33:44,975 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1020ms') 2025-08-14 02:33:44,975 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 failed! 2025-08-14 02:33:44,994 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is 149.224.227.193 and allocation pool is NOT set 2025-08-14 02:33:49,067 - 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-08-14 02:33:49,067 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 failed! 2025-08-14 02:33:49,081 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is 149.224.227.193 and allocation pool is NOT set 2025-08-14 02:33:53,165 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1028ms') 2025-08-14 02:33:53,165 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 failed! 2025-08-14 02:33:53,182 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is 149.224.227.193 and allocation pool is NOT set 2025-08-14 02:33:57,262 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-08-14 02:33:57,262 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 failed! 2025-08-14 02:33:57,277 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is 149.224.227.193 and allocation pool is NOT set 2025-08-14 02:34:01,355 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1020ms') 2025-08-14 02:34:01,356 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 failed! 2025-08-14 02:34:01,369 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60286126:ctest-vn-11701163 is 149.224.227.193 and allocation pool is NOT set 2025-08-14 02:34:03,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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.765 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.765/3.103/5.441/2.338 ms') 2025-08-14 02:34:03,435 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-72904720 passed 2025-08-14 02:34:03,504 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:34:03,504 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286126-72904720, IP 149.224.227.195, Port 22 2025-08-14 02:34:03,569 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-14 02:34:03,647 - DEBUG - VM ctest-TestBasicPolicy-60286126-72904720 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-14 02:34:08,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:34:08,648 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286126-72904720, IP 149.224.227.195, Port 22 2025-08-14 02:34:08,706 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-14 02:34:08,792 - DEBUG - VM ctest-TestBasicPolicy-60286126-72904720 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-14 02:34:13,793 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:34:13,793 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286126-72904720, IP 149.224.227.195, Port 22 2025-08-14 02:34:13,861 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-14 02:34:13,939 - DEBUG - VM ctest-TestBasicPolicy-60286126-72904720 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-14 02:34:18,940 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:34:18,940 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286126-72904720, IP 149.224.227.195, Port 22 2025-08-14 02:34:19,099 - DEBUG - VM ctest-TestBasicPolicy-60286126-72904720 is ready for SSH connections 2025-08-14 02:34:19,099 - INFO - Waiting for VM ctest-TestBasicPolicy-60286126-85559550 to be up.. 2025-08-14 02:34:19,179 - DEBUG - VM is in ACTIVE state now 2025-08-14 02:34:19,179 - INFO - VM name : ctest-TestBasicPolicy-60286126-85559550 2025-08-14 02:34:19,267 - DEBUG - VM ctest-TestBasicPolicy-60286126-85559550 ID is b460b520-15e8-4a44-bb31-9c6938b86027 2025-08-14 02:34:19,267 - DEBUG - VM ctest-TestBasicPolicy-60286126-85559550 launched on Node an-jenkins-deploy-platform-ansible-os-3851-1 2025-08-14 02:34:19,360 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b460b520-15e8-4a44-bb31-9c6938b86027 2025-08-14 02:34:19,372 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/c0d3a244-615d-4686-9610-d708ce5b0ecb 2025-08-14 02:34:20,541 - 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.06 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.545 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.545/2.804/5.063/2.259 ms') 2025-08-14 02:34:20,541 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60286126-85559550 passed 2025-08-14 02:34:20,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:34:20,618 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286126-85559550, IP 223.77.97.131, Port 22 2025-08-14 02:34:20,676 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-14 02:34:20,764 - DEBUG - VM ctest-TestBasicPolicy-60286126-85559550 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-14 02:34:25,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:34:25,765 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60286126-85559550, IP 223.77.97.131, Port 22 2025-08-14 02:34:25,923 - DEBUG - VM ctest-TestBasicPolicy-60286126-85559550 is ready for SSH connections 2025-08-14 02:34:25,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:34:25,923 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 223.77.97.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-08-14 02:34:25,923 - DEBUG - ping -s 56 -c 3 -W 1 223.77.97.131 2025-08-14 02:35:13,230 - DEBUG - PING 223.77.97.131 (223.77.97.131) 56(84) bytes of data. 64 bytes from 223.77.97.131: icmp_req=1 ttl=63 time=11.5 ms 64 bytes from 223.77.97.131: icmp_req=2 ttl=63 time=1.50 ms 64 bytes from 223.77.97.131: icmp_req=3 ttl=63 time=1.11 ms --- 223.77.97.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.114/4.727/11.565/4.837 ms 2025-08-14 02:35:13,230 - INFO - Ping to IP 223.77.97.131 from VM ctest-TestBasicPolicy-60286126-72904720 passed 2025-08-14 02:35:13,439 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c079e0f5-366b-49d8-90cb-d7eefea5eb23", "href": "http://10.0.0.23:8082/network-policy/c079e0f5-366b-49d8-90cb-d7eefea5eb23"}} 2025-08-14 02:35:13,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-14 02:35:13,440 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 223.77.97.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-08-14 02:35:13,440 - DEBUG - ping -s 56 -c 3 -W 1 223.77.97.131 2025-08-14 02:35:16,863 - DEBUG - PING 223.77.97.131 (223.77.97.131) 56(84) bytes of data. 64 bytes from 223.77.97.131: icmp_req=1 ttl=63 time=2.88 ms --- 223.77.97.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2009ms rtt min/avg/max/mdev = 2.886/2.886/2.886/0.000 ms 2025-08-14 02:35:16,863 - WARNING - Ping to IP 223.77.97.131 from VM ctest-TestBasicPolicy-60286126-72904720 failed 2025-08-14 02:35:16,863 - INFO - Deleting VM ctest-TestBasicPolicy-60286126-85559550 2025-08-14 02:35:16,946 - INFO - Deleting VM ctest-TestBasicPolicy-60286126-72904720 2025-08-14 02:35:17,412 - INFO - Deleted policy ctest-policy-allow-all-87740180 2025-08-14 02:35:17,412 - INFO - Deleting VN ctest-vn-11935439 2025-08-14 02:35:17,449 - DEBUG - VN 560b1b77-9883-4f57-9eab-a9381dc7eac2 still in use: Unable to complete operation on network 560b1b77-9883-4f57-9eab-a9381dc7eac2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fb335e28-0a6a-44c1-af13-efb396ade3ae'] 2025-08-14 02:35:17,449 - WARNING - Deleting VN ctest-vn-11935439 failed..Will retry 2025-08-14 02:35:19,616 - DEBUG - Response for deleting network () 2025-08-14 02:35:19,616 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac66aef-4f82-48d3-b4e9-4296f384b55f 2025-08-14 02:35:19,622 - DEBUG - Response Code: 404 2025-08-14 02:35:19,622 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:35:19,634 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:35:19,650 - DEBUG - Requesting: http://10.0.0.38:8082/project/e84638e2-92ed-4ef8-a257-d5d08dbc6fc3 2025-08-14 02:35:19,741 - INFO - Validated that VN ctest-vn-11935439 is not found in API Server 2025-08-14 02:35:19,752 - DEBUG - VN ctest-vn-11935439 is not present in Agent 10.0.0.65 2025-08-14 02:35:19,762 - DEBUG - VN ctest-vn-11935439 is not present in Agent 10.0.0.130 2025-08-14 02:35:19,762 - INFO - Validated that VN ctest-vn-11935439 is not in any agent 2025-08-14 02:35:19,794 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11935439 info 2025-08-14 02:35:19,794 - INFO - Deleting VN ctest-vn-11701163 2025-08-14 02:35:19,957 - DEBUG - Response for deleting network () 2025-08-14 02:35:19,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46b19c28-931b-44f3-a528-7b808926cbfa 2025-08-14 02:35:19,968 - DEBUG - Response Code: 404 2025-08-14 02:35:19,968 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-14 02:35:19,974 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16362ee5-4ea2-4ad6-8a9c-e34af37c4ada 2025-08-14 02:35:20,029 - DEBUG - Requesting: http://10.0.0.38:8082/project/e84638e2-92ed-4ef8-a257-d5d08dbc6fc3 2025-08-14 02:35:20,110 - INFO - Validated that VN ctest-vn-11701163 is not found in API Server 2025-08-14 02:35:20,126 - DEBUG - VN ctest-vn-11701163 is not present in Agent 10.0.0.65 2025-08-14 02:35:20,136 - DEBUG - VN ctest-vn-11701163 is not present in Agent 10.0.0.130 2025-08-14 02:35:20,137 - INFO - Validated that VN ctest-vn-11701163 is not in any agent 2025-08-14 02:35:20,178 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11701163 info 2025-08-14 02:35:21,463 - DEBUG - No XMPP flaps were noticed during the test
2025-08-14 02:35:21,463 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:02]
2025-08-14 02:35:21,463 - INFO - -------------------------------------------------------------------------------- 2025-08-14 02:35:22,194 - INFO - Deleted project: ctest-TestBasicPolicy-60286126, ID : e84638e2-92ed-4ef8-a257-d5d08dbc6fc3