2026-04-30 17:49:19,942 - INFO - Domain Default found not creating
2026-04-30 17:49:20,141 - INFO - Project ctest-TestBasicPolicy-97149984 not found, creating it
2026-04-30 17:49:20,616 - INFO - Created Project:ctest-TestBasicPolicy-97149984, ID : 5a0de801-262e-428a-991e-d8f1e4c5d089
2026-04-30 17:49:22,187 - INFO - ================================================================================
2026-04-30 17:49:22,187 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-30 17:49:22,187 - 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-30 17:49:22,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-04-30 17:49:22,441 - INFO - Initial checks done. Running the testcase now
2026-04-30 17:49:22,441 - INFO -
2026-04-30 17:49:23,003 - DEBUG - Response for create_network : {'network': {'id': 'bf9e34b6-e134-41c6-af28-c2e8139142d0', 'name': 'ctest-vn-17697868', 'tenant_id': '5a0de801262e428a991ed8f1e4c5d089', 'project_id': '5a0de801262e428a991ed8f1e4c5d089', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-vn-17697868'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 17:49:23,206 - DEBUG - Response for create_subnet : {'subnet': {'id': '45b5afe9-5d4f-46ed-b979-37e2fb96f275', 'name': '', 'tenant_id': '5a0de801262e428a991ed8f1e4c5d089', 'network_id': 'bf9e34b6-e134-41c6-af28-c2e8139142d0', 'ip_version': 4, 'cidr': '24.223.41.64/26', 'allocation_pools': [{'start': '24.223.41.66', 'end': '24.223.41.126'}], 'gateway_ip': '24.223.41.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.223.41.66', 'tags': [], 'project_id': '5a0de801262e428a991ed8f1e4c5d089'}}
2026-04-30 17:49:23,226 - INFO - Created VN ctest-vn-17697868
2026-04-30 17:49:23,282 - DEBUG - VN ctest-vn-17697868 UUID is bf9e34b6-e134-41c6-af28-c2e8139142d0
2026-04-30 17:49:23,591 - DEBUG - Response for create_network : {'network': {'id': '2b7b5c8e-fadc-43ad-832e-7463e9f7c146', 'name': 'ctest-vn-07695346', 'tenant_id': '5a0de801262e428a991ed8f1e4c5d089', 'project_id': '5a0de801262e428a991ed8f1e4c5d089', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-vn-07695346'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 17:49:23,767 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f519856-08bc-4e89-9e16-02ce1d157923', 'name': '', 'tenant_id': '5a0de801262e428a991ed8f1e4c5d089', 'network_id': '2b7b5c8e-fadc-43ad-832e-7463e9f7c146', 'ip_version': 4, 'cidr': '185.87.94.192/26', 'allocation_pools': [{'start': '185.87.94.194', 'end': '185.87.94.254'}], 'gateway_ip': '185.87.94.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.87.94.194', 'tags': [], 'project_id': '5a0de801262e428a991ed8f1e4c5d089'}}
2026-04-30 17:49:23,787 - INFO - Created VN ctest-vn-07695346
2026-04-30 17:49:23,838 - DEBUG - VN ctest-vn-07695346 UUID is 2b7b5c8e-fadc-43ad-832e-7463e9f7c146
2026-04-30 17:49:23,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-17697868, 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-97149984:ctest-vn-07695346, 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-30 17:49:24,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf9e34b6-e134-41c6-af28-c2e8139142d0', 'name': 'ctest-vn-17697868', 'tenant_id': '5a0de801262e428a991ed8f1e4c5d089', 'project_id': '5a0de801262e428a991ed8f1e4c5d089', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45b5afe9-5d4f-46ed-b979-37e2fb96f275'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-vn-17697868'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-policy-allow-all-36909948']], 'subnet_ipam': [{'subnet_cidr': '24.223.41.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 17:49:24,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b7b5c8e-fadc-43ad-832e-7463e9f7c146', 'name': 'ctest-vn-07695346', 'tenant_id': '5a0de801262e428a991ed8f1e4c5d089', 'project_id': '5a0de801262e428a991ed8f1e4c5d089', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f519856-08bc-4e89-9e16-02ce1d157923'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-vn-07695346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-policy-allow-all-36909948']], 'subnet_ipam': [{'subnet_cidr': '185.87.94.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 17:49:24,650 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-30 17:49:24,945 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-30 17:49:24,976 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390
2026-04-30 17:49:24,989 - DEBUG - Requesting: http://10.0.0.33:8082/project/5a0de801-262e-428a-991e-d8f1e4c5d089
2026-04-30 17:49:25,061 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf9e34b6-e134-41c6-af28-c2e8139142d0
2026-04-30 17:49:25,072 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf9e34b6-e134-41c6-af28-c2e8139142d0
2026-04-30 17:49:25,080 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/03f7a814-164f-43b5-9237-bc07ad3fd904
2026-04-30 17:49:25,088 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/03f7a814-164f-43b5-9237-bc07ad3fd904
2026-04-30 17:49:25,095 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fa6a4ce9-fb26-483e-a5a7-445ebf6632be
2026-04-30 17:49:25,102 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 17:49:25,102 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf9e34b6-e134-41c6-af28-c2e8139142d0
2026-04-30 17:49:25,113 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/03f7a814-164f-43b5-9237-bc07ad3fd904
2026-04-30 17:49:25,131 - INFO - Verified VN network id 11 for VN bf9e34b6-e134-41c6-af28-c2e8139142d0
2026-04-30 17:49:25,131 - INFO - Verifications in API Server for VN ctest-vn-17697868 passed
2026-04-30 17:49:25,131 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf9e34b6-e134-41c6-af28-c2e8139142d0
2026-04-30 17:49:25,142 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/03f7a814-164f-43b5-9237-bc07ad3fd904
2026-04-30 17:49:25,150 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/03f7a814-164f-43b5-9237-bc07ad3fd904
2026-04-30 17:49:25,158 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fa6a4ce9-fb26-483e-a5a7-445ebf6632be
2026-04-30 17:49:25,171 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-17697868', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97149984', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13807531467631509958', 'uuid-lslong': '12621552257722303184'}, 'enable': 'true', 'created': '2026-04-30T17:49:22', 'last-modified': '2026-04-30T17:49:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940996'}
2026-04-30 17:49:25,178 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 17:49:25,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17697868 passed
2026-04-30 17:49:25,178 - DEBUG - ====Verifying policy data for ctest-vn-17697868 in API_Server ======
2026-04-30 17:49:25,178 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-30 17:49:25,184 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390
2026-04-30 17:49:25,197 - DEBUG - Requesting: http://10.0.0.33:8082/project/5a0de801-262e-428a-991e-d8f1e4c5d089
2026-04-30 17:49:25,268 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf9e34b6-e134-41c6-af28-c2e8139142d0
2026-04-30 17:49:25,279 - DEBUG - ==>Verifying data for policy with id: 8b03da50-a015-4bc6-bcd4-f42527f63b1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-policy-allow-all-36909948']
2026-04-30 17:49:25,279 - INFO - VN ctest-vn-17697868 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 17:49:25,280 - DEBUG - Verifying the vn in opserver
2026-04-30 17:49:25,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-17697868 virtual network link through opserver 10.0.0.33
2026-04-30 17:49:25,280 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-30 17:49:25,579 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-30 17:49:25,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-17697868', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-17697868?flat'}
2026-04-30 17:49:25,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-17697868 is found in opserver
2026-04-30 17:49:25,656 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 17:49:25,661 - DEBUG - VRF ids for VN ctest-vn-17697868: {}
2026-04-30 17:49:25,661 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-30 17:49:25,666 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390
2026-04-30 17:49:25,678 - DEBUG - Requesting: http://10.0.0.33:8082/project/5a0de801-262e-428a-991e-d8f1e4c5d089
2026-04-30 17:49:25,749 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2b7b5c8e-fadc-43ad-832e-7463e9f7c146
2026-04-30 17:49:25,760 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2b7b5c8e-fadc-43ad-832e-7463e9f7c146
2026-04-30 17:49:25,771 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a4fc1572-c55d-4cb7-bd3b-d3b9fb4b18e8
2026-04-30 17:49:25,780 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a4fc1572-c55d-4cb7-bd3b-d3b9fb4b18e8
2026-04-30 17:49:25,788 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e83243e4-c171-4bf4-8439-845057ad0004
2026-04-30 17:49:25,797 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 17:49:25,797 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2b7b5c8e-fadc-43ad-832e-7463e9f7c146
2026-04-30 17:49:25,808 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a4fc1572-c55d-4cb7-bd3b-d3b9fb4b18e8
2026-04-30 17:49:25,827 - INFO - Verified VN network id 12 for VN 2b7b5c8e-fadc-43ad-832e-7463e9f7c146
2026-04-30 17:49:25,827 - INFO - Verifications in API Server for VN ctest-vn-07695346 passed
2026-04-30 17:49:25,827 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2b7b5c8e-fadc-43ad-832e-7463e9f7c146
2026-04-30 17:49:25,840 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a4fc1572-c55d-4cb7-bd3b-d3b9fb4b18e8
2026-04-30 17:49:25,849 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a4fc1572-c55d-4cb7-bd3b-d3b9fb4b18e8
2026-04-30 17:49:25,856 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e83243e4-c171-4bf4-8439-845057ad0004
2026-04-30 17:49:25,869 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-07695346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97149984', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3133199734930162605', 'uuid-lslong': '9452620640373162310'}, 'enable': 'true', 'created': '2026-04-30T17:49:23', 'last-modified': '2026-04-30T17:49:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401761'}
2026-04-30 17:49:25,877 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 17:49:25,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07695346 passed
2026-04-30 17:49:25,877 - DEBUG - ====Verifying policy data for ctest-vn-07695346 in API_Server ======
2026-04-30 17:49:25,877 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-30 17:49:25,883 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390
2026-04-30 17:49:25,895 - DEBUG - Requesting: http://10.0.0.33:8082/project/5a0de801-262e-428a-991e-d8f1e4c5d089
2026-04-30 17:49:25,967 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2b7b5c8e-fadc-43ad-832e-7463e9f7c146
2026-04-30 17:49:25,978 - DEBUG - ==>Verifying data for policy with id: 8b03da50-a015-4bc6-bcd4-f42527f63b1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97149984', 'ctest-policy-allow-all-36909948']
2026-04-30 17:49:25,978 - INFO - VN ctest-vn-07695346 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 17:49:25,978 - DEBUG - Verifying the vn in opserver
2026-04-30 17:49:25,978 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-07695346 virtual network link through opserver 10.0.0.33
2026-04-30 17:49:25,978 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-30 17:49:25,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-07695346', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-07695346?flat'}
2026-04-30 17:49:25,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97149984:ctest-vn-07695346 is found in opserver
2026-04-30 17:49:26,002 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 17:49:26,007 - DEBUG - VRF ids for VN ctest-vn-07695346: {}
2026-04-30 17:49:26,083 - DEBUG - Services list from nova: [