2026-05-27 13:34:35,945 - INFO - Domain Default found not creating
2026-05-27 13:34:36,171 - INFO - Project ctest-TestBasicPolicy-86566923 not found, creating it
2026-05-27 13:34:36,697 - INFO - Created Project:ctest-TestBasicPolicy-86566923, ID : bde51e49-ed6d-401d-90c7-3f83d29d9d42
2026-05-27 13:34:38,875 - INFO - ================================================================================
2026-05-27 13:34:38,875 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-27 13:34:38,875 - 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
2026-05-27 13:34:39,153 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-05-27 13:34:39,154 - INFO - Initial checks done. Running the testcase now
2026-05-27 13:34:39,154 - INFO -
2026-05-27 13:34:39,871 - DEBUG - Response for create_network : {'network': {'id': '7f858ff1-9cb5-4de3-8588-ba2d8f8a3532', 'name': 'ctest-vn-97133845', 'tenant_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'project_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-vn-97133845'], 'port_security_enabled': True, 'description': ''}}
2026-05-27 13:34:40,062 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b267a0b6-f598-4144-b5db-836eff0cb3d2', 'name': '', 'tenant_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'network_id': '7f858ff1-9cb5-4de3-8588-ba2d8f8a3532', 'ip_version': 4, 'cidr': '223.65.139.0/26', 'allocation_pools': [{'start': '223.65.139.2', 'end': '223.65.139.62'}], 'gateway_ip': '223.65.139.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.65.139.2', 'tags': [], 'project_id': 'bde51e49ed6d401d90c73f83d29d9d42'}}
2026-05-27 13:34:40,087 - INFO - Created VN ctest-vn-97133845
2026-05-27 13:34:40,141 - DEBUG - VN ctest-vn-97133845 UUID is 7f858ff1-9cb5-4de3-8588-ba2d8f8a3532
2026-05-27 13:34:40,489 - DEBUG - Response for create_network : {'network': {'id': '110d6747-44ea-4d72-ad1a-7dc650df2375', 'name': 'ctest-vn-31779306', 'tenant_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'project_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-vn-31779306'], 'port_security_enabled': True, 'description': ''}}
2026-05-27 13:34:40,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '9226d2f3-dc26-40a2-afc0-468485f04d80', 'name': '', 'tenant_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'network_id': '110d6747-44ea-4d72-ad1a-7dc650df2375', 'ip_version': 4, 'cidr': '177.70.138.64/26', 'allocation_pools': [{'start': '177.70.138.66', 'end': '177.70.138.126'}], 'gateway_ip': '177.70.138.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.70.138.66', 'tags': [], 'project_id': 'bde51e49ed6d401d90c73f83d29d9d42'}}
2026-05-27 13:34:40,753 - INFO - Created VN ctest-vn-31779306
2026-05-27 13:34:40,805 - DEBUG - VN ctest-vn-31779306 UUID is 110d6747-44ea-4d72-ad1a-7dc650df2375
2026-05-27 13:34:40,934 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-97133845, 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-86566923:ctest-vn-31779306, 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]
2026-05-27 13:34:41,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f858ff1-9cb5-4de3-8588-ba2d8f8a3532', 'name': 'ctest-vn-97133845', 'tenant_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'project_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b267a0b6-f598-4144-b5db-836eff0cb3d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-vn-97133845'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-policy-allow-all-03125780']], 'subnet_ipam': [{'subnet_cidr': '223.65.139.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-27 13:34:41,491 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '110d6747-44ea-4d72-ad1a-7dc650df2375', 'name': 'ctest-vn-31779306', 'tenant_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'project_id': 'bde51e49ed6d401d90c73f83d29d9d42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9226d2f3-dc26-40a2-afc0-468485f04d80'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-vn-31779306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-policy-allow-all-03125780']], 'subnet_ipam': [{'subnet_cidr': '177.70.138.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-27 13:34:41,681 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-27 13:34:42,028 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-27 13:34:42,064 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e
2026-05-27 13:34:42,078 - DEBUG - Requesting: http://10.0.0.242:8082/project/bde51e49-ed6d-401d-90c7-3f83d29d9d42
2026-05-27 13:34:42,155 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f858ff1-9cb5-4de3-8588-ba2d8f8a3532
2026-05-27 13:34:42,167 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f858ff1-9cb5-4de3-8588-ba2d8f8a3532
2026-05-27 13:34:42,178 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0bb83a4-5adf-41b3-b10e-2f84e409fdd2
2026-05-27 13:34:42,186 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0bb83a4-5adf-41b3-b10e-2f84e409fdd2
2026-05-27 13:34:42,192 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/92bcd3f6-1fd2-4239-bf76-7e2796379e67
2026-05-27 13:34:42,198 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-27 13:34:42,198 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f858ff1-9cb5-4de3-8588-ba2d8f8a3532
2026-05-27 13:34:42,209 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0bb83a4-5adf-41b3-b10e-2f84e409fdd2
2026-05-27 13:34:42,226 - INFO - Verified VN network id 12 for VN 7f858ff1-9cb5-4de3-8588-ba2d8f8a3532
2026-05-27 13:34:42,226 - INFO - Verifications in API Server for VN ctest-vn-97133845 passed
2026-05-27 13:34:42,226 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f858ff1-9cb5-4de3-8588-ba2d8f8a3532
2026-05-27 13:34:42,237 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0bb83a4-5adf-41b3-b10e-2f84e409fdd2
2026-05-27 13:34:42,245 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0bb83a4-5adf-41b3-b10e-2f84e409fdd2
2026-05-27 13:34:42,253 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/92bcd3f6-1fd2-4239-bf76-7e2796379e67
2026-05-27 13:34:42,266 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-97133845', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86566923', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9188908882598383075', 'uuid-lslong': '9622145308721558834'}, 'enable': 'true', 'created': '2026-05-27T13:34:39', 'last-modified': '2026-05-27T13:34:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042812'}
2026-05-27 13:34:42,272 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-27 13:34:42,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97133845 passed
2026-05-27 13:34:42,273 - DEBUG - ====Verifying policy data for ctest-vn-97133845 in API_Server ======
2026-05-27 13:34:42,273 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-27 13:34:42,279 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e
2026-05-27 13:34:42,290 - DEBUG - Requesting: http://10.0.0.242:8082/project/bde51e49-ed6d-401d-90c7-3f83d29d9d42
2026-05-27 13:34:42,374 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f858ff1-9cb5-4de3-8588-ba2d8f8a3532
2026-05-27 13:34:42,385 - DEBUG - ==>Verifying data for policy with id: c59883ff-029e-47ad-90e5-30d3ab2108d5, fqn: ['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-policy-allow-all-03125780']
2026-05-27 13:34:42,385 - INFO - VN ctest-vn-97133845 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-27 13:34:42,385 - DEBUG - Verifying the vn in opserver
2026-05-27 13:34:42,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-97133845 virtual network link through opserver 10.0.0.242
2026-05-27 13:34:42,385 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-27 13:34:42,732 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-27 13:34:42,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-97133845', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-97133845?flat'}
2026-05-27 13:34:42,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-97133845 is found in opserver
2026-05-27 13:34:42,829 - DEBUG - Do not have enough data to verify VN in agent
2026-05-27 13:34:42,836 - DEBUG - VRF ids for VN ctest-vn-97133845: {}
2026-05-27 13:34:42,836 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-27 13:34:42,843 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e
2026-05-27 13:34:42,858 - DEBUG - Requesting: http://10.0.0.242:8082/project/bde51e49-ed6d-401d-90c7-3f83d29d9d42
2026-05-27 13:34:42,934 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/110d6747-44ea-4d72-ad1a-7dc650df2375
2026-05-27 13:34:42,948 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/110d6747-44ea-4d72-ad1a-7dc650df2375
2026-05-27 13:34:42,960 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cc957c90-086e-4410-83b1-39023792942b
2026-05-27 13:34:42,969 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cc957c90-086e-4410-83b1-39023792942b
2026-05-27 13:34:42,978 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c108c561-c199-4dbe-835e-021c6a48075b
2026-05-27 13:34:42,987 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-27 13:34:42,987 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/110d6747-44ea-4d72-ad1a-7dc650df2375
2026-05-27 13:34:42,997 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cc957c90-086e-4410-83b1-39023792942b
2026-05-27 13:34:43,014 - INFO - Verified VN network id 13 for VN 110d6747-44ea-4d72-ad1a-7dc650df2375
2026-05-27 13:34:43,014 - INFO - Verifications in API Server for VN ctest-vn-31779306 passed
2026-05-27 13:34:43,014 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/110d6747-44ea-4d72-ad1a-7dc650df2375
2026-05-27 13:34:43,025 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cc957c90-086e-4410-83b1-39023792942b
2026-05-27 13:34:43,033 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cc957c90-086e-4410-83b1-39023792942b
2026-05-27 13:34:43,041 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c108c561-c199-4dbe-835e-021c6a48075b
2026-05-27 13:34:43,053 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-31779306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86566923', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1228751829138558322', 'uuid-lslong': '12473420408669807477'}, 'enable': 'true', 'created': '2026-05-27T13:34:40', 'last-modified': '2026-05-27T13:34:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.583066'}
2026-05-27 13:34:43,059 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-27 13:34:43,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31779306 passed
2026-05-27 13:34:43,059 - DEBUG - ====Verifying policy data for ctest-vn-31779306 in API_Server ======
2026-05-27 13:34:43,060 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-27 13:34:43,065 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e
2026-05-27 13:34:43,080 - DEBUG - Requesting: http://10.0.0.242:8082/project/bde51e49-ed6d-401d-90c7-3f83d29d9d42
2026-05-27 13:34:43,154 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/110d6747-44ea-4d72-ad1a-7dc650df2375
2026-05-27 13:34:43,164 - DEBUG - ==>Verifying data for policy with id: c59883ff-029e-47ad-90e5-30d3ab2108d5, fqn: ['default-domain', 'ctest-TestBasicPolicy-86566923', 'ctest-policy-allow-all-03125780']
2026-05-27 13:34:43,164 - INFO - VN ctest-vn-31779306 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-27 13:34:43,164 - DEBUG - Verifying the vn in opserver
2026-05-27 13:34:43,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-31779306 virtual network link through opserver 10.0.0.242
2026-05-27 13:34:43,165 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-27 13:34:43,176 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-31779306', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-31779306?flat'}
2026-05-27 13:34:43,176 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86566923:ctest-vn-31779306 is found in opserver
2026-05-27 13:34:43,186 - DEBUG - Do not have enough data to verify VN in agent
2026-05-27 13:34:43,191 - DEBUG - VRF ids for VN ctest-vn-31779306: {}
2026-05-27 13:34:43,257 - DEBUG - Services list from nova: [