2026-03-05 19:57:38,679 - INFO - Domain Default found not creating
2026-03-05 19:57:38,980 - INFO - Project ctest-TestBasicPolicy-06363233 not found, creating it
2026-03-05 19:57:39,458 - INFO - Created Project:ctest-TestBasicPolicy-06363233, ID : 64d53261-7427-4492-b827-11085feb6706
2026-03-05 19:57:41,668 - INFO - ================================================================================
2026-03-05 19:57:41,668 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-05 19:57:41,668 - 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-03-05 19:57:41,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-03-05 19:57:41,991 - INFO - Initial checks done. Running the testcase now
2026-03-05 19:57:41,991 - INFO -
2026-03-05 19:57:42,797 - DEBUG - Response for create_network : {'network': {'id': '2042e584-d40e-4897-9563-575e64b35d9e', 'name': 'ctest-vn-56669509', 'tenant_id': '64d5326174274492b82711085feb6706', 'project_id': '64d5326174274492b82711085feb6706', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-vn-56669509'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:57:43,012 - DEBUG - Response for create_subnet : {'subnet': {'id': '41459ed9-fb82-48e3-b356-43e7f393f6f7', 'name': '', 'tenant_id': '64d5326174274492b82711085feb6706', 'network_id': '2042e584-d40e-4897-9563-575e64b35d9e', 'ip_version': 4, 'cidr': '20.32.214.64/26', 'allocation_pools': [{'start': '20.32.214.66', 'end': '20.32.214.126'}], 'gateway_ip': '20.32.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.32.214.66', 'tags': [], 'project_id': '64d5326174274492b82711085feb6706'}}
2026-03-05 19:57:43,041 - INFO - Created VN ctest-vn-56669509
2026-03-05 19:57:43,101 - DEBUG - VN ctest-vn-56669509 UUID is 2042e584-d40e-4897-9563-575e64b35d9e
2026-03-05 19:57:43,475 - DEBUG - Response for create_network : {'network': {'id': 'fba591ef-1633-4e65-9609-124ca2916a5e', 'name': 'ctest-vn-06759514', 'tenant_id': '64d5326174274492b82711085feb6706', 'project_id': '64d5326174274492b82711085feb6706', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-vn-06759514'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:57:43,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f2a60b8-fa7f-4274-98f6-d7cbd8c753b7', 'name': '', 'tenant_id': '64d5326174274492b82711085feb6706', 'network_id': 'fba591ef-1633-4e65-9609-124ca2916a5e', 'ip_version': 4, 'cidr': '221.213.119.128/26', 'allocation_pools': [{'start': '221.213.119.130', 'end': '221.213.119.190'}], 'gateway_ip': '221.213.119.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.213.119.130', 'tags': [], 'project_id': '64d5326174274492b82711085feb6706'}}
2026-03-05 19:57:43,765 - INFO - Created VN ctest-vn-06759514
2026-03-05 19:57:43,833 - DEBUG - VN ctest-vn-06759514 UUID is fba591ef-1633-4e65-9609-124ca2916a5e
2026-03-05 19:57:44,035 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-56669509, 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-06363233:ctest-vn-06759514, 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-03-05 19:57:44,491 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2042e584-d40e-4897-9563-575e64b35d9e', 'name': 'ctest-vn-56669509', 'tenant_id': '64d5326174274492b82711085feb6706', 'project_id': '64d5326174274492b82711085feb6706', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41459ed9-fb82-48e3-b356-43e7f393f6f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-vn-56669509'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-policy-allow-all-59242022']], 'subnet_ipam': [{'subnet_cidr': '20.32.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:57:44,838 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fba591ef-1633-4e65-9609-124ca2916a5e', 'name': 'ctest-vn-06759514', 'tenant_id': '64d5326174274492b82711085feb6706', 'project_id': '64d5326174274492b82711085feb6706', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f2a60b8-fa7f-4274-98f6-d7cbd8c753b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-vn-06759514'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-policy-allow-all-59242022']], 'subnet_ipam': [{'subnet_cidr': '221.213.119.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:57:45,006 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-05 19:57:45,334 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-05 19:57:45,401 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94
2026-03-05 19:57:45,435 - DEBUG - Requesting: http://10.0.0.242:8082/project/64d53261-7427-4492-b827-11085feb6706
2026-03-05 19:57:45,553 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2042e584-d40e-4897-9563-575e64b35d9e
2026-03-05 19:57:45,573 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2042e584-d40e-4897-9563-575e64b35d9e
2026-03-05 19:57:45,584 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb60b77d-ce58-40d5-8db5-45f0f7898a0f
2026-03-05 19:57:45,593 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb60b77d-ce58-40d5-8db5-45f0f7898a0f
2026-03-05 19:57:45,603 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6285d0a3-8228-4fe0-90b8-961381f92e12
2026-03-05 19:57:45,613 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 19:57:45,613 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2042e584-d40e-4897-9563-575e64b35d9e
2026-03-05 19:57:45,630 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb60b77d-ce58-40d5-8db5-45f0f7898a0f
2026-03-05 19:57:45,656 - INFO - Verified VN network id 11 for VN 2042e584-d40e-4897-9563-575e64b35d9e
2026-03-05 19:57:45,656 - INFO - Verifications in API Server for VN ctest-vn-56669509 passed
2026-03-05 19:57:45,656 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2042e584-d40e-4897-9563-575e64b35d9e
2026-03-05 19:57:45,669 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb60b77d-ce58-40d5-8db5-45f0f7898a0f
2026-03-05 19:57:45,677 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb60b77d-ce58-40d5-8db5-45f0f7898a0f
2026-03-05 19:57:45,685 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6285d0a3-8228-4fe0-90b8-961381f92e12
2026-03-05 19:57:45,702 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-56669509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06363233', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2324672716332746903', 'uuid-lslong': '10764543597273636254'}, 'enable': 'true', 'created': '2026-03-05T19:57:42', 'last-modified': '2026-03-05T19:57:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262227'}
2026-03-05 19:57:45,711 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 19:57:45,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56669509 passed
2026-03-05 19:57:45,712 - DEBUG - ====Verifying policy data for ctest-vn-56669509 in API_Server ======
2026-03-05 19:57:45,712 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-05 19:57:45,718 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94
2026-03-05 19:57:45,732 - DEBUG - Requesting: http://10.0.0.242:8082/project/64d53261-7427-4492-b827-11085feb6706
2026-03-05 19:57:45,818 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2042e584-d40e-4897-9563-575e64b35d9e
2026-03-05 19:57:45,831 - DEBUG - ==>Verifying data for policy with id: 0f64f535-c06c-4a05-8f04-e2e5e72a013f, fqn: ['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-policy-allow-all-59242022']
2026-03-05 19:57:45,831 - INFO - VN ctest-vn-56669509 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 19:57:45,831 - DEBUG - Verifying the vn in opserver
2026-03-05 19:57:45,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-56669509 virtual network link through opserver 10.0.0.242
2026-03-05 19:57:45,831 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-05 19:57:46,129 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-05 19:57:46,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-56669509', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-56669509?flat'}
2026-03-05 19:57:46,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-56669509 is found in opserver
2026-03-05 19:57:46,244 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 19:57:46,255 - DEBUG - VRF ids for VN ctest-vn-56669509: {}
2026-03-05 19:57:46,255 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-05 19:57:46,265 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94
2026-03-05 19:57:46,293 - DEBUG - Requesting: http://10.0.0.242:8082/project/64d53261-7427-4492-b827-11085feb6706
2026-03-05 19:57:46,417 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba591ef-1633-4e65-9609-124ca2916a5e
2026-03-05 19:57:46,447 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba591ef-1633-4e65-9609-124ca2916a5e
2026-03-05 19:57:46,470 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7696096f-8f46-44a0-884d-377fc65757b8
2026-03-05 19:57:46,487 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7696096f-8f46-44a0-884d-377fc65757b8
2026-03-05 19:57:46,506 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/36cbec87-6ccc-4aea-8f90-750524405fc0
2026-03-05 19:57:46,524 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 19:57:46,525 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba591ef-1633-4e65-9609-124ca2916a5e
2026-03-05 19:57:46,555 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7696096f-8f46-44a0-884d-377fc65757b8
2026-03-05 19:57:46,598 - INFO - Verified VN network id 12 for VN fba591ef-1633-4e65-9609-124ca2916a5e
2026-03-05 19:57:46,598 - INFO - Verifications in API Server for VN ctest-vn-06759514 passed
2026-03-05 19:57:46,598 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba591ef-1633-4e65-9609-124ca2916a5e
2026-03-05 19:57:46,623 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7696096f-8f46-44a0-884d-377fc65757b8
2026-03-05 19:57:46,643 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7696096f-8f46-44a0-884d-377fc65757b8
2026-03-05 19:57:46,662 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/36cbec87-6ccc-4aea-8f90-750524405fc0
2026-03-05 19:57:46,696 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-06759514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06363233', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18133059930732842597', 'uuid-lslong': '10811192500833839710'}, 'enable': 'true', 'created': '2026-03-05T19:57:43', 'last-modified': '2026-03-05T19:57:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.885848'}
2026-03-05 19:57:46,711 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 19:57:46,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06759514 passed
2026-03-05 19:57:46,712 - DEBUG - ====Verifying policy data for ctest-vn-06759514 in API_Server ======
2026-03-05 19:57:46,712 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-05 19:57:46,724 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94
2026-03-05 19:57:46,751 - DEBUG - Requesting: http://10.0.0.242:8082/project/64d53261-7427-4492-b827-11085feb6706
2026-03-05 19:57:46,873 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba591ef-1633-4e65-9609-124ca2916a5e
2026-03-05 19:57:46,891 - DEBUG - ==>Verifying data for policy with id: 0f64f535-c06c-4a05-8f04-e2e5e72a013f, fqn: ['default-domain', 'ctest-TestBasicPolicy-06363233', 'ctest-policy-allow-all-59242022']
2026-03-05 19:57:46,891 - INFO - VN ctest-vn-06759514 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 19:57:46,891 - DEBUG - Verifying the vn in opserver
2026-03-05 19:57:46,891 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-06759514 virtual network link through opserver 10.0.0.242
2026-03-05 19:57:46,892 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-05 19:57:46,908 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-06759514', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-06759514?flat'}
2026-03-05 19:57:46,908 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06363233:ctest-vn-06759514 is found in opserver
2026-03-05 19:57:46,923 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 19:57:46,931 - DEBUG - VRF ids for VN ctest-vn-06759514: {}
2026-03-05 19:57:47,057 - DEBUG - Services list from nova: [