2026-04-30 00:52:02,107 - INFO - Domain Default found not creating
2026-04-30 00:52:02,385 - INFO - Project ctest-TestBasicPolicy-65512577 not found, creating it
2026-04-30 00:52:02,920 - INFO - Created Project:ctest-TestBasicPolicy-65512577, ID : f33736c6-7f4b-42cf-a656-8d3fd81fbda5
2026-04-30 00:52:04,554 - INFO - ================================================================================
2026-04-30 00:52:04,554 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-30 00:52:04,554 - 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-04-30 00:52:04,815 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2026-04-30 00:52:04,815 - INFO - Initial checks done. Running the testcase now
2026-04-30 00:52:04,816 - INFO -
2026-04-30 00:52:05,454 - DEBUG - Response for create_network : {'network': {'id': '843f267d-0a36-4f45-aa9c-295a88912018', 'name': 'ctest-vn-84157408', 'tenant_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'project_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-vn-84157408'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 00:52:05,619 - DEBUG - Response for create_subnet : {'subnet': {'id': '80ad1b51-8732-4add-94a9-847d4b3b003b', 'name': '', 'tenant_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'network_id': '843f267d-0a36-4f45-aa9c-295a88912018', 'ip_version': 4, 'cidr': '160.23.99.64/26', 'allocation_pools': [{'start': '160.23.99.66', 'end': '160.23.99.126'}], 'gateway_ip': '160.23.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.23.99.66', 'tags': [], 'project_id': 'f33736c67f4b42cfa6568d3fd81fbda5'}}
2026-04-30 00:52:05,642 - INFO - Created VN ctest-vn-84157408
2026-04-30 00:52:05,697 - DEBUG - VN ctest-vn-84157408 UUID is 843f267d-0a36-4f45-aa9c-295a88912018
2026-04-30 00:52:06,011 - DEBUG - Response for create_network : {'network': {'id': '5b283bc7-dd1c-49aa-8570-d4b918cd3c8c', 'name': 'ctest-vn-83512285', 'tenant_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'project_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-vn-83512285'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 00:52:06,174 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b89b761-a743-41d7-8827-1c91d8bbc4d5', 'name': '', 'tenant_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'network_id': '5b283bc7-dd1c-49aa-8570-d4b918cd3c8c', 'ip_version': 4, 'cidr': '23.142.159.64/26', 'allocation_pools': [{'start': '23.142.159.66', 'end': '23.142.159.126'}], 'gateway_ip': '23.142.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.142.159.66', 'tags': [], 'project_id': 'f33736c67f4b42cfa6568d3fd81fbda5'}}
2026-04-30 00:52:06,198 - INFO - Created VN ctest-vn-83512285
2026-04-30 00:52:06,252 - DEBUG - VN ctest-vn-83512285 UUID is 5b283bc7-dd1c-49aa-8570-d4b918cd3c8c
2026-04-30 00:52:06,389 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-84157408, 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-65512577:ctest-vn-83512285, 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-04-30 00:52:06,708 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '843f267d-0a36-4f45-aa9c-295a88912018', 'name': 'ctest-vn-84157408', 'tenant_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'project_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80ad1b51-8732-4add-94a9-847d4b3b003b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-vn-84157408'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-policy-allow-all-73054230']], 'subnet_ipam': [{'subnet_cidr': '160.23.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 00:52:06,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b283bc7-dd1c-49aa-8570-d4b918cd3c8c', 'name': 'ctest-vn-83512285', 'tenant_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'project_id': 'f33736c67f4b42cfa6568d3fd81fbda5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b89b761-a743-41d7-8827-1c91d8bbc4d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-vn-83512285'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-policy-allow-all-73054230']], 'subnet_ipam': [{'subnet_cidr': '23.142.159.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 00:52:07,133 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-30 00:52:07,433 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-30 00:52:07,469 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10
2026-04-30 00:52:07,483 - DEBUG - Requesting: http://10.0.0.130:8082/project/f33736c6-7f4b-42cf-a656-8d3fd81fbda5
2026-04-30 00:52:07,560 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/843f267d-0a36-4f45-aa9c-295a88912018
2026-04-30 00:52:07,574 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/843f267d-0a36-4f45-aa9c-295a88912018
2026-04-30 00:52:07,586 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ed22db24-ed75-403e-8435-4ed71262581e
2026-04-30 00:52:07,595 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ed22db24-ed75-403e-8435-4ed71262581e
2026-04-30 00:52:07,603 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/90bb033b-edf2-4ed0-8ce6-d61f112e4ee6
2026-04-30 00:52:07,611 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 00:52:07,611 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/843f267d-0a36-4f45-aa9c-295a88912018
2026-04-30 00:52:07,622 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ed22db24-ed75-403e-8435-4ed71262581e
2026-04-30 00:52:07,639 - INFO - Verified VN network id 11 for VN 843f267d-0a36-4f45-aa9c-295a88912018
2026-04-30 00:52:07,639 - INFO - Verifications in API Server for VN ctest-vn-84157408 passed
2026-04-30 00:52:07,639 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/843f267d-0a36-4f45-aa9c-295a88912018
2026-04-30 00:52:07,649 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ed22db24-ed75-403e-8435-4ed71262581e
2026-04-30 00:52:07,658 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ed22db24-ed75-403e-8435-4ed71262581e
2026-04-30 00:52:07,667 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/90bb033b-edf2-4ed0-8ce6-d61f112e4ee6
2026-04-30 00:52:07,681 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-84157408', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65512577', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9529377655023357765', 'uuid-lslong': '12293746551629619224'}, 'enable': 'true', 'created': '2026-04-30T00:52:05', 'last-modified': '2026-04-30T00:52:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995155'}
2026-04-30 00:52:07,688 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 00:52:07,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84157408 passed
2026-04-30 00:52:07,689 - DEBUG - ====Verifying policy data for ctest-vn-84157408 in API_Server ======
2026-04-30 00:52:07,689 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-30 00:52:07,696 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10
2026-04-30 00:52:07,710 - DEBUG - Requesting: http://10.0.0.130:8082/project/f33736c6-7f4b-42cf-a656-8d3fd81fbda5
2026-04-30 00:52:07,787 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/843f267d-0a36-4f45-aa9c-295a88912018
2026-04-30 00:52:07,797 - DEBUG - ==>Verifying data for policy with id: e57b978d-86f5-44fe-ac69-e43d23140c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-policy-allow-all-73054230']
2026-04-30 00:52:07,797 - INFO - VN ctest-vn-84157408 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 00:52:07,798 - DEBUG - Verifying the vn in opserver
2026-04-30 00:52:07,798 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-84157408 virtual network link through opserver 10.0.0.130
2026-04-30 00:52:07,798 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-30 00:52:08,100 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-30 00:52:08,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-84157408', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-84157408?flat'}
2026-04-30 00:52:08,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-84157408 is found in opserver
2026-04-30 00:52:08,190 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 00:52:08,195 - DEBUG - VRF ids for VN ctest-vn-84157408: {}
2026-04-30 00:52:08,195 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-30 00:52:08,202 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10
2026-04-30 00:52:08,214 - DEBUG - Requesting: http://10.0.0.130:8082/project/f33736c6-7f4b-42cf-a656-8d3fd81fbda5
2026-04-30 00:52:08,285 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5b283bc7-dd1c-49aa-8570-d4b918cd3c8c
2026-04-30 00:52:08,297 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5b283bc7-dd1c-49aa-8570-d4b918cd3c8c
2026-04-30 00:52:08,307 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e097ca5a-88f0-4672-9902-ef6b9420a3cb
2026-04-30 00:52:08,315 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e097ca5a-88f0-4672-9902-ef6b9420a3cb
2026-04-30 00:52:08,322 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/8dba9f52-24ca-4c8e-8f5a-cc5708d20c5a
2026-04-30 00:52:08,330 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 00:52:08,330 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5b283bc7-dd1c-49aa-8570-d4b918cd3c8c
2026-04-30 00:52:08,341 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e097ca5a-88f0-4672-9902-ef6b9420a3cb
2026-04-30 00:52:08,356 - INFO - Verified VN network id 12 for VN 5b283bc7-dd1c-49aa-8570-d4b918cd3c8c
2026-04-30 00:52:08,356 - INFO - Verifications in API Server for VN ctest-vn-83512285 passed
2026-04-30 00:52:08,356 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5b283bc7-dd1c-49aa-8570-d4b918cd3c8c
2026-04-30 00:52:08,365 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e097ca5a-88f0-4672-9902-ef6b9420a3cb
2026-04-30 00:52:08,373 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e097ca5a-88f0-4672-9902-ef6b9420a3cb
2026-04-30 00:52:08,381 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/8dba9f52-24ca-4c8e-8f5a-cc5708d20c5a
2026-04-30 00:52:08,395 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-83512285', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65512577', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6568565786114017706', 'uuid-lslong': '9615419095886150796'}, 'enable': 'true', 'created': '2026-04-30T00:52:05', 'last-modified': '2026-04-30T00:52:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464000'}
2026-04-30 00:52:08,401 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 00:52:08,401 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83512285 passed
2026-04-30 00:52:08,401 - DEBUG - ====Verifying policy data for ctest-vn-83512285 in API_Server ======
2026-04-30 00:52:08,401 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-30 00:52:08,408 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10
2026-04-30 00:52:08,419 - DEBUG - Requesting: http://10.0.0.130:8082/project/f33736c6-7f4b-42cf-a656-8d3fd81fbda5
2026-04-30 00:52:08,496 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5b283bc7-dd1c-49aa-8570-d4b918cd3c8c
2026-04-30 00:52:08,506 - DEBUG - ==>Verifying data for policy with id: e57b978d-86f5-44fe-ac69-e43d23140c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-65512577', 'ctest-policy-allow-all-73054230']
2026-04-30 00:52:08,506 - INFO - VN ctest-vn-83512285 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 00:52:08,506 - DEBUG - Verifying the vn in opserver
2026-04-30 00:52:08,506 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-83512285 virtual network link through opserver 10.0.0.130
2026-04-30 00:52:08,506 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-30 00:52:08,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-83512285', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-83512285?flat'}
2026-04-30 00:52:08,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65512577:ctest-vn-83512285 is found in opserver
2026-04-30 00:52:08,529 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 00:52:08,534 - DEBUG - VRF ids for VN ctest-vn-83512285: {}
2026-04-30 00:52:08,619 - DEBUG - Services list from nova: [