2025-08-07 17:40:28,906 - INFO - Domain Default found not creating
2025-08-07 17:40:29,054 - INFO - Project ctest-TestBasicPolicy-31517468 not found, creating it
2025-08-07 17:40:29,503 - INFO - Created Project:ctest-TestBasicPolicy-31517468, ID : 483c044f-e881-4189-8efd-57f04a649428
2025-08-07 17:40:31,069 - INFO - ================================================================================
2025-08-07 17:40:31,069 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 17:40:31,069 - 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
2025-08-07 17:40:31,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-07 17:40:31,333 - INFO - Initial checks done. Running the testcase now
2025-08-07 17:40:31,333 - INFO -
2025-08-07 17:40:32,361 - DEBUG - Response for create_network : {'network': {'id': '11c37518-631e-4cae-b2ff-b547e1e67fc6', 'name': 'ctest-vn-03076515', 'tenant_id': '483c044fe88141898efd57f04a649428', 'project_id': '483c044fe88141898efd57f04a649428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-vn-03076515'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 17:40:32,707 - DEBUG - Response for create_subnet : {'subnet': {'id': '81919121-94fe-48e5-84b1-49b5d890febf', 'name': '', 'tenant_id': '483c044fe88141898efd57f04a649428', 'network_id': '11c37518-631e-4cae-b2ff-b547e1e67fc6', 'ip_version': 4, 'cidr': '23.191.79.192/26', 'allocation_pools': [{'start': '23.191.79.194', 'end': '23.191.79.254'}], 'gateway_ip': '23.191.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.191.79.194', 'tags': [], 'project_id': '483c044fe88141898efd57f04a649428'}}
2025-08-07 17:40:32,735 - INFO - Created VN ctest-vn-03076515
2025-08-07 17:40:32,790 - DEBUG - VN ctest-vn-03076515 UUID is 11c37518-631e-4cae-b2ff-b547e1e67fc6
2025-08-07 17:40:33,127 - DEBUG - Response for create_network : {'network': {'id': '09caf3a9-98c0-4c64-97fa-a788d9f129b2', 'name': 'ctest-vn-62235217', 'tenant_id': '483c044fe88141898efd57f04a649428', 'project_id': '483c044fe88141898efd57f04a649428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-vn-62235217'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 17:40:33,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd14b8142-7c70-459c-b356-f91a468322f3', 'name': '', 'tenant_id': '483c044fe88141898efd57f04a649428', 'network_id': '09caf3a9-98c0-4c64-97fa-a788d9f129b2', 'ip_version': 4, 'cidr': '136.20.27.192/26', 'allocation_pools': [{'start': '136.20.27.194', 'end': '136.20.27.254'}], 'gateway_ip': '136.20.27.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.20.27.194', 'tags': [], 'project_id': '483c044fe88141898efd57f04a649428'}}
2025-08-07 17:40:33,353 - INFO - Created VN ctest-vn-62235217
2025-08-07 17:40:33,406 - DEBUG - VN ctest-vn-62235217 UUID is 09caf3a9-98c0-4c64-97fa-a788d9f129b2
2025-08-07 17:40:33,523 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-03076515, 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-31517468:ctest-vn-62235217, 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]
2025-08-07 17:40:33,831 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11c37518-631e-4cae-b2ff-b547e1e67fc6', 'name': 'ctest-vn-03076515', 'tenant_id': '483c044fe88141898efd57f04a649428', 'project_id': '483c044fe88141898efd57f04a649428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81919121-94fe-48e5-84b1-49b5d890febf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-vn-03076515'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-policy-allow-all-63322163']], 'subnet_ipam': [{'subnet_cidr': '23.191.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 17:40:34,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09caf3a9-98c0-4c64-97fa-a788d9f129b2', 'name': 'ctest-vn-62235217', 'tenant_id': '483c044fe88141898efd57f04a649428', 'project_id': '483c044fe88141898efd57f04a649428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d14b8142-7c70-459c-b356-f91a468322f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-vn-62235217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-policy-allow-all-63322163']], 'subnet_ipam': [{'subnet_cidr': '136.20.27.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 17:40:34,234 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 17:40:34,572 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 17:40:34,604 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74
2025-08-07 17:40:34,621 - DEBUG - Requesting: http://10.0.0.38:8082/project/483c044f-e881-4189-8efd-57f04a649428
2025-08-07 17:40:34,700 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/11c37518-631e-4cae-b2ff-b547e1e67fc6
2025-08-07 17:40:34,713 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/11c37518-631e-4cae-b2ff-b547e1e67fc6
2025-08-07 17:40:34,724 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a451e5a3-bd3c-400a-bb01-333a4189d5ff
2025-08-07 17:40:34,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a451e5a3-bd3c-400a-bb01-333a4189d5ff
2025-08-07 17:40:34,739 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fbc08fe3-8960-4c2d-ae55-181654ea3d3c
2025-08-07 17:40:34,745 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 17:40:34,745 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/11c37518-631e-4cae-b2ff-b547e1e67fc6
2025-08-07 17:40:34,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a451e5a3-bd3c-400a-bb01-333a4189d5ff
2025-08-07 17:40:34,768 - INFO - Verified VN network id 12 for VN 11c37518-631e-4cae-b2ff-b547e1e67fc6
2025-08-07 17:40:34,768 - INFO - Verifications in API Server for VN ctest-vn-03076515 passed
2025-08-07 17:40:34,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/11c37518-631e-4cae-b2ff-b547e1e67fc6
2025-08-07 17:40:34,780 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a451e5a3-bd3c-400a-bb01-333a4189d5ff
2025-08-07 17:40:34,787 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a451e5a3-bd3c-400a-bb01-333a4189d5ff
2025-08-07 17:40:34,794 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fbc08fe3-8960-4c2d-ae55-181654ea3d3c
2025-08-07 17:40:34,809 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-03076515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31517468', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1279995466705947822', 'uuid-lslong': '12898227178149674950'}, 'enable': 'true', 'created': '2025-08-07T17:40:32', 'last-modified': '2025-08-07T17:40:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006672'}
2025-08-07 17:40:34,816 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 17:40:34,816 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03076515 passed
2025-08-07 17:40:34,816 - DEBUG - ====Verifying policy data for ctest-vn-03076515 in API_Server ======
2025-08-07 17:40:34,816 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 17:40:34,823 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74
2025-08-07 17:40:34,836 - DEBUG - Requesting: http://10.0.0.38:8082/project/483c044f-e881-4189-8efd-57f04a649428
2025-08-07 17:40:34,916 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/11c37518-631e-4cae-b2ff-b547e1e67fc6
2025-08-07 17:40:34,927 - DEBUG - ==>Verifying data for policy with id: ad720ae0-5613-4e69-840a-094eb2e7660a, fqn: ['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-policy-allow-all-63322163']
2025-08-07 17:40:34,927 - INFO - VN ctest-vn-03076515 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 17:40:34,927 - DEBUG - Verifying the vn in opserver
2025-08-07 17:40:34,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-03076515 virtual network link through opserver 10.0.0.38
2025-08-07 17:40:34,927 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 17:40:35,258 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 17:40:35,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-03076515', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-03076515?flat'}
2025-08-07 17:40:35,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-03076515 is found in opserver
2025-08-07 17:40:35,328 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 17:40:35,333 - DEBUG - VRF ids for VN ctest-vn-03076515: {}
2025-08-07 17:40:35,333 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 17:40:35,340 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74
2025-08-07 17:40:35,355 - DEBUG - Requesting: http://10.0.0.38:8082/project/483c044f-e881-4189-8efd-57f04a649428
2025-08-07 17:40:35,437 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/09caf3a9-98c0-4c64-97fa-a788d9f129b2
2025-08-07 17:40:35,451 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/09caf3a9-98c0-4c64-97fa-a788d9f129b2
2025-08-07 17:40:35,462 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec90d1e3-eae0-44c9-a67a-51f33939bd6f
2025-08-07 17:40:35,469 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec90d1e3-eae0-44c9-a67a-51f33939bd6f
2025-08-07 17:40:35,477 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1a207cd2-9d26-4c28-adc0-b67fe9634993
2025-08-07 17:40:35,485 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 17:40:35,485 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/09caf3a9-98c0-4c64-97fa-a788d9f129b2
2025-08-07 17:40:35,498 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec90d1e3-eae0-44c9-a67a-51f33939bd6f
2025-08-07 17:40:35,513 - INFO - Verified VN network id 13 for VN 09caf3a9-98c0-4c64-97fa-a788d9f129b2
2025-08-07 17:40:35,513 - INFO - Verifications in API Server for VN ctest-vn-62235217 passed
2025-08-07 17:40:35,513 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/09caf3a9-98c0-4c64-97fa-a788d9f129b2
2025-08-07 17:40:35,524 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec90d1e3-eae0-44c9-a67a-51f33939bd6f
2025-08-07 17:40:35,533 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec90d1e3-eae0-44c9-a67a-51f33939bd6f
2025-08-07 17:40:35,541 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1a207cd2-9d26-4c28-adc0-b67fe9634993
2025-08-07 17:40:35,556 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-62235217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31517468', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '705644201374665828', 'uuid-lslong': '10951249650118633906'}, 'enable': 'true', 'created': '2025-08-07T17:40:33', 'last-modified': '2025-08-07T17:40:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510392'}
2025-08-07 17:40:35,564 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 17:40:35,564 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62235217 passed
2025-08-07 17:40:35,564 - DEBUG - ====Verifying policy data for ctest-vn-62235217 in API_Server ======
2025-08-07 17:40:35,564 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 17:40:35,570 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74
2025-08-07 17:40:35,584 - DEBUG - Requesting: http://10.0.0.38:8082/project/483c044f-e881-4189-8efd-57f04a649428
2025-08-07 17:40:35,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/09caf3a9-98c0-4c64-97fa-a788d9f129b2
2025-08-07 17:40:35,678 - DEBUG - ==>Verifying data for policy with id: ad720ae0-5613-4e69-840a-094eb2e7660a, fqn: ['default-domain', 'ctest-TestBasicPolicy-31517468', 'ctest-policy-allow-all-63322163']
2025-08-07 17:40:35,678 - INFO - VN ctest-vn-62235217 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 17:40:35,678 - DEBUG - Verifying the vn in opserver
2025-08-07 17:40:35,678 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-62235217 virtual network link through opserver 10.0.0.38
2025-08-07 17:40:35,678 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 17:40:35,689 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-62235217', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-62235217?flat'}
2025-08-07 17:40:35,689 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31517468:ctest-vn-62235217 is found in opserver
2025-08-07 17:40:35,702 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 17:40:35,707 - DEBUG - VRF ids for VN ctest-vn-62235217: {}
2025-08-07 17:40:35,765 - DEBUG - Services list from nova: [