2025-09-23 15:58:12,439 - INFO - Domain Default found not creating
2025-09-23 15:58:12,601 - INFO - Project ctest-TestBasicPolicy-05466236 not found, creating it
2025-09-23 15:58:13,075 - INFO - Created Project:ctest-TestBasicPolicy-05466236, ID : 0f6dba5c-13bd-4f9b-9ea9-7143b76f6c8a
2025-09-23 15:58:14,507 - INFO - ================================================================================
2025-09-23 15:58:14,507 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-23 15:58:14,507 - 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-23 15:58:14,766 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-09-23 15:58:14,766 - INFO - Initial checks done. Running the testcase now
2025-09-23 15:58:14,766 - INFO -
2025-09-23 15:58:15,289 - DEBUG - Response for create_network : {'network': {'id': 'b1ac9e8e-d1ee-4489-ab6c-35b211194f6f', 'name': 'ctest-vn-12704548', 'tenant_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'project_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-vn-12704548'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 15:58:15,472 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd50f3cbe-3614-4dc3-ad2e-6b0bf92389c2', 'name': '', 'tenant_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'network_id': 'b1ac9e8e-d1ee-4489-ab6c-35b211194f6f', 'ip_version': 4, 'cidr': '62.61.164.192/26', 'allocation_pools': [{'start': '62.61.164.194', 'end': '62.61.164.254'}], 'gateway_ip': '62.61.164.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.61.164.194', 'tags': [], 'project_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a'}}
2025-09-23 15:58:15,490 - INFO - Created VN ctest-vn-12704548
2025-09-23 15:58:15,541 - DEBUG - VN ctest-vn-12704548 UUID is b1ac9e8e-d1ee-4489-ab6c-35b211194f6f
2025-09-23 15:58:15,835 - DEBUG - Response for create_network : {'network': {'id': '753caf06-9239-4a5a-9405-d1993335e2d9', 'name': 'ctest-vn-36478785', 'tenant_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'project_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-vn-36478785'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 15:58:16,002 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac4604a6-35cd-492a-9f0f-cc0d61430798', 'name': '', 'tenant_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'network_id': '753caf06-9239-4a5a-9405-d1993335e2d9', 'ip_version': 4, 'cidr': '94.246.178.64/26', 'allocation_pools': [{'start': '94.246.178.66', 'end': '94.246.178.126'}], 'gateway_ip': '94.246.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.246.178.66', 'tags': [], 'project_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a'}}
2025-09-23 15:58:16,016 - INFO - Created VN ctest-vn-36478785
2025-09-23 15:58:16,065 - DEBUG - VN ctest-vn-36478785 UUID is 753caf06-9239-4a5a-9405-d1993335e2d9
2025-09-23 15:58:16,209 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-12704548, 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-05466236:ctest-vn-36478785, 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-23 15:58:16,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1ac9e8e-d1ee-4489-ab6c-35b211194f6f', 'name': 'ctest-vn-12704548', 'tenant_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'project_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d50f3cbe-3614-4dc3-ad2e-6b0bf92389c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-vn-12704548'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-policy-allow-all-22016793']], 'subnet_ipam': [{'subnet_cidr': '62.61.164.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 15:58:16,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '753caf06-9239-4a5a-9405-d1993335e2d9', 'name': 'ctest-vn-36478785', 'tenant_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'project_id': '0f6dba5c13bd4f9b9ea97143b76f6c8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac4604a6-35cd-492a-9f0f-cc0d61430798'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-vn-36478785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-policy-allow-all-22016793']], 'subnet_ipam': [{'subnet_cidr': '94.246.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 15:58:16,865 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 15:58:17,153 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 15:58:17,177 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516
2025-09-23 15:58:17,188 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f6dba5c-13bd-4f9b-9ea9-7143b76f6c8a
2025-09-23 15:58:17,254 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b1ac9e8e-d1ee-4489-ab6c-35b211194f6f
2025-09-23 15:58:17,263 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b1ac9e8e-d1ee-4489-ab6c-35b211194f6f
2025-09-23 15:58:17,270 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1bdf3cdf-d6f4-49d0-87f2-1e017716b0ae
2025-09-23 15:58:17,276 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1bdf3cdf-d6f4-49d0-87f2-1e017716b0ae
2025-09-23 15:58:17,281 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/5cb15f73-a0fb-4915-91a6-f2702a9f9a75
2025-09-23 15:58:17,286 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 15:58:17,286 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b1ac9e8e-d1ee-4489-ab6c-35b211194f6f
2025-09-23 15:58:17,293 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1bdf3cdf-d6f4-49d0-87f2-1e017716b0ae
2025-09-23 15:58:17,305 - INFO - Verified VN network id 9 for VN b1ac9e8e-d1ee-4489-ab6c-35b211194f6f
2025-09-23 15:58:17,305 - INFO - Verifications in API Server for VN ctest-vn-12704548 passed
2025-09-23 15:58:17,305 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b1ac9e8e-d1ee-4489-ab6c-35b211194f6f
2025-09-23 15:58:17,312 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1bdf3cdf-d6f4-49d0-87f2-1e017716b0ae
2025-09-23 15:58:17,317 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1bdf3cdf-d6f4-49d0-87f2-1e017716b0ae
2025-09-23 15:58:17,323 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/5cb15f73-a0fb-4915-91a6-f2702a9f9a75
2025-09-23 15:58:17,332 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-12704548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05466236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12802782176952075401', 'uuid-lslong': '12352306916877750127'}, 'enable': 'true', 'created': '2025-09-23T15:58:15', 'last-modified': '2025-09-23T15:58:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867825'}
2025-09-23 15:58:17,336 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 15:58:17,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12704548 passed
2025-09-23 15:58:17,337 - DEBUG - ====Verifying policy data for ctest-vn-12704548 in API_Server ======
2025-09-23 15:58:17,337 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 15:58:17,341 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516
2025-09-23 15:58:17,350 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f6dba5c-13bd-4f9b-9ea9-7143b76f6c8a
2025-09-23 15:58:17,429 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b1ac9e8e-d1ee-4489-ab6c-35b211194f6f
2025-09-23 15:58:17,440 - DEBUG - ==>Verifying data for policy with id: 2bd12eaf-1e60-4d82-942c-e0e0fbe0ae14, fqn: ['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-policy-allow-all-22016793']
2025-09-23 15:58:17,440 - INFO - VN ctest-vn-12704548 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 15:58:17,440 - DEBUG - Verifying the vn in opserver
2025-09-23 15:58:17,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-12704548 virtual network link through opserver 10.0.0.48
2025-09-23 15:58:17,440 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-23 15:58:17,727 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-23 15:58:17,775 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-12704548', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-12704548?flat'}
2025-09-23 15:58:17,775 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-12704548 is found in opserver
2025-09-23 15:58:17,783 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 15:58:17,787 - DEBUG - VRF ids for VN ctest-vn-12704548: {}
2025-09-23 15:58:17,787 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 15:58:17,792 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516
2025-09-23 15:58:17,801 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f6dba5c-13bd-4f9b-9ea9-7143b76f6c8a
2025-09-23 15:58:17,872 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/753caf06-9239-4a5a-9405-d1993335e2d9
2025-09-23 15:58:17,881 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/753caf06-9239-4a5a-9405-d1993335e2d9
2025-09-23 15:58:17,888 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/27b1415b-209e-44da-81af-eeea7e97a8c0
2025-09-23 15:58:17,893 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/27b1415b-209e-44da-81af-eeea7e97a8c0
2025-09-23 15:58:17,898 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/94c7775f-8b6a-42e4-95bc-c563d5eb8b11
2025-09-23 15:58:17,904 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 15:58:17,904 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/753caf06-9239-4a5a-9405-d1993335e2d9
2025-09-23 15:58:17,911 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/27b1415b-209e-44da-81af-eeea7e97a8c0
2025-09-23 15:58:17,921 - INFO - Verified VN network id 10 for VN 753caf06-9239-4a5a-9405-d1993335e2d9
2025-09-23 15:58:17,921 - INFO - Verifications in API Server for VN ctest-vn-36478785 passed
2025-09-23 15:58:17,921 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/753caf06-9239-4a5a-9405-d1993335e2d9
2025-09-23 15:58:17,928 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/27b1415b-209e-44da-81af-eeea7e97a8c0
2025-09-23 15:58:17,933 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/27b1415b-209e-44da-81af-eeea7e97a8c0
2025-09-23 15:58:17,938 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/94c7775f-8b6a-42e4-95bc-c563d5eb8b11
2025-09-23 15:58:17,948 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-36478785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05466236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8447819443798100570', 'uuid-lslong': '10666161748416258777'}, 'enable': 'true', 'created': '2025-09-23T15:58:15', 'last-modified': '2025-09-23T15:58:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.267741'}
2025-09-23 15:58:17,953 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 15:58:17,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36478785 passed
2025-09-23 15:58:17,953 - DEBUG - ====Verifying policy data for ctest-vn-36478785 in API_Server ======
2025-09-23 15:58:17,953 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 15:58:17,957 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516
2025-09-23 15:58:17,968 - DEBUG - Requesting: http://10.0.0.48:8082/project/0f6dba5c-13bd-4f9b-9ea9-7143b76f6c8a
2025-09-23 15:58:18,033 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/753caf06-9239-4a5a-9405-d1993335e2d9
2025-09-23 15:58:18,041 - DEBUG - ==>Verifying data for policy with id: 2bd12eaf-1e60-4d82-942c-e0e0fbe0ae14, fqn: ['default-domain', 'ctest-TestBasicPolicy-05466236', 'ctest-policy-allow-all-22016793']
2025-09-23 15:58:18,041 - INFO - VN ctest-vn-36478785 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 15:58:18,041 - DEBUG - Verifying the vn in opserver
2025-09-23 15:58:18,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-36478785 virtual network link through opserver 10.0.0.48
2025-09-23 15:58:18,041 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-23 15:58:18,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-36478785', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-36478785?flat'}
2025-09-23 15:58:18,050 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05466236:ctest-vn-36478785 is found in opserver
2025-09-23 15:58:18,059 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 15:58:18,063 - DEBUG - VRF ids for VN ctest-vn-36478785: {}
2025-09-23 15:58:18,113 - DEBUG - Services list from nova: [