2026-02-09 13:03:35,993 - INFO - Domain Default found not creating
2026-02-09 13:03:36,181 - INFO - Project ctest-TestBasicPolicy-65317141 not found, creating it
2026-02-09 13:03:36,670 - INFO - Created Project:ctest-TestBasicPolicy-65317141, ID : 04d0be50-a50a-49f0-b6ec-26091be99718
2026-02-09 13:03:38,240 - INFO - ================================================================================
2026-02-09 13:03:38,240 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 13:03:38,240 - 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-02-09 13:03:38,496 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2026-02-09 13:03:38,496 - INFO - Initial checks done. Running the testcase now
2026-02-09 13:03:38,496 - INFO -
2026-02-09 13:03:39,054 - DEBUG - Response for create_network : {'network': {'id': '0b8d354e-8d4b-4698-a64e-3290916f3de7', 'name': 'ctest-vn-76131368', 'tenant_id': '04d0be50a50a49f0b6ec26091be99718', 'project_id': '04d0be50a50a49f0b6ec26091be99718', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-vn-76131368'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:03:39,285 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5edad69-2c56-4ac6-a3a5-b4a9c760a0a8', 'name': '', 'tenant_id': '04d0be50a50a49f0b6ec26091be99718', 'network_id': '0b8d354e-8d4b-4698-a64e-3290916f3de7', 'ip_version': 4, 'cidr': '155.189.222.0/26', 'allocation_pools': [{'start': '155.189.222.2', 'end': '155.189.222.62'}], 'gateway_ip': '155.189.222.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.189.222.2', 'tags': [], 'project_id': '04d0be50a50a49f0b6ec26091be99718'}}
2026-02-09 13:03:39,304 - INFO - Created VN ctest-vn-76131368
2026-02-09 13:03:39,358 - DEBUG - VN ctest-vn-76131368 UUID is 0b8d354e-8d4b-4698-a64e-3290916f3de7
2026-02-09 13:03:39,675 - DEBUG - Response for create_network : {'network': {'id': 'f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66', 'name': 'ctest-vn-73471580', 'tenant_id': '04d0be50a50a49f0b6ec26091be99718', 'project_id': '04d0be50a50a49f0b6ec26091be99718', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-vn-73471580'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:03:39,883 - DEBUG - Response for create_subnet : {'subnet': {'id': '7598f258-0cba-4d86-b6c8-994753e8c6a5', 'name': '', 'tenant_id': '04d0be50a50a49f0b6ec26091be99718', 'network_id': 'f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66', 'ip_version': 4, 'cidr': '156.6.121.64/26', 'allocation_pools': [{'start': '156.6.121.66', 'end': '156.6.121.126'}], 'gateway_ip': '156.6.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.6.121.66', 'tags': [], 'project_id': '04d0be50a50a49f0b6ec26091be99718'}}
2026-02-09 13:03:39,901 - INFO - Created VN ctest-vn-73471580
2026-02-09 13:03:39,954 - DEBUG - VN ctest-vn-73471580 UUID is f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66
2026-02-09 13:03:40,069 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-76131368, 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-65317141:ctest-vn-73471580, 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-02-09 13:03:40,381 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b8d354e-8d4b-4698-a64e-3290916f3de7', 'name': 'ctest-vn-76131368', 'tenant_id': '04d0be50a50a49f0b6ec26091be99718', 'project_id': '04d0be50a50a49f0b6ec26091be99718', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5edad69-2c56-4ac6-a3a5-b4a9c760a0a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-vn-76131368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-policy-allow-all-07349415']], 'subnet_ipam': [{'subnet_cidr': '155.189.222.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:03:40,612 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66', 'name': 'ctest-vn-73471580', 'tenant_id': '04d0be50a50a49f0b6ec26091be99718', 'project_id': '04d0be50a50a49f0b6ec26091be99718', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7598f258-0cba-4d86-b6c8-994753e8c6a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-vn-73471580'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-policy-allow-all-07349415']], 'subnet_ipam': [{'subnet_cidr': '156.6.121.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:03:40,774 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-09 13:03:41,071 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-09 13:03:41,105 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0
2026-02-09 13:03:41,118 - DEBUG - Requesting: http://10.0.0.141:8082/project/04d0be50-a50a-49f0-b6ec-26091be99718
2026-02-09 13:03:41,191 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0b8d354e-8d4b-4698-a64e-3290916f3de7
2026-02-09 13:03:41,201 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0b8d354e-8d4b-4698-a64e-3290916f3de7
2026-02-09 13:03:41,211 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fec6a644-62d5-4e22-889b-ae1b94b1a9a8
2026-02-09 13:03:41,219 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fec6a644-62d5-4e22-889b-ae1b94b1a9a8
2026-02-09 13:03:41,227 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d4d523d1-6d30-426d-b093-f70d29778732
2026-02-09 13:03:41,234 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 13:03:41,234 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0b8d354e-8d4b-4698-a64e-3290916f3de7
2026-02-09 13:03:41,244 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fec6a644-62d5-4e22-889b-ae1b94b1a9a8
2026-02-09 13:03:41,259 - INFO - Verified VN network id 11 for VN 0b8d354e-8d4b-4698-a64e-3290916f3de7
2026-02-09 13:03:41,259 - INFO - Verifications in API Server for VN ctest-vn-76131368 passed
2026-02-09 13:03:41,259 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0b8d354e-8d4b-4698-a64e-3290916f3de7
2026-02-09 13:03:41,269 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fec6a644-62d5-4e22-889b-ae1b94b1a9a8
2026-02-09 13:03:41,276 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fec6a644-62d5-4e22-889b-ae1b94b1a9a8
2026-02-09 13:03:41,283 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d4d523d1-6d30-426d-b093-f70d29778732
2026-02-09 13:03:41,296 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-76131368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65317141', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '832380117627651736', 'uuid-lslong': '11983571254976134631'}, 'enable': 'true', 'created': '2026-02-09T13:03:39', 'last-modified': '2026-02-09T13:03:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948341'}
2026-02-09 13:03:41,302 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 13:03:41,302 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76131368 passed
2026-02-09 13:03:41,303 - DEBUG - ====Verifying policy data for ctest-vn-76131368 in API_Server ======
2026-02-09 13:03:41,303 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-09 13:03:41,308 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0
2026-02-09 13:03:41,319 - DEBUG - Requesting: http://10.0.0.141:8082/project/04d0be50-a50a-49f0-b6ec-26091be99718
2026-02-09 13:03:41,392 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0b8d354e-8d4b-4698-a64e-3290916f3de7
2026-02-09 13:03:41,402 - DEBUG - ==>Verifying data for policy with id: e98bfd3a-aef9-4344-845c-cb29f33e5436, fqn: ['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-policy-allow-all-07349415']
2026-02-09 13:03:41,402 - INFO - VN ctest-vn-76131368 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 13:03:41,402 - DEBUG - Verifying the vn in opserver
2026-02-09 13:03:41,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-76131368 virtual network link through opserver 10.0.0.141
2026-02-09 13:03:41,402 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-09 13:03:41,699 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-09 13:03:41,767 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-76131368', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-76131368?flat'}
2026-02-09 13:03:41,767 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-76131368 is found in opserver
2026-02-09 13:03:41,777 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 13:03:41,782 - DEBUG - VRF ids for VN ctest-vn-76131368: {}
2026-02-09 13:03:41,782 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-09 13:03:41,787 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0
2026-02-09 13:03:41,800 - DEBUG - Requesting: http://10.0.0.141:8082/project/04d0be50-a50a-49f0-b6ec-26091be99718
2026-02-09 13:03:41,867 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66
2026-02-09 13:03:41,878 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66
2026-02-09 13:03:41,886 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f67e96c-ee7b-4612-b649-4e82cab3cd80
2026-02-09 13:03:41,893 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f67e96c-ee7b-4612-b649-4e82cab3cd80
2026-02-09 13:03:41,899 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9179defb-31a4-44fe-ab6c-8a0ec03ddc74
2026-02-09 13:03:41,905 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 13:03:41,905 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66
2026-02-09 13:03:41,913 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f67e96c-ee7b-4612-b649-4e82cab3cd80
2026-02-09 13:03:41,926 - INFO - Verified VN network id 12 for VN f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66
2026-02-09 13:03:41,926 - INFO - Verifications in API Server for VN ctest-vn-73471580 passed
2026-02-09 13:03:41,926 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66
2026-02-09 13:03:41,934 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f67e96c-ee7b-4612-b649-4e82cab3cd80
2026-02-09 13:03:41,941 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f67e96c-ee7b-4612-b649-4e82cab3cd80
2026-02-09 13:03:41,948 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9179defb-31a4-44fe-ab6c-8a0ec03ddc74
2026-02-09 13:03:41,961 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-73471580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65317141', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17992397615972041650', 'uuid-lslong': '11896253380417727590'}, 'enable': 'true', 'created': '2026-02-09T13:03:39', 'last-modified': '2026-02-09T13:03:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373700'}
2026-02-09 13:03:41,968 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 13:03:41,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73471580 passed
2026-02-09 13:03:41,968 - DEBUG - ====Verifying policy data for ctest-vn-73471580 in API_Server ======
2026-02-09 13:03:41,968 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-02-09 13:03:41,974 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0
2026-02-09 13:03:41,983 - DEBUG - Requesting: http://10.0.0.141:8082/project/04d0be50-a50a-49f0-b6ec-26091be99718
2026-02-09 13:03:42,059 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f9b1d64d-cd99-43b2-a517-fb6ba1d6ac66
2026-02-09 13:03:42,071 - DEBUG - ==>Verifying data for policy with id: e98bfd3a-aef9-4344-845c-cb29f33e5436, fqn: ['default-domain', 'ctest-TestBasicPolicy-65317141', 'ctest-policy-allow-all-07349415']
2026-02-09 13:03:42,071 - INFO - VN ctest-vn-73471580 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 13:03:42,071 - DEBUG - Verifying the vn in opserver
2026-02-09 13:03:42,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-73471580 virtual network link through opserver 10.0.0.141
2026-02-09 13:03:42,071 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-02-09 13:03:42,083 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-73471580', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-73471580?flat'}
2026-02-09 13:03:42,083 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65317141:ctest-vn-73471580 is found in opserver
2026-02-09 13:03:42,094 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 13:03:42,099 - DEBUG - VRF ids for VN ctest-vn-73471580: {}
2026-02-09 13:03:42,161 - DEBUG - Services list from nova: [