2025-09-04 22:44:43,830 - INFO - Domain Default found not creating
2025-09-04 22:44:43,965 - INFO - Project ctest-TestBasicPolicy-68228146 not found, creating it
2025-09-04 22:44:44,413 - INFO - Created Project:ctest-TestBasicPolicy-68228146, ID : 0d982f2c-80b5-42c2-bf02-dd55e9819c4c
2025-09-04 22:44:45,833 - INFO - ================================================================================
2025-09-04 22:44:45,833 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 22:44:45,833 - 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-04 22:44:46,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-04 22:44:46,093 - INFO - Initial checks done. Running the testcase now
2025-09-04 22:44:46,093 - INFO -
2025-09-04 22:44:46,654 - DEBUG - Response for create_network : {'network': {'id': 'aec015f8-e062-4835-8198-bec6641a3a52', 'name': 'ctest-vn-25911746', 'tenant_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'project_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-vn-25911746'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 22:44:46,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '74fa3568-783f-4244-bf1a-c503fcebf8c6', 'name': '', 'tenant_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'network_id': 'aec015f8-e062-4835-8198-bec6641a3a52', 'ip_version': 4, 'cidr': '188.6.79.128/26', 'allocation_pools': [{'start': '188.6.79.130', 'end': '188.6.79.190'}], 'gateway_ip': '188.6.79.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.6.79.130', 'tags': [], 'project_id': '0d982f2c80b542c2bf02dd55e9819c4c'}}
2025-09-04 22:44:46,860 - INFO - Created VN ctest-vn-25911746
2025-09-04 22:44:46,911 - DEBUG - VN ctest-vn-25911746 UUID is aec015f8-e062-4835-8198-bec6641a3a52
2025-09-04 22:44:47,259 - DEBUG - Response for create_network : {'network': {'id': '9aa4f65b-b8a1-4943-8d89-d107ba79bd09', 'name': 'ctest-vn-88039337', 'tenant_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'project_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-vn-88039337'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 22:44:47,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fbbe54b-4750-4352-9297-45fa3f9d374a', 'name': '', 'tenant_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'network_id': '9aa4f65b-b8a1-4943-8d89-d107ba79bd09', 'ip_version': 4, 'cidr': '88.176.60.128/26', 'allocation_pools': [{'start': '88.176.60.130', 'end': '88.176.60.190'}], 'gateway_ip': '88.176.60.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.176.60.130', 'tags': [], 'project_id': '0d982f2c80b542c2bf02dd55e9819c4c'}}
2025-09-04 22:44:47,449 - INFO - Created VN ctest-vn-88039337
2025-09-04 22:44:47,499 - DEBUG - VN ctest-vn-88039337 UUID is 9aa4f65b-b8a1-4943-8d89-d107ba79bd09
2025-09-04 22:44:47,647 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-25911746, 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-68228146:ctest-vn-88039337, 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-04 22:44:47,940 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aec015f8-e062-4835-8198-bec6641a3a52', 'name': 'ctest-vn-25911746', 'tenant_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'project_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74fa3568-783f-4244-bf1a-c503fcebf8c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-vn-25911746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-policy-allow-all-34713539']], 'subnet_ipam': [{'subnet_cidr': '188.6.79.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 22:44:48,151 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9aa4f65b-b8a1-4943-8d89-d107ba79bd09', 'name': 'ctest-vn-88039337', 'tenant_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'project_id': '0d982f2c80b542c2bf02dd55e9819c4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fbbe54b-4750-4352-9297-45fa3f9d374a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-vn-88039337'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-policy-allow-all-34713539']], 'subnet_ipam': [{'subnet_cidr': '88.176.60.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 22:44:48,271 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 22:44:48,579 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 22:44:48,608 - DEBUG - Requesting: http://10.0.0.254:8082/domain/18e93f8c-947f-4302-b02a-0278c55b9716
2025-09-04 22:44:48,618 - DEBUG - Requesting: http://10.0.0.254:8082/project/0d982f2c-80b5-42c2-bf02-dd55e9819c4c
2025-09-04 22:44:48,692 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aec015f8-e062-4835-8198-bec6641a3a52
2025-09-04 22:44:48,701 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aec015f8-e062-4835-8198-bec6641a3a52
2025-09-04 22:44:48,708 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/507e727e-b02a-4c1d-af22-df248fb821cc
2025-09-04 22:44:48,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/507e727e-b02a-4c1d-af22-df248fb821cc
2025-09-04 22:44:48,719 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dfde871e-7fa2-4589-8745-b756fbd28dd5
2025-09-04 22:44:48,724 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 22:44:48,724 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aec015f8-e062-4835-8198-bec6641a3a52
2025-09-04 22:44:48,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/507e727e-b02a-4c1d-af22-df248fb821cc
2025-09-04 22:44:48,748 - INFO - Verified VN network id 11 for VN aec015f8-e062-4835-8198-bec6641a3a52
2025-09-04 22:44:48,748 - INFO - Verifications in API Server for VN ctest-vn-25911746 passed
2025-09-04 22:44:48,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aec015f8-e062-4835-8198-bec6641a3a52
2025-09-04 22:44:48,756 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/507e727e-b02a-4c1d-af22-df248fb821cc
2025-09-04 22:44:48,761 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/507e727e-b02a-4c1d-af22-df248fb821cc
2025-09-04 22:44:48,766 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dfde871e-7fa2-4589-8745-b756fbd28dd5
2025-09-04 22:44:48,776 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-25911746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68228146', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12592088716788516917', 'uuid-lslong': '9338423586644965970'}, 'enable': 'true', 'created': '2025-09-04T22:44:46', 'last-modified': '2025-09-04T22:44:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.854312'}
2025-09-04 22:44:48,781 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 22:44:48,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25911746 passed
2025-09-04 22:44:48,781 - DEBUG - ====Verifying policy data for ctest-vn-25911746 in API_Server ======
2025-09-04 22:44:48,781 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 22:44:48,786 - DEBUG - Requesting: http://10.0.0.254:8082/domain/18e93f8c-947f-4302-b02a-0278c55b9716
2025-09-04 22:44:48,798 - DEBUG - Requesting: http://10.0.0.254:8082/project/0d982f2c-80b5-42c2-bf02-dd55e9819c4c
2025-09-04 22:44:48,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aec015f8-e062-4835-8198-bec6641a3a52
2025-09-04 22:44:48,874 - DEBUG - ==>Verifying data for policy with id: 6e6a097a-50a5-48b8-986c-9b2d7269047f, fqn: ['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-policy-allow-all-34713539']
2025-09-04 22:44:48,874 - INFO - VN ctest-vn-25911746 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 22:44:48,874 - DEBUG - Verifying the vn in opserver
2025-09-04 22:44:48,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-25911746 virtual network link through opserver 10.0.0.254
2025-09-04 22:44:48,874 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 22:44:49,166 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 22:44:49,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-25911746', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-25911746?flat'}
2025-09-04 22:44:49,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-25911746 is found in opserver
2025-09-04 22:44:49,230 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 22:44:49,234 - DEBUG - VRF ids for VN ctest-vn-25911746: {}
2025-09-04 22:44:49,234 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 22:44:49,239 - DEBUG - Requesting: http://10.0.0.254:8082/domain/18e93f8c-947f-4302-b02a-0278c55b9716
2025-09-04 22:44:49,248 - DEBUG - Requesting: http://10.0.0.254:8082/project/0d982f2c-80b5-42c2-bf02-dd55e9819c4c
2025-09-04 22:44:49,312 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9aa4f65b-b8a1-4943-8d89-d107ba79bd09
2025-09-04 22:44:49,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9aa4f65b-b8a1-4943-8d89-d107ba79bd09
2025-09-04 22:44:49,330 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/65c7959e-d20a-4f08-b6d5-f3b2907d3995
2025-09-04 22:44:49,335 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/65c7959e-d20a-4f08-b6d5-f3b2907d3995
2025-09-04 22:44:49,341 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e54b986-8a63-4d1d-9661-0a3c5e6d93e6
2025-09-04 22:44:49,346 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 22:44:49,346 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9aa4f65b-b8a1-4943-8d89-d107ba79bd09
2025-09-04 22:44:49,354 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/65c7959e-d20a-4f08-b6d5-f3b2907d3995
2025-09-04 22:44:49,365 - INFO - Verified VN network id 12 for VN 9aa4f65b-b8a1-4943-8d89-d107ba79bd09
2025-09-04 22:44:49,365 - INFO - Verifications in API Server for VN ctest-vn-88039337 passed
2025-09-04 22:44:49,365 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9aa4f65b-b8a1-4943-8d89-d107ba79bd09
2025-09-04 22:44:49,372 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/65c7959e-d20a-4f08-b6d5-f3b2907d3995
2025-09-04 22:44:49,377 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/65c7959e-d20a-4f08-b6d5-f3b2907d3995
2025-09-04 22:44:49,382 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e54b986-8a63-4d1d-9661-0a3c5e6d93e6
2025-09-04 22:44:49,391 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-88039337', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68228146', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11143302251821484355', 'uuid-lslong': '10198912662280715529'}, 'enable': 'true', 'created': '2025-09-04T22:44:47', 'last-modified': '2025-09-04T22:44:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260834'}
2025-09-04 22:44:49,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 22:44:49,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88039337 passed
2025-09-04 22:44:49,397 - DEBUG - ====Verifying policy data for ctest-vn-88039337 in API_Server ======
2025-09-04 22:44:49,397 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 22:44:49,404 - DEBUG - Requesting: http://10.0.0.254:8082/domain/18e93f8c-947f-4302-b02a-0278c55b9716
2025-09-04 22:44:49,412 - DEBUG - Requesting: http://10.0.0.254:8082/project/0d982f2c-80b5-42c2-bf02-dd55e9819c4c
2025-09-04 22:44:49,482 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9aa4f65b-b8a1-4943-8d89-d107ba79bd09
2025-09-04 22:44:49,491 - DEBUG - ==>Verifying data for policy with id: 6e6a097a-50a5-48b8-986c-9b2d7269047f, fqn: ['default-domain', 'ctest-TestBasicPolicy-68228146', 'ctest-policy-allow-all-34713539']
2025-09-04 22:44:49,491 - INFO - VN ctest-vn-88039337 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 22:44:49,491 - DEBUG - Verifying the vn in opserver
2025-09-04 22:44:49,491 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-88039337 virtual network link through opserver 10.0.0.254
2025-09-04 22:44:49,491 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 22:44:49,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-88039337', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-88039337?flat'}
2025-09-04 22:44:49,500 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68228146:ctest-vn-88039337 is found in opserver
2025-09-04 22:44:49,509 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 22:44:49,514 - DEBUG - VRF ids for VN ctest-vn-88039337: {}
2025-09-04 22:44:49,574 - DEBUG - Services list from nova: [