2025-12-04 15:38:34,290 - INFO - Domain Default found not creating
2025-12-04 15:38:34,428 - INFO - Project ctest-TestBasicPolicy-33557049 not found, creating it
2025-12-04 15:38:34,847 - INFO - Created Project:ctest-TestBasicPolicy-33557049, ID : 78f95a6e-33a1-475c-b928-1c3cee469d3f
2025-12-04 15:38:36,223 - INFO - ================================================================================
2025-12-04 15:38:36,223 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-04 15:38:36,223 - 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-12-04 15:38:36,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-12-04 15:38:36,476 - INFO - Initial checks done. Running the testcase now
2025-12-04 15:38:36,476 - INFO -
2025-12-04 15:38:36,983 - DEBUG - Response for create_network : {'network': {'id': '8820a468-5e44-44b5-bb45-0541808a6012', 'name': 'ctest-vn-10210206', 'tenant_id': '78f95a6e33a1475cb9281c3cee469d3f', 'project_id': '78f95a6e33a1475cb9281c3cee469d3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-vn-10210206'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 15:38:37,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '9615d439-f416-401c-b481-dd04fe5a349c', 'name': '', 'tenant_id': '78f95a6e33a1475cb9281c3cee469d3f', 'network_id': '8820a468-5e44-44b5-bb45-0541808a6012', 'ip_version': 4, 'cidr': '80.196.134.64/26', 'allocation_pools': [{'start': '80.196.134.66', 'end': '80.196.134.126'}], 'gateway_ip': '80.196.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.196.134.66', 'tags': [], 'project_id': '78f95a6e33a1475cb9281c3cee469d3f'}}
2025-12-04 15:38:37,178 - INFO - Created VN ctest-vn-10210206
2025-12-04 15:38:37,227 - DEBUG - VN ctest-vn-10210206 UUID is 8820a468-5e44-44b5-bb45-0541808a6012
2025-12-04 15:38:37,514 - DEBUG - Response for create_network : {'network': {'id': '86a99cfa-de41-4685-b76f-ec7233c01f8a', 'name': 'ctest-vn-68889381', 'tenant_id': '78f95a6e33a1475cb9281c3cee469d3f', 'project_id': '78f95a6e33a1475cb9281c3cee469d3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-vn-68889381'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 15:38:37,661 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c899336-019f-4dc1-be07-a6144e954d62', 'name': '', 'tenant_id': '78f95a6e33a1475cb9281c3cee469d3f', 'network_id': '86a99cfa-de41-4685-b76f-ec7233c01f8a', 'ip_version': 4, 'cidr': '160.2.99.64/26', 'allocation_pools': [{'start': '160.2.99.66', 'end': '160.2.99.126'}], 'gateway_ip': '160.2.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.2.99.66', 'tags': [], 'project_id': '78f95a6e33a1475cb9281c3cee469d3f'}}
2025-12-04 15:38:37,676 - INFO - Created VN ctest-vn-68889381
2025-12-04 15:38:37,727 - DEBUG - VN ctest-vn-68889381 UUID is 86a99cfa-de41-4685-b76f-ec7233c01f8a
2025-12-04 15:38:37,871 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-10210206, 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-33557049:ctest-vn-68889381, 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-12-04 15:38:38,169 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8820a468-5e44-44b5-bb45-0541808a6012', 'name': 'ctest-vn-10210206', 'tenant_id': '78f95a6e33a1475cb9281c3cee469d3f', 'project_id': '78f95a6e33a1475cb9281c3cee469d3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9615d439-f416-401c-b481-dd04fe5a349c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-vn-10210206'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-policy-allow-all-87264353']], 'subnet_ipam': [{'subnet_cidr': '80.196.134.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 15:38:38,381 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86a99cfa-de41-4685-b76f-ec7233c01f8a', 'name': 'ctest-vn-68889381', 'tenant_id': '78f95a6e33a1475cb9281c3cee469d3f', 'project_id': '78f95a6e33a1475cb9281c3cee469d3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c899336-019f-4dc1-be07-a6144e954d62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-vn-68889381'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-policy-allow-all-87264353']], 'subnet_ipam': [{'subnet_cidr': '160.2.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 15:38:38,547 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-04 15:38:38,838 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-04 15:38:38,865 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab
2025-12-04 15:38:38,875 - DEBUG - Requesting: http://10.0.0.249:8082/project/78f95a6e-33a1-475c-b928-1c3cee469d3f
2025-12-04 15:38:38,941 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8820a468-5e44-44b5-bb45-0541808a6012
2025-12-04 15:38:38,949 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8820a468-5e44-44b5-bb45-0541808a6012
2025-12-04 15:38:38,957 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5e3c3d2-041d-4c49-9852-8085d90a7e67
2025-12-04 15:38:38,962 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5e3c3d2-041d-4c49-9852-8085d90a7e67
2025-12-04 15:38:38,969 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3396e270-4b16-420e-acce-e075cd890e8d
2025-12-04 15:38:38,973 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 15:38:38,973 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8820a468-5e44-44b5-bb45-0541808a6012
2025-12-04 15:38:38,980 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5e3c3d2-041d-4c49-9852-8085d90a7e67
2025-12-04 15:38:38,990 - INFO - Verified VN network id 12 for VN 8820a468-5e44-44b5-bb45-0541808a6012
2025-12-04 15:38:38,990 - INFO - Verifications in API Server for VN ctest-vn-10210206 passed
2025-12-04 15:38:38,990 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8820a468-5e44-44b5-bb45-0541808a6012
2025-12-04 15:38:38,997 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5e3c3d2-041d-4c49-9852-8085d90a7e67
2025-12-04 15:38:39,001 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5e3c3d2-041d-4c49-9852-8085d90a7e67
2025-12-04 15:38:39,006 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3396e270-4b16-420e-acce-e075cd890e8d
2025-12-04 15:38:39,015 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-10210206', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33557049', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9809020756578026677', 'uuid-lslong': '13494197637373124626'}, 'enable': 'true', 'created': '2025-12-04T15:38:36', 'last-modified': '2025-12-04T15:38:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.868383'}
2025-12-04 15:38:39,020 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 15:38:39,020 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10210206 passed
2025-12-04 15:38:39,020 - DEBUG - ====Verifying policy data for ctest-vn-10210206 in API_Server ======
2025-12-04 15:38:39,020 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-04 15:38:39,024 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab
2025-12-04 15:38:39,033 - DEBUG - Requesting: http://10.0.0.249:8082/project/78f95a6e-33a1-475c-b928-1c3cee469d3f
2025-12-04 15:38:39,096 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8820a468-5e44-44b5-bb45-0541808a6012
2025-12-04 15:38:39,103 - DEBUG - ==>Verifying data for policy with id: 937e668e-5415-4c99-b481-b4ad8f11adc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-policy-allow-all-87264353']
2025-12-04 15:38:39,103 - INFO - VN ctest-vn-10210206 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 15:38:39,103 - DEBUG - Verifying the vn in opserver
2025-12-04 15:38:39,103 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-10210206 virtual network link through opserver 10.0.0.249
2025-12-04 15:38:39,103 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-04 15:38:39,393 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-04 15:38:39,449 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-10210206', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-10210206?flat'}
2025-12-04 15:38:39,449 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-10210206 is found in opserver
2025-12-04 15:38:39,457 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 15:38:39,461 - DEBUG - VRF ids for VN ctest-vn-10210206: {}
2025-12-04 15:38:39,461 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-04 15:38:39,466 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab
2025-12-04 15:38:39,476 - DEBUG - Requesting: http://10.0.0.249:8082/project/78f95a6e-33a1-475c-b928-1c3cee469d3f
2025-12-04 15:38:39,542 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/86a99cfa-de41-4685-b76f-ec7233c01f8a
2025-12-04 15:38:39,551 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/86a99cfa-de41-4685-b76f-ec7233c01f8a
2025-12-04 15:38:39,558 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/041fe09c-4dc8-4e5e-9cab-5b7c94b5bd1e
2025-12-04 15:38:39,564 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/041fe09c-4dc8-4e5e-9cab-5b7c94b5bd1e
2025-12-04 15:38:39,569 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/51b71ef0-0ab9-4daa-8df7-0bfb122008ff
2025-12-04 15:38:39,573 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 15:38:39,573 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/86a99cfa-de41-4685-b76f-ec7233c01f8a
2025-12-04 15:38:39,580 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/041fe09c-4dc8-4e5e-9cab-5b7c94b5bd1e
2025-12-04 15:38:39,590 - INFO - Verified VN network id 13 for VN 86a99cfa-de41-4685-b76f-ec7233c01f8a
2025-12-04 15:38:39,590 - INFO - Verifications in API Server for VN ctest-vn-68889381 passed
2025-12-04 15:38:39,590 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/86a99cfa-de41-4685-b76f-ec7233c01f8a
2025-12-04 15:38:39,598 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/041fe09c-4dc8-4e5e-9cab-5b7c94b5bd1e
2025-12-04 15:38:39,603 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/041fe09c-4dc8-4e5e-9cab-5b7c94b5bd1e
2025-12-04 15:38:39,608 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/51b71ef0-0ab9-4daa-8df7-0bfb122008ff
2025-12-04 15:38:39,619 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-68889381', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33557049', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9703459473431021189', 'uuid-lslong': '13218043406594350986'}, 'enable': 'true', 'created': '2025-12-04T15:38:37', 'last-modified': '2025-12-04T15:38:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.253593'}
2025-12-04 15:38:39,625 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 15:38:39,625 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68889381 passed
2025-12-04 15:38:39,626 - DEBUG - ====Verifying policy data for ctest-vn-68889381 in API_Server ======
2025-12-04 15:38:39,626 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-04 15:38:39,630 - DEBUG - Requesting: http://10.0.0.249:8082/domain/992f5916-95ac-4ad6-803f-41c7f8ef38ab
2025-12-04 15:38:39,639 - DEBUG - Requesting: http://10.0.0.249:8082/project/78f95a6e-33a1-475c-b928-1c3cee469d3f
2025-12-04 15:38:39,710 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/86a99cfa-de41-4685-b76f-ec7233c01f8a
2025-12-04 15:38:39,718 - DEBUG - ==>Verifying data for policy with id: 937e668e-5415-4c99-b481-b4ad8f11adc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-33557049', 'ctest-policy-allow-all-87264353']
2025-12-04 15:38:39,718 - INFO - VN ctest-vn-68889381 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 15:38:39,719 - DEBUG - Verifying the vn in opserver
2025-12-04 15:38:39,719 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-68889381 virtual network link through opserver 10.0.0.249
2025-12-04 15:38:39,719 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-04 15:38:39,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-68889381', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-68889381?flat'}
2025-12-04 15:38:39,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33557049:ctest-vn-68889381 is found in opserver
2025-12-04 15:38:39,735 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 15:38:39,739 - DEBUG - VRF ids for VN ctest-vn-68889381: {}
2025-12-04 15:38:39,792 - DEBUG - Services list from nova: [