2026-10-02 19:22:03,236 - INFO - Domain Default found not creating
2026-10-02 19:22:03,441 - INFO - Project ctest-TestBasicPolicy-84795779 not found, creating it
2026-10-02 19:22:03,976 - INFO - Created Project:ctest-TestBasicPolicy-84795779, ID : c0039532-7f93-4a74-a438-569994d6079b
2026-10-02 19:22:05,913 - INFO - ================================================================================
2026-10-02 19:22:05,913 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-02 19:22:05,913 - 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-10-02 19:22:06,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.25': '0'}} with
2026-10-02 19:22:06,173 - INFO - Initial checks done. Running the testcase now
2026-10-02 19:22:06,173 - INFO -
2026-10-02 19:22:06,809 - DEBUG - Response for create_network : {'network': {'id': 'faec4dcc-69e7-43ec-8fde-1ddbd185bb69', 'name': 'ctest-vn-96711152', 'tenant_id': 'c00395327f934a74a438569994d6079b', 'project_id': 'c00395327f934a74a438569994d6079b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-vn-96711152'], 'port_security_enabled': True, 'description': ''}}
2026-10-02 19:22:06,996 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8f69f0d-f2cc-4b58-a445-5185c9faa83b', 'name': '', 'tenant_id': 'c00395327f934a74a438569994d6079b', 'network_id': 'faec4dcc-69e7-43ec-8fde-1ddbd185bb69', 'ip_version': 4, 'cidr': '132.27.177.192/26', 'allocation_pools': [{'start': '132.27.177.194', 'end': '132.27.177.254'}], 'gateway_ip': '132.27.177.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.27.177.194', 'tags': [], 'project_id': 'c00395327f934a74a438569994d6079b'}}
2026-10-02 19:22:07,017 - INFO - Created VN ctest-vn-96711152
2026-10-02 19:22:07,073 - DEBUG - VN ctest-vn-96711152 UUID is faec4dcc-69e7-43ec-8fde-1ddbd185bb69
2026-10-02 19:22:07,399 - DEBUG - Response for create_network : {'network': {'id': '4b36dbdf-08bb-499f-9a7b-f5ae31093dc0', 'name': 'ctest-vn-83420651', 'tenant_id': 'c00395327f934a74a438569994d6079b', 'project_id': 'c00395327f934a74a438569994d6079b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-vn-83420651'], 'port_security_enabled': True, 'description': ''}}
2026-10-02 19:22:07,562 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd87669dd-c109-4edc-a7d0-ac9218120ff0', 'name': '', 'tenant_id': 'c00395327f934a74a438569994d6079b', 'network_id': '4b36dbdf-08bb-499f-9a7b-f5ae31093dc0', 'ip_version': 4, 'cidr': '66.191.5.0/26', 'allocation_pools': [{'start': '66.191.5.2', 'end': '66.191.5.62'}], 'gateway_ip': '66.191.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.191.5.2', 'tags': [], 'project_id': 'c00395327f934a74a438569994d6079b'}}
2026-10-02 19:22:07,581 - INFO - Created VN ctest-vn-83420651
2026-10-02 19:22:07,641 - DEBUG - VN ctest-vn-83420651 UUID is 4b36dbdf-08bb-499f-9a7b-f5ae31093dc0
2026-10-02 19:22:07,763 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-96711152, 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-84795779:ctest-vn-83420651, 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-10-02 19:22:08,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'faec4dcc-69e7-43ec-8fde-1ddbd185bb69', 'name': 'ctest-vn-96711152', 'tenant_id': 'c00395327f934a74a438569994d6079b', 'project_id': 'c00395327f934a74a438569994d6079b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c8f69f0d-f2cc-4b58-a445-5185c9faa83b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-vn-96711152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-policy-allow-all-14267986']], 'subnet_ipam': [{'subnet_cidr': '132.27.177.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-02 19:22:08,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b36dbdf-08bb-499f-9a7b-f5ae31093dc0', 'name': 'ctest-vn-83420651', 'tenant_id': 'c00395327f934a74a438569994d6079b', 'project_id': 'c00395327f934a74a438569994d6079b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d87669dd-c109-4edc-a7d0-ac9218120ff0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-vn-83420651'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-policy-allow-all-14267986']], 'subnet_ipam': [{'subnet_cidr': '66.191.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-02 19:22:08,569 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-02 19:22:08,945 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-02 19:22:08,977 - DEBUG - Requesting: http://10.0.0.186:8082/domain/a24bce4b-476f-41c4-928e-f9548332552e
2026-10-02 19:22:08,994 - DEBUG - Requesting: http://10.0.0.186:8082/project/c0039532-7f93-4a74-a438-569994d6079b
2026-10-02 19:22:09,076 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/faec4dcc-69e7-43ec-8fde-1ddbd185bb69
2026-10-02 19:22:09,090 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/faec4dcc-69e7-43ec-8fde-1ddbd185bb69
2026-10-02 19:22:09,102 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/ed6b227c-e459-4ff4-953e-7a1fe924b061
2026-10-02 19:22:09,113 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/ed6b227c-e459-4ff4-953e-7a1fe924b061
2026-10-02 19:22:09,121 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/bf71bd40-d7ae-4de6-91e9-c7b1a7b68209
2026-10-02 19:22:09,131 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-02 19:22:09,131 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/faec4dcc-69e7-43ec-8fde-1ddbd185bb69
2026-10-02 19:22:09,146 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/ed6b227c-e459-4ff4-953e-7a1fe924b061
2026-10-02 19:22:09,164 - INFO - Verified VN network id 12 for VN faec4dcc-69e7-43ec-8fde-1ddbd185bb69
2026-10-02 19:22:09,164 - INFO - Verifications in API Server for VN ctest-vn-96711152 passed
2026-10-02 19:22:09,164 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/faec4dcc-69e7-43ec-8fde-1ddbd185bb69
2026-10-02 19:22:09,176 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/ed6b227c-e459-4ff4-953e-7a1fe924b061
2026-10-02 19:22:09,186 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/ed6b227c-e459-4ff4-953e-7a1fe924b061
2026-10-02 19:22:09,196 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/bf71bd40-d7ae-4de6-91e9-c7b1a7b68209
2026-10-02 19:22:09,214 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-96711152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84795779', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18080912144331129836', 'uuid-lslong': '10366756222203706217'}, 'enable': 'true', 'created': '2026-10-02T19:22:06', 'last-modified': '2026-10-02T19:22:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.117067'}
2026-10-02 19:22:09,225 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-02 19:22:09,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96711152 passed
2026-10-02 19:22:09,226 - DEBUG - ====Verifying policy data for ctest-vn-96711152 in API_Server ======
2026-10-02 19:22:09,226 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-02 19:22:09,234 - DEBUG - Requesting: http://10.0.0.186:8082/domain/a24bce4b-476f-41c4-928e-f9548332552e
2026-10-02 19:22:09,247 - DEBUG - Requesting: http://10.0.0.186:8082/project/c0039532-7f93-4a74-a438-569994d6079b
2026-10-02 19:22:09,326 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/faec4dcc-69e7-43ec-8fde-1ddbd185bb69
2026-10-02 19:22:09,338 - DEBUG - ==>Verifying data for policy with id: 4a63cb7f-b5df-4a09-82c8-32f1af52efb2, fqn: ['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-policy-allow-all-14267986']
2026-10-02 19:22:09,339 - INFO - VN ctest-vn-96711152 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-02 19:22:09,339 - DEBUG - Verifying the vn in opserver
2026-10-02 19:22:09,339 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-96711152 virtual network link through opserver 10.0.0.186
2026-10-02 19:22:09,339 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks
2026-10-02 19:22:09,705 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks
2026-10-02 19:22:09,767 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-96711152', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-96711152?flat'}
2026-10-02 19:22:09,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-96711152 is found in opserver
2026-10-02 19:22:09,780 - DEBUG - Do not have enough data to verify VN in agent
2026-10-02 19:22:09,785 - DEBUG - VRF ids for VN ctest-vn-96711152: {}
2026-10-02 19:22:09,785 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-02 19:22:09,792 - DEBUG - Requesting: http://10.0.0.186:8082/domain/a24bce4b-476f-41c4-928e-f9548332552e
2026-10-02 19:22:09,807 - DEBUG - Requesting: http://10.0.0.186:8082/project/c0039532-7f93-4a74-a438-569994d6079b
2026-10-02 19:22:09,886 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/4b36dbdf-08bb-499f-9a7b-f5ae31093dc0
2026-10-02 19:22:09,900 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/4b36dbdf-08bb-499f-9a7b-f5ae31093dc0
2026-10-02 19:22:09,912 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/dfbb7f5f-b920-4acb-8dcd-1a9e51a79116
2026-10-02 19:22:09,921 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/dfbb7f5f-b920-4acb-8dcd-1a9e51a79116
2026-10-02 19:22:09,929 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/c52a6db1-861a-408f-941e-77b578af3a77
2026-10-02 19:22:09,937 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-02 19:22:09,937 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/4b36dbdf-08bb-499f-9a7b-f5ae31093dc0
2026-10-02 19:22:09,947 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/dfbb7f5f-b920-4acb-8dcd-1a9e51a79116
2026-10-02 19:22:09,964 - INFO - Verified VN network id 13 for VN 4b36dbdf-08bb-499f-9a7b-f5ae31093dc0
2026-10-02 19:22:09,965 - INFO - Verifications in API Server for VN ctest-vn-83420651 passed
2026-10-02 19:22:09,965 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/4b36dbdf-08bb-499f-9a7b-f5ae31093dc0
2026-10-02 19:22:09,975 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/dfbb7f5f-b920-4acb-8dcd-1a9e51a79116
2026-10-02 19:22:09,983 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/dfbb7f5f-b920-4acb-8dcd-1a9e51a79116
2026-10-02 19:22:09,990 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/c52a6db1-861a-408f-941e-77b578af3a77
2026-10-02 19:22:10,005 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-83420651', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84795779', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5419760952557652383', 'uuid-lslong': '11131761032472116672'}, 'enable': 'true', 'created': '2026-10-02T19:22:07', 'last-modified': '2026-10-02T19:22:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.642987'}
2026-10-02 19:22:10,013 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-02 19:22:10,013 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83420651 passed
2026-10-02 19:22:10,013 - DEBUG - ====Verifying policy data for ctest-vn-83420651 in API_Server ======
2026-10-02 19:22:10,013 - DEBUG - Requesting: http://10.0.0.186:8082/domains
2026-10-02 19:22:10,020 - DEBUG - Requesting: http://10.0.0.186:8082/domain/a24bce4b-476f-41c4-928e-f9548332552e
2026-10-02 19:22:10,034 - DEBUG - Requesting: http://10.0.0.186:8082/project/c0039532-7f93-4a74-a438-569994d6079b
2026-10-02 19:22:10,114 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/4b36dbdf-08bb-499f-9a7b-f5ae31093dc0
2026-10-02 19:22:10,125 - DEBUG - ==>Verifying data for policy with id: 4a63cb7f-b5df-4a09-82c8-32f1af52efb2, fqn: ['default-domain', 'ctest-TestBasicPolicy-84795779', 'ctest-policy-allow-all-14267986']
2026-10-02 19:22:10,126 - INFO - VN ctest-vn-83420651 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-02 19:22:10,126 - DEBUG - Verifying the vn in opserver
2026-10-02 19:22:10,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-83420651 virtual network link through opserver 10.0.0.186
2026-10-02 19:22:10,126 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks
2026-10-02 19:22:10,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-83420651', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-83420651?flat'}
2026-10-02 19:22:10,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84795779:ctest-vn-83420651 is found in opserver
2026-10-02 19:22:10,152 - DEBUG - Do not have enough data to verify VN in agent
2026-10-02 19:22:10,158 - DEBUG - VRF ids for VN ctest-vn-83420651: {}
2026-10-02 19:22:10,232 - DEBUG - Services list from nova: [