2025-09-03 12:02:45,274 - INFO - Domain Default found not creating
2025-09-03 12:02:45,406 - INFO - Project ctest-TestBasicPolicy-34898839 not found, creating it
2025-09-03 12:02:45,840 - INFO - Created Project:ctest-TestBasicPolicy-34898839, ID : 47ef189d-60b1-4ee5-bbf4-544b28e2819c
2025-09-03 12:02:47,208 - INFO - ================================================================================
2025-09-03 12:02:47,208 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-03 12:02:47,208 - 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-03 12:02:47,470 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-03 12:02:47,470 - INFO - Initial checks done. Running the testcase now
2025-09-03 12:02:47,470 - INFO -
2025-09-03 12:02:48,005 - DEBUG - Response for create_network : {'network': {'id': 'd0cc14fd-2f9b-48cc-ae98-7e0984b9fa85', 'name': 'ctest-vn-91521761', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-91521761'], 'port_security_enabled': True, 'description': ''}}
2025-09-03 12:02:48,213 - DEBUG - Response for create_subnet : {'subnet': {'id': '73a77bfb-8ff9-47ea-b0ca-79eb3878e3ad', 'name': '', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'network_id': 'd0cc14fd-2f9b-48cc-ae98-7e0984b9fa85', 'ip_version': 4, 'cidr': '81.13.52.64/26', 'allocation_pools': [{'start': '81.13.52.66', 'end': '81.13.52.126'}], 'gateway_ip': '81.13.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.13.52.66', 'tags': [], 'project_id': '47ef189d60b14ee5bbf4544b28e2819c'}}
2025-09-03 12:02:48,230 - INFO - Created VN ctest-vn-91521761
2025-09-03 12:02:48,282 - DEBUG - VN ctest-vn-91521761 UUID is d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85
2025-09-03 12:02:48,596 - DEBUG - Response for create_network : {'network': {'id': '874f654f-d45b-4ee3-9800-9ef6e9e7e648', 'name': 'ctest-vn-80662213', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-80662213'], 'port_security_enabled': True, 'description': ''}}
2025-09-03 12:02:48,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f5c78c1-4670-4936-b2f5-b89cdb6d86a0', 'name': '', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'network_id': '874f654f-d45b-4ee3-9800-9ef6e9e7e648', 'ip_version': 4, 'cidr': '110.28.75.128/26', 'allocation_pools': [{'start': '110.28.75.130', 'end': '110.28.75.190'}], 'gateway_ip': '110.28.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.28.75.130', 'tags': [], 'project_id': '47ef189d60b14ee5bbf4544b28e2819c'}}
2025-09-03 12:02:48,830 - INFO - Created VN ctest-vn-80662213
2025-09-03 12:02:48,882 - DEBUG - VN ctest-vn-80662213 UUID is 874f654f-d45b-4ee3-9800-9ef6e9e7e648
2025-09-03 12:02:49,013 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761, 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-34898839:ctest-vn-80662213, 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-03 12:02:49,311 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0cc14fd-2f9b-48cc-ae98-7e0984b9fa85', 'name': 'ctest-vn-91521761', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73a77bfb-8ff9-47ea-b0ca-79eb3878e3ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-91521761'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285']], 'subnet_ipam': [{'subnet_cidr': '81.13.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-03 12:02:49,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '874f654f-d45b-4ee3-9800-9ef6e9e7e648', 'name': 'ctest-vn-80662213', 'tenant_id': '47ef189d60b14ee5bbf4544b28e2819c', 'project_id': '47ef189d60b14ee5bbf4544b28e2819c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f5c78c1-4670-4936-b2f5-b89cdb6d86a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-vn-80662213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285']], 'subnet_ipam': [{'subnet_cidr': '110.28.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-03 12:02:49,714 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-03 12:02:50,025 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-03 12:02:50,054 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299
2025-09-03 12:02:50,067 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c
2025-09-03 12:02:50,137 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85
2025-09-03 12:02:50,146 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85
2025-09-03 12:02:50,155 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26
2025-09-03 12:02:50,161 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26
2025-09-03 12:02:50,167 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d83c7b2-21cb-4071-98ae-bf8c7b1cec59
2025-09-03 12:02:50,172 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-03 12:02:50,172 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85
2025-09-03 12:02:50,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26
2025-09-03 12:02:50,193 - INFO - Verified VN network id 12 for VN d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85
2025-09-03 12:02:50,194 - INFO - Verifications in API Server for VN ctest-vn-91521761 passed
2025-09-03 12:02:50,194 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85
2025-09-03 12:02:50,202 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26
2025-09-03 12:02:50,208 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca4ca09e-e6a7-4a51-aae9-c9f1a432de26
2025-09-03 12:02:50,214 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d83c7b2-21cb-4071-98ae-bf8c7b1cec59
2025-09-03 12:02:50,225 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34898839', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15045423532795971788', 'uuid-lslong': '12580944138406066821'}, 'enable': 'true', 'created': '2025-09-03T12:02:47', 'last-modified': '2025-09-03T12:02:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934753'}
2025-09-03 12:02:50,230 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-03 12:02:50,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91521761 passed
2025-09-03 12:02:50,230 - DEBUG - ====Verifying policy data for ctest-vn-91521761 in API_Server ======
2025-09-03 12:02:50,230 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-03 12:02:50,236 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299
2025-09-03 12:02:50,245 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c
2025-09-03 12:02:50,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d0cc14fd-2f9b-48cc-ae98-7e0984b9fa85
2025-09-03 12:02:50,335 - DEBUG - ==>Verifying data for policy with id: 7802a328-ba24-4279-bcd9-78d9a2c0e811, fqn: ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285']
2025-09-03 12:02:50,335 - INFO - VN ctest-vn-91521761 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-03 12:02:50,335 - DEBUG - Verifying the vn in opserver
2025-09-03 12:02:50,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761 virtual network link through opserver 10.0.0.254
2025-09-03 12:02:50,335 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-03 12:02:50,626 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-03 12:02:50,678 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761?flat'}
2025-09-03 12:02:50,678 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-91521761 is found in opserver
2025-09-03 12:02:50,687 - DEBUG - Do not have enough data to verify VN in agent
2025-09-03 12:02:50,691 - DEBUG - VRF ids for VN ctest-vn-91521761: {}
2025-09-03 12:02:50,691 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-03 12:02:50,696 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299
2025-09-03 12:02:50,707 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c
2025-09-03 12:02:50,783 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648
2025-09-03 12:02:50,793 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648
2025-09-03 12:02:50,810 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c
2025-09-03 12:02:50,820 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c
2025-09-03 12:02:50,827 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ae54877-4664-4790-9c67-a4d31d8ee5f3
2025-09-03 12:02:50,834 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-03 12:02:50,834 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648
2025-09-03 12:02:50,842 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c
2025-09-03 12:02:50,854 - INFO - Verified VN network id 13 for VN 874f654f-d45b-4ee3-9800-9ef6e9e7e648
2025-09-03 12:02:50,854 - INFO - Verifications in API Server for VN ctest-vn-80662213 passed
2025-09-03 12:02:50,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648
2025-09-03 12:02:50,863 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c
2025-09-03 12:02:50,869 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/84f0fa6f-da3b-419d-af69-76c48a55ef8c
2025-09-03 12:02:50,875 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ae54877-4664-4790-9c67-a4d31d8ee5f3
2025-09-03 12:02:50,886 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34898839', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9750123111819988707', 'uuid-lslong': '10952929077088478792'}, 'enable': 'true', 'created': '2025-09-03T12:02:48', 'last-modified': '2025-09-03T12:02:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367941'}
2025-09-03 12:02:50,892 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-03 12:02:50,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80662213 passed
2025-09-03 12:02:50,892 - DEBUG - ====Verifying policy data for ctest-vn-80662213 in API_Server ======
2025-09-03 12:02:50,892 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-03 12:02:50,898 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f193d709-4fe1-491f-b580-1d86eb9a8299
2025-09-03 12:02:50,908 - DEBUG - Requesting: http://10.0.0.254:8082/project/47ef189d-60b1-4ee5-bbf4-544b28e2819c
2025-09-03 12:02:50,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/874f654f-d45b-4ee3-9800-9ef6e9e7e648
2025-09-03 12:02:50,994 - DEBUG - ==>Verifying data for policy with id: 7802a328-ba24-4279-bcd9-78d9a2c0e811, fqn: ['default-domain', 'ctest-TestBasicPolicy-34898839', 'ctest-policy-allow-all-37187285']
2025-09-03 12:02:50,994 - INFO - VN ctest-vn-80662213 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-03 12:02:50,994 - DEBUG - Verifying the vn in opserver
2025-09-03 12:02:50,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213 virtual network link through opserver 10.0.0.254
2025-09-03 12:02:50,995 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-03 12:02:51,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213?flat'}
2025-09-03 12:02:51,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34898839:ctest-vn-80662213 is found in opserver
2025-09-03 12:02:51,014 - DEBUG - Do not have enough data to verify VN in agent
2025-09-03 12:02:51,019 - DEBUG - VRF ids for VN ctest-vn-80662213: {}
2025-09-03 12:02:51,072 - DEBUG - Services list from nova: [