2025-09-08 15:40:26,896 - INFO - Domain Default found not creating
2025-09-08 15:40:27,035 - INFO - Project ctest-TestBasicPolicy-35537830 not found, creating it
2025-09-08 15:40:27,457 - INFO - Created Project:ctest-TestBasicPolicy-35537830, ID : 435b86e1-fdd6-4384-a15a-54a12629f66f
2025-09-08 15:40:28,830 - INFO - ================================================================================
2025-09-08 15:40:28,830 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-08 15:40:28,830 - 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-08 15:40:29,082 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with
2025-09-08 15:40:29,082 - INFO - Initial checks done. Running the testcase now
2025-09-08 15:40:29,082 - INFO -
2025-09-08 15:40:29,596 - DEBUG - Response for create_network : {'network': {'id': 'be6a02ab-b02b-41c6-83fc-e5ee4ee095ea', 'name': 'ctest-vn-15043283', 'tenant_id': '435b86e1fdd64384a15a54a12629f66f', 'project_id': '435b86e1fdd64384a15a54a12629f66f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-vn-15043283'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:40:29,749 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b2d7084-ced7-482c-a608-d2f991e3d5bf', 'name': '', 'tenant_id': '435b86e1fdd64384a15a54a12629f66f', 'network_id': 'be6a02ab-b02b-41c6-83fc-e5ee4ee095ea', 'ip_version': 4, 'cidr': '198.134.79.64/26', 'allocation_pools': [{'start': '198.134.79.66', 'end': '198.134.79.126'}], 'gateway_ip': '198.134.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.134.79.66', 'tags': [], 'project_id': '435b86e1fdd64384a15a54a12629f66f'}}
2025-09-08 15:40:29,763 - INFO - Created VN ctest-vn-15043283
2025-09-08 15:40:29,814 - DEBUG - VN ctest-vn-15043283 UUID is be6a02ab-b02b-41c6-83fc-e5ee4ee095ea
2025-09-08 15:40:30,137 - DEBUG - Response for create_network : {'network': {'id': 'fd13ed36-73e8-4839-b80a-61e49a308da5', 'name': 'ctest-vn-94548428', 'tenant_id': '435b86e1fdd64384a15a54a12629f66f', 'project_id': '435b86e1fdd64384a15a54a12629f66f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-vn-94548428'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:40:30,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c197b07-032a-4c2a-8c27-d0bd02ce618f', 'name': '', 'tenant_id': '435b86e1fdd64384a15a54a12629f66f', 'network_id': 'fd13ed36-73e8-4839-b80a-61e49a308da5', 'ip_version': 4, 'cidr': '87.141.183.64/26', 'allocation_pools': [{'start': '87.141.183.66', 'end': '87.141.183.126'}], 'gateway_ip': '87.141.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.141.183.66', 'tags': [], 'project_id': '435b86e1fdd64384a15a54a12629f66f'}}
2025-09-08 15:40:30,310 - INFO - Created VN ctest-vn-94548428
2025-09-08 15:40:30,362 - DEBUG - VN ctest-vn-94548428 UUID is fd13ed36-73e8-4839-b80a-61e49a308da5
2025-09-08 15:40:30,506 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-15043283, 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-35537830:ctest-vn-94548428, 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-08 15:40:30,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be6a02ab-b02b-41c6-83fc-e5ee4ee095ea', 'name': 'ctest-vn-15043283', 'tenant_id': '435b86e1fdd64384a15a54a12629f66f', 'project_id': '435b86e1fdd64384a15a54a12629f66f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b2d7084-ced7-482c-a608-d2f991e3d5bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-vn-15043283'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-policy-allow-all-48586196']], 'subnet_ipam': [{'subnet_cidr': '198.134.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:40:31,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd13ed36-73e8-4839-b80a-61e49a308da5', 'name': 'ctest-vn-94548428', 'tenant_id': '435b86e1fdd64384a15a54a12629f66f', 'project_id': '435b86e1fdd64384a15a54a12629f66f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c197b07-032a-4c2a-8c27-d0bd02ce618f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-vn-94548428'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-policy-allow-all-48586196']], 'subnet_ipam': [{'subnet_cidr': '87.141.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:40:31,198 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 15:40:31,491 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 15:40:31,518 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65144227-5bef-4bc6-9fbb-39dd2a7958cb
2025-09-08 15:40:31,529 - DEBUG - Requesting: http://10.0.0.22:8082/project/435b86e1-fdd6-4384-a15a-54a12629f66f
2025-09-08 15:40:31,598 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be6a02ab-b02b-41c6-83fc-e5ee4ee095ea
2025-09-08 15:40:31,609 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be6a02ab-b02b-41c6-83fc-e5ee4ee095ea
2025-09-08 15:40:31,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/deafa4e6-0581-4bae-9b15-b17b603c1142
2025-09-08 15:40:31,625 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/deafa4e6-0581-4bae-9b15-b17b603c1142
2025-09-08 15:40:31,631 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/afa288d7-4660-4b59-a0cb-7eb12816bd95
2025-09-08 15:40:31,636 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 15:40:31,637 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be6a02ab-b02b-41c6-83fc-e5ee4ee095ea
2025-09-08 15:40:31,645 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/deafa4e6-0581-4bae-9b15-b17b603c1142
2025-09-08 15:40:31,657 - INFO - Verified VN network id 12 for VN be6a02ab-b02b-41c6-83fc-e5ee4ee095ea
2025-09-08 15:40:31,657 - INFO - Verifications in API Server for VN ctest-vn-15043283 passed
2025-09-08 15:40:31,657 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be6a02ab-b02b-41c6-83fc-e5ee4ee095ea
2025-09-08 15:40:31,665 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/deafa4e6-0581-4bae-9b15-b17b603c1142
2025-09-08 15:40:31,672 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/deafa4e6-0581-4bae-9b15-b17b603c1142
2025-09-08 15:40:31,679 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/afa288d7-4660-4b59-a0cb-7eb12816bd95
2025-09-08 15:40:31,690 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-15043283', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35537830', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13720782151155925446', 'uuid-lslong': '9510729324787963370'}, 'enable': 'true', 'created': '2025-09-08T15:40:29', 'last-modified': '2025-09-08T15:40:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921711'}
2025-09-08 15:40:31,697 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 15:40:31,697 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15043283 passed
2025-09-08 15:40:31,697 - DEBUG - ====Verifying policy data for ctest-vn-15043283 in API_Server ======
2025-09-08 15:40:31,697 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 15:40:31,702 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65144227-5bef-4bc6-9fbb-39dd2a7958cb
2025-09-08 15:40:31,713 - DEBUG - Requesting: http://10.0.0.22:8082/project/435b86e1-fdd6-4384-a15a-54a12629f66f
2025-09-08 15:40:31,783 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be6a02ab-b02b-41c6-83fc-e5ee4ee095ea
2025-09-08 15:40:31,791 - DEBUG - ==>Verifying data for policy with id: 74abac0d-a236-4586-be95-9406ed1f7fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-policy-allow-all-48586196']
2025-09-08 15:40:31,791 - INFO - VN ctest-vn-15043283 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 15:40:31,791 - DEBUG - Verifying the vn in opserver
2025-09-08 15:40:31,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-15043283 virtual network link through opserver 10.0.0.22
2025-09-08 15:40:31,792 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 15:40:32,089 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 15:40:32,141 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-15043283', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-15043283?flat'}
2025-09-08 15:40:32,141 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-15043283 is found in opserver
2025-09-08 15:40:32,152 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 15:40:32,156 - DEBUG - VRF ids for VN ctest-vn-15043283: {}
2025-09-08 15:40:32,156 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 15:40:32,161 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65144227-5bef-4bc6-9fbb-39dd2a7958cb
2025-09-08 15:40:32,172 - DEBUG - Requesting: http://10.0.0.22:8082/project/435b86e1-fdd6-4384-a15a-54a12629f66f
2025-09-08 15:40:32,243 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd13ed36-73e8-4839-b80a-61e49a308da5
2025-09-08 15:40:32,253 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd13ed36-73e8-4839-b80a-61e49a308da5
2025-09-08 15:40:32,261 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/498c0499-0c70-4a1e-91cb-9eb0274ecca3
2025-09-08 15:40:32,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/498c0499-0c70-4a1e-91cb-9eb0274ecca3
2025-09-08 15:40:32,273 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/11a7bf30-df6d-4549-a70c-6a07013d1c84
2025-09-08 15:40:32,278 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 15:40:32,278 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd13ed36-73e8-4839-b80a-61e49a308da5
2025-09-08 15:40:32,286 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/498c0499-0c70-4a1e-91cb-9eb0274ecca3
2025-09-08 15:40:32,298 - INFO - Verified VN network id 13 for VN fd13ed36-73e8-4839-b80a-61e49a308da5
2025-09-08 15:40:32,298 - INFO - Verifications in API Server for VN ctest-vn-94548428 passed
2025-09-08 15:40:32,298 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd13ed36-73e8-4839-b80a-61e49a308da5
2025-09-08 15:40:32,306 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/498c0499-0c70-4a1e-91cb-9eb0274ecca3
2025-09-08 15:40:32,312 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/498c0499-0c70-4a1e-91cb-9eb0274ecca3
2025-09-08 15:40:32,318 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/11a7bf30-df6d-4549-a70c-6a07013d1c84
2025-09-08 15:40:32,330 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-94548428', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35537830', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18236180134281889849', 'uuid-lslong': '13261519687213157797'}, 'enable': 'true', 'created': '2025-09-08T15:40:30', 'last-modified': '2025-09-08T15:40:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344010'}
2025-09-08 15:40:32,335 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 15:40:32,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94548428 passed
2025-09-08 15:40:32,335 - DEBUG - ====Verifying policy data for ctest-vn-94548428 in API_Server ======
2025-09-08 15:40:32,335 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-08 15:40:32,341 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65144227-5bef-4bc6-9fbb-39dd2a7958cb
2025-09-08 15:40:32,350 - DEBUG - Requesting: http://10.0.0.22:8082/project/435b86e1-fdd6-4384-a15a-54a12629f66f
2025-09-08 15:40:32,428 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd13ed36-73e8-4839-b80a-61e49a308da5
2025-09-08 15:40:32,438 - DEBUG - ==>Verifying data for policy with id: 74abac0d-a236-4586-be95-9406ed1f7fd4, fqn: ['default-domain', 'ctest-TestBasicPolicy-35537830', 'ctest-policy-allow-all-48586196']
2025-09-08 15:40:32,438 - INFO - VN ctest-vn-94548428 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 15:40:32,438 - DEBUG - Verifying the vn in opserver
2025-09-08 15:40:32,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-94548428 virtual network link through opserver 10.0.0.22
2025-09-08 15:40:32,438 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-08 15:40:32,448 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-94548428', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-94548428?flat'}
2025-09-08 15:40:32,448 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35537830:ctest-vn-94548428 is found in opserver
2025-09-08 15:40:32,457 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 15:40:32,461 - DEBUG - VRF ids for VN ctest-vn-94548428: {}
2025-09-08 15:40:32,511 - DEBUG - Services list from nova: [