2025-12-09 03:49:52,062 - INFO - Domain Default found not creating
2025-12-09 03:49:52,223 - INFO - Project ctest-TestBasicPolicy-89446837 not found, creating it
2025-12-09 03:49:52,693 - INFO - Created Project:ctest-TestBasicPolicy-89446837, ID : bd15d8d2-2b66-426f-82d0-d705ae1db66e
2025-12-09 03:49:54,325 - INFO - ================================================================================
2025-12-09 03:49:54,325 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 03:49:54,325 - 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-12-09 03:49:54,578 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2025-12-09 03:49:54,578 - INFO - Initial checks done. Running the testcase now
2025-12-09 03:49:54,578 - INFO -
2025-12-09 03:49:55,174 - DEBUG - Response for create_network : {'network': {'id': 'efbccae2-37ea-48eb-9c97-76dee669e7df', 'name': 'ctest-vn-93143942', 'tenant_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'project_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-vn-93143942'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:49:55,373 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da445c59-31f1-4ac0-9060-96dce419940e', 'name': '', 'tenant_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'network_id': 'efbccae2-37ea-48eb-9c97-76dee669e7df', 'ip_version': 4, 'cidr': '39.243.105.0/26', 'allocation_pools': [{'start': '39.243.105.2', 'end': '39.243.105.62'}], 'gateway_ip': '39.243.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.243.105.2', 'tags': [], 'project_id': 'bd15d8d22b66426f82d0d705ae1db66e'}}
2025-12-09 03:49:55,391 - INFO - Created VN ctest-vn-93143942
2025-12-09 03:49:55,445 - DEBUG - VN ctest-vn-93143942 UUID is efbccae2-37ea-48eb-9c97-76dee669e7df
2025-12-09 03:49:55,771 - DEBUG - Response for create_network : {'network': {'id': '8fd33e48-aa5a-4931-b92a-f422cdb34f5f', 'name': 'ctest-vn-81388114', 'tenant_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'project_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-vn-81388114'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:49:56,002 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb03a491-cd0f-4643-950e-1ae6627a4da0', 'name': '', 'tenant_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'network_id': '8fd33e48-aa5a-4931-b92a-f422cdb34f5f', 'ip_version': 4, 'cidr': '158.248.119.0/26', 'allocation_pools': [{'start': '158.248.119.2', 'end': '158.248.119.62'}], 'gateway_ip': '158.248.119.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.248.119.2', 'tags': [], 'project_id': 'bd15d8d22b66426f82d0d705ae1db66e'}}
2025-12-09 03:49:56,024 - INFO - Created VN ctest-vn-81388114
2025-12-09 03:49:56,077 - DEBUG - VN ctest-vn-81388114 UUID is 8fd33e48-aa5a-4931-b92a-f422cdb34f5f
2025-12-09 03:49:56,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-93143942, 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-89446837:ctest-vn-81388114, 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-12-09 03:49:56,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efbccae2-37ea-48eb-9c97-76dee669e7df', 'name': 'ctest-vn-93143942', 'tenant_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'project_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da445c59-31f1-4ac0-9060-96dce419940e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-vn-93143942'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-policy-allow-all-12613388']], 'subnet_ipam': [{'subnet_cidr': '39.243.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:49:56,714 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fd33e48-aa5a-4931-b92a-f422cdb34f5f', 'name': 'ctest-vn-81388114', 'tenant_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'project_id': 'bd15d8d22b66426f82d0d705ae1db66e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb03a491-cd0f-4643-950e-1ae6627a4da0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-vn-81388114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-policy-allow-all-12613388']], 'subnet_ipam': [{'subnet_cidr': '158.248.119.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:49:56,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 03:49:57,218 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 03:49:57,250 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78
2025-12-09 03:49:57,262 - DEBUG - Requesting: http://10.0.0.38:8082/project/bd15d8d2-2b66-426f-82d0-d705ae1db66e
2025-12-09 03:49:57,336 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efbccae2-37ea-48eb-9c97-76dee669e7df
2025-12-09 03:49:57,348 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efbccae2-37ea-48eb-9c97-76dee669e7df
2025-12-09 03:49:57,358 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c55769b-2be6-4a08-b368-d906241e4b45
2025-12-09 03:49:57,365 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c55769b-2be6-4a08-b368-d906241e4b45
2025-12-09 03:49:57,372 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2538223a-7a23-42d5-b241-cf84b9981da3
2025-12-09 03:49:57,378 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 03:49:57,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efbccae2-37ea-48eb-9c97-76dee669e7df
2025-12-09 03:49:57,388 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c55769b-2be6-4a08-b368-d906241e4b45
2025-12-09 03:49:57,403 - INFO - Verified VN network id 11 for VN efbccae2-37ea-48eb-9c97-76dee669e7df
2025-12-09 03:49:57,404 - INFO - Verifications in API Server for VN ctest-vn-93143942 passed
2025-12-09 03:49:57,404 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efbccae2-37ea-48eb-9c97-76dee669e7df
2025-12-09 03:49:57,413 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c55769b-2be6-4a08-b368-d906241e4b45
2025-12-09 03:49:57,421 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c55769b-2be6-4a08-b368-d906241e4b45
2025-12-09 03:49:57,428 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2538223a-7a23-42d5-b241-cf84b9981da3
2025-12-09 03:49:57,439 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-93143942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89446837', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17274905343635900651', 'uuid-lslong': '11283618091120584671'}, 'enable': 'true', 'created': '2025-12-09T03:49:55', 'last-modified': '2025-12-09T03:49:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976630'}
2025-12-09 03:49:57,445 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 03:49:57,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93143942 passed
2025-12-09 03:49:57,446 - DEBUG - ====Verifying policy data for ctest-vn-93143942 in API_Server ======
2025-12-09 03:49:57,446 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 03:49:57,451 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78
2025-12-09 03:49:57,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/bd15d8d2-2b66-426f-82d0-d705ae1db66e
2025-12-09 03:49:57,535 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/efbccae2-37ea-48eb-9c97-76dee669e7df
2025-12-09 03:49:57,547 - DEBUG - ==>Verifying data for policy with id: 85535f57-dfbb-4761-b5a6-37e3a727fde3, fqn: ['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-policy-allow-all-12613388']
2025-12-09 03:49:57,547 - INFO - VN ctest-vn-93143942 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 03:49:57,547 - DEBUG - Verifying the vn in opserver
2025-12-09 03:49:57,547 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-93143942 virtual network link through opserver 10.0.0.38
2025-12-09 03:49:57,547 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 03:49:57,891 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 03:49:57,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-93143942', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-93143942?flat'}
2025-12-09 03:49:57,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-93143942 is found in opserver
2025-12-09 03:49:57,970 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 03:49:57,974 - DEBUG - VRF ids for VN ctest-vn-93143942: {}
2025-12-09 03:49:57,975 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 03:49:57,980 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78
2025-12-09 03:49:57,991 - DEBUG - Requesting: http://10.0.0.38:8082/project/bd15d8d2-2b66-426f-82d0-d705ae1db66e
2025-12-09 03:49:58,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fd33e48-aa5a-4931-b92a-f422cdb34f5f
2025-12-09 03:49:58,072 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fd33e48-aa5a-4931-b92a-f422cdb34f5f
2025-12-09 03:49:58,081 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ddd7874-ef49-4603-b899-54ddf2dc92fe
2025-12-09 03:49:58,087 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ddd7874-ef49-4603-b899-54ddf2dc92fe
2025-12-09 03:49:58,093 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d2112f5b-3822-41d0-ae33-d64862c3b240
2025-12-09 03:49:58,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 03:49:58,100 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fd33e48-aa5a-4931-b92a-f422cdb34f5f
2025-12-09 03:49:58,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ddd7874-ef49-4603-b899-54ddf2dc92fe
2025-12-09 03:49:58,123 - INFO - Verified VN network id 12 for VN 8fd33e48-aa5a-4931-b92a-f422cdb34f5f
2025-12-09 03:49:58,123 - INFO - Verifications in API Server for VN ctest-vn-81388114 passed
2025-12-09 03:49:58,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fd33e48-aa5a-4931-b92a-f422cdb34f5f
2025-12-09 03:49:58,132 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ddd7874-ef49-4603-b899-54ddf2dc92fe
2025-12-09 03:49:58,138 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ddd7874-ef49-4603-b899-54ddf2dc92fe
2025-12-09 03:49:58,144 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d2112f5b-3822-41d0-ae33-d64862c3b240
2025-12-09 03:49:58,155 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-81388114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89446837', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10363695649326254385', 'uuid-lslong': '13342745276355661663'}, 'enable': 'true', 'created': '2025-12-09T03:49:55', 'last-modified': '2025-12-09T03:49:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464156'}
2025-12-09 03:49:58,161 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 03:49:58,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81388114 passed
2025-12-09 03:49:58,163 - DEBUG - ====Verifying policy data for ctest-vn-81388114 in API_Server ======
2025-12-09 03:49:58,163 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 03:49:58,168 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78
2025-12-09 03:49:58,178 - DEBUG - Requesting: http://10.0.0.38:8082/project/bd15d8d2-2b66-426f-82d0-d705ae1db66e
2025-12-09 03:49:58,247 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fd33e48-aa5a-4931-b92a-f422cdb34f5f
2025-12-09 03:49:58,258 - DEBUG - ==>Verifying data for policy with id: 85535f57-dfbb-4761-b5a6-37e3a727fde3, fqn: ['default-domain', 'ctest-TestBasicPolicy-89446837', 'ctest-policy-allow-all-12613388']
2025-12-09 03:49:58,258 - INFO - VN ctest-vn-81388114 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 03:49:58,258 - DEBUG - Verifying the vn in opserver
2025-12-09 03:49:58,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-81388114 virtual network link through opserver 10.0.0.38
2025-12-09 03:49:58,258 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 03:49:58,270 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-81388114', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-81388114?flat'}
2025-12-09 03:49:58,270 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89446837:ctest-vn-81388114 is found in opserver
2025-12-09 03:49:58,280 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 03:49:58,284 - DEBUG - VRF ids for VN ctest-vn-81388114: {}
2025-12-09 03:49:58,347 - DEBUG - Services list from nova: [