2025-10-08 16:59:31,812 - INFO - Domain Default found not creating 2025-10-08 16:59:31,953 - INFO - Project ctest-TestBasicPolicy-19771678 not found, creating it 2025-10-08 16:59:32,485 - INFO - Created Project:ctest-TestBasicPolicy-19771678, ID : 82e287ec-43d7-4f13-adf0-fdeffc08d94c 2025-10-08 16:59:33,848 - INFO - ================================================================================ 2025-10-08 16:59:33,848 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-08 16:59:33,849 - 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-08 16:59:35,121 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.192': '0', '10.20.0.19': '0'}, '10.0.0.19': {'10.20.0.192': '0', '10.20.0.19': '0'}} with 2025-10-08 16:59:35,121 - INFO - Initial checks done. Running the testcase now 2025-10-08 16:59:35,122 - INFO - 2025-10-08 16:59:35,795 - DEBUG - Response for create_network : {'network': {'id': '093b2d79-6fb9-4a7e-bb2c-b8467183da86', 'name': 'ctest-vn-80977694', 'tenant_id': '82e287ec43d74f13adf0fdeffc08d94c', 'project_id': '82e287ec43d74f13adf0fdeffc08d94c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-vn-80977694'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 16:59:36,165 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f94393e1-fe99-42e7-8bd0-6c0f616f13fd', 'name': '', 'tenant_id': '82e287ec43d74f13adf0fdeffc08d94c', 'network_id': '093b2d79-6fb9-4a7e-bb2c-b8467183da86', 'ip_version': 4, 'cidr': '104.86.5.64/26', 'allocation_pools': [{'start': '104.86.5.66', 'end': '104.86.5.126'}], 'gateway_ip': '104.86.5.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.86.5.66', 'tags': [], 'project_id': '82e287ec43d74f13adf0fdeffc08d94c'}} 2025-10-08 16:59:36,191 - INFO - Created VN ctest-vn-80977694 2025-10-08 16:59:36,206 - DEBUG - VN ctest-vn-80977694 UUID is 093b2d79-6fb9-4a7e-bb2c-b8467183da86 2025-10-08 16:59:36,613 - DEBUG - Response for create_network : {'network': {'id': '951bb750-c354-4738-ae04-bd3b25aa8714', 'name': 'ctest-vn-19390064', 'tenant_id': '82e287ec43d74f13adf0fdeffc08d94c', 'project_id': '82e287ec43d74f13adf0fdeffc08d94c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-vn-19390064'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 16:59:36,895 - DEBUG - Response for create_subnet : {'subnet': {'id': '918e42d1-ba4e-419e-b4da-cac01e7d51e1', 'name': '', 'tenant_id': '82e287ec43d74f13adf0fdeffc08d94c', 'network_id': '951bb750-c354-4738-ae04-bd3b25aa8714', 'ip_version': 4, 'cidr': '204.121.93.64/26', 'allocation_pools': [{'start': '204.121.93.66', 'end': '204.121.93.126'}], 'gateway_ip': '204.121.93.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.121.93.66', 'tags': [], 'project_id': '82e287ec43d74f13adf0fdeffc08d94c'}} 2025-10-08 16:59:36,924 - INFO - Created VN ctest-vn-19390064 2025-10-08 16:59:36,936 - DEBUG - VN ctest-vn-19390064 UUID is 951bb750-c354-4738-ae04-bd3b25aa8714 2025-10-08 16:59:37,016 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694, 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-19771678:ctest-vn-19390064, 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-08 16:59:37,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '093b2d79-6fb9-4a7e-bb2c-b8467183da86', 'name': 'ctest-vn-80977694', 'tenant_id': '82e287ec43d74f13adf0fdeffc08d94c', 'project_id': '82e287ec43d74f13adf0fdeffc08d94c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f94393e1-fe99-42e7-8bd0-6c0f616f13fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-vn-80977694'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-policy-allow-all-97085948']], 'subnet_ipam': [{'subnet_cidr': '104.86.5.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 16:59:37,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '951bb750-c354-4738-ae04-bd3b25aa8714', 'name': 'ctest-vn-19390064', 'tenant_id': '82e287ec43d74f13adf0fdeffc08d94c', 'project_id': '82e287ec43d74f13adf0fdeffc08d94c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['918e42d1-ba4e-419e-b4da-cac01e7d51e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-vn-19390064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-policy-allow-all-97085948']], 'subnet_ipam': [{'subnet_cidr': '204.121.93.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 16:59:37,669 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-08 16:59:37,969 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-08 16:59:37,995 - DEBUG - Requesting: http://10.0.0.56:8082/domain/1d11f468-2e8f-4a79-a987-f452a249cd6b 2025-10-08 16:59:38,007 - DEBUG - Requesting: http://10.0.0.56:8082/project/82e287ec-43d7-4f13-adf0-fdeffc08d94c 2025-10-08 16:59:38,107 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/093b2d79-6fb9-4a7e-bb2c-b8467183da86 2025-10-08 16:59:38,120 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/093b2d79-6fb9-4a7e-bb2c-b8467183da86 2025-10-08 16:59:38,130 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e0bb198e-4d3b-44af-9c3c-8c35002403d1 2025-10-08 16:59:38,138 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e0bb198e-4d3b-44af-9c3c-8c35002403d1 2025-10-08 16:59:38,145 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/8e91697f-43c8-415e-99ab-d717a733f3b7 2025-10-08 16:59:38,152 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 16:59:38,152 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/093b2d79-6fb9-4a7e-bb2c-b8467183da86 2025-10-08 16:59:38,161 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e0bb198e-4d3b-44af-9c3c-8c35002403d1 2025-10-08 16:59:38,175 - INFO - Verified VN network id 13 for VN 093b2d79-6fb9-4a7e-bb2c-b8467183da86 2025-10-08 16:59:38,175 - INFO - Verifications in API Server for VN ctest-vn-80977694 passed 2025-10-08 16:59:38,175 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/093b2d79-6fb9-4a7e-bb2c-b8467183da86 2025-10-08 16:59:38,186 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e0bb198e-4d3b-44af-9c3c-8c35002403d1 2025-10-08 16:59:38,193 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e0bb198e-4d3b-44af-9c3c-8c35002403d1 2025-10-08 16:59:38,199 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/8e91697f-43c8-415e-99ab-d717a733f3b7 2025-10-08 16:59:38,212 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19771678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '665175369555987070', 'uuid-lslong': '13487357596759480966'}, 'enable': 'true', 'created': '2025-10-08T16:59:35', 'last-modified': '2025-10-08T16:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893933'} 2025-10-08 16:59:38,217 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 16:59:38,222 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19771678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '665175369555987070', 'uuid-lslong': '13487357596759480966'}, 'enable': 'true', 'created': '2025-10-08T16:59:35', 'last-modified': '2025-10-08T16:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894397'} 2025-10-08 16:59:38,227 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 16:59:38,232 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19771678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '665175369555987070', 'uuid-lslong': '13487357596759480966'}, 'enable': 'true', 'created': '2025-10-08T16:59:35', 'last-modified': '2025-10-08T16:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897163'} 2025-10-08 16:59:38,238 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 16:59:38,238 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80977694 passed 2025-10-08 16:59:38,239 - DEBUG - ====Verifying policy data for ctest-vn-80977694 in API_Server ====== 2025-10-08 16:59:38,239 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-08 16:59:38,244 - DEBUG - Requesting: http://10.0.0.56:8082/domain/1d11f468-2e8f-4a79-a987-f452a249cd6b 2025-10-08 16:59:38,254 - DEBUG - Requesting: http://10.0.0.56:8082/project/82e287ec-43d7-4f13-adf0-fdeffc08d94c 2025-10-08 16:59:38,348 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/093b2d79-6fb9-4a7e-bb2c-b8467183da86 2025-10-08 16:59:38,357 - DEBUG - ==>Verifying data for policy with id: f5c99186-1f56-42dc-b635-b8275418a4b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-policy-allow-all-97085948'] 2025-10-08 16:59:38,357 - INFO - VN ctest-vn-80977694 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 16:59:38,357 - DEBUG - Verifying the vn in opserver 2025-10-08 16:59:38,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 virtual network link through opserver 10.0.0.56 2025-10-08 16:59:38,357 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-08 16:59:38,646 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-08 16:59:38,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694?flat'} 2025-10-08 16:59:38,696 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 virtual network link through opserver 10.0.0.249 2025-10-08 16:59:38,696 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-08 16:59:38,990 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-08 16:59:39,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694?flat'} 2025-10-08 16:59:39,038 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 virtual network link through opserver 10.0.0.41 2025-10-08 16:59:39,038 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-08 16:59:39,326 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-08 16:59:39,587 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694?flat'} 2025-10-08 16:59:39,587 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is found in opserver 2025-10-08 16:59:39,608 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 16:59:39,617 - DEBUG - VRF ids for VN ctest-vn-80977694: {} 2025-10-08 16:59:39,617 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-08 16:59:39,624 - DEBUG - Requesting: http://10.0.0.56:8082/domain/1d11f468-2e8f-4a79-a987-f452a249cd6b 2025-10-08 16:59:39,634 - DEBUG - Requesting: http://10.0.0.56:8082/project/82e287ec-43d7-4f13-adf0-fdeffc08d94c 2025-10-08 16:59:39,726 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/951bb750-c354-4738-ae04-bd3b25aa8714 2025-10-08 16:59:39,741 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/951bb750-c354-4738-ae04-bd3b25aa8714 2025-10-08 16:59:39,750 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/28553098-48fc-4b93-b1d9-62430d6a613c 2025-10-08 16:59:39,757 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/28553098-48fc-4b93-b1d9-62430d6a613c 2025-10-08 16:59:39,763 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/52f52ee6-21ae-4905-9540-b786b5f2609c 2025-10-08 16:59:39,769 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 16:59:39,769 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/951bb750-c354-4738-ae04-bd3b25aa8714 2025-10-08 16:59:39,777 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/28553098-48fc-4b93-b1d9-62430d6a613c 2025-10-08 16:59:39,791 - INFO - Verified VN network id 14 for VN 951bb750-c354-4738-ae04-bd3b25aa8714 2025-10-08 16:59:39,791 - INFO - Verifications in API Server for VN ctest-vn-19390064 passed 2025-10-08 16:59:39,791 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/951bb750-c354-4738-ae04-bd3b25aa8714 2025-10-08 16:59:39,800 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/28553098-48fc-4b93-b1d9-62430d6a613c 2025-10-08 16:59:39,806 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/28553098-48fc-4b93-b1d9-62430d6a613c 2025-10-08 16:59:39,812 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/52f52ee6-21ae-4905-9540-b786b5f2609c 2025-10-08 16:59:39,824 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19771678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10744382893524797240', 'uuid-lslong': '12539355324238956308'}, 'enable': 'true', 'created': '2025-10-08T16:59:36', 'last-modified': '2025-10-08T16:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.301863'} 2025-10-08 16:59:39,830 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 16:59:39,835 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19771678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10744382893524797240', 'uuid-lslong': '12539355324238956308'}, 'enable': 'true', 'created': '2025-10-08T16:59:36', 'last-modified': '2025-10-08T16:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.306676'} 2025-10-08 16:59:39,840 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 16:59:39,846 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19771678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10744382893524797240', 'uuid-lslong': '12539355324238956308'}, 'enable': 'true', 'created': '2025-10-08T16:59:36', 'last-modified': '2025-10-08T16:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.313127'} 2025-10-08 16:59:39,852 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 16:59:39,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19390064 passed 2025-10-08 16:59:39,852 - DEBUG - ====Verifying policy data for ctest-vn-19390064 in API_Server ====== 2025-10-08 16:59:39,852 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-08 16:59:39,858 - DEBUG - Requesting: http://10.0.0.56:8082/domain/1d11f468-2e8f-4a79-a987-f452a249cd6b 2025-10-08 16:59:39,868 - DEBUG - Requesting: http://10.0.0.56:8082/project/82e287ec-43d7-4f13-adf0-fdeffc08d94c 2025-10-08 16:59:39,966 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/951bb750-c354-4738-ae04-bd3b25aa8714 2025-10-08 16:59:39,979 - DEBUG - ==>Verifying data for policy with id: f5c99186-1f56-42dc-b635-b8275418a4b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-19771678', 'ctest-policy-allow-all-97085948'] 2025-10-08 16:59:39,979 - INFO - VN ctest-vn-19390064 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 16:59:39,979 - DEBUG - Verifying the vn in opserver 2025-10-08 16:59:39,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064 virtual network link through opserver 10.0.0.56 2025-10-08 16:59:39,980 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-08 16:59:40,058 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064?flat'} 2025-10-08 16:59:40,058 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064 virtual network link through opserver 10.0.0.249 2025-10-08 16:59:40,058 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-08 16:59:40,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064?flat'} 2025-10-08 16:59:40,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064 virtual network link through opserver 10.0.0.41 2025-10-08 16:59:40,107 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-08 16:59:40,160 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064?flat'} 2025-10-08 16:59:40,160 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-19390064 is found in opserver 2025-10-08 16:59:40,179 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 16:59:40,190 - DEBUG - VRF ids for VN ctest-vn-19390064: {} 2025-10-08 16:59:40,252 - DEBUG - Services list from nova: [, , , ] 2025-10-08 16:59:41,330 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4239-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4239-1) 2025-10-08 16:59:42,899 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4239-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4239-2) 2025-10-08 16:59:42,900 - INFO - Waiting for VM ctest-TestBasicPolicy-19771678-91334935 to be up.. 2025-10-08 16:59:42,991 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-08 16:59:48,066 - DEBUG - VM is in ACTIVE state now 2025-10-08 16:59:48,066 - INFO - VM name : ctest-TestBasicPolicy-19771678-91334935 2025-10-08 16:59:48,138 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 ID is 36f61bdc-5664-4b15-9b43-a61677e153c5 2025-10-08 16:59:48,160 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 launched on Node an-jenkins-deploy-platform-ansible-os-4239-1 2025-10-08 16:59:48,240 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/36f61bdc-5664-4b15-9b43-a61677e153c5 2025-10-08 16:59:48,534 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/36f61bdc-5664-4b15-9b43-a61677e153c5 2025-10-08 16:59:48,565 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/23da79df-91a6-4785-9292-a1ad280f3128 2025-10-08 16:59:51,732 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms') 2025-10-08 16:59:51,732 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 16:59:51,749 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 16:59:55,829 - 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-08 16:59:55,829 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 16:59:55,847 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 16:59:59,924 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1014ms') 2025-10-08 16:59:59,924 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 16:59:59,942 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 17:00:04,017 - 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-08 17:00:04,017 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 17:00:04,036 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 17:00:08,127 - 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 1026ms') 2025-10-08 17:00:08,127 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 17:00:08,170 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 17:00:12,242 - 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-08 17:00:12,242 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 17:00:12,302 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 17:00:16,376 - 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-08 17:00:16,376 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 17:00:16,393 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 17:00:20,471 - 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 1004ms') 2025-10-08 17:00:20,471 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 failed! 2025-10-08 17:00:20,488 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19771678:ctest-vn-80977694 is 104.86.5.65 and allocation pool is NOT set 2025-10-08 17:00:22,553 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.710 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 = 0.710/4.257/7.805/3.547 ms') 2025-10-08 17:00:22,553 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-91334935 passed 2025-10-08 17:00:22,634 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:22,634 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19771678-91334935, IP 104.86.5.67, Port 22 2025-10-08 17:00:22,701 - 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-08 17:00:22,786 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 17:00:27,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:27,788 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19771678-91334935, IP 104.86.5.67, Port 22 2025-10-08 17:00:27,855 - 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-08 17:00:27,945 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 17:00:32,946 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:32,946 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19771678-91334935, IP 104.86.5.67, Port 22 2025-10-08 17:00:33,007 - 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-08 17:00:34,558 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 17:00:39,558 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:39,558 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19771678-91334935, IP 104.86.5.67, Port 22 2025-10-08 17:00:39,617 - 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-08 17:00:39,716 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 17:00:44,718 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:44,718 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19771678-91334935, IP 104.86.5.67, Port 22 2025-10-08 17:00:44,785 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-08 17:00:44,868 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 17:00:49,868 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:49,868 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19771678-91334935, IP 104.86.5.67, Port 22 2025-10-08 17:00:50,046 - DEBUG - VM ctest-TestBasicPolicy-19771678-91334935 is ready for SSH connections 2025-10-08 17:00:50,046 - INFO - Waiting for VM ctest-TestBasicPolicy-19771678-71816326 to be up.. 2025-10-08 17:00:50,127 - DEBUG - VM is in ACTIVE state now 2025-10-08 17:00:50,127 - INFO - VM name : ctest-TestBasicPolicy-19771678-71816326 2025-10-08 17:00:50,210 - DEBUG - VM ctest-TestBasicPolicy-19771678-71816326 ID is a681e80b-085a-4ef2-9b3f-d0ca7883222a 2025-10-08 17:00:50,210 - DEBUG - VM ctest-TestBasicPolicy-19771678-71816326 launched on Node an-jenkins-deploy-platform-ansible-os-4239-2 2025-10-08 17:00:50,287 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/a681e80b-085a-4ef2-9b3f-d0ca7883222a 2025-10-08 17:00:50,300 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/d28a4e8b-7d32-4c5e-9c76-4a252e88aa53 2025-10-08 17:00:51,488 - 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.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 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 = 1.058/2.938/4.818/1.880 ms') 2025-10-08 17:00:51,488 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19771678-71816326 passed 2025-10-08 17:00:51,564 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:51,564 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19771678-71816326, IP 204.121.93.67, Port 22 2025-10-08 17:00:51,736 - DEBUG - VM ctest-TestBasicPolicy-19771678-71816326 is ready for SSH connections 2025-10-08 17:00:51,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:00:51,737 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.121.93.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-08 17:00:51,737 - DEBUG - ping -s 56 -c 3 -W 1 204.121.93.67 2025-10-08 17:01:10,897 - DEBUG - PING 204.121.93.67 (204.121.93.67) 56(84) bytes of data. 64 bytes from 204.121.93.67: icmp_req=1 ttl=63 time=10.1 ms 64 bytes from 204.121.93.67: icmp_req=2 ttl=63 time=1.94 ms 64 bytes from 204.121.93.67: icmp_req=3 ttl=63 time=1.02 ms --- 204.121.93.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.027/4.361/10.114/4.085 ms 2025-10-08 17:01:10,898 - INFO - Ping to IP 204.121.93.67 from VM ctest-TestBasicPolicy-19771678-91334935 passed 2025-10-08 17:01:11,136 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f5c99186-1f56-42dc-b635-b8275418a4b2", "href": "http://10.0.0.41:8082/network-policy/f5c99186-1f56-42dc-b635-b8275418a4b2"}} 2025-10-08 17:01:11,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 17:01:11,137 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.121.93.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-08 17:01:11,137 - DEBUG - ping -s 56 -c 3 -W 1 204.121.93.67 2025-10-08 17:01:14,598 - DEBUG - PING 204.121.93.67 (204.121.93.67) 56(84) bytes of data. 64 bytes from 204.121.93.67: icmp_req=1 ttl=63 time=3.30 ms --- 204.121.93.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 3.300/3.300/3.300/0.000 ms 2025-10-08 17:01:14,598 - WARNING - Ping to IP 204.121.93.67 from VM ctest-TestBasicPolicy-19771678-91334935 failed 2025-10-08 17:01:14,598 - INFO - Deleting VM ctest-TestBasicPolicy-19771678-71816326 2025-10-08 17:01:14,665 - INFO - Deleting VM ctest-TestBasicPolicy-19771678-91334935 2025-10-08 17:01:15,133 - INFO - Deleted policy ctest-policy-allow-all-97085948 2025-10-08 17:01:15,133 - INFO - Deleting VN ctest-vn-19390064 2025-10-08 17:01:15,181 - DEBUG - VN 951bb750-c354-4738-ae04-bd3b25aa8714 still in use: Unable to complete operation on network 951bb750-c354-4738-ae04-bd3b25aa8714. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-16f02c64-220e-4768-98ba-9e46258adced'] 2025-10-08 17:01:15,181 - WARNING - Deleting VN ctest-vn-19390064 failed..Will retry 2025-10-08 17:01:17,383 - DEBUG - Response for deleting network () 2025-10-08 17:01:17,383 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/28553098-48fc-4b93-b1d9-62430d6a613c 2025-10-08 17:01:17,389 - DEBUG - Response Code: 404 2025-10-08 17:01:17,389 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-08 17:01:17,396 - DEBUG - Requesting: http://10.0.0.56:8082/domain/1d11f468-2e8f-4a79-a987-f452a249cd6b 2025-10-08 17:01:17,432 - DEBUG - Requesting: http://10.0.0.56:8082/project/82e287ec-43d7-4f13-adf0-fdeffc08d94c 2025-10-08 17:01:17,531 - INFO - Validated that VN ctest-vn-19390064 is not found in API Server 2025-10-08 17:01:17,548 - DEBUG - VN ctest-vn-19390064 is not present in Agent 10.0.0.33 2025-10-08 17:01:17,558 - DEBUG - VN ctest-vn-19390064 is not present in Agent 10.0.0.19 2025-10-08 17:01:17,558 - INFO - Validated that VN ctest-vn-19390064 is not in any agent 2025-10-08 17:01:17,590 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19390064 info 2025-10-08 17:01:17,590 - INFO - Deleting VN ctest-vn-80977694 2025-10-08 17:01:17,777 - DEBUG - Response for deleting network () 2025-10-08 17:01:17,777 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e0bb198e-4d3b-44af-9c3c-8c35002403d1 2025-10-08 17:01:17,788 - DEBUG - Response Code: 404 2025-10-08 17:01:17,789 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-08 17:01:17,800 - DEBUG - Requesting: http://10.0.0.56:8082/domain/1d11f468-2e8f-4a79-a987-f452a249cd6b 2025-10-08 17:01:17,853 - DEBUG - Requesting: http://10.0.0.56:8082/project/82e287ec-43d7-4f13-adf0-fdeffc08d94c 2025-10-08 17:01:17,952 - INFO - Validated that VN ctest-vn-80977694 is not found in API Server 2025-10-08 17:01:17,964 - DEBUG - VN ctest-vn-80977694 is not present in Agent 10.0.0.33 2025-10-08 17:01:17,974 - DEBUG - VN ctest-vn-80977694 is not present in Agent 10.0.0.19 2025-10-08 17:01:17,974 - INFO - Validated that VN ctest-vn-80977694 is not in any agent 2025-10-08 17:01:18,007 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80977694 info 2025-10-08 17:01:19,284 - DEBUG - No XMPP flaps were noticed during the test 2025-10-08 17:01:19,284 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:46] 2025-10-08 17:01:19,284 - INFO - -------------------------------------------------------------------------------- 2025-10-08 17:01:20,010 - INFO - Deleted project: ctest-TestBasicPolicy-19771678, ID : 82e287ec-43d7-4f13-adf0-fdeffc08d94c