2025-11-05 16:27:05,932 - INFO - Domain Default found not creating
2025-11-05 16:27:06,072 - INFO - Project ctest-TestBasicPolicy-62821570 not found, creating it
2025-11-05 16:27:06,493 - INFO - Created Project:ctest-TestBasicPolicy-62821570, ID : 3d945142-f8ad-465d-ac97-8bfb9ed7256e
2025-11-05 16:27:07,869 - INFO - ================================================================================
2025-11-05 16:27:07,869 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 16:27:07,869 - 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-05 16:27:08,123 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.241': '0'}} with
2025-11-05 16:27:08,123 - INFO - Initial checks done. Running the testcase now
2025-11-05 16:27:08,123 - INFO -
2025-11-05 16:27:08,641 - DEBUG - Response for create_network : {'network': {'id': '2bf35336-a3b3-47bb-918c-ef82384b98dd', 'name': 'ctest-vn-34574656', 'tenant_id': '3d945142f8ad465dac978bfb9ed7256e', 'project_id': '3d945142f8ad465dac978bfb9ed7256e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-vn-34574656'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:27:08,810 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af678f8c-439c-481a-857f-b89f0345cea1', 'name': '', 'tenant_id': '3d945142f8ad465dac978bfb9ed7256e', 'network_id': '2bf35336-a3b3-47bb-918c-ef82384b98dd', 'ip_version': 4, 'cidr': '14.250.253.64/26', 'allocation_pools': [{'start': '14.250.253.66', 'end': '14.250.253.126'}], 'gateway_ip': '14.250.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.250.253.66', 'tags': [], 'project_id': '3d945142f8ad465dac978bfb9ed7256e'}}
2025-11-05 16:27:08,830 - INFO - Created VN ctest-vn-34574656
2025-11-05 16:27:08,882 - DEBUG - VN ctest-vn-34574656 UUID is 2bf35336-a3b3-47bb-918c-ef82384b98dd
2025-11-05 16:27:09,176 - DEBUG - Response for create_network : {'network': {'id': '805bef57-6433-4c74-ba7e-3ee8e0e1810c', 'name': 'ctest-vn-74336551', 'tenant_id': '3d945142f8ad465dac978bfb9ed7256e', 'project_id': '3d945142f8ad465dac978bfb9ed7256e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-vn-74336551'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:27:09,342 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3cbc6c9-894d-4147-b266-164fb1aca202', 'name': '', 'tenant_id': '3d945142f8ad465dac978bfb9ed7256e', 'network_id': '805bef57-6433-4c74-ba7e-3ee8e0e1810c', 'ip_version': 4, 'cidr': '42.163.31.64/26', 'allocation_pools': [{'start': '42.163.31.66', 'end': '42.163.31.126'}], 'gateway_ip': '42.163.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.163.31.66', 'tags': [], 'project_id': '3d945142f8ad465dac978bfb9ed7256e'}}
2025-11-05 16:27:09,357 - INFO - Created VN ctest-vn-74336551
2025-11-05 16:27:09,410 - DEBUG - VN ctest-vn-74336551 UUID is 805bef57-6433-4c74-ba7e-3ee8e0e1810c
2025-11-05 16:27:09,554 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-34574656, 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-62821570:ctest-vn-74336551, 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-05 16:27:09,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bf35336-a3b3-47bb-918c-ef82384b98dd', 'name': 'ctest-vn-34574656', 'tenant_id': '3d945142f8ad465dac978bfb9ed7256e', 'project_id': '3d945142f8ad465dac978bfb9ed7256e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af678f8c-439c-481a-857f-b89f0345cea1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-vn-34574656'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-policy-allow-all-77958976']], 'subnet_ipam': [{'subnet_cidr': '14.250.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:27:10,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '805bef57-6433-4c74-ba7e-3ee8e0e1810c', 'name': 'ctest-vn-74336551', 'tenant_id': '3d945142f8ad465dac978bfb9ed7256e', 'project_id': '3d945142f8ad465dac978bfb9ed7256e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3cbc6c9-894d-4147-b266-164fb1aca202'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-vn-74336551'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-policy-allow-all-77958976']], 'subnet_ipam': [{'subnet_cidr': '42.163.31.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:27:10,254 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 16:27:10,547 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 16:27:10,571 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d843e358-7eb4-4378-93a6-b1f6a91ea261
2025-11-05 16:27:10,582 - DEBUG - Requesting: http://10.0.0.242:8082/project/3d945142-f8ad-465d-ac97-8bfb9ed7256e
2025-11-05 16:27:10,652 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2bf35336-a3b3-47bb-918c-ef82384b98dd
2025-11-05 16:27:10,662 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2bf35336-a3b3-47bb-918c-ef82384b98dd
2025-11-05 16:27:10,671 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7629b2d-1bd4-4d6d-846f-9b96d4ecd5fe
2025-11-05 16:27:10,677 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7629b2d-1bd4-4d6d-846f-9b96d4ecd5fe
2025-11-05 16:27:10,682 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/30d2c43a-0189-4a55-a1fe-d27da0c5e6a0
2025-11-05 16:27:10,687 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 16:27:10,687 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2bf35336-a3b3-47bb-918c-ef82384b98dd
2025-11-05 16:27:10,694 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7629b2d-1bd4-4d6d-846f-9b96d4ecd5fe
2025-11-05 16:27:10,705 - INFO - Verified VN network id 12 for VN 2bf35336-a3b3-47bb-918c-ef82384b98dd
2025-11-05 16:27:10,705 - INFO - Verifications in API Server for VN ctest-vn-34574656 passed
2025-11-05 16:27:10,705 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2bf35336-a3b3-47bb-918c-ef82384b98dd
2025-11-05 16:27:10,712 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7629b2d-1bd4-4d6d-846f-9b96d4ecd5fe
2025-11-05 16:27:10,718 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7629b2d-1bd4-4d6d-846f-9b96d4ecd5fe
2025-11-05 16:27:10,724 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/30d2c43a-0189-4a55-a1fe-d27da0c5e6a0
2025-11-05 16:27:10,735 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-34574656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62821570', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3166966457111365563', 'uuid-lslong': '10488020974808307933'}, 'enable': 'true', 'created': '2025-11-05T16:27:08', 'last-modified': '2025-11-05T16:27:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916953'}
2025-11-05 16:27:10,742 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 16:27:10,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34574656 passed
2025-11-05 16:27:10,742 - DEBUG - ====Verifying policy data for ctest-vn-34574656 in API_Server ======
2025-11-05 16:27:10,742 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 16:27:10,749 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d843e358-7eb4-4378-93a6-b1f6a91ea261
2025-11-05 16:27:10,759 - DEBUG - Requesting: http://10.0.0.242:8082/project/3d945142-f8ad-465d-ac97-8bfb9ed7256e
2025-11-05 16:27:10,827 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2bf35336-a3b3-47bb-918c-ef82384b98dd
2025-11-05 16:27:10,834 - DEBUG - ==>Verifying data for policy with id: 26995440-caca-401c-b111-d229c79942a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-policy-allow-all-77958976']
2025-11-05 16:27:10,835 - INFO - VN ctest-vn-34574656 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 16:27:10,835 - DEBUG - Verifying the vn in opserver
2025-11-05 16:27:10,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-34574656 virtual network link through opserver 10.0.0.242
2025-11-05 16:27:10,835 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-05 16:27:11,127 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-05 16:27:11,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-34574656', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-34574656?flat'}
2025-11-05 16:27:11,178 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-34574656 is found in opserver
2025-11-05 16:27:11,187 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 16:27:11,191 - DEBUG - VRF ids for VN ctest-vn-34574656: {}
2025-11-05 16:27:11,191 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 16:27:11,196 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d843e358-7eb4-4378-93a6-b1f6a91ea261
2025-11-05 16:27:11,205 - DEBUG - Requesting: http://10.0.0.242:8082/project/3d945142-f8ad-465d-ac97-8bfb9ed7256e
2025-11-05 16:27:11,278 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/805bef57-6433-4c74-ba7e-3ee8e0e1810c
2025-11-05 16:27:11,289 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/805bef57-6433-4c74-ba7e-3ee8e0e1810c
2025-11-05 16:27:11,296 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d758e375-f7a2-4617-8dfb-c984406c1b4e
2025-11-05 16:27:11,303 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d758e375-f7a2-4617-8dfb-c984406c1b4e
2025-11-05 16:27:11,309 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/92a8748b-19f4-4155-a82c-e41acbc73621
2025-11-05 16:27:11,315 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 16:27:11,315 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/805bef57-6433-4c74-ba7e-3ee8e0e1810c
2025-11-05 16:27:11,323 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d758e375-f7a2-4617-8dfb-c984406c1b4e
2025-11-05 16:27:11,334 - INFO - Verified VN network id 13 for VN 805bef57-6433-4c74-ba7e-3ee8e0e1810c
2025-11-05 16:27:11,335 - INFO - Verifications in API Server for VN ctest-vn-74336551 passed
2025-11-05 16:27:11,335 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/805bef57-6433-4c74-ba7e-3ee8e0e1810c
2025-11-05 16:27:11,342 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d758e375-f7a2-4617-8dfb-c984406c1b4e
2025-11-05 16:27:11,348 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d758e375-f7a2-4617-8dfb-c984406c1b4e
2025-11-05 16:27:11,353 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/92a8748b-19f4-4155-a82c-e41acbc73621
2025-11-05 16:27:11,363 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-74336551', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62821570', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9249249418357722228', 'uuid-lslong': '13438247508046348556'}, 'enable': 'true', 'created': '2025-11-05T16:27:09', 'last-modified': '2025-11-05T16:27:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.323782'}
2025-11-05 16:27:11,368 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 16:27:11,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74336551 passed
2025-11-05 16:27:11,368 - DEBUG - ====Verifying policy data for ctest-vn-74336551 in API_Server ======
2025-11-05 16:27:11,368 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 16:27:11,373 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d843e358-7eb4-4378-93a6-b1f6a91ea261
2025-11-05 16:27:11,382 - DEBUG - Requesting: http://10.0.0.242:8082/project/3d945142-f8ad-465d-ac97-8bfb9ed7256e
2025-11-05 16:27:11,449 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/805bef57-6433-4c74-ba7e-3ee8e0e1810c
2025-11-05 16:27:11,456 - DEBUG - ==>Verifying data for policy with id: 26995440-caca-401c-b111-d229c79942a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-62821570', 'ctest-policy-allow-all-77958976']
2025-11-05 16:27:11,457 - INFO - VN ctest-vn-74336551 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 16:27:11,457 - DEBUG - Verifying the vn in opserver
2025-11-05 16:27:11,457 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-74336551 virtual network link through opserver 10.0.0.242
2025-11-05 16:27:11,457 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-05 16:27:11,465 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-74336551', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-74336551?flat'}
2025-11-05 16:27:11,465 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62821570:ctest-vn-74336551 is found in opserver
2025-11-05 16:27:11,474 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 16:27:11,478 - DEBUG - VRF ids for VN ctest-vn-74336551: {}
2025-11-05 16:27:11,529 - DEBUG - Services list from nova: [