2025-01-27 02:35:16,980 - INFO - Domain Default found not creating 2025-01-27 02:35:17,127 - INFO - Project ctest-TestBasicPolicy-97583736 not found, creating it 2025-01-27 02:35:17,776 - INFO - Created Project:ctest-TestBasicPolicy-97583736, ID : 25c436fa-ada5-4f50-8373-69762f37f5aa 2025-01-27 02:35:19,245 - INFO - ================================================================================ 2025-01-27 02:35:19,245 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-27 02:35:19,246 - 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-01-27 02:35:20,521 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.8': '0', '10.20.0.13': '0'}, '10.0.0.43': {'10.20.0.8': '0', '10.20.0.13': '0'}} with 2025-01-27 02:35:20,521 - INFO - Initial checks done. Running the testcase now 2025-01-27 02:35:20,521 - INFO - 2025-01-27 02:35:21,202 - DEBUG - Response for create_network : {'network': {'id': '3aaa3e4f-6e0d-40c1-97ca-c8a57897e342', 'name': 'ctest-vn-98817137', 'tenant_id': '25c436faada54f50837369762f37f5aa', 'project_id': '25c436faada54f50837369762f37f5aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-vn-98817137'], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:35:21,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '30c7abb7-16a6-4ced-9369-1f1c45ebedb0', 'name': '', 'tenant_id': '25c436faada54f50837369762f37f5aa', 'network_id': '3aaa3e4f-6e0d-40c1-97ca-c8a57897e342', 'ip_version': 4, 'cidr': '82.93.132.64/26', 'allocation_pools': [{'start': '82.93.132.66', 'end': '82.93.132.126'}], 'gateway_ip': '82.93.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.93.132.66', 'tags': [], 'project_id': '25c436faada54f50837369762f37f5aa'}} 2025-01-27 02:35:21,480 - INFO - Created VN ctest-vn-98817137 2025-01-27 02:35:21,492 - DEBUG - VN ctest-vn-98817137 UUID is 3aaa3e4f-6e0d-40c1-97ca-c8a57897e342 2025-01-27 02:35:21,902 - DEBUG - Response for create_network : {'network': {'id': 'aa8ea5a3-59a2-471b-a0dd-b385c8305734', 'name': 'ctest-vn-26056480', 'tenant_id': '25c436faada54f50837369762f37f5aa', 'project_id': '25c436faada54f50837369762f37f5aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-vn-26056480'], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:35:22,122 - DEBUG - Response for create_subnet : {'subnet': {'id': '00237afc-f274-4495-aecc-ad3ed8b184b4', 'name': '', 'tenant_id': '25c436faada54f50837369762f37f5aa', 'network_id': 'aa8ea5a3-59a2-471b-a0dd-b385c8305734', 'ip_version': 4, 'cidr': '154.138.58.0/26', 'allocation_pools': [{'start': '154.138.58.2', 'end': '154.138.58.62'}], 'gateway_ip': '154.138.58.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.138.58.2', 'tags': [], 'project_id': '25c436faada54f50837369762f37f5aa'}} 2025-01-27 02:35:22,157 - INFO - Created VN ctest-vn-26056480 2025-01-27 02:35:22,170 - DEBUG - VN ctest-vn-26056480 UUID is aa8ea5a3-59a2-471b-a0dd-b385c8305734 2025-01-27 02:35:22,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137, 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-97583736:ctest-vn-26056480, 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-01-27 02:35:22,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3aaa3e4f-6e0d-40c1-97ca-c8a57897e342', 'name': 'ctest-vn-98817137', 'tenant_id': '25c436faada54f50837369762f37f5aa', 'project_id': '25c436faada54f50837369762f37f5aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30c7abb7-16a6-4ced-9369-1f1c45ebedb0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-vn-98817137'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-policy-allow-all-76728702']], 'subnet_ipam': [{'subnet_cidr': '82.93.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:35:22,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa8ea5a3-59a2-471b-a0dd-b385c8305734', 'name': 'ctest-vn-26056480', 'tenant_id': '25c436faada54f50837369762f37f5aa', 'project_id': '25c436faada54f50837369762f37f5aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00237afc-f274-4495-aecc-ad3ed8b184b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-vn-26056480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-policy-allow-all-76728702']], 'subnet_ipam': [{'subnet_cidr': '154.138.58.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:35:23,428 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-01-27 02:35:23,860 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-01-27 02:35:23,890 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9f6bcc6d-d9b0-4847-910a-1781c72618e1 2025-01-27 02:35:23,909 - DEBUG - Requesting: http://10.0.0.37:8082/project/25c436fa-ada5-4f50-8373-69762f37f5aa 2025-01-27 02:35:24,042 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/3aaa3e4f-6e0d-40c1-97ca-c8a57897e342 2025-01-27 02:35:24,070 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/3aaa3e4f-6e0d-40c1-97ca-c8a57897e342 2025-01-27 02:35:24,083 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/692a180c-cdc8-44d4-aa34-694db6b9731e 2025-01-27 02:35:24,100 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/692a180c-cdc8-44d4-aa34-694db6b9731e 2025-01-27 02:35:24,112 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/360d4033-8441-4414-b98b-4b41bf82d612 2025-01-27 02:35:24,124 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:35:24,124 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/3aaa3e4f-6e0d-40c1-97ca-c8a57897e342 2025-01-27 02:35:24,141 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/692a180c-cdc8-44d4-aa34-694db6b9731e 2025-01-27 02:35:24,160 - INFO - Verified VN network id 7 for VN 3aaa3e4f-6e0d-40c1-97ca-c8a57897e342 2025-01-27 02:35:24,161 - INFO - Verifications in API Server for VN ctest-vn-98817137 passed 2025-01-27 02:35:24,161 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/3aaa3e4f-6e0d-40c1-97ca-c8a57897e342 2025-01-27 02:35:24,173 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/692a180c-cdc8-44d4-aa34-694db6b9731e 2025-01-27 02:35:24,185 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/692a180c-cdc8-44d4-aa34-694db6b9731e 2025-01-27 02:35:24,196 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/360d4033-8441-4414-b98b-4b41bf82d612 2025-01-27 02:35:24,221 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97583736', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4227259711110332609', 'uuid-lslong': '10937775258041049922'}, 'enable': 'true', 'created': '2025-01-27T02:35:21', 'last-modified': '2025-01-27T02:35:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.623684'} 2025-01-27 02:35:24,232 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:35:24,239 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97583736', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4227259711110332609', 'uuid-lslong': '10937775258041049922'}, 'enable': 'true', 'created': '2025-01-27T02:35:21', 'last-modified': '2025-01-27T02:35:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.652100'} 2025-01-27 02:35:24,246 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:35:24,252 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97583736', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4227259711110332609', 'uuid-lslong': '10937775258041049922'}, 'enable': 'true', 'created': '2025-01-27T02:35:21', 'last-modified': '2025-01-27T02:35:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.660536'} 2025-01-27 02:35:24,259 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:35:24,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98817137 passed 2025-01-27 02:35:24,259 - DEBUG - ====Verifying policy data for ctest-vn-98817137 in API_Server ====== 2025-01-27 02:35:24,259 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-01-27 02:35:24,267 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9f6bcc6d-d9b0-4847-910a-1781c72618e1 2025-01-27 02:35:24,287 - DEBUG - Requesting: http://10.0.0.37:8082/project/25c436fa-ada5-4f50-8373-69762f37f5aa 2025-01-27 02:35:24,396 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/3aaa3e4f-6e0d-40c1-97ca-c8a57897e342 2025-01-27 02:35:24,418 - DEBUG - ==>Verifying data for policy with id: 1ca47e03-8ccb-44cc-9938-6ce46339e274, fqn: ['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-policy-allow-all-76728702'] 2025-01-27 02:35:24,418 - INFO - VN ctest-vn-98817137 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-27 02:35:24,418 - DEBUG - Verifying the vn in opserver 2025-01-27 02:35:24,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137 virtual network link through opserver 10.0.0.37 2025-01-27 02:35:24,419 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-01-27 02:35:24,725 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-01-27 02:35:24,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137?flat'} 2025-01-27 02:35:24,781 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137 virtual network link through opserver 10.0.0.32 2025-01-27 02:35:24,781 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2025-01-27 02:35:25,083 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2025-01-27 02:35:25,143 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137?flat'} 2025-01-27 02:35:25,143 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137 virtual network link through opserver 10.0.0.22 2025-01-27 02:35:25,143 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-27 02:35:25,441 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-27 02:35:25,511 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137?flat'} 2025-01-27 02:35:25,511 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137 is found in opserver 2025-01-27 02:35:25,543 - DEBUG - Do not have enough data to verify VN in agent 2025-01-27 02:35:25,557 - DEBUG - VRF ids for VN ctest-vn-98817137: {} 2025-01-27 02:35:25,558 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-01-27 02:35:25,565 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9f6bcc6d-d9b0-4847-910a-1781c72618e1 2025-01-27 02:35:25,580 - DEBUG - Requesting: http://10.0.0.37:8082/project/25c436fa-ada5-4f50-8373-69762f37f5aa 2025-01-27 02:35:25,695 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/aa8ea5a3-59a2-471b-a0dd-b385c8305734 2025-01-27 02:35:25,714 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/aa8ea5a3-59a2-471b-a0dd-b385c8305734 2025-01-27 02:35:25,726 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/05c613a1-3c45-437a-b432-410c81e70faa 2025-01-27 02:35:25,737 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/05c613a1-3c45-437a-b432-410c81e70faa 2025-01-27 02:35:25,746 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/15e04158-d911-49b2-bf5a-1abab248a21a 2025-01-27 02:35:25,756 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-27 02:35:25,756 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/aa8ea5a3-59a2-471b-a0dd-b385c8305734 2025-01-27 02:35:25,769 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/05c613a1-3c45-437a-b432-410c81e70faa 2025-01-27 02:35:25,788 - INFO - Verified VN network id 8 for VN aa8ea5a3-59a2-471b-a0dd-b385c8305734 2025-01-27 02:35:25,788 - INFO - Verifications in API Server for VN ctest-vn-26056480 passed 2025-01-27 02:35:25,788 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/aa8ea5a3-59a2-471b-a0dd-b385c8305734 2025-01-27 02:35:25,801 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/05c613a1-3c45-437a-b432-410c81e70faa 2025-01-27 02:35:25,811 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/05c613a1-3c45-437a-b432-410c81e70faa 2025-01-27 02:35:25,823 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/15e04158-d911-49b2-bf5a-1abab248a21a 2025-01-27 02:35:25,841 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97583736', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12289942554142721819', 'uuid-lslong': '11591618403092158260'}, 'enable': 'true', 'created': '2025-01-27T02:35:21', 'last-modified': '2025-01-27T02:35:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.036865'} 2025-01-27 02:35:25,850 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-27 02:35:25,856 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97583736', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12289942554142721819', 'uuid-lslong': '11591618403092158260'}, 'enable': 'true', 'created': '2025-01-27T02:35:21', 'last-modified': '2025-01-27T02:35:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.052092'} 2025-01-27 02:35:25,864 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-27 02:35:25,870 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97583736', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12289942554142721819', 'uuid-lslong': '11591618403092158260'}, 'enable': 'true', 'created': '2025-01-27T02:35:21', 'last-modified': '2025-01-27T02:35:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.072646'} 2025-01-27 02:35:25,877 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-27 02:35:25,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26056480 passed 2025-01-27 02:35:25,877 - DEBUG - ====Verifying policy data for ctest-vn-26056480 in API_Server ====== 2025-01-27 02:35:25,877 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-01-27 02:35:25,884 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9f6bcc6d-d9b0-4847-910a-1781c72618e1 2025-01-27 02:35:25,898 - DEBUG - Requesting: http://10.0.0.37:8082/project/25c436fa-ada5-4f50-8373-69762f37f5aa 2025-01-27 02:35:26,014 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/aa8ea5a3-59a2-471b-a0dd-b385c8305734 2025-01-27 02:35:26,028 - DEBUG - ==>Verifying data for policy with id: 1ca47e03-8ccb-44cc-9938-6ce46339e274, fqn: ['default-domain', 'ctest-TestBasicPolicy-97583736', 'ctest-policy-allow-all-76728702'] 2025-01-27 02:35:26,028 - INFO - VN ctest-vn-26056480 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-27 02:35:26,028 - DEBUG - Verifying the vn in opserver 2025-01-27 02:35:26,028 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480 virtual network link through opserver 10.0.0.37 2025-01-27 02:35:26,028 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-01-27 02:35:26,088 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480?flat'} 2025-01-27 02:35:26,088 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480 virtual network link through opserver 10.0.0.32 2025-01-27 02:35:26,088 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2025-01-27 02:35:26,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480?flat'} 2025-01-27 02:35:26,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480 virtual network link through opserver 10.0.0.22 2025-01-27 02:35:26,146 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-27 02:35:26,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480?flat'} 2025-01-27 02:35:26,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-26056480 is found in opserver 2025-01-27 02:35:26,230 - DEBUG - Do not have enough data to verify VN in agent 2025-01-27 02:35:26,243 - DEBUG - VRF ids for VN ctest-vn-26056480: {} 2025-01-27 02:35:26,297 - DEBUG - Services list from nova: [, , , ] 2025-01-27 02:35:27,512 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2660-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2660-2) 2025-01-27 02:35:29,010 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2660-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2660-1) 2025-01-27 02:35:29,010 - INFO - Waiting for VM ctest-TestBasicPolicy-97583736-51785282 to be up.. 2025-01-27 02:35:29,131 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-27 02:35:34,232 - DEBUG - VM is in ACTIVE state now 2025-01-27 02:35:34,233 - INFO - VM name : ctest-TestBasicPolicy-97583736-51785282 2025-01-27 02:35:34,377 - DEBUG - VM ctest-TestBasicPolicy-97583736-51785282 ID is 44e106c6-89c2-4acb-a4bd-d5d1fe170fe1 2025-01-27 02:35:34,409 - DEBUG - VM ctest-TestBasicPolicy-97583736-51785282 launched on Node an-jenkins-deploy-platform-ansible-os-2660-2 2025-01-27 02:35:34,514 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/44e106c6-89c2-4acb-a4bd-d5d1fe170fe1 2025-01-27 02:35:34,824 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/44e106c6-89c2-4acb-a4bd-d5d1fe170fe1 2025-01-27 02:35:34,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/422ae728-f673-4ab0-b586-52e3e20e2016 2025-01-27 02:35:38,165 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1029ms') 2025-01-27 02:35:38,165 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-97583736-51785282 failed! 2025-01-27 02:35:38,182 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-97583736:ctest-vn-98817137 is 82.93.132.65 and allocation pool is NOT set 2025-01-27 02:35:40,249 - 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.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.561 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.561/3.157/5.753/2.596 ms') 2025-01-27 02:35:40,249 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-97583736-51785282 passed 2025-01-27 02:35:40,384 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:35:40,384 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-97583736-51785282, IP 82.93.132.67, Port 22 2025-01-27 02:35:40,551 - DEBUG - VM ctest-TestBasicPolicy-97583736-51785282 is ready for SSH connections 2025-01-27 02:35:40,551 - INFO - Waiting for VM ctest-TestBasicPolicy-97583736-64897170 to be up.. 2025-01-27 02:35:40,650 - DEBUG - VM is in ACTIVE state now 2025-01-27 02:35:40,650 - INFO - VM name : ctest-TestBasicPolicy-97583736-64897170 2025-01-27 02:35:40,760 - DEBUG - VM ctest-TestBasicPolicy-97583736-64897170 ID is 36c7ef4c-e553-497f-9661-de7e75d2e4b2 2025-01-27 02:35:40,761 - DEBUG - VM ctest-TestBasicPolicy-97583736-64897170 launched on Node an-jenkins-deploy-platform-ansible-os-2660-1 2025-01-27 02:35:40,866 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/36c7ef4c-e553-497f-9661-de7e75d2e4b2 2025-01-27 02:35:40,879 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/b0e8adcb-7a10-45b2-8135-cfd3c78b3350 2025-01-27 02:35:42,099 - 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=6.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.17 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.172/4.846/6.521/1.674 ms') 2025-01-27 02:35:42,099 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-97583736-64897170 passed 2025-01-27 02:35:42,213 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:35:42,213 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-97583736-64897170, IP 154.138.58.3, Port 22 2025-01-27 02:35:42,382 - DEBUG - VM ctest-TestBasicPolicy-97583736-64897170 is ready for SSH connections 2025-01-27 02:35:42,382 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:35:42,382 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.138.58.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2025-01-27 02:35:42,382 - DEBUG - ping -s 56 -c 3 -W 1 154.138.58.3 2025-01-27 02:35:46,455 - DEBUG - PING 154.138.58.3 (154.138.58.3): 56 data bytes 64 bytes from 154.138.58.3: seq=0 ttl=63 time=6.074 ms 64 bytes from 154.138.58.3: seq=1 ttl=63 time=1.617 ms 64 bytes from 154.138.58.3: seq=2 ttl=63 time=1.621 ms --- 154.138.58.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.617/3.104/6.074 ms 2025-01-27 02:35:46,455 - INFO - Ping to IP 154.138.58.3 from VM ctest-TestBasicPolicy-97583736-51785282 passed 2025-01-27 02:35:46,682 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1ca47e03-8ccb-44cc-9938-6ce46339e274", "href": "http://10.0.0.22:8082/network-policy/1ca47e03-8ccb-44cc-9938-6ce46339e274"}} 2025-01-27 02:35:46,682 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:35:46,682 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.138.58.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2025-01-27 02:35:46,682 - DEBUG - ping -s 56 -c 3 -W 1 154.138.58.3 2025-01-27 02:35:49,927 - DEBUG - PING 154.138.58.3 (154.138.58.3): 56 data bytes --- 154.138.58.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-27 02:35:49,927 - WARNING - Ping to IP 154.138.58.3 from VM ctest-TestBasicPolicy-97583736-51785282 failed 2025-01-27 02:35:49,927 - INFO - Deleting VM ctest-TestBasicPolicy-97583736-64897170 2025-01-27 02:35:49,990 - INFO - Deleting VM ctest-TestBasicPolicy-97583736-51785282 2025-01-27 02:35:50,688 - INFO - Deleted policy ctest-policy-allow-all-76728702 2025-01-27 02:35:50,689 - INFO - Deleting VN ctest-vn-26056480 2025-01-27 02:35:50,742 - DEBUG - VN aa8ea5a3-59a2-471b-a0dd-b385c8305734 still in use: Unable to complete operation on network aa8ea5a3-59a2-471b-a0dd-b385c8305734. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b58714df-c406-4171-9c98-3b8382744978'] 2025-01-27 02:35:50,742 - WARNING - Deleting VN ctest-vn-26056480 failed..Will retry 2025-01-27 02:35:52,937 - DEBUG - Response for deleting network () 2025-01-27 02:35:52,937 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/05c613a1-3c45-437a-b432-410c81e70faa 2025-01-27 02:35:52,951 - DEBUG - Response Code: 404 2025-01-27 02:35:52,952 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-01-27 02:35:52,963 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9f6bcc6d-d9b0-4847-910a-1781c72618e1 2025-01-27 02:35:52,987 - DEBUG - Requesting: http://10.0.0.37:8082/project/25c436fa-ada5-4f50-8373-69762f37f5aa 2025-01-27 02:35:53,144 - INFO - Validated that VN ctest-vn-26056480 is not found in API Server 2025-01-27 02:35:53,158 - DEBUG - VN ctest-vn-26056480 is not present in Agent 10.0.0.50 2025-01-27 02:35:53,173 - DEBUG - VN ctest-vn-26056480 is not present in Agent 10.0.0.43 2025-01-27 02:35:53,173 - INFO - Validated that VN ctest-vn-26056480 is not in any agent 2025-01-27 02:35:53,236 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26056480 info 2025-01-27 02:35:53,236 - INFO - Deleting VN ctest-vn-98817137 2025-01-27 02:35:53,701 - DEBUG - Response for deleting network () 2025-01-27 02:35:53,701 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/692a180c-cdc8-44d4-aa34-694db6b9731e 2025-01-27 02:35:53,708 - DEBUG - Response Code: 404 2025-01-27 02:35:53,708 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-01-27 02:35:53,717 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9f6bcc6d-d9b0-4847-910a-1781c72618e1 2025-01-27 02:35:53,754 - DEBUG - Requesting: http://10.0.0.37:8082/project/25c436fa-ada5-4f50-8373-69762f37f5aa 2025-01-27 02:35:53,874 - INFO - Validated that VN ctest-vn-98817137 is not found in API Server 2025-01-27 02:35:53,888 - DEBUG - VN ctest-vn-98817137 is not present in Agent 10.0.0.50 2025-01-27 02:35:53,911 - DEBUG - VN ctest-vn-98817137 is not present in Agent 10.0.0.43 2025-01-27 02:35:53,911 - INFO - Validated that VN ctest-vn-98817137 is not in any agent 2025-01-27 02:35:53,957 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98817137 info 2025-01-27 02:35:55,267 - DEBUG - No XMPP flaps were noticed during the test
2025-01-27 02:35:55,267 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-01-27 02:35:55,268 - INFO - -------------------------------------------------------------------------------- 2025-01-27 02:35:56,079 - INFO - Deleted project: ctest-TestBasicPolicy-97583736, ID : 25c436fa-ada5-4f50-8373-69762f37f5aa