2026-07-04 13:15:52,288 - INFO - Domain Default found not creating
2026-07-04 13:15:52,443 - INFO - Project ctest-TestBasicPolicy-18966214 not found, creating it
2026-07-04 13:15:52,882 - INFO - Created Project:ctest-TestBasicPolicy-18966214, ID : c3526755-7d90-4ac7-9c81-1c4a7aa8321e
2026-07-04 13:15:54,421 - INFO - ================================================================================
2026-07-04 13:15:54,421 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-04 13:15:54,421 - 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
2026-07-04 13:15:54,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-07-04 13:15:54,682 - INFO - Initial checks done. Running the testcase now
2026-07-04 13:15:54,682 - INFO -
2026-07-04 13:15:55,229 - DEBUG - Response for create_network : {'network': {'id': '2f3b14c8-8113-4b31-b219-0ddb47cf5a76', 'name': 'ctest-vn-75192307', 'tenant_id': 'c35267557d904ac79c811c4a7aa8321e', 'project_id': 'c35267557d904ac79c811c4a7aa8321e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-vn-75192307'], 'port_security_enabled': True, 'description': ''}}
2026-07-04 13:15:55,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d3056a5-a0cc-459b-9595-0964fa8ed80a', 'name': '', 'tenant_id': 'c35267557d904ac79c811c4a7aa8321e', 'network_id': '2f3b14c8-8113-4b31-b219-0ddb47cf5a76', 'ip_version': 4, 'cidr': '28.175.118.0/26', 'allocation_pools': [{'start': '28.175.118.2', 'end': '28.175.118.62'}], 'gateway_ip': '28.175.118.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.175.118.2', 'tags': [], 'project_id': 'c35267557d904ac79c811c4a7aa8321e'}}
2026-07-04 13:15:55,431 - INFO - Created VN ctest-vn-75192307
2026-07-04 13:15:55,482 - DEBUG - VN ctest-vn-75192307 UUID is 2f3b14c8-8113-4b31-b219-0ddb47cf5a76
2026-07-04 13:15:55,757 - DEBUG - Response for create_network : {'network': {'id': '5cf56900-6655-45b2-95f7-8724c6dec8ff', 'name': 'ctest-vn-53381375', 'tenant_id': 'c35267557d904ac79c811c4a7aa8321e', 'project_id': 'c35267557d904ac79c811c4a7aa8321e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-vn-53381375'], 'port_security_enabled': True, 'description': ''}}
2026-07-04 13:15:55,934 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b416ca9b-ab26-41b4-a652-75dec7782be5', 'name': '', 'tenant_id': 'c35267557d904ac79c811c4a7aa8321e', 'network_id': '5cf56900-6655-45b2-95f7-8724c6dec8ff', 'ip_version': 4, 'cidr': '147.70.233.64/26', 'allocation_pools': [{'start': '147.70.233.66', 'end': '147.70.233.126'}], 'gateway_ip': '147.70.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.70.233.66', 'tags': [], 'project_id': 'c35267557d904ac79c811c4a7aa8321e'}}
2026-07-04 13:15:55,946 - INFO - Created VN ctest-vn-53381375
2026-07-04 13:15:55,998 - DEBUG - VN ctest-vn-53381375 UUID is 5cf56900-6655-45b2-95f7-8724c6dec8ff
2026-07-04 13:15:56,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-75192307, 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-18966214:ctest-vn-53381375, 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]
2026-07-04 13:15:56,406 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f3b14c8-8113-4b31-b219-0ddb47cf5a76', 'name': 'ctest-vn-75192307', 'tenant_id': 'c35267557d904ac79c811c4a7aa8321e', 'project_id': 'c35267557d904ac79c811c4a7aa8321e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d3056a5-a0cc-459b-9595-0964fa8ed80a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-vn-75192307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-policy-allow-all-15815653']], 'subnet_ipam': [{'subnet_cidr': '28.175.118.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-04 13:15:56,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cf56900-6655-45b2-95f7-8724c6dec8ff', 'name': 'ctest-vn-53381375', 'tenant_id': 'c35267557d904ac79c811c4a7aa8321e', 'project_id': 'c35267557d904ac79c811c4a7aa8321e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b416ca9b-ab26-41b4-a652-75dec7782be5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-vn-53381375'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-policy-allow-all-15815653']], 'subnet_ipam': [{'subnet_cidr': '147.70.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-04 13:15:56,794 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-04 13:15:57,110 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-04 13:15:57,444 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc
2026-07-04 13:15:57,454 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3526755-7d90-4ac7-9c81-1c4a7aa8321e
2026-07-04 13:15:57,523 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f3b14c8-8113-4b31-b219-0ddb47cf5a76
2026-07-04 13:15:57,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f3b14c8-8113-4b31-b219-0ddb47cf5a76
2026-07-04 13:15:57,540 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ca38c46-e61b-4979-9d97-69f81bf2924b
2026-07-04 13:15:57,546 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ca38c46-e61b-4979-9d97-69f81bf2924b
2026-07-04 13:15:57,552 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83da5b1c-8340-4027-b0e4-c47db770bf2d
2026-07-04 13:15:57,556 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-04 13:15:57,556 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f3b14c8-8113-4b31-b219-0ddb47cf5a76
2026-07-04 13:15:57,563 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ca38c46-e61b-4979-9d97-69f81bf2924b
2026-07-04 13:15:57,574 - INFO - Verified VN network id 11 for VN 2f3b14c8-8113-4b31-b219-0ddb47cf5a76
2026-07-04 13:15:57,574 - INFO - Verifications in API Server for VN ctest-vn-75192307 passed
2026-07-04 13:15:57,575 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f3b14c8-8113-4b31-b219-0ddb47cf5a76
2026-07-04 13:15:57,582 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ca38c46-e61b-4979-9d97-69f81bf2924b
2026-07-04 13:15:57,587 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2ca38c46-e61b-4979-9d97-69f81bf2924b
2026-07-04 13:15:57,593 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83da5b1c-8340-4027-b0e4-c47db770bf2d
2026-07-04 13:15:57,603 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-75192307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18966214', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3403336794800081713', 'uuid-lslong': '12833303848622709366'}, 'enable': 'true', 'created': '2026-07-04T13:15:55', 'last-modified': '2026-07-04T13:15:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.215999'}
2026-07-04 13:15:57,617 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-04 13:15:57,618 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75192307 passed
2026-07-04 13:15:57,618 - DEBUG - ====Verifying policy data for ctest-vn-75192307 in API_Server ======
2026-07-04 13:15:57,618 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-04 13:15:57,622 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc
2026-07-04 13:15:57,631 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3526755-7d90-4ac7-9c81-1c4a7aa8321e
2026-07-04 13:15:57,700 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f3b14c8-8113-4b31-b219-0ddb47cf5a76
2026-07-04 13:15:57,710 - DEBUG - ==>Verifying data for policy with id: ba0d6e96-a696-4dce-bf40-1a7ed66283fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-policy-allow-all-15815653']
2026-07-04 13:15:57,710 - INFO - VN ctest-vn-75192307 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-04 13:15:57,710 - DEBUG - Verifying the vn in opserver
2026-07-04 13:15:57,710 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-75192307 virtual network link through opserver 10.0.0.38
2026-07-04 13:15:57,710 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-04 13:15:58,110 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-04 13:15:58,172 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-75192307', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-75192307?flat'}
2026-07-04 13:15:58,172 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-75192307 is found in opserver
2026-07-04 13:15:58,180 - DEBUG - Do not have enough data to verify VN in agent
2026-07-04 13:15:58,184 - DEBUG - VRF ids for VN ctest-vn-75192307: {}
2026-07-04 13:15:58,184 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-04 13:15:58,188 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc
2026-07-04 13:15:58,196 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3526755-7d90-4ac7-9c81-1c4a7aa8321e
2026-07-04 13:15:58,263 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5cf56900-6655-45b2-95f7-8724c6dec8ff
2026-07-04 13:15:58,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5cf56900-6655-45b2-95f7-8724c6dec8ff
2026-07-04 13:15:58,280 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b3ae5a4-9786-472f-9189-50696faba6fd
2026-07-04 13:15:58,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b3ae5a4-9786-472f-9189-50696faba6fd
2026-07-04 13:15:58,291 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0b7c500-b2c5-4972-a4c3-c18709991449
2026-07-04 13:15:58,296 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-04 13:15:58,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5cf56900-6655-45b2-95f7-8724c6dec8ff
2026-07-04 13:15:58,304 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b3ae5a4-9786-472f-9189-50696faba6fd
2026-07-04 13:15:58,314 - INFO - Verified VN network id 12 for VN 5cf56900-6655-45b2-95f7-8724c6dec8ff
2026-07-04 13:15:58,314 - INFO - Verifications in API Server for VN ctest-vn-53381375 passed
2026-07-04 13:15:58,314 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5cf56900-6655-45b2-95f7-8724c6dec8ff
2026-07-04 13:15:58,322 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b3ae5a4-9786-472f-9189-50696faba6fd
2026-07-04 13:15:58,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b3ae5a4-9786-472f-9189-50696faba6fd
2026-07-04 13:15:58,332 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d0b7c500-b2c5-4972-a4c3-c18709991449
2026-07-04 13:15:58,343 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-53381375', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18966214', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6698375471221261746', 'uuid-lslong': '10806254422923856127'}, 'enable': 'true', 'created': '2026-07-04T13:15:55', 'last-modified': '2026-07-04T13:15:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.735761'}
2026-07-04 13:15:58,350 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-04 13:15:58,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53381375 passed
2026-07-04 13:15:58,350 - DEBUG - ====Verifying policy data for ctest-vn-53381375 in API_Server ======
2026-07-04 13:15:58,350 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-04 13:15:58,356 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bde72c80-b24b-4310-9fea-2b0b0613b4fc
2026-07-04 13:15:58,367 - DEBUG - Requesting: http://10.0.0.38:8082/project/c3526755-7d90-4ac7-9c81-1c4a7aa8321e
2026-07-04 13:15:58,439 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5cf56900-6655-45b2-95f7-8724c6dec8ff
2026-07-04 13:15:58,452 - DEBUG - ==>Verifying data for policy with id: ba0d6e96-a696-4dce-bf40-1a7ed66283fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-18966214', 'ctest-policy-allow-all-15815653']
2026-07-04 13:15:58,452 - INFO - VN ctest-vn-53381375 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-04 13:15:58,452 - DEBUG - Verifying the vn in opserver
2026-07-04 13:15:58,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-53381375 virtual network link through opserver 10.0.0.38
2026-07-04 13:15:58,452 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-04 13:15:58,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-53381375', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-53381375?flat'}
2026-07-04 13:15:58,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18966214:ctest-vn-53381375 is found in opserver
2026-07-04 13:15:58,472 - DEBUG - Do not have enough data to verify VN in agent
2026-07-04 13:15:58,476 - DEBUG - VRF ids for VN ctest-vn-53381375: {}
2026-07-04 13:15:58,531 - DEBUG - Services list from nova: [