2026-04-02 02:19:06,545 - INFO - Domain Default found not creating
2026-04-02 02:19:06,725 - INFO - Project ctest-TestBasicPolicy-67876151 not found, creating it
2026-04-02 02:19:07,204 - INFO - Created Project:ctest-TestBasicPolicy-67876151, ID : fd4d9d2a-37d2-4bfd-9e53-1eb1e982f0db
2026-04-02 02:19:08,692 - INFO - ================================================================================
2026-04-02 02:19:08,693 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-02 02:19:08,693 - 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-02 02:19:08,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with
2026-04-02 02:19:08,954 - INFO - Initial checks done. Running the testcase now
2026-04-02 02:19:08,954 - INFO -
2026-04-02 02:19:09,502 - DEBUG - Response for create_network : {'network': {'id': '33417bd4-91e4-4fbc-b5bb-8a82a28dceb3', 'name': 'ctest-vn-75399393', 'tenant_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'project_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-vn-75399393'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:19:09,677 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb49c9e6-b959-4ad5-988c-7cd1998a57ae', 'name': '', 'tenant_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'network_id': '33417bd4-91e4-4fbc-b5bb-8a82a28dceb3', 'ip_version': 4, 'cidr': '217.188.161.192/26', 'allocation_pools': [{'start': '217.188.161.194', 'end': '217.188.161.254'}], 'gateway_ip': '217.188.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.188.161.194', 'tags': [], 'project_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db'}}
2026-04-02 02:19:09,695 - INFO - Created VN ctest-vn-75399393
2026-04-02 02:19:09,748 - DEBUG - VN ctest-vn-75399393 UUID is 33417bd4-91e4-4fbc-b5bb-8a82a28dceb3
2026-04-02 02:19:10,059 - DEBUG - Response for create_network : {'network': {'id': '267b7f94-f7bb-4863-ae49-29d779431695', 'name': 'ctest-vn-53040500', 'tenant_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'project_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-vn-53040500'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:19:10,263 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d4de736-3fe1-4c12-9565-5c0c88c10cf5', 'name': '', 'tenant_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'network_id': '267b7f94-f7bb-4863-ae49-29d779431695', 'ip_version': 4, 'cidr': '49.206.248.0/26', 'allocation_pools': [{'start': '49.206.248.2', 'end': '49.206.248.62'}], 'gateway_ip': '49.206.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.206.248.2', 'tags': [], 'project_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db'}}
2026-04-02 02:19:10,288 - INFO - Created VN ctest-vn-53040500
2026-04-02 02:19:10,341 - DEBUG - VN ctest-vn-53040500 UUID is 267b7f94-f7bb-4863-ae49-29d779431695
2026-04-02 02:19:10,457 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-75399393, 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-67876151:ctest-vn-53040500, 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-02 02:19:10,759 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33417bd4-91e4-4fbc-b5bb-8a82a28dceb3', 'name': 'ctest-vn-75399393', 'tenant_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'project_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb49c9e6-b959-4ad5-988c-7cd1998a57ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-vn-75399393'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-policy-allow-all-74121644']], 'subnet_ipam': [{'subnet_cidr': '217.188.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:19:10,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '267b7f94-f7bb-4863-ae49-29d779431695', 'name': 'ctest-vn-53040500', 'tenant_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'project_id': 'fd4d9d2a37d24bfd9e531eb1e982f0db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d4de736-3fe1-4c12-9565-5c0c88c10cf5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-vn-53040500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-policy-allow-all-74121644']], 'subnet_ipam': [{'subnet_cidr': '49.206.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:19:11,160 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-02 02:19:11,468 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-02 02:19:11,504 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5
2026-04-02 02:19:11,517 - DEBUG - Requesting: http://10.0.0.23:8082/project/fd4d9d2a-37d2-4bfd-9e53-1eb1e982f0db
2026-04-02 02:19:11,592 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/33417bd4-91e4-4fbc-b5bb-8a82a28dceb3
2026-04-02 02:19:11,601 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/33417bd4-91e4-4fbc-b5bb-8a82a28dceb3
2026-04-02 02:19:11,610 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a05e6dc-8280-4c27-9083-735613837f8f
2026-04-02 02:19:11,616 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a05e6dc-8280-4c27-9083-735613837f8f
2026-04-02 02:19:11,624 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/be3fb30d-75c8-46f5-a830-a46209374d7c
2026-04-02 02:19:11,630 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 02:19:11,630 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/33417bd4-91e4-4fbc-b5bb-8a82a28dceb3
2026-04-02 02:19:11,637 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a05e6dc-8280-4c27-9083-735613837f8f
2026-04-02 02:19:11,649 - INFO - Verified VN network id 11 for VN 33417bd4-91e4-4fbc-b5bb-8a82a28dceb3
2026-04-02 02:19:11,649 - INFO - Verifications in API Server for VN ctest-vn-75399393 passed
2026-04-02 02:19:11,649 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/33417bd4-91e4-4fbc-b5bb-8a82a28dceb3
2026-04-02 02:19:11,656 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a05e6dc-8280-4c27-9083-735613837f8f
2026-04-02 02:19:11,661 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a05e6dc-8280-4c27-9083-735613837f8f
2026-04-02 02:19:11,667 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/be3fb30d-75c8-46f5-a830-a46209374d7c
2026-04-02 02:19:11,678 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-75399393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67876151', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3693369322331459516', 'uuid-lslong': '13095212635187433139'}, 'enable': 'true', 'created': '2026-04-02T02:19:09', 'last-modified': '2026-04-02T02:19:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942414'}
2026-04-02 02:19:11,684 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 02:19:11,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75399393 passed
2026-04-02 02:19:11,684 - DEBUG - ====Verifying policy data for ctest-vn-75399393 in API_Server ======
2026-04-02 02:19:11,684 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-02 02:19:11,691 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5
2026-04-02 02:19:11,702 - DEBUG - Requesting: http://10.0.0.23:8082/project/fd4d9d2a-37d2-4bfd-9e53-1eb1e982f0db
2026-04-02 02:19:11,768 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/33417bd4-91e4-4fbc-b5bb-8a82a28dceb3
2026-04-02 02:19:11,776 - DEBUG - ==>Verifying data for policy with id: be60c596-b6e5-4de4-b923-37b02d6eae78, fqn: ['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-policy-allow-all-74121644']
2026-04-02 02:19:11,776 - INFO - VN ctest-vn-75399393 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 02:19:11,776 - DEBUG - Verifying the vn in opserver
2026-04-02 02:19:11,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-75399393 virtual network link through opserver 10.0.0.23
2026-04-02 02:19:11,777 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-04-02 02:19:12,079 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-04-02 02:19:12,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-75399393', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-75399393?flat'}
2026-04-02 02:19:12,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-75399393 is found in opserver
2026-04-02 02:19:12,162 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 02:19:12,168 - DEBUG - VRF ids for VN ctest-vn-75399393: {}
2026-04-02 02:19:12,168 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-02 02:19:12,173 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5
2026-04-02 02:19:12,183 - DEBUG - Requesting: http://10.0.0.23:8082/project/fd4d9d2a-37d2-4bfd-9e53-1eb1e982f0db
2026-04-02 02:19:12,256 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/267b7f94-f7bb-4863-ae49-29d779431695
2026-04-02 02:19:12,266 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/267b7f94-f7bb-4863-ae49-29d779431695
2026-04-02 02:19:12,274 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/519f45fc-cd08-4ce4-9afa-24b6c8ddc951
2026-04-02 02:19:12,281 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/519f45fc-cd08-4ce4-9afa-24b6c8ddc951
2026-04-02 02:19:12,288 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/10fdc58e-4e29-41e3-864c-29396096ecf7
2026-04-02 02:19:12,294 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 02:19:12,294 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/267b7f94-f7bb-4863-ae49-29d779431695
2026-04-02 02:19:12,302 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/519f45fc-cd08-4ce4-9afa-24b6c8ddc951
2026-04-02 02:19:12,315 - INFO - Verified VN network id 12 for VN 267b7f94-f7bb-4863-ae49-29d779431695
2026-04-02 02:19:12,315 - INFO - Verifications in API Server for VN ctest-vn-53040500 passed
2026-04-02 02:19:12,315 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/267b7f94-f7bb-4863-ae49-29d779431695
2026-04-02 02:19:12,325 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/519f45fc-cd08-4ce4-9afa-24b6c8ddc951
2026-04-02 02:19:12,332 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/519f45fc-cd08-4ce4-9afa-24b6c8ddc951
2026-04-02 02:19:12,341 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/10fdc58e-4e29-41e3-864c-29396096ecf7
2026-04-02 02:19:12,353 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-53040500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67876151', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2772950273364805731', 'uuid-lslong': '12558615041328486037'}, 'enable': 'true', 'created': '2026-04-02T02:19:10', 'last-modified': '2026-04-02T02:19:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.383316'}
2026-04-02 02:19:12,360 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 02:19:12,361 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53040500 passed
2026-04-02 02:19:12,361 - DEBUG - ====Verifying policy data for ctest-vn-53040500 in API_Server ======
2026-04-02 02:19:12,361 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-04-02 02:19:12,365 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5
2026-04-02 02:19:12,376 - DEBUG - Requesting: http://10.0.0.23:8082/project/fd4d9d2a-37d2-4bfd-9e53-1eb1e982f0db
2026-04-02 02:19:12,450 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/267b7f94-f7bb-4863-ae49-29d779431695
2026-04-02 02:19:12,459 - DEBUG - ==>Verifying data for policy with id: be60c596-b6e5-4de4-b923-37b02d6eae78, fqn: ['default-domain', 'ctest-TestBasicPolicy-67876151', 'ctest-policy-allow-all-74121644']
2026-04-02 02:19:12,459 - INFO - VN ctest-vn-53040500 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 02:19:12,459 - DEBUG - Verifying the vn in opserver
2026-04-02 02:19:12,459 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-53040500 virtual network link through opserver 10.0.0.23
2026-04-02 02:19:12,459 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-04-02 02:19:12,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-53040500', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-53040500?flat'}
2026-04-02 02:19:12,469 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67876151:ctest-vn-53040500 is found in opserver
2026-04-02 02:19:12,479 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 02:19:12,484 - DEBUG - VRF ids for VN ctest-vn-53040500: {}
2026-04-02 02:19:12,549 - DEBUG - Services list from nova: [