2026-04-24 15:38:30,810 - INFO - Domain Default found not creating
2026-04-24 15:38:31,363 - INFO - Project ctest-TestBasicPolicy-70497181 not found, creating it
2026-04-24 15:38:32,165 - INFO - Created Project:ctest-TestBasicPolicy-70497181, ID : fcc22cba-a3b0-4671-bf0b-8702b047b914
2026-04-24 15:38:33,813 - INFO - ================================================================================
2026-04-24 15:38:33,813 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-24 15:38:33,814 - 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-24 15:38:34,074 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-04-24 15:38:34,074 - INFO - Initial checks done. Running the testcase now
2026-04-24 15:38:34,074 - INFO -
2026-04-24 15:38:34,675 - DEBUG - Response for create_network : {'network': {'id': 'fe6114db-9a60-4c39-9892-3e2cfd303f0e', 'name': 'ctest-vn-99716136', 'tenant_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'project_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-vn-99716136'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 15:38:34,920 - DEBUG - Response for create_subnet : {'subnet': {'id': '81000ef9-f5a0-4dd9-b639-1f8b78d8b6c8', 'name': '', 'tenant_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'network_id': 'fe6114db-9a60-4c39-9892-3e2cfd303f0e', 'ip_version': 4, 'cidr': '141.55.54.64/26', 'allocation_pools': [{'start': '141.55.54.66', 'end': '141.55.54.126'}], 'gateway_ip': '141.55.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.55.54.66', 'tags': [], 'project_id': 'fcc22cbaa3b04671bf0b8702b047b914'}}
2026-04-24 15:38:34,946 - INFO - Created VN ctest-vn-99716136
2026-04-24 15:38:35,007 - DEBUG - VN ctest-vn-99716136 UUID is fe6114db-9a60-4c39-9892-3e2cfd303f0e
2026-04-24 15:38:35,333 - DEBUG - Response for create_network : {'network': {'id': 'c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b', 'name': 'ctest-vn-76738686', 'tenant_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'project_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-vn-76738686'], 'port_security_enabled': True, 'description': ''}}
2026-04-24 15:38:35,546 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad33c1f0-62f9-4999-969a-18fe9f6fbbc3', 'name': '', 'tenant_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'network_id': 'c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b', 'ip_version': 4, 'cidr': '36.166.229.128/26', 'allocation_pools': [{'start': '36.166.229.130', 'end': '36.166.229.190'}], 'gateway_ip': '36.166.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.166.229.130', 'tags': [], 'project_id': 'fcc22cbaa3b04671bf0b8702b047b914'}}
2026-04-24 15:38:35,568 - INFO - Created VN ctest-vn-76738686
2026-04-24 15:38:35,623 - DEBUG - VN ctest-vn-76738686 UUID is c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b
2026-04-24 15:38:35,744 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-99716136, 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-70497181:ctest-vn-76738686, 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-24 15:38:36,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe6114db-9a60-4c39-9892-3e2cfd303f0e', 'name': 'ctest-vn-99716136', 'tenant_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'project_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81000ef9-f5a0-4dd9-b639-1f8b78d8b6c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-vn-99716136'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-policy-allow-all-51725161']], 'subnet_ipam': [{'subnet_cidr': '141.55.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 15:38:36,307 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b', 'name': 'ctest-vn-76738686', 'tenant_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'project_id': 'fcc22cbaa3b04671bf0b8702b047b914', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad33c1f0-62f9-4999-969a-18fe9f6fbbc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-vn-76738686'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-policy-allow-all-51725161']], 'subnet_ipam': [{'subnet_cidr': '36.166.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-24 15:38:36,471 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-24 15:38:36,776 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-24 15:38:36,816 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7a3a65c3-ba3f-44f9-93ee-6b7268143718
2026-04-24 15:38:36,829 - DEBUG - Requesting: http://10.0.0.33:8082/project/fcc22cba-a3b0-4671-bf0b-8702b047b914
2026-04-24 15:38:36,919 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe6114db-9a60-4c39-9892-3e2cfd303f0e
2026-04-24 15:38:36,932 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe6114db-9a60-4c39-9892-3e2cfd303f0e
2026-04-24 15:38:36,942 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db1880b-0d8d-4c33-8732-45ad2415aeac
2026-04-24 15:38:36,950 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db1880b-0d8d-4c33-8732-45ad2415aeac
2026-04-24 15:38:36,958 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/55ff52b2-193e-40d1-a2e6-0cc43bc7586a
2026-04-24 15:38:36,966 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 15:38:36,966 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe6114db-9a60-4c39-9892-3e2cfd303f0e
2026-04-24 15:38:36,979 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db1880b-0d8d-4c33-8732-45ad2415aeac
2026-04-24 15:38:37,003 - INFO - Verified VN network id 9 for VN fe6114db-9a60-4c39-9892-3e2cfd303f0e
2026-04-24 15:38:37,004 - INFO - Verifications in API Server for VN ctest-vn-99716136 passed
2026-04-24 15:38:37,004 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe6114db-9a60-4c39-9892-3e2cfd303f0e
2026-04-24 15:38:37,016 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db1880b-0d8d-4c33-8732-45ad2415aeac
2026-04-24 15:38:37,025 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db1880b-0d8d-4c33-8732-45ad2415aeac
2026-04-24 15:38:37,035 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/55ff52b2-193e-40d1-a2e6-0cc43bc7586a
2026-04-24 15:38:37,051 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-99716136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70497181', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18329954891795024953', 'uuid-lslong': '10993918003312082702'}, 'enable': 'true', 'created': '2026-04-24T15:38:34', 'last-modified': '2026-04-24T15:38:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.023699'}
2026-04-24 15:38:37,059 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-24 15:38:37,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99716136 passed
2026-04-24 15:38:37,059 - DEBUG - ====Verifying policy data for ctest-vn-99716136 in API_Server ======
2026-04-24 15:38:37,059 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-24 15:38:37,066 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7a3a65c3-ba3f-44f9-93ee-6b7268143718
2026-04-24 15:38:37,079 - DEBUG - Requesting: http://10.0.0.33:8082/project/fcc22cba-a3b0-4671-bf0b-8702b047b914
2026-04-24 15:38:37,157 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe6114db-9a60-4c39-9892-3e2cfd303f0e
2026-04-24 15:38:37,168 - DEBUG - ==>Verifying data for policy with id: d51e5b08-86c1-45e1-a3aa-02f39a333095, fqn: ['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-policy-allow-all-51725161']
2026-04-24 15:38:37,168 - INFO - VN ctest-vn-99716136 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 15:38:37,168 - DEBUG - Verifying the vn in opserver
2026-04-24 15:38:37,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-99716136 virtual network link through opserver 10.0.0.33
2026-04-24 15:38:37,169 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-24 15:38:37,478 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-24 15:38:37,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-99716136', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-99716136?flat'}
2026-04-24 15:38:37,555 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-99716136 is found in opserver
2026-04-24 15:38:37,568 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 15:38:37,574 - DEBUG - VRF ids for VN ctest-vn-99716136: {}
2026-04-24 15:38:37,574 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-24 15:38:37,581 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7a3a65c3-ba3f-44f9-93ee-6b7268143718
2026-04-24 15:38:37,593 - DEBUG - Requesting: http://10.0.0.33:8082/project/fcc22cba-a3b0-4671-bf0b-8702b047b914
2026-04-24 15:38:37,667 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b
2026-04-24 15:38:37,680 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b
2026-04-24 15:38:37,690 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d0f9af0b-e02a-4bd0-8472-fb83cda33d42
2026-04-24 15:38:37,698 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d0f9af0b-e02a-4bd0-8472-fb83cda33d42
2026-04-24 15:38:37,707 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/22734380-f725-4d12-8520-26f62c13ee0a
2026-04-24 15:38:37,715 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 15:38:37,715 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b
2026-04-24 15:38:37,725 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d0f9af0b-e02a-4bd0-8472-fb83cda33d42
2026-04-24 15:38:37,742 - INFO - Verified VN network id 10 for VN c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b
2026-04-24 15:38:37,743 - INFO - Verifications in API Server for VN ctest-vn-76738686 passed
2026-04-24 15:38:37,743 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b
2026-04-24 15:38:37,754 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d0f9af0b-e02a-4bd0-8472-fb83cda33d42
2026-04-24 15:38:37,762 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d0f9af0b-e02a-4bd0-8472-fb83cda33d42
2026-04-24 15:38:37,771 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/22734380-f725-4d12-8520-26f62c13ee0a
2026-04-24 15:38:37,786 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-76738686', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70497181', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14314203944990034491', 'uuid-lslong': '13664646866913590619'}, 'enable': 'true', 'created': '2026-04-24T15:38:35', 'last-modified': '2026-04-24T15:38:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.508467'}
2026-04-24 15:38:37,792 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-24 15:38:37,792 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76738686 passed
2026-04-24 15:38:37,793 - DEBUG - ====Verifying policy data for ctest-vn-76738686 in API_Server ======
2026-04-24 15:38:37,793 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-24 15:38:37,801 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7a3a65c3-ba3f-44f9-93ee-6b7268143718
2026-04-24 15:38:37,813 - DEBUG - Requesting: http://10.0.0.33:8082/project/fcc22cba-a3b0-4671-bf0b-8702b047b914
2026-04-24 15:38:37,892 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c6a644a5-e7a0-4a3b-bda2-93ed5389fd5b
2026-04-24 15:38:37,903 - DEBUG - ==>Verifying data for policy with id: d51e5b08-86c1-45e1-a3aa-02f39a333095, fqn: ['default-domain', 'ctest-TestBasicPolicy-70497181', 'ctest-policy-allow-all-51725161']
2026-04-24 15:38:37,903 - INFO - VN ctest-vn-76738686 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-24 15:38:37,903 - DEBUG - Verifying the vn in opserver
2026-04-24 15:38:37,903 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-76738686 virtual network link through opserver 10.0.0.33
2026-04-24 15:38:37,903 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-24 15:38:37,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-76738686', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-76738686?flat'}
2026-04-24 15:38:37,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70497181:ctest-vn-76738686 is found in opserver
2026-04-24 15:38:37,926 - DEBUG - Do not have enough data to verify VN in agent
2026-04-24 15:38:37,931 - DEBUG - VRF ids for VN ctest-vn-76738686: {}
2026-04-24 15:38:38,009 - DEBUG - Services list from nova: [