2025-09-29 02:22:36,820 - INFO - Domain Default found not creating 2025-09-29 02:22:36,997 - INFO - Project ctest-TestBasicPolicy-45323159 not found, creating it 2025-09-29 02:22:37,632 - INFO - Created Project:ctest-TestBasicPolicy-45323159, ID : 82d81843-53bf-489d-a7b5-88f025d9f799 2025-09-29 02:22:39,221 - INFO - ================================================================================ 2025-09-29 02:22:39,221 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-29 02:22:39,221 - 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-09-29 02:22:40,546 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.129': '0', '10.20.0.17': '0'}, '10.0.0.131': {'10.20.0.129': '0', '10.20.0.17': '0'}} with 2025-09-29 02:22:40,546 - INFO - Initial checks done. Running the testcase now 2025-09-29 02:22:40,546 - INFO - 2025-09-29 02:22:41,343 - DEBUG - Response for create_network : {'network': {'id': '2893665c-670e-4847-817a-a9ec03c75232', 'name': 'ctest-vn-72499054', 'tenant_id': '82d8184353bf489da7b588f025d9f799', 'project_id': '82d8184353bf489da7b588f025d9f799', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-vn-72499054'], 'port_security_enabled': True, 'description': ''}} 2025-09-29 02:22:41,711 - DEBUG - Response for create_subnet : {'subnet': {'id': '8703ba41-1617-423f-9994-29abf5317a8b', 'name': '', 'tenant_id': '82d8184353bf489da7b588f025d9f799', 'network_id': '2893665c-670e-4847-817a-a9ec03c75232', 'ip_version': 4, 'cidr': '80.243.83.192/26', 'allocation_pools': [{'start': '80.243.83.194', 'end': '80.243.83.254'}], 'gateway_ip': '80.243.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.243.83.194', 'tags': [], 'project_id': '82d8184353bf489da7b588f025d9f799'}} 2025-09-29 02:22:41,749 - INFO - Created VN ctest-vn-72499054 2025-09-29 02:22:41,764 - DEBUG - VN ctest-vn-72499054 UUID is 2893665c-670e-4847-817a-a9ec03c75232 2025-09-29 02:22:42,141 - DEBUG - Response for create_network : {'network': {'id': '02af572b-1a61-4d11-8948-907a7d58346f', 'name': 'ctest-vn-26806370', 'tenant_id': '82d8184353bf489da7b588f025d9f799', 'project_id': '82d8184353bf489da7b588f025d9f799', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-vn-26806370'], 'port_security_enabled': True, 'description': ''}} 2025-09-29 02:22:42,409 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b55d2714-b968-420f-a57f-45d52f616a59', 'name': '', 'tenant_id': '82d8184353bf489da7b588f025d9f799', 'network_id': '02af572b-1a61-4d11-8948-907a7d58346f', 'ip_version': 4, 'cidr': '124.77.157.128/26', 'allocation_pools': [{'start': '124.77.157.130', 'end': '124.77.157.190'}], 'gateway_ip': '124.77.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.77.157.130', 'tags': [], 'project_id': '82d8184353bf489da7b588f025d9f799'}} 2025-09-29 02:22:42,432 - INFO - Created VN ctest-vn-26806370 2025-09-29 02:22:42,444 - DEBUG - VN ctest-vn-26806370 UUID is 02af572b-1a61-4d11-8948-907a7d58346f 2025-09-29 02:22:42,563 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054, 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-45323159:ctest-vn-26806370, 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-09-29 02:22:42,922 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2893665c-670e-4847-817a-a9ec03c75232', 'name': 'ctest-vn-72499054', 'tenant_id': '82d8184353bf489da7b588f025d9f799', 'project_id': '82d8184353bf489da7b588f025d9f799', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8703ba41-1617-423f-9994-29abf5317a8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-vn-72499054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-policy-allow-all-38492774']], 'subnet_ipam': [{'subnet_cidr': '80.243.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-29 02:22:43,177 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02af572b-1a61-4d11-8948-907a7d58346f', 'name': 'ctest-vn-26806370', 'tenant_id': '82d8184353bf489da7b588f025d9f799', 'project_id': '82d8184353bf489da7b588f025d9f799', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b55d2714-b968-420f-a57f-45d52f616a59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-vn-26806370'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-policy-allow-all-38492774']], 'subnet_ipam': [{'subnet_cidr': '124.77.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-29 02:22:43,290 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:22:43,588 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:22:43,616 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:22:43,630 - DEBUG - Requesting: http://10.0.0.38:8082/project/82d81843-53bf-489d-a7b5-88f025d9f799 2025-09-29 02:22:43,727 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2893665c-670e-4847-817a-a9ec03c75232 2025-09-29 02:22:43,751 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2893665c-670e-4847-817a-a9ec03c75232 2025-09-29 02:22:43,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7cc1460-dbf3-4315-b437-3eb7081e0642 2025-09-29 02:22:43,770 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7cc1460-dbf3-4315-b437-3eb7081e0642 2025-09-29 02:22:43,782 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f566ca1d-0422-49d6-bfba-dc629e6b89ae 2025-09-29 02:22:43,788 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:22:43,789 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2893665c-670e-4847-817a-a9ec03c75232 2025-09-29 02:22:43,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7cc1460-dbf3-4315-b437-3eb7081e0642 2025-09-29 02:22:43,821 - INFO - Verified VN network id 15 for VN 2893665c-670e-4847-817a-a9ec03c75232 2025-09-29 02:22:43,822 - INFO - Verifications in API Server for VN ctest-vn-72499054 passed 2025-09-29 02:22:43,822 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2893665c-670e-4847-817a-a9ec03c75232 2025-09-29 02:22:43,831 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7cc1460-dbf3-4315-b437-3eb7081e0642 2025-09-29 02:22:43,839 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7cc1460-dbf3-4315-b437-3eb7081e0642 2025-09-29 02:22:43,848 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f566ca1d-0422-49d6-bfba-dc629e6b89ae 2025-09-29 02:22:43,859 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45323159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2923793130145597511', 'uuid-lslong': '9329956409192174130'}, 'enable': 'true', 'created': '2025-09-29T02:22:41', 'last-modified': '2025-09-29T02:22:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980180'} 2025-09-29 02:22:43,864 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:22:43,870 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45323159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2923793130145597511', 'uuid-lslong': '9329956409192174130'}, 'enable': 'true', 'created': '2025-09-29T02:22:41', 'last-modified': '2025-09-29T02:22:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991437'} 2025-09-29 02:22:43,876 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:22:43,882 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45323159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2923793130145597511', 'uuid-lslong': '9329956409192174130'}, 'enable': 'true', 'created': '2025-09-29T02:22:41', 'last-modified': '2025-09-29T02:22:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001324'} 2025-09-29 02:22:43,892 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:22:43,893 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72499054 passed 2025-09-29 02:22:43,893 - DEBUG - ====Verifying policy data for ctest-vn-72499054 in API_Server ====== 2025-09-29 02:22:43,893 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:22:43,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:22:43,909 - DEBUG - Requesting: http://10.0.0.38:8082/project/82d81843-53bf-489d-a7b5-88f025d9f799 2025-09-29 02:22:44,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2893665c-670e-4847-817a-a9ec03c75232 2025-09-29 02:22:44,015 - DEBUG - ==>Verifying data for policy with id: 63b64811-a13e-4682-ab7a-afae2e0d62e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-policy-allow-all-38492774'] 2025-09-29 02:22:44,015 - INFO - VN ctest-vn-72499054 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-29 02:22:44,015 - DEBUG - Verifying the vn in opserver 2025-09-29 02:22:44,015 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 virtual network link through opserver 10.0.0.38 2025-09-29 02:22:44,015 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-29 02:22:44,309 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-29 02:22:44,364 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054?flat'} 2025-09-29 02:22:44,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 virtual network link through opserver 10.0.0.33 2025-09-29 02:22:44,364 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-29 02:22:44,658 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-29 02:22:44,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054?flat'} 2025-09-29 02:22:44,711 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 virtual network link through opserver 10.0.0.249 2025-09-29 02:22:44,711 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-29 02:22:45,011 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-29 02:22:45,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054?flat'} 2025-09-29 02:22:45,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is found in opserver 2025-09-29 02:22:45,097 - DEBUG - Do not have enough data to verify VN in agent 2025-09-29 02:22:45,108 - DEBUG - VRF ids for VN ctest-vn-72499054: {} 2025-09-29 02:22:45,109 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:22:45,116 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:22:45,139 - DEBUG - Requesting: http://10.0.0.38:8082/project/82d81843-53bf-489d-a7b5-88f025d9f799 2025-09-29 02:22:45,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/02af572b-1a61-4d11-8948-907a7d58346f 2025-09-29 02:22:45,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/02af572b-1a61-4d11-8948-907a7d58346f 2025-09-29 02:22:45,267 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3298340b-6e0a-42f8-a302-d018c0563e88 2025-09-29 02:22:45,275 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3298340b-6e0a-42f8-a302-d018c0563e88 2025-09-29 02:22:45,283 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/580e5a8a-18e1-4ff0-8ef5-6db1f4cf6a7b 2025-09-29 02:22:45,290 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-09-29 02:22:45,290 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/02af572b-1a61-4d11-8948-907a7d58346f 2025-09-29 02:22:45,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3298340b-6e0a-42f8-a302-d018c0563e88 2025-09-29 02:22:45,323 - INFO - Verified VN network id 16 for VN 02af572b-1a61-4d11-8948-907a7d58346f 2025-09-29 02:22:45,323 - INFO - Verifications in API Server for VN ctest-vn-26806370 passed 2025-09-29 02:22:45,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/02af572b-1a61-4d11-8948-907a7d58346f 2025-09-29 02:22:45,335 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3298340b-6e0a-42f8-a302-d018c0563e88 2025-09-29 02:22:45,342 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3298340b-6e0a-42f8-a302-d018c0563e88 2025-09-29 02:22:45,349 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/580e5a8a-18e1-4ff0-8ef5-6db1f4cf6a7b 2025-09-29 02:22:45,361 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45323159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '193469151638015249', 'uuid-lslong': '9892315437282636911'}, 'enable': 'true', 'created': '2025-09-29T02:22:42', 'last-modified': '2025-09-29T02:22:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.242282'} 2025-09-29 02:22:45,366 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-09-29 02:22:45,370 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45323159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '193469151638015249', 'uuid-lslong': '9892315437282636911'}, 'enable': 'true', 'created': '2025-09-29T02:22:42', 'last-modified': '2025-09-29T02:22:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.246599'} 2025-09-29 02:22:45,376 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-09-29 02:22:45,384 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45323159', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '193469151638015249', 'uuid-lslong': '9892315437282636911'}, 'enable': 'true', 'created': '2025-09-29T02:22:42', 'last-modified': '2025-09-29T02:22:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.265187'} 2025-09-29 02:22:45,395 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-09-29 02:22:45,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26806370 passed 2025-09-29 02:22:45,396 - DEBUG - ====Verifying policy data for ctest-vn-26806370 in API_Server ====== 2025-09-29 02:22:45,396 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:22:45,401 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:22:45,412 - DEBUG - Requesting: http://10.0.0.38:8082/project/82d81843-53bf-489d-a7b5-88f025d9f799 2025-09-29 02:22:45,512 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/02af572b-1a61-4d11-8948-907a7d58346f 2025-09-29 02:22:45,523 - DEBUG - ==>Verifying data for policy with id: 63b64811-a13e-4682-ab7a-afae2e0d62e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-45323159', 'ctest-policy-allow-all-38492774'] 2025-09-29 02:22:45,523 - INFO - VN ctest-vn-26806370 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-29 02:22:45,523 - DEBUG - Verifying the vn in opserver 2025-09-29 02:22:45,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370 virtual network link through opserver 10.0.0.38 2025-09-29 02:22:45,523 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-29 02:22:45,574 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370?flat'} 2025-09-29 02:22:45,574 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370 virtual network link through opserver 10.0.0.33 2025-09-29 02:22:45,574 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-29 02:22:45,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370?flat'} 2025-09-29 02:22:45,628 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370 virtual network link through opserver 10.0.0.249 2025-09-29 02:22:45,628 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-29 02:22:45,686 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370?flat'} 2025-09-29 02:22:45,686 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-26806370 is found in opserver 2025-09-29 02:22:45,706 - DEBUG - Do not have enough data to verify VN in agent 2025-09-29 02:22:45,715 - DEBUG - VRF ids for VN ctest-vn-26806370: {} 2025-09-29 02:22:45,765 - DEBUG - Services list from nova: [, , , ] 2025-09-29 02:22:46,854 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4203-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4203-2) 2025-09-29 02:22:48,285 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4203-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4203-1) 2025-09-29 02:22:48,285 - INFO - Waiting for VM ctest-TestBasicPolicy-45323159-46122485 to be up.. 2025-09-29 02:22:48,390 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-29 02:22:53,468 - DEBUG - VM is in ACTIVE state now 2025-09-29 02:22:53,468 - INFO - VM name : ctest-TestBasicPolicy-45323159-46122485 2025-09-29 02:22:53,555 - DEBUG - VM ctest-TestBasicPolicy-45323159-46122485 ID is 717e43fa-31e3-4a7a-8ac0-1546c145dc2a 2025-09-29 02:22:53,577 - DEBUG - VM ctest-TestBasicPolicy-45323159-46122485 launched on Node an-jenkins-deploy-platform-ansible-os-4203-2 2025-09-29 02:22:53,660 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/717e43fa-31e3-4a7a-8ac0-1546c145dc2a 2025-09-29 02:22:53,953 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/717e43fa-31e3-4a7a-8ac0-1546c145dc2a 2025-09-29 02:22:53,996 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/ee3ba7ef-d6be-478c-85c1-a4275f9aa569 2025-09-29 02:22:57,217 - 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 1031ms') 2025-09-29 02:22:57,217 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:22:57,242 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:01,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 1031ms') 2025-09-29 02:23:01,342 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:23:01,359 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:05,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 1019ms') 2025-09-29 02:23:05,440 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:23:05,454 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:09,533 - 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') 2025-09-29 02:23:09,533 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:23:09,552 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:13,626 - 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-09-29 02:23:13,626 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:23:13,658 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:17,725 - 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 1006ms') 2025-09-29 02:23:17,725 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:23:17,750 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:21,824 - 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-09-29 02:23:21,824 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:23:21,842 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:25,916 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1013ms') 2025-09-29 02:23:25,916 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 failed! 2025-09-29 02:23:25,952 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45323159:ctest-vn-72499054 is 80.243.83.193 and allocation pool is NOT set 2025-09-29 02:23:28,016 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=6.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.25 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.248/3.963/6.678/2.715 ms') 2025-09-29 02:23:28,016 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-46122485 passed 2025-09-29 02:23:28,116 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:28,116 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45323159-46122485, IP 80.243.83.195, Port 22 2025-09-29 02:23:28,183 - 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-09-29 02:23:28,271 - DEBUG - VM ctest-TestBasicPolicy-45323159-46122485 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-29 02:23:33,272 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:33,272 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45323159-46122485, IP 80.243.83.195, Port 22 2025-09-29 02:23:33,340 - 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-09-29 02:23:33,457 - DEBUG - VM ctest-TestBasicPolicy-45323159-46122485 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-29 02:23:38,458 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:38,458 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45323159-46122485, IP 80.243.83.195, Port 22 2025-09-29 02:23:38,528 - 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-09-29 02:23:38,618 - DEBUG - VM ctest-TestBasicPolicy-45323159-46122485 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-29 02:23:43,618 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:43,618 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45323159-46122485, IP 80.243.83.195, Port 22 2025-09-29 02:23:43,687 - 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-09-29 02:23:43,781 - DEBUG - VM ctest-TestBasicPolicy-45323159-46122485 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-29 02:23:48,781 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:48,781 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45323159-46122485, IP 80.243.83.195, Port 22 2025-09-29 02:23:48,969 - DEBUG - VM ctest-TestBasicPolicy-45323159-46122485 is ready for SSH connections 2025-09-29 02:23:48,969 - INFO - Waiting for VM ctest-TestBasicPolicy-45323159-71577989 to be up.. 2025-09-29 02:23:49,065 - DEBUG - VM is in ACTIVE state now 2025-09-29 02:23:49,065 - INFO - VM name : ctest-TestBasicPolicy-45323159-71577989 2025-09-29 02:23:49,141 - DEBUG - VM ctest-TestBasicPolicy-45323159-71577989 ID is d48bd69c-d442-419e-bce8-5930700b7b05 2025-09-29 02:23:49,141 - DEBUG - VM ctest-TestBasicPolicy-45323159-71577989 launched on Node an-jenkins-deploy-platform-ansible-os-4203-1 2025-09-29 02:23:49,221 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/d48bd69c-d442-419e-bce8-5930700b7b05 2025-09-29 02:23:49,234 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/a49a51db-c893-487f-ab92-f13dcdc7dd5a 2025-09-29 02:23:50,420 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.62 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.624/3.798/5.972/2.174 ms') 2025-09-29 02:23:50,420 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45323159-71577989 passed 2025-09-29 02:23:50,512 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:50,513 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45323159-71577989, IP 124.77.157.131, Port 22 2025-09-29 02:23:50,580 - 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-09-29 02:23:50,711 - DEBUG - VM ctest-TestBasicPolicy-45323159-71577989 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-29 02:23:55,712 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:55,712 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45323159-71577989, IP 124.77.157.131, Port 22 2025-09-29 02:23:55,896 - DEBUG - VM ctest-TestBasicPolicy-45323159-71577989 is ready for SSH connections 2025-09-29 02:23:55,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:23:55,897 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.77.157.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.131, gateway password: c0ntrail123 2025-09-29 02:23:55,897 - DEBUG - ping -s 56 -c 3 -W 1 124.77.157.131 2025-09-29 02:24:47,131 - DEBUG - PING 124.77.157.131 (124.77.157.131) 56(84) bytes of data. 64 bytes from 124.77.157.131: icmp_req=1 ttl=63 time=6.74 ms 64 bytes from 124.77.157.131: icmp_req=2 ttl=63 time=1.39 ms 64 bytes from 124.77.157.131: icmp_req=3 ttl=63 time=1.15 ms --- 124.77.157.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.151/3.096/6.747/2.583 ms 2025-09-29 02:24:47,131 - INFO - Ping to IP 124.77.157.131 from VM ctest-TestBasicPolicy-45323159-46122485 passed 2025-09-29 02:24:47,375 - DEBUG - Policy Update Response {"network-policy": {"uuid": "63b64811-a13e-4682-ab7a-afae2e0d62e5", "href": "http://10.0.0.249:8082/network-policy/63b64811-a13e-4682-ab7a-afae2e0d62e5"}} 2025-09-29 02:24:47,375 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-29 02:24:47,375 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.77.157.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.131, gateway password: c0ntrail123 2025-09-29 02:24:47,375 - DEBUG - ping -s 56 -c 3 -W 1 124.77.157.131 2025-09-29 02:24:50,840 - DEBUG - PING 124.77.157.131 (124.77.157.131) 56(84) bytes of data. 64 bytes from 124.77.157.131: icmp_req=1 ttl=63 time=2.49 ms --- 124.77.157.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 2.498/2.498/2.498/0.000 ms 2025-09-29 02:24:50,840 - WARNING - Ping to IP 124.77.157.131 from VM ctest-TestBasicPolicy-45323159-46122485 failed 2025-09-29 02:24:50,840 - INFO - Deleting VM ctest-TestBasicPolicy-45323159-71577989 2025-09-29 02:24:50,911 - INFO - Deleting VM ctest-TestBasicPolicy-45323159-46122485 2025-09-29 02:24:51,409 - INFO - Deleted policy ctest-policy-allow-all-38492774 2025-09-29 02:24:51,409 - INFO - Deleting VN ctest-vn-26806370 2025-09-29 02:24:51,488 - DEBUG - VN 02af572b-1a61-4d11-8948-907a7d58346f still in use: Unable to complete operation on network 02af572b-1a61-4d11-8948-907a7d58346f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ef4b3ecf-0cd6-47c0-b700-c80fca664764'] 2025-09-29 02:24:51,488 - WARNING - Deleting VN ctest-vn-26806370 failed..Will retry 2025-09-29 02:24:53,731 - DEBUG - Response for deleting network () 2025-09-29 02:24:53,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3298340b-6e0a-42f8-a302-d018c0563e88 2025-09-29 02:24:53,737 - DEBUG - Response Code: 404 2025-09-29 02:24:53,737 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:24:53,744 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:24:53,755 - DEBUG - Requesting: http://10.0.0.38:8082/project/82d81843-53bf-489d-a7b5-88f025d9f799 2025-09-29 02:24:53,848 - INFO - Validated that VN ctest-vn-26806370 is not found in API Server 2025-09-29 02:24:53,861 - DEBUG - VN ctest-vn-26806370 is not present in Agent 10.0.0.27 2025-09-29 02:24:53,874 - DEBUG - VN ctest-vn-26806370 is not present in Agent 10.0.0.131 2025-09-29 02:24:53,874 - INFO - Validated that VN ctest-vn-26806370 is not in any agent 2025-09-29 02:24:53,907 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26806370 info 2025-09-29 02:24:53,908 - INFO - Deleting VN ctest-vn-72499054 2025-09-29 02:24:54,101 - DEBUG - Response for deleting network () 2025-09-29 02:24:54,101 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7cc1460-dbf3-4315-b437-3eb7081e0642 2025-09-29 02:24:54,108 - DEBUG - Response Code: 404 2025-09-29 02:24:54,108 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:24:54,113 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:24:54,126 - DEBUG - Requesting: http://10.0.0.38:8082/project/82d81843-53bf-489d-a7b5-88f025d9f799 2025-09-29 02:24:54,238 - INFO - Validated that VN ctest-vn-72499054 is not found in API Server 2025-09-29 02:24:54,248 - DEBUG - VN ctest-vn-72499054 is not present in Agent 10.0.0.27 2025-09-29 02:24:54,260 - DEBUG - VN ctest-vn-72499054 is not present in Agent 10.0.0.131 2025-09-29 02:24:54,260 - INFO - Validated that VN ctest-vn-72499054 is not in any agent 2025-09-29 02:24:54,293 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72499054 info 2025-09-29 02:24:55,607 - DEBUG - No XMPP flaps were noticed during the test 2025-09-29 02:24:55,607 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:16] 2025-09-29 02:24:55,607 - INFO - -------------------------------------------------------------------------------- 2025-09-29 02:24:56,472 - INFO - Deleted project: ctest-TestBasicPolicy-45323159, ID : 82d81843-53bf-489d-a7b5-88f025d9f799