2025-10-09 02:01:09,464 - INFO - Domain Default found not creating
2025-10-09 02:01:09,605 - INFO - Project ctest-TestBasicPolicy-43072674 not found, creating it
2025-10-09 02:01:10,051 - INFO - Created Project:ctest-TestBasicPolicy-43072674, ID : d4a48ad9-5fe4-455d-ad8b-21b00ca1ad0b
2025-10-09 02:01:11,428 - INFO - ================================================================================
2025-10-09 02:01:11,428 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 02:01:11,429 - 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-09 02:01:11,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-09 02:01:11,682 - INFO - Initial checks done. Running the testcase now
2025-10-09 02:01:11,682 - INFO -
2025-10-09 02:01:12,209 - DEBUG - Response for create_network : {'network': {'id': '33541016-251a-49a6-aacc-4112e8ef6a6b', 'name': 'ctest-vn-66045075', 'tenant_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'project_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-vn-66045075'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:12,373 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a11de3d8-9d5b-48c0-916e-0dd8f055dd6e', 'name': '', 'tenant_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'network_id': '33541016-251a-49a6-aacc-4112e8ef6a6b', 'ip_version': 4, 'cidr': '201.110.184.128/26', 'allocation_pools': [{'start': '201.110.184.130', 'end': '201.110.184.190'}], 'gateway_ip': '201.110.184.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.110.184.130', 'tags': [], 'project_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b'}}
2025-10-09 02:01:12,388 - INFO - Created VN ctest-vn-66045075
2025-10-09 02:01:12,441 - DEBUG - VN ctest-vn-66045075 UUID is 33541016-251a-49a6-aacc-4112e8ef6a6b
2025-10-09 02:01:12,746 - DEBUG - Response for create_network : {'network': {'id': 'ec51b8b1-1aba-4c95-a2fa-2d62f7106462', 'name': 'ctest-vn-37522398', 'tenant_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'project_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-vn-37522398'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:12,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a640f082-b032-4932-901f-e4eb071251ff', 'name': '', 'tenant_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'network_id': 'ec51b8b1-1aba-4c95-a2fa-2d62f7106462', 'ip_version': 4, 'cidr': '84.146.253.0/26', 'allocation_pools': [{'start': '84.146.253.2', 'end': '84.146.253.62'}], 'gateway_ip': '84.146.253.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.146.253.2', 'tags': [], 'project_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b'}}
2025-10-09 02:01:12,916 - INFO - Created VN ctest-vn-37522398
2025-10-09 02:01:12,968 - DEBUG - VN ctest-vn-37522398 UUID is ec51b8b1-1aba-4c95-a2fa-2d62f7106462
2025-10-09 02:01:13,116 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-66045075, 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-43072674:ctest-vn-37522398, 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-09 02:01:13,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33541016-251a-49a6-aacc-4112e8ef6a6b', 'name': 'ctest-vn-66045075', 'tenant_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'project_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a11de3d8-9d5b-48c0-916e-0dd8f055dd6e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-vn-66045075'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-policy-allow-all-25857067']], 'subnet_ipam': [{'subnet_cidr': '201.110.184.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:13,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec51b8b1-1aba-4c95-a2fa-2d62f7106462', 'name': 'ctest-vn-37522398', 'tenant_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'project_id': 'd4a48ad95fe4455dad8b21b00ca1ad0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a640f082-b032-4932-901f-e4eb071251ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-vn-37522398'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-policy-allow-all-25857067']], 'subnet_ipam': [{'subnet_cidr': '84.146.253.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 02:01:13,813 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 02:01:14,105 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 02:01:14,134 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c7d4dfeb-000f-44f4-8347-1b379acf7cb7
2025-10-09 02:01:14,145 - DEBUG - Requesting: http://10.0.0.254:8082/project/d4a48ad9-5fe4-455d-ad8b-21b00ca1ad0b
2025-10-09 02:01:14,231 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/33541016-251a-49a6-aacc-4112e8ef6a6b
2025-10-09 02:01:14,241 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/33541016-251a-49a6-aacc-4112e8ef6a6b
2025-10-09 02:01:14,249 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aafe62cb-8b0a-4826-a490-548625e02b46
2025-10-09 02:01:14,255 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aafe62cb-8b0a-4826-a490-548625e02b46
2025-10-09 02:01:14,260 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/46038c06-acda-4499-813e-7233e97677cf
2025-10-09 02:01:14,265 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 02:01:14,265 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/33541016-251a-49a6-aacc-4112e8ef6a6b
2025-10-09 02:01:14,273 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aafe62cb-8b0a-4826-a490-548625e02b46
2025-10-09 02:01:14,285 - INFO - Verified VN network id 12 for VN 33541016-251a-49a6-aacc-4112e8ef6a6b
2025-10-09 02:01:14,285 - INFO - Verifications in API Server for VN ctest-vn-66045075 passed
2025-10-09 02:01:14,285 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/33541016-251a-49a6-aacc-4112e8ef6a6b
2025-10-09 02:01:14,293 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aafe62cb-8b0a-4826-a490-548625e02b46
2025-10-09 02:01:14,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/aafe62cb-8b0a-4826-a490-548625e02b46
2025-10-09 02:01:14,304 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/46038c06-acda-4499-813e-7233e97677cf
2025-10-09 02:01:14,314 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-66045075', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43072674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3698598881275824550', 'uuid-lslong': '12307283431169944171'}, 'enable': 'true', 'created': '2025-10-09T02:01:12', 'last-modified': '2025-10-09T02:01:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921918'}
2025-10-09 02:01:14,319 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 02:01:14,319 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66045075 passed
2025-10-09 02:01:14,319 - DEBUG - ====Verifying policy data for ctest-vn-66045075 in API_Server ======
2025-10-09 02:01:14,319 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 02:01:14,324 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c7d4dfeb-000f-44f4-8347-1b379acf7cb7
2025-10-09 02:01:14,334 - DEBUG - Requesting: http://10.0.0.254:8082/project/d4a48ad9-5fe4-455d-ad8b-21b00ca1ad0b
2025-10-09 02:01:14,401 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/33541016-251a-49a6-aacc-4112e8ef6a6b
2025-10-09 02:01:14,409 - DEBUG - ==>Verifying data for policy with id: a0d95f19-a4ed-4132-a06b-a6e5b8f5f0be, fqn: ['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-policy-allow-all-25857067']
2025-10-09 02:01:14,409 - INFO - VN ctest-vn-66045075 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 02:01:14,409 - DEBUG - Verifying the vn in opserver
2025-10-09 02:01:14,410 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-66045075 virtual network link through opserver 10.0.0.254
2025-10-09 02:01:14,410 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 02:01:14,707 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 02:01:14,757 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-66045075', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-66045075?flat'}
2025-10-09 02:01:14,757 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-66045075 is found in opserver
2025-10-09 02:01:14,766 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 02:01:14,769 - DEBUG - VRF ids for VN ctest-vn-66045075: {}
2025-10-09 02:01:14,769 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 02:01:14,774 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c7d4dfeb-000f-44f4-8347-1b379acf7cb7
2025-10-09 02:01:14,783 - DEBUG - Requesting: http://10.0.0.254:8082/project/d4a48ad9-5fe4-455d-ad8b-21b00ca1ad0b
2025-10-09 02:01:14,850 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec51b8b1-1aba-4c95-a2fa-2d62f7106462
2025-10-09 02:01:14,860 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec51b8b1-1aba-4c95-a2fa-2d62f7106462
2025-10-09 02:01:14,867 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28c5c557-750c-4a67-bc3a-841f45aa1818
2025-10-09 02:01:14,873 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28c5c557-750c-4a67-bc3a-841f45aa1818
2025-10-09 02:01:14,878 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/654f5214-13eb-4c2c-bfda-c4542b9e15d0
2025-10-09 02:01:14,884 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 02:01:14,884 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec51b8b1-1aba-4c95-a2fa-2d62f7106462
2025-10-09 02:01:14,891 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28c5c557-750c-4a67-bc3a-841f45aa1818
2025-10-09 02:01:14,902 - INFO - Verified VN network id 13 for VN ec51b8b1-1aba-4c95-a2fa-2d62f7106462
2025-10-09 02:01:14,904 - INFO - Verifications in API Server for VN ctest-vn-37522398 passed
2025-10-09 02:01:14,904 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec51b8b1-1aba-4c95-a2fa-2d62f7106462
2025-10-09 02:01:14,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28c5c557-750c-4a67-bc3a-841f45aa1818
2025-10-09 02:01:14,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28c5c557-750c-4a67-bc3a-841f45aa1818
2025-10-09 02:01:14,922 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/654f5214-13eb-4c2c-bfda-c4542b9e15d0
2025-10-09 02:01:14,931 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-37522398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43072674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17028594736861695125', 'uuid-lslong': '11743748881397081186'}, 'enable': 'true', 'created': '2025-10-09T02:01:12', 'last-modified': '2025-10-09T02:01:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308101'}
2025-10-09 02:01:14,936 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 02:01:14,936 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37522398 passed
2025-10-09 02:01:14,936 - DEBUG - ====Verifying policy data for ctest-vn-37522398 in API_Server ======
2025-10-09 02:01:14,936 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 02:01:14,941 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c7d4dfeb-000f-44f4-8347-1b379acf7cb7
2025-10-09 02:01:14,950 - DEBUG - Requesting: http://10.0.0.254:8082/project/d4a48ad9-5fe4-455d-ad8b-21b00ca1ad0b
2025-10-09 02:01:15,021 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec51b8b1-1aba-4c95-a2fa-2d62f7106462
2025-10-09 02:01:15,029 - DEBUG - ==>Verifying data for policy with id: a0d95f19-a4ed-4132-a06b-a6e5b8f5f0be, fqn: ['default-domain', 'ctest-TestBasicPolicy-43072674', 'ctest-policy-allow-all-25857067']
2025-10-09 02:01:15,029 - INFO - VN ctest-vn-37522398 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 02:01:15,029 - DEBUG - Verifying the vn in opserver
2025-10-09 02:01:15,029 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-37522398 virtual network link through opserver 10.0.0.254
2025-10-09 02:01:15,029 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 02:01:15,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-37522398', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-37522398?flat'}
2025-10-09 02:01:15,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43072674:ctest-vn-37522398 is found in opserver
2025-10-09 02:01:15,047 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 02:01:15,051 - DEBUG - VRF ids for VN ctest-vn-37522398: {}
2025-10-09 02:01:15,106 - DEBUG - Services list from nova: [