2026-04-29 18:02:44,239 - INFO - Domain Default found not creating
2026-04-29 18:02:44,471 - INFO - Project ctest-TestBasicPolicy-36140926 not found, creating it
2026-04-29 18:02:44,997 - INFO - Created Project:ctest-TestBasicPolicy-36140926, ID : c38f77d7-d2ac-4274-ad0d-973887ff55fe
2026-04-29 18:02:46,618 - INFO - ================================================================================
2026-04-29 18:02:46,619 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 18:02:46,619 - 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-04-29 18:02:46,894 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-04-29 18:02:46,894 - INFO - Initial checks done. Running the testcase now
2026-04-29 18:02:46,894 - INFO -
2026-04-29 18:02:47,519 - DEBUG - Response for create_network : {'network': {'id': 'd1ab1e77-7761-44f7-8773-3df8e915bc29', 'name': 'ctest-vn-87800475', 'tenant_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'project_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-vn-87800475'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 18:02:47,698 - DEBUG - Response for create_subnet : {'subnet': {'id': '4be88be3-c04d-4e6d-8c8a-a19e460781ad', 'name': '', 'tenant_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'network_id': 'd1ab1e77-7761-44f7-8773-3df8e915bc29', 'ip_version': 4, 'cidr': '196.188.43.0/26', 'allocation_pools': [{'start': '196.188.43.2', 'end': '196.188.43.62'}], 'gateway_ip': '196.188.43.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.188.43.2', 'tags': [], 'project_id': 'c38f77d7d2ac4274ad0d973887ff55fe'}}
2026-04-29 18:02:47,725 - INFO - Created VN ctest-vn-87800475
2026-04-29 18:02:47,781 - DEBUG - VN ctest-vn-87800475 UUID is d1ab1e77-7761-44f7-8773-3df8e915bc29
2026-04-29 18:02:48,127 - DEBUG - Response for create_network : {'network': {'id': '161b39fc-ac06-4240-8776-4c5e1faab202', 'name': 'ctest-vn-56754757', 'tenant_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'project_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-vn-56754757'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 18:02:48,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e19623e-cf94-4af9-b6de-9e8f363f47f5', 'name': '', 'tenant_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'network_id': '161b39fc-ac06-4240-8776-4c5e1faab202', 'ip_version': 4, 'cidr': '129.253.127.64/26', 'allocation_pools': [{'start': '129.253.127.66', 'end': '129.253.127.126'}], 'gateway_ip': '129.253.127.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.253.127.66', 'tags': [], 'project_id': 'c38f77d7d2ac4274ad0d973887ff55fe'}}
2026-04-29 18:02:48,306 - INFO - Created VN ctest-vn-56754757
2026-04-29 18:02:48,357 - DEBUG - VN ctest-vn-56754757 UUID is 161b39fc-ac06-4240-8776-4c5e1faab202
2026-04-29 18:02:48,485 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-87800475, 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-36140926:ctest-vn-56754757, 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-04-29 18:02:48,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1ab1e77-7761-44f7-8773-3df8e915bc29', 'name': 'ctest-vn-87800475', 'tenant_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'project_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4be88be3-c04d-4e6d-8c8a-a19e460781ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-vn-87800475'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-policy-allow-all-11868587']], 'subnet_ipam': [{'subnet_cidr': '196.188.43.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 18:02:49,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '161b39fc-ac06-4240-8776-4c5e1faab202', 'name': 'ctest-vn-56754757', 'tenant_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'project_id': 'c38f77d7d2ac4274ad0d973887ff55fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e19623e-cf94-4af9-b6de-9e8f363f47f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-vn-56754757'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-policy-allow-all-11868587']], 'subnet_ipam': [{'subnet_cidr': '129.253.127.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 18:02:49,177 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 18:02:49,487 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 18:02:49,533 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac
2026-04-29 18:02:49,550 - DEBUG - Requesting: http://10.0.0.249:8082/project/c38f77d7-d2ac-4274-ad0d-973887ff55fe
2026-04-29 18:02:49,631 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d1ab1e77-7761-44f7-8773-3df8e915bc29
2026-04-29 18:02:49,644 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d1ab1e77-7761-44f7-8773-3df8e915bc29
2026-04-29 18:02:49,654 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6b48fa26-8da3-4ace-8063-b2e92ffed76e
2026-04-29 18:02:49,664 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6b48fa26-8da3-4ace-8063-b2e92ffed76e
2026-04-29 18:02:49,672 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/48cbd105-2b09-4d6a-b418-d84e5a170607
2026-04-29 18:02:49,681 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 18:02:49,681 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d1ab1e77-7761-44f7-8773-3df8e915bc29
2026-04-29 18:02:49,692 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6b48fa26-8da3-4ace-8063-b2e92ffed76e
2026-04-29 18:02:49,711 - INFO - Verified VN network id 11 for VN d1ab1e77-7761-44f7-8773-3df8e915bc29
2026-04-29 18:02:49,711 - INFO - Verifications in API Server for VN ctest-vn-87800475 passed
2026-04-29 18:02:49,712 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d1ab1e77-7761-44f7-8773-3df8e915bc29
2026-04-29 18:02:49,724 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6b48fa26-8da3-4ace-8063-b2e92ffed76e
2026-04-29 18:02:49,734 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6b48fa26-8da3-4ace-8063-b2e92ffed76e
2026-04-29 18:02:49,746 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/48cbd105-2b09-4d6a-b418-d84e5a170607
2026-04-29 18:02:49,759 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-87800475', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36140926', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15108202873397265655', 'uuid-lslong': '9760212956713696297'}, 'enable': 'true', 'created': '2026-04-29T18:02:47', 'last-modified': '2026-04-29T18:02:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982593'}
2026-04-29 18:02:49,767 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 18:02:49,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87800475 passed
2026-04-29 18:02:49,767 - DEBUG - ====Verifying policy data for ctest-vn-87800475 in API_Server ======
2026-04-29 18:02:49,768 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 18:02:49,775 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac
2026-04-29 18:02:49,789 - DEBUG - Requesting: http://10.0.0.249:8082/project/c38f77d7-d2ac-4274-ad0d-973887ff55fe
2026-04-29 18:02:49,867 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d1ab1e77-7761-44f7-8773-3df8e915bc29
2026-04-29 18:02:49,881 - DEBUG - ==>Verifying data for policy with id: de05aa18-9781-4178-9740-d18bb2c61558, fqn: ['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-policy-allow-all-11868587']
2026-04-29 18:02:49,881 - INFO - VN ctest-vn-87800475 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 18:02:49,881 - DEBUG - Verifying the vn in opserver
2026-04-29 18:02:49,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-87800475 virtual network link through opserver 10.0.0.249
2026-04-29 18:02:49,881 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-29 18:02:50,183 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-29 18:02:50,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-87800475', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-87800475?flat'}
2026-04-29 18:02:50,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-87800475 is found in opserver
2026-04-29 18:02:50,274 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 18:02:50,280 - DEBUG - VRF ids for VN ctest-vn-87800475: {}
2026-04-29 18:02:50,280 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 18:02:50,286 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac
2026-04-29 18:02:50,299 - DEBUG - Requesting: http://10.0.0.249:8082/project/c38f77d7-d2ac-4274-ad0d-973887ff55fe
2026-04-29 18:02:50,372 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/161b39fc-ac06-4240-8776-4c5e1faab202
2026-04-29 18:02:50,395 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/161b39fc-ac06-4240-8776-4c5e1faab202
2026-04-29 18:02:50,406 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1619caf-e2d4-4cbd-a90f-10b0363e37c8
2026-04-29 18:02:50,415 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1619caf-e2d4-4cbd-a90f-10b0363e37c8
2026-04-29 18:02:50,426 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a24bd3be-f7bc-4310-be86-d5140e1415d8
2026-04-29 18:02:50,434 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 18:02:50,434 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/161b39fc-ac06-4240-8776-4c5e1faab202
2026-04-29 18:02:50,444 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1619caf-e2d4-4cbd-a90f-10b0363e37c8
2026-04-29 18:02:50,461 - INFO - Verified VN network id 12 for VN 161b39fc-ac06-4240-8776-4c5e1faab202
2026-04-29 18:02:50,462 - INFO - Verifications in API Server for VN ctest-vn-56754757 passed
2026-04-29 18:02:50,462 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/161b39fc-ac06-4240-8776-4c5e1faab202
2026-04-29 18:02:50,476 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1619caf-e2d4-4cbd-a90f-10b0363e37c8
2026-04-29 18:02:50,485 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1619caf-e2d4-4cbd-a90f-10b0363e37c8
2026-04-29 18:02:50,493 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a24bd3be-f7bc-4310-be86-d5140e1415d8
2026-04-29 18:02:50,509 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-56754757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36140926', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1592930650586235456', 'uuid-lslong': '9761073209514045954'}, 'enable': 'true', 'created': '2026-04-29T18:02:48', 'last-modified': '2026-04-29T18:02:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.523119'}
2026-04-29 18:02:50,516 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 18:02:50,516 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56754757 passed
2026-04-29 18:02:50,516 - DEBUG - ====Verifying policy data for ctest-vn-56754757 in API_Server ======
2026-04-29 18:02:50,516 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 18:02:50,522 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac
2026-04-29 18:02:50,536 - DEBUG - Requesting: http://10.0.0.249:8082/project/c38f77d7-d2ac-4274-ad0d-973887ff55fe
2026-04-29 18:02:50,617 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/161b39fc-ac06-4240-8776-4c5e1faab202
2026-04-29 18:02:50,628 - DEBUG - ==>Verifying data for policy with id: de05aa18-9781-4178-9740-d18bb2c61558, fqn: ['default-domain', 'ctest-TestBasicPolicy-36140926', 'ctest-policy-allow-all-11868587']
2026-04-29 18:02:50,628 - INFO - VN ctest-vn-56754757 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 18:02:50,628 - DEBUG - Verifying the vn in opserver
2026-04-29 18:02:50,628 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-56754757 virtual network link through opserver 10.0.0.249
2026-04-29 18:02:50,628 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-29 18:02:50,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-56754757', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-56754757?flat'}
2026-04-29 18:02:50,642 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36140926:ctest-vn-56754757 is found in opserver
2026-04-29 18:02:50,653 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 18:02:50,660 - DEBUG - VRF ids for VN ctest-vn-56754757: {}
2026-04-29 18:02:50,746 - DEBUG - Services list from nova: [