2026-04-03 17:15:54,515 - INFO - Domain Default found not creating 2026-04-03 17:15:54,669 - INFO - Project ctest-TestBasicPolicy-33132690 not found, creating it 2026-04-03 17:15:55,211 - INFO - Created Project:ctest-TestBasicPolicy-33132690, ID : 226b1340-95ff-42a0-b21a-265df7874a16 2026-04-03 17:15:56,700 - INFO - ================================================================================ 2026-04-03 17:15:56,700 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-04-03 17:15:56,700 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2026-04-03 17:15:57,959 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.240': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-04-03 17:15:57,959 - INFO - Initial checks done. Running the testcase now 2026-04-03 17:15:57,959 - INFO - 2026-04-03 17:15:58,618 - DEBUG - Response for create_network : {'network': {'id': '6a64e1a1-fef7-4215-bb6e-952f36a340d9', 'name': 'ctest-vn-27857562', 'tenant_id': '226b134095ff42a0b21a265df7874a16', 'project_id': '226b134095ff42a0b21a265df7874a16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-vn-27857562'], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:15:58,873 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5e71c43-6bdd-45af-bdc3-851d93979dfd', 'name': '', 'tenant_id': '226b134095ff42a0b21a265df7874a16', 'network_id': '6a64e1a1-fef7-4215-bb6e-952f36a340d9', 'ip_version': 4, 'cidr': '66.222.115.0/26', 'allocation_pools': [{'start': '66.222.115.2', 'end': '66.222.115.62'}], 'gateway_ip': '66.222.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.222.115.2', 'tags': [], 'project_id': '226b134095ff42a0b21a265df7874a16'}} 2026-04-03 17:15:58,894 - INFO - Created VN ctest-vn-27857562 2026-04-03 17:15:58,905 - DEBUG - VN ctest-vn-27857562 UUID is 6a64e1a1-fef7-4215-bb6e-952f36a340d9 2026-04-03 17:15:59,291 - DEBUG - Response for create_network : {'network': {'id': 'a5087802-9032-4603-af78-0fe10bcfa432', 'name': 'ctest-vn-45133926', 'tenant_id': '226b134095ff42a0b21a265df7874a16', 'project_id': '226b134095ff42a0b21a265df7874a16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-vn-45133926'], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:15:59,547 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4aca05c-18b9-4f10-9151-ac6928f2f254', 'name': '', 'tenant_id': '226b134095ff42a0b21a265df7874a16', 'network_id': 'a5087802-9032-4603-af78-0fe10bcfa432', 'ip_version': 4, 'cidr': '13.204.4.0/26', 'allocation_pools': [{'start': '13.204.4.2', 'end': '13.204.4.62'}], 'gateway_ip': '13.204.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.204.4.2', 'tags': [], 'project_id': '226b134095ff42a0b21a265df7874a16'}} 2026-04-03 17:15:59,566 - INFO - Created VN ctest-vn-45133926 2026-04-03 17:15:59,580 - DEBUG - VN ctest-vn-45133926 UUID is a5087802-9032-4603-af78-0fe10bcfa432 2026-04-03 17:15:59,696 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562, 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-33132690:ctest-vn-45133926, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-04-03 17:16:00,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a64e1a1-fef7-4215-bb6e-952f36a340d9', 'name': 'ctest-vn-27857562', 'tenant_id': '226b134095ff42a0b21a265df7874a16', 'project_id': '226b134095ff42a0b21a265df7874a16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5e71c43-6bdd-45af-bdc3-851d93979dfd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-vn-27857562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-policy-allow-all-02938322']], 'subnet_ipam': [{'subnet_cidr': '66.222.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:16:00,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5087802-9032-4603-af78-0fe10bcfa432', 'name': 'ctest-vn-45133926', 'tenant_id': '226b134095ff42a0b21a265df7874a16', 'project_id': '226b134095ff42a0b21a265df7874a16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4aca05c-18b9-4f10-9151-ac6928f2f254'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-vn-45133926'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-policy-allow-all-02938322']], 'subnet_ipam': [{'subnet_cidr': '13.204.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:16:00,387 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:16:00,689 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:16:00,717 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:16:00,731 - DEBUG - Requesting: http://10.0.0.22:8082/project/226b1340-95ff-42a0-b21a-265df7874a16 2026-04-03 17:16:00,821 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a64e1a1-fef7-4215-bb6e-952f36a340d9 2026-04-03 17:16:00,833 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a64e1a1-fef7-4215-bb6e-952f36a340d9 2026-04-03 17:16:00,843 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/83672ba0-705e-43a9-81af-317c047ec336 2026-04-03 17:16:00,850 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/83672ba0-705e-43a9-81af-317c047ec336 2026-04-03 17:16:00,856 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e80369c9-9399-4ddf-86b1-433fe97b0e96 2026-04-03 17:16:00,862 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:16:00,862 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a64e1a1-fef7-4215-bb6e-952f36a340d9 2026-04-03 17:16:00,871 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/83672ba0-705e-43a9-81af-317c047ec336 2026-04-03 17:16:00,887 - INFO - Verified VN network id 12 for VN 6a64e1a1-fef7-4215-bb6e-952f36a340d9 2026-04-03 17:16:00,887 - INFO - Verifications in API Server for VN ctest-vn-27857562 passed 2026-04-03 17:16:00,887 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a64e1a1-fef7-4215-bb6e-952f36a340d9 2026-04-03 17:16:00,896 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/83672ba0-705e-43a9-81af-317c047ec336 2026-04-03 17:16:00,902 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/83672ba0-705e-43a9-81af-317c047ec336 2026-04-03 17:16:00,908 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e80369c9-9399-4ddf-86b1-433fe97b0e96 2026-04-03 17:16:00,921 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33132690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7666500551575028245', 'uuid-lslong': '13505896362543366361'}, 'enable': 'true', 'created': '2026-04-03T17:15:58', 'last-modified': '2026-04-03T17:15:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929232'} 2026-04-03 17:16:00,927 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:16:00,932 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33132690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7666500551575028245', 'uuid-lslong': '13505896362543366361'}, 'enable': 'true', 'created': '2026-04-03T17:15:58', 'last-modified': '2026-04-03T17:15:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940775'} 2026-04-03 17:16:00,937 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:16:00,943 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33132690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7666500551575028245', 'uuid-lslong': '13505896362543366361'}, 'enable': 'true', 'created': '2026-04-03T17:15:58', 'last-modified': '2026-04-03T17:15:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953553'} 2026-04-03 17:16:00,948 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:16:00,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27857562 passed 2026-04-03 17:16:00,948 - DEBUG - ====Verifying policy data for ctest-vn-27857562 in API_Server ====== 2026-04-03 17:16:00,948 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:16:00,954 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:16:00,968 - DEBUG - Requesting: http://10.0.0.22:8082/project/226b1340-95ff-42a0-b21a-265df7874a16 2026-04-03 17:16:01,070 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a64e1a1-fef7-4215-bb6e-952f36a340d9 2026-04-03 17:16:01,083 - DEBUG - ==>Verifying data for policy with id: 00670e80-a53c-48e0-8dcd-a3b4931e06da, fqn: ['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-policy-allow-all-02938322'] 2026-04-03 17:16:01,083 - INFO - VN ctest-vn-27857562 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-03 17:16:01,083 - DEBUG - Verifying the vn in opserver 2026-04-03 17:16:01,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 virtual network link through opserver 10.0.0.22 2026-04-03 17:16:01,083 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-03 17:16:01,380 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-03 17:16:01,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562?flat'} 2026-04-03 17:16:01,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 virtual network link through opserver 10.0.0.38 2026-04-03 17:16:01,446 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-03 17:16:01,756 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-03 17:16:01,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562?flat'} 2026-04-03 17:16:01,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 virtual network link through opserver 10.0.0.141 2026-04-03 17:16:01,823 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-03 17:16:02,124 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-03 17:16:02,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562?flat'} 2026-04-03 17:16:02,211 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is found in opserver 2026-04-03 17:16:02,231 - DEBUG - Do not have enough data to verify VN in agent 2026-04-03 17:16:02,242 - DEBUG - VRF ids for VN ctest-vn-27857562: {} 2026-04-03 17:16:02,243 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:16:02,250 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:16:02,263 - DEBUG - Requesting: http://10.0.0.22:8082/project/226b1340-95ff-42a0-b21a-265df7874a16 2026-04-03 17:16:02,365 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a5087802-9032-4603-af78-0fe10bcfa432 2026-04-03 17:16:02,378 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a5087802-9032-4603-af78-0fe10bcfa432 2026-04-03 17:16:02,388 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c653a3a4-a1f7-400e-91bc-314943901e01 2026-04-03 17:16:02,395 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c653a3a4-a1f7-400e-91bc-314943901e01 2026-04-03 17:16:02,403 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7b5e36a7-1c3a-4bf4-af89-9f398f9f881a 2026-04-03 17:16:02,409 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-03 17:16:02,410 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a5087802-9032-4603-af78-0fe10bcfa432 2026-04-03 17:16:02,419 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c653a3a4-a1f7-400e-91bc-314943901e01 2026-04-03 17:16:02,435 - INFO - Verified VN network id 13 for VN a5087802-9032-4603-af78-0fe10bcfa432 2026-04-03 17:16:02,435 - INFO - Verifications in API Server for VN ctest-vn-45133926 passed 2026-04-03 17:16:02,435 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a5087802-9032-4603-af78-0fe10bcfa432 2026-04-03 17:16:02,444 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c653a3a4-a1f7-400e-91bc-314943901e01 2026-04-03 17:16:02,450 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c653a3a4-a1f7-400e-91bc-314943901e01 2026-04-03 17:16:02,459 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7b5e36a7-1c3a-4bf4-af89-9f398f9f881a 2026-04-03 17:16:02,469 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33132690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11891886768476276227', 'uuid-lslong': '12643873413082883122'}, 'enable': 'true', 'created': '2026-04-03T17:15:59', 'last-modified': '2026-04-03T17:16:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.275329'} 2026-04-03 17:16:02,475 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-03 17:16:02,480 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33132690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11891886768476276227', 'uuid-lslong': '12643873413082883122'}, 'enable': 'true', 'created': '2026-04-03T17:15:59', 'last-modified': '2026-04-03T17:16:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.289235'} 2026-04-03 17:16:02,486 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-03 17:16:02,491 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33132690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11891886768476276227', 'uuid-lslong': '12643873413082883122'}, 'enable': 'true', 'created': '2026-04-03T17:15:59', 'last-modified': '2026-04-03T17:16:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.300958'} 2026-04-03 17:16:02,497 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-04-03 17:16:02,497 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45133926 passed 2026-04-03 17:16:02,497 - DEBUG - ====Verifying policy data for ctest-vn-45133926 in API_Server ====== 2026-04-03 17:16:02,497 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:16:02,503 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:16:02,513 - DEBUG - Requesting: http://10.0.0.22:8082/project/226b1340-95ff-42a0-b21a-265df7874a16 2026-04-03 17:16:02,604 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a5087802-9032-4603-af78-0fe10bcfa432 2026-04-03 17:16:02,613 - DEBUG - ==>Verifying data for policy with id: 00670e80-a53c-48e0-8dcd-a3b4931e06da, fqn: ['default-domain', 'ctest-TestBasicPolicy-33132690', 'ctest-policy-allow-all-02938322'] 2026-04-03 17:16:02,613 - INFO - VN ctest-vn-45133926 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-03 17:16:02,613 - DEBUG - Verifying the vn in opserver 2026-04-03 17:16:02,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926 virtual network link through opserver 10.0.0.22 2026-04-03 17:16:02,613 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-03 17:16:02,668 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926?flat'} 2026-04-03 17:16:02,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926 virtual network link through opserver 10.0.0.38 2026-04-03 17:16:02,668 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-03 17:16:02,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926?flat'} 2026-04-03 17:16:02,727 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926 virtual network link through opserver 10.0.0.141 2026-04-03 17:16:02,727 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-03 17:16:02,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926?flat'} 2026-04-03 17:16:02,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-45133926 is found in opserver 2026-04-03 17:16:02,814 - DEBUG - Do not have enough data to verify VN in agent 2026-04-03 17:16:02,826 - DEBUG - VRF ids for VN ctest-vn-45133926: {} 2026-04-03 17:16:02,887 - DEBUG - Services list from nova: [, , , ] 2026-04-03 17:16:03,916 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5589-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5589-2) 2026-04-03 17:16:05,514 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5589-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5589-1) 2026-04-03 17:16:05,514 - INFO - Waiting for VM ctest-TestBasicPolicy-33132690-90113814 to be up.. 2026-04-03 17:16:05,604 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-04-03 17:16:10,691 - DEBUG - VM is in ACTIVE state now 2026-04-03 17:16:10,691 - INFO - VM name : ctest-TestBasicPolicy-33132690-90113814 2026-04-03 17:16:10,764 - DEBUG - VM ctest-TestBasicPolicy-33132690-90113814 ID is f4496135-753b-43dd-b760-611a52fa454c 2026-04-03 17:16:10,788 - DEBUG - VM ctest-TestBasicPolicy-33132690-90113814 launched on Node an-jenkins-deploy-platform-ansible-os-5589-2 2026-04-03 17:16:10,862 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/f4496135-753b-43dd-b760-611a52fa454c 2026-04-03 17:16:11,155 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/f4496135-753b-43dd-b760-611a52fa454c 2026-04-03 17:16:11,195 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/9b7430df-ac64-4005-a0ee-474a4f66aff1 2026-04-03 17:16:14,373 - 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 1025ms') 2026-04-03 17:16:14,373 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 failed! 2026-04-03 17:16:14,388 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is 66.222.115.1 and allocation pool is NOT set 2026-04-03 17:16:18,477 - 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') 2026-04-03 17:16:18,478 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 failed! 2026-04-03 17:16:18,490 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is 66.222.115.1 and allocation pool is NOT set 2026-04-03 17:16:22,568 - 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 1016ms') 2026-04-03 17:16:22,568 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 failed! 2026-04-03 17:16:22,582 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is 66.222.115.1 and allocation pool is NOT set 2026-04-03 17:16:26,659 - 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 1020ms') 2026-04-03 17:16:26,659 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 failed! 2026-04-03 17:16:26,675 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is 66.222.115.1 and allocation pool is NOT set 2026-04-03 17:16:30,761 - 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 1021ms') 2026-04-03 17:16:30,761 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 failed! 2026-04-03 17:16:30,779 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is 66.222.115.1 and allocation pool is NOT set 2026-04-03 17:16:34,861 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2026-04-03 17:16:34,861 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 failed! 2026-04-03 17:16:34,877 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is 66.222.115.1 and allocation pool is NOT set 2026-04-03 17:16:38,953 - 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 1008ms') 2026-04-03 17:16:38,953 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 failed! 2026-04-03 17:16:38,970 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33132690:ctest-vn-27857562 is 66.222.115.1 and allocation pool is NOT set 2026-04-03 17:16:43,042 - 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=11.2 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1014ms\r\nrtt min/avg/max/mdev = 11.203/11.203/11.203/0.000 ms') 2026-04-03 17:16:43,042 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-90113814 passed 2026-04-03 17:16:43,113 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:16:43,113 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-90113814, IP 66.222.115.3, Port 22 2026-04-03 17:16:43,178 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-04-03 17:16:43,296 - DEBUG - VM ctest-TestBasicPolicy-33132690-90113814 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-03 17:16:48,297 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:16:48,297 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-90113814, IP 66.222.115.3, Port 22 2026-04-03 17:16:48,352 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-04-03 17:16:48,436 - DEBUG - VM ctest-TestBasicPolicy-33132690-90113814 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-03 17:16:53,436 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:16:53,437 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-90113814, IP 66.222.115.3, Port 22 2026-04-03 17:16:53,492 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-04-03 17:16:53,577 - DEBUG - VM ctest-TestBasicPolicy-33132690-90113814 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-03 17:16:58,578 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:16:58,578 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-90113814, IP 66.222.115.3, Port 22 2026-04-03 17:16:58,646 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-04-03 17:16:58,727 - DEBUG - VM ctest-TestBasicPolicy-33132690-90113814 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-03 17:17:03,728 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:17:03,728 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-90113814, IP 66.222.115.3, Port 22 2026-04-03 17:17:03,908 - DEBUG - VM ctest-TestBasicPolicy-33132690-90113814 is ready for SSH connections 2026-04-03 17:17:03,908 - INFO - Waiting for VM ctest-TestBasicPolicy-33132690-15631768 to be up.. 2026-04-03 17:17:03,983 - DEBUG - VM is in ACTIVE state now 2026-04-03 17:17:03,983 - INFO - VM name : ctest-TestBasicPolicy-33132690-15631768 2026-04-03 17:17:04,059 - DEBUG - VM ctest-TestBasicPolicy-33132690-15631768 ID is 31edcad8-6f3e-42fb-a1c4-0f34bf045357 2026-04-03 17:17:04,060 - DEBUG - VM ctest-TestBasicPolicy-33132690-15631768 launched on Node an-jenkins-deploy-platform-ansible-os-5589-1 2026-04-03 17:17:04,141 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/31edcad8-6f3e-42fb-a1c4-0f34bf045357 2026-04-03 17:17:04,154 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/098d670a-0f5b-476b-912a-05c0227c4a25 2026-04-03 17:17:05,317 - 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.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.91 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 = 2.911/5.188/7.465/2.277 ms') 2026-04-03 17:17:05,318 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33132690-15631768 passed 2026-04-03 17:17:05,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:17:05,390 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-15631768, IP 13.204.4.3, Port 22 2026-04-03 17:17:05,461 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-04-03 17:17:05,553 - DEBUG - VM ctest-TestBasicPolicy-33132690-15631768 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-03 17:17:10,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:17:10,553 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-15631768, IP 13.204.4.3, Port 22 2026-04-03 17:17:10,621 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-04-03 17:17:10,729 - DEBUG - VM ctest-TestBasicPolicy-33132690-15631768 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-03 17:17:15,730 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:17:15,730 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33132690-15631768, IP 13.204.4.3, Port 22 2026-04-03 17:17:15,897 - DEBUG - VM ctest-TestBasicPolicy-33132690-15631768 is ready for SSH connections 2026-04-03 17:17:15,897 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:17:15,897 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 13.204.4.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.240, gateway password: c0ntrail123 2026-04-03 17:17:15,897 - DEBUG - ping -s 56 -c 3 -W 1 13.204.4.3 2026-04-03 17:17:55,822 - DEBUG - PING 13.204.4.3 (13.204.4.3) 56(84) bytes of data. 64 bytes from 13.204.4.3: icmp_req=1 ttl=63 time=9.26 ms 64 bytes from 13.204.4.3: icmp_req=2 ttl=63 time=1.28 ms 64 bytes from 13.204.4.3: icmp_req=3 ttl=63 time=1.18 ms --- 13.204.4.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.186/3.913/9.269/3.787 ms 2026-04-03 17:17:55,822 - INFO - Ping to IP 13.204.4.3 from VM ctest-TestBasicPolicy-33132690-90113814 passed 2026-04-03 17:17:56,023 - DEBUG - Policy Update Response {"network-policy": {"uuid": "00670e80-a53c-48e0-8dcd-a3b4931e06da", "href": "http://10.0.0.141:8082/network-policy/00670e80-a53c-48e0-8dcd-a3b4931e06da"}} 2026-04-03 17:17:56,023 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-03 17:17:56,024 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 13.204.4.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.240, gateway password: c0ntrail123 2026-04-03 17:17:56,024 - DEBUG - ping -s 56 -c 3 -W 1 13.204.4.3 2026-04-03 17:17:59,461 - DEBUG - PING 13.204.4.3 (13.204.4.3) 56(84) bytes of data. 64 bytes from 13.204.4.3: icmp_req=1 ttl=63 time=2.53 ms --- 13.204.4.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 2.530/2.530/2.530/0.000 ms 2026-04-03 17:17:59,462 - WARNING - Ping to IP 13.204.4.3 from VM ctest-TestBasicPolicy-33132690-90113814 failed 2026-04-03 17:17:59,462 - INFO - Deleting VM ctest-TestBasicPolicy-33132690-15631768 2026-04-03 17:17:59,529 - INFO - Deleting VM ctest-TestBasicPolicy-33132690-90113814 2026-04-03 17:17:59,948 - INFO - Deleted policy ctest-policy-allow-all-02938322 2026-04-03 17:17:59,949 - INFO - Deleting VN ctest-vn-45133926 2026-04-03 17:18:00,004 - DEBUG - VN a5087802-9032-4603-af78-0fe10bcfa432 still in use: Unable to complete operation on network a5087802-9032-4603-af78-0fe10bcfa432. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3b3b2422-a193-4768-b7de-8ce652b64be4'] 2026-04-03 17:18:00,005 - WARNING - Deleting VN ctest-vn-45133926 failed..Will retry 2026-04-03 17:18:02,179 - DEBUG - Response for deleting network () 2026-04-03 17:18:02,179 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c653a3a4-a1f7-400e-91bc-314943901e01 2026-04-03 17:18:02,185 - DEBUG - Response Code: 404 2026-04-03 17:18:02,185 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:18:02,191 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:18:02,251 - DEBUG - Requesting: http://10.0.0.22:8082/project/226b1340-95ff-42a0-b21a-265df7874a16 2026-04-03 17:18:02,354 - INFO - Validated that VN ctest-vn-45133926 is not found in API Server 2026-04-03 17:18:02,365 - DEBUG - VN ctest-vn-45133926 is not present in Agent 10.0.0.19 2026-04-03 17:18:02,377 - DEBUG - VN ctest-vn-45133926 is not present in Agent 10.0.0.240 2026-04-03 17:18:02,377 - INFO - Validated that VN ctest-vn-45133926 is not in any agent 2026-04-03 17:18:02,408 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45133926 info 2026-04-03 17:18:02,408 - INFO - Deleting VN ctest-vn-27857562 2026-04-03 17:18:02,594 - DEBUG - Response for deleting network () 2026-04-03 17:18:02,594 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/83672ba0-705e-43a9-81af-317c047ec336 2026-04-03 17:18:02,601 - DEBUG - Response Code: 404 2026-04-03 17:18:02,601 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:18:02,610 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:18:02,629 - DEBUG - Requesting: http://10.0.0.22:8082/project/226b1340-95ff-42a0-b21a-265df7874a16 2026-04-03 17:18:02,722 - INFO - Validated that VN ctest-vn-27857562 is not found in API Server 2026-04-03 17:18:02,735 - DEBUG - VN ctest-vn-27857562 is not present in Agent 10.0.0.19 2026-04-03 17:18:02,745 - DEBUG - VN ctest-vn-27857562 is not present in Agent 10.0.0.240 2026-04-03 17:18:02,745 - INFO - Validated that VN ctest-vn-27857562 is not in any agent 2026-04-03 17:18:02,778 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27857562 info 2026-04-03 17:18:04,072 - DEBUG - No XMPP flaps were noticed during the test
2026-04-03 17:18:04,072 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:08]
2026-04-03 17:18:04,073 - INFO - -------------------------------------------------------------------------------- 2026-04-03 17:18:04,779 - INFO - Deleted project: ctest-TestBasicPolicy-33132690, ID : 226b1340-95ff-42a0-b21a-265df7874a16