2026-03-24 14:38:57,772 - INFO - Domain Default found not creating
2026-03-24 14:38:57,936 - INFO - Project ctest-TestBasicPolicy-52005541 not found, creating it
2026-03-24 14:38:58,429 - INFO - Created Project:ctest-TestBasicPolicy-52005541, ID : 2956b0db-1d00-4096-a059-fbad37f43eda
2026-03-24 14:38:59,936 - INFO - ================================================================================
2026-03-24 14:38:59,936 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-24 14:38:59,936 - 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-03-24 14:39:00,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-03-24 14:39:00,193 - INFO - Initial checks done. Running the testcase now
2026-03-24 14:39:00,193 - INFO -
2026-03-24 14:39:00,722 - DEBUG - Response for create_network : {'network': {'id': 'fcb4174e-5e4f-4b8c-924b-007c3829f0be', 'name': 'ctest-vn-81262821', 'tenant_id': '2956b0db1d004096a059fbad37f43eda', 'project_id': '2956b0db1d004096a059fbad37f43eda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-vn-81262821'], 'port_security_enabled': True, 'description': ''}}
2026-03-24 14:39:00,925 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3e7d9a0-b7a4-46a3-a0dc-9b3aeb00e36a', 'name': '', 'tenant_id': '2956b0db1d004096a059fbad37f43eda', 'network_id': 'fcb4174e-5e4f-4b8c-924b-007c3829f0be', 'ip_version': 4, 'cidr': '103.219.46.192/26', 'allocation_pools': [{'start': '103.219.46.194', 'end': '103.219.46.254'}], 'gateway_ip': '103.219.46.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.219.46.194', 'tags': [], 'project_id': '2956b0db1d004096a059fbad37f43eda'}}
2026-03-24 14:39:00,941 - INFO - Created VN ctest-vn-81262821
2026-03-24 14:39:00,990 - DEBUG - VN ctest-vn-81262821 UUID is fcb4174e-5e4f-4b8c-924b-007c3829f0be
2026-03-24 14:39:01,295 - DEBUG - Response for create_network : {'network': {'id': '14efae18-6f6f-4aa5-b066-3755b34dc1d4', 'name': 'ctest-vn-16798556', 'tenant_id': '2956b0db1d004096a059fbad37f43eda', 'project_id': '2956b0db1d004096a059fbad37f43eda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-vn-16798556'], 'port_security_enabled': True, 'description': ''}}
2026-03-24 14:39:01,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '18f8c496-d19a-4a1e-82ac-c75a2d39d348', 'name': '', 'tenant_id': '2956b0db1d004096a059fbad37f43eda', 'network_id': '14efae18-6f6f-4aa5-b066-3755b34dc1d4', 'ip_version': 4, 'cidr': '149.168.241.64/26', 'allocation_pools': [{'start': '149.168.241.66', 'end': '149.168.241.126'}], 'gateway_ip': '149.168.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.168.241.66', 'tags': [], 'project_id': '2956b0db1d004096a059fbad37f43eda'}}
2026-03-24 14:39:01,467 - INFO - Created VN ctest-vn-16798556
2026-03-24 14:39:01,518 - DEBUG - VN ctest-vn-16798556 UUID is 14efae18-6f6f-4aa5-b066-3755b34dc1d4
2026-03-24 14:39:01,666 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-81262821, 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-52005541:ctest-vn-16798556, 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-03-24 14:39:01,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcb4174e-5e4f-4b8c-924b-007c3829f0be', 'name': 'ctest-vn-81262821', 'tenant_id': '2956b0db1d004096a059fbad37f43eda', 'project_id': '2956b0db1d004096a059fbad37f43eda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3e7d9a0-b7a4-46a3-a0dc-9b3aeb00e36a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-vn-81262821'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-policy-allow-all-05872319']], 'subnet_ipam': [{'subnet_cidr': '103.219.46.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-24 14:39:02,171 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14efae18-6f6f-4aa5-b066-3755b34dc1d4', 'name': 'ctest-vn-16798556', 'tenant_id': '2956b0db1d004096a059fbad37f43eda', 'project_id': '2956b0db1d004096a059fbad37f43eda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18f8c496-d19a-4a1e-82ac-c75a2d39d348'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-vn-16798556'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-policy-allow-all-05872319']], 'subnet_ipam': [{'subnet_cidr': '149.168.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-24 14:39:02,330 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-24 14:39:02,625 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-24 14:39:02,654 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a8453274-36c8-4c17-b371-2378d7f97245
2026-03-24 14:39:02,666 - DEBUG - Requesting: http://10.0.0.22:8082/project/2956b0db-1d00-4096-a059-fbad37f43eda
2026-03-24 14:39:02,738 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fcb4174e-5e4f-4b8c-924b-007c3829f0be
2026-03-24 14:39:02,747 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fcb4174e-5e4f-4b8c-924b-007c3829f0be
2026-03-24 14:39:02,754 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8e4b73fe-1666-4ad2-9377-2c00e65da7d9
2026-03-24 14:39:02,760 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8e4b73fe-1666-4ad2-9377-2c00e65da7d9
2026-03-24 14:39:02,765 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0dc4e2ac-6811-4a11-b0af-c7322e7c9945
2026-03-24 14:39:02,769 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-24 14:39:02,770 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fcb4174e-5e4f-4b8c-924b-007c3829f0be
2026-03-24 14:39:02,777 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8e4b73fe-1666-4ad2-9377-2c00e65da7d9
2026-03-24 14:39:02,788 - INFO - Verified VN network id 10 for VN fcb4174e-5e4f-4b8c-924b-007c3829f0be
2026-03-24 14:39:02,788 - INFO - Verifications in API Server for VN ctest-vn-81262821 passed
2026-03-24 14:39:02,788 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fcb4174e-5e4f-4b8c-924b-007c3829f0be
2026-03-24 14:39:02,797 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8e4b73fe-1666-4ad2-9377-2c00e65da7d9
2026-03-24 14:39:02,803 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8e4b73fe-1666-4ad2-9377-2c00e65da7d9
2026-03-24 14:39:02,810 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0dc4e2ac-6811-4a11-b0af-c7322e7c9945
2026-03-24 14:39:02,820 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-81262821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52005541', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18209204818722900876', 'uuid-lslong': '10541519886308995262'}, 'enable': 'true', 'created': '2026-03-24T14:39:00', 'last-modified': '2026-03-24T14:39:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.887570'}
2026-03-24 14:39:02,825 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-24 14:39:02,825 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81262821 passed
2026-03-24 14:39:02,826 - DEBUG - ====Verifying policy data for ctest-vn-81262821 in API_Server ======
2026-03-24 14:39:02,826 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-24 14:39:02,830 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a8453274-36c8-4c17-b371-2378d7f97245
2026-03-24 14:39:02,840 - DEBUG - Requesting: http://10.0.0.22:8082/project/2956b0db-1d00-4096-a059-fbad37f43eda
2026-03-24 14:39:02,912 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fcb4174e-5e4f-4b8c-924b-007c3829f0be
2026-03-24 14:39:02,921 - DEBUG - ==>Verifying data for policy with id: 89274b47-a80e-42cb-b45c-70c00626e356, fqn: ['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-policy-allow-all-05872319']
2026-03-24 14:39:02,921 - INFO - VN ctest-vn-81262821 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-24 14:39:02,921 - DEBUG - Verifying the vn in opserver
2026-03-24 14:39:02,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-81262821 virtual network link through opserver 10.0.0.22
2026-03-24 14:39:02,921 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-24 14:39:03,220 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-24 14:39:03,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-81262821', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-81262821?flat'}
2026-03-24 14:39:03,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-81262821 is found in opserver
2026-03-24 14:39:03,295 - DEBUG - Do not have enough data to verify VN in agent
2026-03-24 14:39:03,301 - DEBUG - VRF ids for VN ctest-vn-81262821: {}
2026-03-24 14:39:03,301 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-24 14:39:03,306 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a8453274-36c8-4c17-b371-2378d7f97245
2026-03-24 14:39:03,317 - DEBUG - Requesting: http://10.0.0.22:8082/project/2956b0db-1d00-4096-a059-fbad37f43eda
2026-03-24 14:39:03,386 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/14efae18-6f6f-4aa5-b066-3755b34dc1d4
2026-03-24 14:39:03,396 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/14efae18-6f6f-4aa5-b066-3755b34dc1d4
2026-03-24 14:39:03,406 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/13889934-5a52-4ec3-9dfb-9341d56ffb2f
2026-03-24 14:39:03,412 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/13889934-5a52-4ec3-9dfb-9341d56ffb2f
2026-03-24 14:39:03,419 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/08eab082-ce5d-4025-b056-561429eb6677
2026-03-24 14:39:03,427 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-24 14:39:03,427 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/14efae18-6f6f-4aa5-b066-3755b34dc1d4
2026-03-24 14:39:03,437 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/13889934-5a52-4ec3-9dfb-9341d56ffb2f
2026-03-24 14:39:03,450 - INFO - Verified VN network id 11 for VN 14efae18-6f6f-4aa5-b066-3755b34dc1d4
2026-03-24 14:39:03,450 - INFO - Verifications in API Server for VN ctest-vn-16798556 passed
2026-03-24 14:39:03,450 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/14efae18-6f6f-4aa5-b066-3755b34dc1d4
2026-03-24 14:39:03,458 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/13889934-5a52-4ec3-9dfb-9341d56ffb2f
2026-03-24 14:39:03,465 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/13889934-5a52-4ec3-9dfb-9341d56ffb2f
2026-03-24 14:39:03,471 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/08eab082-ce5d-4025-b056-561429eb6677
2026-03-24 14:39:03,480 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-16798556', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52005541', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1508615820164418213', 'uuid-lslong': '12710907839519769044'}, 'enable': 'true', 'created': '2026-03-24T14:39:01', 'last-modified': '2026-03-24T14:39:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.328329'}
2026-03-24 14:39:03,487 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-24 14:39:03,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16798556 passed
2026-03-24 14:39:03,487 - DEBUG - ====Verifying policy data for ctest-vn-16798556 in API_Server ======
2026-03-24 14:39:03,487 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-24 14:39:03,494 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a8453274-36c8-4c17-b371-2378d7f97245
2026-03-24 14:39:03,504 - DEBUG - Requesting: http://10.0.0.22:8082/project/2956b0db-1d00-4096-a059-fbad37f43eda
2026-03-24 14:39:03,581 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/14efae18-6f6f-4aa5-b066-3755b34dc1d4
2026-03-24 14:39:03,595 - DEBUG - ==>Verifying data for policy with id: 89274b47-a80e-42cb-b45c-70c00626e356, fqn: ['default-domain', 'ctest-TestBasicPolicy-52005541', 'ctest-policy-allow-all-05872319']
2026-03-24 14:39:03,595 - INFO - VN ctest-vn-16798556 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-24 14:39:03,595 - DEBUG - Verifying the vn in opserver
2026-03-24 14:39:03,595 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-16798556 virtual network link through opserver 10.0.0.22
2026-03-24 14:39:03,595 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-24 14:39:03,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-16798556', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-16798556?flat'}
2026-03-24 14:39:03,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52005541:ctest-vn-16798556 is found in opserver
2026-03-24 14:39:03,623 - DEBUG - Do not have enough data to verify VN in agent
2026-03-24 14:39:03,628 - DEBUG - VRF ids for VN ctest-vn-16798556: {}
2026-03-24 14:39:03,686 - DEBUG - Services list from nova: [