2025-12-09 18:49:48,004 - INFO - Domain Default found not creating
2025-12-09 18:49:48,169 - INFO - Project ctest-TestBasicPolicy-97304110 not found, creating it
2025-12-09 18:49:48,639 - INFO - Created Project:ctest-TestBasicPolicy-97304110, ID : 15b36331-fd26-4d9b-a316-82658bb911df
2025-12-09 18:49:50,109 - INFO - ================================================================================
2025-12-09 18:49:50,109 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 18:49:50,109 - 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 18:49:50,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2025-12-09 18:49:50,368 - INFO - Initial checks done. Running the testcase now
2025-12-09 18:49:50,368 - INFO -
2025-12-09 18:49:50,921 - DEBUG - Response for create_network : {'network': {'id': '346f1f78-a64d-45f6-9e8d-34419ad3770c', 'name': 'ctest-vn-19878262', 'tenant_id': '15b36331fd264d9ba31682658bb911df', 'project_id': '15b36331fd264d9ba31682658bb911df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-vn-19878262'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 18:49:51,112 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7cd8f99-7631-4c31-94fc-8364c96ca98e', 'name': '', 'tenant_id': '15b36331fd264d9ba31682658bb911df', 'network_id': '346f1f78-a64d-45f6-9e8d-34419ad3770c', 'ip_version': 4, 'cidr': '90.20.210.0/26', 'allocation_pools': [{'start': '90.20.210.2', 'end': '90.20.210.62'}], 'gateway_ip': '90.20.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.20.210.2', 'tags': [], 'project_id': '15b36331fd264d9ba31682658bb911df'}}
2025-12-09 18:49:51,129 - INFO - Created VN ctest-vn-19878262
2025-12-09 18:49:51,180 - DEBUG - VN ctest-vn-19878262 UUID is 346f1f78-a64d-45f6-9e8d-34419ad3770c
2025-12-09 18:49:51,497 - DEBUG - Response for create_network : {'network': {'id': '5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab', 'name': 'ctest-vn-84484032', 'tenant_id': '15b36331fd264d9ba31682658bb911df', 'project_id': '15b36331fd264d9ba31682658bb911df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-vn-84484032'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 18:49:51,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '3af8d6aa-fa2c-49d3-a81d-eaed5046a816', 'name': '', 'tenant_id': '15b36331fd264d9ba31682658bb911df', 'network_id': '5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab', 'ip_version': 4, 'cidr': '168.62.35.128/26', 'allocation_pools': [{'start': '168.62.35.130', 'end': '168.62.35.190'}], 'gateway_ip': '168.62.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.62.35.130', 'tags': [], 'project_id': '15b36331fd264d9ba31682658bb911df'}}
2025-12-09 18:49:51,690 - INFO - Created VN ctest-vn-84484032
2025-12-09 18:49:51,740 - DEBUG - VN ctest-vn-84484032 UUID is 5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab
2025-12-09 18:49:51,888 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-19878262, 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-97304110:ctest-vn-84484032, 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 18:49:52,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '346f1f78-a64d-45f6-9e8d-34419ad3770c', 'name': 'ctest-vn-19878262', 'tenant_id': '15b36331fd264d9ba31682658bb911df', 'project_id': '15b36331fd264d9ba31682658bb911df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7cd8f99-7631-4c31-94fc-8364c96ca98e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-vn-19878262'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-policy-allow-all-17462658']], 'subnet_ipam': [{'subnet_cidr': '90.20.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 18:49:52,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab', 'name': 'ctest-vn-84484032', 'tenant_id': '15b36331fd264d9ba31682658bb911df', 'project_id': '15b36331fd264d9ba31682658bb911df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3af8d6aa-fa2c-49d3-a81d-eaed5046a816'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-vn-84484032'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-policy-allow-all-17462658']], 'subnet_ipam': [{'subnet_cidr': '168.62.35.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 18:49:52,592 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 18:49:52,887 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 18:49:52,919 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe
2025-12-09 18:49:52,930 - DEBUG - Requesting: http://10.0.0.19:8082/project/15b36331-fd26-4d9b-a316-82658bb911df
2025-12-09 18:49:53,000 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/346f1f78-a64d-45f6-9e8d-34419ad3770c
2025-12-09 18:49:53,010 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/346f1f78-a64d-45f6-9e8d-34419ad3770c
2025-12-09 18:49:53,018 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/69052ab4-cd75-4abf-8d7b-c85ad0298aa4
2025-12-09 18:49:53,024 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/69052ab4-cd75-4abf-8d7b-c85ad0298aa4
2025-12-09 18:49:53,031 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/663b2121-f8ac-4869-bb9b-e00b27ba7a82
2025-12-09 18:49:53,042 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 18:49:53,042 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/346f1f78-a64d-45f6-9e8d-34419ad3770c
2025-12-09 18:49:53,052 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/69052ab4-cd75-4abf-8d7b-c85ad0298aa4
2025-12-09 18:49:53,065 - INFO - Verified VN network id 11 for VN 346f1f78-a64d-45f6-9e8d-34419ad3770c
2025-12-09 18:49:53,065 - INFO - Verifications in API Server for VN ctest-vn-19878262 passed
2025-12-09 18:49:53,065 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/346f1f78-a64d-45f6-9e8d-34419ad3770c
2025-12-09 18:49:53,073 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/69052ab4-cd75-4abf-8d7b-c85ad0298aa4
2025-12-09 18:49:53,079 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/69052ab4-cd75-4abf-8d7b-c85ad0298aa4
2025-12-09 18:49:53,086 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/663b2121-f8ac-4869-bb9b-e00b27ba7a82
2025-12-09 18:49:53,096 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-19878262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97304110', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3778273215433754102', 'uuid-lslong': '11424845286083884812'}, 'enable': 'true', 'created': '2025-12-09T18:49:50', 'last-modified': '2025-12-09T18:49:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940898'}
2025-12-09 18:49:53,103 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 18:49:53,103 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19878262 passed
2025-12-09 18:49:53,104 - DEBUG - ====Verifying policy data for ctest-vn-19878262 in API_Server ======
2025-12-09 18:49:53,104 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 18:49:53,109 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe
2025-12-09 18:49:53,119 - DEBUG - Requesting: http://10.0.0.19:8082/project/15b36331-fd26-4d9b-a316-82658bb911df
2025-12-09 18:49:53,189 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/346f1f78-a64d-45f6-9e8d-34419ad3770c
2025-12-09 18:49:53,198 - DEBUG - ==>Verifying data for policy with id: 27ce5f37-5e84-4bf3-987f-afe73110c300, fqn: ['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-policy-allow-all-17462658']
2025-12-09 18:49:53,198 - INFO - VN ctest-vn-19878262 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 18:49:53,198 - DEBUG - Verifying the vn in opserver
2025-12-09 18:49:53,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-19878262 virtual network link through opserver 10.0.0.19
2025-12-09 18:49:53,198 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-09 18:49:53,492 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-09 18:49:53,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-19878262', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-19878262?flat'}
2025-12-09 18:49:53,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-19878262 is found in opserver
2025-12-09 18:49:53,561 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 18:49:53,566 - DEBUG - VRF ids for VN ctest-vn-19878262: {}
2025-12-09 18:49:53,566 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 18:49:53,571 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe
2025-12-09 18:49:53,581 - DEBUG - Requesting: http://10.0.0.19:8082/project/15b36331-fd26-4d9b-a316-82658bb911df
2025-12-09 18:49:53,649 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab
2025-12-09 18:49:53,658 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab
2025-12-09 18:49:53,666 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/435ec468-2638-4067-ba7e-0d5a3f6bb900
2025-12-09 18:49:53,672 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/435ec468-2638-4067-ba7e-0d5a3f6bb900
2025-12-09 18:49:53,678 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1542bb9a-778b-491b-8c83-a3ff92864b70
2025-12-09 18:49:53,683 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 18:49:53,683 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab
2025-12-09 18:49:53,691 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/435ec468-2638-4067-ba7e-0d5a3f6bb900
2025-12-09 18:49:53,702 - INFO - Verified VN network id 12 for VN 5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab
2025-12-09 18:49:53,702 - INFO - Verifications in API Server for VN ctest-vn-84484032 passed
2025-12-09 18:49:53,702 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab
2025-12-09 18:49:53,710 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/435ec468-2638-4067-ba7e-0d5a3f6bb900
2025-12-09 18:49:53,716 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/435ec468-2638-4067-ba7e-0d5a3f6bb900
2025-12-09 18:49:53,721 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1542bb9a-778b-491b-8c83-a3ff92864b70
2025-12-09 18:49:53,730 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-84484032', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97304110', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6893112247268297924', 'uuid-lslong': '10421834959619946667'}, 'enable': 'true', 'created': '2025-12-09T18:49:51', 'last-modified': '2025-12-09T18:49:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.357887'}
2025-12-09 18:49:53,735 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 18:49:53,735 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84484032 passed
2025-12-09 18:49:53,736 - DEBUG - ====Verifying policy data for ctest-vn-84484032 in API_Server ======
2025-12-09 18:49:53,736 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 18:49:53,741 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe
2025-12-09 18:49:53,753 - DEBUG - Requesting: http://10.0.0.19:8082/project/15b36331-fd26-4d9b-a316-82658bb911df
2025-12-09 18:49:53,822 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5fa94111-4f52-4cc4-90a1-cbadb3e4f8ab
2025-12-09 18:49:53,830 - DEBUG - ==>Verifying data for policy with id: 27ce5f37-5e84-4bf3-987f-afe73110c300, fqn: ['default-domain', 'ctest-TestBasicPolicy-97304110', 'ctest-policy-allow-all-17462658']
2025-12-09 18:49:53,830 - INFO - VN ctest-vn-84484032 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 18:49:53,830 - DEBUG - Verifying the vn in opserver
2025-12-09 18:49:53,830 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-84484032 virtual network link through opserver 10.0.0.19
2025-12-09 18:49:53,830 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-09 18:49:53,839 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-84484032', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-84484032?flat'}
2025-12-09 18:49:53,839 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97304110:ctest-vn-84484032 is found in opserver
2025-12-09 18:49:53,849 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 18:49:53,854 - DEBUG - VRF ids for VN ctest-vn-84484032: {}
2025-12-09 18:49:53,909 - DEBUG - Services list from nova: [