2026-11-02 22:07:54,694 - INFO - Domain Default found not creating
2026-11-02 22:07:54,908 - INFO - Project ctest-TestBasicPolicy-38941441 not found, creating it
2026-11-02 22:07:55,438 - INFO - Created Project:ctest-TestBasicPolicy-38941441, ID : b513e26a-7fce-401e-8dbd-f3ea946cb797
2026-11-02 22:07:57,568 - INFO - ================================================================================
2026-11-02 22:07:57,568 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-02 22:07:57,568 - 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-11-02 22:07:57,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-11-02 22:07:57,852 - INFO - Initial checks done. Running the testcase now
2026-11-02 22:07:57,852 - INFO -
2026-11-02 22:07:58,521 - DEBUG - Response for create_network : {'network': {'id': '92256380-fa28-4748-aab1-e1c6dc5dbfed', 'name': 'ctest-vn-07049090', 'tenant_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'project_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-vn-07049090'], 'port_security_enabled': True, 'description': ''}}
2026-11-02 22:07:58,724 - DEBUG - Response for create_subnet : {'subnet': {'id': '51a737f0-d3a6-4e3d-8efa-2173c3eaf19b', 'name': '', 'tenant_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'network_id': '92256380-fa28-4748-aab1-e1c6dc5dbfed', 'ip_version': 4, 'cidr': '15.122.109.0/26', 'allocation_pools': [{'start': '15.122.109.2', 'end': '15.122.109.62'}], 'gateway_ip': '15.122.109.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.122.109.2', 'tags': [], 'project_id': 'b513e26a7fce401e8dbdf3ea946cb797'}}
2026-11-02 22:07:58,747 - INFO - Created VN ctest-vn-07049090
2026-11-02 22:07:58,806 - DEBUG - VN ctest-vn-07049090 UUID is 92256380-fa28-4748-aab1-e1c6dc5dbfed
2026-11-02 22:07:59,153 - DEBUG - Response for create_network : {'network': {'id': '1bce2c23-5c4c-4f4c-88cf-4e797cb67401', 'name': 'ctest-vn-45070635', 'tenant_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'project_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-vn-45070635'], 'port_security_enabled': True, 'description': ''}}
2026-11-02 22:07:59,432 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ce26a1e-c6e4-41b9-991f-2af4492ad44e', 'name': '', 'tenant_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'network_id': '1bce2c23-5c4c-4f4c-88cf-4e797cb67401', 'ip_version': 4, 'cidr': '82.45.156.192/26', 'allocation_pools': [{'start': '82.45.156.194', 'end': '82.45.156.254'}], 'gateway_ip': '82.45.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.45.156.194', 'tags': [], 'project_id': 'b513e26a7fce401e8dbdf3ea946cb797'}}
2026-11-02 22:07:59,456 - INFO - Created VN ctest-vn-45070635
2026-11-02 22:07:59,517 - DEBUG - VN ctest-vn-45070635 UUID is 1bce2c23-5c4c-4f4c-88cf-4e797cb67401
2026-11-02 22:07:59,659 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-07049090, 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-38941441:ctest-vn-45070635, 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-11-02 22:08:00,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92256380-fa28-4748-aab1-e1c6dc5dbfed', 'name': 'ctest-vn-07049090', 'tenant_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'project_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['51a737f0-d3a6-4e3d-8efa-2173c3eaf19b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-vn-07049090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-policy-allow-all-05886754']], 'subnet_ipam': [{'subnet_cidr': '15.122.109.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-02 22:08:00,342 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1bce2c23-5c4c-4f4c-88cf-4e797cb67401', 'name': 'ctest-vn-45070635', 'tenant_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'project_id': 'b513e26a7fce401e8dbdf3ea946cb797', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4ce26a1e-c6e4-41b9-991f-2af4492ad44e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-vn-45070635'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-policy-allow-all-05886754']], 'subnet_ipam': [{'subnet_cidr': '82.45.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-02 22:08:00,521 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 22:08:00,906 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 22:08:00,981 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2f611ba-7871-413d-9ee6-ccc24d2220c1
2026-11-02 22:08:01,030 - DEBUG - Requesting: http://10.0.0.50:8082/project/b513e26a-7fce-401e-8dbd-f3ea946cb797
2026-11-02 22:08:01,122 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/92256380-fa28-4748-aab1-e1c6dc5dbfed
2026-11-02 22:08:01,141 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/92256380-fa28-4748-aab1-e1c6dc5dbfed
2026-11-02 22:08:01,156 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/521cdd64-3dab-4707-a4e1-a65cc12233ad
2026-11-02 22:08:01,167 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/521cdd64-3dab-4707-a4e1-a65cc12233ad
2026-11-02 22:08:01,177 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fc3c0e2f-6ea0-420e-bee9-72a8163d1da6
2026-11-02 22:08:01,186 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-02 22:08:01,186 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/92256380-fa28-4748-aab1-e1c6dc5dbfed
2026-11-02 22:08:01,197 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/521cdd64-3dab-4707-a4e1-a65cc12233ad
2026-11-02 22:08:01,211 - INFO - Verified VN network id 12 for VN 92256380-fa28-4748-aab1-e1c6dc5dbfed
2026-11-02 22:08:01,211 - INFO - Verifications in API Server for VN ctest-vn-07049090 passed
2026-11-02 22:08:01,211 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/92256380-fa28-4748-aab1-e1c6dc5dbfed
2026-11-02 22:08:01,221 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/521cdd64-3dab-4707-a4e1-a65cc12233ad
2026-11-02 22:08:01,227 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/521cdd64-3dab-4707-a4e1-a65cc12233ad
2026-11-02 22:08:01,235 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fc3c0e2f-6ea0-420e-bee9-72a8163d1da6
2026-11-02 22:08:01,249 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-07049090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38941441', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10530932709279680328', 'uuid-lslong': '12299860301542440941'}, 'enable': 'true', 'created': '2026-11-02T22:07:58', 'last-modified': '2026-11-02T22:07:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.240313'}
2026-11-02 22:08:01,256 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-02 22:08:01,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07049090 passed
2026-11-02 22:08:01,256 - DEBUG - ====Verifying policy data for ctest-vn-07049090 in API_Server ======
2026-11-02 22:08:01,256 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 22:08:01,262 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2f611ba-7871-413d-9ee6-ccc24d2220c1
2026-11-02 22:08:01,272 - DEBUG - Requesting: http://10.0.0.50:8082/project/b513e26a-7fce-401e-8dbd-f3ea946cb797
2026-11-02 22:08:01,348 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/92256380-fa28-4748-aab1-e1c6dc5dbfed
2026-11-02 22:08:01,356 - DEBUG - ==>Verifying data for policy with id: 753fd334-abb5-47ee-81f2-67b51558d32c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-policy-allow-all-05886754']
2026-11-02 22:08:01,357 - INFO - VN ctest-vn-07049090 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-02 22:08:01,357 - DEBUG - Verifying the vn in opserver
2026-11-02 22:08:01,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-07049090 virtual network link through opserver 10.0.0.50
2026-11-02 22:08:01,357 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-02 22:08:01,717 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-02 22:08:01,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-07049090', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-07049090?flat'}
2026-11-02 22:08:01,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-07049090 is found in opserver
2026-11-02 22:08:01,772 - DEBUG - Do not have enough data to verify VN in agent
2026-11-02 22:08:01,777 - DEBUG - VRF ids for VN ctest-vn-07049090: {}
2026-11-02 22:08:01,777 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 22:08:01,782 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2f611ba-7871-413d-9ee6-ccc24d2220c1
2026-11-02 22:08:01,792 - DEBUG - Requesting: http://10.0.0.50:8082/project/b513e26a-7fce-401e-8dbd-f3ea946cb797
2026-11-02 22:08:01,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1bce2c23-5c4c-4f4c-88cf-4e797cb67401
2026-11-02 22:08:01,877 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1bce2c23-5c4c-4f4c-88cf-4e797cb67401
2026-11-02 22:08:01,887 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02325f7e-ca1a-4026-923f-fae68872f18a
2026-11-02 22:08:01,895 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02325f7e-ca1a-4026-923f-fae68872f18a
2026-11-02 22:08:01,901 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a4c056bf-3444-464f-aaaa-5d1edebd093a
2026-11-02 22:08:01,908 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-02 22:08:01,908 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1bce2c23-5c4c-4f4c-88cf-4e797cb67401
2026-11-02 22:08:01,917 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02325f7e-ca1a-4026-923f-fae68872f18a
2026-11-02 22:08:01,929 - INFO - Verified VN network id 13 for VN 1bce2c23-5c4c-4f4c-88cf-4e797cb67401
2026-11-02 22:08:01,929 - INFO - Verifications in API Server for VN ctest-vn-45070635 passed
2026-11-02 22:08:01,929 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1bce2c23-5c4c-4f4c-88cf-4e797cb67401
2026-11-02 22:08:01,937 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02325f7e-ca1a-4026-923f-fae68872f18a
2026-11-02 22:08:01,944 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02325f7e-ca1a-4026-923f-fae68872f18a
2026-11-02 22:08:01,950 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a4c056bf-3444-464f-aaaa-5d1edebd093a
2026-11-02 22:08:01,961 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-45070635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38941441', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2003587414610431820', 'uuid-lslong': '9858184393027646465'}, 'enable': 'true', 'created': '2026-11-02T22:07:59', 'last-modified': '2026-11-02T22:08:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.673541'}
2026-11-02 22:08:01,968 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-02 22:08:01,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45070635 passed
2026-11-02 22:08:01,968 - DEBUG - ====Verifying policy data for ctest-vn-45070635 in API_Server ======
2026-11-02 22:08:01,968 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 22:08:01,974 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2f611ba-7871-413d-9ee6-ccc24d2220c1
2026-11-02 22:08:01,985 - DEBUG - Requesting: http://10.0.0.50:8082/project/b513e26a-7fce-401e-8dbd-f3ea946cb797
2026-11-02 22:08:02,056 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1bce2c23-5c4c-4f4c-88cf-4e797cb67401
2026-11-02 22:08:02,065 - DEBUG - ==>Verifying data for policy with id: 753fd334-abb5-47ee-81f2-67b51558d32c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38941441', 'ctest-policy-allow-all-05886754']
2026-11-02 22:08:02,065 - INFO - VN ctest-vn-45070635 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-02 22:08:02,065 - DEBUG - Verifying the vn in opserver
2026-11-02 22:08:02,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-45070635 virtual network link through opserver 10.0.0.50
2026-11-02 22:08:02,065 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-02 22:08:02,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-45070635', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-45070635?flat'}
2026-11-02 22:08:02,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38941441:ctest-vn-45070635 is found in opserver
2026-11-02 22:08:02,084 - DEBUG - Do not have enough data to verify VN in agent
2026-11-02 22:08:02,088 - DEBUG - VRF ids for VN ctest-vn-45070635: {}
2026-11-02 22:08:02,141 - DEBUG - Services list from nova: [