2025-10-30 02:45:49,995 - INFO - Domain Default found not creating 2025-10-30 02:45:50,164 - INFO - Project ctest-TestBasicPolicy-21251128 not found, creating it 2025-10-30 02:45:50,736 - INFO - Created Project:ctest-TestBasicPolicy-21251128, ID : 7dd93c32-2920-412a-87b6-1f0590cbdc35 2025-10-30 02:45:52,214 - INFO - ================================================================================ 2025-10-30 02:45:52,214 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-30 02:45:52,214 - 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-10-30 02:45:53,494 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.131': '0', '10.20.0.254': '0'}, '10.0.0.65': {'10.20.0.254': '0', '10.20.0.131': '0'}} with 2025-10-30 02:45:53,494 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:45:53,494 - INFO - 2025-10-30 02:45:54,152 - DEBUG - Response for create_network : {'network': {'id': 'cd46de82-f798-4f1b-aa90-5e55b9852e2d', 'name': 'ctest-vn-71086560', 'tenant_id': '7dd93c322920412a87b61f0590cbdc35', 'project_id': '7dd93c322920412a87b61f0590cbdc35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-vn-71086560'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:45:54,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fd4ea73-64a3-4bb4-9d64-a7c703e0cdca', 'name': '', 'tenant_id': '7dd93c322920412a87b61f0590cbdc35', 'network_id': 'cd46de82-f798-4f1b-aa90-5e55b9852e2d', 'ip_version': 4, 'cidr': '43.51.75.128/26', 'allocation_pools': [{'start': '43.51.75.130', 'end': '43.51.75.190'}], 'gateway_ip': '43.51.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.51.75.130', 'tags': [], 'project_id': '7dd93c322920412a87b61f0590cbdc35'}} 2025-10-30 02:45:54,452 - INFO - Created VN ctest-vn-71086560 2025-10-30 02:45:54,466 - DEBUG - VN ctest-vn-71086560 UUID is cd46de82-f798-4f1b-aa90-5e55b9852e2d 2025-10-30 02:45:54,824 - DEBUG - Response for create_network : {'network': {'id': 'a9c8f5f2-8361-462e-836d-2313358e0d26', 'name': 'ctest-vn-63894581', 'tenant_id': '7dd93c322920412a87b61f0590cbdc35', 'project_id': '7dd93c322920412a87b61f0590cbdc35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-vn-63894581'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:45:55,080 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9342488-6f30-4b57-80ac-5c4b08c0a9e3', 'name': '', 'tenant_id': '7dd93c322920412a87b61f0590cbdc35', 'network_id': 'a9c8f5f2-8361-462e-836d-2313358e0d26', 'ip_version': 4, 'cidr': '99.98.81.0/26', 'allocation_pools': [{'start': '99.98.81.2', 'end': '99.98.81.62'}], 'gateway_ip': '99.98.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.98.81.2', 'tags': [], 'project_id': '7dd93c322920412a87b61f0590cbdc35'}} 2025-10-30 02:45:55,107 - INFO - Created VN ctest-vn-63894581 2025-10-30 02:45:55,120 - DEBUG - VN ctest-vn-63894581 UUID is a9c8f5f2-8361-462e-836d-2313358e0d26 2025-10-30 02:45:55,215 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560, 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-21251128:ctest-vn-63894581, 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-10-30 02:45:55,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd46de82-f798-4f1b-aa90-5e55b9852e2d', 'name': 'ctest-vn-71086560', 'tenant_id': '7dd93c322920412a87b61f0590cbdc35', 'project_id': '7dd93c322920412a87b61f0590cbdc35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7fd4ea73-64a3-4bb4-9d64-a7c703e0cdca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-vn-71086560'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-policy-allow-all-38472358']], 'subnet_ipam': [{'subnet_cidr': '43.51.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:45:55,723 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9c8f5f2-8361-462e-836d-2313358e0d26', 'name': 'ctest-vn-63894581', 'tenant_id': '7dd93c322920412a87b61f0590cbdc35', 'project_id': '7dd93c322920412a87b61f0590cbdc35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9342488-6f30-4b57-80ac-5c4b08c0a9e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-vn-63894581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-policy-allow-all-38472358']], 'subnet_ipam': [{'subnet_cidr': '99.98.81.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:45:55,814 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:45:56,134 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:45:56,164 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:45:56,178 - DEBUG - Requesting: http://10.0.0.242:8082/project/7dd93c32-2920-412a-87b6-1f0590cbdc35 2025-10-30 02:45:56,270 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd46de82-f798-4f1b-aa90-5e55b9852e2d 2025-10-30 02:45:56,289 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd46de82-f798-4f1b-aa90-5e55b9852e2d 2025-10-30 02:45:56,300 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d316daa2-194b-4dd9-8c94-2ec25ef7b7b2 2025-10-30 02:45:56,308 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d316daa2-194b-4dd9-8c94-2ec25ef7b7b2 2025-10-30 02:45:56,316 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fe5720b7-f7b9-473b-9f1a-5a20d26150df 2025-10-30 02:45:56,322 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:45:56,322 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd46de82-f798-4f1b-aa90-5e55b9852e2d 2025-10-30 02:45:56,332 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d316daa2-194b-4dd9-8c94-2ec25ef7b7b2 2025-10-30 02:45:56,348 - INFO - Verified VN network id 13 for VN cd46de82-f798-4f1b-aa90-5e55b9852e2d 2025-10-30 02:45:56,348 - INFO - Verifications in API Server for VN ctest-vn-71086560 passed 2025-10-30 02:45:56,348 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd46de82-f798-4f1b-aa90-5e55b9852e2d 2025-10-30 02:45:56,358 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d316daa2-194b-4dd9-8c94-2ec25ef7b7b2 2025-10-30 02:45:56,366 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d316daa2-194b-4dd9-8c94-2ec25ef7b7b2 2025-10-30 02:45:56,374 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fe5720b7-f7b9-473b-9f1a-5a20d26150df 2025-10-30 02:45:56,387 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21251128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14791754680226041627', 'uuid-lslong': '12290427105371827757'}, 'enable': 'true', 'created': '2025-10-30T02:45:54', 'last-modified': '2025-10-30T02:45:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886105'} 2025-10-30 02:45:56,392 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:45:56,397 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21251128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14791754680226041627', 'uuid-lslong': '12290427105371827757'}, 'enable': 'true', 'created': '2025-10-30T02:45:54', 'last-modified': '2025-10-30T02:45:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897659'} 2025-10-30 02:45:56,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:45:56,408 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21251128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14791754680226041627', 'uuid-lslong': '12290427105371827757'}, 'enable': 'true', 'created': '2025-10-30T02:45:54', 'last-modified': '2025-10-30T02:45:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908821'} 2025-10-30 02:45:56,413 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:45:56,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71086560 passed 2025-10-30 02:45:56,414 - DEBUG - ====Verifying policy data for ctest-vn-71086560 in API_Server ====== 2025-10-30 02:45:56,414 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:45:56,424 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:45:56,438 - DEBUG - Requesting: http://10.0.0.242:8082/project/7dd93c32-2920-412a-87b6-1f0590cbdc35 2025-10-30 02:45:56,532 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd46de82-f798-4f1b-aa90-5e55b9852e2d 2025-10-30 02:45:56,555 - DEBUG - ==>Verifying data for policy with id: 4aa6c3cf-b54f-422b-89e7-0490f3aac74f, fqn: ['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-policy-allow-all-38472358'] 2025-10-30 02:45:56,555 - INFO - VN ctest-vn-71086560 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:45:56,555 - DEBUG - Verifying the vn in opserver 2025-10-30 02:45:56,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 virtual network link through opserver 10.0.0.242 2025-10-30 02:45:56,556 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-30 02:45:56,860 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-30 02:45:56,933 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560?flat'} 2025-10-30 02:45:56,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 virtual network link through opserver 10.0.0.254 2025-10-30 02:45:56,933 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 02:45:57,241 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 02:45:57,305 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560?flat'} 2025-10-30 02:45:57,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 virtual network link through opserver 10.0.0.240 2025-10-30 02:45:57,305 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2025-10-30 02:45:57,608 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2025-10-30 02:45:57,686 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560?flat'} 2025-10-30 02:45:57,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is found in opserver 2025-10-30 02:45:57,709 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:45:57,720 - DEBUG - VRF ids for VN ctest-vn-71086560: {} 2025-10-30 02:45:57,720 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:45:57,732 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:45:57,746 - DEBUG - Requesting: http://10.0.0.242:8082/project/7dd93c32-2920-412a-87b6-1f0590cbdc35 2025-10-30 02:45:57,839 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9c8f5f2-8361-462e-836d-2313358e0d26 2025-10-30 02:45:57,853 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9c8f5f2-8361-462e-836d-2313358e0d26 2025-10-30 02:45:57,864 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9c7038d7-4634-4c66-aeb6-99a5c08d3f71 2025-10-30 02:45:57,873 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9c7038d7-4634-4c66-aeb6-99a5c08d3f71 2025-10-30 02:45:57,880 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4ba04905-3c61-44dc-9167-d81ed6956627 2025-10-30 02:45:57,887 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-30 02:45:57,887 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9c8f5f2-8361-462e-836d-2313358e0d26 2025-10-30 02:45:57,896 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9c7038d7-4634-4c66-aeb6-99a5c08d3f71 2025-10-30 02:45:57,914 - INFO - Verified VN network id 14 for VN a9c8f5f2-8361-462e-836d-2313358e0d26 2025-10-30 02:45:57,914 - INFO - Verifications in API Server for VN ctest-vn-63894581 passed 2025-10-30 02:45:57,914 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9c8f5f2-8361-462e-836d-2313358e0d26 2025-10-30 02:45:57,927 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9c7038d7-4634-4c66-aeb6-99a5c08d3f71 2025-10-30 02:45:57,937 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9c7038d7-4634-4c66-aeb6-99a5c08d3f71 2025-10-30 02:45:57,944 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4ba04905-3c61-44dc-9167-d81ed6956627 2025-10-30 02:45:57,958 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21251128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12234298809687033390', 'uuid-lslong': '9470264156839873830'}, 'enable': 'true', 'created': '2025-10-30T02:45:54', 'last-modified': '2025-10-30T02:45:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.268235'} 2025-10-30 02:45:57,963 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-30 02:45:57,969 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21251128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12234298809687033390', 'uuid-lslong': '9470264156839873830'}, 'enable': 'true', 'created': '2025-10-30T02:45:54', 'last-modified': '2025-10-30T02:45:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.282591'} 2025-10-30 02:45:57,976 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-30 02:45:57,982 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21251128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12234298809687033390', 'uuid-lslong': '9470264156839873830'}, 'enable': 'true', 'created': '2025-10-30T02:45:54', 'last-modified': '2025-10-30T02:45:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.296339'} 2025-10-30 02:45:57,988 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-30 02:45:57,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63894581 passed 2025-10-30 02:45:57,988 - DEBUG - ====Verifying policy data for ctest-vn-63894581 in API_Server ====== 2025-10-30 02:45:57,988 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:45:57,995 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:45:58,007 - DEBUG - Requesting: http://10.0.0.242:8082/project/7dd93c32-2920-412a-87b6-1f0590cbdc35 2025-10-30 02:45:58,113 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9c8f5f2-8361-462e-836d-2313358e0d26 2025-10-30 02:45:58,126 - DEBUG - ==>Verifying data for policy with id: 4aa6c3cf-b54f-422b-89e7-0490f3aac74f, fqn: ['default-domain', 'ctest-TestBasicPolicy-21251128', 'ctest-policy-allow-all-38472358'] 2025-10-30 02:45:58,126 - INFO - VN ctest-vn-63894581 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:45:58,126 - DEBUG - Verifying the vn in opserver 2025-10-30 02:45:58,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581 virtual network link through opserver 10.0.0.242 2025-10-30 02:45:58,127 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-30 02:45:58,193 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581?flat'} 2025-10-30 02:45:58,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581 virtual network link through opserver 10.0.0.254 2025-10-30 02:45:58,193 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 02:45:58,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581?flat'} 2025-10-30 02:45:58,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581 virtual network link through opserver 10.0.0.240 2025-10-30 02:45:58,266 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2025-10-30 02:45:58,381 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581?flat'} 2025-10-30 02:45:58,381 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-63894581 is found in opserver 2025-10-30 02:45:58,402 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:45:58,426 - DEBUG - VRF ids for VN ctest-vn-63894581: {} 2025-10-30 02:45:58,489 - DEBUG - Services list from nova: [, , , ] 2025-10-30 02:45:59,522 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4535-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4535-2) 2025-10-30 02:46:00,827 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4535-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4535-1) 2025-10-30 02:46:00,827 - INFO - Waiting for VM ctest-TestBasicPolicy-21251128-21178903 to be up.. 2025-10-30 02:46:01,003 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-30 02:46:06,109 - DEBUG - VM is in ACTIVE state now 2025-10-30 02:46:06,109 - INFO - VM name : ctest-TestBasicPolicy-21251128-21178903 2025-10-30 02:46:06,196 - DEBUG - VM ctest-TestBasicPolicy-21251128-21178903 ID is c7782075-07a7-429c-b2e5-969758d89b83 2025-10-30 02:46:06,226 - DEBUG - VM ctest-TestBasicPolicy-21251128-21178903 launched on Node an-jenkins-deploy-platform-ansible-os-4535-2 2025-10-30 02:46:06,324 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine/c7782075-07a7-429c-b2e5-969758d89b83 2025-10-30 02:46:06,631 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine/c7782075-07a7-429c-b2e5-969758d89b83 2025-10-30 02:46:06,667 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine-interface/9fc815b2-b29c-410d-887b-799e20690e7e 2025-10-30 02:46:09,860 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1028ms') 2025-10-30 02:46:09,860 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 failed! 2025-10-30 02:46:09,876 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is 43.51.75.129 and allocation pool is NOT set 2025-10-30 02:46:13,957 - 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 1017ms') 2025-10-30 02:46:13,957 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 failed! 2025-10-30 02:46:13,974 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is 43.51.75.129 and allocation pool is NOT set 2025-10-30 02:46:18,055 - 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-10-30 02:46:18,055 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 failed! 2025-10-30 02:46:18,071 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is 43.51.75.129 and allocation pool is NOT set 2025-10-30 02:46:22,151 - 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-10-30 02:46:22,151 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 failed! 2025-10-30 02:46:22,168 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is 43.51.75.129 and allocation pool is NOT set 2025-10-30 02:46:26,239 - 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-10-30 02:46:26,239 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 failed! 2025-10-30 02:46:26,256 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is 43.51.75.129 and allocation pool is NOT set 2025-10-30 02:46:30,342 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-10-30 02:46:30,343 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 failed! 2025-10-30 02:46:30,359 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is 43.51.75.129 and allocation pool is NOT set 2025-10-30 02:46:34,440 - 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-10-30 02:46:34,440 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 failed! 2025-10-30 02:46:34,458 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-21251128:ctest-vn-71086560 is 43.51.75.129 and allocation pool is NOT set 2025-10-30 02:46:38,528 - 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=2 ttl=63 time=10.2 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1011ms\r\nrtt min/avg/max/mdev = 10.229/10.229/10.229/0.000 ms') 2025-10-30 02:46:38,528 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-21178903 passed 2025-10-30 02:46:38,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:46:38,599 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21251128-21178903, IP 43.51.75.131, Port 22 2025-10-30 02:46:38,654 - 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-10-30 02:46:38,741 - DEBUG - VM ctest-TestBasicPolicy-21251128-21178903 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 02:46:43,742 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:46:43,742 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21251128-21178903, IP 43.51.75.131, Port 22 2025-10-30 02:46:43,797 - 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-10-30 02:46:43,882 - DEBUG - VM ctest-TestBasicPolicy-21251128-21178903 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 02:46:48,883 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:46:48,883 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21251128-21178903, IP 43.51.75.131, Port 22 2025-10-30 02:46:48,952 - 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-10-30 02:46:49,038 - DEBUG - VM ctest-TestBasicPolicy-21251128-21178903 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 02:46:54,039 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:46:54,039 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21251128-21178903, IP 43.51.75.131, Port 22 2025-10-30 02:46:54,099 - 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-10-30 02:46:54,210 - DEBUG - VM ctest-TestBasicPolicy-21251128-21178903 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 02:46:59,211 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:46:59,212 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21251128-21178903, IP 43.51.75.131, Port 22 2025-10-30 02:46:59,381 - DEBUG - VM ctest-TestBasicPolicy-21251128-21178903 is ready for SSH connections 2025-10-30 02:46:59,381 - INFO - Waiting for VM ctest-TestBasicPolicy-21251128-29699422 to be up.. 2025-10-30 02:46:59,488 - DEBUG - VM is in ACTIVE state now 2025-10-30 02:46:59,488 - INFO - VM name : ctest-TestBasicPolicy-21251128-29699422 2025-10-30 02:46:59,577 - DEBUG - VM ctest-TestBasicPolicy-21251128-29699422 ID is 86c47104-563d-46bc-8312-40f382fcb955 2025-10-30 02:46:59,577 - DEBUG - VM ctest-TestBasicPolicy-21251128-29699422 launched on Node an-jenkins-deploy-platform-ansible-os-4535-1 2025-10-30 02:46:59,669 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine/86c47104-563d-46bc-8312-40f382fcb955 2025-10-30 02:46:59,681 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine-interface/1eafa637-29bc-431a-aab0-ef5115bc380f 2025-10-30 02:47:00,873 - 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.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=14.3 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 = 4.356/9.335/14.315/4.979 ms') 2025-10-30 02:47:00,873 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-21251128-29699422 passed 2025-10-30 02:47:00,949 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:47:00,949 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21251128-29699422, IP 99.98.81.3, Port 22 2025-10-30 02:47:01,018 - 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-10-30 02:47:01,113 - DEBUG - VM ctest-TestBasicPolicy-21251128-29699422 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 02:47:06,113 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:47:06,114 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-21251128-29699422, IP 99.98.81.3, Port 22 2025-10-30 02:47:06,288 - DEBUG - VM ctest-TestBasicPolicy-21251128-29699422 is ready for SSH connections 2025-10-30 02:47:06,288 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:47:06,289 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.98.81.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-10-30 02:47:06,289 - DEBUG - ping -s 56 -c 3 -W 1 99.98.81.3 2025-10-30 02:47:52,501 - DEBUG - PING 99.98.81.3 (99.98.81.3) 56(84) bytes of data. 64 bytes from 99.98.81.3: icmp_req=1 ttl=63 time=9.39 ms 64 bytes from 99.98.81.3: icmp_req=2 ttl=63 time=1.07 ms 64 bytes from 99.98.81.3: icmp_req=3 ttl=63 time=1.15 ms --- 99.98.81.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.076/3.872/9.390/3.902 ms 2025-10-30 02:47:52,501 - INFO - Ping to IP 99.98.81.3 from VM ctest-TestBasicPolicy-21251128-21178903 passed 2025-10-30 02:47:52,717 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4aa6c3cf-b54f-422b-89e7-0490f3aac74f", "href": "http://10.0.0.240:8082/network-policy/4aa6c3cf-b54f-422b-89e7-0490f3aac74f"}} 2025-10-30 02:47:52,717 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 02:47:52,717 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.98.81.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-10-30 02:47:52,717 - DEBUG - ping -s 56 -c 3 -W 1 99.98.81.3 2025-10-30 02:47:56,182 - DEBUG - PING 99.98.81.3 (99.98.81.3) 56(84) bytes of data. 64 bytes from 99.98.81.3: icmp_req=1 ttl=63 time=2.49 ms --- 99.98.81.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2009ms rtt min/avg/max/mdev = 2.495/2.495/2.495/0.000 ms 2025-10-30 02:47:56,182 - WARNING - Ping to IP 99.98.81.3 from VM ctest-TestBasicPolicy-21251128-21178903 failed 2025-10-30 02:47:56,182 - INFO - Deleting VM ctest-TestBasicPolicy-21251128-29699422 2025-10-30 02:47:56,252 - INFO - Deleting VM ctest-TestBasicPolicy-21251128-21178903 2025-10-30 02:47:56,748 - INFO - Deleted policy ctest-policy-allow-all-38472358 2025-10-30 02:47:56,749 - INFO - Deleting VN ctest-vn-63894581 2025-10-30 02:47:56,802 - DEBUG - VN a9c8f5f2-8361-462e-836d-2313358e0d26 still in use: Unable to complete operation on network a9c8f5f2-8361-462e-836d-2313358e0d26. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-40c66b61-0a8a-4ad9-af27-558952d02241'] 2025-10-30 02:47:56,802 - WARNING - Deleting VN ctest-vn-63894581 failed..Will retry 2025-10-30 02:47:58,959 - DEBUG - Response for deleting network () 2025-10-30 02:47:58,960 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9c7038d7-4634-4c66-aeb6-99a5c08d3f71 2025-10-30 02:47:58,976 - DEBUG - Response Code: 404 2025-10-30 02:47:58,976 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:47:58,983 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:47:58,997 - DEBUG - Requesting: http://10.0.0.242:8082/project/7dd93c32-2920-412a-87b6-1f0590cbdc35 2025-10-30 02:47:59,091 - INFO - Validated that VN ctest-vn-63894581 is not found in API Server 2025-10-30 02:47:59,104 - DEBUG - VN ctest-vn-63894581 is not present in Agent 10.0.0.129 2025-10-30 02:47:59,118 - DEBUG - VN ctest-vn-63894581 is not present in Agent 10.0.0.65 2025-10-30 02:47:59,118 - INFO - Validated that VN ctest-vn-63894581 is not in any agent 2025-10-30 02:47:59,160 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63894581 info 2025-10-30 02:47:59,160 - INFO - Deleting VN ctest-vn-71086560 2025-10-30 02:47:59,341 - DEBUG - Response for deleting network () 2025-10-30 02:47:59,341 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d316daa2-194b-4dd9-8c94-2ec25ef7b7b2 2025-10-30 02:47:59,349 - DEBUG - Response Code: 404 2025-10-30 02:47:59,349 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:47:59,355 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:47:59,384 - DEBUG - Requesting: http://10.0.0.242:8082/project/7dd93c32-2920-412a-87b6-1f0590cbdc35 2025-10-30 02:47:59,496 - INFO - Validated that VN ctest-vn-71086560 is not found in API Server 2025-10-30 02:47:59,508 - DEBUG - VN ctest-vn-71086560 is not present in Agent 10.0.0.129 2025-10-30 02:47:59,520 - DEBUG - VN ctest-vn-71086560 is not present in Agent 10.0.0.65 2025-10-30 02:47:59,520 - INFO - Validated that VN ctest-vn-71086560 is not in any agent 2025-10-30 02:47:59,550 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71086560 info 2025-10-30 02:48:00,835 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 02:48:00,835 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:08] 2025-10-30 02:48:00,835 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:48:01,615 - INFO - Deleted project: ctest-TestBasicPolicy-21251128, ID : 7dd93c32-2920-412a-87b6-1f0590cbdc35