2025-09-11 08:28:54,937 - INFO - Domain Default found not creating
2025-09-11 08:28:55,088 - INFO - Project ctest-TestBasicPolicy-73946626 not found, creating it
2025-09-11 08:28:55,539 - INFO - Created Project:ctest-TestBasicPolicy-73946626, ID : 7c0873d1-6b9d-4006-9c17-c48397697b74
2025-09-11 08:28:56,979 - INFO - ================================================================================
2025-09-11 08:28:56,979 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 08:28:56,979 - 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-09-11 08:28:57,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-09-11 08:28:57,237 - INFO - Initial checks done. Running the testcase now
2025-09-11 08:28:57,237 - INFO -
2025-09-11 08:28:57,789 - DEBUG - Response for create_network : {'network': {'id': '78572714-06b4-4e69-80f2-150ea4fb9376', 'name': 'ctest-vn-00705431', 'tenant_id': '7c0873d16b9d40069c17c48397697b74', 'project_id': '7c0873d16b9d40069c17c48397697b74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-vn-00705431'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:28:57,960 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd73e2aa8-afb1-4e59-be64-a8da87c7e12d', 'name': '', 'tenant_id': '7c0873d16b9d40069c17c48397697b74', 'network_id': '78572714-06b4-4e69-80f2-150ea4fb9376', 'ip_version': 4, 'cidr': '206.73.248.0/26', 'allocation_pools': [{'start': '206.73.248.2', 'end': '206.73.248.62'}], 'gateway_ip': '206.73.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.73.248.2', 'tags': [], 'project_id': '7c0873d16b9d40069c17c48397697b74'}}
2025-09-11 08:28:57,978 - INFO - Created VN ctest-vn-00705431
2025-09-11 08:28:58,031 - DEBUG - VN ctest-vn-00705431 UUID is 78572714-06b4-4e69-80f2-150ea4fb9376
2025-09-11 08:28:58,317 - DEBUG - Response for create_network : {'network': {'id': '77b169fe-2077-413a-9224-f467091d8ec6', 'name': 'ctest-vn-94846911', 'tenant_id': '7c0873d16b9d40069c17c48397697b74', 'project_id': '7c0873d16b9d40069c17c48397697b74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-vn-94846911'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:28:58,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cc9e718-ac00-4283-88f5-e85a3e56fa3c', 'name': '', 'tenant_id': '7c0873d16b9d40069c17c48397697b74', 'network_id': '77b169fe-2077-413a-9224-f467091d8ec6', 'ip_version': 4, 'cidr': '148.230.64.192/26', 'allocation_pools': [{'start': '148.230.64.194', 'end': '148.230.64.254'}], 'gateway_ip': '148.230.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.230.64.194', 'tags': [], 'project_id': '7c0873d16b9d40069c17c48397697b74'}}
2025-09-11 08:28:58,536 - INFO - Created VN ctest-vn-94846911
2025-09-11 08:28:58,587 - DEBUG - VN ctest-vn-94846911 UUID is 77b169fe-2077-413a-9224-f467091d8ec6
2025-09-11 08:28:58,743 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-00705431, 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-73946626:ctest-vn-94846911, 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-09-11 08:28:59,065 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78572714-06b4-4e69-80f2-150ea4fb9376', 'name': 'ctest-vn-00705431', 'tenant_id': '7c0873d16b9d40069c17c48397697b74', 'project_id': '7c0873d16b9d40069c17c48397697b74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d73e2aa8-afb1-4e59-be64-a8da87c7e12d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-vn-00705431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-policy-allow-all-78117247']], 'subnet_ipam': [{'subnet_cidr': '206.73.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:28:59,339 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77b169fe-2077-413a-9224-f467091d8ec6', 'name': 'ctest-vn-94846911', 'tenant_id': '7c0873d16b9d40069c17c48397697b74', 'project_id': '7c0873d16b9d40069c17c48397697b74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3cc9e718-ac00-4283-88f5-e85a3e56fa3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-vn-94846911'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-policy-allow-all-78117247']], 'subnet_ipam': [{'subnet_cidr': '148.230.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:28:59,511 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-11 08:28:59,818 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-11 08:28:59,850 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a
2025-09-11 08:28:59,865 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c0873d1-6b9d-4006-9c17-c48397697b74
2025-09-11 08:28:59,954 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/78572714-06b4-4e69-80f2-150ea4fb9376
2025-09-11 08:28:59,987 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/78572714-06b4-4e69-80f2-150ea4fb9376
2025-09-11 08:29:00,009 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/50b2936e-dfd8-4999-bd54-b28dda4baa6d
2025-09-11 08:29:00,021 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/50b2936e-dfd8-4999-bd54-b28dda4baa6d
2025-09-11 08:29:00,038 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/73728df4-f8c1-4700-a3e0-25a54dbde5c7
2025-09-11 08:29:00,051 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:29:00,051 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/78572714-06b4-4e69-80f2-150ea4fb9376
2025-09-11 08:29:00,117 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/50b2936e-dfd8-4999-bd54-b28dda4baa6d
2025-09-11 08:29:00,144 - INFO - Verified VN network id 9 for VN 78572714-06b4-4e69-80f2-150ea4fb9376
2025-09-11 08:29:00,144 - INFO - Verifications in API Server for VN ctest-vn-00705431 passed
2025-09-11 08:29:00,145 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/78572714-06b4-4e69-80f2-150ea4fb9376
2025-09-11 08:29:00,163 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/50b2936e-dfd8-4999-bd54-b28dda4baa6d
2025-09-11 08:29:00,182 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/50b2936e-dfd8-4999-bd54-b28dda4baa6d
2025-09-11 08:29:00,223 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/73728df4-f8c1-4700-a3e0-25a54dbde5c7
2025-09-11 08:29:00,245 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-00705431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73946626', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8671442574490488425', 'uuid-lslong': '9291512133860430710'}, 'enable': 'true', 'created': '2025-09-11T08:28:57', 'last-modified': '2025-09-11T08:28:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.212930'}
2025-09-11 08:29:00,253 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:29:00,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00705431 passed
2025-09-11 08:29:00,253 - DEBUG - ====Verifying policy data for ctest-vn-00705431 in API_Server ======
2025-09-11 08:29:00,253 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-11 08:29:00,261 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a
2025-09-11 08:29:00,275 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c0873d1-6b9d-4006-9c17-c48397697b74
2025-09-11 08:29:00,416 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/78572714-06b4-4e69-80f2-150ea4fb9376
2025-09-11 08:29:00,436 - DEBUG - ==>Verifying data for policy with id: 994d2ce5-0ee2-4070-8b5c-d59368cbbed3, fqn: ['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-policy-allow-all-78117247']
2025-09-11 08:29:00,436 - INFO - VN ctest-vn-00705431 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:29:00,436 - DEBUG - Verifying the vn in opserver
2025-09-11 08:29:00,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-00705431 virtual network link through opserver 10.0.0.141
2025-09-11 08:29:00,437 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-09-11 08:29:00,812 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-09-11 08:29:00,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-00705431', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-00705431?flat'}
2025-09-11 08:29:00,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-00705431 is found in opserver
2025-09-11 08:29:00,904 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:29:00,910 - DEBUG - VRF ids for VN ctest-vn-00705431: {}
2025-09-11 08:29:00,910 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-11 08:29:00,917 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a
2025-09-11 08:29:00,933 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c0873d1-6b9d-4006-9c17-c48397697b74
2025-09-11 08:29:01,004 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/77b169fe-2077-413a-9224-f467091d8ec6
2025-09-11 08:29:01,025 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/77b169fe-2077-413a-9224-f467091d8ec6
2025-09-11 08:29:01,036 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/680cde33-6fa9-4c4f-824a-4261adf1cd78
2025-09-11 08:29:01,046 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/680cde33-6fa9-4c4f-824a-4261adf1cd78
2025-09-11 08:29:01,055 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c6c15205-263f-4a58-b3b7-67f3b186382b
2025-09-11 08:29:01,063 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:29:01,063 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/77b169fe-2077-413a-9224-f467091d8ec6
2025-09-11 08:29:01,074 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/680cde33-6fa9-4c4f-824a-4261adf1cd78
2025-09-11 08:29:01,092 - INFO - Verified VN network id 10 for VN 77b169fe-2077-413a-9224-f467091d8ec6
2025-09-11 08:29:01,092 - INFO - Verifications in API Server for VN ctest-vn-94846911 passed
2025-09-11 08:29:01,092 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/77b169fe-2077-413a-9224-f467091d8ec6
2025-09-11 08:29:01,104 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/680cde33-6fa9-4c4f-824a-4261adf1cd78
2025-09-11 08:29:01,115 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/680cde33-6fa9-4c4f-824a-4261adf1cd78
2025-09-11 08:29:01,124 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c6c15205-263f-4a58-b3b7-67f3b186382b
2025-09-11 08:29:01,136 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-94846911', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73946626', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8624791301578506554', 'uuid-lslong': '10530810552070803142'}, 'enable': 'true', 'created': '2025-09-11T08:28:58', 'last-modified': '2025-09-11T08:28:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.821339'}
2025-09-11 08:29:01,142 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:29:01,142 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94846911 passed
2025-09-11 08:29:01,142 - DEBUG - ====Verifying policy data for ctest-vn-94846911 in API_Server ======
2025-09-11 08:29:01,142 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-11 08:29:01,148 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6c547376-c615-47b1-85c3-d80e32421a8a
2025-09-11 08:29:01,159 - DEBUG - Requesting: http://10.0.0.141:8082/project/7c0873d1-6b9d-4006-9c17-c48397697b74
2025-09-11 08:29:01,239 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/77b169fe-2077-413a-9224-f467091d8ec6
2025-09-11 08:29:01,250 - DEBUG - ==>Verifying data for policy with id: 994d2ce5-0ee2-4070-8b5c-d59368cbbed3, fqn: ['default-domain', 'ctest-TestBasicPolicy-73946626', 'ctest-policy-allow-all-78117247']
2025-09-11 08:29:01,250 - INFO - VN ctest-vn-94846911 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:29:01,250 - DEBUG - Verifying the vn in opserver
2025-09-11 08:29:01,250 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-94846911 virtual network link through opserver 10.0.0.141
2025-09-11 08:29:01,251 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-09-11 08:29:01,261 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-94846911', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-94846911?flat'}
2025-09-11 08:29:01,261 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73946626:ctest-vn-94846911 is found in opserver
2025-09-11 08:29:01,272 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:29:01,279 - DEBUG - VRF ids for VN ctest-vn-94846911: {}
2025-09-11 08:29:01,345 - DEBUG - Services list from nova: [