2026-01-21 19:27:02,399 - INFO - Domain Default found not creating 2026-01-21 19:27:02,585 - INFO - Project ctest-TestBasicPolicy-47945095 not found, creating it 2026-01-21 19:27:03,250 - INFO - Created Project:ctest-TestBasicPolicy-47945095, ID : 0e70db56-013b-4b9b-ae50-e5c1865afebf 2026-01-21 19:27:04,931 - INFO - ================================================================================ 2026-01-21 19:27:04,931 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-01-21 19:27:04,931 - 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 2026-01-21 19:27:06,252 - WARNING - Test is running with cores: {'10.0.0.22': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5053-2.1769021933']} 2026-01-21 19:27:06,267 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.27': {'10.20.0.18': '0', '10.20.0.254': '0'}} with 2026-01-21 19:27:06,267 - INFO - Initial checks done. Running the testcase now 2026-01-21 19:27:06,267 - INFO - 2026-01-21 19:27:07,042 - DEBUG - Response for create_network : {'network': {'id': '799ece45-4fe2-4887-b508-a3729bfa52b2', 'name': 'ctest-vn-64544480', 'tenant_id': '0e70db56013b4b9bae50e5c1865afebf', 'project_id': '0e70db56013b4b9bae50e5c1865afebf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-vn-64544480'], 'port_security_enabled': True, 'description': ''}} 2026-01-21 19:27:07,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '6be23ca2-ce09-4d2b-8b2d-e7c81bc60486', 'name': '', 'tenant_id': '0e70db56013b4b9bae50e5c1865afebf', 'network_id': '799ece45-4fe2-4887-b508-a3729bfa52b2', 'ip_version': 4, 'cidr': '196.40.107.0/26', 'allocation_pools': [{'start': '196.40.107.2', 'end': '196.40.107.62'}], 'gateway_ip': '196.40.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.40.107.2', 'tags': [], 'project_id': '0e70db56013b4b9bae50e5c1865afebf'}} 2026-01-21 19:27:07,363 - INFO - Created VN ctest-vn-64544480 2026-01-21 19:27:07,378 - DEBUG - VN ctest-vn-64544480 UUID is 799ece45-4fe2-4887-b508-a3729bfa52b2 2026-01-21 19:27:07,784 - DEBUG - Response for create_network : {'network': {'id': 'd0c9e272-2b43-485e-8d94-db91f06ad681', 'name': 'ctest-vn-68437390', 'tenant_id': '0e70db56013b4b9bae50e5c1865afebf', 'project_id': '0e70db56013b4b9bae50e5c1865afebf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-vn-68437390'], 'port_security_enabled': True, 'description': ''}} 2026-01-21 19:27:08,037 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d8bebd0-5a66-4b8c-85cd-2d6b435d4452', 'name': '', 'tenant_id': '0e70db56013b4b9bae50e5c1865afebf', 'network_id': 'd0c9e272-2b43-485e-8d94-db91f06ad681', 'ip_version': 4, 'cidr': '46.206.13.192/26', 'allocation_pools': [{'start': '46.206.13.194', 'end': '46.206.13.254'}], 'gateway_ip': '46.206.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.206.13.194', 'tags': [], 'project_id': '0e70db56013b4b9bae50e5c1865afebf'}} 2026-01-21 19:27:08,067 - INFO - Created VN ctest-vn-68437390 2026-01-21 19:27:08,083 - DEBUG - VN ctest-vn-68437390 UUID is d0c9e272-2b43-485e-8d94-db91f06ad681 2026-01-21 19:27:08,175 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480, 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-47945095:ctest-vn-68437390, 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] 2026-01-21 19:27:08,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '799ece45-4fe2-4887-b508-a3729bfa52b2', 'name': 'ctest-vn-64544480', 'tenant_id': '0e70db56013b4b9bae50e5c1865afebf', 'project_id': '0e70db56013b4b9bae50e5c1865afebf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6be23ca2-ce09-4d2b-8b2d-e7c81bc60486'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-vn-64544480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-policy-allow-all-02247814']], 'subnet_ipam': [{'subnet_cidr': '196.40.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-21 19:27:08,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0c9e272-2b43-485e-8d94-db91f06ad681', 'name': 'ctest-vn-68437390', 'tenant_id': '0e70db56013b4b9bae50e5c1865afebf', 'project_id': '0e70db56013b4b9bae50e5c1865afebf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d8bebd0-5a66-4b8c-85cd-2d6b435d4452'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-vn-68437390'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-policy-allow-all-02247814']], 'subnet_ipam': [{'subnet_cidr': '46.206.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-21 19:27:08,850 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:27:09,204 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:27:09,240 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:27:09,258 - DEBUG - Requesting: http://10.0.0.33:8082/project/0e70db56-013b-4b9b-ae50-e5c1865afebf 2026-01-21 19:27:09,384 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/799ece45-4fe2-4887-b508-a3729bfa52b2 2026-01-21 19:27:09,399 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/799ece45-4fe2-4887-b508-a3729bfa52b2 2026-01-21 19:27:09,412 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7463e600-0ac3-4123-8370-55dcd4c1f695 2026-01-21 19:27:09,423 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7463e600-0ac3-4123-8370-55dcd4c1f695 2026-01-21 19:27:09,435 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6a1db516-f124-4396-85de-bcd9109d95e6 2026-01-21 19:27:09,448 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:27:09,448 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/799ece45-4fe2-4887-b508-a3729bfa52b2 2026-01-21 19:27:09,462 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7463e600-0ac3-4123-8370-55dcd4c1f695 2026-01-21 19:27:09,483 - INFO - Verified VN network id 11 for VN 799ece45-4fe2-4887-b508-a3729bfa52b2 2026-01-21 19:27:09,484 - INFO - Verifications in API Server for VN ctest-vn-64544480 passed 2026-01-21 19:27:09,484 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/799ece45-4fe2-4887-b508-a3729bfa52b2 2026-01-21 19:27:09,497 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7463e600-0ac3-4123-8370-55dcd4c1f695 2026-01-21 19:27:09,510 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7463e600-0ac3-4123-8370-55dcd4c1f695 2026-01-21 19:27:09,521 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6a1db516-f124-4396-85de-bcd9109d95e6 2026-01-21 19:27:09,537 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47945095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8763668721997858951', 'uuid-lslong': '13044856033317114546'}, 'enable': 'true', 'created': '2026-01-21T19:27:06', 'last-modified': '2026-01-21T19:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062177'} 2026-01-21 19:27:09,544 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:27:09,552 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47945095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8763668721997858951', 'uuid-lslong': '13044856033317114546'}, 'enable': 'true', 'created': '2026-01-21T19:27:06', 'last-modified': '2026-01-21T19:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.070087'} 2026-01-21 19:27:09,558 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:27:09,564 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47945095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8763668721997858951', 'uuid-lslong': '13044856033317114546'}, 'enable': 'true', 'created': '2026-01-21T19:27:06', 'last-modified': '2026-01-21T19:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.090311'} 2026-01-21 19:27:09,570 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:27:09,570 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64544480 passed 2026-01-21 19:27:09,570 - DEBUG - ====Verifying policy data for ctest-vn-64544480 in API_Server ====== 2026-01-21 19:27:09,570 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:27:09,578 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:27:09,591 - DEBUG - Requesting: http://10.0.0.33:8082/project/0e70db56-013b-4b9b-ae50-e5c1865afebf 2026-01-21 19:27:09,706 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/799ece45-4fe2-4887-b508-a3729bfa52b2 2026-01-21 19:27:09,716 - DEBUG - ==>Verifying data for policy with id: 9fc91e0a-481d-458b-9ebb-6f45262e19c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-policy-allow-all-02247814'] 2026-01-21 19:27:09,716 - INFO - VN ctest-vn-64544480 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-21 19:27:09,717 - DEBUG - Verifying the vn in opserver 2026-01-21 19:27:09,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480 virtual network link through opserver 10.0.0.33 2026-01-21 19:27:09,717 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-21 19:27:10,017 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-21 19:27:10,092 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480?flat'} 2026-01-21 19:27:10,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480 virtual network link through opserver 10.0.0.22 2026-01-21 19:27:10,092 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-21 19:27:10,391 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-21 19:27:10,472 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480?flat'} 2026-01-21 19:27:10,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480 virtual network link through opserver 10.0.0.249 2026-01-21 19:27:10,472 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-21 19:27:10,772 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-21 19:27:10,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480?flat'} 2026-01-21 19:27:10,847 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480 is found in opserver 2026-01-21 19:27:10,868 - DEBUG - Do not have enough data to verify VN in agent 2026-01-21 19:27:10,879 - DEBUG - VRF ids for VN ctest-vn-64544480: {} 2026-01-21 19:27:10,879 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:27:10,887 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:27:10,900 - DEBUG - Requesting: http://10.0.0.33:8082/project/0e70db56-013b-4b9b-ae50-e5c1865afebf 2026-01-21 19:27:11,006 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d0c9e272-2b43-485e-8d94-db91f06ad681 2026-01-21 19:27:11,021 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d0c9e272-2b43-485e-8d94-db91f06ad681 2026-01-21 19:27:11,031 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a5de29e7-6c4e-4b29-bd7b-9076dfcd3dc7 2026-01-21 19:27:11,041 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a5de29e7-6c4e-4b29-bd7b-9076dfcd3dc7 2026-01-21 19:27:11,049 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e356ab0b-1c42-465e-8007-78a3d87171bf 2026-01-21 19:27:11,058 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-21 19:27:11,058 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d0c9e272-2b43-485e-8d94-db91f06ad681 2026-01-21 19:27:11,070 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a5de29e7-6c4e-4b29-bd7b-9076dfcd3dc7 2026-01-21 19:27:11,091 - INFO - Verified VN network id 12 for VN d0c9e272-2b43-485e-8d94-db91f06ad681 2026-01-21 19:27:11,091 - INFO - Verifications in API Server for VN ctest-vn-68437390 passed 2026-01-21 19:27:11,091 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d0c9e272-2b43-485e-8d94-db91f06ad681 2026-01-21 19:27:11,102 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a5de29e7-6c4e-4b29-bd7b-9076dfcd3dc7 2026-01-21 19:27:11,110 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a5de29e7-6c4e-4b29-bd7b-9076dfcd3dc7 2026-01-21 19:27:11,119 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e356ab0b-1c42-465e-8007-78a3d87171bf 2026-01-21 19:27:11,134 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47945095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15044805010187831390', 'uuid-lslong': '10202020475751290497'}, 'enable': 'true', 'created': '2026-01-21T19:27:07', 'last-modified': '2026-01-21T19:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.425257'} 2026-01-21 19:27:11,143 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-21 19:27:11,151 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47945095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15044805010187831390', 'uuid-lslong': '10202020475751290497'}, 'enable': 'true', 'created': '2026-01-21T19:27:07', 'last-modified': '2026-01-21T19:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.448966'} 2026-01-21 19:27:11,161 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-21 19:27:11,167 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47945095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15044805010187831390', 'uuid-lslong': '10202020475751290497'}, 'enable': 'true', 'created': '2026-01-21T19:27:07', 'last-modified': '2026-01-21T19:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.465175'} 2026-01-21 19:27:11,174 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-21 19:27:11,174 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68437390 passed 2026-01-21 19:27:11,174 - DEBUG - ====Verifying policy data for ctest-vn-68437390 in API_Server ====== 2026-01-21 19:27:11,174 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:27:11,181 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:27:11,195 - DEBUG - Requesting: http://10.0.0.33:8082/project/0e70db56-013b-4b9b-ae50-e5c1865afebf 2026-01-21 19:27:11,308 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d0c9e272-2b43-485e-8d94-db91f06ad681 2026-01-21 19:27:11,321 - DEBUG - ==>Verifying data for policy with id: 9fc91e0a-481d-458b-9ebb-6f45262e19c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-47945095', 'ctest-policy-allow-all-02247814'] 2026-01-21 19:27:11,321 - INFO - VN ctest-vn-68437390 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-21 19:27:11,321 - DEBUG - Verifying the vn in opserver 2026-01-21 19:27:11,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390 virtual network link through opserver 10.0.0.33 2026-01-21 19:27:11,321 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-21 19:27:11,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390?flat'} 2026-01-21 19:27:11,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390 virtual network link through opserver 10.0.0.22 2026-01-21 19:27:11,407 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-21 19:27:11,489 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390?flat'} 2026-01-21 19:27:11,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390 virtual network link through opserver 10.0.0.249 2026-01-21 19:27:11,489 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-21 19:27:11,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390?flat'} 2026-01-21 19:27:11,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-68437390 is found in opserver 2026-01-21 19:27:11,571 - DEBUG - Do not have enough data to verify VN in agent 2026-01-21 19:27:11,580 - DEBUG - VRF ids for VN ctest-vn-68437390: {} 2026-01-21 19:27:11,636 - DEBUG - Services list from nova: [, , , ] 2026-01-21 19:27:12,682 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5053-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5053-1) 2026-01-21 19:27:14,153 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5053-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5053-2) 2026-01-21 19:27:14,153 - INFO - Waiting for VM ctest-TestBasicPolicy-47945095-84682171 to be up.. 2026-01-21 19:27:14,246 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-01-21 19:27:19,390 - DEBUG - VM is in ACTIVE state now 2026-01-21 19:27:19,390 - INFO - VM name : ctest-TestBasicPolicy-47945095-84682171 2026-01-21 19:27:19,546 - DEBUG - VM ctest-TestBasicPolicy-47945095-84682171 ID is 3eb5fb05-5710-4f3e-a5a4-2af98ba637ef 2026-01-21 19:27:19,618 - DEBUG - VM ctest-TestBasicPolicy-47945095-84682171 launched on Node an-jenkins-deploy-platform-ansible-os-5053-1 2026-01-21 19:27:19,750 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/3eb5fb05-5710-4f3e-a5a4-2af98ba637ef 2026-01-21 19:27:20,333 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/3eb5fb05-5710-4f3e-a5a4-2af98ba637ef 2026-01-21 19:27:20,378 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/558dbe0a-fbbe-4c37-afc4-65f74def4dfb 2026-01-21 19:27:23,631 - 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') 2026-01-21 19:27:23,631 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-47945095-84682171 failed! 2026-01-21 19:27:23,646 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-47945095:ctest-vn-64544480 is 196.40.107.1 and allocation pool is NOT set 2026-01-21 19:27:25,713 - 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=2.74 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.373 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.373/1.555/2.738/1.182 ms') 2026-01-21 19:27:25,713 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-47945095-84682171 passed 2026-01-21 19:27:25,832 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-21 19:27:25,832 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47945095-84682171, IP 196.40.107.3, Port 22 2026-01-21 19:27:25,985 - DEBUG - VM ctest-TestBasicPolicy-47945095-84682171 is ready for SSH connections 2026-01-21 19:27:25,985 - INFO - Waiting for VM ctest-TestBasicPolicy-47945095-01680931 to be up.. 2026-01-21 19:27:26,098 - DEBUG - VM is in ACTIVE state now 2026-01-21 19:27:26,098 - INFO - VM name : ctest-TestBasicPolicy-47945095-01680931 2026-01-21 19:27:26,191 - DEBUG - VM ctest-TestBasicPolicy-47945095-01680931 ID is 6d9b7825-d2e5-483d-ac25-b2bb339f4050 2026-01-21 19:27:26,191 - DEBUG - VM ctest-TestBasicPolicy-47945095-01680931 launched on Node an-jenkins-deploy-platform-ansible-os-5053-2 2026-01-21 19:27:26,292 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/6d9b7825-d2e5-483d-ac25-b2bb339f4050 2026-01-21 19:27:26,308 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/7e29cd22-f44b-4053-bb2e-523a5a702484 2026-01-21 19:27:27,533 - 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.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.363 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.363/2.253/4.144/1.890 ms') 2026-01-21 19:27:27,534 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-47945095-01680931 passed 2026-01-21 19:27:27,651 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-21 19:27:27,651 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-47945095-01680931, IP 46.206.13.195, Port 22 2026-01-21 19:27:27,811 - DEBUG - VM ctest-TestBasicPolicy-47945095-01680931 is ready for SSH connections 2026-01-21 19:27:27,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-21 19:27:27,811 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.206.13.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2026-01-21 19:27:27,811 - DEBUG - ping -s 56 -c 3 -W 1 46.206.13.195 2026-01-21 19:27:31,713 - DEBUG - PING 46.206.13.195 (46.206.13.195): 56 data bytes 64 bytes from 46.206.13.195: seq=0 ttl=63 time=5.345 ms 64 bytes from 46.206.13.195: seq=1 ttl=63 time=0.869 ms 64 bytes from 46.206.13.195: seq=2 ttl=63 time=0.833 ms --- 46.206.13.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.833/2.349/5.345 ms 2026-01-21 19:27:31,713 - INFO - Ping to IP 46.206.13.195 from VM ctest-TestBasicPolicy-47945095-84682171 passed 2026-01-21 19:27:31,937 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9fc91e0a-481d-458b-9ebb-6f45262e19c7", "href": "http://10.0.0.249:8082/network-policy/9fc91e0a-481d-458b-9ebb-6f45262e19c7"}} 2026-01-21 19:27:31,938 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-21 19:27:31,938 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.206.13.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2026-01-21 19:27:31,938 - DEBUG - ping -s 56 -c 3 -W 1 46.206.13.195 2026-01-21 19:27:35,140 - DEBUG - PING 46.206.13.195 (46.206.13.195): 56 data bytes 64 bytes from 46.206.13.195: seq=0 ttl=63 time=2.536 ms --- 46.206.13.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.536/2.536/2.536 ms 2026-01-21 19:27:35,140 - WARNING - Ping to IP 46.206.13.195 from VM ctest-TestBasicPolicy-47945095-84682171 failed 2026-01-21 19:27:35,140 - INFO - Deleting VM ctest-TestBasicPolicy-47945095-01680931 2026-01-21 19:27:35,213 - INFO - Deleting VM ctest-TestBasicPolicy-47945095-84682171 2026-01-21 19:27:35,813 - INFO - Deleted policy ctest-policy-allow-all-02247814 2026-01-21 19:27:35,813 - INFO - Deleting VN ctest-vn-68437390 2026-01-21 19:27:35,898 - DEBUG - VN d0c9e272-2b43-485e-8d94-db91f06ad681 still in use: Unable to complete operation on network d0c9e272-2b43-485e-8d94-db91f06ad681. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ad56f58d-7975-410e-a45e-5ff496c01401'] 2026-01-21 19:27:35,899 - WARNING - Deleting VN ctest-vn-68437390 failed..Will retry 2026-01-21 19:27:38,138 - DEBUG - Response for deleting network () 2026-01-21 19:27:38,138 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a5de29e7-6c4e-4b29-bd7b-9076dfcd3dc7 2026-01-21 19:27:38,158 - DEBUG - Response Code: 404 2026-01-21 19:27:38,158 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:27:38,169 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:27:38,196 - DEBUG - Requesting: http://10.0.0.33:8082/project/0e70db56-013b-4b9b-ae50-e5c1865afebf 2026-01-21 19:27:38,303 - INFO - Validated that VN ctest-vn-68437390 is not found in API Server 2026-01-21 19:27:38,313 - DEBUG - VN ctest-vn-68437390 is not present in Agent 10.0.0.19 2026-01-21 19:27:38,323 - DEBUG - VN ctest-vn-68437390 is not present in Agent 10.0.0.27 2026-01-21 19:27:38,323 - INFO - Validated that VN ctest-vn-68437390 is not in any agent 2026-01-21 19:27:38,353 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68437390 info 2026-01-21 19:27:38,353 - INFO - Deleting VN ctest-vn-64544480 2026-01-21 19:27:38,526 - DEBUG - Response for deleting network () 2026-01-21 19:27:38,526 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7463e600-0ac3-4123-8370-55dcd4c1f695 2026-01-21 19:27:38,532 - DEBUG - Response Code: 404 2026-01-21 19:27:38,532 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:27:38,538 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:27:38,556 - DEBUG - Requesting: http://10.0.0.33:8082/project/0e70db56-013b-4b9b-ae50-e5c1865afebf 2026-01-21 19:27:38,648 - INFO - Validated that VN ctest-vn-64544480 is not found in API Server 2026-01-21 19:27:38,660 - DEBUG - VN ctest-vn-64544480 is not present in Agent 10.0.0.19 2026-01-21 19:27:38,673 - DEBUG - VN ctest-vn-64544480 is not present in Agent 10.0.0.27 2026-01-21 19:27:38,673 - INFO - Validated that VN ctest-vn-64544480 is not in any agent 2026-01-21 19:27:38,712 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64544480 info 2026-01-21 19:27:40,009 - DEBUG - No XMPP flaps were noticed during the test
2026-01-21 19:27:40,009 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2026-01-21 19:27:40,009 - INFO - -------------------------------------------------------------------------------- 2026-01-21 19:27:40,897 - INFO - Deleted project: ctest-TestBasicPolicy-47945095, ID : 0e70db56-013b-4b9b-ae50-e5c1865afebf