2026-01-29 13:19:10,439 - INFO - Domain Default found not creating
2026-01-29 13:19:10,637 - INFO - Project ctest-TestBasicPolicy-49646561 not found, creating it
2026-01-29 13:19:11,150 - INFO - Created Project:ctest-TestBasicPolicy-49646561, ID : 83d78a02-416a-48ae-9be1-0ddc7f81fe21
2026-01-29 13:19:12,714 - INFO - ================================================================================
2026-01-29 13:19:12,715 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 13:19:12,715 - 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-01-29 13:19:12,975 - DEBUG - Nothing to compare xmpp stats {'10.0.0.156': {'10.20.0.14': '0'}} with
2026-01-29 13:19:12,975 - INFO - Initial checks done. Running the testcase now
2026-01-29 13:19:12,975 - INFO -
2026-01-29 13:19:13,541 - DEBUG - Response for create_network : {'network': {'id': '3796a6c1-dbd2-453c-9aa3-5ff98592733d', 'name': 'ctest-vn-58104854', 'tenant_id': '83d78a02416a48ae9be10ddc7f81fe21', 'project_id': '83d78a02416a48ae9be10ddc7f81fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-vn-58104854'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:19:13,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '36a7fc80-f7ae-45b6-bc93-6d46d6208ec5', 'name': '', 'tenant_id': '83d78a02416a48ae9be10ddc7f81fe21', 'network_id': '3796a6c1-dbd2-453c-9aa3-5ff98592733d', 'ip_version': 4, 'cidr': '2.71.112.128/26', 'allocation_pools': [{'start': '2.71.112.130', 'end': '2.71.112.190'}], 'gateway_ip': '2.71.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.71.112.130', 'tags': [], 'project_id': '83d78a02416a48ae9be10ddc7f81fe21'}}
2026-01-29 13:19:13,724 - INFO - Created VN ctest-vn-58104854
2026-01-29 13:19:13,778 - DEBUG - VN ctest-vn-58104854 UUID is 3796a6c1-dbd2-453c-9aa3-5ff98592733d
2026-01-29 13:19:14,112 - DEBUG - Response for create_network : {'network': {'id': '17d530b4-53bd-4c80-9011-99438d8a229c', 'name': 'ctest-vn-34464725', 'tenant_id': '83d78a02416a48ae9be10ddc7f81fe21', 'project_id': '83d78a02416a48ae9be10ddc7f81fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-vn-34464725'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:19:14,333 - DEBUG - Response for create_subnet : {'subnet': {'id': '23b3f846-3e6c-4e41-9e6e-0982e2de722d', 'name': '', 'tenant_id': '83d78a02416a48ae9be10ddc7f81fe21', 'network_id': '17d530b4-53bd-4c80-9011-99438d8a229c', 'ip_version': 4, 'cidr': '208.243.165.64/26', 'allocation_pools': [{'start': '208.243.165.66', 'end': '208.243.165.126'}], 'gateway_ip': '208.243.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.243.165.66', 'tags': [], 'project_id': '83d78a02416a48ae9be10ddc7f81fe21'}}
2026-01-29 13:19:14,354 - INFO - Created VN ctest-vn-34464725
2026-01-29 13:19:14,406 - DEBUG - VN ctest-vn-34464725 UUID is 17d530b4-53bd-4c80-9011-99438d8a229c
2026-01-29 13:19:14,529 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-58104854, 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-49646561:ctest-vn-34464725, 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-01-29 13:19:14,831 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3796a6c1-dbd2-453c-9aa3-5ff98592733d', 'name': 'ctest-vn-58104854', 'tenant_id': '83d78a02416a48ae9be10ddc7f81fe21', 'project_id': '83d78a02416a48ae9be10ddc7f81fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36a7fc80-f7ae-45b6-bc93-6d46d6208ec5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-vn-58104854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-policy-allow-all-40012811']], 'subnet_ipam': [{'subnet_cidr': '2.71.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:19:15,065 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17d530b4-53bd-4c80-9011-99438d8a229c', 'name': 'ctest-vn-34464725', 'tenant_id': '83d78a02416a48ae9be10ddc7f81fe21', 'project_id': '83d78a02416a48ae9be10ddc7f81fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23b3f846-3e6c-4e41-9e6e-0982e2de722d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-vn-34464725'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-policy-allow-all-40012811']], 'subnet_ipam': [{'subnet_cidr': '208.243.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:19:15,258 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-29 13:19:15,562 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-29 13:19:15,594 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82
2026-01-29 13:19:15,606 - DEBUG - Requesting: http://10.0.0.156:8082/project/83d78a02-416a-48ae-9be1-0ddc7f81fe21
2026-01-29 13:19:15,682 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3796a6c1-dbd2-453c-9aa3-5ff98592733d
2026-01-29 13:19:15,694 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3796a6c1-dbd2-453c-9aa3-5ff98592733d
2026-01-29 13:19:15,704 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/0e241300-20ee-4982-8598-f9393aa78a2b
2026-01-29 13:19:15,711 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/0e241300-20ee-4982-8598-f9393aa78a2b
2026-01-29 13:19:15,717 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/581095c7-7532-4178-8a04-b069e02713fe
2026-01-29 13:19:15,725 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 13:19:15,725 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3796a6c1-dbd2-453c-9aa3-5ff98592733d
2026-01-29 13:19:15,734 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/0e241300-20ee-4982-8598-f9393aa78a2b
2026-01-29 13:19:15,748 - INFO - Verified VN network id 11 for VN 3796a6c1-dbd2-453c-9aa3-5ff98592733d
2026-01-29 13:19:15,749 - INFO - Verifications in API Server for VN ctest-vn-58104854 passed
2026-01-29 13:19:15,749 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3796a6c1-dbd2-453c-9aa3-5ff98592733d
2026-01-29 13:19:15,757 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/0e241300-20ee-4982-8598-f9393aa78a2b
2026-01-29 13:19:15,765 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/0e241300-20ee-4982-8598-f9393aa78a2b
2026-01-29 13:19:15,772 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/581095c7-7532-4178-8a04-b069e02713fe
2026-01-29 13:19:15,784 - DEBUG - Control-node 10.0.0.156 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-58104854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49646561', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4005572270139524412', 'uuid-lslong': '11142855428337201981'}, 'enable': 'true', 'created': '2026-01-29T13:19:13', 'last-modified': '2026-01-29T13:19:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969450'}
2026-01-29 13:19:15,791 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 13:19:15,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58104854 passed
2026-01-29 13:19:15,791 - DEBUG - ====Verifying policy data for ctest-vn-58104854 in API_Server ======
2026-01-29 13:19:15,791 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-29 13:19:15,797 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82
2026-01-29 13:19:15,809 - DEBUG - Requesting: http://10.0.0.156:8082/project/83d78a02-416a-48ae-9be1-0ddc7f81fe21
2026-01-29 13:19:15,883 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3796a6c1-dbd2-453c-9aa3-5ff98592733d
2026-01-29 13:19:15,893 - DEBUG - ==>Verifying data for policy with id: 29a11495-28df-43c0-8be5-a8fa0ca7dc46, fqn: ['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-policy-allow-all-40012811']
2026-01-29 13:19:15,893 - INFO - VN ctest-vn-58104854 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 13:19:15,893 - DEBUG - Verifying the vn in opserver
2026-01-29 13:19:15,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-58104854 virtual network link through opserver 10.0.0.156
2026-01-29 13:19:15,893 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks
2026-01-29 13:19:16,191 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks
2026-01-29 13:19:16,296 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-58104854', 'href': 'http://10.0.0.156:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-58104854?flat'}
2026-01-29 13:19:16,296 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-58104854 is found in opserver
2026-01-29 13:19:16,308 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 13:19:16,314 - DEBUG - VRF ids for VN ctest-vn-58104854: {}
2026-01-29 13:19:16,314 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-29 13:19:16,321 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82
2026-01-29 13:19:16,332 - DEBUG - Requesting: http://10.0.0.156:8082/project/83d78a02-416a-48ae-9be1-0ddc7f81fe21
2026-01-29 13:19:16,401 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/17d530b4-53bd-4c80-9011-99438d8a229c
2026-01-29 13:19:16,413 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/17d530b4-53bd-4c80-9011-99438d8a229c
2026-01-29 13:19:16,423 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/eed96030-1d2f-469b-8a55-3e0bbaa5dd1c
2026-01-29 13:19:16,431 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/eed96030-1d2f-469b-8a55-3e0bbaa5dd1c
2026-01-29 13:19:16,439 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/61955f16-24c2-49d0-a901-e3d7fa08687b
2026-01-29 13:19:16,447 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 13:19:16,447 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/17d530b4-53bd-4c80-9011-99438d8a229c
2026-01-29 13:19:16,458 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/eed96030-1d2f-469b-8a55-3e0bbaa5dd1c
2026-01-29 13:19:16,475 - INFO - Verified VN network id 12 for VN 17d530b4-53bd-4c80-9011-99438d8a229c
2026-01-29 13:19:16,475 - INFO - Verifications in API Server for VN ctest-vn-34464725 passed
2026-01-29 13:19:16,475 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/17d530b4-53bd-4c80-9011-99438d8a229c
2026-01-29 13:19:16,487 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/eed96030-1d2f-469b-8a55-3e0bbaa5dd1c
2026-01-29 13:19:16,496 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/eed96030-1d2f-469b-8a55-3e0bbaa5dd1c
2026-01-29 13:19:16,506 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/61955f16-24c2-49d0-a901-e3d7fa08687b
2026-01-29 13:19:16,522 - DEBUG - Control-node 10.0.0.156 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-34464725', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49646561', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1717332383968873600', 'uuid-lslong': '10381247131482202780'}, 'enable': 'true', 'created': '2026-01-29T13:19:14', 'last-modified': '2026-01-29T13:19:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478898'}
2026-01-29 13:19:16,528 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 13:19:16,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34464725 passed
2026-01-29 13:19:16,529 - DEBUG - ====Verifying policy data for ctest-vn-34464725 in API_Server ======
2026-01-29 13:19:16,529 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-29 13:19:16,535 - DEBUG - Requesting: http://10.0.0.156:8082/domain/d6ffb29e-0d7e-407c-8d40-b1c6ed05eb82
2026-01-29 13:19:16,547 - DEBUG - Requesting: http://10.0.0.156:8082/project/83d78a02-416a-48ae-9be1-0ddc7f81fe21
2026-01-29 13:19:16,627 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/17d530b4-53bd-4c80-9011-99438d8a229c
2026-01-29 13:19:16,638 - DEBUG - ==>Verifying data for policy with id: 29a11495-28df-43c0-8be5-a8fa0ca7dc46, fqn: ['default-domain', 'ctest-TestBasicPolicy-49646561', 'ctest-policy-allow-all-40012811']
2026-01-29 13:19:16,638 - INFO - VN ctest-vn-34464725 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 13:19:16,638 - DEBUG - Verifying the vn in opserver
2026-01-29 13:19:16,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-34464725 virtual network link through opserver 10.0.0.156
2026-01-29 13:19:16,638 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks
2026-01-29 13:19:16,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-34464725', 'href': 'http://10.0.0.156:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-34464725?flat'}
2026-01-29 13:19:16,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49646561:ctest-vn-34464725 is found in opserver
2026-01-29 13:19:16,662 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 13:19:16,668 - DEBUG - VRF ids for VN ctest-vn-34464725: {}
2026-01-29 13:19:16,733 - DEBUG - Services list from nova: [