2026-01-30 23:53:21,421 - INFO - Domain Default found not creating
2026-01-30 23:53:21,598 - INFO - Project ctest-TestBasicPolicy-53914848 not found, creating it
2026-01-30 23:53:22,069 - INFO - Created Project:ctest-TestBasicPolicy-53914848, ID : 46809d3a-3e52-474e-8a7a-1cdf68f51757
2026-01-30 23:53:23,581 - INFO - ================================================================================
2026-01-30 23:53:23,581 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-30 23:53:23,581 - 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-01-30 23:53:23,838 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-01-30 23:53:23,838 - INFO - Initial checks done. Running the testcase now
2026-01-30 23:53:23,838 - INFO -
2026-01-30 23:53:24,397 - DEBUG - Response for create_network : {'network': {'id': '3c484bbf-74aa-420c-96ce-057ba1b4557f', 'name': 'ctest-vn-02742478', 'tenant_id': '46809d3a3e52474e8a7a1cdf68f51757', 'project_id': '46809d3a3e52474e8a7a1cdf68f51757', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-vn-02742478'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 23:53:24,597 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e23b2854-b374-4de8-80e8-e3adc7a8a623', 'name': '', 'tenant_id': '46809d3a3e52474e8a7a1cdf68f51757', 'network_id': '3c484bbf-74aa-420c-96ce-057ba1b4557f', 'ip_version': 4, 'cidr': '77.107.55.0/26', 'allocation_pools': [{'start': '77.107.55.2', 'end': '77.107.55.62'}], 'gateway_ip': '77.107.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.107.55.2', 'tags': [], 'project_id': '46809d3a3e52474e8a7a1cdf68f51757'}}
2026-01-30 23:53:24,614 - INFO - Created VN ctest-vn-02742478
2026-01-30 23:53:24,667 - DEBUG - VN ctest-vn-02742478 UUID is 3c484bbf-74aa-420c-96ce-057ba1b4557f
2026-01-30 23:53:24,987 - DEBUG - Response for create_network : {'network': {'id': '379ecc8b-ead3-413b-a9c0-8ba4fe642957', 'name': 'ctest-vn-14842714', 'tenant_id': '46809d3a3e52474e8a7a1cdf68f51757', 'project_id': '46809d3a3e52474e8a7a1cdf68f51757', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-vn-14842714'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 23:53:25,194 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3c97e26-53c4-47c3-919c-1aa03192455c', 'name': '', 'tenant_id': '46809d3a3e52474e8a7a1cdf68f51757', 'network_id': '379ecc8b-ead3-413b-a9c0-8ba4fe642957', 'ip_version': 4, 'cidr': '31.89.155.0/26', 'allocation_pools': [{'start': '31.89.155.2', 'end': '31.89.155.62'}], 'gateway_ip': '31.89.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.89.155.2', 'tags': [], 'project_id': '46809d3a3e52474e8a7a1cdf68f51757'}}
2026-01-30 23:53:25,213 - INFO - Created VN ctest-vn-14842714
2026-01-30 23:53:25,263 - DEBUG - VN ctest-vn-14842714 UUID is 379ecc8b-ead3-413b-a9c0-8ba4fe642957
2026-01-30 23:53:25,378 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-02742478, 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-53914848:ctest-vn-14842714, 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-01-30 23:53:25,661 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c484bbf-74aa-420c-96ce-057ba1b4557f', 'name': 'ctest-vn-02742478', 'tenant_id': '46809d3a3e52474e8a7a1cdf68f51757', 'project_id': '46809d3a3e52474e8a7a1cdf68f51757', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e23b2854-b374-4de8-80e8-e3adc7a8a623'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-vn-02742478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-policy-allow-all-08673445']], 'subnet_ipam': [{'subnet_cidr': '77.107.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 23:53:25,891 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '379ecc8b-ead3-413b-a9c0-8ba4fe642957', 'name': 'ctest-vn-14842714', 'tenant_id': '46809d3a3e52474e8a7a1cdf68f51757', 'project_id': '46809d3a3e52474e8a7a1cdf68f51757', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3c97e26-53c4-47c3-919c-1aa03192455c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-vn-14842714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-policy-allow-all-08673445']], 'subnet_ipam': [{'subnet_cidr': '31.89.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 23:53:26,063 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-30 23:53:26,360 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-30 23:53:26,392 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551
2026-01-30 23:53:26,404 - DEBUG - Requesting: http://10.0.0.33:8082/project/46809d3a-3e52-474e-8a7a-1cdf68f51757
2026-01-30 23:53:26,476 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c484bbf-74aa-420c-96ce-057ba1b4557f
2026-01-30 23:53:26,486 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c484bbf-74aa-420c-96ce-057ba1b4557f
2026-01-30 23:53:26,495 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/906b0c30-9114-4aa6-8b45-546135ad4d64
2026-01-30 23:53:26,501 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/906b0c30-9114-4aa6-8b45-546135ad4d64
2026-01-30 23:53:26,507 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ccba2f21-e184-45f2-a127-10900a8ef717
2026-01-30 23:53:26,512 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 23:53:26,512 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c484bbf-74aa-420c-96ce-057ba1b4557f
2026-01-30 23:53:26,521 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/906b0c30-9114-4aa6-8b45-546135ad4d64
2026-01-30 23:53:26,533 - INFO - Verified VN network id 12 for VN 3c484bbf-74aa-420c-96ce-057ba1b4557f
2026-01-30 23:53:26,533 - INFO - Verifications in API Server for VN ctest-vn-02742478 passed
2026-01-30 23:53:26,533 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c484bbf-74aa-420c-96ce-057ba1b4557f
2026-01-30 23:53:26,541 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/906b0c30-9114-4aa6-8b45-546135ad4d64
2026-01-30 23:53:26,547 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/906b0c30-9114-4aa6-8b45-546135ad4d64
2026-01-30 23:53:26,553 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ccba2f21-e184-45f2-a127-10900a8ef717
2026-01-30 23:53:26,564 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-02742478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53914848', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4343805126266995212', 'uuid-lslong': '10866628979443651967'}, 'enable': 'true', 'created': '2026-01-30T23:53:24', 'last-modified': '2026-01-30T23:53:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921996'}
2026-01-30 23:53:26,570 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 23:53:26,570 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02742478 passed
2026-01-30 23:53:26,570 - DEBUG - ====Verifying policy data for ctest-vn-02742478 in API_Server ======
2026-01-30 23:53:26,570 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-30 23:53:26,575 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551
2026-01-30 23:53:26,585 - DEBUG - Requesting: http://10.0.0.33:8082/project/46809d3a-3e52-474e-8a7a-1cdf68f51757
2026-01-30 23:53:26,655 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c484bbf-74aa-420c-96ce-057ba1b4557f
2026-01-30 23:53:26,664 - DEBUG - ==>Verifying data for policy with id: 132a20fd-5d5d-4207-8d6d-bc7e262402e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-policy-allow-all-08673445']
2026-01-30 23:53:26,664 - INFO - VN ctest-vn-02742478 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 23:53:26,664 - DEBUG - Verifying the vn in opserver
2026-01-30 23:53:26,664 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-02742478 virtual network link through opserver 10.0.0.33
2026-01-30 23:53:26,664 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-01-30 23:53:26,963 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-01-30 23:53:27,026 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-02742478', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-02742478?flat'}
2026-01-30 23:53:27,026 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-02742478 is found in opserver
2026-01-30 23:53:27,037 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 23:53:27,041 - DEBUG - VRF ids for VN ctest-vn-02742478: {}
2026-01-30 23:53:27,041 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-30 23:53:27,046 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551
2026-01-30 23:53:27,056 - DEBUG - Requesting: http://10.0.0.33:8082/project/46809d3a-3e52-474e-8a7a-1cdf68f51757
2026-01-30 23:53:27,126 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/379ecc8b-ead3-413b-a9c0-8ba4fe642957
2026-01-30 23:53:27,137 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/379ecc8b-ead3-413b-a9c0-8ba4fe642957
2026-01-30 23:53:27,147 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/27c00e8c-3be8-48ea-a243-9c5d1bea2b71
2026-01-30 23:53:27,154 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/27c00e8c-3be8-48ea-a243-9c5d1bea2b71
2026-01-30 23:53:27,162 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3875a36c-e11e-45b5-b21e-af0cdf216995
2026-01-30 23:53:27,169 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 23:53:27,169 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/379ecc8b-ead3-413b-a9c0-8ba4fe642957
2026-01-30 23:53:27,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/27c00e8c-3be8-48ea-a243-9c5d1bea2b71
2026-01-30 23:53:27,192 - INFO - Verified VN network id 13 for VN 379ecc8b-ead3-413b-a9c0-8ba4fe642957
2026-01-30 23:53:27,192 - INFO - Verifications in API Server for VN ctest-vn-14842714 passed
2026-01-30 23:53:27,192 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/379ecc8b-ead3-413b-a9c0-8ba4fe642957
2026-01-30 23:53:27,200 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/27c00e8c-3be8-48ea-a243-9c5d1bea2b71
2026-01-30 23:53:27,206 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/27c00e8c-3be8-48ea-a243-9c5d1bea2b71
2026-01-30 23:53:27,212 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3875a36c-e11e-45b5-b21e-af0cdf216995
2026-01-30 23:53:27,225 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-14842714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53914848', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4007865619718553915', 'uuid-lslong': '12231930128697141591'}, 'enable': 'true', 'created': '2026-01-30T23:53:24', 'last-modified': '2026-01-30T23:53:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354058'}
2026-01-30 23:53:27,230 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 23:53:27,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14842714 passed
2026-01-30 23:53:27,230 - DEBUG - ====Verifying policy data for ctest-vn-14842714 in API_Server ======
2026-01-30 23:53:27,231 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-01-30 23:53:27,236 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551
2026-01-30 23:53:27,248 - DEBUG - Requesting: http://10.0.0.33:8082/project/46809d3a-3e52-474e-8a7a-1cdf68f51757
2026-01-30 23:53:27,321 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/379ecc8b-ead3-413b-a9c0-8ba4fe642957
2026-01-30 23:53:27,330 - DEBUG - ==>Verifying data for policy with id: 132a20fd-5d5d-4207-8d6d-bc7e262402e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-53914848', 'ctest-policy-allow-all-08673445']
2026-01-30 23:53:27,330 - INFO - VN ctest-vn-14842714 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 23:53:27,330 - DEBUG - Verifying the vn in opserver
2026-01-30 23:53:27,330 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-14842714 virtual network link through opserver 10.0.0.33
2026-01-30 23:53:27,330 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-01-30 23:53:27,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-14842714', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-14842714?flat'}
2026-01-30 23:53:27,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53914848:ctest-vn-14842714 is found in opserver
2026-01-30 23:53:27,351 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 23:53:27,356 - DEBUG - VRF ids for VN ctest-vn-14842714: {}
2026-01-30 23:53:27,418 - DEBUG - Services list from nova: [