2025-09-15 02:33:58,520 - INFO - Domain Default found not creating 2025-09-15 02:33:58,648 - INFO - Project ctest-TestBasicPolicy-11958305 not found, creating it 2025-09-15 02:33:59,179 - INFO - Created Project:ctest-TestBasicPolicy-11958305, ID : dd202586-5bf6-4f8f-be9d-fe06dd62d9c8 2025-09-15 02:34:00,736 - INFO - ================================================================================ 2025-09-15 02:34:00,736 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-15 02:34:00,736 - 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-15 02:34:02,044 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.137': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-09-15 02:34:02,044 - INFO - Initial checks done. Running the testcase now 2025-09-15 02:34:02,044 - INFO - 2025-09-15 02:34:02,690 - DEBUG - Response for create_network : {'network': {'id': 'f37253a6-df70-4ed2-a3ca-8d8e7dcd272a', 'name': 'ctest-vn-25447954', 'tenant_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'project_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-vn-25447954'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:34:02,972 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cee402c-42f0-48fe-a103-34ed2731fb55', 'name': '', 'tenant_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'network_id': 'f37253a6-df70-4ed2-a3ca-8d8e7dcd272a', 'ip_version': 4, 'cidr': '85.214.204.128/26', 'allocation_pools': [{'start': '85.214.204.130', 'end': '85.214.204.190'}], 'gateway_ip': '85.214.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.214.204.130', 'tags': [], 'project_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8'}} 2025-09-15 02:34:02,992 - INFO - Created VN ctest-vn-25447954 2025-09-15 02:34:03,004 - DEBUG - VN ctest-vn-25447954 UUID is f37253a6-df70-4ed2-a3ca-8d8e7dcd272a 2025-09-15 02:34:03,369 - DEBUG - Response for create_network : {'network': {'id': '32d0356d-aa6d-456c-9bd2-f58f68c50c0d', 'name': 'ctest-vn-02867707', 'tenant_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'project_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-vn-02867707'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:34:03,591 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e002e4b4-4fb3-40ec-99ce-d01e9747e7a2', 'name': '', 'tenant_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'network_id': '32d0356d-aa6d-456c-9bd2-f58f68c50c0d', 'ip_version': 4, 'cidr': '7.233.195.192/26', 'allocation_pools': [{'start': '7.233.195.194', 'end': '7.233.195.254'}], 'gateway_ip': '7.233.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.233.195.194', 'tags': [], 'project_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8'}} 2025-09-15 02:34:03,619 - INFO - Created VN ctest-vn-02867707 2025-09-15 02:34:03,630 - DEBUG - VN ctest-vn-02867707 UUID is 32d0356d-aa6d-456c-9bd2-f58f68c50c0d 2025-09-15 02:34:03,718 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954, 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-11958305:ctest-vn-02867707, 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-15 02:34:04,052 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f37253a6-df70-4ed2-a3ca-8d8e7dcd272a', 'name': 'ctest-vn-25447954', 'tenant_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'project_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6cee402c-42f0-48fe-a103-34ed2731fb55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-vn-25447954'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-policy-allow-all-54326563']], 'subnet_ipam': [{'subnet_cidr': '85.214.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:34:04,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32d0356d-aa6d-456c-9bd2-f58f68c50c0d', 'name': 'ctest-vn-02867707', 'tenant_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'project_id': 'dd2025865bf64f8fbe9dfe06dd62d9c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e002e4b4-4fb3-40ec-99ce-d01e9747e7a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-vn-02867707'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-policy-allow-all-54326563']], 'subnet_ipam': [{'subnet_cidr': '7.233.195.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:34:04,359 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:34:04,681 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:34:04,708 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:34:04,720 - DEBUG - Requesting: http://10.0.0.249:8082/project/dd202586-5bf6-4f8f-be9d-fe06dd62d9c8 2025-09-15 02:34:04,812 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f37253a6-df70-4ed2-a3ca-8d8e7dcd272a 2025-09-15 02:34:04,824 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f37253a6-df70-4ed2-a3ca-8d8e7dcd272a 2025-09-15 02:34:04,832 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c4d629a9-07b2-47fd-aa23-e3d026160369 2025-09-15 02:34:04,839 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c4d629a9-07b2-47fd-aa23-e3d026160369 2025-09-15 02:34:04,845 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/036cd420-eb8c-4986-8ed2-4df9d2f407d9 2025-09-15 02:34:04,851 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:34:04,851 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f37253a6-df70-4ed2-a3ca-8d8e7dcd272a 2025-09-15 02:34:04,858 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c4d629a9-07b2-47fd-aa23-e3d026160369 2025-09-15 02:34:04,873 - INFO - Verified VN network id 11 for VN f37253a6-df70-4ed2-a3ca-8d8e7dcd272a 2025-09-15 02:34:04,873 - INFO - Verifications in API Server for VN ctest-vn-25447954 passed 2025-09-15 02:34:04,873 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f37253a6-df70-4ed2-a3ca-8d8e7dcd272a 2025-09-15 02:34:04,881 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c4d629a9-07b2-47fd-aa23-e3d026160369 2025-09-15 02:34:04,887 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c4d629a9-07b2-47fd-aa23-e3d026160369 2025-09-15 02:34:04,893 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/036cd420-eb8c-4986-8ed2-4df9d2f407d9 2025-09-15 02:34:04,903 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11958305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17542175474739859154', 'uuid-lslong': '11802401416613275434'}, 'enable': 'true', 'created': '2025-09-15T02:34:02', 'last-modified': '2025-09-15T02:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882591'} 2025-09-15 02:34:04,908 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:34:04,913 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11958305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17542175474739859154', 'uuid-lslong': '11802401416613275434'}, 'enable': 'true', 'created': '2025-09-15T02:34:02', 'last-modified': '2025-09-15T02:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892674'} 2025-09-15 02:34:04,918 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:34:04,923 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11958305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17542175474739859154', 'uuid-lslong': '11802401416613275434'}, 'enable': 'true', 'created': '2025-09-15T02:34:02', 'last-modified': '2025-09-15T02:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903332'} 2025-09-15 02:34:04,928 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:34:04,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25447954 passed 2025-09-15 02:34:04,928 - DEBUG - ====Verifying policy data for ctest-vn-25447954 in API_Server ====== 2025-09-15 02:34:04,928 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:34:04,933 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:34:04,941 - DEBUG - Requesting: http://10.0.0.249:8082/project/dd202586-5bf6-4f8f-be9d-fe06dd62d9c8 2025-09-15 02:34:05,034 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f37253a6-df70-4ed2-a3ca-8d8e7dcd272a 2025-09-15 02:34:05,044 - DEBUG - ==>Verifying data for policy with id: 6d6ae463-a8c6-41b3-9175-df9aa2deff19, fqn: ['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-policy-allow-all-54326563'] 2025-09-15 02:34:05,044 - INFO - VN ctest-vn-25447954 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 02:34:05,044 - DEBUG - Verifying the vn in opserver 2025-09-15 02:34:05,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 virtual network link through opserver 10.0.0.249 2025-09-15 02:34:05,044 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-15 02:34:05,341 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-15 02:34:05,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954?flat'} 2025-09-15 02:34:05,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 virtual network link through opserver 10.0.0.27 2025-09-15 02:34:05,395 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-15 02:34:05,694 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-15 02:34:05,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954?flat'} 2025-09-15 02:34:05,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 virtual network link through opserver 10.0.0.38 2025-09-15 02:34:05,748 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 02:34:06,038 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 02:34:06,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954?flat'} 2025-09-15 02:34:06,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is found in opserver 2025-09-15 02:34:06,109 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 02:34:06,117 - DEBUG - VRF ids for VN ctest-vn-25447954: {} 2025-09-15 02:34:06,117 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:34:06,123 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:34:06,132 - DEBUG - Requesting: http://10.0.0.249:8082/project/dd202586-5bf6-4f8f-be9d-fe06dd62d9c8 2025-09-15 02:34:06,217 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32d0356d-aa6d-456c-9bd2-f58f68c50c0d 2025-09-15 02:34:06,230 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32d0356d-aa6d-456c-9bd2-f58f68c50c0d 2025-09-15 02:34:06,237 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b0514b62-786a-4c7b-bf21-de4b3dce7c24 2025-09-15 02:34:06,243 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b0514b62-786a-4c7b-bf21-de4b3dce7c24 2025-09-15 02:34:06,249 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/04eeceba-1d3e-4dad-8012-eedfc5f41841 2025-09-15 02:34:06,255 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 02:34:06,255 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32d0356d-aa6d-456c-9bd2-f58f68c50c0d 2025-09-15 02:34:06,263 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b0514b62-786a-4c7b-bf21-de4b3dce7c24 2025-09-15 02:34:06,276 - INFO - Verified VN network id 12 for VN 32d0356d-aa6d-456c-9bd2-f58f68c50c0d 2025-09-15 02:34:06,276 - INFO - Verifications in API Server for VN ctest-vn-02867707 passed 2025-09-15 02:34:06,276 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32d0356d-aa6d-456c-9bd2-f58f68c50c0d 2025-09-15 02:34:06,284 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b0514b62-786a-4c7b-bf21-de4b3dce7c24 2025-09-15 02:34:06,290 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b0514b62-786a-4c7b-bf21-de4b3dce7c24 2025-09-15 02:34:06,296 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/04eeceba-1d3e-4dad-8012-eedfc5f41841 2025-09-15 02:34:06,305 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11958305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3661485242179208556', 'uuid-lslong': '11228306817274940429'}, 'enable': 'true', 'created': '2025-09-15T02:34:03', 'last-modified': '2025-09-15T02:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.067337'} 2025-09-15 02:34:06,312 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 02:34:06,317 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11958305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3661485242179208556', 'uuid-lslong': '11228306817274940429'}, 'enable': 'true', 'created': '2025-09-15T02:34:03', 'last-modified': '2025-09-15T02:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.079279'} 2025-09-15 02:34:06,322 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 02:34:06,327 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11958305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3661485242179208556', 'uuid-lslong': '11228306817274940429'}, 'enable': 'true', 'created': '2025-09-15T02:34:03', 'last-modified': '2025-09-15T02:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.097969'} 2025-09-15 02:34:06,332 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 02:34:06,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02867707 passed 2025-09-15 02:34:06,332 - DEBUG - ====Verifying policy data for ctest-vn-02867707 in API_Server ====== 2025-09-15 02:34:06,332 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:34:06,338 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:34:06,350 - DEBUG - Requesting: http://10.0.0.249:8082/project/dd202586-5bf6-4f8f-be9d-fe06dd62d9c8 2025-09-15 02:34:06,438 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32d0356d-aa6d-456c-9bd2-f58f68c50c0d 2025-09-15 02:34:06,447 - DEBUG - ==>Verifying data for policy with id: 6d6ae463-a8c6-41b3-9175-df9aa2deff19, fqn: ['default-domain', 'ctest-TestBasicPolicy-11958305', 'ctest-policy-allow-all-54326563'] 2025-09-15 02:34:06,447 - INFO - VN ctest-vn-02867707 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 02:34:06,447 - DEBUG - Verifying the vn in opserver 2025-09-15 02:34:06,447 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707 virtual network link through opserver 10.0.0.249 2025-09-15 02:34:06,447 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-15 02:34:06,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707?flat'} 2025-09-15 02:34:06,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707 virtual network link through opserver 10.0.0.27 2025-09-15 02:34:06,500 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-15 02:34:06,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707?flat'} 2025-09-15 02:34:06,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707 virtual network link through opserver 10.0.0.38 2025-09-15 02:34:06,546 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 02:34:06,599 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707?flat'} 2025-09-15 02:34:06,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-02867707 is found in opserver 2025-09-15 02:34:06,619 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 02:34:06,629 - DEBUG - VRF ids for VN ctest-vn-02867707: {} 2025-09-15 02:34:06,684 - DEBUG - Services list from nova: [, , , ] 2025-09-15 02:34:07,696 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4110-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4110-1) 2025-09-15 02:34:08,957 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4110-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4110-2) 2025-09-15 02:34:08,957 - INFO - Waiting for VM ctest-TestBasicPolicy-11958305-37318276 to be up.. 2025-09-15 02:34:09,052 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-15 02:34:14,136 - DEBUG - VM is in ACTIVE state now 2025-09-15 02:34:14,136 - INFO - VM name : ctest-TestBasicPolicy-11958305-37318276 2025-09-15 02:34:14,206 - DEBUG - VM ctest-TestBasicPolicy-11958305-37318276 ID is cf614df7-a8fb-4c04-82a3-f0ec5c646dc8 2025-09-15 02:34:14,228 - DEBUG - VM ctest-TestBasicPolicy-11958305-37318276 launched on Node an-jenkins-deploy-platform-ansible-os-4110-1 2025-09-15 02:34:14,299 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/cf614df7-a8fb-4c04-82a3-f0ec5c646dc8 2025-09-15 02:34:14,591 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/cf614df7-a8fb-4c04-82a3-f0ec5c646dc8 2025-09-15 02:34:14,624 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/1df8fcc8-5ed0-4a0d-b7ba-e6be72ac1ed3 2025-09-15 02:34:17,809 - 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-15 02:34:17,809 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 failed! 2025-09-15 02:34:17,823 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is 85.214.204.129 and allocation pool is NOT set 2025-09-15 02:34:21,905 - 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 1027ms') 2025-09-15 02:34:21,905 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 failed! 2025-09-15 02:34:21,918 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is 85.214.204.129 and allocation pool is NOT set 2025-09-15 02:34:26,006 - 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 1027ms') 2025-09-15 02:34:26,006 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 failed! 2025-09-15 02:34:26,020 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is 85.214.204.129 and allocation pool is NOT set 2025-09-15 02:34:30,098 - 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-15 02:34:30,098 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 failed! 2025-09-15 02:34:30,111 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is 85.214.204.129 and allocation pool is NOT set 2025-09-15 02:34:34,205 - 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 1030ms') 2025-09-15 02:34:34,205 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 failed! 2025-09-15 02:34:34,217 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is 85.214.204.129 and allocation pool is NOT set 2025-09-15 02:34:38,290 - 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-15 02:34:38,290 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 failed! 2025-09-15 02:34:38,304 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is 85.214.204.129 and allocation pool is NOT set 2025-09-15 02:34:42,385 - 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 1027ms') 2025-09-15 02:34:42,386 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 failed! 2025-09-15 02:34:42,400 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11958305:ctest-vn-25447954 is 85.214.204.129 and allocation pool is NOT set 2025-09-15 02:34:46,482 - 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=6.71 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1022ms\r\nrtt min/avg/max/mdev = 6.705/6.705/6.705/0.000 ms') 2025-09-15 02:34:46,482 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-37318276 passed 2025-09-15 02:34:46,548 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:34:46,548 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11958305-37318276, IP 85.214.204.131, Port 22 2025-09-15 02:34:46,607 - 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-15 02:34:46,685 - DEBUG - VM ctest-TestBasicPolicy-11958305-37318276 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 02:34:51,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:34:51,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11958305-37318276, IP 85.214.204.131, Port 22 2025-09-15 02:34:51,743 - 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-15 02:34:51,816 - DEBUG - VM ctest-TestBasicPolicy-11958305-37318276 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 02:34:56,817 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:34:56,818 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11958305-37318276, IP 85.214.204.131, Port 22 2025-09-15 02:34:56,885 - 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-15 02:34:56,974 - DEBUG - VM ctest-TestBasicPolicy-11958305-37318276 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 02:35:01,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:35:01,975 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11958305-37318276, IP 85.214.204.131, Port 22 2025-09-15 02:35:02,031 - 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-15 02:35:02,119 - DEBUG - VM ctest-TestBasicPolicy-11958305-37318276 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 02:35:07,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:35:07,120 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11958305-37318276, IP 85.214.204.131, Port 22 2025-09-15 02:35:07,274 - DEBUG - VM ctest-TestBasicPolicy-11958305-37318276 is ready for SSH connections 2025-09-15 02:35:07,275 - INFO - Waiting for VM ctest-TestBasicPolicy-11958305-35709812 to be up.. 2025-09-15 02:35:07,355 - DEBUG - VM is in ACTIVE state now 2025-09-15 02:35:07,355 - INFO - VM name : ctest-TestBasicPolicy-11958305-35709812 2025-09-15 02:35:07,433 - DEBUG - VM ctest-TestBasicPolicy-11958305-35709812 ID is 3f3a0f00-e20e-4ae5-a9e4-1a81ca6db60d 2025-09-15 02:35:07,433 - DEBUG - VM ctest-TestBasicPolicy-11958305-35709812 launched on Node an-jenkins-deploy-platform-ansible-os-4110-2 2025-09-15 02:35:07,517 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/3f3a0f00-e20e-4ae5-a9e4-1a81ca6db60d 2025-09-15 02:35:07,528 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/c5c990f2-bce8-454b-ab19-2a6dd5a5c702 2025-09-15 02:35:08,689 - 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=2.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.541 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.541/1.746/2.952/1.205 ms') 2025-09-15 02:35:08,689 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11958305-35709812 passed 2025-09-15 02:35:08,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:35:08,755 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11958305-35709812, IP 7.233.195.195, Port 22 2025-09-15 02:35:08,921 - DEBUG - VM ctest-TestBasicPolicy-11958305-35709812 is ready for SSH connections 2025-09-15 02:35:08,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:35:08,921 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.233.195.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-09-15 02:35:08,921 - DEBUG - ping -s 56 -c 3 -W 1 7.233.195.195 2025-09-15 02:35:27,348 - DEBUG - PING 7.233.195.195 (7.233.195.195) 56(84) bytes of data. 64 bytes from 7.233.195.195: icmp_req=1 ttl=63 time=5.58 ms 64 bytes from 7.233.195.195: icmp_req=2 ttl=63 time=1.68 ms 64 bytes from 7.233.195.195: icmp_req=3 ttl=63 time=3.57 ms --- 7.233.195.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.684/3.614/5.586/1.594 ms 2025-09-15 02:35:27,349 - INFO - Ping to IP 7.233.195.195 from VM ctest-TestBasicPolicy-11958305-37318276 passed 2025-09-15 02:35:27,555 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6d6ae463-a8c6-41b3-9175-df9aa2deff19", "href": "http://10.0.0.38:8082/network-policy/6d6ae463-a8c6-41b3-9175-df9aa2deff19"}} 2025-09-15 02:35:27,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 02:35:27,555 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.233.195.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-09-15 02:35:27,556 - DEBUG - ping -s 56 -c 3 -W 1 7.233.195.195 2025-09-15 02:35:31,026 - DEBUG - PING 7.233.195.195 (7.233.195.195) 56(84) bytes of data. 64 bytes from 7.233.195.195: icmp_req=1 ttl=63 time=4.36 ms --- 7.233.195.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 4.366/4.366/4.366/0.000 ms 2025-09-15 02:35:31,026 - WARNING - Ping to IP 7.233.195.195 from VM ctest-TestBasicPolicy-11958305-37318276 failed 2025-09-15 02:35:31,026 - INFO - Deleting VM ctest-TestBasicPolicy-11958305-35709812 2025-09-15 02:35:31,101 - INFO - Deleting VM ctest-TestBasicPolicy-11958305-37318276 2025-09-15 02:35:31,604 - INFO - Deleted policy ctest-policy-allow-all-54326563 2025-09-15 02:35:31,606 - INFO - Deleting VN ctest-vn-02867707 2025-09-15 02:35:31,665 - DEBUG - VN 32d0356d-aa6d-456c-9bd2-f58f68c50c0d still in use: Unable to complete operation on network 32d0356d-aa6d-456c-9bd2-f58f68c50c0d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2f011b49-9fd8-46d9-b05a-ef7403148950'] 2025-09-15 02:35:31,665 - WARNING - Deleting VN ctest-vn-02867707 failed..Will retry 2025-09-15 02:35:33,877 - DEBUG - Response for deleting network () 2025-09-15 02:35:33,877 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b0514b62-786a-4c7b-bf21-de4b3dce7c24 2025-09-15 02:35:33,884 - DEBUG - Response Code: 404 2025-09-15 02:35:33,884 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:35:33,892 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:35:33,905 - DEBUG - Requesting: http://10.0.0.249:8082/project/dd202586-5bf6-4f8f-be9d-fe06dd62d9c8 2025-09-15 02:35:33,998 - INFO - Validated that VN ctest-vn-02867707 is not found in API Server 2025-09-15 02:35:34,011 - DEBUG - VN ctest-vn-02867707 is not present in Agent 10.0.0.19 2025-09-15 02:35:34,021 - DEBUG - VN ctest-vn-02867707 is not present in Agent 10.0.0.137 2025-09-15 02:35:34,021 - INFO - Validated that VN ctest-vn-02867707 is not in any agent 2025-09-15 02:35:34,050 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02867707 info 2025-09-15 02:35:34,050 - INFO - Deleting VN ctest-vn-25447954 2025-09-15 02:35:34,204 - DEBUG - Response for deleting network () 2025-09-15 02:35:34,204 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c4d629a9-07b2-47fd-aa23-e3d026160369 2025-09-15 02:35:34,213 - DEBUG - Response Code: 404 2025-09-15 02:35:34,213 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:35:34,218 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:35:34,238 - DEBUG - Requesting: http://10.0.0.249:8082/project/dd202586-5bf6-4f8f-be9d-fe06dd62d9c8 2025-09-15 02:35:34,334 - INFO - Validated that VN ctest-vn-25447954 is not found in API Server 2025-09-15 02:35:34,342 - DEBUG - VN ctest-vn-25447954 is not present in Agent 10.0.0.19 2025-09-15 02:35:34,352 - DEBUG - VN ctest-vn-25447954 is not present in Agent 10.0.0.137 2025-09-15 02:35:34,352 - INFO - Validated that VN ctest-vn-25447954 is not in any agent 2025-09-15 02:35:34,386 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25447954 info 2025-09-15 02:35:35,659 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 02:35:35,659 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:35]
2025-09-15 02:35:35,659 - INFO - -------------------------------------------------------------------------------- 2025-09-15 02:35:36,325 - INFO - Deleted project: ctest-TestBasicPolicy-11958305, ID : dd202586-5bf6-4f8f-be9d-fe06dd62d9c8