2026-05-20 14:13:11,980 - INFO - Domain Default found not creating
2026-05-20 14:13:12,196 - INFO - Project ctest-TestBasicPolicy-62052151 not found, creating it
2026-05-20 14:13:12,698 - INFO - Created Project:ctest-TestBasicPolicy-62052151, ID : 13c1a5d4-3db3-4922-b8ca-815b5d3931bb
2026-05-20 14:13:14,352 - INFO - ================================================================================
2026-05-20 14:13:14,352 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-20 14:13:14,352 - 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-05-20 14:13:14,616 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.17': '0'}} with
2026-05-20 14:13:14,616 - INFO - Initial checks done. Running the testcase now
2026-05-20 14:13:14,616 - INFO -
2026-05-20 14:13:15,206 - DEBUG - Response for create_network : {'network': {'id': 'c68cc86d-7238-48cf-b7a1-4cf04bc2147c', 'name': 'ctest-vn-78041589', 'tenant_id': '13c1a5d43db34922b8ca815b5d3931bb', 'project_id': '13c1a5d43db34922b8ca815b5d3931bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-vn-78041589'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:13:15,439 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df3f0a8f-6616-481d-b009-14598277ecc2', 'name': '', 'tenant_id': '13c1a5d43db34922b8ca815b5d3931bb', 'network_id': 'c68cc86d-7238-48cf-b7a1-4cf04bc2147c', 'ip_version': 4, 'cidr': '4.191.245.128/26', 'allocation_pools': [{'start': '4.191.245.130', 'end': '4.191.245.190'}], 'gateway_ip': '4.191.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.191.245.130', 'tags': [], 'project_id': '13c1a5d43db34922b8ca815b5d3931bb'}}
2026-05-20 14:13:15,460 - INFO - Created VN ctest-vn-78041589
2026-05-20 14:13:15,518 - DEBUG - VN ctest-vn-78041589 UUID is c68cc86d-7238-48cf-b7a1-4cf04bc2147c
2026-05-20 14:13:15,831 - DEBUG - Response for create_network : {'network': {'id': '9da4ee79-1780-417d-bda6-1edb0902eef7', 'name': 'ctest-vn-57275111', 'tenant_id': '13c1a5d43db34922b8ca815b5d3931bb', 'project_id': '13c1a5d43db34922b8ca815b5d3931bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-vn-57275111'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:13:15,993 - DEBUG - Response for create_subnet : {'subnet': {'id': '469326a8-126f-4216-909a-32bf43485bf6', 'name': '', 'tenant_id': '13c1a5d43db34922b8ca815b5d3931bb', 'network_id': '9da4ee79-1780-417d-bda6-1edb0902eef7', 'ip_version': 4, 'cidr': '116.57.155.64/26', 'allocation_pools': [{'start': '116.57.155.66', 'end': '116.57.155.126'}], 'gateway_ip': '116.57.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.57.155.66', 'tags': [], 'project_id': '13c1a5d43db34922b8ca815b5d3931bb'}}
2026-05-20 14:13:16,014 - INFO - Created VN ctest-vn-57275111
2026-05-20 14:13:16,066 - DEBUG - VN ctest-vn-57275111 UUID is 9da4ee79-1780-417d-bda6-1edb0902eef7
2026-05-20 14:13:16,185 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-78041589, 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-62052151:ctest-vn-57275111, 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-05-20 14:13:16,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c68cc86d-7238-48cf-b7a1-4cf04bc2147c', 'name': 'ctest-vn-78041589', 'tenant_id': '13c1a5d43db34922b8ca815b5d3931bb', 'project_id': '13c1a5d43db34922b8ca815b5d3931bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df3f0a8f-6616-481d-b009-14598277ecc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-vn-78041589'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-policy-allow-all-07618365']], 'subnet_ipam': [{'subnet_cidr': '4.191.245.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:13:16,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9da4ee79-1780-417d-bda6-1edb0902eef7', 'name': 'ctest-vn-57275111', 'tenant_id': '13c1a5d43db34922b8ca815b5d3931bb', 'project_id': '13c1a5d43db34922b8ca815b5d3931bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['469326a8-126f-4216-909a-32bf43485bf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-vn-57275111'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-policy-allow-all-07618365']], 'subnet_ipam': [{'subnet_cidr': '116.57.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 14:13:16,890 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-05-20 14:13:17,191 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-05-20 14:13:17,224 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6
2026-05-20 14:13:17,238 - DEBUG - Requesting: http://10.0.0.240:8082/project/13c1a5d4-3db3-4922-b8ca-815b5d3931bb
2026-05-20 14:13:17,314 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c68cc86d-7238-48cf-b7a1-4cf04bc2147c
2026-05-20 14:13:17,327 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c68cc86d-7238-48cf-b7a1-4cf04bc2147c
2026-05-20 14:13:17,337 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/a73683ff-1235-464f-89ea-77f5f4a72914
2026-05-20 14:13:17,347 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/a73683ff-1235-464f-89ea-77f5f4a72914
2026-05-20 14:13:17,355 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/ded110dd-0879-4724-80a9-cfaa52b3e3b7
2026-05-20 14:13:17,365 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 14:13:17,365 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c68cc86d-7238-48cf-b7a1-4cf04bc2147c
2026-05-20 14:13:17,375 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/a73683ff-1235-464f-89ea-77f5f4a72914
2026-05-20 14:13:17,391 - INFO - Verified VN network id 12 for VN c68cc86d-7238-48cf-b7a1-4cf04bc2147c
2026-05-20 14:13:17,391 - INFO - Verifications in API Server for VN ctest-vn-78041589 passed
2026-05-20 14:13:17,391 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c68cc86d-7238-48cf-b7a1-4cf04bc2147c
2026-05-20 14:13:17,401 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/a73683ff-1235-464f-89ea-77f5f4a72914
2026-05-20 14:13:17,408 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/a73683ff-1235-464f-89ea-77f5f4a72914
2026-05-20 14:13:17,416 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/ded110dd-0879-4724-80a9-cfaa52b3e3b7
2026-05-20 14:13:17,430 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-78041589', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62052151', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14307030488642504911', 'uuid-lslong': '13231941775138100348'}, 'enable': 'true', 'created': '2026-05-20T14:13:15', 'last-modified': '2026-05-20T14:13:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965158'}
2026-05-20 14:13:17,438 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 14:13:17,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78041589 passed
2026-05-20 14:13:17,439 - DEBUG - ====Verifying policy data for ctest-vn-78041589 in API_Server ======
2026-05-20 14:13:17,439 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-05-20 14:13:17,446 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6
2026-05-20 14:13:17,457 - DEBUG - Requesting: http://10.0.0.240:8082/project/13c1a5d4-3db3-4922-b8ca-815b5d3931bb
2026-05-20 14:13:17,532 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c68cc86d-7238-48cf-b7a1-4cf04bc2147c
2026-05-20 14:13:17,543 - DEBUG - ==>Verifying data for policy with id: a258601a-1e5b-48a1-9ed4-d0ca8d7254ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-policy-allow-all-07618365']
2026-05-20 14:13:17,543 - INFO - VN ctest-vn-78041589 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 14:13:17,543 - DEBUG - Verifying the vn in opserver
2026-05-20 14:13:17,543 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-78041589 virtual network link through opserver 10.0.0.240
2026-05-20 14:13:17,543 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2026-05-20 14:13:17,850 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2026-05-20 14:13:17,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-78041589', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-78041589?flat'}
2026-05-20 14:13:17,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-78041589 is found in opserver
2026-05-20 14:13:17,940 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 14:13:17,945 - DEBUG - VRF ids for VN ctest-vn-78041589: {}
2026-05-20 14:13:17,945 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-05-20 14:13:17,952 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6
2026-05-20 14:13:17,969 - DEBUG - Requesting: http://10.0.0.240:8082/project/13c1a5d4-3db3-4922-b8ca-815b5d3931bb
2026-05-20 14:13:18,047 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/9da4ee79-1780-417d-bda6-1edb0902eef7
2026-05-20 14:13:18,063 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/9da4ee79-1780-417d-bda6-1edb0902eef7
2026-05-20 14:13:18,074 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0616c9a4-e865-4942-891a-54136ca8f4fd
2026-05-20 14:13:18,084 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0616c9a4-e865-4942-891a-54136ca8f4fd
2026-05-20 14:13:18,094 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/33fa5b8e-9085-4542-b087-784a4826f3f7
2026-05-20 14:13:18,101 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 14:13:18,101 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/9da4ee79-1780-417d-bda6-1edb0902eef7
2026-05-20 14:13:18,111 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0616c9a4-e865-4942-891a-54136ca8f4fd
2026-05-20 14:13:18,127 - INFO - Verified VN network id 13 for VN 9da4ee79-1780-417d-bda6-1edb0902eef7
2026-05-20 14:13:18,128 - INFO - Verifications in API Server for VN ctest-vn-57275111 passed
2026-05-20 14:13:18,128 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/9da4ee79-1780-417d-bda6-1edb0902eef7
2026-05-20 14:13:18,140 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0616c9a4-e865-4942-891a-54136ca8f4fd
2026-05-20 14:13:18,152 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0616c9a4-e865-4942-891a-54136ca8f4fd
2026-05-20 14:13:18,163 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/33fa5b8e-9085-4542-b087-784a4826f3f7
2026-05-20 14:13:18,180 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-57275111', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62052151', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11359466363987968381', 'uuid-lslong': '13665644045400207095'}, 'enable': 'true', 'created': '2026-05-20T14:13:15', 'last-modified': '2026-05-20T14:13:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488410'}
2026-05-20 14:13:18,187 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 14:13:18,187 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57275111 passed
2026-05-20 14:13:18,188 - DEBUG - ====Verifying policy data for ctest-vn-57275111 in API_Server ======
2026-05-20 14:13:18,188 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-05-20 14:13:18,194 - DEBUG - Requesting: http://10.0.0.240:8082/domain/a4266347-02a7-4b0f-b19b-2b30b5e370d6
2026-05-20 14:13:18,206 - DEBUG - Requesting: http://10.0.0.240:8082/project/13c1a5d4-3db3-4922-b8ca-815b5d3931bb
2026-05-20 14:13:18,287 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/9da4ee79-1780-417d-bda6-1edb0902eef7
2026-05-20 14:13:18,299 - DEBUG - ==>Verifying data for policy with id: a258601a-1e5b-48a1-9ed4-d0ca8d7254ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-62052151', 'ctest-policy-allow-all-07618365']
2026-05-20 14:13:18,299 - INFO - VN ctest-vn-57275111 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 14:13:18,299 - DEBUG - Verifying the vn in opserver
2026-05-20 14:13:18,299 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-57275111 virtual network link through opserver 10.0.0.240
2026-05-20 14:13:18,299 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2026-05-20 14:13:18,312 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-57275111', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-57275111?flat'}
2026-05-20 14:13:18,312 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62052151:ctest-vn-57275111 is found in opserver
2026-05-20 14:13:18,326 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 14:13:18,332 - DEBUG - VRF ids for VN ctest-vn-57275111: {}
2026-05-20 14:13:18,422 - DEBUG - Services list from nova: [