2026-02-16 17:11:51,704 - INFO - Domain Default found not creating
2026-02-16 17:11:51,850 - INFO - Project ctest-TestBasicPolicy-78201806 not found, creating it
2026-02-16 17:11:52,274 - INFO - Created Project:ctest-TestBasicPolicy-78201806, ID : bb409ca7-85c7-43bf-bbe7-25626a180526
2026-02-16 17:11:53,686 - INFO - ================================================================================
2026-02-16 17:11:53,686 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-16 17:11:53,686 - 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-16 17:11:53,940 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-02-16 17:11:53,941 - INFO - Initial checks done. Running the testcase now
2026-02-16 17:11:53,941 - INFO -
2026-02-16 17:11:54,470 - DEBUG - Response for create_network : {'network': {'id': 'f12d7d5c-2b88-44bd-9045-729374bd86f3', 'name': 'ctest-vn-33907483', 'tenant_id': 'bb409ca785c743bfbbe725626a180526', 'project_id': 'bb409ca785c743bfbbe725626a180526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-vn-33907483'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 17:11:54,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '35900049-dd0f-40db-9d85-3c59488e5ece', 'name': '', 'tenant_id': 'bb409ca785c743bfbbe725626a180526', 'network_id': 'f12d7d5c-2b88-44bd-9045-729374bd86f3', 'ip_version': 4, 'cidr': '121.73.93.64/26', 'allocation_pools': [{'start': '121.73.93.66', 'end': '121.73.93.126'}], 'gateway_ip': '121.73.93.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.73.93.66', 'tags': [], 'project_id': 'bb409ca785c743bfbbe725626a180526'}}
2026-02-16 17:11:54,656 - INFO - Created VN ctest-vn-33907483
2026-02-16 17:11:54,707 - DEBUG - VN ctest-vn-33907483 UUID is f12d7d5c-2b88-44bd-9045-729374bd86f3
2026-02-16 17:11:54,974 - DEBUG - Response for create_network : {'network': {'id': '1ead9f0f-d507-47b7-b925-2d4f0998ae07', 'name': 'ctest-vn-90906258', 'tenant_id': 'bb409ca785c743bfbbe725626a180526', 'project_id': 'bb409ca785c743bfbbe725626a180526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-vn-90906258'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 17:11:55,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '18037222-ee67-4ca8-8ea7-9cf6f19c9db5', 'name': '', 'tenant_id': 'bb409ca785c743bfbbe725626a180526', 'network_id': '1ead9f0f-d507-47b7-b925-2d4f0998ae07', 'ip_version': 4, 'cidr': '149.226.179.192/26', 'allocation_pools': [{'start': '149.226.179.194', 'end': '149.226.179.254'}], 'gateway_ip': '149.226.179.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.226.179.194', 'tags': [], 'project_id': 'bb409ca785c743bfbbe725626a180526'}}
2026-02-16 17:11:55,173 - INFO - Created VN ctest-vn-90906258
2026-02-16 17:11:55,223 - DEBUG - VN ctest-vn-90906258 UUID is 1ead9f0f-d507-47b7-b925-2d4f0998ae07
2026-02-16 17:11:55,341 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-33907483, 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-78201806:ctest-vn-90906258, 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-16 17:11:55,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f12d7d5c-2b88-44bd-9045-729374bd86f3', 'name': 'ctest-vn-33907483', 'tenant_id': 'bb409ca785c743bfbbe725626a180526', 'project_id': 'bb409ca785c743bfbbe725626a180526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35900049-dd0f-40db-9d85-3c59488e5ece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-vn-33907483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-policy-allow-all-33077295']], 'subnet_ipam': [{'subnet_cidr': '121.73.93.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 17:11:55,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ead9f0f-d507-47b7-b925-2d4f0998ae07', 'name': 'ctest-vn-90906258', 'tenant_id': 'bb409ca785c743bfbbe725626a180526', 'project_id': 'bb409ca785c743bfbbe725626a180526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18037222-ee67-4ca8-8ea7-9cf6f19c9db5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-vn-90906258'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-policy-allow-all-33077295']], 'subnet_ipam': [{'subnet_cidr': '149.226.179.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 17:11:55,995 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 17:11:56,297 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 17:11:56,369 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b
2026-02-16 17:11:56,380 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb409ca7-85c7-43bf-bbe7-25626a180526
2026-02-16 17:11:56,452 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f12d7d5c-2b88-44bd-9045-729374bd86f3
2026-02-16 17:11:56,468 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f12d7d5c-2b88-44bd-9045-729374bd86f3
2026-02-16 17:11:56,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348dc7d3-3d72-4f1a-ae10-696ef1f8e100
2026-02-16 17:11:56,482 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348dc7d3-3d72-4f1a-ae10-696ef1f8e100
2026-02-16 17:11:56,489 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/81ffb195-5bd7-4699-994e-502be9b326d4
2026-02-16 17:11:56,495 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 17:11:56,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f12d7d5c-2b88-44bd-9045-729374bd86f3
2026-02-16 17:11:56,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348dc7d3-3d72-4f1a-ae10-696ef1f8e100
2026-02-16 17:11:56,517 - INFO - Verified VN network id 11 for VN f12d7d5c-2b88-44bd-9045-729374bd86f3
2026-02-16 17:11:56,518 - INFO - Verifications in API Server for VN ctest-vn-33907483 passed
2026-02-16 17:11:56,518 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f12d7d5c-2b88-44bd-9045-729374bd86f3
2026-02-16 17:11:56,527 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348dc7d3-3d72-4f1a-ae10-696ef1f8e100
2026-02-16 17:11:56,533 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348dc7d3-3d72-4f1a-ae10-696ef1f8e100
2026-02-16 17:11:56,538 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/81ffb195-5bd7-4699-994e-502be9b326d4
2026-02-16 17:11:56,548 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-33907483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78201806', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17378684371913426109', 'uuid-lslong': '10395841292498994931'}, 'enable': 'true', 'created': '2026-02-16T17:11:54', 'last-modified': '2026-02-16T17:11:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945126'}
2026-02-16 17:11:56,556 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 17:11:56,556 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33907483 passed
2026-02-16 17:11:56,556 - DEBUG - ====Verifying policy data for ctest-vn-33907483 in API_Server ======
2026-02-16 17:11:56,556 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 17:11:56,561 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b
2026-02-16 17:11:56,570 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb409ca7-85c7-43bf-bbe7-25626a180526
2026-02-16 17:11:56,635 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f12d7d5c-2b88-44bd-9045-729374bd86f3
2026-02-16 17:11:56,643 - DEBUG - ==>Verifying data for policy with id: d826631b-8c29-48e8-8d03-e74e6bbfe1ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-policy-allow-all-33077295']
2026-02-16 17:11:56,643 - INFO - VN ctest-vn-33907483 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 17:11:56,644 - DEBUG - Verifying the vn in opserver
2026-02-16 17:11:56,644 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-33907483 virtual network link through opserver 10.0.0.38
2026-02-16 17:11:56,644 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-16 17:11:56,932 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-16 17:11:56,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-33907483', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-33907483?flat'}
2026-02-16 17:11:56,992 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-33907483 is found in opserver
2026-02-16 17:11:57,008 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 17:11:57,012 - DEBUG - VRF ids for VN ctest-vn-33907483: {}
2026-02-16 17:11:57,012 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 17:11:57,018 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b
2026-02-16 17:11:57,031 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb409ca7-85c7-43bf-bbe7-25626a180526
2026-02-16 17:11:57,103 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ead9f0f-d507-47b7-b925-2d4f0998ae07
2026-02-16 17:11:57,113 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ead9f0f-d507-47b7-b925-2d4f0998ae07
2026-02-16 17:11:57,121 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba0d5f-f7a6-4380-9346-a90d96c77ff8
2026-02-16 17:11:57,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba0d5f-f7a6-4380-9346-a90d96c77ff8
2026-02-16 17:11:57,133 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f2c04aaf-899f-41bc-b7e4-a574c06ac15e
2026-02-16 17:11:57,139 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 17:11:57,139 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ead9f0f-d507-47b7-b925-2d4f0998ae07
2026-02-16 17:11:57,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba0d5f-f7a6-4380-9346-a90d96c77ff8
2026-02-16 17:11:57,160 - INFO - Verified VN network id 12 for VN 1ead9f0f-d507-47b7-b925-2d4f0998ae07
2026-02-16 17:11:57,160 - INFO - Verifications in API Server for VN ctest-vn-90906258 passed
2026-02-16 17:11:57,160 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ead9f0f-d507-47b7-b925-2d4f0998ae07
2026-02-16 17:11:57,170 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba0d5f-f7a6-4380-9346-a90d96c77ff8
2026-02-16 17:11:57,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/53ba0d5f-f7a6-4380-9346-a90d96c77ff8
2026-02-16 17:11:57,185 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f2c04aaf-899f-41bc-b7e4-a574c06ac15e
2026-02-16 17:11:57,195 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-90906258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78201806', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2210597882456131511', 'uuid-lslong': '13341119288641629703'}, 'enable': 'true', 'created': '2026-02-16T17:11:54', 'last-modified': '2026-02-16T17:11:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367659'}
2026-02-16 17:11:57,200 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 17:11:57,200 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90906258 passed
2026-02-16 17:11:57,200 - DEBUG - ====Verifying policy data for ctest-vn-90906258 in API_Server ======
2026-02-16 17:11:57,200 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 17:11:57,205 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b
2026-02-16 17:11:57,216 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb409ca7-85c7-43bf-bbe7-25626a180526
2026-02-16 17:11:57,287 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ead9f0f-d507-47b7-b925-2d4f0998ae07
2026-02-16 17:11:57,296 - DEBUG - ==>Verifying data for policy with id: d826631b-8c29-48e8-8d03-e74e6bbfe1ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-78201806', 'ctest-policy-allow-all-33077295']
2026-02-16 17:11:57,296 - INFO - VN ctest-vn-90906258 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 17:11:57,296 - DEBUG - Verifying the vn in opserver
2026-02-16 17:11:57,296 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-90906258 virtual network link through opserver 10.0.0.38
2026-02-16 17:11:57,296 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-16 17:11:57,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-90906258', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-90906258?flat'}
2026-02-16 17:11:57,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78201806:ctest-vn-90906258 is found in opserver
2026-02-16 17:11:57,316 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 17:11:57,321 - DEBUG - VRF ids for VN ctest-vn-90906258: {}
2026-02-16 17:11:57,376 - DEBUG - Services list from nova: [