2026-12-02 16:00:27,163 - INFO - Domain Default found not creating
2026-12-02 16:00:27,338 - INFO - Project ctest-TestBasicPolicy-86815906 not found, creating it
2026-12-02 16:00:27,858 - INFO - Created Project:ctest-TestBasicPolicy-86815906, ID : 3537e989-e446-4a46-8002-278908faaa0e
2026-12-02 16:00:29,600 - INFO - ================================================================================
2026-12-02 16:00:29,600 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-12-02 16:00:29,600 - 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-12-02 16:00:29,860 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with
2026-12-02 16:00:29,860 - INFO - Initial checks done. Running the testcase now
2026-12-02 16:00:29,860 - INFO -
2026-12-02 16:00:30,483 - DEBUG - Response for create_network : {'network': {'id': 'caa5ff31-04d0-49ac-b9fe-b06b2204841c', 'name': 'ctest-vn-62976790', 'tenant_id': '3537e989e4464a468002278908faaa0e', 'project_id': '3537e989e4464a468002278908faaa0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-vn-62976790'], 'port_security_enabled': True, 'description': ''}}
2026-12-02 16:00:30,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '327ff773-36ee-448f-b881-f530a7aeaaa7', 'name': '', 'tenant_id': '3537e989e4464a468002278908faaa0e', 'network_id': 'caa5ff31-04d0-49ac-b9fe-b06b2204841c', 'ip_version': 4, 'cidr': '113.230.106.128/26', 'allocation_pools': [{'start': '113.230.106.130', 'end': '113.230.106.190'}], 'gateway_ip': '113.230.106.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.230.106.130', 'tags': [], 'project_id': '3537e989e4464a468002278908faaa0e'}}
2026-12-02 16:00:30,711 - INFO - Created VN ctest-vn-62976790
2026-12-02 16:00:30,764 - DEBUG - VN ctest-vn-62976790 UUID is caa5ff31-04d0-49ac-b9fe-b06b2204841c
2026-12-02 16:00:31,116 - DEBUG - Response for create_network : {'network': {'id': '9781ff8a-8713-40ed-ae5b-0de06996bb35', 'name': 'ctest-vn-06387527', 'tenant_id': '3537e989e4464a468002278908faaa0e', 'project_id': '3537e989e4464a468002278908faaa0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-vn-06387527'], 'port_security_enabled': True, 'description': ''}}
2026-12-02 16:00:31,298 - DEBUG - Response for create_subnet : {'subnet': {'id': '69ca8287-d403-412e-8914-c1e97464169c', 'name': '', 'tenant_id': '3537e989e4464a468002278908faaa0e', 'network_id': '9781ff8a-8713-40ed-ae5b-0de06996bb35', 'ip_version': 4, 'cidr': '173.118.245.64/26', 'allocation_pools': [{'start': '173.118.245.66', 'end': '173.118.245.126'}], 'gateway_ip': '173.118.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.118.245.66', 'tags': [], 'project_id': '3537e989e4464a468002278908faaa0e'}}
2026-12-02 16:00:31,314 - INFO - Created VN ctest-vn-06387527
2026-12-02 16:00:31,368 - DEBUG - VN ctest-vn-06387527 UUID is 9781ff8a-8713-40ed-ae5b-0de06996bb35
2026-12-02 16:00:31,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-62976790, 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-86815906:ctest-vn-06387527, 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-12-02 16:00:31,783 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'caa5ff31-04d0-49ac-b9fe-b06b2204841c', 'name': 'ctest-vn-62976790', 'tenant_id': '3537e989e4464a468002278908faaa0e', 'project_id': '3537e989e4464a468002278908faaa0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['327ff773-36ee-448f-b881-f530a7aeaaa7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-vn-62976790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-policy-allow-all-30415165']], 'subnet_ipam': [{'subnet_cidr': '113.230.106.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-12-02 16:00:32,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9781ff8a-8713-40ed-ae5b-0de06996bb35', 'name': 'ctest-vn-06387527', 'tenant_id': '3537e989e4464a468002278908faaa0e', 'project_id': '3537e989e4464a468002278908faaa0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['69ca8287-d403-412e-8914-c1e97464169c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-vn-06387527'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-policy-allow-all-30415165']], 'subnet_ipam': [{'subnet_cidr': '173.118.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-12-02 16:00:32,204 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-12-02 16:00:32,602 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-12-02 16:00:32,633 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4
2026-12-02 16:00:32,650 - DEBUG - Requesting: http://10.0.0.163:8082/project/3537e989-e446-4a46-8002-278908faaa0e
2026-12-02 16:00:32,730 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/caa5ff31-04d0-49ac-b9fe-b06b2204841c
2026-12-02 16:00:32,747 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/caa5ff31-04d0-49ac-b9fe-b06b2204841c
2026-12-02 16:00:32,760 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b0a55394-6ca2-4ba3-ac54-a3cbb5ec6429
2026-12-02 16:00:32,768 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b0a55394-6ca2-4ba3-ac54-a3cbb5ec6429
2026-12-02 16:00:32,777 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/f787c2e2-0850-451f-9940-6750c3f9c97e
2026-12-02 16:00:32,784 - DEBUG - Route Targets: ['target:64512:8000005']
2026-12-02 16:00:32,784 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/caa5ff31-04d0-49ac-b9fe-b06b2204841c
2026-12-02 16:00:32,793 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b0a55394-6ca2-4ba3-ac54-a3cbb5ec6429
2026-12-02 16:00:32,809 - INFO - Verified VN network id 12 for VN caa5ff31-04d0-49ac-b9fe-b06b2204841c
2026-12-02 16:00:32,809 - INFO - Verifications in API Server for VN ctest-vn-62976790 passed
2026-12-02 16:00:32,809 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/caa5ff31-04d0-49ac-b9fe-b06b2204841c
2026-12-02 16:00:32,819 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b0a55394-6ca2-4ba3-ac54-a3cbb5ec6429
2026-12-02 16:00:32,834 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b0a55394-6ca2-4ba3-ac54-a3cbb5ec6429
2026-12-02 16:00:32,843 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/f787c2e2-0850-451f-9940-6750c3f9c97e
2026-12-02 16:00:32,858 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-62976790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86815906', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14602357952817940908', 'uuid-lslong': '13402343515279885340'}, 'enable': 'true', 'created': '2026-12-02T16:00:30', 'last-modified': '2026-12-02T16:00:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.101792'}
2026-12-02 16:00:32,870 - DEBUG - Route Targets: ['target:64512:8000005']
2026-12-02 16:00:32,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62976790 passed
2026-12-02 16:00:32,871 - DEBUG - ====Verifying policy data for ctest-vn-62976790 in API_Server ======
2026-12-02 16:00:32,871 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-12-02 16:00:32,881 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4
2026-12-02 16:00:32,894 - DEBUG - Requesting: http://10.0.0.163:8082/project/3537e989-e446-4a46-8002-278908faaa0e
2026-12-02 16:00:32,974 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/caa5ff31-04d0-49ac-b9fe-b06b2204841c
2026-12-02 16:00:32,983 - DEBUG - ==>Verifying data for policy with id: 556b4db5-138a-4a9d-a93d-e63d8440e605, fqn: ['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-policy-allow-all-30415165']
2026-12-02 16:00:32,983 - INFO - VN ctest-vn-62976790 Policy verification: verify_vn_policy_in_api_server, status: True
2026-12-02 16:00:32,984 - DEBUG - Verifying the vn in opserver
2026-12-02 16:00:32,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-62976790 virtual network link through opserver 10.0.0.163
2026-12-02 16:00:32,984 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-12-02 16:00:33,346 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-12-02 16:00:33,406 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-62976790', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-62976790?flat'}
2026-12-02 16:00:33,406 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-62976790 is found in opserver
2026-12-02 16:00:33,418 - DEBUG - Do not have enough data to verify VN in agent
2026-12-02 16:00:33,424 - DEBUG - VRF ids for VN ctest-vn-62976790: {}
2026-12-02 16:00:33,424 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-12-02 16:00:33,430 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4
2026-12-02 16:00:33,440 - DEBUG - Requesting: http://10.0.0.163:8082/project/3537e989-e446-4a46-8002-278908faaa0e
2026-12-02 16:00:33,512 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/9781ff8a-8713-40ed-ae5b-0de06996bb35
2026-12-02 16:00:33,527 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/9781ff8a-8713-40ed-ae5b-0de06996bb35
2026-12-02 16:00:33,538 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/36308dfd-678b-415b-8cf4-671c9febc5f2
2026-12-02 16:00:33,546 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/36308dfd-678b-415b-8cf4-671c9febc5f2
2026-12-02 16:00:33,554 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/17377d58-5c7a-4f98-a17a-07a51295564e
2026-12-02 16:00:33,562 - DEBUG - Route Targets: ['target:64512:8000006']
2026-12-02 16:00:33,562 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/9781ff8a-8713-40ed-ae5b-0de06996bb35
2026-12-02 16:00:33,574 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/36308dfd-678b-415b-8cf4-671c9febc5f2
2026-12-02 16:00:33,589 - INFO - Verified VN network id 13 for VN 9781ff8a-8713-40ed-ae5b-0de06996bb35
2026-12-02 16:00:33,589 - INFO - Verifications in API Server for VN ctest-vn-06387527 passed
2026-12-02 16:00:33,589 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/9781ff8a-8713-40ed-ae5b-0de06996bb35
2026-12-02 16:00:33,599 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/36308dfd-678b-415b-8cf4-671c9febc5f2
2026-12-02 16:00:33,606 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/36308dfd-678b-415b-8cf4-671c9febc5f2
2026-12-02 16:00:33,612 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/17377d58-5c7a-4f98-a17a-07a51295564e
2026-12-02 16:00:33,625 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-06387527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86815906', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10917287942159548653', 'uuid-lslong': '12563650842975451957'}, 'enable': 'true', 'created': '2026-12-02T16:00:31', 'last-modified': '2026-12-02T16:00:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.621976'}
2026-12-02 16:00:33,631 - DEBUG - Route Targets: ['target:64512:8000006']
2026-12-02 16:00:33,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06387527 passed
2026-12-02 16:00:33,632 - DEBUG - ====Verifying policy data for ctest-vn-06387527 in API_Server ======
2026-12-02 16:00:33,632 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-12-02 16:00:33,637 - DEBUG - Requesting: http://10.0.0.163:8082/domain/cc2b4bf0-bb4a-4825-a06a-bc91cdfd30d4
2026-12-02 16:00:33,648 - DEBUG - Requesting: http://10.0.0.163:8082/project/3537e989-e446-4a46-8002-278908faaa0e
2026-12-02 16:00:33,724 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/9781ff8a-8713-40ed-ae5b-0de06996bb35
2026-12-02 16:00:33,735 - DEBUG - ==>Verifying data for policy with id: 556b4db5-138a-4a9d-a93d-e63d8440e605, fqn: ['default-domain', 'ctest-TestBasicPolicy-86815906', 'ctest-policy-allow-all-30415165']
2026-12-02 16:00:33,735 - INFO - VN ctest-vn-06387527 Policy verification: verify_vn_policy_in_api_server, status: True
2026-12-02 16:00:33,735 - DEBUG - Verifying the vn in opserver
2026-12-02 16:00:33,735 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-06387527 virtual network link through opserver 10.0.0.163
2026-12-02 16:00:33,735 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-12-02 16:00:33,746 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-06387527', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-06387527?flat'}
2026-12-02 16:00:33,746 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86815906:ctest-vn-06387527 is found in opserver
2026-12-02 16:00:33,758 - DEBUG - Do not have enough data to verify VN in agent
2026-12-02 16:00:33,765 - DEBUG - VRF ids for VN ctest-vn-06387527: {}
2026-12-02 16:00:33,836 - DEBUG - Services list from nova: [