2025-08-11 16:35:41,430 - INFO - Domain Default found not creating 2025-08-11 16:35:41,579 - INFO - Project ctest-TestBasicPolicy-12616716 not found, creating it 2025-08-11 16:35:42,091 - INFO - Created Project:ctest-TestBasicPolicy-12616716, ID : 7ba0431f-ccc9-4cd3-8da2-6e39f12c9935 2025-08-11 16:35:43,437 - INFO - ================================================================================ 2025-08-11 16:35:43,437 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-11 16:35:43,438 - 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-11 16:35:44,711 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0', '10.20.0.193': '0'}, '10.0.0.249': {'10.20.0.193': '0', '10.20.0.192': '0'}} with 2025-08-11 16:35:44,711 - INFO - Initial checks done. Running the testcase now 2025-08-11 16:35:44,711 - INFO - 2025-08-11 16:35:45,344 - DEBUG - Response for create_network : {'network': {'id': 'b900ffcf-593b-447a-9cb9-16566cf26b08', 'name': 'ctest-vn-36075536', 'tenant_id': '7ba0431fccc94cd38da26e39f12c9935', 'project_id': '7ba0431fccc94cd38da26e39f12c9935', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-vn-36075536'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:35:45,548 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b97ddf2-744c-4a7e-a2c9-5b2136d53c48', 'name': '', 'tenant_id': '7ba0431fccc94cd38da26e39f12c9935', 'network_id': 'b900ffcf-593b-447a-9cb9-16566cf26b08', 'ip_version': 4, 'cidr': '208.150.6.128/26', 'allocation_pools': [{'start': '208.150.6.130', 'end': '208.150.6.190'}], 'gateway_ip': '208.150.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.150.6.130', 'tags': [], 'project_id': '7ba0431fccc94cd38da26e39f12c9935'}} 2025-08-11 16:35:45,568 - INFO - Created VN ctest-vn-36075536 2025-08-11 16:35:45,583 - DEBUG - VN ctest-vn-36075536 UUID is b900ffcf-593b-447a-9cb9-16566cf26b08 2025-08-11 16:35:45,924 - DEBUG - Response for create_network : {'network': {'id': '09d073b8-ab4a-4a68-ad65-88b071c95fa4', 'name': 'ctest-vn-35414999', 'tenant_id': '7ba0431fccc94cd38da26e39f12c9935', 'project_id': '7ba0431fccc94cd38da26e39f12c9935', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-vn-35414999'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:35:46,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c08baf74-3429-4484-a273-30bcec4b121c', 'name': '', 'tenant_id': '7ba0431fccc94cd38da26e39f12c9935', 'network_id': '09d073b8-ab4a-4a68-ad65-88b071c95fa4', 'ip_version': 4, 'cidr': '163.77.65.64/26', 'allocation_pools': [{'start': '163.77.65.66', 'end': '163.77.65.126'}], 'gateway_ip': '163.77.65.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.77.65.66', 'tags': [], 'project_id': '7ba0431fccc94cd38da26e39f12c9935'}} 2025-08-11 16:35:46,177 - INFO - Created VN ctest-vn-35414999 2025-08-11 16:35:46,188 - DEBUG - VN ctest-vn-35414999 UUID is 09d073b8-ab4a-4a68-ad65-88b071c95fa4 2025-08-11 16:35:46,294 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536, 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-12616716:ctest-vn-35414999, 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-11 16:35:46,609 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b900ffcf-593b-447a-9cb9-16566cf26b08', 'name': 'ctest-vn-36075536', 'tenant_id': '7ba0431fccc94cd38da26e39f12c9935', 'project_id': '7ba0431fccc94cd38da26e39f12c9935', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b97ddf2-744c-4a7e-a2c9-5b2136d53c48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-vn-36075536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-policy-allow-all-46431687']], 'subnet_ipam': [{'subnet_cidr': '208.150.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:35:46,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09d073b8-ab4a-4a68-ad65-88b071c95fa4', 'name': 'ctest-vn-35414999', 'tenant_id': '7ba0431fccc94cd38da26e39f12c9935', 'project_id': '7ba0431fccc94cd38da26e39f12c9935', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c08baf74-3429-4484-a273-30bcec4b121c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-vn-35414999'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-policy-allow-all-46431687']], 'subnet_ipam': [{'subnet_cidr': '163.77.65.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:35:46,925 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:35:47,227 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:35:47,256 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:35:47,271 - DEBUG - Requesting: http://10.0.0.27:8082/project/7ba0431f-ccc9-4cd3-8da2-6e39f12c9935 2025-08-11 16:35:47,361 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b900ffcf-593b-447a-9cb9-16566cf26b08 2025-08-11 16:35:47,373 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b900ffcf-593b-447a-9cb9-16566cf26b08 2025-08-11 16:35:47,386 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86662686-9cdb-4be9-8ab9-b5122a1dd1d2 2025-08-11 16:35:47,393 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86662686-9cdb-4be9-8ab9-b5122a1dd1d2 2025-08-11 16:35:47,401 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f21084e0-3efd-4d9d-865e-3e28140bae42 2025-08-11 16:35:47,407 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:35:47,407 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b900ffcf-593b-447a-9cb9-16566cf26b08 2025-08-11 16:35:47,416 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86662686-9cdb-4be9-8ab9-b5122a1dd1d2 2025-08-11 16:35:47,430 - INFO - Verified VN network id 12 for VN b900ffcf-593b-447a-9cb9-16566cf26b08 2025-08-11 16:35:47,430 - INFO - Verifications in API Server for VN ctest-vn-36075536 passed 2025-08-11 16:35:47,431 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b900ffcf-593b-447a-9cb9-16566cf26b08 2025-08-11 16:35:47,440 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86662686-9cdb-4be9-8ab9-b5122a1dd1d2 2025-08-11 16:35:47,447 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86662686-9cdb-4be9-8ab9-b5122a1dd1d2 2025-08-11 16:35:47,454 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f21084e0-3efd-4d9d-865e-3e28140bae42 2025-08-11 16:35:47,466 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12616716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13330936163037037690', 'uuid-lslong': '11293082101059054344'}, 'enable': 'true', 'created': '2025-08-11T16:35:45', 'last-modified': '2025-08-11T16:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886597'} 2025-08-11 16:35:47,472 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:35:47,477 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12616716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13330936163037037690', 'uuid-lslong': '11293082101059054344'}, 'enable': 'true', 'created': '2025-08-11T16:35:45', 'last-modified': '2025-08-11T16:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912753'} 2025-08-11 16:35:47,485 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:35:47,491 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12616716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13330936163037037690', 'uuid-lslong': '11293082101059054344'}, 'enable': 'true', 'created': '2025-08-11T16:35:45', 'last-modified': '2025-08-11T16:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915914'} 2025-08-11 16:35:47,497 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:35:47,497 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36075536 passed 2025-08-11 16:35:47,497 - DEBUG - ====Verifying policy data for ctest-vn-36075536 in API_Server ====== 2025-08-11 16:35:47,497 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:35:47,507 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:35:47,522 - DEBUG - Requesting: http://10.0.0.27:8082/project/7ba0431f-ccc9-4cd3-8da2-6e39f12c9935 2025-08-11 16:35:47,613 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b900ffcf-593b-447a-9cb9-16566cf26b08 2025-08-11 16:35:47,626 - DEBUG - ==>Verifying data for policy with id: 54974036-11c1-49b2-912d-611264c69934, fqn: ['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-policy-allow-all-46431687'] 2025-08-11 16:35:47,626 - INFO - VN ctest-vn-36075536 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 16:35:47,626 - DEBUG - Verifying the vn in opserver 2025-08-11 16:35:47,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 virtual network link through opserver 10.0.0.27 2025-08-11 16:35:47,626 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-11 16:35:47,915 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-11 16:35:47,966 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536?flat'} 2025-08-11 16:35:47,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 virtual network link through opserver 10.0.0.23 2025-08-11 16:35:47,966 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 16:35:48,252 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 16:35:48,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536?flat'} 2025-08-11 16:35:48,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 virtual network link through opserver 10.0.0.19 2025-08-11 16:35:48,308 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-11 16:35:48,615 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-11 16:35:48,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536?flat'} 2025-08-11 16:35:48,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is found in opserver 2025-08-11 16:35:48,684 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 16:35:48,694 - DEBUG - VRF ids for VN ctest-vn-36075536: {} 2025-08-11 16:35:48,694 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:35:48,700 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:35:48,711 - DEBUG - Requesting: http://10.0.0.27:8082/project/7ba0431f-ccc9-4cd3-8da2-6e39f12c9935 2025-08-11 16:35:48,798 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09d073b8-ab4a-4a68-ad65-88b071c95fa4 2025-08-11 16:35:48,812 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09d073b8-ab4a-4a68-ad65-88b071c95fa4 2025-08-11 16:35:48,822 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9772e54-3f25-4de2-bd4c-a8ed5ac63e41 2025-08-11 16:35:48,830 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9772e54-3f25-4de2-bd4c-a8ed5ac63e41 2025-08-11 16:35:48,837 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9d0ca052-6f00-42d1-8c10-ba8278aa747a 2025-08-11 16:35:48,847 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 16:35:48,847 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09d073b8-ab4a-4a68-ad65-88b071c95fa4 2025-08-11 16:35:48,858 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9772e54-3f25-4de2-bd4c-a8ed5ac63e41 2025-08-11 16:35:48,874 - INFO - Verified VN network id 13 for VN 09d073b8-ab4a-4a68-ad65-88b071c95fa4 2025-08-11 16:35:48,874 - INFO - Verifications in API Server for VN ctest-vn-35414999 passed 2025-08-11 16:35:48,874 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09d073b8-ab4a-4a68-ad65-88b071c95fa4 2025-08-11 16:35:48,885 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9772e54-3f25-4de2-bd4c-a8ed5ac63e41 2025-08-11 16:35:48,904 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9772e54-3f25-4de2-bd4c-a8ed5ac63e41 2025-08-11 16:35:48,911 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9d0ca052-6f00-42d1-8c10-ba8278aa747a 2025-08-11 16:35:48,923 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12616716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '707192378482117224', 'uuid-lslong': '12494543032613953444'}, 'enable': 'true', 'created': '2025-08-11T16:35:45', 'last-modified': '2025-08-11T16:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.159231'} 2025-08-11 16:35:48,930 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 16:35:48,935 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12616716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '707192378482117224', 'uuid-lslong': '12494543032613953444'}, 'enable': 'true', 'created': '2025-08-11T16:35:45', 'last-modified': '2025-08-11T16:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.165792'} 2025-08-11 16:35:48,942 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 16:35:48,948 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12616716', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '707192378482117224', 'uuid-lslong': '12494543032613953444'}, 'enable': 'true', 'created': '2025-08-11T16:35:45', 'last-modified': '2025-08-11T16:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.185051'} 2025-08-11 16:35:48,954 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 16:35:48,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35414999 passed 2025-08-11 16:35:48,955 - DEBUG - ====Verifying policy data for ctest-vn-35414999 in API_Server ====== 2025-08-11 16:35:48,955 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:35:48,960 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:35:48,971 - DEBUG - Requesting: http://10.0.0.27:8082/project/7ba0431f-ccc9-4cd3-8da2-6e39f12c9935 2025-08-11 16:35:49,065 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09d073b8-ab4a-4a68-ad65-88b071c95fa4 2025-08-11 16:35:49,075 - DEBUG - ==>Verifying data for policy with id: 54974036-11c1-49b2-912d-611264c69934, fqn: ['default-domain', 'ctest-TestBasicPolicy-12616716', 'ctest-policy-allow-all-46431687'] 2025-08-11 16:35:49,075 - INFO - VN ctest-vn-35414999 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 16:35:49,075 - DEBUG - Verifying the vn in opserver 2025-08-11 16:35:49,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999 virtual network link through opserver 10.0.0.27 2025-08-11 16:35:49,076 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-11 16:35:49,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999?flat'} 2025-08-11 16:35:49,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999 virtual network link through opserver 10.0.0.23 2025-08-11 16:35:49,133 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 16:35:49,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999?flat'} 2025-08-11 16:35:49,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999 virtual network link through opserver 10.0.0.19 2025-08-11 16:35:49,181 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-11 16:35:49,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999?flat'} 2025-08-11 16:35:49,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-35414999 is found in opserver 2025-08-11 16:35:49,251 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 16:35:49,260 - DEBUG - VRF ids for VN ctest-vn-35414999: {} 2025-08-11 16:35:49,309 - DEBUG - Services list from nova: [, , , ] 2025-08-11 16:35:50,333 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3816-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3816-2) 2025-08-11 16:35:51,693 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3816-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3816-1) 2025-08-11 16:35:51,693 - INFO - Waiting for VM ctest-TestBasicPolicy-12616716-01612057 to be up.. 2025-08-11 16:35:51,787 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-11 16:35:56,861 - DEBUG - VM is in ACTIVE state now 2025-08-11 16:35:56,861 - INFO - VM name : ctest-TestBasicPolicy-12616716-01612057 2025-08-11 16:35:56,929 - DEBUG - VM ctest-TestBasicPolicy-12616716-01612057 ID is 86b5bdbc-ee4e-4158-bd31-cb10c7e18a73 2025-08-11 16:35:56,955 - DEBUG - VM ctest-TestBasicPolicy-12616716-01612057 launched on Node an-jenkins-deploy-platform-ansible-os-3816-2 2025-08-11 16:35:57,024 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/86b5bdbc-ee4e-4158-bd31-cb10c7e18a73 2025-08-11 16:35:57,313 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/86b5bdbc-ee4e-4158-bd31-cb10c7e18a73 2025-08-11 16:35:57,342 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/aa78f9f8-c7a3-44fa-8300-fc141f254a66 2025-08-11 16:36:00,565 - 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-08-11 16:36:00,565 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 failed! 2025-08-11 16:36:00,579 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is 208.150.6.129 and allocation pool is NOT set 2025-08-11 16:36:04,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 1020ms') 2025-08-11 16:36:04,660 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 failed! 2025-08-11 16:36:04,675 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is 208.150.6.129 and allocation pool is NOT set 2025-08-11 16:36:08,755 - 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-11 16:36:08,755 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 failed! 2025-08-11 16:36:08,770 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is 208.150.6.129 and allocation pool is NOT set 2025-08-11 16:36:12,850 - 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-11 16:36:12,850 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 failed! 2025-08-11 16:36:12,864 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is 208.150.6.129 and allocation pool is NOT set 2025-08-11 16:36:16,949 - 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 1027ms') 2025-08-11 16:36:16,949 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 failed! 2025-08-11 16:36:16,972 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is 208.150.6.129 and allocation pool is NOT set 2025-08-11 16:36:21,046 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1016ms') 2025-08-11 16:36:21,046 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 failed! 2025-08-11 16:36:21,061 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is 208.150.6.129 and allocation pool is NOT set 2025-08-11 16:36:25,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 1018ms') 2025-08-11 16:36:25,137 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 failed! 2025-08-11 16:36:25,151 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12616716:ctest-vn-36075536 is 208.150.6.129 and allocation pool is NOT set 2025-08-11 16:36:27,213 - 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.54 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.475 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.475/3.006/5.538/2.531 ms') 2025-08-11 16:36:27,213 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-01612057 passed 2025-08-11 16:36:27,322 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:36:27,322 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12616716-01612057, IP 208.150.6.131, Port 22 2025-08-11 16:36:27,377 - 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-11 16:36:27,446 - DEBUG - VM ctest-TestBasicPolicy-12616716-01612057 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 16:36:32,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:36:32,447 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12616716-01612057, IP 208.150.6.131, Port 22 2025-08-11 16:36:32,501 - 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-11 16:36:32,573 - DEBUG - VM ctest-TestBasicPolicy-12616716-01612057 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 16:36:37,574 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:36:37,574 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12616716-01612057, IP 208.150.6.131, Port 22 2025-08-11 16:36:37,633 - 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-11 16:36:37,704 - DEBUG - VM ctest-TestBasicPolicy-12616716-01612057 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 16:36:42,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:36:42,705 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12616716-01612057, IP 208.150.6.131, Port 22 2025-08-11 16:36:42,762 - 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-11 16:36:42,832 - DEBUG - VM ctest-TestBasicPolicy-12616716-01612057 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 16:36:47,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:36:47,833 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12616716-01612057, IP 208.150.6.131, Port 22 2025-08-11 16:36:48,000 - DEBUG - VM ctest-TestBasicPolicy-12616716-01612057 is ready for SSH connections 2025-08-11 16:36:48,000 - INFO - Waiting for VM ctest-TestBasicPolicy-12616716-43409576 to be up.. 2025-08-11 16:36:48,071 - DEBUG - VM is in ACTIVE state now 2025-08-11 16:36:48,071 - INFO - VM name : ctest-TestBasicPolicy-12616716-43409576 2025-08-11 16:36:48,135 - DEBUG - VM ctest-TestBasicPolicy-12616716-43409576 ID is 6dd304c8-77d3-4797-9a1b-a5c9e8f64d8b 2025-08-11 16:36:48,135 - DEBUG - VM ctest-TestBasicPolicy-12616716-43409576 launched on Node an-jenkins-deploy-platform-ansible-os-3816-1 2025-08-11 16:36:48,216 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/6dd304c8-77d3-4797-9a1b-a5c9e8f64d8b 2025-08-11 16:36:48,226 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/b2dfa370-4dec-4b34-8ca2-6d75d685dc9d 2025-08-11 16:36:49,424 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.781 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.781/2.231/3.682/1.450 ms') 2025-08-11 16:36:49,424 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12616716-43409576 passed 2025-08-11 16:36:49,534 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:36:49,534 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12616716-43409576, IP 163.77.65.67, Port 22 2025-08-11 16:36:49,700 - DEBUG - VM ctest-TestBasicPolicy-12616716-43409576 is ready for SSH connections 2025-08-11 16:36:49,700 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:36:49,700 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.77.65.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-11 16:36:49,700 - DEBUG - ping -s 56 -c 3 -W 1 163.77.65.67 2025-08-11 16:37:08,194 - DEBUG - PING 163.77.65.67 (163.77.65.67) 56(84) bytes of data. 64 bytes from 163.77.65.67: icmp_req=1 ttl=63 time=7.50 ms 64 bytes from 163.77.65.67: icmp_req=2 ttl=63 time=0.937 ms 64 bytes from 163.77.65.67: icmp_req=3 ttl=63 time=0.830 ms --- 163.77.65.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.830/3.089/7.500/3.119 ms 2025-08-11 16:37:08,194 - INFO - Ping to IP 163.77.65.67 from VM ctest-TestBasicPolicy-12616716-01612057 passed 2025-08-11 16:37:08,386 - DEBUG - Policy Update Response {"network-policy": {"uuid": "54974036-11c1-49b2-912d-611264c69934", "href": "http://10.0.0.19:8082/network-policy/54974036-11c1-49b2-912d-611264c69934"}} 2025-08-11 16:37:08,386 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 16:37:08,386 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.77.65.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-11 16:37:08,387 - DEBUG - ping -s 56 -c 3 -W 1 163.77.65.67 2025-08-11 16:37:11,820 - DEBUG - PING 163.77.65.67 (163.77.65.67) 56(84) bytes of data. 64 bytes from 163.77.65.67: icmp_req=1 ttl=63 time=3.57 ms --- 163.77.65.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2011ms rtt min/avg/max/mdev = 3.576/3.576/3.576/0.000 ms 2025-08-11 16:37:11,820 - WARNING - Ping to IP 163.77.65.67 from VM ctest-TestBasicPolicy-12616716-01612057 failed 2025-08-11 16:37:11,820 - INFO - Deleting VM ctest-TestBasicPolicy-12616716-43409576 2025-08-11 16:37:11,883 - INFO - Deleting VM ctest-TestBasicPolicy-12616716-01612057 2025-08-11 16:37:12,251 - INFO - Deleted policy ctest-policy-allow-all-46431687 2025-08-11 16:37:12,251 - INFO - Deleting VN ctest-vn-35414999 2025-08-11 16:37:12,293 - DEBUG - VN 09d073b8-ab4a-4a68-ad65-88b071c95fa4 still in use: Unable to complete operation on network 09d073b8-ab4a-4a68-ad65-88b071c95fa4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e52bad3b-1b87-4eb4-bf3a-7359a23c4b76'] 2025-08-11 16:37:12,293 - WARNING - Deleting VN ctest-vn-35414999 failed..Will retry 2025-08-11 16:37:14,427 - DEBUG - Response for deleting network () 2025-08-11 16:37:14,427 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9772e54-3f25-4de2-bd4c-a8ed5ac63e41 2025-08-11 16:37:14,432 - DEBUG - Response Code: 404 2025-08-11 16:37:14,432 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:37:14,438 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:37:14,505 - DEBUG - Requesting: http://10.0.0.27:8082/project/7ba0431f-ccc9-4cd3-8da2-6e39f12c9935 2025-08-11 16:37:14,592 - INFO - Validated that VN ctest-vn-35414999 is not found in API Server 2025-08-11 16:37:14,603 - DEBUG - VN ctest-vn-35414999 is not present in Agent 10.0.0.141 2025-08-11 16:37:14,613 - DEBUG - VN ctest-vn-35414999 is not present in Agent 10.0.0.249 2025-08-11 16:37:14,614 - INFO - Validated that VN ctest-vn-35414999 is not in any agent 2025-08-11 16:37:14,644 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35414999 info 2025-08-11 16:37:14,645 - INFO - Deleting VN ctest-vn-36075536 2025-08-11 16:37:14,787 - DEBUG - Response for deleting network () 2025-08-11 16:37:14,787 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86662686-9cdb-4be9-8ab9-b5122a1dd1d2 2025-08-11 16:37:14,796 - DEBUG - Response Code: 404 2025-08-11 16:37:14,796 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:37:14,802 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:37:14,819 - DEBUG - Requesting: http://10.0.0.27:8082/project/7ba0431f-ccc9-4cd3-8da2-6e39f12c9935 2025-08-11 16:37:14,902 - INFO - Validated that VN ctest-vn-36075536 is not found in API Server 2025-08-11 16:37:14,912 - DEBUG - VN ctest-vn-36075536 is not present in Agent 10.0.0.141 2025-08-11 16:37:14,923 - DEBUG - VN ctest-vn-36075536 is not present in Agent 10.0.0.249 2025-08-11 16:37:14,923 - INFO - Validated that VN ctest-vn-36075536 is not in any agent 2025-08-11 16:37:14,951 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36075536 info 2025-08-11 16:37:16,230 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 16:37:16,230 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:33]
2025-08-11 16:37:16,230 - INFO - -------------------------------------------------------------------------------- 2025-08-11 16:37:16,997 - INFO - Deleted project: ctest-TestBasicPolicy-12616716, ID : 7ba0431f-ccc9-4cd3-8da2-6e39f12c9935