2025-07-22 16:12:03,131 - INFO - Domain Default found not creating 2025-07-22 16:12:03,638 - INFO - Project ctest-TestBasicPolicy-42606266 not found, creating it 2025-07-22 16:12:04,271 - INFO - Created Project:ctest-TestBasicPolicy-42606266, ID : 55db1a83-495e-4bb2-9958-3f0c90068115 2025-07-22 16:12:05,786 - INFO - ================================================================================ 2025-07-22 16:12:05,786 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-22 16:12:05,786 - 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-07-22 16:12:07,085 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-07-22 16:12:07,085 - INFO - Initial checks done. Running the testcase now 2025-07-22 16:12:07,085 - INFO - 2025-07-22 16:12:07,820 - DEBUG - Response for create_network : {'network': {'id': '729c7661-a439-4ea3-b8fa-1bb9b0762cf5', 'name': 'ctest-vn-31564276', 'tenant_id': '55db1a83495e4bb299583f0c90068115', 'project_id': '55db1a83495e4bb299583f0c90068115', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-vn-31564276'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:12:08,115 - DEBUG - Response for create_subnet : {'subnet': {'id': '3de40b54-3b30-4b6b-8000-63f3eb3d04b3', 'name': '', 'tenant_id': '55db1a83495e4bb299583f0c90068115', 'network_id': '729c7661-a439-4ea3-b8fa-1bb9b0762cf5', 'ip_version': 4, 'cidr': '108.250.89.64/26', 'allocation_pools': [{'start': '108.250.89.66', 'end': '108.250.89.126'}], 'gateway_ip': '108.250.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.250.89.66', 'tags': [], 'project_id': '55db1a83495e4bb299583f0c90068115'}} 2025-07-22 16:12:08,142 - INFO - Created VN ctest-vn-31564276 2025-07-22 16:12:08,159 - DEBUG - VN ctest-vn-31564276 UUID is 729c7661-a439-4ea3-b8fa-1bb9b0762cf5 2025-07-22 16:12:08,573 - DEBUG - Response for create_network : {'network': {'id': 'cacb9252-db91-4c19-9890-f49a45adf444', 'name': 'ctest-vn-94544001', 'tenant_id': '55db1a83495e4bb299583f0c90068115', 'project_id': '55db1a83495e4bb299583f0c90068115', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-vn-94544001'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:12:08,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ee7bbe9-6402-41d7-ba63-bcdbebbe5d44', 'name': '', 'tenant_id': '55db1a83495e4bb299583f0c90068115', 'network_id': 'cacb9252-db91-4c19-9890-f49a45adf444', 'ip_version': 4, 'cidr': '52.63.19.192/26', 'allocation_pools': [{'start': '52.63.19.194', 'end': '52.63.19.254'}], 'gateway_ip': '52.63.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.63.19.194', 'tags': [], 'project_id': '55db1a83495e4bb299583f0c90068115'}} 2025-07-22 16:12:08,888 - INFO - Created VN ctest-vn-94544001 2025-07-22 16:12:08,901 - DEBUG - VN ctest-vn-94544001 UUID is cacb9252-db91-4c19-9890-f49a45adf444 2025-07-22 16:12:08,994 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276, 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-42606266:ctest-vn-94544001, 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-07-22 16:12:09,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '729c7661-a439-4ea3-b8fa-1bb9b0762cf5', 'name': 'ctest-vn-31564276', 'tenant_id': '55db1a83495e4bb299583f0c90068115', 'project_id': '55db1a83495e4bb299583f0c90068115', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3de40b54-3b30-4b6b-8000-63f3eb3d04b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-vn-31564276'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-policy-allow-all-52284978']], 'subnet_ipam': [{'subnet_cidr': '108.250.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:12:09,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cacb9252-db91-4c19-9890-f49a45adf444', 'name': 'ctest-vn-94544001', 'tenant_id': '55db1a83495e4bb299583f0c90068115', 'project_id': '55db1a83495e4bb299583f0c90068115', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ee7bbe9-6402-41d7-ba63-bcdbebbe5d44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-vn-94544001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-policy-allow-all-52284978']], 'subnet_ipam': [{'subnet_cidr': '52.63.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:12:09,722 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:12:10,040 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:12:10,072 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:12:10,089 - DEBUG - Requesting: http://10.0.0.254:8082/project/55db1a83-495e-4bb2-9958-3f0c90068115 2025-07-22 16:12:10,190 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/729c7661-a439-4ea3-b8fa-1bb9b0762cf5 2025-07-22 16:12:10,205 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/729c7661-a439-4ea3-b8fa-1bb9b0762cf5 2025-07-22 16:12:10,217 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6739081d-40ce-4cc8-ab14-9788a3d4b91c 2025-07-22 16:12:10,227 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6739081d-40ce-4cc8-ab14-9788a3d4b91c 2025-07-22 16:12:10,236 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/469156f6-7494-42c5-a741-e07bac922801 2025-07-22 16:12:10,244 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:12:10,244 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/729c7661-a439-4ea3-b8fa-1bb9b0762cf5 2025-07-22 16:12:10,257 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6739081d-40ce-4cc8-ab14-9788a3d4b91c 2025-07-22 16:12:10,279 - INFO - Verified VN network id 12 for VN 729c7661-a439-4ea3-b8fa-1bb9b0762cf5 2025-07-22 16:12:10,280 - INFO - Verifications in API Server for VN ctest-vn-31564276 passed 2025-07-22 16:12:10,280 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/729c7661-a439-4ea3-b8fa-1bb9b0762cf5 2025-07-22 16:12:10,293 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6739081d-40ce-4cc8-ab14-9788a3d4b91c 2025-07-22 16:12:10,302 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6739081d-40ce-4cc8-ab14-9788a3d4b91c 2025-07-22 16:12:10,312 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/469156f6-7494-42c5-a741-e07bac922801 2025-07-22 16:12:10,334 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42606266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8258605978429771427', 'uuid-lslong': '13328996531499838709'}, 'enable': 'true', 'created': '2025-07-22T16:12:07', 'last-modified': '2025-07-22T16:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003224'} 2025-07-22 16:12:10,345 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:12:10,352 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42606266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8258605978429771427', 'uuid-lslong': '13328996531499838709'}, 'enable': 'true', 'created': '2025-07-22T16:12:07', 'last-modified': '2025-07-22T16:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031143'} 2025-07-22 16:12:10,359 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:12:10,367 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42606266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8258605978429771427', 'uuid-lslong': '13328996531499838709'}, 'enable': 'true', 'created': '2025-07-22T16:12:07', 'last-modified': '2025-07-22T16:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046168'} 2025-07-22 16:12:10,376 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:12:10,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31564276 passed 2025-07-22 16:12:10,377 - DEBUG - ====Verifying policy data for ctest-vn-31564276 in API_Server ====== 2025-07-22 16:12:10,377 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:12:10,384 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:12:10,400 - DEBUG - Requesting: http://10.0.0.254:8082/project/55db1a83-495e-4bb2-9958-3f0c90068115 2025-07-22 16:12:10,503 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/729c7661-a439-4ea3-b8fa-1bb9b0762cf5 2025-07-22 16:12:10,520 - DEBUG - ==>Verifying data for policy with id: 190052b8-8953-44e7-a7cf-15578def1143, fqn: ['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-policy-allow-all-52284978'] 2025-07-22 16:12:10,520 - INFO - VN ctest-vn-31564276 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 16:12:10,520 - DEBUG - Verifying the vn in opserver 2025-07-22 16:12:10,520 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 virtual network link through opserver 10.0.0.254 2025-07-22 16:12:10,520 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 16:12:10,816 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 16:12:10,874 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276?flat'} 2025-07-22 16:12:10,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 virtual network link through opserver 10.0.0.50 2025-07-22 16:12:10,874 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 16:12:11,165 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 16:12:11,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276?flat'} 2025-07-22 16:12:11,229 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 virtual network link through opserver 10.0.0.23 2025-07-22 16:12:11,229 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-22 16:12:11,519 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-22 16:12:11,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276?flat'} 2025-07-22 16:12:11,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is found in opserver 2025-07-22 16:12:11,615 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 16:12:11,627 - DEBUG - VRF ids for VN ctest-vn-31564276: {} 2025-07-22 16:12:11,627 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:12:11,636 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:12:11,653 - DEBUG - Requesting: http://10.0.0.254:8082/project/55db1a83-495e-4bb2-9958-3f0c90068115 2025-07-22 16:12:11,764 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cacb9252-db91-4c19-9890-f49a45adf444 2025-07-22 16:12:11,784 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cacb9252-db91-4c19-9890-f49a45adf444 2025-07-22 16:12:11,800 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/09a8a605-5f18-4c2a-a958-a1915b6803d8 2025-07-22 16:12:11,810 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/09a8a605-5f18-4c2a-a958-a1915b6803d8 2025-07-22 16:12:11,821 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc1c4090-ab50-4f5f-8336-535503f343e0 2025-07-22 16:12:11,830 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 16:12:11,830 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cacb9252-db91-4c19-9890-f49a45adf444 2025-07-22 16:12:11,842 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/09a8a605-5f18-4c2a-a958-a1915b6803d8 2025-07-22 16:12:11,864 - INFO - Verified VN network id 13 for VN cacb9252-db91-4c19-9890-f49a45adf444 2025-07-22 16:12:11,864 - INFO - Verifications in API Server for VN ctest-vn-94544001 passed 2025-07-22 16:12:11,864 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cacb9252-db91-4c19-9890-f49a45adf444 2025-07-22 16:12:11,880 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/09a8a605-5f18-4c2a-a958-a1915b6803d8 2025-07-22 16:12:11,890 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/09a8a605-5f18-4c2a-a958-a1915b6803d8 2025-07-22 16:12:11,900 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc1c4090-ab50-4f5f-8336-535503f343e0 2025-07-22 16:12:11,914 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42606266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14612934300502412313', 'uuid-lslong': '10993555633842549828'}, 'enable': 'true', 'created': '2025-07-22T16:12:08', 'last-modified': '2025-07-22T16:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.360267'} 2025-07-22 16:12:11,920 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 16:12:11,927 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42606266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14612934300502412313', 'uuid-lslong': '10993555633842549828'}, 'enable': 'true', 'created': '2025-07-22T16:12:08', 'last-modified': '2025-07-22T16:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.378314'} 2025-07-22 16:12:11,934 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 16:12:11,942 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42606266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14612934300502412313', 'uuid-lslong': '10993555633842549828'}, 'enable': 'true', 'created': '2025-07-22T16:12:08', 'last-modified': '2025-07-22T16:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.390014'} 2025-07-22 16:12:11,950 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 16:12:11,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94544001 passed 2025-07-22 16:12:11,951 - DEBUG - ====Verifying policy data for ctest-vn-94544001 in API_Server ====== 2025-07-22 16:12:11,951 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:12:11,958 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:12:11,972 - DEBUG - Requesting: http://10.0.0.254:8082/project/55db1a83-495e-4bb2-9958-3f0c90068115 2025-07-22 16:12:12,072 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cacb9252-db91-4c19-9890-f49a45adf444 2025-07-22 16:12:12,088 - DEBUG - ==>Verifying data for policy with id: 190052b8-8953-44e7-a7cf-15578def1143, fqn: ['default-domain', 'ctest-TestBasicPolicy-42606266', 'ctest-policy-allow-all-52284978'] 2025-07-22 16:12:12,088 - INFO - VN ctest-vn-94544001 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 16:12:12,088 - DEBUG - Verifying the vn in opserver 2025-07-22 16:12:12,088 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001 virtual network link through opserver 10.0.0.254 2025-07-22 16:12:12,088 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 16:12:12,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001?flat'} 2025-07-22 16:12:12,148 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001 virtual network link through opserver 10.0.0.50 2025-07-22 16:12:12,148 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 16:12:12,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001?flat'} 2025-07-22 16:12:12,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001 virtual network link through opserver 10.0.0.23 2025-07-22 16:12:12,211 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-22 16:12:12,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001?flat'} 2025-07-22 16:12:12,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-94544001 is found in opserver 2025-07-22 16:12:12,304 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 16:12:12,318 - DEBUG - VRF ids for VN ctest-vn-94544001: {} 2025-07-22 16:12:12,388 - DEBUG - Services list from nova: [, , , ] 2025-07-22 16:12:13,684 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3693-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3693-2) 2025-07-22 16:12:15,302 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3693-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3693-1) 2025-07-22 16:12:15,303 - INFO - Waiting for VM ctest-TestBasicPolicy-42606266-31298237 to be up.. 2025-07-22 16:12:15,454 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 16:12:20,540 - DEBUG - VM is in ACTIVE state now 2025-07-22 16:12:20,540 - INFO - VM name : ctest-TestBasicPolicy-42606266-31298237 2025-07-22 16:12:20,627 - DEBUG - VM ctest-TestBasicPolicy-42606266-31298237 ID is 60d3a625-a697-429f-90c8-7be14ef6a498 2025-07-22 16:12:20,664 - DEBUG - VM ctest-TestBasicPolicy-42606266-31298237 launched on Node an-jenkins-deploy-platform-ansible-os-3693-2 2025-07-22 16:12:20,755 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/60d3a625-a697-429f-90c8-7be14ef6a498 2025-07-22 16:12:21,062 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/60d3a625-a697-429f-90c8-7be14ef6a498 2025-07-22 16:12:21,100 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e460c599-f02c-4c15-92f6-f1d20012a75e 2025-07-22 16:12:24,348 - 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 1025ms') 2025-07-22 16:12:24,349 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:24,366 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:28,447 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-07-22 16:12:28,448 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:28,464 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:32,541 - 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 1008ms') 2025-07-22 16:12:32,541 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:32,561 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:36,635 - 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 1009ms') 2025-07-22 16:12:36,635 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:36,658 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:40,739 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms') 2025-07-22 16:12:40,739 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:40,755 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:44,831 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-07-22 16:12:44,832 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:44,850 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:48,924 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-07-22 16:12:48,924 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:48,941 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:53,021 - 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-07-22 16:12:53,021 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 failed! 2025-07-22 16:12:53,040 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42606266:ctest-vn-31564276 is 108.250.89.65 and allocation pool is NOT set 2025-07-22 16:12:55,106 - 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.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.29 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.287/3.389/4.492/1.102 ms') 2025-07-22 16:12:55,106 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-31298237 passed 2025-07-22 16:12:55,224 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:12:55,225 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42606266-31298237, IP 108.250.89.67, Port 22 2025-07-22 16:12:55,295 - 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-07-22 16:12:55,410 - DEBUG - VM ctest-TestBasicPolicy-42606266-31298237 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:13:00,411 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:13:00,411 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42606266-31298237, IP 108.250.89.67, Port 22 2025-07-22 16:13:00,469 - 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-07-22 16:13:00,554 - DEBUG - VM ctest-TestBasicPolicy-42606266-31298237 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:13:05,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:13:05,555 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42606266-31298237, IP 108.250.89.67, Port 22 2025-07-22 16:13:05,624 - 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-07-22 16:13:05,725 - DEBUG - VM ctest-TestBasicPolicy-42606266-31298237 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:13:10,726 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:13:10,726 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42606266-31298237, IP 108.250.89.67, Port 22 2025-07-22 16:13:10,785 - 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-07-22 16:13:10,870 - DEBUG - VM ctest-TestBasicPolicy-42606266-31298237 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:13:15,871 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:13:15,871 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42606266-31298237, IP 108.250.89.67, Port 22 2025-07-22 16:13:16,047 - DEBUG - VM ctest-TestBasicPolicy-42606266-31298237 is ready for SSH connections 2025-07-22 16:13:16,047 - INFO - Waiting for VM ctest-TestBasicPolicy-42606266-13313373 to be up.. 2025-07-22 16:13:16,151 - DEBUG - VM is in ACTIVE state now 2025-07-22 16:13:16,152 - INFO - VM name : ctest-TestBasicPolicy-42606266-13313373 2025-07-22 16:13:16,244 - DEBUG - VM ctest-TestBasicPolicy-42606266-13313373 ID is 6f3a31af-c864-4104-9b6a-15ba9f36db58 2025-07-22 16:13:16,244 - DEBUG - VM ctest-TestBasicPolicy-42606266-13313373 launched on Node an-jenkins-deploy-platform-ansible-os-3693-1 2025-07-22 16:13:16,339 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/6f3a31af-c864-4104-9b6a-15ba9f36db58 2025-07-22 16:13:16,351 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/7e548a61-cc1c-4aa8-87a4-65761fd53bb9 2025-07-22 16:13:17,585 - 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.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.86 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.640/2.751/2.863/0.111 ms') 2025-07-22 16:13:17,585 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42606266-13313373 passed 2025-07-22 16:13:17,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:13:17,710 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42606266-13313373, IP 52.63.19.195, Port 22 2025-07-22 16:13:17,880 - DEBUG - VM ctest-TestBasicPolicy-42606266-13313373 is ready for SSH connections 2025-07-22 16:13:17,880 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:13:17,880 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.63.19.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-07-22 16:13:17,880 - DEBUG - ping -s 56 -c 3 -W 1 52.63.19.195 2025-07-22 16:13:40,808 - DEBUG - PING 52.63.19.195 (52.63.19.195) 56(84) bytes of data. 64 bytes from 52.63.19.195: icmp_req=1 ttl=63 time=15.2 ms 64 bytes from 52.63.19.195: icmp_req=2 ttl=63 time=1.73 ms 64 bytes from 52.63.19.195: icmp_req=3 ttl=63 time=1.18 ms --- 52.63.19.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.187/6.057/15.247/6.502 ms 2025-07-22 16:13:40,808 - INFO - Ping to IP 52.63.19.195 from VM ctest-TestBasicPolicy-42606266-31298237 passed 2025-07-22 16:13:41,056 - DEBUG - Policy Update Response {"network-policy": {"uuid": "190052b8-8953-44e7-a7cf-15578def1143", "href": "http://10.0.0.23:8082/network-policy/190052b8-8953-44e7-a7cf-15578def1143"}} 2025-07-22 16:13:41,056 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:13:41,056 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.63.19.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-07-22 16:13:41,056 - DEBUG - ping -s 56 -c 3 -W 1 52.63.19.195 2025-07-22 16:13:45,027 - DEBUG - PING 52.63.19.195 (52.63.19.195) 56(84) bytes of data. --- 52.63.19.195 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms 2025-07-22 16:13:45,028 - WARNING - Ping to IP 52.63.19.195 from VM ctest-TestBasicPolicy-42606266-31298237 failed 2025-07-22 16:13:45,028 - INFO - Deleting VM ctest-TestBasicPolicy-42606266-13313373 2025-07-22 16:13:45,102 - INFO - Deleting VM ctest-TestBasicPolicy-42606266-31298237 2025-07-22 16:13:45,657 - INFO - Deleted policy ctest-policy-allow-all-52284978 2025-07-22 16:13:45,659 - INFO - Deleting VN ctest-vn-94544001 2025-07-22 16:13:45,724 - DEBUG - VN cacb9252-db91-4c19-9890-f49a45adf444 still in use: Unable to complete operation on network cacb9252-db91-4c19-9890-f49a45adf444. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6e2e4935-3f0a-4a47-b3e6-632da2e4ed31'] 2025-07-22 16:13:45,724 - WARNING - Deleting VN ctest-vn-94544001 failed..Will retry 2025-07-22 16:13:47,940 - DEBUG - Response for deleting network () 2025-07-22 16:13:47,940 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/09a8a605-5f18-4c2a-a958-a1915b6803d8 2025-07-22 16:13:47,954 - DEBUG - Response Code: 404 2025-07-22 16:13:47,955 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:13:47,972 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:13:48,001 - DEBUG - Requesting: http://10.0.0.254:8082/project/55db1a83-495e-4bb2-9958-3f0c90068115 2025-07-22 16:13:48,097 - INFO - Validated that VN ctest-vn-94544001 is not found in API Server 2025-07-22 16:13:48,114 - DEBUG - VN ctest-vn-94544001 is not present in Agent 10.0.0.19 2025-07-22 16:13:48,130 - DEBUG - VN ctest-vn-94544001 is not present in Agent 10.0.0.27 2025-07-22 16:13:48,130 - INFO - Validated that VN ctest-vn-94544001 is not in any agent 2025-07-22 16:13:48,172 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94544001 info 2025-07-22 16:13:48,172 - INFO - Deleting VN ctest-vn-31564276 2025-07-22 16:13:48,402 - DEBUG - Response for deleting network () 2025-07-22 16:13:48,402 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6739081d-40ce-4cc8-ab14-9788a3d4b91c 2025-07-22 16:13:48,409 - DEBUG - Response Code: 404 2025-07-22 16:13:48,409 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:13:48,417 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:13:48,432 - DEBUG - Requesting: http://10.0.0.254:8082/project/55db1a83-495e-4bb2-9958-3f0c90068115 2025-07-22 16:13:48,532 - INFO - Validated that VN ctest-vn-31564276 is not found in API Server 2025-07-22 16:13:48,545 - DEBUG - VN ctest-vn-31564276 is not present in Agent 10.0.0.19 2025-07-22 16:13:48,558 - DEBUG - VN ctest-vn-31564276 is not present in Agent 10.0.0.27 2025-07-22 16:13:48,558 - INFO - Validated that VN ctest-vn-31564276 is not in any agent 2025-07-22 16:13:48,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31564276 info 2025-07-22 16:13:49,888 - DEBUG - No XMPP flaps were noticed during the test
2025-07-22 16:13:49,888 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:44]
2025-07-22 16:13:49,888 - INFO - -------------------------------------------------------------------------------- 2025-07-22 16:13:50,677 - INFO - Deleted project: ctest-TestBasicPolicy-42606266, ID : 55db1a83-495e-4bb2-9958-3f0c90068115