2025-04-09 13:02:26,096 - INFO - Domain Default found not creating
2025-04-09 13:02:26,248 - INFO - Project ctest-TestBasicPolicy-56861623 not found, creating it
2025-04-09 13:02:26,736 - INFO - Created Project:ctest-TestBasicPolicy-56861623, ID : a406d8c3-9a6b-4bf3-ac32-41d3a455ba78
2025-04-09 13:02:28,247 - INFO - ================================================================================
2025-04-09 13:02:28,247 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 13:02:28,247 - 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-04-09 13:02:28,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.252': {'10.20.0.14': '0'}} with
2025-04-09 13:02:28,508 - INFO - Initial checks done. Running the testcase now
2025-04-09 13:02:28,508 - INFO -
2025-04-09 13:02:29,104 - DEBUG - Response for create_network : {'network': {'id': '924f7d8c-6b36-4d35-89b5-ad9b85d07955', 'name': 'ctest-vn-47933603', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-47933603'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:29,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '562fa904-4d5c-4819-8e25-e6d2506e5b57', 'name': '', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'network_id': '924f7d8c-6b36-4d35-89b5-ad9b85d07955', 'ip_version': 4, 'cidr': '41.94.72.128/26', 'allocation_pools': [{'start': '41.94.72.130', 'end': '41.94.72.190'}], 'gateway_ip': '41.94.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.94.72.130', 'tags': [], 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78'}}
2025-04-09 13:02:29,300 - INFO - Created VN ctest-vn-47933603
2025-04-09 13:02:29,353 - DEBUG - VN ctest-vn-47933603 UUID is 924f7d8c-6b36-4d35-89b5-ad9b85d07955
2025-04-09 13:02:29,677 - DEBUG - Response for create_network : {'network': {'id': '09d86ab9-3f93-4e17-bdc0-3ddde169da8a', 'name': 'ctest-vn-16718764', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-16718764'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:29,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '02d6b6e5-bed5-4efc-97db-ce15c1ff56eb', 'name': '', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'network_id': '09d86ab9-3f93-4e17-bdc0-3ddde169da8a', 'ip_version': 4, 'cidr': '28.80.240.64/26', 'allocation_pools': [{'start': '28.80.240.66', 'end': '28.80.240.126'}], 'gateway_ip': '28.80.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.80.240.66', 'tags': [], 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78'}}
2025-04-09 13:02:29,933 - INFO - Created VN ctest-vn-16718764
2025-04-09 13:02:29,989 - DEBUG - VN ctest-vn-16718764 UUID is 09d86ab9-3f93-4e17-bdc0-3ddde169da8a
2025-04-09 13:02:30,114 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603, 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-56861623:ctest-vn-16718764, 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-04-09 13:02:30,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '924f7d8c-6b36-4d35-89b5-ad9b85d07955', 'name': 'ctest-vn-47933603', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['562fa904-4d5c-4819-8e25-e6d2506e5b57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-47933603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434']], 'subnet_ipam': [{'subnet_cidr': '41.94.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:30,677 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09d86ab9-3f93-4e17-bdc0-3ddde169da8a', 'name': 'ctest-vn-16718764', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02d6b6e5-bed5-4efc-97db-ce15c1ff56eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-16718764'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434']], 'subnet_ipam': [{'subnet_cidr': '28.80.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 13:02:30,845 - DEBUG - Requesting: http://10.0.0.252:8082/domains
2025-04-09 13:02:31,166 - DEBUG - Requesting: http://10.0.0.252:8082/domains
2025-04-09 13:02:31,197 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63
2025-04-09 13:02:31,211 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78
2025-04-09 13:02:31,289 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955
2025-04-09 13:02:31,303 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955
2025-04-09 13:02:31,315 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6
2025-04-09 13:02:31,323 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6
2025-04-09 13:02:31,331 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/98631f5c-d0ef-4029-a8c6-e21d6d1e6e40
2025-04-09 13:02:31,339 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 13:02:31,339 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955
2025-04-09 13:02:31,349 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6
2025-04-09 13:02:31,366 - INFO - Verified VN network id 8 for VN 924f7d8c-6b36-4d35-89b5-ad9b85d07955
2025-04-09 13:02:31,366 - INFO - Verifications in API Server for VN ctest-vn-47933603 passed
2025-04-09 13:02:31,367 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955
2025-04-09 13:02:31,378 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6
2025-04-09 13:02:31,386 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6
2025-04-09 13:02:31,394 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/98631f5c-d0ef-4029-a8c6-e21d6d1e6e40
2025-04-09 13:02:31,408 - DEBUG - Control-node 10.0.0.252 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56861623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10542783294745234741', 'uuid-lslong': '9923028237457324373'}, 'enable': 'true', 'created': '2025-04-09T13:02:29', 'last-modified': '2025-04-09T13:02:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007097'}
2025-04-09 13:02:31,416 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 13:02:31,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47933603 passed
2025-04-09 13:02:31,416 - DEBUG - ====Verifying policy data for ctest-vn-47933603 in API_Server ======
2025-04-09 13:02:31,416 - DEBUG - Requesting: http://10.0.0.252:8082/domains
2025-04-09 13:02:31,423 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63
2025-04-09 13:02:31,435 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78
2025-04-09 13:02:31,513 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955
2025-04-09 13:02:31,527 - DEBUG - ==>Verifying data for policy with id: f208e9dd-034f-4d58-b72f-24ff870ef4fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434']
2025-04-09 13:02:31,527 - INFO - VN ctest-vn-47933603 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 13:02:31,527 - DEBUG - Verifying the vn in opserver
2025-04-09 13:02:31,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603 virtual network link through opserver 10.0.0.252
2025-04-09 13:02:31,528 - DEBUG - Requesting: http://10.0.0.252:8081/analytics/uves/virtual-networks
2025-04-09 13:02:31,819 - DEBUG - Requesting: http://10.0.0.252:8081/analytics/uves/virtual-networks
2025-04-09 13:02:31,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603', 'href': 'http://10.0.0.252:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603?flat'}
2025-04-09 13:02:31,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603 is found in opserver
2025-04-09 13:02:31,890 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 13:02:31,898 - DEBUG - VRF ids for VN ctest-vn-47933603: {}
2025-04-09 13:02:31,898 - DEBUG - Requesting: http://10.0.0.252:8082/domains
2025-04-09 13:02:31,905 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63
2025-04-09 13:02:31,919 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78
2025-04-09 13:02:32,005 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a
2025-04-09 13:02:32,019 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a
2025-04-09 13:02:32,030 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946
2025-04-09 13:02:32,038 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946
2025-04-09 13:02:32,045 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/02d06598-be92-42d6-a4f3-a94386863a64
2025-04-09 13:02:32,052 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 13:02:32,052 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a
2025-04-09 13:02:32,063 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946
2025-04-09 13:02:32,079 - INFO - Verified VN network id 9 for VN 09d86ab9-3f93-4e17-bdc0-3ddde169da8a
2025-04-09 13:02:32,079 - INFO - Verifications in API Server for VN ctest-vn-16718764 passed
2025-04-09 13:02:32,079 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a
2025-04-09 13:02:32,091 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946
2025-04-09 13:02:32,098 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946
2025-04-09 13:02:32,106 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/02d06598-be92-42d6-a4f3-a94386863a64
2025-04-09 13:02:32,118 - DEBUG - Control-node 10.0.0.252 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56861623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '709434285178965527', 'uuid-lslong': '13672996491875703434'}, 'enable': 'true', 'created': '2025-04-09T13:02:29', 'last-modified': '2025-04-09T13:02:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466286'}
2025-04-09 13:02:32,126 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 13:02:32,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16718764 passed
2025-04-09 13:02:32,126 - DEBUG - ====Verifying policy data for ctest-vn-16718764 in API_Server ======
2025-04-09 13:02:32,126 - DEBUG - Requesting: http://10.0.0.252:8082/domains
2025-04-09 13:02:32,132 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63
2025-04-09 13:02:32,153 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78
2025-04-09 13:02:32,234 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a
2025-04-09 13:02:32,246 - DEBUG - ==>Verifying data for policy with id: f208e9dd-034f-4d58-b72f-24ff870ef4fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434']
2025-04-09 13:02:32,246 - INFO - VN ctest-vn-16718764 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 13:02:32,246 - DEBUG - Verifying the vn in opserver
2025-04-09 13:02:32,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764 virtual network link through opserver 10.0.0.252
2025-04-09 13:02:32,246 - DEBUG - Requesting: http://10.0.0.252:8081/analytics/uves/virtual-networks
2025-04-09 13:02:32,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764', 'href': 'http://10.0.0.252:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764?flat'}
2025-04-09 13:02:32,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764 is found in opserver
2025-04-09 13:02:32,268 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 13:02:32,273 - DEBUG - VRF ids for VN ctest-vn-16718764: {}
2025-04-09 13:02:32,328 - DEBUG - Services list from nova: [