2026-04-17 09:17:05,491 - INFO - Domain Default found not creating
2026-04-17 09:17:05,678 - INFO - Project ctest-TestBasicPolicy-97900753 not found, creating it
2026-04-17 09:17:06,162 - INFO - Created Project:ctest-TestBasicPolicy-97900753, ID : 6f0a4168-bb54-4414-9fc7-1d010747ccca
2026-04-17 09:17:07,721 - INFO - ================================================================================
2026-04-17 09:17:07,721 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-17 09:17:07,721 - 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-17 09:17:07,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-04-17 09:17:07,980 - INFO - Initial checks done. Running the testcase now
2026-04-17 09:17:07,981 - INFO -
2026-04-17 09:17:08,849 - DEBUG - Response for create_network : {'network': {'id': 'a79f8f3d-549e-43f3-917f-f1c4c50b6c2a', 'name': 'ctest-vn-07169164', 'tenant_id': '6f0a4168bb5444149fc71d010747ccca', 'project_id': '6f0a4168bb5444149fc71d010747ccca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-vn-07169164'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:17:09,028 - DEBUG - Response for create_subnet : {'subnet': {'id': '92505c57-e166-4189-b730-d7dcc0ee4455', 'name': '', 'tenant_id': '6f0a4168bb5444149fc71d010747ccca', 'network_id': 'a79f8f3d-549e-43f3-917f-f1c4c50b6c2a', 'ip_version': 4, 'cidr': '91.174.6.128/26', 'allocation_pools': [{'start': '91.174.6.130', 'end': '91.174.6.190'}], 'gateway_ip': '91.174.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.174.6.130', 'tags': [], 'project_id': '6f0a4168bb5444149fc71d010747ccca'}}
2026-04-17 09:17:09,048 - INFO - Created VN ctest-vn-07169164
2026-04-17 09:17:09,102 - DEBUG - VN ctest-vn-07169164 UUID is a79f8f3d-549e-43f3-917f-f1c4c50b6c2a
2026-04-17 09:17:09,394 - DEBUG - Response for create_network : {'network': {'id': 'ce71b289-22ef-415a-aa6f-cf122830419e', 'name': 'ctest-vn-79710132', 'tenant_id': '6f0a4168bb5444149fc71d010747ccca', 'project_id': '6f0a4168bb5444149fc71d010747ccca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-vn-79710132'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:17:09,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe3d7702-bc52-4955-87c6-eabd2cd47efb', 'name': '', 'tenant_id': '6f0a4168bb5444149fc71d010747ccca', 'network_id': 'ce71b289-22ef-415a-aa6f-cf122830419e', 'ip_version': 4, 'cidr': '70.178.182.128/26', 'allocation_pools': [{'start': '70.178.182.130', 'end': '70.178.182.190'}], 'gateway_ip': '70.178.182.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.178.182.130', 'tags': [], 'project_id': '6f0a4168bb5444149fc71d010747ccca'}}
2026-04-17 09:17:09,561 - INFO - Created VN ctest-vn-79710132
2026-04-17 09:17:09,614 - DEBUG - VN ctest-vn-79710132 UUID is ce71b289-22ef-415a-aa6f-cf122830419e
2026-04-17 09:17:09,743 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-07169164, 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-97900753:ctest-vn-79710132, 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-17 09:17:10,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a79f8f3d-549e-43f3-917f-f1c4c50b6c2a', 'name': 'ctest-vn-07169164', 'tenant_id': '6f0a4168bb5444149fc71d010747ccca', 'project_id': '6f0a4168bb5444149fc71d010747ccca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92505c57-e166-4189-b730-d7dcc0ee4455'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-vn-07169164'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-policy-allow-all-94983336']], 'subnet_ipam': [{'subnet_cidr': '91.174.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:17:10,273 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce71b289-22ef-415a-aa6f-cf122830419e', 'name': 'ctest-vn-79710132', 'tenant_id': '6f0a4168bb5444149fc71d010747ccca', 'project_id': '6f0a4168bb5444149fc71d010747ccca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe3d7702-bc52-4955-87c6-eabd2cd47efb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-vn-79710132'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-policy-allow-all-94983336']], 'subnet_ipam': [{'subnet_cidr': '70.178.182.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 09:17:10,442 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 09:17:10,743 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 09:17:10,780 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0
2026-04-17 09:17:10,792 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f0a4168-bb54-4414-9fc7-1d010747ccca
2026-04-17 09:17:10,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a79f8f3d-549e-43f3-917f-f1c4c50b6c2a
2026-04-17 09:17:10,881 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a79f8f3d-549e-43f3-917f-f1c4c50b6c2a
2026-04-17 09:17:10,891 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/418a8d65-0d3b-4c69-b477-9dd0f91f483d
2026-04-17 09:17:10,899 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/418a8d65-0d3b-4c69-b477-9dd0f91f483d
2026-04-17 09:17:10,907 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f15950c4-ef93-48c4-b4d3-30eb8a0de837
2026-04-17 09:17:10,914 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 09:17:10,914 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a79f8f3d-549e-43f3-917f-f1c4c50b6c2a
2026-04-17 09:17:10,922 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/418a8d65-0d3b-4c69-b477-9dd0f91f483d
2026-04-17 09:17:10,937 - INFO - Verified VN network id 11 for VN a79f8f3d-549e-43f3-917f-f1c4c50b6c2a
2026-04-17 09:17:10,937 - INFO - Verifications in API Server for VN ctest-vn-07169164 passed
2026-04-17 09:17:10,937 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a79f8f3d-549e-43f3-917f-f1c4c50b6c2a
2026-04-17 09:17:10,947 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/418a8d65-0d3b-4c69-b477-9dd0f91f483d
2026-04-17 09:17:10,954 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/418a8d65-0d3b-4c69-b477-9dd0f91f483d
2026-04-17 09:17:10,962 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f15950c4-ef93-48c4-b4d3-30eb8a0de837
2026-04-17 09:17:10,974 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-07169164', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97900753', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12078530219206394867', 'uuid-lslong': '10484364284963548202'}, 'enable': 'true', 'created': '2026-04-17T09:17:08', 'last-modified': '2026-04-17T09:17:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956410'}
2026-04-17 09:17:10,980 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 09:17:10,980 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07169164 passed
2026-04-17 09:17:10,980 - DEBUG - ====Verifying policy data for ctest-vn-07169164 in API_Server ======
2026-04-17 09:17:10,980 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 09:17:10,986 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0
2026-04-17 09:17:10,996 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f0a4168-bb54-4414-9fc7-1d010747ccca
2026-04-17 09:17:11,067 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a79f8f3d-549e-43f3-917f-f1c4c50b6c2a
2026-04-17 09:17:11,076 - DEBUG - ==>Verifying data for policy with id: 840dde44-7559-4cb4-9dfd-d8eb9ff1c133, fqn: ['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-policy-allow-all-94983336']
2026-04-17 09:17:11,076 - INFO - VN ctest-vn-07169164 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 09:17:11,076 - DEBUG - Verifying the vn in opserver
2026-04-17 09:17:11,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-07169164 virtual network link through opserver 10.0.0.50
2026-04-17 09:17:11,077 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-17 09:17:11,395 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-17 09:17:11,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-07169164', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-07169164?flat'}
2026-04-17 09:17:11,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-07169164 is found in opserver
2026-04-17 09:17:11,477 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 09:17:11,481 - DEBUG - VRF ids for VN ctest-vn-07169164: {}
2026-04-17 09:17:11,481 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 09:17:11,487 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0
2026-04-17 09:17:11,498 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f0a4168-bb54-4414-9fc7-1d010747ccca
2026-04-17 09:17:11,569 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce71b289-22ef-415a-aa6f-cf122830419e
2026-04-17 09:17:11,584 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce71b289-22ef-415a-aa6f-cf122830419e
2026-04-17 09:17:11,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36dadd3-2b21-4f59-8d8d-2a3599e6f1d1
2026-04-17 09:17:11,601 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36dadd3-2b21-4f59-8d8d-2a3599e6f1d1
2026-04-17 09:17:11,609 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c109de7-9f35-4983-a412-a8e0a135de96
2026-04-17 09:17:11,617 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 09:17:11,617 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce71b289-22ef-415a-aa6f-cf122830419e
2026-04-17 09:17:11,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36dadd3-2b21-4f59-8d8d-2a3599e6f1d1
2026-04-17 09:17:11,642 - INFO - Verified VN network id 12 for VN ce71b289-22ef-415a-aa6f-cf122830419e
2026-04-17 09:17:11,642 - INFO - Verifications in API Server for VN ctest-vn-79710132 passed
2026-04-17 09:17:11,642 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce71b289-22ef-415a-aa6f-cf122830419e
2026-04-17 09:17:11,651 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36dadd3-2b21-4f59-8d8d-2a3599e6f1d1
2026-04-17 09:17:11,659 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c36dadd3-2b21-4f59-8d8d-2a3599e6f1d1
2026-04-17 09:17:11,666 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c109de7-9f35-4983-a412-a8e0a135de96
2026-04-17 09:17:11,681 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-79710132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97900753', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14875867346247827802', 'uuid-lslong': '12281262385753244062'}, 'enable': 'true', 'created': '2026-04-17T09:17:09', 'last-modified': '2026-04-17T09:17:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432245'}
2026-04-17 09:17:11,686 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 09:17:11,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79710132 passed
2026-04-17 09:17:11,687 - DEBUG - ====Verifying policy data for ctest-vn-79710132 in API_Server ======
2026-04-17 09:17:11,687 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 09:17:11,693 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0
2026-04-17 09:17:11,703 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f0a4168-bb54-4414-9fc7-1d010747ccca
2026-04-17 09:17:11,775 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce71b289-22ef-415a-aa6f-cf122830419e
2026-04-17 09:17:11,783 - DEBUG - ==>Verifying data for policy with id: 840dde44-7559-4cb4-9dfd-d8eb9ff1c133, fqn: ['default-domain', 'ctest-TestBasicPolicy-97900753', 'ctest-policy-allow-all-94983336']
2026-04-17 09:17:11,784 - INFO - VN ctest-vn-79710132 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 09:17:11,784 - DEBUG - Verifying the vn in opserver
2026-04-17 09:17:11,784 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-79710132 virtual network link through opserver 10.0.0.50
2026-04-17 09:17:11,784 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-17 09:17:11,793 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-79710132', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-79710132?flat'}
2026-04-17 09:17:11,793 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97900753:ctest-vn-79710132 is found in opserver
2026-04-17 09:17:11,804 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 09:17:11,812 - DEBUG - VRF ids for VN ctest-vn-79710132: {}
2026-04-17 09:17:11,881 - DEBUG - Services list from nova: [