2025-11-03 02:28:36,701 - INFO - Domain Default found not creating
2025-11-03 02:28:36,864 - INFO - Project ctest-TestBasicPolicy-48232827 not found, creating it
2025-11-03 02:28:37,319 - INFO - Created Project:ctest-TestBasicPolicy-48232827, ID : 278dca6f-7f5f-4919-94b5-18f7b63207d8
2025-11-03 02:28:38,775 - INFO - ================================================================================
2025-11-03 02:28:38,775 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 02:28:38,775 - 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-03 02:28:39,037 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with
2025-11-03 02:28:39,037 - INFO - Initial checks done. Running the testcase now
2025-11-03 02:28:39,037 - INFO -
2025-11-03 02:28:39,581 - DEBUG - Response for create_network : {'network': {'id': 'b5380bad-9bce-4782-bc27-4982f143a75a', 'name': 'ctest-vn-97077865', 'tenant_id': '278dca6f7f5f491994b518f7b63207d8', 'project_id': '278dca6f7f5f491994b518f7b63207d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-vn-97077865'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:28:39,794 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e38d420-859a-47af-904b-4283168dc764', 'name': '', 'tenant_id': '278dca6f7f5f491994b518f7b63207d8', 'network_id': 'b5380bad-9bce-4782-bc27-4982f143a75a', 'ip_version': 4, 'cidr': '102.145.42.0/26', 'allocation_pools': [{'start': '102.145.42.2', 'end': '102.145.42.62'}], 'gateway_ip': '102.145.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.145.42.2', 'tags': [], 'project_id': '278dca6f7f5f491994b518f7b63207d8'}}
2025-11-03 02:28:39,811 - INFO - Created VN ctest-vn-97077865
2025-11-03 02:28:39,863 - DEBUG - VN ctest-vn-97077865 UUID is b5380bad-9bce-4782-bc27-4982f143a75a
2025-11-03 02:28:40,187 - DEBUG - Response for create_network : {'network': {'id': 'd774d2d4-b70b-47e7-8477-d23a36f9d160', 'name': 'ctest-vn-23905825', 'tenant_id': '278dca6f7f5f491994b518f7b63207d8', 'project_id': '278dca6f7f5f491994b518f7b63207d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-vn-23905825'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:28:40,337 - DEBUG - Response for create_subnet : {'subnet': {'id': '37cc96da-13a7-408a-8297-e0dddf7d5fea', 'name': '', 'tenant_id': '278dca6f7f5f491994b518f7b63207d8', 'network_id': 'd774d2d4-b70b-47e7-8477-d23a36f9d160', 'ip_version': 4, 'cidr': '29.88.131.0/26', 'allocation_pools': [{'start': '29.88.131.2', 'end': '29.88.131.62'}], 'gateway_ip': '29.88.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.88.131.2', 'tags': [], 'project_id': '278dca6f7f5f491994b518f7b63207d8'}}
2025-11-03 02:28:40,355 - INFO - Created VN ctest-vn-23905825
2025-11-03 02:28:40,407 - DEBUG - VN ctest-vn-23905825 UUID is d774d2d4-b70b-47e7-8477-d23a36f9d160
2025-11-03 02:28:40,551 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-97077865, 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-48232827:ctest-vn-23905825, 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-03 02:28:40,830 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5380bad-9bce-4782-bc27-4982f143a75a', 'name': 'ctest-vn-97077865', 'tenant_id': '278dca6f7f5f491994b518f7b63207d8', 'project_id': '278dca6f7f5f491994b518f7b63207d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e38d420-859a-47af-904b-4283168dc764'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-vn-97077865'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-policy-allow-all-67544621']], 'subnet_ipam': [{'subnet_cidr': '102.145.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:28:41,052 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd774d2d4-b70b-47e7-8477-d23a36f9d160', 'name': 'ctest-vn-23905825', 'tenant_id': '278dca6f7f5f491994b518f7b63207d8', 'project_id': '278dca6f7f5f491994b518f7b63207d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37cc96da-13a7-408a-8297-e0dddf7d5fea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-vn-23905825'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-policy-allow-all-67544621']], 'subnet_ipam': [{'subnet_cidr': '29.88.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 02:28:41,215 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 02:28:41,506 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 02:28:41,534 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0c1e50cf-6d4d-4c28-981d-ef4452d99140
2025-11-03 02:28:41,545 - DEBUG - Requesting: http://10.0.0.50:8082/project/278dca6f-7f5f-4919-94b5-18f7b63207d8
2025-11-03 02:28:41,618 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5380bad-9bce-4782-bc27-4982f143a75a
2025-11-03 02:28:41,633 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5380bad-9bce-4782-bc27-4982f143a75a
2025-11-03 02:28:41,645 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a34542e7-a617-4cdc-9784-de1d1e71b461
2025-11-03 02:28:41,655 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a34542e7-a617-4cdc-9784-de1d1e71b461
2025-11-03 02:28:41,664 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/81c19251-50dc-4a7c-95d3-f3a49c58b559
2025-11-03 02:28:41,672 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 02:28:41,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5380bad-9bce-4782-bc27-4982f143a75a
2025-11-03 02:28:41,684 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a34542e7-a617-4cdc-9784-de1d1e71b461
2025-11-03 02:28:41,702 - INFO - Verified VN network id 11 for VN b5380bad-9bce-4782-bc27-4982f143a75a
2025-11-03 02:28:41,702 - INFO - Verifications in API Server for VN ctest-vn-97077865 passed
2025-11-03 02:28:41,703 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5380bad-9bce-4782-bc27-4982f143a75a
2025-11-03 02:28:41,713 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a34542e7-a617-4cdc-9784-de1d1e71b461
2025-11-03 02:28:41,721 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a34542e7-a617-4cdc-9784-de1d1e71b461
2025-11-03 02:28:41,728 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/81c19251-50dc-4a7c-95d3-f3a49c58b559
2025-11-03 02:28:41,740 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-97077865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48232827', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13058199959831988098', 'uuid-lslong': '13557886029964486490'}, 'enable': 'true', 'created': '2025-11-03T02:28:39', 'last-modified': '2025-11-03T02:28:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928977'}
2025-11-03 02:28:41,746 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 02:28:41,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97077865 passed
2025-11-03 02:28:41,746 - DEBUG - ====Verifying policy data for ctest-vn-97077865 in API_Server ======
2025-11-03 02:28:41,746 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 02:28:41,752 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0c1e50cf-6d4d-4c28-981d-ef4452d99140
2025-11-03 02:28:41,765 - DEBUG - Requesting: http://10.0.0.50:8082/project/278dca6f-7f5f-4919-94b5-18f7b63207d8
2025-11-03 02:28:41,833 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b5380bad-9bce-4782-bc27-4982f143a75a
2025-11-03 02:28:41,841 - DEBUG - ==>Verifying data for policy with id: 96f0a153-d244-4957-a1e5-3ae682ad0181, fqn: ['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-policy-allow-all-67544621']
2025-11-03 02:28:41,841 - INFO - VN ctest-vn-97077865 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 02:28:41,841 - DEBUG - Verifying the vn in opserver
2025-11-03 02:28:41,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-97077865 virtual network link through opserver 10.0.0.50
2025-11-03 02:28:41,842 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-03 02:28:42,136 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-03 02:28:42,196 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-97077865', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-97077865?flat'}
2025-11-03 02:28:42,196 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-97077865 is found in opserver
2025-11-03 02:28:42,205 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 02:28:42,210 - DEBUG - VRF ids for VN ctest-vn-97077865: {}
2025-11-03 02:28:42,210 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 02:28:42,216 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0c1e50cf-6d4d-4c28-981d-ef4452d99140
2025-11-03 02:28:42,228 - DEBUG - Requesting: http://10.0.0.50:8082/project/278dca6f-7f5f-4919-94b5-18f7b63207d8
2025-11-03 02:28:42,296 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d774d2d4-b70b-47e7-8477-d23a36f9d160
2025-11-03 02:28:42,307 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d774d2d4-b70b-47e7-8477-d23a36f9d160
2025-11-03 02:28:42,316 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cfe94840-abeb-44f9-aaa3-ec015fd6443c
2025-11-03 02:28:42,323 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cfe94840-abeb-44f9-aaa3-ec015fd6443c
2025-11-03 02:28:42,329 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c0f1a471-ce07-43a9-8632-3b3371b7ad9a
2025-11-03 02:28:42,335 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 02:28:42,335 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d774d2d4-b70b-47e7-8477-d23a36f9d160
2025-11-03 02:28:42,344 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cfe94840-abeb-44f9-aaa3-ec015fd6443c
2025-11-03 02:28:42,355 - INFO - Verified VN network id 12 for VN d774d2d4-b70b-47e7-8477-d23a36f9d160
2025-11-03 02:28:42,356 - INFO - Verifications in API Server for VN ctest-vn-23905825 passed
2025-11-03 02:28:42,356 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d774d2d4-b70b-47e7-8477-d23a36f9d160
2025-11-03 02:28:42,364 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cfe94840-abeb-44f9-aaa3-ec015fd6443c
2025-11-03 02:28:42,370 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cfe94840-abeb-44f9-aaa3-ec015fd6443c
2025-11-03 02:28:42,382 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c0f1a471-ce07-43a9-8632-3b3371b7ad9a
2025-11-03 02:28:42,396 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-23905825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48232827', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15525265626498811879', 'uuid-lslong': '9545329082707333472'}, 'enable': 'true', 'created': '2025-11-03T02:28:40', 'last-modified': '2025-11-03T02:28:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368267'}
2025-11-03 02:28:42,402 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 02:28:42,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23905825 passed
2025-11-03 02:28:42,402 - DEBUG - ====Verifying policy data for ctest-vn-23905825 in API_Server ======
2025-11-03 02:28:42,402 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 02:28:42,409 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0c1e50cf-6d4d-4c28-981d-ef4452d99140
2025-11-03 02:28:42,419 - DEBUG - Requesting: http://10.0.0.50:8082/project/278dca6f-7f5f-4919-94b5-18f7b63207d8
2025-11-03 02:28:42,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d774d2d4-b70b-47e7-8477-d23a36f9d160
2025-11-03 02:28:42,498 - DEBUG - ==>Verifying data for policy with id: 96f0a153-d244-4957-a1e5-3ae682ad0181, fqn: ['default-domain', 'ctest-TestBasicPolicy-48232827', 'ctest-policy-allow-all-67544621']
2025-11-03 02:28:42,498 - INFO - VN ctest-vn-23905825 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 02:28:42,498 - DEBUG - Verifying the vn in opserver
2025-11-03 02:28:42,498 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-23905825 virtual network link through opserver 10.0.0.50
2025-11-03 02:28:42,498 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-03 02:28:42,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-23905825', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-23905825?flat'}
2025-11-03 02:28:42,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48232827:ctest-vn-23905825 is found in opserver
2025-11-03 02:28:42,520 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 02:28:42,525 - DEBUG - VRF ids for VN ctest-vn-23905825: {}
2025-11-03 02:28:42,582 - DEBUG - Services list from nova: [