2025-11-13 16:29:35,469 - INFO - Domain Default found not creating
2025-11-13 16:29:35,630 - INFO - Project ctest-TestBasicPolicy-07531386 not found, creating it
2025-11-13 16:29:36,113 - INFO - Created Project:ctest-TestBasicPolicy-07531386, ID : fdf8b9e5-e73b-4201-893d-2d1da8bb2241
2025-11-13 16:29:37,719 - INFO - ================================================================================
2025-11-13 16:29:37,719 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 16:29:37,719 - 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-13 16:29:37,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-11-13 16:29:37,978 - INFO - Initial checks done. Running the testcase now
2025-11-13 16:29:37,978 - INFO -
2025-11-13 16:29:38,549 - DEBUG - Response for create_network : {'network': {'id': '3d15772e-0aa2-43da-a84a-1628a5d70e63', 'name': 'ctest-vn-49365158', 'tenant_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'project_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-vn-49365158'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 16:29:38,716 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0cb0050-d48e-4e70-b6a7-01f82bb9477a', 'name': '', 'tenant_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'network_id': '3d15772e-0aa2-43da-a84a-1628a5d70e63', 'ip_version': 4, 'cidr': '109.233.0.64/26', 'allocation_pools': [{'start': '109.233.0.66', 'end': '109.233.0.126'}], 'gateway_ip': '109.233.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.233.0.66', 'tags': [], 'project_id': 'fdf8b9e5e73b4201893d2d1da8bb2241'}}
2025-11-13 16:29:38,734 - INFO - Created VN ctest-vn-49365158
2025-11-13 16:29:38,787 - DEBUG - VN ctest-vn-49365158 UUID is 3d15772e-0aa2-43da-a84a-1628a5d70e63
2025-11-13 16:29:39,138 - DEBUG - Response for create_network : {'network': {'id': '85973c6e-0eee-445e-92c4-089ae872510f', 'name': 'ctest-vn-03233260', 'tenant_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'project_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-vn-03233260'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 16:29:39,363 - DEBUG - Response for create_subnet : {'subnet': {'id': '637e6737-d29e-4fa0-b349-520aa46a1f68', 'name': '', 'tenant_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'network_id': '85973c6e-0eee-445e-92c4-089ae872510f', 'ip_version': 4, 'cidr': '213.253.114.0/26', 'allocation_pools': [{'start': '213.253.114.2', 'end': '213.253.114.62'}], 'gateway_ip': '213.253.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.253.114.2', 'tags': [], 'project_id': 'fdf8b9e5e73b4201893d2d1da8bb2241'}}
2025-11-13 16:29:39,384 - INFO - Created VN ctest-vn-03233260
2025-11-13 16:29:39,440 - DEBUG - VN ctest-vn-03233260 UUID is 85973c6e-0eee-445e-92c4-089ae872510f
2025-11-13 16:29:39,565 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-49365158, 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-07531386:ctest-vn-03233260, 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-13 16:29:39,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d15772e-0aa2-43da-a84a-1628a5d70e63', 'name': 'ctest-vn-49365158', 'tenant_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'project_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a0cb0050-d48e-4e70-b6a7-01f82bb9477a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-vn-49365158'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-policy-allow-all-01742141']], 'subnet_ipam': [{'subnet_cidr': '109.233.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 16:29:40,137 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85973c6e-0eee-445e-92c4-089ae872510f', 'name': 'ctest-vn-03233260', 'tenant_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'project_id': 'fdf8b9e5e73b4201893d2d1da8bb2241', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['637e6737-d29e-4fa0-b349-520aa46a1f68'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-vn-03233260'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-policy-allow-all-01742141']], 'subnet_ipam': [{'subnet_cidr': '213.253.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 16:29:40,300 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 16:29:40,689 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 16:29:40,714 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9c51b54-928c-450e-9fd2-8063b35c0478
2025-11-13 16:29:40,730 - DEBUG - Requesting: http://10.0.0.22:8082/project/fdf8b9e5-e73b-4201-893d-2d1da8bb2241
2025-11-13 16:29:40,806 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d15772e-0aa2-43da-a84a-1628a5d70e63
2025-11-13 16:29:40,817 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d15772e-0aa2-43da-a84a-1628a5d70e63
2025-11-13 16:29:40,826 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/eeee1876-538b-41c7-8283-6529f10db4b5
2025-11-13 16:29:40,834 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/eeee1876-538b-41c7-8283-6529f10db4b5
2025-11-13 16:29:40,841 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fbbc8bd1-db91-4d62-857c-4a67d21395a7
2025-11-13 16:29:40,849 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 16:29:40,849 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d15772e-0aa2-43da-a84a-1628a5d70e63
2025-11-13 16:29:40,859 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/eeee1876-538b-41c7-8283-6529f10db4b5
2025-11-13 16:29:40,874 - INFO - Verified VN network id 10 for VN 3d15772e-0aa2-43da-a84a-1628a5d70e63
2025-11-13 16:29:40,874 - INFO - Verifications in API Server for VN ctest-vn-49365158 passed
2025-11-13 16:29:40,874 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d15772e-0aa2-43da-a84a-1628a5d70e63
2025-11-13 16:29:40,884 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/eeee1876-538b-41c7-8283-6529f10db4b5
2025-11-13 16:29:40,892 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/eeee1876-538b-41c7-8283-6529f10db4b5
2025-11-13 16:29:40,900 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fbbc8bd1-db91-4d62-857c-4a67d21395a7
2025-11-13 16:29:40,914 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-49365158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07531386', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4401555250455135194', 'uuid-lslong': '12126529310485319267'}, 'enable': 'true', 'created': '2025-11-13T16:29:38', 'last-modified': '2025-11-13T16:29:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051696'}
2025-11-13 16:29:40,920 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 16:29:40,920 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49365158 passed
2025-11-13 16:29:40,920 - DEBUG - ====Verifying policy data for ctest-vn-49365158 in API_Server ======
2025-11-13 16:29:40,921 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 16:29:40,926 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9c51b54-928c-450e-9fd2-8063b35c0478
2025-11-13 16:29:40,939 - DEBUG - Requesting: http://10.0.0.22:8082/project/fdf8b9e5-e73b-4201-893d-2d1da8bb2241
2025-11-13 16:29:41,017 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3d15772e-0aa2-43da-a84a-1628a5d70e63
2025-11-13 16:29:41,026 - DEBUG - ==>Verifying data for policy with id: 6d8beb57-91c4-434e-97ac-f1fc1f85c3e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-policy-allow-all-01742141']
2025-11-13 16:29:41,027 - INFO - VN ctest-vn-49365158 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 16:29:41,027 - DEBUG - Verifying the vn in opserver
2025-11-13 16:29:41,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-49365158 virtual network link through opserver 10.0.0.22
2025-11-13 16:29:41,027 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 16:29:41,347 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 16:29:41,396 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-49365158', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-49365158?flat'}
2025-11-13 16:29:41,396 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-49365158 is found in opserver
2025-11-13 16:29:41,408 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 16:29:41,414 - DEBUG - VRF ids for VN ctest-vn-49365158: {}
2025-11-13 16:29:41,414 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 16:29:41,421 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9c51b54-928c-450e-9fd2-8063b35c0478
2025-11-13 16:29:41,434 - DEBUG - Requesting: http://10.0.0.22:8082/project/fdf8b9e5-e73b-4201-893d-2d1da8bb2241
2025-11-13 16:29:41,509 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85973c6e-0eee-445e-92c4-089ae872510f
2025-11-13 16:29:41,523 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85973c6e-0eee-445e-92c4-089ae872510f
2025-11-13 16:29:41,535 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/989bd279-20b8-4cca-a81a-89d31feed535
2025-11-13 16:29:41,544 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/989bd279-20b8-4cca-a81a-89d31feed535
2025-11-13 16:29:41,553 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6edf8b71-c461-42aa-90e8-2542aee1e83d
2025-11-13 16:29:41,561 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 16:29:41,561 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85973c6e-0eee-445e-92c4-089ae872510f
2025-11-13 16:29:41,571 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/989bd279-20b8-4cca-a81a-89d31feed535
2025-11-13 16:29:41,590 - INFO - Verified VN network id 11 for VN 85973c6e-0eee-445e-92c4-089ae872510f
2025-11-13 16:29:41,590 - INFO - Verifications in API Server for VN ctest-vn-03233260 passed
2025-11-13 16:29:41,590 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85973c6e-0eee-445e-92c4-089ae872510f
2025-11-13 16:29:41,600 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/989bd279-20b8-4cca-a81a-89d31feed535
2025-11-13 16:29:41,608 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/989bd279-20b8-4cca-a81a-89d31feed535
2025-11-13 16:29:41,615 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6edf8b71-c461-42aa-90e8-2542aee1e83d
2025-11-13 16:29:41,630 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-03233260', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07531386', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9626229171922289758', 'uuid-lslong': '10575587286390558991'}, 'enable': 'true', 'created': '2025-11-13T16:29:39', 'last-modified': '2025-11-13T16:29:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.519720'}
2025-11-13 16:29:41,637 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 16:29:41,637 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03233260 passed
2025-11-13 16:29:41,637 - DEBUG - ====Verifying policy data for ctest-vn-03233260 in API_Server ======
2025-11-13 16:29:41,637 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 16:29:41,643 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9c51b54-928c-450e-9fd2-8063b35c0478
2025-11-13 16:29:41,654 - DEBUG - Requesting: http://10.0.0.22:8082/project/fdf8b9e5-e73b-4201-893d-2d1da8bb2241
2025-11-13 16:29:41,728 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85973c6e-0eee-445e-92c4-089ae872510f
2025-11-13 16:29:41,737 - DEBUG - ==>Verifying data for policy with id: 6d8beb57-91c4-434e-97ac-f1fc1f85c3e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-07531386', 'ctest-policy-allow-all-01742141']
2025-11-13 16:29:41,737 - INFO - VN ctest-vn-03233260 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 16:29:41,737 - DEBUG - Verifying the vn in opserver
2025-11-13 16:29:41,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-03233260 virtual network link through opserver 10.0.0.22
2025-11-13 16:29:41,737 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 16:29:41,748 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-03233260', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-03233260?flat'}
2025-11-13 16:29:41,748 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07531386:ctest-vn-03233260 is found in opserver
2025-11-13 16:29:41,758 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 16:29:41,762 - DEBUG - VRF ids for VN ctest-vn-03233260: {}
2025-11-13 16:29:41,819 - DEBUG - Services list from nova: [