2025-10-21 22:16:02,047 - INFO - Domain Default found not creating
2025-10-21 22:16:02,180 - INFO - Project ctest-TestBasicPolicy-78821975 not found, creating it
2025-10-21 22:16:02,660 - INFO - Created Project:ctest-TestBasicPolicy-78821975, ID : 4cd5f9d4-0325-49da-bdb1-f0a4a1080cce
2025-10-21 22:16:04,032 - INFO - ================================================================================
2025-10-21 22:16:04,032 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 22:16:04,032 - 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-21 22:16:04,289 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-21 22:16:04,289 - INFO - Initial checks done. Running the testcase now
2025-10-21 22:16:04,289 - INFO -
2025-10-21 22:16:04,821 - DEBUG - Response for create_network : {'network': {'id': 'e107a1a3-2b20-4dd4-8007-60305825c59c', 'name': 'ctest-vn-87626993', 'tenant_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'project_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-vn-87626993'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 22:16:05,000 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e243497-e31a-4eca-8f59-9fa18c5238d0', 'name': '', 'tenant_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'network_id': 'e107a1a3-2b20-4dd4-8007-60305825c59c', 'ip_version': 4, 'cidr': '9.76.37.192/26', 'allocation_pools': [{'start': '9.76.37.194', 'end': '9.76.37.254'}], 'gateway_ip': '9.76.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.76.37.194', 'tags': [], 'project_id': '4cd5f9d4032549dabdb1f0a4a1080cce'}}
2025-10-21 22:16:05,015 - INFO - Created VN ctest-vn-87626993
2025-10-21 22:16:05,064 - DEBUG - VN ctest-vn-87626993 UUID is e107a1a3-2b20-4dd4-8007-60305825c59c
2025-10-21 22:16:05,382 - DEBUG - Response for create_network : {'network': {'id': 'c4f1479c-2795-4471-a7a1-36fac7ab4746', 'name': 'ctest-vn-68995977', 'tenant_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'project_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-vn-68995977'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 22:16:05,528 - DEBUG - Response for create_subnet : {'subnet': {'id': '32dbb2c0-ca09-4e9b-b6d5-fe13a52eacb1', 'name': '', 'tenant_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'network_id': 'c4f1479c-2795-4471-a7a1-36fac7ab4746', 'ip_version': 4, 'cidr': '44.210.226.0/26', 'allocation_pools': [{'start': '44.210.226.2', 'end': '44.210.226.62'}], 'gateway_ip': '44.210.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.210.226.2', 'tags': [], 'project_id': '4cd5f9d4032549dabdb1f0a4a1080cce'}}
2025-10-21 22:16:05,544 - INFO - Created VN ctest-vn-68995977
2025-10-21 22:16:05,596 - DEBUG - VN ctest-vn-68995977 UUID is c4f1479c-2795-4471-a7a1-36fac7ab4746
2025-10-21 22:16:05,748 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-87626993, 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-78821975:ctest-vn-68995977, 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-21 22:16:06,024 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e107a1a3-2b20-4dd4-8007-60305825c59c', 'name': 'ctest-vn-87626993', 'tenant_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'project_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e243497-e31a-4eca-8f59-9fa18c5238d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-vn-87626993'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-policy-allow-all-31973949']], 'subnet_ipam': [{'subnet_cidr': '9.76.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 22:16:06,250 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4f1479c-2795-4471-a7a1-36fac7ab4746', 'name': 'ctest-vn-68995977', 'tenant_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'project_id': '4cd5f9d4032549dabdb1f0a4a1080cce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32dbb2c0-ca09-4e9b-b6d5-fe13a52eacb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-vn-68995977'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-policy-allow-all-31973949']], 'subnet_ipam': [{'subnet_cidr': '44.210.226.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 22:16:06,400 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 22:16:06,689 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 22:16:06,716 - DEBUG - Requesting: http://10.0.0.254:8082/domain/39f1ad4f-8f30-46eb-93a6-f28c30bc5c53
2025-10-21 22:16:06,726 - DEBUG - Requesting: http://10.0.0.254:8082/project/4cd5f9d4-0325-49da-bdb1-f0a4a1080cce
2025-10-21 22:16:06,798 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e107a1a3-2b20-4dd4-8007-60305825c59c
2025-10-21 22:16:06,807 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e107a1a3-2b20-4dd4-8007-60305825c59c
2025-10-21 22:16:06,814 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a01b937-0ce9-4ec1-b734-ceef6d3676df
2025-10-21 22:16:06,819 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a01b937-0ce9-4ec1-b734-ceef6d3676df
2025-10-21 22:16:06,824 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6689b85c-1ca7-4273-bfcf-b2507d737232
2025-10-21 22:16:06,829 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 22:16:06,829 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e107a1a3-2b20-4dd4-8007-60305825c59c
2025-10-21 22:16:06,835 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a01b937-0ce9-4ec1-b734-ceef6d3676df
2025-10-21 22:16:06,846 - INFO - Verified VN network id 12 for VN e107a1a3-2b20-4dd4-8007-60305825c59c
2025-10-21 22:16:06,846 - INFO - Verifications in API Server for VN ctest-vn-87626993 passed
2025-10-21 22:16:06,846 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e107a1a3-2b20-4dd4-8007-60305825c59c
2025-10-21 22:16:06,853 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a01b937-0ce9-4ec1-b734-ceef6d3676df
2025-10-21 22:16:06,858 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a01b937-0ce9-4ec1-b734-ceef6d3676df
2025-10-21 22:16:06,863 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6689b85c-1ca7-4273-bfcf-b2507d737232
2025-10-21 22:16:06,873 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-87626993', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78821975', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16215106705546038740', 'uuid-lslong': '9225448122445317532'}, 'enable': 'true', 'created': '2025-10-21T22:16:04', 'last-modified': '2025-10-21T22:16:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866441'}
2025-10-21 22:16:06,878 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 22:16:06,878 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87626993 passed
2025-10-21 22:16:06,878 - DEBUG - ====Verifying policy data for ctest-vn-87626993 in API_Server ======
2025-10-21 22:16:06,878 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 22:16:06,882 - DEBUG - Requesting: http://10.0.0.254:8082/domain/39f1ad4f-8f30-46eb-93a6-f28c30bc5c53
2025-10-21 22:16:06,891 - DEBUG - Requesting: http://10.0.0.254:8082/project/4cd5f9d4-0325-49da-bdb1-f0a4a1080cce
2025-10-21 22:16:06,972 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e107a1a3-2b20-4dd4-8007-60305825c59c
2025-10-21 22:16:06,980 - DEBUG - ==>Verifying data for policy with id: 7afbbb06-1088-435f-aab7-72ef554e48e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-policy-allow-all-31973949']
2025-10-21 22:16:06,980 - INFO - VN ctest-vn-87626993 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 22:16:06,980 - DEBUG - Verifying the vn in opserver
2025-10-21 22:16:06,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-87626993 virtual network link through opserver 10.0.0.254
2025-10-21 22:16:06,980 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 22:16:07,269 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 22:16:07,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-87626993', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-87626993?flat'}
2025-10-21 22:16:07,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-87626993 is found in opserver
2025-10-21 22:16:07,328 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 22:16:07,332 - DEBUG - VRF ids for VN ctest-vn-87626993: {}
2025-10-21 22:16:07,332 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 22:16:07,337 - DEBUG - Requesting: http://10.0.0.254:8082/domain/39f1ad4f-8f30-46eb-93a6-f28c30bc5c53
2025-10-21 22:16:07,346 - DEBUG - Requesting: http://10.0.0.254:8082/project/4cd5f9d4-0325-49da-bdb1-f0a4a1080cce
2025-10-21 22:16:07,413 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4f1479c-2795-4471-a7a1-36fac7ab4746
2025-10-21 22:16:07,424 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4f1479c-2795-4471-a7a1-36fac7ab4746
2025-10-21 22:16:07,432 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d713545-0177-4167-940b-8118a3a593a2
2025-10-21 22:16:07,437 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d713545-0177-4167-940b-8118a3a593a2
2025-10-21 22:16:07,442 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/786c4c54-171e-40b2-9299-4d611128acd4
2025-10-21 22:16:07,447 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 22:16:07,447 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4f1479c-2795-4471-a7a1-36fac7ab4746
2025-10-21 22:16:07,454 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d713545-0177-4167-940b-8118a3a593a2
2025-10-21 22:16:07,464 - INFO - Verified VN network id 13 for VN c4f1479c-2795-4471-a7a1-36fac7ab4746
2025-10-21 22:16:07,465 - INFO - Verifications in API Server for VN ctest-vn-68995977 passed
2025-10-21 22:16:07,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4f1479c-2795-4471-a7a1-36fac7ab4746
2025-10-21 22:16:07,472 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d713545-0177-4167-940b-8118a3a593a2
2025-10-21 22:16:07,477 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d713545-0177-4167-940b-8118a3a593a2
2025-10-21 22:16:07,483 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/786c4c54-171e-40b2-9299-4d611128acd4
2025-10-21 22:16:07,493 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-68995977', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78821975', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14191202636825707633', 'uuid-lslong': '12078996126303995718'}, 'enable': 'true', 'created': '2025-10-21T22:16:05', 'last-modified': '2025-10-21T22:16:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260040'}
2025-10-21 22:16:07,499 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 22:16:07,499 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68995977 passed
2025-10-21 22:16:07,499 - DEBUG - ====Verifying policy data for ctest-vn-68995977 in API_Server ======
2025-10-21 22:16:07,499 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 22:16:07,503 - DEBUG - Requesting: http://10.0.0.254:8082/domain/39f1ad4f-8f30-46eb-93a6-f28c30bc5c53
2025-10-21 22:16:07,513 - DEBUG - Requesting: http://10.0.0.254:8082/project/4cd5f9d4-0325-49da-bdb1-f0a4a1080cce
2025-10-21 22:16:07,580 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4f1479c-2795-4471-a7a1-36fac7ab4746
2025-10-21 22:16:07,587 - DEBUG - ==>Verifying data for policy with id: 7afbbb06-1088-435f-aab7-72ef554e48e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-78821975', 'ctest-policy-allow-all-31973949']
2025-10-21 22:16:07,587 - INFO - VN ctest-vn-68995977 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 22:16:07,587 - DEBUG - Verifying the vn in opserver
2025-10-21 22:16:07,588 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-68995977 virtual network link through opserver 10.0.0.254
2025-10-21 22:16:07,588 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 22:16:07,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-68995977', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-68995977?flat'}
2025-10-21 22:16:07,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78821975:ctest-vn-68995977 is found in opserver
2025-10-21 22:16:07,605 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 22:16:07,609 - DEBUG - VRF ids for VN ctest-vn-68995977: {}
2025-10-21 22:16:07,661 - DEBUG - Services list from nova: [