2025-07-23 17:20:15,556 - INFO - Domain Default found not creating
2025-07-23 17:20:15,697 - INFO - Project ctest-TestBasicPolicy-15130107 not found, creating it
2025-07-23 17:20:16,148 - INFO - Created Project:ctest-TestBasicPolicy-15130107, ID : 7cccd9e0-fa95-42eb-8447-e426ed2e61d9
2025-07-23 17:20:17,513 - INFO - ================================================================================
2025-07-23 17:20:17,514 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 17:20:17,514 - 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-07-23 17:20:17,776 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.18': '0'}} with
2025-07-23 17:20:17,776 - INFO - Initial checks done. Running the testcase now
2025-07-23 17:20:17,776 - INFO -
2025-07-23 17:20:18,309 - DEBUG - Response for create_network : {'network': {'id': '076c5b2f-46f0-4d41-8a97-20884c5dd9c6', 'name': 'ctest-vn-04746194', 'tenant_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'project_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-vn-04746194'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 17:20:18,531 - DEBUG - Response for create_subnet : {'subnet': {'id': '02cf3275-2bf4-4a71-9bdf-0e03bd309f1e', 'name': '', 'tenant_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'network_id': '076c5b2f-46f0-4d41-8a97-20884c5dd9c6', 'ip_version': 4, 'cidr': '36.72.24.128/26', 'allocation_pools': [{'start': '36.72.24.130', 'end': '36.72.24.190'}], 'gateway_ip': '36.72.24.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.72.24.130', 'tags': [], 'project_id': '7cccd9e0fa9542eb8447e426ed2e61d9'}}
2025-07-23 17:20:18,551 - INFO - Created VN ctest-vn-04746194
2025-07-23 17:20:18,607 - DEBUG - VN ctest-vn-04746194 UUID is 076c5b2f-46f0-4d41-8a97-20884c5dd9c6
2025-07-23 17:20:18,897 - DEBUG - Response for create_network : {'network': {'id': '7f40af0c-8d58-4d2e-8151-c88731332322', 'name': 'ctest-vn-68511394', 'tenant_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'project_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-vn-68511394'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 17:20:19,079 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3e82363-b5f9-42fa-bc0f-8d892fe9869b', 'name': '', 'tenant_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'network_id': '7f40af0c-8d58-4d2e-8151-c88731332322', 'ip_version': 4, 'cidr': '110.31.113.128/26', 'allocation_pools': [{'start': '110.31.113.130', 'end': '110.31.113.190'}], 'gateway_ip': '110.31.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.31.113.130', 'tags': [], 'project_id': '7cccd9e0fa9542eb8447e426ed2e61d9'}}
2025-07-23 17:20:19,097 - INFO - Created VN ctest-vn-68511394
2025-07-23 17:20:19,151 - DEBUG - VN ctest-vn-68511394 UUID is 7f40af0c-8d58-4d2e-8151-c88731332322
2025-07-23 17:20:19,264 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-04746194, 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-15130107:ctest-vn-68511394, 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-07-23 17:20:19,557 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '076c5b2f-46f0-4d41-8a97-20884c5dd9c6', 'name': 'ctest-vn-04746194', 'tenant_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'project_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02cf3275-2bf4-4a71-9bdf-0e03bd309f1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-vn-04746194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-policy-allow-all-40891402']], 'subnet_ipam': [{'subnet_cidr': '36.72.24.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 17:20:19,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f40af0c-8d58-4d2e-8151-c88731332322', 'name': 'ctest-vn-68511394', 'tenant_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'project_id': '7cccd9e0fa9542eb8447e426ed2e61d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3e82363-b5f9-42fa-bc0f-8d892fe9869b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-vn-68511394'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-policy-allow-all-40891402']], 'subnet_ipam': [{'subnet_cidr': '110.31.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 17:20:19,939 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 17:20:20,236 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 17:20:20,263 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89
2025-07-23 17:20:20,279 - DEBUG - Requesting: http://10.0.0.254:8082/project/7cccd9e0-fa95-42eb-8447-e426ed2e61d9
2025-07-23 17:20:20,355 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/076c5b2f-46f0-4d41-8a97-20884c5dd9c6
2025-07-23 17:20:20,369 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/076c5b2f-46f0-4d41-8a97-20884c5dd9c6
2025-07-23 17:20:20,380 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c13a900-c02d-4cd7-8b49-93f4281613cc
2025-07-23 17:20:20,389 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c13a900-c02d-4cd7-8b49-93f4281613cc
2025-07-23 17:20:20,401 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d775c3bb-74be-42ee-8b34-f76702bb617d
2025-07-23 17:20:20,408 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 17:20:20,408 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/076c5b2f-46f0-4d41-8a97-20884c5dd9c6
2025-07-23 17:20:20,418 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c13a900-c02d-4cd7-8b49-93f4281613cc
2025-07-23 17:20:20,433 - INFO - Verified VN network id 12 for VN 076c5b2f-46f0-4d41-8a97-20884c5dd9c6
2025-07-23 17:20:20,433 - INFO - Verifications in API Server for VN ctest-vn-04746194 passed
2025-07-23 17:20:20,433 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/076c5b2f-46f0-4d41-8a97-20884c5dd9c6
2025-07-23 17:20:20,443 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c13a900-c02d-4cd7-8b49-93f4281613cc
2025-07-23 17:20:20,450 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c13a900-c02d-4cd7-8b49-93f4281613cc
2025-07-23 17:20:20,459 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d775c3bb-74be-42ee-8b34-f76702bb617d
2025-07-23 17:20:20,474 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-04746194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15130107', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '534902714361990465', 'uuid-lslong': '9986486468486224326'}, 'enable': 'true', 'created': '2025-07-23T17:20:18', 'last-modified': '2025-07-23T17:20:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934807'}
2025-07-23 17:20:20,484 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 17:20:20,484 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04746194 passed
2025-07-23 17:20:20,484 - DEBUG - ====Verifying policy data for ctest-vn-04746194 in API_Server ======
2025-07-23 17:20:20,484 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 17:20:20,492 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89
2025-07-23 17:20:20,508 - DEBUG - Requesting: http://10.0.0.254:8082/project/7cccd9e0-fa95-42eb-8447-e426ed2e61d9
2025-07-23 17:20:20,585 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/076c5b2f-46f0-4d41-8a97-20884c5dd9c6
2025-07-23 17:20:20,596 - DEBUG - ==>Verifying data for policy with id: 02706c2d-8c38-4dff-89bf-3d9720ad7cfc, fqn: ['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-policy-allow-all-40891402']
2025-07-23 17:20:20,596 - INFO - VN ctest-vn-04746194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 17:20:20,596 - DEBUG - Verifying the vn in opserver
2025-07-23 17:20:20,596 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-04746194 virtual network link through opserver 10.0.0.254
2025-07-23 17:20:20,596 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-23 17:20:20,886 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-23 17:20:20,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-04746194', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-04746194?flat'}
2025-07-23 17:20:20,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-04746194 is found in opserver
2025-07-23 17:20:20,956 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 17:20:20,961 - DEBUG - VRF ids for VN ctest-vn-04746194: {}
2025-07-23 17:20:20,961 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 17:20:20,967 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89
2025-07-23 17:20:20,979 - DEBUG - Requesting: http://10.0.0.254:8082/project/7cccd9e0-fa95-42eb-8447-e426ed2e61d9
2025-07-23 17:20:21,051 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f40af0c-8d58-4d2e-8151-c88731332322
2025-07-23 17:20:21,066 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f40af0c-8d58-4d2e-8151-c88731332322
2025-07-23 17:20:21,076 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5575272-4822-4f47-af32-f30c5d5ad765
2025-07-23 17:20:21,084 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5575272-4822-4f47-af32-f30c5d5ad765
2025-07-23 17:20:21,091 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/41e652c2-1fd6-4586-86df-6d1de1d75358
2025-07-23 17:20:21,098 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 17:20:21,098 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f40af0c-8d58-4d2e-8151-c88731332322
2025-07-23 17:20:21,108 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5575272-4822-4f47-af32-f30c5d5ad765
2025-07-23 17:20:21,123 - INFO - Verified VN network id 13 for VN 7f40af0c-8d58-4d2e-8151-c88731332322
2025-07-23 17:20:21,123 - INFO - Verifications in API Server for VN ctest-vn-68511394 passed
2025-07-23 17:20:21,123 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f40af0c-8d58-4d2e-8151-c88731332322
2025-07-23 17:20:21,136 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5575272-4822-4f47-af32-f30c5d5ad765
2025-07-23 17:20:21,144 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5575272-4822-4f47-af32-f30c5d5ad765
2025-07-23 17:20:21,152 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/41e652c2-1fd6-4586-86df-6d1de1d75358
2025-07-23 17:20:21,165 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-68511394', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15130107', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9169521309772172590', 'uuid-lslong': '9318449586977841954'}, 'enable': 'true', 'created': '2025-07-23T17:20:18', 'last-modified': '2025-07-23T17:20:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395638'}
2025-07-23 17:20:21,173 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 17:20:21,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68511394 passed
2025-07-23 17:20:21,173 - DEBUG - ====Verifying policy data for ctest-vn-68511394 in API_Server ======
2025-07-23 17:20:21,174 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-23 17:20:21,180 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89
2025-07-23 17:20:21,194 - DEBUG - Requesting: http://10.0.0.254:8082/project/7cccd9e0-fa95-42eb-8447-e426ed2e61d9
2025-07-23 17:20:21,264 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f40af0c-8d58-4d2e-8151-c88731332322
2025-07-23 17:20:21,274 - DEBUG - ==>Verifying data for policy with id: 02706c2d-8c38-4dff-89bf-3d9720ad7cfc, fqn: ['default-domain', 'ctest-TestBasicPolicy-15130107', 'ctest-policy-allow-all-40891402']
2025-07-23 17:20:21,274 - INFO - VN ctest-vn-68511394 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 17:20:21,274 - DEBUG - Verifying the vn in opserver
2025-07-23 17:20:21,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-68511394 virtual network link through opserver 10.0.0.254
2025-07-23 17:20:21,274 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-23 17:20:21,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-68511394', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-68511394?flat'}
2025-07-23 17:20:21,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15130107:ctest-vn-68511394 is found in opserver
2025-07-23 17:20:21,298 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 17:20:21,303 - DEBUG - VRF ids for VN ctest-vn-68511394: {}
2025-07-23 17:20:21,362 - DEBUG - Services list from nova: [