2026-07-30 14:55:01,555 - INFO - Domain Default found not creating
2026-07-30 14:55:01,761 - INFO - Project ctest-TestBasicPolicy-20091527 not found, creating it
2026-07-30 14:55:02,344 - INFO - Created Project:ctest-TestBasicPolicy-20091527, ID : 281fe4f2-bf02-4826-9755-7a32ffa1f754
2026-07-30 14:55:04,207 - INFO - ================================================================================
2026-07-30 14:55:04,209 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-30 14:55:04,209 - 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-07-30 14:55:04,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-30 14:55:04,481 - INFO - Initial checks done. Running the testcase now
2026-07-30 14:55:04,481 - INFO -
2026-07-30 14:55:05,204 - DEBUG - Response for create_network : {'network': {'id': 'fa7acbc5-64db-42b2-b362-5cf20c4c67d2', 'name': 'ctest-vn-27312212', 'tenant_id': '281fe4f2bf02482697557a32ffa1f754', 'project_id': '281fe4f2bf02482697557a32ffa1f754', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-vn-27312212'], 'port_security_enabled': True, 'description': ''}}
2026-07-30 14:55:05,474 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa7223a9-5d6e-4aee-8331-16db9fa74e4c', 'name': '', 'tenant_id': '281fe4f2bf02482697557a32ffa1f754', 'network_id': 'fa7acbc5-64db-42b2-b362-5cf20c4c67d2', 'ip_version': 4, 'cidr': '165.113.78.0/26', 'allocation_pools': [{'start': '165.113.78.2', 'end': '165.113.78.62'}], 'gateway_ip': '165.113.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.113.78.2', 'tags': [], 'project_id': '281fe4f2bf02482697557a32ffa1f754'}}
2026-07-30 14:55:05,497 - INFO - Created VN ctest-vn-27312212
2026-07-30 14:55:05,555 - DEBUG - VN ctest-vn-27312212 UUID is fa7acbc5-64db-42b2-b362-5cf20c4c67d2
2026-07-30 14:55:05,900 - DEBUG - Response for create_network : {'network': {'id': '152b5eba-c798-4572-8847-d07a45d4afbe', 'name': 'ctest-vn-95409389', 'tenant_id': '281fe4f2bf02482697557a32ffa1f754', 'project_id': '281fe4f2bf02482697557a32ffa1f754', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-vn-95409389'], 'port_security_enabled': True, 'description': ''}}
2026-07-30 14:55:06,166 - DEBUG - Response for create_subnet : {'subnet': {'id': '787566bb-0740-481f-aeef-cb0e643f22f8', 'name': '', 'tenant_id': '281fe4f2bf02482697557a32ffa1f754', 'network_id': '152b5eba-c798-4572-8847-d07a45d4afbe', 'ip_version': 4, 'cidr': '64.140.22.192/26', 'allocation_pools': [{'start': '64.140.22.194', 'end': '64.140.22.254'}], 'gateway_ip': '64.140.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.140.22.194', 'tags': [], 'project_id': '281fe4f2bf02482697557a32ffa1f754'}}
2026-07-30 14:55:06,187 - INFO - Created VN ctest-vn-95409389
2026-07-30 14:55:06,248 - DEBUG - VN ctest-vn-95409389 UUID is 152b5eba-c798-4572-8847-d07a45d4afbe
2026-07-30 14:55:06,374 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-27312212, 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-20091527:ctest-vn-95409389, 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-07-30 14:55:06,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa7acbc5-64db-42b2-b362-5cf20c4c67d2', 'name': 'ctest-vn-27312212', 'tenant_id': '281fe4f2bf02482697557a32ffa1f754', 'project_id': '281fe4f2bf02482697557a32ffa1f754', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa7223a9-5d6e-4aee-8331-16db9fa74e4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-vn-27312212'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-policy-allow-all-39154367']], 'subnet_ipam': [{'subnet_cidr': '165.113.78.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-30 14:55:06,969 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '152b5eba-c798-4572-8847-d07a45d4afbe', 'name': 'ctest-vn-95409389', 'tenant_id': '281fe4f2bf02482697557a32ffa1f754', 'project_id': '281fe4f2bf02482697557a32ffa1f754', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['787566bb-0740-481f-aeef-cb0e643f22f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-vn-95409389'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-policy-allow-all-39154367']], 'subnet_ipam': [{'subnet_cidr': '64.140.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-30 14:55:07,139 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-30 14:55:07,522 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-30 14:55:07,556 - DEBUG - Requesting: http://10.0.0.50:8082/domain/77e36f81-42b0-4332-b49d-16b6f23e45a5
2026-07-30 14:55:07,573 - DEBUG - Requesting: http://10.0.0.50:8082/project/281fe4f2-bf02-4826-9755-7a32ffa1f754
2026-07-30 14:55:07,658 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa7acbc5-64db-42b2-b362-5cf20c4c67d2
2026-07-30 14:55:07,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa7acbc5-64db-42b2-b362-5cf20c4c67d2
2026-07-30 14:55:07,683 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e9074e-9d9a-4cd5-847e-f6dcde0d5f92
2026-07-30 14:55:07,693 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e9074e-9d9a-4cd5-847e-f6dcde0d5f92
2026-07-30 14:55:07,701 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04603bce-3815-404b-bca2-81d4fe2b52b7
2026-07-30 14:55:07,713 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-30 14:55:07,713 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa7acbc5-64db-42b2-b362-5cf20c4c67d2
2026-07-30 14:55:07,725 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e9074e-9d9a-4cd5-847e-f6dcde0d5f92
2026-07-30 14:55:07,746 - INFO - Verified VN network id 11 for VN fa7acbc5-64db-42b2-b362-5cf20c4c67d2
2026-07-30 14:55:07,746 - INFO - Verifications in API Server for VN ctest-vn-27312212 passed
2026-07-30 14:55:07,746 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa7acbc5-64db-42b2-b362-5cf20c4c67d2
2026-07-30 14:55:07,761 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e9074e-9d9a-4cd5-847e-f6dcde0d5f92
2026-07-30 14:55:07,776 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e9074e-9d9a-4cd5-847e-f6dcde0d5f92
2026-07-30 14:55:07,789 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04603bce-3815-404b-bca2-81d4fe2b52b7
2026-07-30 14:55:07,812 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-27312212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20091527', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18048962505301770930', 'uuid-lslong': '12925996075164919762'}, 'enable': 'true', 'created': '2026-07-30T14:55:05', 'last-modified': '2026-07-30T14:55:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.140157'}
2026-07-30 14:55:07,821 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-30 14:55:07,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27312212 passed
2026-07-30 14:55:07,822 - DEBUG - ====Verifying policy data for ctest-vn-27312212 in API_Server ======
2026-07-30 14:55:07,822 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-30 14:55:07,832 - DEBUG - Requesting: http://10.0.0.50:8082/domain/77e36f81-42b0-4332-b49d-16b6f23e45a5
2026-07-30 14:55:07,847 - DEBUG - Requesting: http://10.0.0.50:8082/project/281fe4f2-bf02-4826-9755-7a32ffa1f754
2026-07-30 14:55:07,925 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa7acbc5-64db-42b2-b362-5cf20c4c67d2
2026-07-30 14:55:07,937 - DEBUG - ==>Verifying data for policy with id: 5cb4e826-4e45-437a-8f9a-67ecca0f7641, fqn: ['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-policy-allow-all-39154367']
2026-07-30 14:55:07,937 - INFO - VN ctest-vn-27312212 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-30 14:55:07,937 - DEBUG - Verifying the vn in opserver
2026-07-30 14:55:07,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-27312212 virtual network link through opserver 10.0.0.50
2026-07-30 14:55:07,937 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-30 14:55:08,307 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-30 14:55:08,378 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-27312212', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-27312212?flat'}
2026-07-30 14:55:08,378 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-27312212 is found in opserver
2026-07-30 14:55:08,391 - DEBUG - Do not have enough data to verify VN in agent
2026-07-30 14:55:08,398 - DEBUG - VRF ids for VN ctest-vn-27312212: {}
2026-07-30 14:55:08,398 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-30 14:55:08,406 - DEBUG - Requesting: http://10.0.0.50:8082/domain/77e36f81-42b0-4332-b49d-16b6f23e45a5
2026-07-30 14:55:08,418 - DEBUG - Requesting: http://10.0.0.50:8082/project/281fe4f2-bf02-4826-9755-7a32ffa1f754
2026-07-30 14:55:08,502 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/152b5eba-c798-4572-8847-d07a45d4afbe
2026-07-30 14:55:08,520 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/152b5eba-c798-4572-8847-d07a45d4afbe
2026-07-30 14:55:08,532 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5edb0c4-b36a-4939-86d4-7ddbbeecdd0a
2026-07-30 14:55:08,543 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5edb0c4-b36a-4939-86d4-7ddbbeecdd0a
2026-07-30 14:55:08,553 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/82116c63-9f3f-4118-9118-ebfffd64ddcc
2026-07-30 14:55:08,562 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-30 14:55:08,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/152b5eba-c798-4572-8847-d07a45d4afbe
2026-07-30 14:55:08,574 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5edb0c4-b36a-4939-86d4-7ddbbeecdd0a
2026-07-30 14:55:08,615 - INFO - Verified VN network id 12 for VN 152b5eba-c798-4572-8847-d07a45d4afbe
2026-07-30 14:55:08,615 - INFO - Verifications in API Server for VN ctest-vn-95409389 passed
2026-07-30 14:55:08,615 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/152b5eba-c798-4572-8847-d07a45d4afbe
2026-07-30 14:55:08,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5edb0c4-b36a-4939-86d4-7ddbbeecdd0a
2026-07-30 14:55:08,635 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5edb0c4-b36a-4939-86d4-7ddbbeecdd0a
2026-07-30 14:55:08,645 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/82116c63-9f3f-4118-9118-ebfffd64ddcc
2026-07-30 14:55:08,661 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-95409389', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20091527', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1525417055100618098', 'uuid-lslong': '9820046736080809918'}, 'enable': 'true', 'created': '2026-07-30T14:55:05', 'last-modified': '2026-07-30T14:55:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.733355'}
2026-07-30 14:55:08,669 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-30 14:55:08,669 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95409389 passed
2026-07-30 14:55:08,669 - DEBUG - ====Verifying policy data for ctest-vn-95409389 in API_Server ======
2026-07-30 14:55:08,669 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-30 14:55:08,676 - DEBUG - Requesting: http://10.0.0.50:8082/domain/77e36f81-42b0-4332-b49d-16b6f23e45a5
2026-07-30 14:55:08,690 - DEBUG - Requesting: http://10.0.0.50:8082/project/281fe4f2-bf02-4826-9755-7a32ffa1f754
2026-07-30 14:55:08,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/152b5eba-c798-4572-8847-d07a45d4afbe
2026-07-30 14:55:08,782 - DEBUG - ==>Verifying data for policy with id: 5cb4e826-4e45-437a-8f9a-67ecca0f7641, fqn: ['default-domain', 'ctest-TestBasicPolicy-20091527', 'ctest-policy-allow-all-39154367']
2026-07-30 14:55:08,782 - INFO - VN ctest-vn-95409389 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-30 14:55:08,782 - DEBUG - Verifying the vn in opserver
2026-07-30 14:55:08,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-95409389 virtual network link through opserver 10.0.0.50
2026-07-30 14:55:08,782 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-30 14:55:08,796 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-95409389', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-95409389?flat'}
2026-07-30 14:55:08,796 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20091527:ctest-vn-95409389 is found in opserver
2026-07-30 14:55:08,810 - DEBUG - Do not have enough data to verify VN in agent
2026-07-30 14:55:08,819 - DEBUG - VRF ids for VN ctest-vn-95409389: {}
2026-07-30 14:55:08,905 - DEBUG - Services list from nova: [