2025-08-11 02:37:52,052 - INFO - Domain Default found not creating 2025-08-11 02:37:52,204 - INFO - Project ctest-TestBasicPolicy-64413137 not found, creating it 2025-08-11 02:37:52,747 - INFO - Created Project:ctest-TestBasicPolicy-64413137, ID : 42fcc4ac-c2be-4327-b971-cb60aa4ded47 2025-08-11 02:37:54,179 - INFO - ================================================================================ 2025-08-11 02:37:54,179 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-11 02:37:54,179 - 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 02:37:55,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2025-08-11 02:37:55,439 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:37:55,439 - INFO - 2025-08-11 02:37:56,099 - DEBUG - Response for create_network : {'network': {'id': 'f7533e2f-8bb3-442e-aaa7-318523f8fec2', 'name': 'ctest-vn-27490066', 'tenant_id': '42fcc4acc2be4327b971cb60aa4ded47', 'project_id': '42fcc4acc2be4327b971cb60aa4ded47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-vn-27490066'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:37:56,332 - DEBUG - Response for create_subnet : {'subnet': {'id': '7adc64e7-c8c0-46db-9e60-70369eea4446', 'name': '', 'tenant_id': '42fcc4acc2be4327b971cb60aa4ded47', 'network_id': 'f7533e2f-8bb3-442e-aaa7-318523f8fec2', 'ip_version': 4, 'cidr': '219.136.145.128/26', 'allocation_pools': [{'start': '219.136.145.130', 'end': '219.136.145.190'}], 'gateway_ip': '219.136.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.136.145.130', 'tags': [], 'project_id': '42fcc4acc2be4327b971cb60aa4ded47'}} 2025-08-11 02:37:56,354 - INFO - Created VN ctest-vn-27490066 2025-08-11 02:37:56,368 - DEBUG - VN ctest-vn-27490066 UUID is f7533e2f-8bb3-442e-aaa7-318523f8fec2 2025-08-11 02:37:57,023 - DEBUG - Response for create_network : {'network': {'id': 'be9d43d8-27d7-47e2-890b-a6f3f9df83a8', 'name': 'ctest-vn-35528117', 'tenant_id': '42fcc4acc2be4327b971cb60aa4ded47', 'project_id': '42fcc4acc2be4327b971cb60aa4ded47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-vn-35528117'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:37:57,239 - DEBUG - Response for create_subnet : {'subnet': {'id': '17e7c3b2-b494-4d9d-8115-d95f0c5c3188', 'name': '', 'tenant_id': '42fcc4acc2be4327b971cb60aa4ded47', 'network_id': 'be9d43d8-27d7-47e2-890b-a6f3f9df83a8', 'ip_version': 4, 'cidr': '17.130.144.192/26', 'allocation_pools': [{'start': '17.130.144.194', 'end': '17.130.144.254'}], 'gateway_ip': '17.130.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.130.144.194', 'tags': [], 'project_id': '42fcc4acc2be4327b971cb60aa4ded47'}} 2025-08-11 02:37:57,263 - INFO - Created VN ctest-vn-35528117 2025-08-11 02:37:57,278 - DEBUG - VN ctest-vn-35528117 UUID is be9d43d8-27d7-47e2-890b-a6f3f9df83a8 2025-08-11 02:37:57,363 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066, 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-64413137:ctest-vn-35528117, 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 02:37:57,759 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7533e2f-8bb3-442e-aaa7-318523f8fec2', 'name': 'ctest-vn-27490066', 'tenant_id': '42fcc4acc2be4327b971cb60aa4ded47', 'project_id': '42fcc4acc2be4327b971cb60aa4ded47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7adc64e7-c8c0-46db-9e60-70369eea4446'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-vn-27490066'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-policy-allow-all-57384906']], 'subnet_ipam': [{'subnet_cidr': '219.136.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:37:57,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be9d43d8-27d7-47e2-890b-a6f3f9df83a8', 'name': 'ctest-vn-35528117', 'tenant_id': '42fcc4acc2be4327b971cb60aa4ded47', 'project_id': '42fcc4acc2be4327b971cb60aa4ded47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17e7c3b2-b494-4d9d-8115-d95f0c5c3188'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-vn-35528117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-policy-allow-all-57384906']], 'subnet_ipam': [{'subnet_cidr': '17.130.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:37:58,132 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:37:58,426 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:37:58,456 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:37:58,476 - DEBUG - Requesting: http://10.0.0.23:8082/project/42fcc4ac-c2be-4327-b971-cb60aa4ded47 2025-08-11 02:37:58,605 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f7533e2f-8bb3-442e-aaa7-318523f8fec2 2025-08-11 02:37:58,625 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f7533e2f-8bb3-442e-aaa7-318523f8fec2 2025-08-11 02:37:58,638 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2c57da99-3b05-42ac-a08f-86821b6574f1 2025-08-11 02:37:58,646 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2c57da99-3b05-42ac-a08f-86821b6574f1 2025-08-11 02:37:58,657 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1674b7c0-2f6b-4e6b-9cc9-33dfc2aa1bd4 2025-08-11 02:37:58,666 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:37:58,666 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f7533e2f-8bb3-442e-aaa7-318523f8fec2 2025-08-11 02:37:58,677 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2c57da99-3b05-42ac-a08f-86821b6574f1 2025-08-11 02:37:58,699 - INFO - Verified VN network id 12 for VN f7533e2f-8bb3-442e-aaa7-318523f8fec2 2025-08-11 02:37:58,700 - INFO - Verifications in API Server for VN ctest-vn-27490066 passed 2025-08-11 02:37:58,700 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f7533e2f-8bb3-442e-aaa7-318523f8fec2 2025-08-11 02:37:58,715 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2c57da99-3b05-42ac-a08f-86821b6574f1 2025-08-11 02:37:58,725 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2c57da99-3b05-42ac-a08f-86821b6574f1 2025-08-11 02:37:58,735 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1674b7c0-2f6b-4e6b-9cc9-33dfc2aa1bd4 2025-08-11 02:37:58,752 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64413137', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17821656524363351086', 'uuid-lslong': '12296851755462360770'}, 'enable': 'true', 'created': '2025-08-11T02:37:56', 'last-modified': '2025-08-11T02:37:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068727'} 2025-08-11 02:37:58,760 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:37:58,769 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64413137', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17821656524363351086', 'uuid-lslong': '12296851755462360770'}, 'enable': 'true', 'created': '2025-08-11T02:37:56', 'last-modified': '2025-08-11T02:37:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.089252'} 2025-08-11 02:37:58,779 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:37:58,790 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64413137', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17821656524363351086', 'uuid-lslong': '12296851755462360770'}, 'enable': 'true', 'created': '2025-08-11T02:37:56', 'last-modified': '2025-08-11T02:37:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110185'} 2025-08-11 02:37:58,800 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:37:58,800 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27490066 passed 2025-08-11 02:37:58,800 - DEBUG - ====Verifying policy data for ctest-vn-27490066 in API_Server ====== 2025-08-11 02:37:58,800 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:37:58,807 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:37:58,821 - DEBUG - Requesting: http://10.0.0.23:8082/project/42fcc4ac-c2be-4327-b971-cb60aa4ded47 2025-08-11 02:37:58,945 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f7533e2f-8bb3-442e-aaa7-318523f8fec2 2025-08-11 02:37:58,959 - DEBUG - ==>Verifying data for policy with id: 4e3be837-3a95-4255-aa60-066583ccb179, fqn: ['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-policy-allow-all-57384906'] 2025-08-11 02:37:58,959 - INFO - VN ctest-vn-27490066 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 02:37:58,959 - DEBUG - Verifying the vn in opserver 2025-08-11 02:37:58,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 virtual network link through opserver 10.0.0.23 2025-08-11 02:37:58,959 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 02:37:59,248 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 02:37:59,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066?flat'} 2025-08-11 02:37:59,307 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 virtual network link through opserver 10.0.0.38 2025-08-11 02:37:59,307 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 02:37:59,596 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 02:37:59,657 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066?flat'} 2025-08-11 02:37:59,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 virtual network link through opserver 10.0.0.141 2025-08-11 02:37:59,657 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-11 02:37:59,947 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-11 02:38:00,000 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066?flat'} 2025-08-11 02:38:00,000 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is found in opserver 2025-08-11 02:38:00,021 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 02:38:00,031 - DEBUG - VRF ids for VN ctest-vn-27490066: {} 2025-08-11 02:38:00,032 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:38:00,038 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:38:00,050 - DEBUG - Requesting: http://10.0.0.23:8082/project/42fcc4ac-c2be-4327-b971-cb60aa4ded47 2025-08-11 02:38:00,143 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/be9d43d8-27d7-47e2-890b-a6f3f9df83a8 2025-08-11 02:38:00,157 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/be9d43d8-27d7-47e2-890b-a6f3f9df83a8 2025-08-11 02:38:00,166 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4920c908-6e24-4951-af64-008a2bd04065 2025-08-11 02:38:00,174 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4920c908-6e24-4951-af64-008a2bd04065 2025-08-11 02:38:00,182 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/28937506-2987-48a1-b857-e9fb341456df 2025-08-11 02:38:00,188 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 02:38:00,188 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/be9d43d8-27d7-47e2-890b-a6f3f9df83a8 2025-08-11 02:38:00,198 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4920c908-6e24-4951-af64-008a2bd04065 2025-08-11 02:38:00,216 - INFO - Verified VN network id 13 for VN be9d43d8-27d7-47e2-890b-a6f3f9df83a8 2025-08-11 02:38:00,217 - INFO - Verifications in API Server for VN ctest-vn-35528117 passed 2025-08-11 02:38:00,217 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/be9d43d8-27d7-47e2-890b-a6f3f9df83a8 2025-08-11 02:38:00,228 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4920c908-6e24-4951-af64-008a2bd04065 2025-08-11 02:38:00,237 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4920c908-6e24-4951-af64-008a2bd04065 2025-08-11 02:38:00,245 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/28937506-2987-48a1-b857-e9fb341456df 2025-08-11 02:38:00,259 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64413137', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735209034210297826', 'uuid-lslong': '9875170174739383208'}, 'enable': 'true', 'created': '2025-08-11T02:37:56', 'last-modified': '2025-08-11T02:37:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.335861'} 2025-08-11 02:38:00,265 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 02:38:00,271 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64413137', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735209034210297826', 'uuid-lslong': '9875170174739383208'}, 'enable': 'true', 'created': '2025-08-11T02:37:56', 'last-modified': '2025-08-11T02:37:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.348462'} 2025-08-11 02:38:00,278 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 02:38:00,285 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64413137', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735209034210297826', 'uuid-lslong': '9875170174739383208'}, 'enable': 'true', 'created': '2025-08-11T02:37:56', 'last-modified': '2025-08-11T02:37:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.361672'} 2025-08-11 02:38:00,292 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 02:38:00,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35528117 passed 2025-08-11 02:38:00,292 - DEBUG - ====Verifying policy data for ctest-vn-35528117 in API_Server ====== 2025-08-11 02:38:00,292 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:38:00,299 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:38:00,311 - DEBUG - Requesting: http://10.0.0.23:8082/project/42fcc4ac-c2be-4327-b971-cb60aa4ded47 2025-08-11 02:38:00,400 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/be9d43d8-27d7-47e2-890b-a6f3f9df83a8 2025-08-11 02:38:00,415 - DEBUG - ==>Verifying data for policy with id: 4e3be837-3a95-4255-aa60-066583ccb179, fqn: ['default-domain', 'ctest-TestBasicPolicy-64413137', 'ctest-policy-allow-all-57384906'] 2025-08-11 02:38:00,415 - INFO - VN ctest-vn-35528117 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 02:38:00,415 - DEBUG - Verifying the vn in opserver 2025-08-11 02:38:00,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117 virtual network link through opserver 10.0.0.23 2025-08-11 02:38:00,415 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 02:38:00,473 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117?flat'} 2025-08-11 02:38:00,473 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117 virtual network link through opserver 10.0.0.38 2025-08-11 02:38:00,473 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 02:38:00,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117?flat'} 2025-08-11 02:38:00,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117 virtual network link through opserver 10.0.0.141 2025-08-11 02:38:00,527 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-11 02:38:00,583 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117?flat'} 2025-08-11 02:38:00,583 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-35528117 is found in opserver 2025-08-11 02:38:00,607 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 02:38:00,618 - DEBUG - VRF ids for VN ctest-vn-35528117: {} 2025-08-11 02:38:00,693 - DEBUG - Services list from nova: [, , , ] 2025-08-11 02:38:01,710 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3794-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3794-2) 2025-08-11 02:38:03,245 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3794-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3794-1) 2025-08-11 02:38:03,245 - INFO - Waiting for VM ctest-TestBasicPolicy-64413137-23177097 to be up.. 2025-08-11 02:38:03,331 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-11 02:38:08,415 - DEBUG - VM is in ACTIVE state now 2025-08-11 02:38:08,416 - INFO - VM name : ctest-TestBasicPolicy-64413137-23177097 2025-08-11 02:38:08,497 - DEBUG - VM ctest-TestBasicPolicy-64413137-23177097 ID is 88ee46cf-3d01-4eaa-adef-f9d65a2f6e7c 2025-08-11 02:38:08,518 - DEBUG - VM ctest-TestBasicPolicy-64413137-23177097 launched on Node an-jenkins-deploy-platform-ansible-os-3794-2 2025-08-11 02:38:08,597 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/88ee46cf-3d01-4eaa-adef-f9d65a2f6e7c 2025-08-11 02:38:08,888 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/88ee46cf-3d01-4eaa-adef-f9d65a2f6e7c 2025-08-11 02:38:08,921 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/4a22a1ff-94b1-47c5-876b-1145cc9fbf5e 2025-08-11 02:38:12,140 - 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 1013ms') 2025-08-11 02:38:12,140 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 failed! 2025-08-11 02:38:12,158 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is 219.136.145.129 and allocation pool is NOT set 2025-08-11 02:38:16,238 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-08-11 02:38:16,238 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 failed! 2025-08-11 02:38:16,253 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is 219.136.145.129 and allocation pool is NOT set 2025-08-11 02:38:20,332 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1012ms') 2025-08-11 02:38:20,332 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 failed! 2025-08-11 02:38:20,346 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is 219.136.145.129 and allocation pool is NOT set 2025-08-11 02:38:24,426 - 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 02:38:24,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 failed! 2025-08-11 02:38:24,461 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is 219.136.145.129 and allocation pool is NOT set 2025-08-11 02:38:28,552 - 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 1036ms') 2025-08-11 02:38:28,552 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 failed! 2025-08-11 02:38:28,569 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is 219.136.145.129 and allocation pool is NOT set 2025-08-11 02:38:32,655 - 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 1024ms') 2025-08-11 02:38:32,655 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 failed! 2025-08-11 02:38:32,670 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is 219.136.145.129 and allocation pool is NOT set 2025-08-11 02:38:36,751 - 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 02:38:36,751 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 failed! 2025-08-11 02:38:36,766 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64413137:ctest-vn-27490066 is 219.136.145.129 and allocation pool is NOT set 2025-08-11 02:38:38,831 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.22 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 = 3.216/4.174/5.132/0.958 ms') 2025-08-11 02:38:38,832 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-23177097 passed 2025-08-11 02:38:38,957 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:38:38,957 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64413137-23177097, IP 219.136.145.131, Port 22 2025-08-11 02:38:39,023 - 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 02:38:39,108 - DEBUG - VM ctest-TestBasicPolicy-64413137-23177097 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 02:38:44,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:38:44,110 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64413137-23177097, IP 219.136.145.131, Port 22 2025-08-11 02:38:44,166 - 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 02:38:44,351 - DEBUG - VM ctest-TestBasicPolicy-64413137-23177097 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 02:38:49,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:38:49,352 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64413137-23177097, IP 219.136.145.131, Port 22 2025-08-11 02:38:49,409 - 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 02:38:49,487 - DEBUG - VM ctest-TestBasicPolicy-64413137-23177097 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 02:38:54,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:38:54,488 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64413137-23177097, IP 219.136.145.131, Port 22 2025-08-11 02:38:54,655 - DEBUG - VM ctest-TestBasicPolicy-64413137-23177097 is ready for SSH connections 2025-08-11 02:38:54,656 - INFO - Waiting for VM ctest-TestBasicPolicy-64413137-83945800 to be up.. 2025-08-11 02:38:54,734 - DEBUG - VM is in ACTIVE state now 2025-08-11 02:38:54,734 - INFO - VM name : ctest-TestBasicPolicy-64413137-83945800 2025-08-11 02:38:54,807 - DEBUG - VM ctest-TestBasicPolicy-64413137-83945800 ID is 5d4b0e8d-66d4-4b55-830d-a138658481df 2025-08-11 02:38:54,807 - DEBUG - VM ctest-TestBasicPolicy-64413137-83945800 launched on Node an-jenkins-deploy-platform-ansible-os-3794-1 2025-08-11 02:38:54,887 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/5d4b0e8d-66d4-4b55-830d-a138658481df 2025-08-11 02:38:54,898 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/a47ea04f-0c52-4788-9191-354c40c3e8ee 2025-08-11 02:38:56,101 - 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.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.41 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.414/2.434/2.455/0.020 ms') 2025-08-11 02:38:56,101 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64413137-83945800 passed 2025-08-11 02:38:56,217 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:38:56,218 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64413137-83945800, IP 17.130.144.195, Port 22 2025-08-11 02:38:56,280 - 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 02:38:56,381 - DEBUG - VM ctest-TestBasicPolicy-64413137-83945800 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 02:39:01,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:39:01,381 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64413137-83945800, IP 17.130.144.195, Port 22 2025-08-11 02:39:01,558 - DEBUG - VM ctest-TestBasicPolicy-64413137-83945800 is ready for SSH connections 2025-08-11 02:39:01,558 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:39:01,558 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 17.130.144.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-11 02:39:01,559 - DEBUG - ping -s 56 -c 3 -W 1 17.130.144.195 2025-08-11 02:39:48,839 - DEBUG - PING 17.130.144.195 (17.130.144.195) 56(84) bytes of data. 64 bytes from 17.130.144.195: icmp_req=1 ttl=63 time=11.1 ms 64 bytes from 17.130.144.195: icmp_req=2 ttl=63 time=1.20 ms 64 bytes from 17.130.144.195: icmp_req=3 ttl=63 time=0.934 ms --- 17.130.144.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 0.934/4.422/11.125/4.741 ms 2025-08-11 02:39:48,839 - INFO - Ping to IP 17.130.144.195 from VM ctest-TestBasicPolicy-64413137-23177097 passed 2025-08-11 02:39:49,055 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4e3be837-3a95-4255-aa60-066583ccb179", "href": "http://10.0.0.141:8082/network-policy/4e3be837-3a95-4255-aa60-066583ccb179"}} 2025-08-11 02:39:49,055 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 02:39:49,055 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 17.130.144.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-11 02:39:49,055 - DEBUG - ping -s 56 -c 3 -W 1 17.130.144.195 2025-08-11 02:39:52,481 - DEBUG - PING 17.130.144.195 (17.130.144.195) 56(84) bytes of data. 64 bytes from 17.130.144.195: icmp_req=1 ttl=63 time=2.48 ms --- 17.130.144.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 2.482/2.482/2.482/0.000 ms 2025-08-11 02:39:52,481 - WARNING - Ping to IP 17.130.144.195 from VM ctest-TestBasicPolicy-64413137-23177097 failed 2025-08-11 02:39:52,481 - INFO - Deleting VM ctest-TestBasicPolicy-64413137-83945800 2025-08-11 02:39:52,546 - INFO - Deleting VM ctest-TestBasicPolicy-64413137-23177097 2025-08-11 02:39:53,011 - INFO - Deleted policy ctest-policy-allow-all-57384906 2025-08-11 02:39:53,011 - INFO - Deleting VN ctest-vn-35528117 2025-08-11 02:39:53,064 - DEBUG - VN be9d43d8-27d7-47e2-890b-a6f3f9df83a8 still in use: Unable to complete operation on network be9d43d8-27d7-47e2-890b-a6f3f9df83a8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-54a9f163-9416-4225-9fb7-87b097dcfd76'] 2025-08-11 02:39:53,064 - WARNING - Deleting VN ctest-vn-35528117 failed..Will retry 2025-08-11 02:39:55,230 - DEBUG - Response for deleting network () 2025-08-11 02:39:55,230 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4920c908-6e24-4951-af64-008a2bd04065 2025-08-11 02:39:55,237 - DEBUG - Response Code: 404 2025-08-11 02:39:55,237 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:39:55,250 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:39:55,269 - DEBUG - Requesting: http://10.0.0.23:8082/project/42fcc4ac-c2be-4327-b971-cb60aa4ded47 2025-08-11 02:39:55,365 - INFO - Validated that VN ctest-vn-35528117 is not found in API Server 2025-08-11 02:39:55,376 - DEBUG - VN ctest-vn-35528117 is not present in Agent 10.0.0.57 2025-08-11 02:39:55,391 - DEBUG - VN ctest-vn-35528117 is not present in Agent 10.0.0.65 2025-08-11 02:39:55,391 - INFO - Validated that VN ctest-vn-35528117 is not in any agent 2025-08-11 02:39:55,427 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35528117 info 2025-08-11 02:39:55,428 - INFO - Deleting VN ctest-vn-27490066 2025-08-11 02:39:55,579 - DEBUG - Response for deleting network () 2025-08-11 02:39:55,579 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2c57da99-3b05-42ac-a08f-86821b6574f1 2025-08-11 02:39:55,585 - DEBUG - Response Code: 404 2025-08-11 02:39:55,585 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:39:55,592 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:39:55,611 - DEBUG - Requesting: http://10.0.0.23:8082/project/42fcc4ac-c2be-4327-b971-cb60aa4ded47 2025-08-11 02:39:55,701 - INFO - Validated that VN ctest-vn-27490066 is not found in API Server 2025-08-11 02:39:55,713 - DEBUG - VN ctest-vn-27490066 is not present in Agent 10.0.0.57 2025-08-11 02:39:55,732 - DEBUG - VN ctest-vn-27490066 is not present in Agent 10.0.0.65 2025-08-11 02:39:55,732 - INFO - Validated that VN ctest-vn-27490066 is not in any agent 2025-08-11 02:39:55,770 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27490066 info 2025-08-11 02:39:57,042 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 02:39:57,042 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:03]
2025-08-11 02:39:57,042 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:39:57,772 - INFO - Deleted project: ctest-TestBasicPolicy-64413137, ID : 42fcc4ac-c2be-4327-b971-cb60aa4ded47