2025-10-19 23:41:42,307 - INFO - Domain Default found not creating
2025-10-19 23:41:42,464 - INFO - Project ctest-TestBasicPolicy-97911797 not found, creating it
2025-10-19 23:41:42,887 - INFO - Created Project:ctest-TestBasicPolicy-97911797, ID : cc3d1c01-7305-4139-a7a1-c90df5c122dd
2025-10-19 23:41:44,273 - INFO - ================================================================================
2025-10-19 23:41:44,273 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-19 23:41:44,273 - 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-10-19 23:41:44,527 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-19 23:41:44,527 - INFO - Initial checks done. Running the testcase now
2025-10-19 23:41:44,527 - INFO -
2025-10-19 23:41:45,070 - DEBUG - Response for create_network : {'network': {'id': 'c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9', 'name': 'ctest-vn-88353532', 'tenant_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'project_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-vn-88353532'], 'port_security_enabled': True, 'description': ''}}
2025-10-19 23:41:45,260 - DEBUG - Response for create_subnet : {'subnet': {'id': '40eba707-dbd4-44f7-a838-9a77f350fd3b', 'name': '', 'tenant_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'network_id': 'c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9', 'ip_version': 4, 'cidr': '93.195.77.64/26', 'allocation_pools': [{'start': '93.195.77.66', 'end': '93.195.77.126'}], 'gateway_ip': '93.195.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.195.77.66', 'tags': [], 'project_id': 'cc3d1c0173054139a7a1c90df5c122dd'}}
2025-10-19 23:41:45,276 - INFO - Created VN ctest-vn-88353532
2025-10-19 23:41:45,327 - DEBUG - VN ctest-vn-88353532 UUID is c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9
2025-10-19 23:41:45,795 - DEBUG - Response for create_network : {'network': {'id': '796a473f-c28a-43a5-b09e-5d3a7deee447', 'name': 'ctest-vn-38527990', 'tenant_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'project_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-vn-38527990'], 'port_security_enabled': True, 'description': ''}}
2025-10-19 23:41:46,126 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9d7947d-bb6f-4158-8ea7-d8b7798636ac', 'name': '', 'tenant_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'network_id': '796a473f-c28a-43a5-b09e-5d3a7deee447', 'ip_version': 4, 'cidr': '158.44.242.64/26', 'allocation_pools': [{'start': '158.44.242.66', 'end': '158.44.242.126'}], 'gateway_ip': '158.44.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.44.242.66', 'tags': [], 'project_id': 'cc3d1c0173054139a7a1c90df5c122dd'}}
2025-10-19 23:41:46,151 - INFO - Created VN ctest-vn-38527990
2025-10-19 23:41:46,215 - DEBUG - VN ctest-vn-38527990 UUID is 796a473f-c28a-43a5-b09e-5d3a7deee447
2025-10-19 23:41:46,374 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-88353532, 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-97911797:ctest-vn-38527990, 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-10-19 23:41:46,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9', 'name': 'ctest-vn-88353532', 'tenant_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'project_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40eba707-dbd4-44f7-a838-9a77f350fd3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-vn-88353532'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-policy-allow-all-82065751']], 'subnet_ipam': [{'subnet_cidr': '93.195.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-19 23:41:46,878 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '796a473f-c28a-43a5-b09e-5d3a7deee447', 'name': 'ctest-vn-38527990', 'tenant_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'project_id': 'cc3d1c0173054139a7a1c90df5c122dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9d7947d-bb6f-4158-8ea7-d8b7798636ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-vn-38527990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-policy-allow-all-82065751']], 'subnet_ipam': [{'subnet_cidr': '158.44.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-19 23:41:47,043 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 23:41:47,345 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 23:41:47,372 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f
2025-10-19 23:41:47,383 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc3d1c01-7305-4139-a7a1-c90df5c122dd
2025-10-19 23:41:47,454 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9
2025-10-19 23:41:47,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9
2025-10-19 23:41:47,475 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18573528-d4c0-4da0-8375-f691464413b3
2025-10-19 23:41:47,483 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18573528-d4c0-4da0-8375-f691464413b3
2025-10-19 23:41:47,491 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/135c61c6-4ebc-45e6-805b-03edef99cdd6
2025-10-19 23:41:47,497 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-19 23:41:47,497 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9
2025-10-19 23:41:47,507 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18573528-d4c0-4da0-8375-f691464413b3
2025-10-19 23:41:47,521 - INFO - Verified VN network id 12 for VN c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9
2025-10-19 23:41:47,521 - INFO - Verifications in API Server for VN ctest-vn-88353532 passed
2025-10-19 23:41:47,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9
2025-10-19 23:41:47,529 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18573528-d4c0-4da0-8375-f691464413b3
2025-10-19 23:41:47,535 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18573528-d4c0-4da0-8375-f691464413b3
2025-10-19 23:41:47,541 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/135c61c6-4ebc-45e6-805b-03edef99cdd6
2025-10-19 23:41:47,552 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-88353532', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97911797', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14122700095182359223', 'uuid-lslong': '11601800306341537257'}, 'enable': 'true', 'created': '2025-10-19T23:41:45', 'last-modified': '2025-10-19T23:41:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914619'}
2025-10-19 23:41:47,559 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-19 23:41:47,559 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88353532 passed
2025-10-19 23:41:47,559 - DEBUG - ====Verifying policy data for ctest-vn-88353532 in API_Server ======
2025-10-19 23:41:47,560 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 23:41:47,564 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f
2025-10-19 23:41:47,574 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc3d1c01-7305-4139-a7a1-c90df5c122dd
2025-10-19 23:41:47,642 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3fde8e9-4ab8-4ab7-a101-dfe8de8165e9
2025-10-19 23:41:47,651 - DEBUG - ==>Verifying data for policy with id: 3742b3ad-07ad-44d9-a45b-8d644912bade, fqn: ['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-policy-allow-all-82065751']
2025-10-19 23:41:47,651 - INFO - VN ctest-vn-88353532 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-19 23:41:47,651 - DEBUG - Verifying the vn in opserver
2025-10-19 23:41:47,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-88353532 virtual network link through opserver 10.0.0.254
2025-10-19 23:41:47,651 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-19 23:41:47,944 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-19 23:41:47,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-88353532', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-88353532?flat'}
2025-10-19 23:41:47,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-88353532 is found in opserver
2025-10-19 23:41:48,007 - DEBUG - Do not have enough data to verify VN in agent
2025-10-19 23:41:48,012 - DEBUG - VRF ids for VN ctest-vn-88353532: {}
2025-10-19 23:41:48,012 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 23:41:48,017 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f
2025-10-19 23:41:48,026 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc3d1c01-7305-4139-a7a1-c90df5c122dd
2025-10-19 23:41:48,095 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/796a473f-c28a-43a5-b09e-5d3a7deee447
2025-10-19 23:41:48,105 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/796a473f-c28a-43a5-b09e-5d3a7deee447
2025-10-19 23:41:48,113 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/420c78e1-cb78-41ae-ba66-9d469195cebb
2025-10-19 23:41:48,118 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/420c78e1-cb78-41ae-ba66-9d469195cebb
2025-10-19 23:41:48,123 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b2ad5b9-18ab-4888-a4a2-ae89886a9d10
2025-10-19 23:41:48,130 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-19 23:41:48,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/796a473f-c28a-43a5-b09e-5d3a7deee447
2025-10-19 23:41:48,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/420c78e1-cb78-41ae-ba66-9d469195cebb
2025-10-19 23:41:48,150 - INFO - Verified VN network id 13 for VN 796a473f-c28a-43a5-b09e-5d3a7deee447
2025-10-19 23:41:48,150 - INFO - Verifications in API Server for VN ctest-vn-38527990 passed
2025-10-19 23:41:48,150 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/796a473f-c28a-43a5-b09e-5d3a7deee447
2025-10-19 23:41:48,158 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/420c78e1-cb78-41ae-ba66-9d469195cebb
2025-10-19 23:41:48,163 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/420c78e1-cb78-41ae-ba66-9d469195cebb
2025-10-19 23:41:48,168 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b2ad5b9-18ab-4888-a4a2-ae89886a9d10
2025-10-19 23:41:48,179 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-38527990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97911797', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8748883565292962725', 'uuid-lslong': '12726712102797894727'}, 'enable': 'true', 'created': '2025-10-19T23:41:45', 'last-modified': '2025-10-19T23:41:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.322376'}
2025-10-19 23:41:48,184 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-19 23:41:48,184 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38527990 passed
2025-10-19 23:41:48,184 - DEBUG - ====Verifying policy data for ctest-vn-38527990 in API_Server ======
2025-10-19 23:41:48,184 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 23:41:48,189 - DEBUG - Requesting: http://10.0.0.254:8082/domain/762e8b79-2edf-4013-b74b-adcebb2eac2f
2025-10-19 23:41:48,201 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc3d1c01-7305-4139-a7a1-c90df5c122dd
2025-10-19 23:41:48,274 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/796a473f-c28a-43a5-b09e-5d3a7deee447
2025-10-19 23:41:48,282 - DEBUG - ==>Verifying data for policy with id: 3742b3ad-07ad-44d9-a45b-8d644912bade, fqn: ['default-domain', 'ctest-TestBasicPolicy-97911797', 'ctest-policy-allow-all-82065751']
2025-10-19 23:41:48,282 - INFO - VN ctest-vn-38527990 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-19 23:41:48,282 - DEBUG - Verifying the vn in opserver
2025-10-19 23:41:48,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-38527990 virtual network link through opserver 10.0.0.254
2025-10-19 23:41:48,282 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-19 23:41:48,290 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-38527990', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-38527990?flat'}
2025-10-19 23:41:48,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97911797:ctest-vn-38527990 is found in opserver
2025-10-19 23:41:48,299 - DEBUG - Do not have enough data to verify VN in agent
2025-10-19 23:41:48,303 - DEBUG - VRF ids for VN ctest-vn-38527990: {}
2025-10-19 23:41:48,368 - DEBUG - Services list from nova: [