2025-11-21 18:35:14,182 - INFO - Domain Default found not creating
2025-11-21 18:35:14,368 - INFO - Project ctest-TestBasicPolicy-20670263 not found, creating it
2025-11-21 18:35:14,872 - INFO - Created Project:ctest-TestBasicPolicy-20670263, ID : 924fc34c-a77b-4e62-a674-dd8a15528306
2025-11-21 18:35:16,458 - INFO - ================================================================================
2025-11-21 18:35:16,458 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-21 18:35:16,459 - 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
2025-11-21 18:35:16,718 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with
2025-11-21 18:35:16,718 - INFO - Initial checks done. Running the testcase now
2025-11-21 18:35:16,719 - INFO -
2025-11-21 18:35:17,356 - DEBUG - Response for create_network : {'network': {'id': '9bac1881-bed4-4d35-9a33-76045215c908', 'name': 'ctest-vn-54860323', 'tenant_id': '924fc34ca77b4e62a674dd8a15528306', 'project_id': '924fc34ca77b4e62a674dd8a15528306', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-vn-54860323'], 'port_security_enabled': True, 'description': ''}}
2025-11-21 18:35:17,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f83cc33-0d09-4f02-9f6c-faf6f7bb4019', 'name': '', 'tenant_id': '924fc34ca77b4e62a674dd8a15528306', 'network_id': '9bac1881-bed4-4d35-9a33-76045215c908', 'ip_version': 4, 'cidr': '133.21.22.192/26', 'allocation_pools': [{'start': '133.21.22.194', 'end': '133.21.22.254'}], 'gateway_ip': '133.21.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.21.22.194', 'tags': [], 'project_id': '924fc34ca77b4e62a674dd8a15528306'}}
2025-11-21 18:35:17,537 - INFO - Created VN ctest-vn-54860323
2025-11-21 18:35:17,593 - DEBUG - VN ctest-vn-54860323 UUID is 9bac1881-bed4-4d35-9a33-76045215c908
2025-11-21 18:35:17,885 - DEBUG - Response for create_network : {'network': {'id': '1e17f8a0-97f7-4a5b-a781-f32dd1b5c832', 'name': 'ctest-vn-41575025', 'tenant_id': '924fc34ca77b4e62a674dd8a15528306', 'project_id': '924fc34ca77b4e62a674dd8a15528306', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-vn-41575025'], 'port_security_enabled': True, 'description': ''}}
2025-11-21 18:35:18,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '1faea434-ae2d-4cf7-b5ac-4c0c742e18e8', 'name': '', 'tenant_id': '924fc34ca77b4e62a674dd8a15528306', 'network_id': '1e17f8a0-97f7-4a5b-a781-f32dd1b5c832', 'ip_version': 4, 'cidr': '202.163.25.0/26', 'allocation_pools': [{'start': '202.163.25.2', 'end': '202.163.25.62'}], 'gateway_ip': '202.163.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.163.25.2', 'tags': [], 'project_id': '924fc34ca77b4e62a674dd8a15528306'}}
2025-11-21 18:35:18,127 - INFO - Created VN ctest-vn-41575025
2025-11-21 18:35:18,180 - DEBUG - VN ctest-vn-41575025 UUID is 1e17f8a0-97f7-4a5b-a781-f32dd1b5c832
2025-11-21 18:35:18,304 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-54860323, 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-20670263:ctest-vn-41575025, 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]
2025-11-21 18:35:18,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bac1881-bed4-4d35-9a33-76045215c908', 'name': 'ctest-vn-54860323', 'tenant_id': '924fc34ca77b4e62a674dd8a15528306', 'project_id': '924fc34ca77b4e62a674dd8a15528306', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f83cc33-0d09-4f02-9f6c-faf6f7bb4019'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-vn-54860323'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-policy-allow-all-50426266']], 'subnet_ipam': [{'subnet_cidr': '133.21.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-21 18:35:18,904 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e17f8a0-97f7-4a5b-a781-f32dd1b5c832', 'name': 'ctest-vn-41575025', 'tenant_id': '924fc34ca77b4e62a674dd8a15528306', 'project_id': '924fc34ca77b4e62a674dd8a15528306', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1faea434-ae2d-4cf7-b5ac-4c0c742e18e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-vn-41575025'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-policy-allow-all-50426266']], 'subnet_ipam': [{'subnet_cidr': '202.163.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-21 18:35:19,054 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 18:35:19,349 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 18:35:19,384 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e66b85b-2b71-4064-b026-b43b1d0ff4de
2025-11-21 18:35:19,396 - DEBUG - Requesting: http://10.0.0.22:8082/project/924fc34c-a77b-4e62-a674-dd8a15528306
2025-11-21 18:35:19,470 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9bac1881-bed4-4d35-9a33-76045215c908
2025-11-21 18:35:19,480 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9bac1881-bed4-4d35-9a33-76045215c908
2025-11-21 18:35:19,488 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20209cae-046a-499f-9393-654a650de8bb
2025-11-21 18:35:19,495 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20209cae-046a-499f-9393-654a650de8bb
2025-11-21 18:35:19,501 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d77a6817-1a46-4515-8d40-67eb5396407d
2025-11-21 18:35:19,507 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-21 18:35:19,507 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9bac1881-bed4-4d35-9a33-76045215c908
2025-11-21 18:35:19,516 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20209cae-046a-499f-9393-654a650de8bb
2025-11-21 18:35:19,528 - INFO - Verified VN network id 11 for VN 9bac1881-bed4-4d35-9a33-76045215c908
2025-11-21 18:35:19,528 - INFO - Verifications in API Server for VN ctest-vn-54860323 passed
2025-11-21 18:35:19,528 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9bac1881-bed4-4d35-9a33-76045215c908
2025-11-21 18:35:19,538 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20209cae-046a-499f-9393-654a650de8bb
2025-11-21 18:35:19,549 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20209cae-046a-499f-9393-654a650de8bb
2025-11-21 18:35:19,556 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d77a6817-1a46-4515-8d40-67eb5396407d
2025-11-21 18:35:19,569 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-54860323', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20670263', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11217367717404495157', 'uuid-lslong': '11111354466582251784'}, 'enable': 'true', 'created': '2025-11-21T18:35:17', 'last-modified': '2025-11-21T18:35:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991100'}
2025-11-21 18:35:19,577 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-21 18:35:19,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54860323 passed
2025-11-21 18:35:19,578 - DEBUG - ====Verifying policy data for ctest-vn-54860323 in API_Server ======
2025-11-21 18:35:19,578 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 18:35:19,584 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e66b85b-2b71-4064-b026-b43b1d0ff4de
2025-11-21 18:35:19,595 - DEBUG - Requesting: http://10.0.0.22:8082/project/924fc34c-a77b-4e62-a674-dd8a15528306
2025-11-21 18:35:19,671 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9bac1881-bed4-4d35-9a33-76045215c908
2025-11-21 18:35:19,680 - DEBUG - ==>Verifying data for policy with id: ce734fed-7444-4bb6-80d9-bad31a45d6a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-policy-allow-all-50426266']
2025-11-21 18:35:19,680 - INFO - VN ctest-vn-54860323 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-21 18:35:19,680 - DEBUG - Verifying the vn in opserver
2025-11-21 18:35:19,680 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-54860323 virtual network link through opserver 10.0.0.22
2025-11-21 18:35:19,681 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-21 18:35:19,974 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-21 18:35:20,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-54860323', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-54860323?flat'}
2025-11-21 18:35:20,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-54860323 is found in opserver
2025-11-21 18:35:20,054 - DEBUG - Do not have enough data to verify VN in agent
2025-11-21 18:35:20,059 - DEBUG - VRF ids for VN ctest-vn-54860323: {}
2025-11-21 18:35:20,060 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 18:35:20,065 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e66b85b-2b71-4064-b026-b43b1d0ff4de
2025-11-21 18:35:20,077 - DEBUG - Requesting: http://10.0.0.22:8082/project/924fc34c-a77b-4e62-a674-dd8a15528306
2025-11-21 18:35:20,147 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1e17f8a0-97f7-4a5b-a781-f32dd1b5c832
2025-11-21 18:35:20,159 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1e17f8a0-97f7-4a5b-a781-f32dd1b5c832
2025-11-21 18:35:20,169 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94aeaee9-2581-4dfa-9766-06ca63673dd7
2025-11-21 18:35:20,176 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94aeaee9-2581-4dfa-9766-06ca63673dd7
2025-11-21 18:35:20,185 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e076b24b-481c-4137-b066-075cc756fdd1
2025-11-21 18:35:20,192 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-21 18:35:20,192 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1e17f8a0-97f7-4a5b-a781-f32dd1b5c832
2025-11-21 18:35:20,201 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94aeaee9-2581-4dfa-9766-06ca63673dd7
2025-11-21 18:35:20,215 - INFO - Verified VN network id 12 for VN 1e17f8a0-97f7-4a5b-a781-f32dd1b5c832
2025-11-21 18:35:20,215 - INFO - Verifications in API Server for VN ctest-vn-41575025 passed
2025-11-21 18:35:20,215 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1e17f8a0-97f7-4a5b-a781-f32dd1b5c832
2025-11-21 18:35:20,225 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94aeaee9-2581-4dfa-9766-06ca63673dd7
2025-11-21 18:35:20,233 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94aeaee9-2581-4dfa-9766-06ca63673dd7
2025-11-21 18:35:20,241 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e076b24b-481c-4137-b066-075cc756fdd1
2025-11-21 18:35:20,254 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-41575025', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20670263', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2168475114230205019', 'uuid-lslong': '12070195854447069234'}, 'enable': 'true', 'created': '2025-11-21T18:35:17', 'last-modified': '2025-11-21T18:35:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427130'}
2025-11-21 18:35:20,260 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-21 18:35:20,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41575025 passed
2025-11-21 18:35:20,260 - DEBUG - ====Verifying policy data for ctest-vn-41575025 in API_Server ======
2025-11-21 18:35:20,260 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 18:35:20,266 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2e66b85b-2b71-4064-b026-b43b1d0ff4de
2025-11-21 18:35:20,278 - DEBUG - Requesting: http://10.0.0.22:8082/project/924fc34c-a77b-4e62-a674-dd8a15528306
2025-11-21 18:35:20,351 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1e17f8a0-97f7-4a5b-a781-f32dd1b5c832
2025-11-21 18:35:20,363 - DEBUG - ==>Verifying data for policy with id: ce734fed-7444-4bb6-80d9-bad31a45d6a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-20670263', 'ctest-policy-allow-all-50426266']
2025-11-21 18:35:20,363 - INFO - VN ctest-vn-41575025 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-21 18:35:20,363 - DEBUG - Verifying the vn in opserver
2025-11-21 18:35:20,363 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-41575025 virtual network link through opserver 10.0.0.22
2025-11-21 18:35:20,363 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-21 18:35:20,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-41575025', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-41575025?flat'}
2025-11-21 18:35:20,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20670263:ctest-vn-41575025 is found in opserver
2025-11-21 18:35:20,387 - DEBUG - Do not have enough data to verify VN in agent
2025-11-21 18:35:20,391 - DEBUG - VRF ids for VN ctest-vn-41575025: {}
2025-11-21 18:35:20,454 - DEBUG - Services list from nova: [