2026-03-02 02:45:28,682 - INFO - Domain Default found not creating 2026-03-02 02:45:28,874 - INFO - Project ctest-TestBasicPolicy-09646325 not found, creating it 2026-03-02 02:45:29,383 - INFO - Created Project:ctest-TestBasicPolicy-09646325, ID : 52077011-6c68-40e5-8a9b-87b0d50d1f22 2026-03-02 02:45:31,055 - INFO - ================================================================================ 2026-03-02 02:45:31,055 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-03-02 02:45:31,055 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2026-03-02 02:45:32,355 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '3', '10.20.0.193': '3'}, '10.0.0.240': {'10.20.0.254': '3', '10.20.0.193': '0'}} with 2026-03-02 02:45:32,355 - INFO - Initial checks done. Running the testcase now 2026-03-02 02:45:32,355 - INFO - 2026-03-02 02:45:33,095 - DEBUG - Response for create_network : {'network': {'id': '62316c8f-f235-4bc2-8b01-b7273ffca074', 'name': 'ctest-vn-24345061', 'tenant_id': '520770116c6840e58a9b87b0d50d1f22', 'project_id': '520770116c6840e58a9b87b0d50d1f22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-vn-24345061'], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:45:33,395 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3c1bb69-b4ce-4067-8648-48cb5ea90cfb', 'name': '', 'tenant_id': '520770116c6840e58a9b87b0d50d1f22', 'network_id': '62316c8f-f235-4bc2-8b01-b7273ffca074', 'ip_version': 4, 'cidr': '43.201.190.128/26', 'allocation_pools': [{'start': '43.201.190.130', 'end': '43.201.190.190'}], 'gateway_ip': '43.201.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.201.190.130', 'tags': [], 'project_id': '520770116c6840e58a9b87b0d50d1f22'}} 2026-03-02 02:45:33,417 - INFO - Created VN ctest-vn-24345061 2026-03-02 02:45:33,427 - DEBUG - VN ctest-vn-24345061 UUID is 62316c8f-f235-4bc2-8b01-b7273ffca074 2026-03-02 02:45:33,787 - DEBUG - Response for create_network : {'network': {'id': 'a337f62b-c920-48ee-866a-93f8207f99be', 'name': 'ctest-vn-52931798', 'tenant_id': '520770116c6840e58a9b87b0d50d1f22', 'project_id': '520770116c6840e58a9b87b0d50d1f22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-vn-52931798'], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:45:34,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '9eb02347-dcbe-4b10-be30-e382eb3e1d36', 'name': '', 'tenant_id': '520770116c6840e58a9b87b0d50d1f22', 'network_id': 'a337f62b-c920-48ee-866a-93f8207f99be', 'ip_version': 4, 'cidr': '9.166.74.0/26', 'allocation_pools': [{'start': '9.166.74.2', 'end': '9.166.74.62'}], 'gateway_ip': '9.166.74.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.166.74.2', 'tags': [], 'project_id': '520770116c6840e58a9b87b0d50d1f22'}} 2026-03-02 02:45:34,094 - INFO - Created VN ctest-vn-52931798 2026-03-02 02:45:34,109 - DEBUG - VN ctest-vn-52931798 UUID is a337f62b-c920-48ee-866a-93f8207f99be 2026-03-02 02:45:34,201 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061, 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-09646325:ctest-vn-52931798, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-03-02 02:45:34,549 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62316c8f-f235-4bc2-8b01-b7273ffca074', 'name': 'ctest-vn-24345061', 'tenant_id': '520770116c6840e58a9b87b0d50d1f22', 'project_id': '520770116c6840e58a9b87b0d50d1f22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3c1bb69-b4ce-4067-8648-48cb5ea90cfb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-vn-24345061'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-policy-allow-all-36242490']], 'subnet_ipam': [{'subnet_cidr': '43.201.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:45:34,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a337f62b-c920-48ee-866a-93f8207f99be', 'name': 'ctest-vn-52931798', 'tenant_id': '520770116c6840e58a9b87b0d50d1f22', 'project_id': '520770116c6840e58a9b87b0d50d1f22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9eb02347-dcbe-4b10-be30-e382eb3e1d36'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-vn-52931798'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-policy-allow-all-36242490']], 'subnet_ipam': [{'subnet_cidr': '9.166.74.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-02 02:45:34,887 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:45:35,247 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:45:35,278 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:45:35,291 - DEBUG - Requesting: http://10.0.0.242:8082/project/52077011-6c68-40e5-8a9b-87b0d50d1f22 2026-03-02 02:45:35,391 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62316c8f-f235-4bc2-8b01-b7273ffca074 2026-03-02 02:45:35,410 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62316c8f-f235-4bc2-8b01-b7273ffca074 2026-03-02 02:45:35,424 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0a462be5-0144-4dd6-b446-c884b57e7e33 2026-03-02 02:45:35,437 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0a462be5-0144-4dd6-b446-c884b57e7e33 2026-03-02 02:45:35,445 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ec9c15fd-0a57-4a09-af3a-990d09af5ae7 2026-03-02 02:45:35,454 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:45:35,454 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62316c8f-f235-4bc2-8b01-b7273ffca074 2026-03-02 02:45:35,467 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0a462be5-0144-4dd6-b446-c884b57e7e33 2026-03-02 02:45:35,485 - INFO - Verified VN network id 15 for VN 62316c8f-f235-4bc2-8b01-b7273ffca074 2026-03-02 02:45:35,485 - INFO - Verifications in API Server for VN ctest-vn-24345061 passed 2026-03-02 02:45:35,485 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62316c8f-f235-4bc2-8b01-b7273ffca074 2026-03-02 02:45:35,496 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0a462be5-0144-4dd6-b446-c884b57e7e33 2026-03-02 02:45:35,504 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0a462be5-0144-4dd6-b446-c884b57e7e33 2026-03-02 02:45:35,512 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ec9c15fd-0a57-4a09-af3a-990d09af5ae7 2026-03-02 02:45:35,529 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09646325', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7075555855075462082', 'uuid-lslong': '10016488425453822068'}, 'enable': 'true', 'created': '2026-03-02T02:45:33', 'last-modified': '2026-03-02T02:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024466'} 2026-03-02 02:45:35,535 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:45:35,543 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09646325', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7075555855075462082', 'uuid-lslong': '10016488425453822068'}, 'enable': 'true', 'created': '2026-03-02T02:45:33', 'last-modified': '2026-03-02T02:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037713'} 2026-03-02 02:45:35,550 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:45:35,556 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09646325', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7075555855075462082', 'uuid-lslong': '10016488425453822068'}, 'enable': 'true', 'created': '2026-03-02T02:45:33', 'last-modified': '2026-03-02T02:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.049828'} 2026-03-02 02:45:35,561 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-02 02:45:35,562 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24345061 passed 2026-03-02 02:45:35,562 - DEBUG - ====Verifying policy data for ctest-vn-24345061 in API_Server ====== 2026-03-02 02:45:35,562 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:45:35,569 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:45:35,583 - DEBUG - Requesting: http://10.0.0.242:8082/project/52077011-6c68-40e5-8a9b-87b0d50d1f22 2026-03-02 02:45:35,690 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62316c8f-f235-4bc2-8b01-b7273ffca074 2026-03-02 02:45:35,701 - DEBUG - ==>Verifying data for policy with id: 9b5be6ac-00d8-440d-ac96-08d06c0646dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-policy-allow-all-36242490'] 2026-03-02 02:45:35,701 - INFO - VN ctest-vn-24345061 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-02 02:45:35,701 - DEBUG - Verifying the vn in opserver 2026-03-02 02:45:35,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 virtual network link through opserver 10.0.0.242 2026-03-02 02:45:35,702 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-02 02:45:36,038 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-02 02:45:36,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061?flat'} 2026-03-02 02:45:36,104 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 virtual network link through opserver 10.0.0.27 2026-03-02 02:45:36,104 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-02 02:45:36,442 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-02 02:45:36,511 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061?flat'} 2026-03-02 02:45:36,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 virtual network link through opserver 10.0.0.23 2026-03-02 02:45:36,512 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-02 02:45:36,849 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-02 02:45:36,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061?flat'} 2026-03-02 02:45:36,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is found in opserver 2026-03-02 02:45:36,939 - DEBUG - Do not have enough data to verify VN in agent 2026-03-02 02:45:36,950 - DEBUG - VRF ids for VN ctest-vn-24345061: {} 2026-03-02 02:45:36,950 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:45:36,956 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:45:36,966 - DEBUG - Requesting: http://10.0.0.242:8082/project/52077011-6c68-40e5-8a9b-87b0d50d1f22 2026-03-02 02:45:37,062 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a337f62b-c920-48ee-866a-93f8207f99be 2026-03-02 02:45:37,079 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a337f62b-c920-48ee-866a-93f8207f99be 2026-03-02 02:45:37,089 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/80a1ead9-9828-4722-ad3d-77d16f2cb590 2026-03-02 02:45:37,097 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/80a1ead9-9828-4722-ad3d-77d16f2cb590 2026-03-02 02:45:37,105 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/66711267-4475-46b7-929e-6befc53855a7 2026-03-02 02:45:37,112 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-02 02:45:37,112 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a337f62b-c920-48ee-866a-93f8207f99be 2026-03-02 02:45:37,123 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/80a1ead9-9828-4722-ad3d-77d16f2cb590 2026-03-02 02:45:37,143 - INFO - Verified VN network id 16 for VN a337f62b-c920-48ee-866a-93f8207f99be 2026-03-02 02:45:37,143 - INFO - Verifications in API Server for VN ctest-vn-52931798 passed 2026-03-02 02:45:37,143 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a337f62b-c920-48ee-866a-93f8207f99be 2026-03-02 02:45:37,153 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/80a1ead9-9828-4722-ad3d-77d16f2cb590 2026-03-02 02:45:37,173 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/80a1ead9-9828-4722-ad3d-77d16f2cb590 2026-03-02 02:45:37,181 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/66711267-4475-46b7-929e-6befc53855a7 2026-03-02 02:45:37,193 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09646325', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11761139619819702510', 'uuid-lslong': '9685716642520078782'}, 'enable': 'true', 'created': '2026-03-02T02:45:33', 'last-modified': '2026-03-02T02:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.467654'} 2026-03-02 02:45:37,198 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-02 02:45:37,205 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09646325', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11761139619819702510', 'uuid-lslong': '9685716642520078782'}, 'enable': 'true', 'created': '2026-03-02T02:45:33', 'last-modified': '2026-03-02T02:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.472279'} 2026-03-02 02:45:37,212 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-02 02:45:37,217 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09646325', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11761139619819702510', 'uuid-lslong': '9685716642520078782'}, 'enable': 'true', 'created': '2026-03-02T02:45:33', 'last-modified': '2026-03-02T02:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.493060'} 2026-03-02 02:45:37,222 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-02 02:45:37,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52931798 passed 2026-03-02 02:45:37,222 - DEBUG - ====Verifying policy data for ctest-vn-52931798 in API_Server ====== 2026-03-02 02:45:37,222 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:45:37,228 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:45:37,239 - DEBUG - Requesting: http://10.0.0.242:8082/project/52077011-6c68-40e5-8a9b-87b0d50d1f22 2026-03-02 02:45:37,347 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a337f62b-c920-48ee-866a-93f8207f99be 2026-03-02 02:45:37,357 - DEBUG - ==>Verifying data for policy with id: 9b5be6ac-00d8-440d-ac96-08d06c0646dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-09646325', 'ctest-policy-allow-all-36242490'] 2026-03-02 02:45:37,358 - INFO - VN ctest-vn-52931798 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-02 02:45:37,358 - DEBUG - Verifying the vn in opserver 2026-03-02 02:45:37,358 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798 virtual network link through opserver 10.0.0.242 2026-03-02 02:45:37,358 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-02 02:45:37,427 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798?flat'} 2026-03-02 02:45:37,427 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798 virtual network link through opserver 10.0.0.27 2026-03-02 02:45:37,427 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-02 02:45:37,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798?flat'} 2026-03-02 02:45:37,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798 virtual network link through opserver 10.0.0.23 2026-03-02 02:45:37,497 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-02 02:45:37,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798?flat'} 2026-03-02 02:45:37,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-52931798 is found in opserver 2026-03-02 02:45:37,586 - DEBUG - Do not have enough data to verify VN in agent 2026-03-02 02:45:37,596 - DEBUG - VRF ids for VN ctest-vn-52931798: {} 2026-03-02 02:45:37,668 - DEBUG - Services list from nova: [, , , ] 2026-03-02 02:45:38,874 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5413-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5413-1) 2026-03-02 02:45:40,334 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5413-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5413-2) 2026-03-02 02:45:40,335 - INFO - Waiting for VM ctest-TestBasicPolicy-09646325-50816078 to be up.. 2026-03-02 02:45:40,438 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-03-02 02:45:45,527 - DEBUG - VM is in ACTIVE state now 2026-03-02 02:45:45,527 - INFO - VM name : ctest-TestBasicPolicy-09646325-50816078 2026-03-02 02:45:45,611 - DEBUG - VM ctest-TestBasicPolicy-09646325-50816078 ID is 4efe4d08-f8e6-4a40-b61b-b495f27906e0 2026-03-02 02:45:45,636 - DEBUG - VM ctest-TestBasicPolicy-09646325-50816078 launched on Node an-jenkins-deploy-platform-ansible-os-5413-1 2026-03-02 02:45:45,727 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/4efe4d08-f8e6-4a40-b61b-b495f27906e0 2026-03-02 02:45:46,060 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/4efe4d08-f8e6-4a40-b61b-b495f27906e0 2026-03-02 02:45:46,096 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/891ea7a5-7e48-465c-89d6-6d864a66647f 2026-03-02 02:45:49,282 - 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') 2026-03-02 02:45:49,282 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 failed! 2026-03-02 02:45:49,295 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is 43.201.190.129 and allocation pool is NOT set 2026-03-02 02:45:53,372 - 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 1018ms') 2026-03-02 02:45:53,372 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 failed! 2026-03-02 02:45:53,384 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is 43.201.190.129 and allocation pool is NOT set 2026-03-02 02:45:57,473 - 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') 2026-03-02 02:45:57,473 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 failed! 2026-03-02 02:45:57,488 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is 43.201.190.129 and allocation pool is NOT set 2026-03-02 02:46:01,567 - 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 1018ms') 2026-03-02 02:46:01,567 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 failed! 2026-03-02 02:46:01,581 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is 43.201.190.129 and allocation pool is NOT set 2026-03-02 02:46:05,666 - 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') 2026-03-02 02:46:05,666 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 failed! 2026-03-02 02:46:05,679 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is 43.201.190.129 and allocation pool is NOT set 2026-03-02 02:46:09,765 - 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 1022ms') 2026-03-02 02:46:09,765 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 failed! 2026-03-02 02:46:09,779 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is 43.201.190.129 and allocation pool is NOT set 2026-03-02 02:46:13,862 - 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 1019ms') 2026-03-02 02:46:13,862 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 failed! 2026-03-02 02:46:13,878 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09646325:ctest-vn-24345061 is 43.201.190.129 and allocation pool is NOT set 2026-03-02 02:46:17,953 - 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=5.76 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1012ms\r\nrtt min/avg/max/mdev = 5.763/5.763/5.763/0.000 ms') 2026-03-02 02:46:17,953 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-50816078 passed 2026-03-02 02:46:18,018 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:18,018 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09646325-50816078, IP 43.201.190.131, Port 22 2026-03-02 02:46:18,085 - 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': ''} 2026-03-02 02:46:18,174 - DEBUG - VM ctest-TestBasicPolicy-09646325-50816078 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-02 02:46:23,175 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:23,175 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09646325-50816078, IP 43.201.190.131, Port 22 2026-03-02 02:46:23,231 - 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': ''} 2026-03-02 02:46:23,344 - DEBUG - VM ctest-TestBasicPolicy-09646325-50816078 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-02 02:46:28,344 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:28,344 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09646325-50816078, IP 43.201.190.131, Port 22 2026-03-02 02:46:28,403 - 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': ''} 2026-03-02 02:46:28,509 - DEBUG - VM ctest-TestBasicPolicy-09646325-50816078 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-02 02:46:33,510 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:33,510 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09646325-50816078, IP 43.201.190.131, Port 22 2026-03-02 02:46:33,567 - 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': ''} 2026-03-02 02:46:33,650 - DEBUG - VM ctest-TestBasicPolicy-09646325-50816078 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-02 02:46:38,651 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:38,651 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09646325-50816078, IP 43.201.190.131, Port 22 2026-03-02 02:46:38,818 - DEBUG - VM ctest-TestBasicPolicy-09646325-50816078 is ready for SSH connections 2026-03-02 02:46:38,818 - INFO - Waiting for VM ctest-TestBasicPolicy-09646325-59065330 to be up.. 2026-03-02 02:46:38,911 - DEBUG - VM is in ACTIVE state now 2026-03-02 02:46:38,911 - INFO - VM name : ctest-TestBasicPolicy-09646325-59065330 2026-03-02 02:46:39,005 - DEBUG - VM ctest-TestBasicPolicy-09646325-59065330 ID is b9094eb8-bdd1-4b06-ae07-253a38c1208d 2026-03-02 02:46:39,005 - DEBUG - VM ctest-TestBasicPolicy-09646325-59065330 launched on Node an-jenkins-deploy-platform-ansible-os-5413-2 2026-03-02 02:46:39,089 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b9094eb8-bdd1-4b06-ae07-253a38c1208d 2026-03-02 02:46:39,099 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/c9cd5b8e-125d-4b0f-8515-83be20dd5909 2026-03-02 02:46:40,262 - 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=7.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.68 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 = 1.684/4.384/7.084/2.700 ms') 2026-03-02 02:46:40,262 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09646325-59065330 passed 2026-03-02 02:46:40,326 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:40,326 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09646325-59065330, IP 9.166.74.3, Port 22 2026-03-02 02:46:40,394 - 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': ''} 2026-03-02 02:46:40,473 - DEBUG - VM ctest-TestBasicPolicy-09646325-59065330 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-02 02:46:45,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:45,474 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09646325-59065330, IP 9.166.74.3, Port 22 2026-03-02 02:46:45,650 - DEBUG - VM ctest-TestBasicPolicy-09646325-59065330 is ready for SSH connections 2026-03-02 02:46:45,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:46:45,650 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.166.74.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-03-02 02:46:45,650 - DEBUG - ping -s 56 -c 3 -W 1 9.166.74.3 2026-03-02 02:47:30,218 - DEBUG - PING 9.166.74.3 (9.166.74.3) 56(84) bytes of data. 64 bytes from 9.166.74.3: icmp_req=1 ttl=63 time=7.15 ms 64 bytes from 9.166.74.3: icmp_req=2 ttl=63 time=1.07 ms 64 bytes from 9.166.74.3: icmp_req=3 ttl=63 time=0.977 ms --- 9.166.74.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 0.977/3.068/7.152/2.888 ms 2026-03-02 02:47:30,219 - INFO - Ping to IP 9.166.74.3 from VM ctest-TestBasicPolicy-09646325-50816078 passed 2026-03-02 02:47:30,410 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9b5be6ac-00d8-440d-ac96-08d06c0646dd", "href": "http://10.0.0.23:8082/network-policy/9b5be6ac-00d8-440d-ac96-08d06c0646dd"}} 2026-03-02 02:47:30,410 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-02 02:47:30,410 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.166.74.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-03-02 02:47:30,410 - DEBUG - ping -s 56 -c 3 -W 1 9.166.74.3 2026-03-02 02:47:33,853 - DEBUG - PING 9.166.74.3 (9.166.74.3) 56(84) bytes of data. 64 bytes from 9.166.74.3: icmp_req=1 ttl=63 time=6.05 ms --- 9.166.74.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2011ms rtt min/avg/max/mdev = 6.055/6.055/6.055/0.000 ms 2026-03-02 02:47:33,853 - WARNING - Ping to IP 9.166.74.3 from VM ctest-TestBasicPolicy-09646325-50816078 failed 2026-03-02 02:47:33,853 - INFO - Deleting VM ctest-TestBasicPolicy-09646325-59065330 2026-03-02 02:47:33,919 - INFO - Deleting VM ctest-TestBasicPolicy-09646325-50816078 2026-03-02 02:47:34,360 - INFO - Deleted policy ctest-policy-allow-all-36242490 2026-03-02 02:47:34,360 - INFO - Deleting VN ctest-vn-52931798 2026-03-02 02:47:34,406 - DEBUG - VN a337f62b-c920-48ee-866a-93f8207f99be still in use: Unable to complete operation on network a337f62b-c920-48ee-866a-93f8207f99be. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-00d25747-5d67-4c3e-a759-96952357e2be'] 2026-03-02 02:47:34,406 - WARNING - Deleting VN ctest-vn-52931798 failed..Will retry 2026-03-02 02:47:36,581 - DEBUG - Response for deleting network () 2026-03-02 02:47:36,581 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/80a1ead9-9828-4722-ad3d-77d16f2cb590 2026-03-02 02:47:36,588 - DEBUG - Response Code: 404 2026-03-02 02:47:36,589 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:47:36,603 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:47:36,667 - DEBUG - Requesting: http://10.0.0.242:8082/project/52077011-6c68-40e5-8a9b-87b0d50d1f22 2026-03-02 02:47:36,756 - INFO - Validated that VN ctest-vn-52931798 is not found in API Server 2026-03-02 02:47:36,769 - DEBUG - VN ctest-vn-52931798 is not present in Agent 10.0.0.41 2026-03-02 02:47:36,781 - DEBUG - VN ctest-vn-52931798 is not present in Agent 10.0.0.240 2026-03-02 02:47:36,781 - INFO - Validated that VN ctest-vn-52931798 is not in any agent 2026-03-02 02:47:36,813 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52931798 info 2026-03-02 02:47:36,813 - INFO - Deleting VN ctest-vn-24345061 2026-03-02 02:47:36,974 - DEBUG - Response for deleting network () 2026-03-02 02:47:36,974 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0a462be5-0144-4dd6-b446-c884b57e7e33 2026-03-02 02:47:36,979 - DEBUG - Response Code: 404 2026-03-02 02:47:36,980 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-02 02:47:36,985 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cc2d0805-fa5b-4698-bfcc-d7811c08231a 2026-03-02 02:47:37,004 - DEBUG - Requesting: http://10.0.0.242:8082/project/52077011-6c68-40e5-8a9b-87b0d50d1f22 2026-03-02 02:47:37,107 - INFO - Validated that VN ctest-vn-24345061 is not found in API Server 2026-03-02 02:47:37,124 - DEBUG - VN ctest-vn-24345061 is not present in Agent 10.0.0.41 2026-03-02 02:47:37,138 - DEBUG - VN ctest-vn-24345061 is not present in Agent 10.0.0.240 2026-03-02 02:47:37,138 - INFO - Validated that VN ctest-vn-24345061 is not in any agent 2026-03-02 02:47:37,178 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24345061 info 2026-03-02 02:47:38,448 - DEBUG - No XMPP flaps were noticed during the test
2026-03-02 02:47:38,448 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:07]
2026-03-02 02:47:38,448 - INFO - -------------------------------------------------------------------------------- 2026-03-02 02:47:39,235 - INFO - Deleted project: ctest-TestBasicPolicy-09646325, ID : 52077011-6c68-40e5-8a9b-87b0d50d1f22