2026-01-16 14:12:27,686 - INFO - Domain Default found not creating
2026-01-16 14:12:27,831 - INFO - Project ctest-TestBasicPolicy-74511382 not found, creating it
2026-01-16 14:12:28,263 - INFO - Created Project:ctest-TestBasicPolicy-74511382, ID : 89d15a4e-3cb6-4f4e-bf38-4988b783b7ac
2026-01-16 14:12:29,680 - INFO - ================================================================================
2026-01-16 14:12:29,680 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-16 14:12:29,680 - 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-16 14:12:29,936 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-01-16 14:12:29,936 - INFO - Initial checks done. Running the testcase now
2026-01-16 14:12:29,936 - INFO -
2026-01-16 14:12:30,456 - DEBUG - Response for create_network : {'network': {'id': '43d78330-5332-4d3a-a2a2-f086e6849fad', 'name': 'ctest-vn-73583385', 'tenant_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'project_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-vn-73583385'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:12:30,646 - DEBUG - Response for create_subnet : {'subnet': {'id': '655d0a18-2beb-4a4b-95e9-81764228610a', 'name': '', 'tenant_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'network_id': '43d78330-5332-4d3a-a2a2-f086e6849fad', 'ip_version': 4, 'cidr': '114.148.97.0/26', 'allocation_pools': [{'start': '114.148.97.2', 'end': '114.148.97.62'}], 'gateway_ip': '114.148.97.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.148.97.2', 'tags': [], 'project_id': '89d15a4e3cb64f4ebf384988b783b7ac'}}
2026-01-16 14:12:30,661 - INFO - Created VN ctest-vn-73583385
2026-01-16 14:12:30,711 - DEBUG - VN ctest-vn-73583385 UUID is 43d78330-5332-4d3a-a2a2-f086e6849fad
2026-01-16 14:12:31,013 - DEBUG - Response for create_network : {'network': {'id': '81e3e310-d37e-4ed3-8090-361dddc21425', 'name': 'ctest-vn-19057999', 'tenant_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'project_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-vn-19057999'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:12:31,189 - DEBUG - Response for create_subnet : {'subnet': {'id': '810720df-3e0f-434c-9754-df2b211a6ece', 'name': '', 'tenant_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'network_id': '81e3e310-d37e-4ed3-8090-361dddc21425', 'ip_version': 4, 'cidr': '87.231.94.0/26', 'allocation_pools': [{'start': '87.231.94.2', 'end': '87.231.94.62'}], 'gateway_ip': '87.231.94.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.231.94.2', 'tags': [], 'project_id': '89d15a4e3cb64f4ebf384988b783b7ac'}}
2026-01-16 14:12:31,206 - INFO - Created VN ctest-vn-19057999
2026-01-16 14:12:31,259 - DEBUG - VN ctest-vn-19057999 UUID is 81e3e310-d37e-4ed3-8090-361dddc21425
2026-01-16 14:12:31,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-73583385, 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-74511382:ctest-vn-19057999, 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-16 14:12:31,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43d78330-5332-4d3a-a2a2-f086e6849fad', 'name': 'ctest-vn-73583385', 'tenant_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'project_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['655d0a18-2beb-4a4b-95e9-81764228610a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-vn-73583385'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-policy-allow-all-41402050']], 'subnet_ipam': [{'subnet_cidr': '114.148.97.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:12:31,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81e3e310-d37e-4ed3-8090-361dddc21425', 'name': 'ctest-vn-19057999', 'tenant_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'project_id': '89d15a4e3cb64f4ebf384988b783b7ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['810720df-3e0f-434c-9754-df2b211a6ece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-vn-19057999'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-policy-allow-all-41402050']], 'subnet_ipam': [{'subnet_cidr': '87.231.94.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:12:32,075 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-16 14:12:32,387 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-16 14:12:32,425 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3645bec5-fd2f-4a03-917d-55da375bc260
2026-01-16 14:12:32,436 - DEBUG - Requesting: http://10.0.0.50:8082/project/89d15a4e-3cb6-4f4e-bf38-4988b783b7ac
2026-01-16 14:12:32,504 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/43d78330-5332-4d3a-a2a2-f086e6849fad
2026-01-16 14:12:32,516 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/43d78330-5332-4d3a-a2a2-f086e6849fad
2026-01-16 14:12:32,525 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f99c7e0f-2bee-4ca8-abf8-621469cfcce4
2026-01-16 14:12:32,533 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f99c7e0f-2bee-4ca8-abf8-621469cfcce4
2026-01-16 14:12:32,540 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/07ebfe6e-4cf6-4fb5-8b95-f08b8c014ba1
2026-01-16 14:12:32,547 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 14:12:32,547 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/43d78330-5332-4d3a-a2a2-f086e6849fad
2026-01-16 14:12:32,557 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f99c7e0f-2bee-4ca8-abf8-621469cfcce4
2026-01-16 14:12:32,576 - INFO - Verified VN network id 12 for VN 43d78330-5332-4d3a-a2a2-f086e6849fad
2026-01-16 14:12:32,577 - INFO - Verifications in API Server for VN ctest-vn-73583385 passed
2026-01-16 14:12:32,577 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/43d78330-5332-4d3a-a2a2-f086e6849fad
2026-01-16 14:12:32,586 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f99c7e0f-2bee-4ca8-abf8-621469cfcce4
2026-01-16 14:12:32,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f99c7e0f-2bee-4ca8-abf8-621469cfcce4
2026-01-16 14:12:32,599 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/07ebfe6e-4cf6-4fb5-8b95-f08b8c014ba1
2026-01-16 14:12:32,610 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-73583385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74511382', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4888520164111437114', 'uuid-lslong': '11719193642555187117'}, 'enable': 'true', 'created': '2026-01-16T14:12:30', 'last-modified': '2026-01-16T14:12:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940344'}
2026-01-16 14:12:32,617 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 14:12:32,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73583385 passed
2026-01-16 14:12:32,617 - DEBUG - ====Verifying policy data for ctest-vn-73583385 in API_Server ======
2026-01-16 14:12:32,617 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-16 14:12:32,622 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3645bec5-fd2f-4a03-917d-55da375bc260
2026-01-16 14:12:32,633 - DEBUG - Requesting: http://10.0.0.50:8082/project/89d15a4e-3cb6-4f4e-bf38-4988b783b7ac
2026-01-16 14:12:32,708 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/43d78330-5332-4d3a-a2a2-f086e6849fad
2026-01-16 14:12:32,717 - DEBUG - ==>Verifying data for policy with id: 7932a2e6-5455-486f-b1c3-fa4cb7c3ca20, fqn: ['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-policy-allow-all-41402050']
2026-01-16 14:12:32,717 - INFO - VN ctest-vn-73583385 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 14:12:32,717 - DEBUG - Verifying the vn in opserver
2026-01-16 14:12:32,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-73583385 virtual network link through opserver 10.0.0.50
2026-01-16 14:12:32,718 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-16 14:12:33,008 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-16 14:12:33,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-73583385', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-73583385?flat'}
2026-01-16 14:12:33,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-73583385 is found in opserver
2026-01-16 14:12:33,074 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 14:12:33,078 - DEBUG - VRF ids for VN ctest-vn-73583385: {}
2026-01-16 14:12:33,078 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-16 14:12:33,083 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3645bec5-fd2f-4a03-917d-55da375bc260
2026-01-16 14:12:33,092 - DEBUG - Requesting: http://10.0.0.50:8082/project/89d15a4e-3cb6-4f4e-bf38-4988b783b7ac
2026-01-16 14:12:33,157 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/81e3e310-d37e-4ed3-8090-361dddc21425
2026-01-16 14:12:33,168 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/81e3e310-d37e-4ed3-8090-361dddc21425
2026-01-16 14:12:33,177 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/498970f7-d6fc-4fde-a7b0-cbdfe998c080
2026-01-16 14:12:33,185 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/498970f7-d6fc-4fde-a7b0-cbdfe998c080
2026-01-16 14:12:33,192 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/64812bef-fe8b-4387-9104-b9ff1d512d72
2026-01-16 14:12:33,198 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 14:12:33,198 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/81e3e310-d37e-4ed3-8090-361dddc21425
2026-01-16 14:12:33,205 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/498970f7-d6fc-4fde-a7b0-cbdfe998c080
2026-01-16 14:12:33,217 - INFO - Verified VN network id 13 for VN 81e3e310-d37e-4ed3-8090-361dddc21425
2026-01-16 14:12:33,217 - INFO - Verifications in API Server for VN ctest-vn-19057999 passed
2026-01-16 14:12:33,217 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/81e3e310-d37e-4ed3-8090-361dddc21425
2026-01-16 14:12:33,225 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/498970f7-d6fc-4fde-a7b0-cbdfe998c080
2026-01-16 14:12:33,231 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/498970f7-d6fc-4fde-a7b0-cbdfe998c080
2026-01-16 14:12:33,236 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/64812bef-fe8b-4387-9104-b9ff1d512d72
2026-01-16 14:12:33,246 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-19057999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74511382', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9359574112013274835', 'uuid-lslong': '9263963935403545637'}, 'enable': 'true', 'created': '2026-01-16T14:12:30', 'last-modified': '2026-01-16T14:12:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.357840'}
2026-01-16 14:12:33,253 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 14:12:33,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19057999 passed
2026-01-16 14:12:33,253 - DEBUG - ====Verifying policy data for ctest-vn-19057999 in API_Server ======
2026-01-16 14:12:33,253 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-16 14:12:33,260 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3645bec5-fd2f-4a03-917d-55da375bc260
2026-01-16 14:12:33,271 - DEBUG - Requesting: http://10.0.0.50:8082/project/89d15a4e-3cb6-4f4e-bf38-4988b783b7ac
2026-01-16 14:12:33,338 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/81e3e310-d37e-4ed3-8090-361dddc21425
2026-01-16 14:12:33,347 - DEBUG - ==>Verifying data for policy with id: 7932a2e6-5455-486f-b1c3-fa4cb7c3ca20, fqn: ['default-domain', 'ctest-TestBasicPolicy-74511382', 'ctest-policy-allow-all-41402050']
2026-01-16 14:12:33,347 - INFO - VN ctest-vn-19057999 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 14:12:33,347 - DEBUG - Verifying the vn in opserver
2026-01-16 14:12:33,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-19057999 virtual network link through opserver 10.0.0.50
2026-01-16 14:12:33,347 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-16 14:12:33,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-19057999', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-19057999?flat'}
2026-01-16 14:12:33,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74511382:ctest-vn-19057999 is found in opserver
2026-01-16 14:12:33,366 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 14:12:33,370 - DEBUG - VRF ids for VN ctest-vn-19057999: {}
2026-01-16 14:12:33,422 - DEBUG - Services list from nova: [