2025-09-09 15:22:34,002 - INFO - Domain Default found not creating
2025-09-09 15:22:34,137 - INFO - Project ctest-TestBasicPolicy-03553007 not found, creating it
2025-09-09 15:22:34,576 - INFO - Created Project:ctest-TestBasicPolicy-03553007, ID : 5c456278-f34b-42af-8316-e68d98545428
2025-09-09 15:22:35,945 - INFO - ================================================================================
2025-09-09 15:22:35,945 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-09 15:22:35,945 - 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-09-09 15:22:36,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-09-09 15:22:36,198 - INFO - Initial checks done. Running the testcase now
2025-09-09 15:22:36,198 - INFO -
2025-09-09 15:22:36,715 - DEBUG - Response for create_network : {'network': {'id': '4818b9be-be8f-49eb-bcf6-412b1eb7db14', 'name': 'ctest-vn-42944465', 'tenant_id': '5c456278f34b42af8316e68d98545428', 'project_id': '5c456278f34b42af8316e68d98545428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-vn-42944465'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 15:22:36,924 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b3fb742-9beb-4dd6-889f-64e922ac0624', 'name': '', 'tenant_id': '5c456278f34b42af8316e68d98545428', 'network_id': '4818b9be-be8f-49eb-bcf6-412b1eb7db14', 'ip_version': 4, 'cidr': '176.139.177.64/26', 'allocation_pools': [{'start': '176.139.177.66', 'end': '176.139.177.126'}], 'gateway_ip': '176.139.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.139.177.66', 'tags': [], 'project_id': '5c456278f34b42af8316e68d98545428'}}
2025-09-09 15:22:36,940 - INFO - Created VN ctest-vn-42944465
2025-09-09 15:22:36,996 - DEBUG - VN ctest-vn-42944465 UUID is 4818b9be-be8f-49eb-bcf6-412b1eb7db14
2025-09-09 15:22:37,301 - DEBUG - Response for create_network : {'network': {'id': '23895c1e-3447-4b56-87f1-5f20f1bd0bf9', 'name': 'ctest-vn-70702932', 'tenant_id': '5c456278f34b42af8316e68d98545428', 'project_id': '5c456278f34b42af8316e68d98545428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-vn-70702932'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 15:22:37,485 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eea6e30a-0f47-46ad-ba5e-fbb5441f0358', 'name': '', 'tenant_id': '5c456278f34b42af8316e68d98545428', 'network_id': '23895c1e-3447-4b56-87f1-5f20f1bd0bf9', 'ip_version': 4, 'cidr': '49.39.97.192/26', 'allocation_pools': [{'start': '49.39.97.194', 'end': '49.39.97.254'}], 'gateway_ip': '49.39.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.39.97.194', 'tags': [], 'project_id': '5c456278f34b42af8316e68d98545428'}}
2025-09-09 15:22:37,502 - INFO - Created VN ctest-vn-70702932
2025-09-09 15:22:37,552 - DEBUG - VN ctest-vn-70702932 UUID is 23895c1e-3447-4b56-87f1-5f20f1bd0bf9
2025-09-09 15:22:37,696 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-42944465, 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-03553007:ctest-vn-70702932, 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-09-09 15:22:37,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4818b9be-be8f-49eb-bcf6-412b1eb7db14', 'name': 'ctest-vn-42944465', 'tenant_id': '5c456278f34b42af8316e68d98545428', 'project_id': '5c456278f34b42af8316e68d98545428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b3fb742-9beb-4dd6-889f-64e922ac0624'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-vn-42944465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-policy-allow-all-02601535']], 'subnet_ipam': [{'subnet_cidr': '176.139.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 15:22:38,201 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23895c1e-3447-4b56-87f1-5f20f1bd0bf9', 'name': 'ctest-vn-70702932', 'tenant_id': '5c456278f34b42af8316e68d98545428', 'project_id': '5c456278f34b42af8316e68d98545428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eea6e30a-0f47-46ad-ba5e-fbb5441f0358'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-vn-70702932'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-policy-allow-all-02601535']], 'subnet_ipam': [{'subnet_cidr': '49.39.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 15:22:38,364 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 15:22:38,651 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 15:22:38,676 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5
2025-09-09 15:22:38,687 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c456278-f34b-42af-8316-e68d98545428
2025-09-09 15:22:38,756 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4818b9be-be8f-49eb-bcf6-412b1eb7db14
2025-09-09 15:22:38,766 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4818b9be-be8f-49eb-bcf6-412b1eb7db14
2025-09-09 15:22:38,774 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e2869c7-289b-410d-9106-b106c5e88e7e
2025-09-09 15:22:38,779 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e2869c7-289b-410d-9106-b106c5e88e7e
2025-09-09 15:22:38,785 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/55301725-cf43-42cc-bd5a-c9b19986873c
2025-09-09 15:22:38,790 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 15:22:38,790 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4818b9be-be8f-49eb-bcf6-412b1eb7db14
2025-09-09 15:22:38,797 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e2869c7-289b-410d-9106-b106c5e88e7e
2025-09-09 15:22:38,808 - INFO - Verified VN network id 12 for VN 4818b9be-be8f-49eb-bcf6-412b1eb7db14
2025-09-09 15:22:38,808 - INFO - Verifications in API Server for VN ctest-vn-42944465 passed
2025-09-09 15:22:38,808 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4818b9be-be8f-49eb-bcf6-412b1eb7db14
2025-09-09 15:22:38,817 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e2869c7-289b-410d-9106-b106c5e88e7e
2025-09-09 15:22:38,824 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e2869c7-289b-410d-9106-b106c5e88e7e
2025-09-09 15:22:38,831 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/55301725-cf43-42cc-bd5a-c9b19986873c
2025-09-09 15:22:38,843 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-42944465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03553007', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5195106399063853547', 'uuid-lslong': '13616142176856038164'}, 'enable': 'true', 'created': '2025-09-09T15:22:36', 'last-modified': '2025-09-09T15:22:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.879818'}
2025-09-09 15:22:38,849 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 15:22:38,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42944465 passed
2025-09-09 15:22:38,850 - DEBUG - ====Verifying policy data for ctest-vn-42944465 in API_Server ======
2025-09-09 15:22:38,850 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 15:22:38,855 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5
2025-09-09 15:22:38,864 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c456278-f34b-42af-8316-e68d98545428
2025-09-09 15:22:38,939 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4818b9be-be8f-49eb-bcf6-412b1eb7db14
2025-09-09 15:22:38,948 - DEBUG - ==>Verifying data for policy with id: 3db421a2-2a29-4ef3-8c40-fba7f2eba7b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-policy-allow-all-02601535']
2025-09-09 15:22:38,948 - INFO - VN ctest-vn-42944465 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 15:22:38,948 - DEBUG - Verifying the vn in opserver
2025-09-09 15:22:38,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-42944465 virtual network link through opserver 10.0.0.22
2025-09-09 15:22:38,948 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-09 15:22:39,239 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-09 15:22:39,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-42944465', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-42944465?flat'}
2025-09-09 15:22:39,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-42944465 is found in opserver
2025-09-09 15:22:39,298 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 15:22:39,302 - DEBUG - VRF ids for VN ctest-vn-42944465: {}
2025-09-09 15:22:39,303 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 15:22:39,307 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5
2025-09-09 15:22:39,317 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c456278-f34b-42af-8316-e68d98545428
2025-09-09 15:22:39,383 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23895c1e-3447-4b56-87f1-5f20f1bd0bf9
2025-09-09 15:22:39,394 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23895c1e-3447-4b56-87f1-5f20f1bd0bf9
2025-09-09 15:22:39,402 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/37e8ba41-3450-4fdd-b95e-e7a13f6b66bb
2025-09-09 15:22:39,408 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/37e8ba41-3450-4fdd-b95e-e7a13f6b66bb
2025-09-09 15:22:39,414 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5c128197-9f3e-45e0-b29c-8339f7b0a954
2025-09-09 15:22:39,420 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 15:22:39,420 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23895c1e-3447-4b56-87f1-5f20f1bd0bf9
2025-09-09 15:22:39,428 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/37e8ba41-3450-4fdd-b95e-e7a13f6b66bb
2025-09-09 15:22:39,441 - INFO - Verified VN network id 13 for VN 23895c1e-3447-4b56-87f1-5f20f1bd0bf9
2025-09-09 15:22:39,441 - INFO - Verifications in API Server for VN ctest-vn-70702932 passed
2025-09-09 15:22:39,441 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23895c1e-3447-4b56-87f1-5f20f1bd0bf9
2025-09-09 15:22:39,450 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/37e8ba41-3450-4fdd-b95e-e7a13f6b66bb
2025-09-09 15:22:39,457 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/37e8ba41-3450-4fdd-b95e-e7a13f6b66bb
2025-09-09 15:22:39,464 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5c128197-9f3e-45e0-b29c-8339f7b0a954
2025-09-09 15:22:39,477 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-70702932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03553007', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2560679147932699478', 'uuid-lslong': '9795715259606830073'}, 'enable': 'true', 'created': '2025-09-09T15:22:37', 'last-modified': '2025-09-09T15:22:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.297800'}
2025-09-09 15:22:39,484 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 15:22:39,484 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70702932 passed
2025-09-09 15:22:39,484 - DEBUG - ====Verifying policy data for ctest-vn-70702932 in API_Server ======
2025-09-09 15:22:39,484 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 15:22:39,490 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5
2025-09-09 15:22:39,500 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c456278-f34b-42af-8316-e68d98545428
2025-09-09 15:22:39,572 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23895c1e-3447-4b56-87f1-5f20f1bd0bf9
2025-09-09 15:22:39,581 - DEBUG - ==>Verifying data for policy with id: 3db421a2-2a29-4ef3-8c40-fba7f2eba7b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-03553007', 'ctest-policy-allow-all-02601535']
2025-09-09 15:22:39,581 - INFO - VN ctest-vn-70702932 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 15:22:39,581 - DEBUG - Verifying the vn in opserver
2025-09-09 15:22:39,581 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-70702932 virtual network link through opserver 10.0.0.22
2025-09-09 15:22:39,581 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-09 15:22:39,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-70702932', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-70702932?flat'}
2025-09-09 15:22:39,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03553007:ctest-vn-70702932 is found in opserver
2025-09-09 15:22:39,600 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 15:22:39,604 - DEBUG - VRF ids for VN ctest-vn-70702932: {}
2025-09-09 15:22:39,655 - DEBUG - Services list from nova: [