2025-11-05 08:19:47,720 - INFO - Domain Default found not creating
2025-11-05 08:19:47,853 - INFO - Project ctest-TestBasicPolicy-45866325 not found, creating it
2025-11-05 08:19:48,275 - INFO - Created Project:ctest-TestBasicPolicy-45866325, ID : 3db563a6-4b0e-460c-bcee-5af2982f01db
2025-11-05 08:19:49,641 - INFO - ================================================================================
2025-11-05 08:19:49,641 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 08:19:49,641 - 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-11-05 08:19:49,894 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.193': '0'}} with
2025-11-05 08:19:49,894 - INFO - Initial checks done. Running the testcase now
2025-11-05 08:19:49,894 - INFO -
2025-11-05 08:19:50,423 - DEBUG - Response for create_network : {'network': {'id': '243cad87-ff7b-4e88-8152-aa70959b9e3a', 'name': 'ctest-vn-01757261', 'tenant_id': '3db563a64b0e460cbcee5af2982f01db', 'project_id': '3db563a64b0e460cbcee5af2982f01db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-vn-01757261'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:19:50,576 - DEBUG - Response for create_subnet : {'subnet': {'id': '40f3fb60-1059-4153-a57f-aa03385d9779', 'name': '', 'tenant_id': '3db563a64b0e460cbcee5af2982f01db', 'network_id': '243cad87-ff7b-4e88-8152-aa70959b9e3a', 'ip_version': 4, 'cidr': '212.225.223.192/26', 'allocation_pools': [{'start': '212.225.223.194', 'end': '212.225.223.254'}], 'gateway_ip': '212.225.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.225.223.194', 'tags': [], 'project_id': '3db563a64b0e460cbcee5af2982f01db'}}
2025-11-05 08:19:50,593 - INFO - Created VN ctest-vn-01757261
2025-11-05 08:19:50,645 - DEBUG - VN ctest-vn-01757261 UUID is 243cad87-ff7b-4e88-8152-aa70959b9e3a
2025-11-05 08:19:50,961 - DEBUG - Response for create_network : {'network': {'id': '446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f', 'name': 'ctest-vn-38269891', 'tenant_id': '3db563a64b0e460cbcee5af2982f01db', 'project_id': '3db563a64b0e460cbcee5af2982f01db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-vn-38269891'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:19:51,169 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4a7bd9c-cf58-4393-a7d8-36edf6d649c8', 'name': '', 'tenant_id': '3db563a64b0e460cbcee5af2982f01db', 'network_id': '446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f', 'ip_version': 4, 'cidr': '137.45.202.0/26', 'allocation_pools': [{'start': '137.45.202.2', 'end': '137.45.202.62'}], 'gateway_ip': '137.45.202.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.45.202.2', 'tags': [], 'project_id': '3db563a64b0e460cbcee5af2982f01db'}}
2025-11-05 08:19:51,185 - INFO - Created VN ctest-vn-38269891
2025-11-05 08:19:51,240 - DEBUG - VN ctest-vn-38269891 UUID is 446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f
2025-11-05 08:19:51,380 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-01757261, 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-45866325:ctest-vn-38269891, 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-11-05 08:19:51,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '243cad87-ff7b-4e88-8152-aa70959b9e3a', 'name': 'ctest-vn-01757261', 'tenant_id': '3db563a64b0e460cbcee5af2982f01db', 'project_id': '3db563a64b0e460cbcee5af2982f01db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40f3fb60-1059-4153-a57f-aa03385d9779'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-vn-01757261'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-policy-allow-all-19921691']], 'subnet_ipam': [{'subnet_cidr': '212.225.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:19:51,867 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f', 'name': 'ctest-vn-38269891', 'tenant_id': '3db563a64b0e460cbcee5af2982f01db', 'project_id': '3db563a64b0e460cbcee5af2982f01db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4a7bd9c-cf58-4393-a7d8-36edf6d649c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-vn-38269891'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-policy-allow-all-19921691']], 'subnet_ipam': [{'subnet_cidr': '137.45.202.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:19:52,024 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-05 08:19:52,319 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-05 08:19:52,347 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b4504146-0147-4e8a-92ec-88439e6273da
2025-11-05 08:19:52,358 - DEBUG - Requesting: http://10.0.0.27:8082/project/3db563a6-4b0e-460c-bcee-5af2982f01db
2025-11-05 08:19:52,426 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/243cad87-ff7b-4e88-8152-aa70959b9e3a
2025-11-05 08:19:52,435 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/243cad87-ff7b-4e88-8152-aa70959b9e3a
2025-11-05 08:19:52,442 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed3fa869-ffc8-4666-9104-eaca8e2b722c
2025-11-05 08:19:52,448 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed3fa869-ffc8-4666-9104-eaca8e2b722c
2025-11-05 08:19:52,453 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d6261f8a-3e1f-4a67-865e-965096addec7
2025-11-05 08:19:52,458 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:19:52,458 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/243cad87-ff7b-4e88-8152-aa70959b9e3a
2025-11-05 08:19:52,465 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed3fa869-ffc8-4666-9104-eaca8e2b722c
2025-11-05 08:19:52,477 - INFO - Verified VN network id 12 for VN 243cad87-ff7b-4e88-8152-aa70959b9e3a
2025-11-05 08:19:52,477 - INFO - Verifications in API Server for VN ctest-vn-01757261 passed
2025-11-05 08:19:52,477 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/243cad87-ff7b-4e88-8152-aa70959b9e3a
2025-11-05 08:19:52,486 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed3fa869-ffc8-4666-9104-eaca8e2b722c
2025-11-05 08:19:52,493 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed3fa869-ffc8-4666-9104-eaca8e2b722c
2025-11-05 08:19:52,499 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d6261f8a-3e1f-4a67-865e-965096addec7
2025-11-05 08:19:52,509 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-01757261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45866325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2611152683586506376', 'uuid-lslong': '9318697979506040378'}, 'enable': 'true', 'created': '2025-11-05T08:19:50', 'last-modified': '2025-11-05T08:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.868302'}
2025-11-05 08:19:52,514 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:19:52,514 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01757261 passed
2025-11-05 08:19:52,515 - DEBUG - ====Verifying policy data for ctest-vn-01757261 in API_Server ======
2025-11-05 08:19:52,515 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-05 08:19:52,520 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b4504146-0147-4e8a-92ec-88439e6273da
2025-11-05 08:19:52,531 - DEBUG - Requesting: http://10.0.0.27:8082/project/3db563a6-4b0e-460c-bcee-5af2982f01db
2025-11-05 08:19:52,599 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/243cad87-ff7b-4e88-8152-aa70959b9e3a
2025-11-05 08:19:52,608 - DEBUG - ==>Verifying data for policy with id: f98b16e9-b0eb-4724-9f96-a1f62e1ee61a, fqn: ['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-policy-allow-all-19921691']
2025-11-05 08:19:52,608 - INFO - VN ctest-vn-01757261 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:19:52,608 - DEBUG - Verifying the vn in opserver
2025-11-05 08:19:52,608 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-01757261 virtual network link through opserver 10.0.0.27
2025-11-05 08:19:52,609 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-05 08:19:52,900 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-05 08:19:52,950 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-01757261', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-01757261?flat'}
2025-11-05 08:19:52,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-01757261 is found in opserver
2025-11-05 08:19:52,959 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:19:52,963 - DEBUG - VRF ids for VN ctest-vn-01757261: {}
2025-11-05 08:19:52,964 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-05 08:19:52,969 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b4504146-0147-4e8a-92ec-88439e6273da
2025-11-05 08:19:52,978 - DEBUG - Requesting: http://10.0.0.27:8082/project/3db563a6-4b0e-460c-bcee-5af2982f01db
2025-11-05 08:19:53,045 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f
2025-11-05 08:19:53,055 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f
2025-11-05 08:19:53,063 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f05b41dd-57f6-4734-84a4-88a315509786
2025-11-05 08:19:53,069 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f05b41dd-57f6-4734-84a4-88a315509786
2025-11-05 08:19:53,075 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b14826ba-6a23-43a9-bb53-165fc5358cb1
2025-11-05 08:19:53,082 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:19:53,082 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f
2025-11-05 08:19:53,090 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f05b41dd-57f6-4734-84a4-88a315509786
2025-11-05 08:19:53,102 - INFO - Verified VN network id 13 for VN 446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f
2025-11-05 08:19:53,103 - INFO - Verifications in API Server for VN ctest-vn-38269891 passed
2025-11-05 08:19:53,103 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f
2025-11-05 08:19:53,111 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f05b41dd-57f6-4734-84a4-88a315509786
2025-11-05 08:19:53,117 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f05b41dd-57f6-4734-84a4-88a315509786
2025-11-05 08:19:53,123 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b14826ba-6a23-43a9-bb53-165fc5358cb1
2025-11-05 08:19:53,134 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-38269891', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45866325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4930909840562406829', 'uuid-lslong': '13560085642889467471'}, 'enable': 'true', 'created': '2025-11-05T08:19:50', 'last-modified': '2025-11-05T08:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.287821'}
2025-11-05 08:19:53,139 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:19:53,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38269891 passed
2025-11-05 08:19:53,140 - DEBUG - ====Verifying policy data for ctest-vn-38269891 in API_Server ======
2025-11-05 08:19:53,140 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-05 08:19:53,146 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b4504146-0147-4e8a-92ec-88439e6273da
2025-11-05 08:19:53,156 - DEBUG - Requesting: http://10.0.0.27:8082/project/3db563a6-4b0e-460c-bcee-5af2982f01db
2025-11-05 08:19:53,229 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/446e1c5f-fa33-45ad-bc2f-1a0c3c4d164f
2025-11-05 08:19:53,238 - DEBUG - ==>Verifying data for policy with id: f98b16e9-b0eb-4724-9f96-a1f62e1ee61a, fqn: ['default-domain', 'ctest-TestBasicPolicy-45866325', 'ctest-policy-allow-all-19921691']
2025-11-05 08:19:53,238 - INFO - VN ctest-vn-38269891 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:19:53,238 - DEBUG - Verifying the vn in opserver
2025-11-05 08:19:53,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-38269891 virtual network link through opserver 10.0.0.27
2025-11-05 08:19:53,239 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-05 08:19:53,247 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-38269891', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-38269891?flat'}
2025-11-05 08:19:53,247 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45866325:ctest-vn-38269891 is found in opserver
2025-11-05 08:19:53,256 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:19:53,260 - DEBUG - VRF ids for VN ctest-vn-38269891: {}
2025-11-05 08:19:53,312 - DEBUG - Services list from nova: [