2025-11-12 15:30:28,845 - INFO - Domain Default found not creating
2025-11-12 15:30:29,012 - INFO - Project ctest-TestBasicPolicy-50838706 not found, creating it
2025-11-12 15:30:29,463 - INFO - Created Project:ctest-TestBasicPolicy-50838706, ID : d2cbb1da-b305-45ee-83f3-c3d8639481d5
2025-11-12 15:30:31,103 - INFO - ================================================================================
2025-11-12 15:30:31,103 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 15:30:31,103 - 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-12 15:30:31,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-11-12 15:30:31,371 - INFO - Initial checks done. Running the testcase now
2025-11-12 15:30:31,371 - INFO -
2025-11-12 15:30:31,984 - DEBUG - Response for create_network : {'network': {'id': '219ffc82-0203-4ae9-8adc-d7d844d6261e', 'name': 'ctest-vn-90453068', 'tenant_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'project_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-vn-90453068'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 15:30:32,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '901b7844-028e-4c92-a24a-0af8f5b11043', 'name': '', 'tenant_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'network_id': '219ffc82-0203-4ae9-8adc-d7d844d6261e', 'ip_version': 4, 'cidr': '181.80.239.128/26', 'allocation_pools': [{'start': '181.80.239.130', 'end': '181.80.239.190'}], 'gateway_ip': '181.80.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.80.239.130', 'tags': [], 'project_id': 'd2cbb1dab30545ee83f3c3d8639481d5'}}
2025-11-12 15:30:32,201 - INFO - Created VN ctest-vn-90453068
2025-11-12 15:30:32,253 - DEBUG - VN ctest-vn-90453068 UUID is 219ffc82-0203-4ae9-8adc-d7d844d6261e
2025-11-12 15:30:32,559 - DEBUG - Response for create_network : {'network': {'id': 'a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241', 'name': 'ctest-vn-41361897', 'tenant_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'project_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-vn-41361897'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 15:30:32,771 - DEBUG - Response for create_subnet : {'subnet': {'id': '03729124-f55b-4d42-8016-726c6ca4fec3', 'name': '', 'tenant_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'network_id': 'a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241', 'ip_version': 4, 'cidr': '63.193.78.192/26', 'allocation_pools': [{'start': '63.193.78.194', 'end': '63.193.78.254'}], 'gateway_ip': '63.193.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.193.78.194', 'tags': [], 'project_id': 'd2cbb1dab30545ee83f3c3d8639481d5'}}
2025-11-12 15:30:32,786 - INFO - Created VN ctest-vn-41361897
2025-11-12 15:30:32,837 - DEBUG - VN ctest-vn-41361897 UUID is a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241
2025-11-12 15:30:32,985 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-90453068, 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-50838706:ctest-vn-41361897, 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-12 15:30:33,276 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '219ffc82-0203-4ae9-8adc-d7d844d6261e', 'name': 'ctest-vn-90453068', 'tenant_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'project_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['901b7844-028e-4c92-a24a-0af8f5b11043'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-vn-90453068'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-policy-allow-all-39498530']], 'subnet_ipam': [{'subnet_cidr': '181.80.239.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 15:30:33,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241', 'name': 'ctest-vn-41361897', 'tenant_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'project_id': 'd2cbb1dab30545ee83f3c3d8639481d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03729124-f55b-4d42-8016-726c6ca4fec3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-vn-41361897'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-policy-allow-all-39498530']], 'subnet_ipam': [{'subnet_cidr': '63.193.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 15:30:33,669 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 15:30:34,045 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 15:30:34,075 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531
2025-11-12 15:30:34,087 - DEBUG - Requesting: http://10.0.0.38:8082/project/d2cbb1da-b305-45ee-83f3-c3d8639481d5
2025-11-12 15:30:34,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/219ffc82-0203-4ae9-8adc-d7d844d6261e
2025-11-12 15:30:34,166 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/219ffc82-0203-4ae9-8adc-d7d844d6261e
2025-11-12 15:30:34,174 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d468c391-5a37-4872-bae5-d58dcfb8b93c
2025-11-12 15:30:34,180 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d468c391-5a37-4872-bae5-d58dcfb8b93c
2025-11-12 15:30:34,187 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/795536be-90a4-47d0-a944-10273137c8b0
2025-11-12 15:30:34,192 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 15:30:34,192 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/219ffc82-0203-4ae9-8adc-d7d844d6261e
2025-11-12 15:30:34,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d468c391-5a37-4872-bae5-d58dcfb8b93c
2025-11-12 15:30:34,212 - INFO - Verified VN network id 11 for VN 219ffc82-0203-4ae9-8adc-d7d844d6261e
2025-11-12 15:30:34,212 - INFO - Verifications in API Server for VN ctest-vn-90453068 passed
2025-11-12 15:30:34,212 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/219ffc82-0203-4ae9-8adc-d7d844d6261e
2025-11-12 15:30:34,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d468c391-5a37-4872-bae5-d58dcfb8b93c
2025-11-12 15:30:34,227 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d468c391-5a37-4872-bae5-d58dcfb8b93c
2025-11-12 15:30:34,233 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/795536be-90a4-47d0-a944-10273137c8b0
2025-11-12 15:30:34,243 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-90453068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50838706', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2422932759858334441', 'uuid-lslong': '10006109795978192414'}, 'enable': 'true', 'created': '2025-11-12T15:30:31', 'last-modified': '2025-11-12T15:30:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990924'}
2025-11-12 15:30:34,249 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 15:30:34,249 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90453068 passed
2025-11-12 15:30:34,249 - DEBUG - ====Verifying policy data for ctest-vn-90453068 in API_Server ======
2025-11-12 15:30:34,249 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 15:30:34,254 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531
2025-11-12 15:30:34,263 - DEBUG - Requesting: http://10.0.0.38:8082/project/d2cbb1da-b305-45ee-83f3-c3d8639481d5
2025-11-12 15:30:34,332 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/219ffc82-0203-4ae9-8adc-d7d844d6261e
2025-11-12 15:30:34,341 - DEBUG - ==>Verifying data for policy with id: 759fdf93-2c43-44d6-9f7c-7b341102f2d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-policy-allow-all-39498530']
2025-11-12 15:30:34,341 - INFO - VN ctest-vn-90453068 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 15:30:34,341 - DEBUG - Verifying the vn in opserver
2025-11-12 15:30:34,341 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-90453068 virtual network link through opserver 10.0.0.38
2025-11-12 15:30:34,341 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 15:30:34,704 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 15:30:34,765 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-90453068', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-90453068?flat'}
2025-11-12 15:30:34,765 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-90453068 is found in opserver
2025-11-12 15:30:34,775 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 15:30:34,779 - DEBUG - VRF ids for VN ctest-vn-90453068: {}
2025-11-12 15:30:34,779 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 15:30:34,784 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531
2025-11-12 15:30:34,793 - DEBUG - Requesting: http://10.0.0.38:8082/project/d2cbb1da-b305-45ee-83f3-c3d8639481d5
2025-11-12 15:30:34,862 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241
2025-11-12 15:30:34,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241
2025-11-12 15:30:34,882 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac649bed-e19f-4356-8270-4a010e299953
2025-11-12 15:30:34,890 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac649bed-e19f-4356-8270-4a010e299953
2025-11-12 15:30:34,896 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a43afae8-51ac-4462-b7e1-07e7e00046cc
2025-11-12 15:30:34,902 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 15:30:34,902 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241
2025-11-12 15:30:34,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac649bed-e19f-4356-8270-4a010e299953
2025-11-12 15:30:34,925 - INFO - Verified VN network id 12 for VN a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241
2025-11-12 15:30:34,925 - INFO - Verifications in API Server for VN ctest-vn-41361897 passed
2025-11-12 15:30:34,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241
2025-11-12 15:30:34,935 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac649bed-e19f-4356-8270-4a010e299953
2025-11-12 15:30:34,941 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac649bed-e19f-4356-8270-4a010e299953
2025-11-12 15:30:34,948 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a43afae8-51ac-4462-b7e1-07e7e00046cc
2025-11-12 15:30:34,958 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-41361897', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50838706', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11752066306436255280', 'uuid-lslong': '11100633586513338945'}, 'enable': 'true', 'created': '2025-11-12T15:30:32', 'last-modified': '2025-11-12T15:30:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481586'}
2025-11-12 15:30:34,965 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 15:30:34,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41361897 passed
2025-11-12 15:30:34,965 - DEBUG - ====Verifying policy data for ctest-vn-41361897 in API_Server ======
2025-11-12 15:30:34,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 15:30:34,970 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7d9beee-89db-474d-a947-38d577149531
2025-11-12 15:30:34,980 - DEBUG - Requesting: http://10.0.0.38:8082/project/d2cbb1da-b305-45ee-83f3-c3d8639481d5
2025-11-12 15:30:35,059 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a317ba0a-63f8-4e30-9a0d-5f6ee9e5e241
2025-11-12 15:30:35,072 - DEBUG - ==>Verifying data for policy with id: 759fdf93-2c43-44d6-9f7c-7b341102f2d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-50838706', 'ctest-policy-allow-all-39498530']
2025-11-12 15:30:35,072 - INFO - VN ctest-vn-41361897 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 15:30:35,072 - DEBUG - Verifying the vn in opserver
2025-11-12 15:30:35,072 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-41361897 virtual network link through opserver 10.0.0.38
2025-11-12 15:30:35,072 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 15:30:35,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-41361897', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-41361897?flat'}
2025-11-12 15:30:35,082 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50838706:ctest-vn-41361897 is found in opserver
2025-11-12 15:30:35,092 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 15:30:35,096 - DEBUG - VRF ids for VN ctest-vn-41361897: {}
2025-11-12 15:30:35,153 - DEBUG - Services list from nova: [