2026-02-11 13:39:46,601 - INFO - Domain Default found not creating
2026-02-11 13:39:46,775 - INFO - Project ctest-TestBasicPolicy-51464977 not found, creating it
2026-02-11 13:39:47,257 - INFO - Created Project:ctest-TestBasicPolicy-51464977, ID : 431ac10b-51af-4e95-8ae9-1fd7af5c7a71
2026-02-11 13:39:48,837 - INFO - ================================================================================
2026-02-11 13:39:48,837 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-11 13:39:48,837 - 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-02-11 13:39:49,092 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2026-02-11 13:39:49,092 - INFO - Initial checks done. Running the testcase now
2026-02-11 13:39:49,093 - INFO -
2026-02-11 13:39:49,658 - DEBUG - Response for create_network : {'network': {'id': 'd2298e72-1530-4561-a93b-a7c3fae2b020', 'name': 'ctest-vn-33081962', 'tenant_id': '431ac10b51af4e958ae91fd7af5c7a71', 'project_id': '431ac10b51af4e958ae91fd7af5c7a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-vn-33081962'], 'port_security_enabled': True, 'description': ''}}
2026-02-11 13:39:49,824 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd48d4ee6-bc29-44eb-a5d8-5a24ec3ba8ae', 'name': '', 'tenant_id': '431ac10b51af4e958ae91fd7af5c7a71', 'network_id': 'd2298e72-1530-4561-a93b-a7c3fae2b020', 'ip_version': 4, 'cidr': '99.236.153.0/26', 'allocation_pools': [{'start': '99.236.153.2', 'end': '99.236.153.62'}], 'gateway_ip': '99.236.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.236.153.2', 'tags': [], 'project_id': '431ac10b51af4e958ae91fd7af5c7a71'}}
2026-02-11 13:39:49,841 - INFO - Created VN ctest-vn-33081962
2026-02-11 13:39:49,891 - DEBUG - VN ctest-vn-33081962 UUID is d2298e72-1530-4561-a93b-a7c3fae2b020
2026-02-11 13:39:50,181 - DEBUG - Response for create_network : {'network': {'id': '5f96eb98-c58c-4a5e-8d95-dbaf7e964523', 'name': 'ctest-vn-41697500', 'tenant_id': '431ac10b51af4e958ae91fd7af5c7a71', 'project_id': '431ac10b51af4e958ae91fd7af5c7a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-vn-41697500'], 'port_security_enabled': True, 'description': ''}}
2026-02-11 13:39:50,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '95b7dcbb-6ef6-4f7a-8891-788ee8b1e4b8', 'name': '', 'tenant_id': '431ac10b51af4e958ae91fd7af5c7a71', 'network_id': '5f96eb98-c58c-4a5e-8d95-dbaf7e964523', 'ip_version': 4, 'cidr': '36.154.88.0/26', 'allocation_pools': [{'start': '36.154.88.2', 'end': '36.154.88.62'}], 'gateway_ip': '36.154.88.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.154.88.2', 'tags': [], 'project_id': '431ac10b51af4e958ae91fd7af5c7a71'}}
2026-02-11 13:39:50,411 - INFO - Created VN ctest-vn-41697500
2026-02-11 13:39:50,463 - DEBUG - VN ctest-vn-41697500 UUID is 5f96eb98-c58c-4a5e-8d95-dbaf7e964523
2026-02-11 13:39:50,574 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-33081962, 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-51464977:ctest-vn-41697500, 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-02-11 13:39:50,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2298e72-1530-4561-a93b-a7c3fae2b020', 'name': 'ctest-vn-33081962', 'tenant_id': '431ac10b51af4e958ae91fd7af5c7a71', 'project_id': '431ac10b51af4e958ae91fd7af5c7a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d48d4ee6-bc29-44eb-a5d8-5a24ec3ba8ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-vn-33081962'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-policy-allow-all-25058068']], 'subnet_ipam': [{'subnet_cidr': '99.236.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-11 13:39:51,165 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f96eb98-c58c-4a5e-8d95-dbaf7e964523', 'name': 'ctest-vn-41697500', 'tenant_id': '431ac10b51af4e958ae91fd7af5c7a71', 'project_id': '431ac10b51af4e958ae91fd7af5c7a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95b7dcbb-6ef6-4f7a-8891-788ee8b1e4b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-vn-41697500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-policy-allow-all-25058068']], 'subnet_ipam': [{'subnet_cidr': '36.154.88.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-11 13:39:51,311 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 13:39:51,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 13:39:51,643 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629
2026-02-11 13:39:51,656 - DEBUG - Requesting: http://10.0.0.38:8082/project/431ac10b-51af-4e95-8ae9-1fd7af5c7a71
2026-02-11 13:39:51,737 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2298e72-1530-4561-a93b-a7c3fae2b020
2026-02-11 13:39:51,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2298e72-1530-4561-a93b-a7c3fae2b020
2026-02-11 13:39:51,762 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5299af6-fd85-4fe9-8ee3-e7c97ed964be
2026-02-11 13:39:51,771 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5299af6-fd85-4fe9-8ee3-e7c97ed964be
2026-02-11 13:39:51,779 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b30b6df0-5b8d-4288-8958-02757a04e013
2026-02-11 13:39:51,788 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-11 13:39:51,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2298e72-1530-4561-a93b-a7c3fae2b020
2026-02-11 13:39:51,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5299af6-fd85-4fe9-8ee3-e7c97ed964be
2026-02-11 13:39:51,817 - INFO - Verified VN network id 12 for VN d2298e72-1530-4561-a93b-a7c3fae2b020
2026-02-11 13:39:51,817 - INFO - Verifications in API Server for VN ctest-vn-33081962 passed
2026-02-11 13:39:51,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2298e72-1530-4561-a93b-a7c3fae2b020
2026-02-11 13:39:51,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5299af6-fd85-4fe9-8ee3-e7c97ed964be
2026-02-11 13:39:51,837 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a5299af6-fd85-4fe9-8ee3-e7c97ed964be
2026-02-11 13:39:51,846 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b30b6df0-5b8d-4288-8958-02757a04e013
2026-02-11 13:39:51,860 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-33081962', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51464977', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15143791842642904417', 'uuid-lslong': '12194524876205371424'}, 'enable': 'true', 'created': '2026-02-11T13:39:49', 'last-modified': '2026-02-11T13:39:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014671'}
2026-02-11 13:39:51,867 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-11 13:39:51,867 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33081962 passed
2026-02-11 13:39:51,867 - DEBUG - ====Verifying policy data for ctest-vn-33081962 in API_Server ======
2026-02-11 13:39:51,867 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 13:39:51,872 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629
2026-02-11 13:39:51,883 - DEBUG - Requesting: http://10.0.0.38:8082/project/431ac10b-51af-4e95-8ae9-1fd7af5c7a71
2026-02-11 13:39:51,955 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2298e72-1530-4561-a93b-a7c3fae2b020
2026-02-11 13:39:51,964 - DEBUG - ==>Verifying data for policy with id: 656fe5c9-8219-4aea-a9fd-af204daeedf9, fqn: ['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-policy-allow-all-25058068']
2026-02-11 13:39:51,964 - INFO - VN ctest-vn-33081962 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-11 13:39:51,964 - DEBUG - Verifying the vn in opserver
2026-02-11 13:39:51,964 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-33081962 virtual network link through opserver 10.0.0.38
2026-02-11 13:39:51,964 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-11 13:39:52,267 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-11 13:39:52,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-33081962', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-33081962?flat'}
2026-02-11 13:39:52,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-33081962 is found in opserver
2026-02-11 13:39:52,342 - DEBUG - Do not have enough data to verify VN in agent
2026-02-11 13:39:52,346 - DEBUG - VRF ids for VN ctest-vn-33081962: {}
2026-02-11 13:39:52,347 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 13:39:52,352 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629
2026-02-11 13:39:52,364 - DEBUG - Requesting: http://10.0.0.38:8082/project/431ac10b-51af-4e95-8ae9-1fd7af5c7a71
2026-02-11 13:39:52,434 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f96eb98-c58c-4a5e-8d95-dbaf7e964523
2026-02-11 13:39:52,449 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f96eb98-c58c-4a5e-8d95-dbaf7e964523
2026-02-11 13:39:52,460 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3493d853-b51b-4962-8c90-e0342b2dfed4
2026-02-11 13:39:52,469 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3493d853-b51b-4962-8c90-e0342b2dfed4
2026-02-11 13:39:52,478 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e3d058ee-599d-405c-88b6-8d2380c25e0d
2026-02-11 13:39:52,485 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-11 13:39:52,485 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f96eb98-c58c-4a5e-8d95-dbaf7e964523
2026-02-11 13:39:52,494 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3493d853-b51b-4962-8c90-e0342b2dfed4
2026-02-11 13:39:52,509 - INFO - Verified VN network id 13 for VN 5f96eb98-c58c-4a5e-8d95-dbaf7e964523
2026-02-11 13:39:52,509 - INFO - Verifications in API Server for VN ctest-vn-41697500 passed
2026-02-11 13:39:52,509 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f96eb98-c58c-4a5e-8d95-dbaf7e964523
2026-02-11 13:39:52,518 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3493d853-b51b-4962-8c90-e0342b2dfed4
2026-02-11 13:39:52,525 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3493d853-b51b-4962-8c90-e0342b2dfed4
2026-02-11 13:39:52,533 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e3d058ee-599d-405c-88b6-8d2380c25e0d
2026-02-11 13:39:52,545 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-41697500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51464977', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6887951721491614302', 'uuid-lslong': '10202302077667263779'}, 'enable': 'true', 'created': '2026-02-11T13:39:50', 'last-modified': '2026-02-11T13:39:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441774'}
2026-02-11 13:39:52,551 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-11 13:39:52,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41697500 passed
2026-02-11 13:39:52,551 - DEBUG - ====Verifying policy data for ctest-vn-41697500 in API_Server ======
2026-02-11 13:39:52,551 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 13:39:52,557 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629
2026-02-11 13:39:52,568 - DEBUG - Requesting: http://10.0.0.38:8082/project/431ac10b-51af-4e95-8ae9-1fd7af5c7a71
2026-02-11 13:39:52,638 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f96eb98-c58c-4a5e-8d95-dbaf7e964523
2026-02-11 13:39:52,647 - DEBUG - ==>Verifying data for policy with id: 656fe5c9-8219-4aea-a9fd-af204daeedf9, fqn: ['default-domain', 'ctest-TestBasicPolicy-51464977', 'ctest-policy-allow-all-25058068']
2026-02-11 13:39:52,647 - INFO - VN ctest-vn-41697500 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-11 13:39:52,647 - DEBUG - Verifying the vn in opserver
2026-02-11 13:39:52,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-41697500 virtual network link through opserver 10.0.0.38
2026-02-11 13:39:52,648 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-11 13:39:52,657 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-41697500', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-41697500?flat'}
2026-02-11 13:39:52,657 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51464977:ctest-vn-41697500 is found in opserver
2026-02-11 13:39:52,666 - DEBUG - Do not have enough data to verify VN in agent
2026-02-11 13:39:52,672 - DEBUG - VRF ids for VN ctest-vn-41697500: {}
2026-02-11 13:39:52,740 - DEBUG - Services list from nova: [