2026-06-04 16:59:16,464 - INFO - Domain Default found not creating
2026-06-04 16:59:16,645 - INFO - Project ctest-TestBasicPolicy-31413496 not found, creating it
2026-06-04 16:59:17,120 - INFO - Created Project:ctest-TestBasicPolicy-31413496, ID : 18dbb5b4-8790-463d-80de-d73dbdae4257
2026-06-04 16:59:18,633 - INFO - ================================================================================
2026-06-04 16:59:18,633 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-04 16:59:18,633 - 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-06-04 16:59:18,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with
2026-06-04 16:59:18,892 - INFO - Initial checks done. Running the testcase now
2026-06-04 16:59:18,892 - INFO -
2026-06-04 16:59:19,467 - DEBUG - Response for create_network : {'network': {'id': '74b21ab7-d0fc-45f6-971e-22c8a7380d2e', 'name': 'ctest-vn-84693248', 'tenant_id': '18dbb5b48790463d80ded73dbdae4257', 'project_id': '18dbb5b48790463d80ded73dbdae4257', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-vn-84693248'], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:59:19,699 - DEBUG - Response for create_subnet : {'subnet': {'id': '51e2ebf9-d368-4514-b8e3-fd71e5a72af1', 'name': '', 'tenant_id': '18dbb5b48790463d80ded73dbdae4257', 'network_id': '74b21ab7-d0fc-45f6-971e-22c8a7380d2e', 'ip_version': 4, 'cidr': '160.131.126.192/26', 'allocation_pools': [{'start': '160.131.126.194', 'end': '160.131.126.254'}], 'gateway_ip': '160.131.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.131.126.194', 'tags': [], 'project_id': '18dbb5b48790463d80ded73dbdae4257'}}
2026-06-04 16:59:19,720 - INFO - Created VN ctest-vn-84693248
2026-06-04 16:59:19,774 - DEBUG - VN ctest-vn-84693248 UUID is 74b21ab7-d0fc-45f6-971e-22c8a7380d2e
2026-06-04 16:59:20,119 - DEBUG - Response for create_network : {'network': {'id': '5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d', 'name': 'ctest-vn-14449037', 'tenant_id': '18dbb5b48790463d80ded73dbdae4257', 'project_id': '18dbb5b48790463d80ded73dbdae4257', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-vn-14449037'], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:59:20,306 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3f62828-4985-410b-9767-65f3a02fd6af', 'name': '', 'tenant_id': '18dbb5b48790463d80ded73dbdae4257', 'network_id': '5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d', 'ip_version': 4, 'cidr': '218.155.112.192/26', 'allocation_pools': [{'start': '218.155.112.194', 'end': '218.155.112.254'}], 'gateway_ip': '218.155.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.155.112.194', 'tags': [], 'project_id': '18dbb5b48790463d80ded73dbdae4257'}}
2026-06-04 16:59:20,326 - INFO - Created VN ctest-vn-14449037
2026-06-04 16:59:20,378 - DEBUG - VN ctest-vn-14449037 UUID is 5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d
2026-06-04 16:59:20,500 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-84693248, 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-31413496:ctest-vn-14449037, 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-06-04 16:59:20,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74b21ab7-d0fc-45f6-971e-22c8a7380d2e', 'name': 'ctest-vn-84693248', 'tenant_id': '18dbb5b48790463d80ded73dbdae4257', 'project_id': '18dbb5b48790463d80ded73dbdae4257', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51e2ebf9-d368-4514-b8e3-fd71e5a72af1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-vn-84693248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-policy-allow-all-42588511']], 'subnet_ipam': [{'subnet_cidr': '160.131.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:59:21,020 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d', 'name': 'ctest-vn-14449037', 'tenant_id': '18dbb5b48790463d80ded73dbdae4257', 'project_id': '18dbb5b48790463d80ded73dbdae4257', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3f62828-4985-410b-9767-65f3a02fd6af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-vn-14449037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-policy-allow-all-42588511']], 'subnet_ipam': [{'subnet_cidr': '218.155.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-04 16:59:21,186 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-06-04 16:59:21,478 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-06-04 16:59:21,512 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378
2026-06-04 16:59:21,524 - DEBUG - Requesting: http://10.0.0.242:8082/project/18dbb5b4-8790-463d-80de-d73dbdae4257
2026-06-04 16:59:21,600 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/74b21ab7-d0fc-45f6-971e-22c8a7380d2e
2026-06-04 16:59:21,610 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/74b21ab7-d0fc-45f6-971e-22c8a7380d2e
2026-06-04 16:59:21,620 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ce87ee08-61b4-49a4-b4b5-ffb6e659a330
2026-06-04 16:59:21,629 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ce87ee08-61b4-49a4-b4b5-ffb6e659a330
2026-06-04 16:59:21,636 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/dc8f838a-8de9-4268-9cb5-bf9871241f2b
2026-06-04 16:59:21,644 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-04 16:59:21,644 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/74b21ab7-d0fc-45f6-971e-22c8a7380d2e
2026-06-04 16:59:21,654 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ce87ee08-61b4-49a4-b4b5-ffb6e659a330
2026-06-04 16:59:21,670 - INFO - Verified VN network id 11 for VN 74b21ab7-d0fc-45f6-971e-22c8a7380d2e
2026-06-04 16:59:21,670 - INFO - Verifications in API Server for VN ctest-vn-84693248 passed
2026-06-04 16:59:21,670 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/74b21ab7-d0fc-45f6-971e-22c8a7380d2e
2026-06-04 16:59:21,681 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ce87ee08-61b4-49a4-b4b5-ffb6e659a330
2026-06-04 16:59:21,688 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ce87ee08-61b4-49a4-b4b5-ffb6e659a330
2026-06-04 16:59:21,694 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/dc8f838a-8de9-4268-9cb5-bf9871241f2b
2026-06-04 16:59:21,709 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-84693248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31413496', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8408812831041668598', 'uuid-lslong': '10889179194222710062'}, 'enable': 'true', 'created': '2026-06-04T16:59:19', 'last-modified': '2026-06-04T16:59:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945511'}
2026-06-04 16:59:21,716 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-04 16:59:21,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84693248 passed
2026-06-04 16:59:21,717 - DEBUG - ====Verifying policy data for ctest-vn-84693248 in API_Server ======
2026-06-04 16:59:21,717 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-06-04 16:59:21,722 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378
2026-06-04 16:59:21,733 - DEBUG - Requesting: http://10.0.0.242:8082/project/18dbb5b4-8790-463d-80de-d73dbdae4257
2026-06-04 16:59:21,802 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/74b21ab7-d0fc-45f6-971e-22c8a7380d2e
2026-06-04 16:59:21,811 - DEBUG - ==>Verifying data for policy with id: f878d504-f683-4af6-a26f-7bc540a3dbf9, fqn: ['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-policy-allow-all-42588511']
2026-06-04 16:59:21,811 - INFO - VN ctest-vn-84693248 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-04 16:59:21,811 - DEBUG - Verifying the vn in opserver
2026-06-04 16:59:21,811 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-84693248 virtual network link through opserver 10.0.0.242
2026-06-04 16:59:21,811 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-06-04 16:59:22,104 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-06-04 16:59:22,174 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-84693248', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-84693248?flat'}
2026-06-04 16:59:22,174 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-84693248 is found in opserver
2026-06-04 16:59:22,184 - DEBUG - Do not have enough data to verify VN in agent
2026-06-04 16:59:22,189 - DEBUG - VRF ids for VN ctest-vn-84693248: {}
2026-06-04 16:59:22,189 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-06-04 16:59:22,194 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378
2026-06-04 16:59:22,204 - DEBUG - Requesting: http://10.0.0.242:8082/project/18dbb5b4-8790-463d-80de-d73dbdae4257
2026-06-04 16:59:22,270 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d
2026-06-04 16:59:22,281 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d
2026-06-04 16:59:22,290 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6c563895-6c31-464d-8e98-1ad1a283531b
2026-06-04 16:59:22,296 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6c563895-6c31-464d-8e98-1ad1a283531b
2026-06-04 16:59:22,302 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e47a9ef7-ece4-4549-b87a-2e4a6f8b1e46
2026-06-04 16:59:22,309 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-04 16:59:22,309 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d
2026-06-04 16:59:22,317 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6c563895-6c31-464d-8e98-1ad1a283531b
2026-06-04 16:59:22,331 - INFO - Verified VN network id 12 for VN 5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d
2026-06-04 16:59:22,332 - INFO - Verifications in API Server for VN ctest-vn-14449037 passed
2026-06-04 16:59:22,332 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d
2026-06-04 16:59:22,341 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6c563895-6c31-464d-8e98-1ad1a283531b
2026-06-04 16:59:22,348 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6c563895-6c31-464d-8e98-1ad1a283531b
2026-06-04 16:59:22,355 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e47a9ef7-ece4-4549-b87a-2e4a6f8b1e46
2026-06-04 16:59:22,366 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-14449037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31413496', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6674259022346735576', 'uuid-lslong': '11203403428538191709'}, 'enable': 'true', 'created': '2026-06-04T16:59:20', 'last-modified': '2026-06-04T16:59:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.370129'}
2026-06-04 16:59:22,373 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-04 16:59:22,373 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14449037 passed
2026-06-04 16:59:22,373 - DEBUG - ====Verifying policy data for ctest-vn-14449037 in API_Server ======
2026-06-04 16:59:22,373 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-06-04 16:59:22,378 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4f7d0592-fb7c-4a7d-ab37-da824bb82378
2026-06-04 16:59:22,392 - DEBUG - Requesting: http://10.0.0.242:8082/project/18dbb5b4-8790-463d-80de-d73dbdae4257
2026-06-04 16:59:22,460 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5c9fbb38-15ec-4fd8-9b7a-7c0f61698f5d
2026-06-04 16:59:22,469 - DEBUG - ==>Verifying data for policy with id: f878d504-f683-4af6-a26f-7bc540a3dbf9, fqn: ['default-domain', 'ctest-TestBasicPolicy-31413496', 'ctest-policy-allow-all-42588511']
2026-06-04 16:59:22,469 - INFO - VN ctest-vn-14449037 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-04 16:59:22,469 - DEBUG - Verifying the vn in opserver
2026-06-04 16:59:22,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-14449037 virtual network link through opserver 10.0.0.242
2026-06-04 16:59:22,469 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-06-04 16:59:22,479 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-14449037', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-14449037?flat'}
2026-06-04 16:59:22,479 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31413496:ctest-vn-14449037 is found in opserver
2026-06-04 16:59:22,488 - DEBUG - Do not have enough data to verify VN in agent
2026-06-04 16:59:22,492 - DEBUG - VRF ids for VN ctest-vn-14449037: {}
2026-06-04 16:59:22,548 - DEBUG - Services list from nova: [