2026-02-20 18:41:11,475 - INFO - Domain Default found not creating
2026-02-20 18:41:11,658 - INFO - Project ctest-TestBasicPolicy-32850701 not found, creating it
2026-02-20 18:41:12,416 - INFO - Created Project:ctest-TestBasicPolicy-32850701, ID : 145e9c00-65e3-4c4d-9a03-34a4da93a7e8
2026-02-20 18:41:13,964 - INFO - ================================================================================
2026-02-20 18:41:13,964 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-20 18:41:13,964 - 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-02-20 18:41:14,218 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-02-20 18:41:14,218 - INFO - Initial checks done. Running the testcase now
2026-02-20 18:41:14,218 - INFO -
2026-02-20 18:41:14,774 - DEBUG - Response for create_network : {'network': {'id': '14d7a560-32cc-4b66-9b59-ef387b74622d', 'name': 'ctest-vn-73665151', 'tenant_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'project_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-vn-73665151'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 18:41:14,949 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a82982cc-9b25-413f-8da9-248ffd3bd9ea', 'name': '', 'tenant_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'network_id': '14d7a560-32cc-4b66-9b59-ef387b74622d', 'ip_version': 4, 'cidr': '41.187.194.192/26', 'allocation_pools': [{'start': '41.187.194.194', 'end': '41.187.194.254'}], 'gateway_ip': '41.187.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.187.194.194', 'tags': [], 'project_id': '145e9c0065e34c4d9a0334a4da93a7e8'}}
2026-02-20 18:41:14,968 - INFO - Created VN ctest-vn-73665151
2026-02-20 18:41:15,020 - DEBUG - VN ctest-vn-73665151 UUID is 14d7a560-32cc-4b66-9b59-ef387b74622d
2026-02-20 18:41:15,305 - DEBUG - Response for create_network : {'network': {'id': '27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c', 'name': 'ctest-vn-56392069', 'tenant_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'project_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-vn-56392069'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 18:41:15,499 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f35299a-3b2a-4334-b1a9-8615b84aa32d', 'name': '', 'tenant_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'network_id': '27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c', 'ip_version': 4, 'cidr': '29.86.43.192/26', 'allocation_pools': [{'start': '29.86.43.194', 'end': '29.86.43.254'}], 'gateway_ip': '29.86.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.86.43.194', 'tags': [], 'project_id': '145e9c0065e34c4d9a0334a4da93a7e8'}}
2026-02-20 18:41:15,516 - INFO - Created VN ctest-vn-56392069
2026-02-20 18:41:15,568 - DEBUG - VN ctest-vn-56392069 UUID is 27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c
2026-02-20 18:41:15,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-73665151, 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-32850701:ctest-vn-56392069, 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-02-20 18:41:16,015 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14d7a560-32cc-4b66-9b59-ef387b74622d', 'name': 'ctest-vn-73665151', 'tenant_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'project_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a82982cc-9b25-413f-8da9-248ffd3bd9ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-vn-73665151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-policy-allow-all-46948332']], 'subnet_ipam': [{'subnet_cidr': '41.187.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 18:41:16,253 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c', 'name': 'ctest-vn-56392069', 'tenant_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'project_id': '145e9c0065e34c4d9a0334a4da93a7e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f35299a-3b2a-4334-b1a9-8615b84aa32d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-vn-56392069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-policy-allow-all-46948332']], 'subnet_ipam': [{'subnet_cidr': '29.86.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 18:41:16,408 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 18:41:16,716 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 18:41:16,751 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e307ae8f-5c6f-464d-ab68-6f96b06c5506
2026-02-20 18:41:16,762 - DEBUG - Requesting: http://10.0.0.50:8082/project/145e9c00-65e3-4c4d-9a03-34a4da93a7e8
2026-02-20 18:41:16,832 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/14d7a560-32cc-4b66-9b59-ef387b74622d
2026-02-20 18:41:16,843 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/14d7a560-32cc-4b66-9b59-ef387b74622d
2026-02-20 18:41:16,852 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/19c9c1ce-5d4a-4e43-9934-7715eab55aa4
2026-02-20 18:41:16,859 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/19c9c1ce-5d4a-4e43-9934-7715eab55aa4
2026-02-20 18:41:16,866 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/282c9505-43fa-4e93-ac8a-51a7b4cb41a6
2026-02-20 18:41:16,872 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 18:41:16,872 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/14d7a560-32cc-4b66-9b59-ef387b74622d
2026-02-20 18:41:16,880 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/19c9c1ce-5d4a-4e43-9934-7715eab55aa4
2026-02-20 18:41:16,894 - INFO - Verified VN network id 12 for VN 14d7a560-32cc-4b66-9b59-ef387b74622d
2026-02-20 18:41:16,894 - INFO - Verifications in API Server for VN ctest-vn-73665151 passed
2026-02-20 18:41:16,894 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/14d7a560-32cc-4b66-9b59-ef387b74622d
2026-02-20 18:41:16,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/19c9c1ce-5d4a-4e43-9934-7715eab55aa4
2026-02-20 18:41:16,910 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/19c9c1ce-5d4a-4e43-9934-7715eab55aa4
2026-02-20 18:41:16,918 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/282c9505-43fa-4e93-ac8a-51a7b4cb41a6
2026-02-20 18:41:16,930 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-73665151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32850701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1501850833339042662', 'uuid-lslong': '11194241374674510381'}, 'enable': 'true', 'created': '2026-02-20T18:41:14', 'last-modified': '2026-02-20T18:41:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938585'}
2026-02-20 18:41:16,936 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 18:41:16,936 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73665151 passed
2026-02-20 18:41:16,937 - DEBUG - ====Verifying policy data for ctest-vn-73665151 in API_Server ======
2026-02-20 18:41:16,937 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 18:41:16,942 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e307ae8f-5c6f-464d-ab68-6f96b06c5506
2026-02-20 18:41:16,955 - DEBUG - Requesting: http://10.0.0.50:8082/project/145e9c00-65e3-4c4d-9a03-34a4da93a7e8
2026-02-20 18:41:17,026 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/14d7a560-32cc-4b66-9b59-ef387b74622d
2026-02-20 18:41:17,035 - DEBUG - ==>Verifying data for policy with id: 676e9efa-b1f1-48de-ac7d-3ac4bdb5ca79, fqn: ['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-policy-allow-all-46948332']
2026-02-20 18:41:17,035 - INFO - VN ctest-vn-73665151 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 18:41:17,035 - DEBUG - Verifying the vn in opserver
2026-02-20 18:41:17,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-73665151 virtual network link through opserver 10.0.0.50
2026-02-20 18:41:17,035 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-20 18:41:17,327 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-20 18:41:17,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-73665151', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-73665151?flat'}
2026-02-20 18:41:17,724 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-73665151 is found in opserver
2026-02-20 18:41:17,733 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 18:41:17,739 - DEBUG - VRF ids for VN ctest-vn-73665151: {}
2026-02-20 18:41:17,740 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 18:41:17,746 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e307ae8f-5c6f-464d-ab68-6f96b06c5506
2026-02-20 18:41:17,759 - DEBUG - Requesting: http://10.0.0.50:8082/project/145e9c00-65e3-4c4d-9a03-34a4da93a7e8
2026-02-20 18:41:17,836 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c
2026-02-20 18:41:17,848 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c
2026-02-20 18:41:17,860 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/781d84ff-e5e5-4f0c-82b2-a09e9430ff16
2026-02-20 18:41:17,869 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/781d84ff-e5e5-4f0c-82b2-a09e9430ff16
2026-02-20 18:41:17,878 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/260d1f34-f45a-49f3-9cb1-6f6c35f3d9a1
2026-02-20 18:41:17,885 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 18:41:17,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c
2026-02-20 18:41:17,895 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/781d84ff-e5e5-4f0c-82b2-a09e9430ff16
2026-02-20 18:41:17,911 - INFO - Verified VN network id 13 for VN 27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c
2026-02-20 18:41:17,911 - INFO - Verifications in API Server for VN ctest-vn-56392069 passed
2026-02-20 18:41:17,911 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c
2026-02-20 18:41:17,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/781d84ff-e5e5-4f0c-82b2-a09e9430ff16
2026-02-20 18:41:17,928 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/781d84ff-e5e5-4f0c-82b2-a09e9430ff16
2026-02-20 18:41:17,940 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/260d1f34-f45a-49f3-9cb1-6f6c35f3d9a1
2026-02-20 18:41:17,952 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-56392069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32850701', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2879704197562845896', 'uuid-lslong': '11580158756918225452'}, 'enable': 'true', 'created': '2026-02-20T18:41:15', 'last-modified': '2026-02-20T18:41:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.762661'}
2026-02-20 18:41:17,957 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 18:41:17,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56392069 passed
2026-02-20 18:41:17,958 - DEBUG - ====Verifying policy data for ctest-vn-56392069 in API_Server ======
2026-02-20 18:41:17,958 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 18:41:17,963 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e307ae8f-5c6f-464d-ab68-6f96b06c5506
2026-02-20 18:41:17,973 - DEBUG - Requesting: http://10.0.0.50:8082/project/145e9c00-65e3-4c4d-9a03-34a4da93a7e8
2026-02-20 18:41:18,049 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/27f6c3b5-d9ef-4ac8-a0b4-fd08fcbd6a2c
2026-02-20 18:41:18,060 - DEBUG - ==>Verifying data for policy with id: 676e9efa-b1f1-48de-ac7d-3ac4bdb5ca79, fqn: ['default-domain', 'ctest-TestBasicPolicy-32850701', 'ctest-policy-allow-all-46948332']
2026-02-20 18:41:18,060 - INFO - VN ctest-vn-56392069 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 18:41:18,060 - DEBUG - Verifying the vn in opserver
2026-02-20 18:41:18,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-56392069 virtual network link through opserver 10.0.0.50
2026-02-20 18:41:18,060 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-20 18:41:18,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-56392069', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-56392069?flat'}
2026-02-20 18:41:18,071 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32850701:ctest-vn-56392069 is found in opserver
2026-02-20 18:41:18,081 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 18:41:18,086 - DEBUG - VRF ids for VN ctest-vn-56392069: {}
2026-02-20 18:41:18,142 - DEBUG - Services list from nova: [