2026-02-20 02:40:17,913 - INFO - Domain Default found not creating
2026-02-20 02:40:18,103 - INFO - Project ctest-TestBasicPolicy-21660796 not found, creating it
2026-02-20 02:40:18,580 - INFO - Created Project:ctest-TestBasicPolicy-21660796, ID : 0dc4b81b-9ef9-4b1c-b5a7-bfcc6f377789
2026-02-20 02:40:20,075 - INFO - ================================================================================
2026-02-20 02:40:20,075 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-20 02:40:20,075 - 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-20 02:40:20,331 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2026-02-20 02:40:20,331 - INFO - Initial checks done. Running the testcase now
2026-02-20 02:40:20,331 - INFO -
2026-02-20 02:40:20,873 - DEBUG - Response for create_network : {'network': {'id': '96a2e4de-11ac-4830-90fa-be94f29c72e1', 'name': 'ctest-vn-81668869', 'tenant_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'project_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-vn-81668869'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 02:40:21,044 - DEBUG - Response for create_subnet : {'subnet': {'id': '01094c38-11d2-453d-b369-191745199704', 'name': '', 'tenant_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'network_id': '96a2e4de-11ac-4830-90fa-be94f29c72e1', 'ip_version': 4, 'cidr': '146.199.146.64/26', 'allocation_pools': [{'start': '146.199.146.66', 'end': '146.199.146.126'}], 'gateway_ip': '146.199.146.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.199.146.66', 'tags': [], 'project_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789'}}
2026-02-20 02:40:21,060 - INFO - Created VN ctest-vn-81668869
2026-02-20 02:40:21,110 - DEBUG - VN ctest-vn-81668869 UUID is 96a2e4de-11ac-4830-90fa-be94f29c72e1
2026-02-20 02:40:21,444 - DEBUG - Response for create_network : {'network': {'id': 'e15a14b9-edc5-419d-a07f-d7d91589fc9d', 'name': 'ctest-vn-90798908', 'tenant_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'project_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-vn-90798908'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 02:40:21,628 - DEBUG - Response for create_subnet : {'subnet': {'id': '270be17e-5696-434a-919c-28cf707ea89b', 'name': '', 'tenant_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'network_id': 'e15a14b9-edc5-419d-a07f-d7d91589fc9d', 'ip_version': 4, 'cidr': '134.63.206.64/26', 'allocation_pools': [{'start': '134.63.206.66', 'end': '134.63.206.126'}], 'gateway_ip': '134.63.206.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.63.206.66', 'tags': [], 'project_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789'}}
2026-02-20 02:40:21,645 - INFO - Created VN ctest-vn-90798908
2026-02-20 02:40:21,698 - DEBUG - VN ctest-vn-90798908 UUID is e15a14b9-edc5-419d-a07f-d7d91589fc9d
2026-02-20 02:40:21,815 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-81668869, 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-21660796:ctest-vn-90798908, 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-20 02:40:22,107 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96a2e4de-11ac-4830-90fa-be94f29c72e1', 'name': 'ctest-vn-81668869', 'tenant_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'project_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01094c38-11d2-453d-b369-191745199704'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-vn-81668869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-policy-allow-all-58599905']], 'subnet_ipam': [{'subnet_cidr': '146.199.146.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 02:40:22,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e15a14b9-edc5-419d-a07f-d7d91589fc9d', 'name': 'ctest-vn-90798908', 'tenant_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'project_id': '0dc4b81b9ef94b1cb5a7bfcc6f377789', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['270be17e-5696-434a-919c-28cf707ea89b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-vn-90798908'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-policy-allow-all-58599905']], 'subnet_ipam': [{'subnet_cidr': '134.63.206.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 02:40:22,486 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-02-20 02:40:22,786 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-02-20 02:40:22,826 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b
2026-02-20 02:40:22,840 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dc4b81b-9ef9-4b1c-b5a7-bfcc6f377789
2026-02-20 02:40:22,909 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/96a2e4de-11ac-4830-90fa-be94f29c72e1
2026-02-20 02:40:22,920 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/96a2e4de-11ac-4830-90fa-be94f29c72e1
2026-02-20 02:40:22,929 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24b6cfd2-a282-434d-a389-71b6d8cd1500
2026-02-20 02:40:22,936 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24b6cfd2-a282-434d-a389-71b6d8cd1500
2026-02-20 02:40:22,942 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b5152092-ba9e-4bc8-bc35-6d5078657052
2026-02-20 02:40:22,948 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 02:40:22,948 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/96a2e4de-11ac-4830-90fa-be94f29c72e1
2026-02-20 02:40:22,955 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24b6cfd2-a282-434d-a389-71b6d8cd1500
2026-02-20 02:40:22,969 - INFO - Verified VN network id 12 for VN 96a2e4de-11ac-4830-90fa-be94f29c72e1
2026-02-20 02:40:22,969 - INFO - Verifications in API Server for VN ctest-vn-81668869 passed
2026-02-20 02:40:22,969 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/96a2e4de-11ac-4830-90fa-be94f29c72e1
2026-02-20 02:40:22,979 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24b6cfd2-a282-434d-a389-71b6d8cd1500
2026-02-20 02:40:22,985 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24b6cfd2-a282-434d-a389-71b6d8cd1500
2026-02-20 02:40:22,990 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b5152092-ba9e-4bc8-bc35-6d5078657052
2026-02-20 02:40:23,000 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-81668869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21660796', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10854489694346692656', 'uuid-lslong': '10446871832574063329'}, 'enable': 'true', 'created': '2026-02-20T02:40:20', 'last-modified': '2026-02-20T02:40:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917545'}
2026-02-20 02:40:23,007 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 02:40:23,007 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81668869 passed
2026-02-20 02:40:23,008 - DEBUG - ====Verifying policy data for ctest-vn-81668869 in API_Server ======
2026-02-20 02:40:23,008 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-02-20 02:40:23,012 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b
2026-02-20 02:40:23,021 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dc4b81b-9ef9-4b1c-b5a7-bfcc6f377789
2026-02-20 02:40:23,095 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/96a2e4de-11ac-4830-90fa-be94f29c72e1
2026-02-20 02:40:23,104 - DEBUG - ==>Verifying data for policy with id: abf3fbe8-a253-4b0c-9f74-ed6c6ae8c1b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-policy-allow-all-58599905']
2026-02-20 02:40:23,104 - INFO - VN ctest-vn-81668869 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 02:40:23,104 - DEBUG - Verifying the vn in opserver
2026-02-20 02:40:23,104 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-81668869 virtual network link through opserver 10.0.0.27
2026-02-20 02:40:23,104 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-02-20 02:40:23,419 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-02-20 02:40:23,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-81668869', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-81668869?flat'}
2026-02-20 02:40:23,477 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-81668869 is found in opserver
2026-02-20 02:40:23,485 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 02:40:23,489 - DEBUG - VRF ids for VN ctest-vn-81668869: {}
2026-02-20 02:40:23,489 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-02-20 02:40:23,494 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b
2026-02-20 02:40:23,503 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dc4b81b-9ef9-4b1c-b5a7-bfcc6f377789
2026-02-20 02:40:23,573 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e15a14b9-edc5-419d-a07f-d7d91589fc9d
2026-02-20 02:40:23,584 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e15a14b9-edc5-419d-a07f-d7d91589fc9d
2026-02-20 02:40:23,592 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69316c7e-a1cb-41e8-a255-76b5d8902296
2026-02-20 02:40:23,598 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69316c7e-a1cb-41e8-a255-76b5d8902296
2026-02-20 02:40:23,604 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/351080ca-2ec9-4b5f-9e90-94a8804555be
2026-02-20 02:40:23,609 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 02:40:23,609 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e15a14b9-edc5-419d-a07f-d7d91589fc9d
2026-02-20 02:40:23,617 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69316c7e-a1cb-41e8-a255-76b5d8902296
2026-02-20 02:40:23,629 - INFO - Verified VN network id 13 for VN e15a14b9-edc5-419d-a07f-d7d91589fc9d
2026-02-20 02:40:23,629 - INFO - Verifications in API Server for VN ctest-vn-90798908 passed
2026-02-20 02:40:23,629 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e15a14b9-edc5-419d-a07f-d7d91589fc9d
2026-02-20 02:40:23,637 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69316c7e-a1cb-41e8-a255-76b5d8902296
2026-02-20 02:40:23,642 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/69316c7e-a1cb-41e8-a255-76b5d8902296
2026-02-20 02:40:23,647 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/351080ca-2ec9-4b5f-9e90-94a8804555be
2026-02-20 02:40:23,657 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-90798908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21660796', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16238314195228377501', 'uuid-lslong': '11565199695479962781'}, 'enable': 'true', 'created': '2026-02-20T02:40:21', 'last-modified': '2026-02-20T02:40:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349846'}
2026-02-20 02:40:23,663 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 02:40:23,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90798908 passed
2026-02-20 02:40:23,663 - DEBUG - ====Verifying policy data for ctest-vn-90798908 in API_Server ======
2026-02-20 02:40:23,663 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-02-20 02:40:23,672 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b
2026-02-20 02:40:23,683 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dc4b81b-9ef9-4b1c-b5a7-bfcc6f377789
2026-02-20 02:40:23,751 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e15a14b9-edc5-419d-a07f-d7d91589fc9d
2026-02-20 02:40:23,760 - DEBUG - ==>Verifying data for policy with id: abf3fbe8-a253-4b0c-9f74-ed6c6ae8c1b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-21660796', 'ctest-policy-allow-all-58599905']
2026-02-20 02:40:23,760 - INFO - VN ctest-vn-90798908 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 02:40:23,760 - DEBUG - Verifying the vn in opserver
2026-02-20 02:40:23,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-90798908 virtual network link through opserver 10.0.0.27
2026-02-20 02:40:23,760 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-02-20 02:40:23,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-90798908', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-90798908?flat'}
2026-02-20 02:40:23,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21660796:ctest-vn-90798908 is found in opserver
2026-02-20 02:40:23,783 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 02:40:23,787 - DEBUG - VRF ids for VN ctest-vn-90798908: {}
2026-02-20 02:40:23,844 - DEBUG - Services list from nova: [