2025-10-09 11:17:34,204 - INFO - Domain Default found not creating
2025-10-09 11:17:34,369 - INFO - Project ctest-TestBasicPolicy-70205138 not found, creating it
2025-10-09 11:17:34,839 - INFO - Created Project:ctest-TestBasicPolicy-70205138, ID : 3482148b-8fdd-4b03-a6bb-ea9593ee9d10
2025-10-09 11:17:36,271 - INFO - ================================================================================
2025-10-09 11:17:36,271 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 11:17:36,271 - 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
2025-10-09 11:17:36,533 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-09 11:17:36,533 - INFO - Initial checks done. Running the testcase now
2025-10-09 11:17:36,533 - INFO -
2025-10-09 11:17:37,091 - DEBUG - Response for create_network : {'network': {'id': 'b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a', 'name': 'ctest-vn-19145194', 'tenant_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'project_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-vn-19145194'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 11:17:37,310 - DEBUG - Response for create_subnet : {'subnet': {'id': '87979b4c-7bac-4f88-aaeb-4e08cc79226e', 'name': '', 'tenant_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'network_id': 'b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a', 'ip_version': 4, 'cidr': '137.198.196.192/26', 'allocation_pools': [{'start': '137.198.196.194', 'end': '137.198.196.254'}], 'gateway_ip': '137.198.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.198.196.194', 'tags': [], 'project_id': '3482148b8fdd4b03a6bbea9593ee9d10'}}
2025-10-09 11:17:37,332 - INFO - Created VN ctest-vn-19145194
2025-10-09 11:17:37,384 - DEBUG - VN ctest-vn-19145194 UUID is b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a
2025-10-09 11:17:37,676 - DEBUG - Response for create_network : {'network': {'id': 'ceb16f09-dbd0-4489-924b-0025a8ea2217', 'name': 'ctest-vn-04856990', 'tenant_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'project_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-vn-04856990'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 11:17:37,889 - DEBUG - Response for create_subnet : {'subnet': {'id': '17fbe795-7704-4f19-9f52-00beb19139ae', 'name': '', 'tenant_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'network_id': 'ceb16f09-dbd0-4489-924b-0025a8ea2217', 'ip_version': 4, 'cidr': '89.205.112.128/26', 'allocation_pools': [{'start': '89.205.112.130', 'end': '89.205.112.190'}], 'gateway_ip': '89.205.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.205.112.130', 'tags': [], 'project_id': '3482148b8fdd4b03a6bbea9593ee9d10'}}
2025-10-09 11:17:37,909 - INFO - Created VN ctest-vn-04856990
2025-10-09 11:17:37,964 - DEBUG - VN ctest-vn-04856990 UUID is ceb16f09-dbd0-4489-924b-0025a8ea2217
2025-10-09 11:17:38,076 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-19145194, 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-70205138:ctest-vn-04856990, 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]
2025-10-09 11:17:38,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a', 'name': 'ctest-vn-19145194', 'tenant_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'project_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87979b4c-7bac-4f88-aaeb-4e08cc79226e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-vn-19145194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-policy-allow-all-38171169']], 'subnet_ipam': [{'subnet_cidr': '137.198.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 11:17:38,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ceb16f09-dbd0-4489-924b-0025a8ea2217', 'name': 'ctest-vn-04856990', 'tenant_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'project_id': '3482148b8fdd4b03a6bbea9593ee9d10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17fbe795-7704-4f19-9f52-00beb19139ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-vn-04856990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-policy-allow-all-38171169']], 'subnet_ipam': [{'subnet_cidr': '89.205.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 11:17:38,760 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 11:17:39,066 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 11:17:39,096 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd
2025-10-09 11:17:39,108 - DEBUG - Requesting: http://10.0.0.33:8082/project/3482148b-8fdd-4b03-a6bb-ea9593ee9d10
2025-10-09 11:17:39,178 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a
2025-10-09 11:17:39,187 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a
2025-10-09 11:17:39,195 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/259d66e2-8728-4155-b6f0-b28d0a112777
2025-10-09 11:17:39,201 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/259d66e2-8728-4155-b6f0-b28d0a112777
2025-10-09 11:17:39,207 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bac4f7e4-0ea2-46a3-9916-e00e031f313e
2025-10-09 11:17:39,215 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 11:17:39,215 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a
2025-10-09 11:17:39,225 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/259d66e2-8728-4155-b6f0-b28d0a112777
2025-10-09 11:17:39,238 - INFO - Verified VN network id 11 for VN b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a
2025-10-09 11:17:39,238 - INFO - Verifications in API Server for VN ctest-vn-19145194 passed
2025-10-09 11:17:39,238 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a
2025-10-09 11:17:39,246 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/259d66e2-8728-4155-b6f0-b28d0a112777
2025-10-09 11:17:39,253 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/259d66e2-8728-4155-b6f0-b28d0a112777
2025-10-09 11:17:39,258 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bac4f7e4-0ea2-46a3-9916-e00e031f313e
2025-10-09 11:17:39,268 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-19145194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70205138', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13161421141265042716', 'uuid-lslong': '10102931436604265514'}, 'enable': 'true', 'created': '2025-10-09T11:17:37', 'last-modified': '2025-10-09T11:17:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911756'}
2025-10-09 11:17:39,274 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 11:17:39,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19145194 passed
2025-10-09 11:17:39,274 - DEBUG - ====Verifying policy data for ctest-vn-19145194 in API_Server ======
2025-10-09 11:17:39,274 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 11:17:39,279 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd
2025-10-09 11:17:39,290 - DEBUG - Requesting: http://10.0.0.33:8082/project/3482148b-8fdd-4b03-a6bb-ea9593ee9d10
2025-10-09 11:17:39,357 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b6a6c2cb-b86b-4d1c-8c34-d29d2cec942a
2025-10-09 11:17:39,365 - DEBUG - ==>Verifying data for policy with id: 2997999d-3383-4c74-9683-290eee188a96, fqn: ['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-policy-allow-all-38171169']
2025-10-09 11:17:39,366 - INFO - VN ctest-vn-19145194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 11:17:39,366 - DEBUG - Verifying the vn in opserver
2025-10-09 11:17:39,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-19145194 virtual network link through opserver 10.0.0.33
2025-10-09 11:17:39,366 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 11:17:39,656 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 11:17:39,710 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-19145194', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-19145194?flat'}
2025-10-09 11:17:39,710 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-19145194 is found in opserver
2025-10-09 11:17:39,721 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 11:17:39,726 - DEBUG - VRF ids for VN ctest-vn-19145194: {}
2025-10-09 11:17:39,726 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 11:17:39,732 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd
2025-10-09 11:17:39,742 - DEBUG - Requesting: http://10.0.0.33:8082/project/3482148b-8fdd-4b03-a6bb-ea9593ee9d10
2025-10-09 11:17:39,820 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ceb16f09-dbd0-4489-924b-0025a8ea2217
2025-10-09 11:17:39,835 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ceb16f09-dbd0-4489-924b-0025a8ea2217
2025-10-09 11:17:39,844 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4842cb4d-923a-4076-8711-097b6422ee22
2025-10-09 11:17:39,852 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4842cb4d-923a-4076-8711-097b6422ee22
2025-10-09 11:17:39,859 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/df044e45-9084-40a8-be4f-c673453a0a7b
2025-10-09 11:17:39,867 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 11:17:39,867 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ceb16f09-dbd0-4489-924b-0025a8ea2217
2025-10-09 11:17:39,878 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4842cb4d-923a-4076-8711-097b6422ee22
2025-10-09 11:17:39,892 - INFO - Verified VN network id 12 for VN ceb16f09-dbd0-4489-924b-0025a8ea2217
2025-10-09 11:17:39,892 - INFO - Verifications in API Server for VN ctest-vn-04856990 passed
2025-10-09 11:17:39,893 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ceb16f09-dbd0-4489-924b-0025a8ea2217
2025-10-09 11:17:39,901 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4842cb4d-923a-4076-8711-097b6422ee22
2025-10-09 11:17:39,907 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4842cb4d-923a-4076-8711-097b6422ee22
2025-10-09 11:17:39,914 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/df044e45-9084-40a8-be4f-c673453a0a7b
2025-10-09 11:17:39,928 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-04856990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70205138', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14893807530824189065', 'uuid-lslong': '10541519514538484247'}, 'enable': 'true', 'created': '2025-10-09T11:17:37', 'last-modified': '2025-10-09T11:17:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349865'}
2025-10-09 11:17:39,934 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 11:17:39,935 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04856990 passed
2025-10-09 11:17:39,935 - DEBUG - ====Verifying policy data for ctest-vn-04856990 in API_Server ======
2025-10-09 11:17:39,935 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 11:17:39,941 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd
2025-10-09 11:17:39,951 - DEBUG - Requesting: http://10.0.0.33:8082/project/3482148b-8fdd-4b03-a6bb-ea9593ee9d10
2025-10-09 11:17:40,027 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ceb16f09-dbd0-4489-924b-0025a8ea2217
2025-10-09 11:17:40,037 - DEBUG - ==>Verifying data for policy with id: 2997999d-3383-4c74-9683-290eee188a96, fqn: ['default-domain', 'ctest-TestBasicPolicy-70205138', 'ctest-policy-allow-all-38171169']
2025-10-09 11:17:40,037 - INFO - VN ctest-vn-04856990 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 11:17:40,037 - DEBUG - Verifying the vn in opserver
2025-10-09 11:17:40,037 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-04856990 virtual network link through opserver 10.0.0.33
2025-10-09 11:17:40,037 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 11:17:40,048 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-04856990', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-04856990?flat'}
2025-10-09 11:17:40,048 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70205138:ctest-vn-04856990 is found in opserver
2025-10-09 11:17:40,058 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 11:17:40,062 - DEBUG - VRF ids for VN ctest-vn-04856990: {}
2025-10-09 11:17:40,120 - DEBUG - Services list from nova: [