2026-03-11 13:25:49,927 - INFO - Domain Default found not creating
2026-03-11 13:25:50,167 - INFO - Project ctest-TestBasicPolicy-37699108 not found, creating it
2026-03-11 13:25:50,721 - INFO - Created Project:ctest-TestBasicPolicy-37699108, ID : 29233149-a020-44f5-9e21-02144b21bf8f
2026-03-11 13:25:52,440 - INFO - ================================================================================
2026-03-11 13:25:52,440 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-11 13:25:52,440 - 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-11 13:25:52,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2026-03-11 13:25:52,724 - INFO - Initial checks done. Running the testcase now
2026-03-11 13:25:52,724 - INFO -
2026-03-11 13:25:53,409 - DEBUG - Response for create_network : {'network': {'id': '2d37b8bb-37ab-4c2d-b752-1cbee564f936', 'name': 'ctest-vn-35120611', 'tenant_id': '29233149a02044f59e2102144b21bf8f', 'project_id': '29233149a02044f59e2102144b21bf8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-vn-35120611'], 'port_security_enabled': True, 'description': ''}}
2026-03-11 13:25:53,598 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7d69dc5-ca4b-4a01-855b-3e36f98c84ca', 'name': '', 'tenant_id': '29233149a02044f59e2102144b21bf8f', 'network_id': '2d37b8bb-37ab-4c2d-b752-1cbee564f936', 'ip_version': 4, 'cidr': '171.197.74.192/26', 'allocation_pools': [{'start': '171.197.74.194', 'end': '171.197.74.254'}], 'gateway_ip': '171.197.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.197.74.194', 'tags': [], 'project_id': '29233149a02044f59e2102144b21bf8f'}}
2026-03-11 13:25:53,619 - INFO - Created VN ctest-vn-35120611
2026-03-11 13:25:53,674 - DEBUG - VN ctest-vn-35120611 UUID is 2d37b8bb-37ab-4c2d-b752-1cbee564f936
2026-03-11 13:25:54,006 - DEBUG - Response for create_network : {'network': {'id': '47d8be80-e2c3-412c-84db-fbbeb7009d5c', 'name': 'ctest-vn-70600698', 'tenant_id': '29233149a02044f59e2102144b21bf8f', 'project_id': '29233149a02044f59e2102144b21bf8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-vn-70600698'], 'port_security_enabled': True, 'description': ''}}
2026-03-11 13:25:54,244 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d41d3c1-6d81-4192-a36d-6c9326febab3', 'name': '', 'tenant_id': '29233149a02044f59e2102144b21bf8f', 'network_id': '47d8be80-e2c3-412c-84db-fbbeb7009d5c', 'ip_version': 4, 'cidr': '13.134.78.128/26', 'allocation_pools': [{'start': '13.134.78.130', 'end': '13.134.78.190'}], 'gateway_ip': '13.134.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.134.78.130', 'tags': [], 'project_id': '29233149a02044f59e2102144b21bf8f'}}
2026-03-11 13:25:54,277 - INFO - Created VN ctest-vn-70600698
2026-03-11 13:25:54,334 - DEBUG - VN ctest-vn-70600698 UUID is 47d8be80-e2c3-412c-84db-fbbeb7009d5c
2026-03-11 13:25:54,468 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-35120611, 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-37699108:ctest-vn-70600698, 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-11 13:25:54,812 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d37b8bb-37ab-4c2d-b752-1cbee564f936', 'name': 'ctest-vn-35120611', 'tenant_id': '29233149a02044f59e2102144b21bf8f', 'project_id': '29233149a02044f59e2102144b21bf8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7d69dc5-ca4b-4a01-855b-3e36f98c84ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-vn-35120611'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-policy-allow-all-80585227']], 'subnet_ipam': [{'subnet_cidr': '171.197.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-11 13:25:55,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47d8be80-e2c3-412c-84db-fbbeb7009d5c', 'name': 'ctest-vn-70600698', 'tenant_id': '29233149a02044f59e2102144b21bf8f', 'project_id': '29233149a02044f59e2102144b21bf8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d41d3c1-6d81-4192-a36d-6c9326febab3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-vn-70600698'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-policy-allow-all-80585227']], 'subnet_ipam': [{'subnet_cidr': '13.134.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-11 13:25:55,230 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-11 13:25:55,536 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-11 13:25:55,585 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79
2026-03-11 13:25:55,599 - DEBUG - Requesting: http://10.0.0.141:8082/project/29233149-a020-44f5-9e21-02144b21bf8f
2026-03-11 13:25:55,684 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2d37b8bb-37ab-4c2d-b752-1cbee564f936
2026-03-11 13:25:55,699 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2d37b8bb-37ab-4c2d-b752-1cbee564f936
2026-03-11 13:25:55,714 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0d1d1212-f9e8-453b-8084-1e358298bd9c
2026-03-11 13:25:55,726 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0d1d1212-f9e8-453b-8084-1e358298bd9c
2026-03-11 13:25:55,737 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ff7ce236-0d52-424c-b3fc-17cf0d8bbc89
2026-03-11 13:25:55,745 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-11 13:25:55,745 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2d37b8bb-37ab-4c2d-b752-1cbee564f936
2026-03-11 13:25:55,759 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0d1d1212-f9e8-453b-8084-1e358298bd9c
2026-03-11 13:25:55,786 - INFO - Verified VN network id 12 for VN 2d37b8bb-37ab-4c2d-b752-1cbee564f936
2026-03-11 13:25:55,786 - INFO - Verifications in API Server for VN ctest-vn-35120611 passed
2026-03-11 13:25:55,786 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2d37b8bb-37ab-4c2d-b752-1cbee564f936
2026-03-11 13:25:55,797 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0d1d1212-f9e8-453b-8084-1e358298bd9c
2026-03-11 13:25:55,807 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0d1d1212-f9e8-453b-8084-1e358298bd9c
2026-03-11 13:25:55,817 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ff7ce236-0d52-424c-b3fc-17cf0d8bbc89
2026-03-11 13:25:55,833 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-35120611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37699108', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3258275969658211373', 'uuid-lslong': '13209652263249049910'}, 'enable': 'true', 'created': '2026-03-11T13:25:53', 'last-modified': '2026-03-11T13:25:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052651'}
2026-03-11 13:25:55,842 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-11 13:25:55,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35120611 passed
2026-03-11 13:25:55,842 - DEBUG - ====Verifying policy data for ctest-vn-35120611 in API_Server ======
2026-03-11 13:25:55,842 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-11 13:25:55,850 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79
2026-03-11 13:25:55,863 - DEBUG - Requesting: http://10.0.0.141:8082/project/29233149-a020-44f5-9e21-02144b21bf8f
2026-03-11 13:25:55,949 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2d37b8bb-37ab-4c2d-b752-1cbee564f936
2026-03-11 13:25:55,961 - DEBUG - ==>Verifying data for policy with id: 9e1c8115-f1eb-4bb2-bb58-08ecf3a51b98, fqn: ['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-policy-allow-all-80585227']
2026-03-11 13:25:55,961 - INFO - VN ctest-vn-35120611 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-11 13:25:55,961 - DEBUG - Verifying the vn in opserver
2026-03-11 13:25:55,961 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-35120611 virtual network link through opserver 10.0.0.141
2026-03-11 13:25:55,961 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-11 13:25:56,262 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-11 13:25:56,338 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-35120611', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-35120611?flat'}
2026-03-11 13:25:56,339 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-35120611 is found in opserver
2026-03-11 13:25:56,350 - DEBUG - Do not have enough data to verify VN in agent
2026-03-11 13:25:56,356 - DEBUG - VRF ids for VN ctest-vn-35120611: {}
2026-03-11 13:25:56,356 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-11 13:25:56,364 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79
2026-03-11 13:25:56,378 - DEBUG - Requesting: http://10.0.0.141:8082/project/29233149-a020-44f5-9e21-02144b21bf8f
2026-03-11 13:25:56,454 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/47d8be80-e2c3-412c-84db-fbbeb7009d5c
2026-03-11 13:25:56,471 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/47d8be80-e2c3-412c-84db-fbbeb7009d5c
2026-03-11 13:25:56,484 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6727d593-959a-42bc-8a39-641d4b137756
2026-03-11 13:25:56,493 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6727d593-959a-42bc-8a39-641d4b137756
2026-03-11 13:25:56,501 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5c5d57d7-502f-4b41-ac14-e9650f45b3bc
2026-03-11 13:25:56,509 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-11 13:25:56,510 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/47d8be80-e2c3-412c-84db-fbbeb7009d5c
2026-03-11 13:25:56,520 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6727d593-959a-42bc-8a39-641d4b137756
2026-03-11 13:25:56,540 - INFO - Verified VN network id 13 for VN 47d8be80-e2c3-412c-84db-fbbeb7009d5c
2026-03-11 13:25:56,540 - INFO - Verifications in API Server for VN ctest-vn-70600698 passed
2026-03-11 13:25:56,540 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/47d8be80-e2c3-412c-84db-fbbeb7009d5c
2026-03-11 13:25:56,552 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6727d593-959a-42bc-8a39-641d4b137756
2026-03-11 13:25:56,563 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6727d593-959a-42bc-8a39-641d4b137756
2026-03-11 13:25:56,571 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5c5d57d7-502f-4b41-ac14-e9650f45b3bc
2026-03-11 13:25:56,586 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-70600698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37699108', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5177097232431923500', 'uuid-lslong': '9573522229438750044'}, 'enable': 'true', 'created': '2026-03-11T13:25:53', 'last-modified': '2026-03-11T13:25:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.541070'}
2026-03-11 13:25:56,592 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-11 13:25:56,593 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70600698 passed
2026-03-11 13:25:56,593 - DEBUG - ====Verifying policy data for ctest-vn-70600698 in API_Server ======
2026-03-11 13:25:56,593 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-11 13:25:56,600 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79
2026-03-11 13:25:56,613 - DEBUG - Requesting: http://10.0.0.141:8082/project/29233149-a020-44f5-9e21-02144b21bf8f
2026-03-11 13:25:56,691 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/47d8be80-e2c3-412c-84db-fbbeb7009d5c
2026-03-11 13:25:56,704 - DEBUG - ==>Verifying data for policy with id: 9e1c8115-f1eb-4bb2-bb58-08ecf3a51b98, fqn: ['default-domain', 'ctest-TestBasicPolicy-37699108', 'ctest-policy-allow-all-80585227']
2026-03-11 13:25:56,704 - INFO - VN ctest-vn-70600698 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-11 13:25:56,704 - DEBUG - Verifying the vn in opserver
2026-03-11 13:25:56,704 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-70600698 virtual network link through opserver 10.0.0.141
2026-03-11 13:25:56,704 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-11 13:25:56,717 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-70600698', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-70600698?flat'}
2026-03-11 13:25:56,717 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37699108:ctest-vn-70600698 is found in opserver
2026-03-11 13:25:56,728 - DEBUG - Do not have enough data to verify VN in agent
2026-03-11 13:25:56,735 - DEBUG - VRF ids for VN ctest-vn-70600698: {}
2026-03-11 13:25:56,828 - DEBUG - Services list from nova: [