2026-02-09 17:44:35,544 - INFO - Domain Default found not creating
2026-02-09 17:44:35,901 - INFO - Project ctest-TestBasicPolicy-61460682 not found, creating it
2026-02-09 17:44:36,686 - INFO - Created Project:ctest-TestBasicPolicy-61460682, ID : 5efca3c2-d0b0-4b82-8ae8-a3e3ee51e739
2026-02-09 17:44:38,911 - INFO - ================================================================================
2026-02-09 17:44:38,911 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 17:44:38,911 - 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-02-09 17:44:39,246 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-02-09 17:44:39,246 - INFO - Initial checks done. Running the testcase now
2026-02-09 17:44:39,246 - INFO -
2026-02-09 17:44:40,173 - DEBUG - Response for create_network : {'network': {'id': 'bab23b22-aaf2-4ac9-b23b-041c2f95143d', 'name': 'ctest-vn-32333067', 'tenant_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'project_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-vn-32333067'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:44:40,396 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e32082dc-fbde-45fb-b0ac-1310fb1c6d6c', 'name': '', 'tenant_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'network_id': 'bab23b22-aaf2-4ac9-b23b-041c2f95143d', 'ip_version': 4, 'cidr': '57.178.128.64/26', 'allocation_pools': [{'start': '57.178.128.66', 'end': '57.178.128.126'}], 'gateway_ip': '57.178.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.178.128.66', 'tags': [], 'project_id': '5efca3c2d0b04b828ae8a3e3ee51e739'}}
2026-02-09 17:44:40,418 - INFO - Created VN ctest-vn-32333067
2026-02-09 17:44:40,475 - DEBUG - VN ctest-vn-32333067 UUID is bab23b22-aaf2-4ac9-b23b-041c2f95143d
2026-02-09 17:44:40,991 - DEBUG - Response for create_network : {'network': {'id': 'f99ec19d-3845-416f-874b-faf07a5ebb48', 'name': 'ctest-vn-15035801', 'tenant_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'project_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-vn-15035801'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:44:41,213 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0b12348-ba51-43fe-9c8f-6dff27949646', 'name': '', 'tenant_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'network_id': 'f99ec19d-3845-416f-874b-faf07a5ebb48', 'ip_version': 4, 'cidr': '37.31.235.192/26', 'allocation_pools': [{'start': '37.31.235.194', 'end': '37.31.235.254'}], 'gateway_ip': '37.31.235.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.31.235.194', 'tags': [], 'project_id': '5efca3c2d0b04b828ae8a3e3ee51e739'}}
2026-02-09 17:44:41,238 - INFO - Created VN ctest-vn-15035801
2026-02-09 17:44:41,300 - DEBUG - VN ctest-vn-15035801 UUID is f99ec19d-3845-416f-874b-faf07a5ebb48
2026-02-09 17:44:41,485 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-32333067, 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-61460682:ctest-vn-15035801, 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-02-09 17:44:41,975 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bab23b22-aaf2-4ac9-b23b-041c2f95143d', 'name': 'ctest-vn-32333067', 'tenant_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'project_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e32082dc-fbde-45fb-b0ac-1310fb1c6d6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-vn-32333067'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-policy-allow-all-76883857']], 'subnet_ipam': [{'subnet_cidr': '57.178.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:44:42,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f99ec19d-3845-416f-874b-faf07a5ebb48', 'name': 'ctest-vn-15035801', 'tenant_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'project_id': '5efca3c2d0b04b828ae8a3e3ee51e739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0b12348-ba51-43fe-9c8f-6dff27949646'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-vn-15035801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-policy-allow-all-76883857']], 'subnet_ipam': [{'subnet_cidr': '37.31.235.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:44:42,495 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 17:44:42,844 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 17:44:42,892 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03e5bf2a-cc50-4d4e-b904-e815bbe506e3
2026-02-09 17:44:42,914 - DEBUG - Requesting: http://10.0.0.38:8082/project/5efca3c2-d0b0-4b82-8ae8-a3e3ee51e739
2026-02-09 17:44:43,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bab23b22-aaf2-4ac9-b23b-041c2f95143d
2026-02-09 17:44:43,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bab23b22-aaf2-4ac9-b23b-041c2f95143d
2026-02-09 17:44:43,087 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd860ab6-8a2a-4e49-8a0d-af6bb42b5e6a
2026-02-09 17:44:43,096 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd860ab6-8a2a-4e49-8a0d-af6bb42b5e6a
2026-02-09 17:44:43,109 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/14359f2b-d082-4760-85a8-255136d75d21
2026-02-09 17:44:43,134 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 17:44:43,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bab23b22-aaf2-4ac9-b23b-041c2f95143d
2026-02-09 17:44:43,144 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd860ab6-8a2a-4e49-8a0d-af6bb42b5e6a
2026-02-09 17:44:43,161 - INFO - Verified VN network id 11 for VN bab23b22-aaf2-4ac9-b23b-041c2f95143d
2026-02-09 17:44:43,161 - INFO - Verifications in API Server for VN ctest-vn-32333067 passed
2026-02-09 17:44:43,161 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bab23b22-aaf2-4ac9-b23b-041c2f95143d
2026-02-09 17:44:43,174 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd860ab6-8a2a-4e49-8a0d-af6bb42b5e6a
2026-02-09 17:44:43,183 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd860ab6-8a2a-4e49-8a0d-af6bb42b5e6a
2026-02-09 17:44:43,194 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/14359f2b-d082-4760-85a8-255136d75d21
2026-02-09 17:44:43,220 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-32333067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61460682', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13452880056992025289', 'uuid-lslong': '12842863281480995901'}, 'enable': 'true', 'created': '2026-02-09T17:44:40', 'last-modified': '2026-02-09T17:44:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299819'}
2026-02-09 17:44:43,232 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 17:44:43,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32333067 passed
2026-02-09 17:44:43,233 - DEBUG - ====Verifying policy data for ctest-vn-32333067 in API_Server ======
2026-02-09 17:44:43,233 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 17:44:43,250 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03e5bf2a-cc50-4d4e-b904-e815bbe506e3
2026-02-09 17:44:43,264 - DEBUG - Requesting: http://10.0.0.38:8082/project/5efca3c2-d0b0-4b82-8ae8-a3e3ee51e739
2026-02-09 17:44:43,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bab23b22-aaf2-4ac9-b23b-041c2f95143d
2026-02-09 17:44:43,339 - DEBUG - ==>Verifying data for policy with id: 0d5dc69b-b0d9-4831-a52f-9d01105ec677, fqn: ['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-policy-allow-all-76883857']
2026-02-09 17:44:43,339 - INFO - VN ctest-vn-32333067 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 17:44:43,339 - DEBUG - Verifying the vn in opserver
2026-02-09 17:44:43,339 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-32333067 virtual network link through opserver 10.0.0.38
2026-02-09 17:44:43,339 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-09 17:44:43,674 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-09 17:44:43,764 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-32333067', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-32333067?flat'}
2026-02-09 17:44:43,764 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-32333067 is found in opserver
2026-02-09 17:44:43,783 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 17:44:43,791 - DEBUG - VRF ids for VN ctest-vn-32333067: {}
2026-02-09 17:44:43,791 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 17:44:43,800 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03e5bf2a-cc50-4d4e-b904-e815bbe506e3
2026-02-09 17:44:43,814 - DEBUG - Requesting: http://10.0.0.38:8082/project/5efca3c2-d0b0-4b82-8ae8-a3e3ee51e739
2026-02-09 17:44:43,917 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f99ec19d-3845-416f-874b-faf07a5ebb48
2026-02-09 17:44:43,933 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f99ec19d-3845-416f-874b-faf07a5ebb48
2026-02-09 17:44:43,949 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/19cbe63b-312a-4b0c-aebd-bd594a450519
2026-02-09 17:44:43,960 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/19cbe63b-312a-4b0c-aebd-bd594a450519
2026-02-09 17:44:43,971 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/09b1b13e-2732-4a09-bb4a-f41e1750c293
2026-02-09 17:44:43,981 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 17:44:43,982 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f99ec19d-3845-416f-874b-faf07a5ebb48
2026-02-09 17:44:43,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/19cbe63b-312a-4b0c-aebd-bd594a450519
2026-02-09 17:44:44,021 - INFO - Verified VN network id 12 for VN f99ec19d-3845-416f-874b-faf07a5ebb48
2026-02-09 17:44:44,022 - INFO - Verifications in API Server for VN ctest-vn-15035801 passed
2026-02-09 17:44:44,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f99ec19d-3845-416f-874b-faf07a5ebb48
2026-02-09 17:44:44,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/19cbe63b-312a-4b0c-aebd-bd594a450519
2026-02-09 17:44:44,052 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/19cbe63b-312a-4b0c-aebd-bd594a450519
2026-02-09 17:44:44,065 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/09b1b13e-2732-4a09-bb4a-f41e1750c293
2026-02-09 17:44:44,092 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-15035801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61460682', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17987026842762428783', 'uuid-lslong': '9749161729125694280'}, 'enable': 'true', 'created': '2026-02-09T17:44:40', 'last-modified': '2026-02-09T17:44:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.829857'}
2026-02-09 17:44:44,108 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 17:44:44,108 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15035801 passed
2026-02-09 17:44:44,109 - DEBUG - ====Verifying policy data for ctest-vn-15035801 in API_Server ======
2026-02-09 17:44:44,109 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-09 17:44:44,119 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03e5bf2a-cc50-4d4e-b904-e815bbe506e3
2026-02-09 17:44:44,145 - DEBUG - Requesting: http://10.0.0.38:8082/project/5efca3c2-d0b0-4b82-8ae8-a3e3ee51e739
2026-02-09 17:44:44,228 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f99ec19d-3845-416f-874b-faf07a5ebb48
2026-02-09 17:44:44,239 - DEBUG - ==>Verifying data for policy with id: 0d5dc69b-b0d9-4831-a52f-9d01105ec677, fqn: ['default-domain', 'ctest-TestBasicPolicy-61460682', 'ctest-policy-allow-all-76883857']
2026-02-09 17:44:44,239 - INFO - VN ctest-vn-15035801 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 17:44:44,239 - DEBUG - Verifying the vn in opserver
2026-02-09 17:44:44,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-15035801 virtual network link through opserver 10.0.0.38
2026-02-09 17:44:44,240 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-09 17:44:44,252 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-15035801', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-15035801?flat'}
2026-02-09 17:44:44,252 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61460682:ctest-vn-15035801 is found in opserver
2026-02-09 17:44:44,264 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 17:44:44,274 - DEBUG - VRF ids for VN ctest-vn-15035801: {}
2026-02-09 17:44:44,335 - DEBUG - Services list from nova: [