2026-07-18 05:51:29,804 - INFO - Domain Default found not creating
2026-07-18 05:51:29,982 - INFO - Project ctest-TestBasicPolicy-10726457 not found, creating it
2026-07-18 05:51:30,469 - INFO - Created Project:ctest-TestBasicPolicy-10726457, ID : 38f4a8c1-49f2-4cca-849f-3942456f7add
2026-07-18 05:51:32,222 - INFO - ================================================================================
2026-07-18 05:51:32,222 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-18 05:51:32,222 - 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-07-18 05:51:32,494 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-18 05:51:32,494 - INFO - Initial checks done. Running the testcase now
2026-07-18 05:51:32,494 - INFO -
2026-07-18 05:51:33,149 - DEBUG - Response for create_network : {'network': {'id': 'e104a385-bd51-4736-934b-1901b47493e0', 'name': 'ctest-vn-87823824', 'tenant_id': '38f4a8c149f24cca849f3942456f7add', 'project_id': '38f4a8c149f24cca849f3942456f7add', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-vn-87823824'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 05:51:33,357 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2cf38bb-bfb7-41d9-808a-d0960d4ae94c', 'name': '', 'tenant_id': '38f4a8c149f24cca849f3942456f7add', 'network_id': 'e104a385-bd51-4736-934b-1901b47493e0', 'ip_version': 4, 'cidr': '16.230.77.0/26', 'allocation_pools': [{'start': '16.230.77.2', 'end': '16.230.77.62'}], 'gateway_ip': '16.230.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.230.77.2', 'tags': [], 'project_id': '38f4a8c149f24cca849f3942456f7add'}}
2026-07-18 05:51:33,375 - INFO - Created VN ctest-vn-87823824
2026-07-18 05:51:33,425 - DEBUG - VN ctest-vn-87823824 UUID is e104a385-bd51-4736-934b-1901b47493e0
2026-07-18 05:51:33,776 - DEBUG - Response for create_network : {'network': {'id': 'fa17cba3-f353-44fe-b81f-ee92bf0e6a25', 'name': 'ctest-vn-21286178', 'tenant_id': '38f4a8c149f24cca849f3942456f7add', 'project_id': '38f4a8c149f24cca849f3942456f7add', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-vn-21286178'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 05:51:34,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '29a92d8c-fc65-456e-b811-85c65d056939', 'name': '', 'tenant_id': '38f4a8c149f24cca849f3942456f7add', 'network_id': 'fa17cba3-f353-44fe-b81f-ee92bf0e6a25', 'ip_version': 4, 'cidr': '125.251.23.192/26', 'allocation_pools': [{'start': '125.251.23.194', 'end': '125.251.23.254'}], 'gateway_ip': '125.251.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.251.23.194', 'tags': [], 'project_id': '38f4a8c149f24cca849f3942456f7add'}}
2026-07-18 05:51:34,026 - INFO - Created VN ctest-vn-21286178
2026-07-18 05:51:34,077 - DEBUG - VN ctest-vn-21286178 UUID is fa17cba3-f353-44fe-b81f-ee92bf0e6a25
2026-07-18 05:51:34,207 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-87823824, 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-10726457:ctest-vn-21286178, 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-07-18 05:51:34,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e104a385-bd51-4736-934b-1901b47493e0', 'name': 'ctest-vn-87823824', 'tenant_id': '38f4a8c149f24cca849f3942456f7add', 'project_id': '38f4a8c149f24cca849f3942456f7add', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2cf38bb-bfb7-41d9-808a-d0960d4ae94c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-vn-87823824'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-policy-allow-all-78152415']], 'subnet_ipam': [{'subnet_cidr': '16.230.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 05:51:34,750 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa17cba3-f353-44fe-b81f-ee92bf0e6a25', 'name': 'ctest-vn-21286178', 'tenant_id': '38f4a8c149f24cca849f3942456f7add', 'project_id': '38f4a8c149f24cca849f3942456f7add', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29a92d8c-fc65-456e-b811-85c65d056939'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-vn-21286178'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-policy-allow-all-78152415']], 'subnet_ipam': [{'subnet_cidr': '125.251.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 05:51:34,921 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 05:51:35,291 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 05:51:35,322 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48
2026-07-18 05:51:35,336 - DEBUG - Requesting: http://10.0.0.50:8082/project/38f4a8c1-49f2-4cca-849f-3942456f7add
2026-07-18 05:51:35,419 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e104a385-bd51-4736-934b-1901b47493e0
2026-07-18 05:51:35,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e104a385-bd51-4736-934b-1901b47493e0
2026-07-18 05:51:35,439 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/561f2b8c-5b1c-460d-b212-312b41a0a246
2026-07-18 05:51:35,447 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/561f2b8c-5b1c-460d-b212-312b41a0a246
2026-07-18 05:51:35,453 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eba80382-f2ec-4316-9b89-7a3bca5ec20e
2026-07-18 05:51:35,459 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 05:51:35,459 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e104a385-bd51-4736-934b-1901b47493e0
2026-07-18 05:51:35,467 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/561f2b8c-5b1c-460d-b212-312b41a0a246
2026-07-18 05:51:35,481 - INFO - Verified VN network id 11 for VN e104a385-bd51-4736-934b-1901b47493e0
2026-07-18 05:51:35,481 - INFO - Verifications in API Server for VN ctest-vn-87823824 passed
2026-07-18 05:51:35,481 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e104a385-bd51-4736-934b-1901b47493e0
2026-07-18 05:51:35,491 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/561f2b8c-5b1c-460d-b212-312b41a0a246
2026-07-18 05:51:35,498 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/561f2b8c-5b1c-460d-b212-312b41a0a246
2026-07-18 05:51:35,507 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eba80382-f2ec-4316-9b89-7a3bca5ec20e
2026-07-18 05:51:35,521 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-87823824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10726457', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16214264353242826550', 'uuid-lslong': '10613604441941906400'}, 'enable': 'true', 'created': '2026-07-18T05:51:33', 'last-modified': '2026-07-18T05:51:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024528'}
2026-07-18 05:51:35,529 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 05:51:35,529 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87823824 passed
2026-07-18 05:51:35,529 - DEBUG - ====Verifying policy data for ctest-vn-87823824 in API_Server ======
2026-07-18 05:51:35,529 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 05:51:35,535 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48
2026-07-18 05:51:35,546 - DEBUG - Requesting: http://10.0.0.50:8082/project/38f4a8c1-49f2-4cca-849f-3942456f7add
2026-07-18 05:51:35,621 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e104a385-bd51-4736-934b-1901b47493e0
2026-07-18 05:51:35,631 - DEBUG - ==>Verifying data for policy with id: ed088ad7-f61a-4a7e-8ab0-3a4ce92b983b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-policy-allow-all-78152415']
2026-07-18 05:51:35,631 - INFO - VN ctest-vn-87823824 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 05:51:35,631 - DEBUG - Verifying the vn in opserver
2026-07-18 05:51:35,631 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-87823824 virtual network link through opserver 10.0.0.50
2026-07-18 05:51:35,631 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 05:51:36,007 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 05:51:36,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-87823824', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-87823824?flat'}
2026-07-18 05:51:36,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-87823824 is found in opserver
2026-07-18 05:51:36,077 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 05:51:36,082 - DEBUG - VRF ids for VN ctest-vn-87823824: {}
2026-07-18 05:51:36,082 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 05:51:36,088 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48
2026-07-18 05:51:36,099 - DEBUG - Requesting: http://10.0.0.50:8082/project/38f4a8c1-49f2-4cca-849f-3942456f7add
2026-07-18 05:51:36,182 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa17cba3-f353-44fe-b81f-ee92bf0e6a25
2026-07-18 05:51:36,197 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa17cba3-f353-44fe-b81f-ee92bf0e6a25
2026-07-18 05:51:36,209 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c7797e32-df44-4cdb-8f09-a19d264e2e9a
2026-07-18 05:51:36,218 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c7797e32-df44-4cdb-8f09-a19d264e2e9a
2026-07-18 05:51:36,227 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/299ddb9a-e202-4c14-9322-79adb2829045
2026-07-18 05:51:36,234 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 05:51:36,234 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa17cba3-f353-44fe-b81f-ee92bf0e6a25
2026-07-18 05:51:36,243 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c7797e32-df44-4cdb-8f09-a19d264e2e9a
2026-07-18 05:51:36,259 - INFO - Verified VN network id 12 for VN fa17cba3-f353-44fe-b81f-ee92bf0e6a25
2026-07-18 05:51:36,259 - INFO - Verifications in API Server for VN ctest-vn-21286178 passed
2026-07-18 05:51:36,259 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa17cba3-f353-44fe-b81f-ee92bf0e6a25
2026-07-18 05:51:36,268 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c7797e32-df44-4cdb-8f09-a19d264e2e9a
2026-07-18 05:51:36,276 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c7797e32-df44-4cdb-8f09-a19d264e2e9a
2026-07-18 05:51:36,284 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/299ddb9a-e202-4c14-9322-79adb2829045
2026-07-18 05:51:36,298 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-21286178', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10726457', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18021096338968757502', 'uuid-lslong': '13267585341294799397'}, 'enable': 'true', 'created': '2026-07-18T05:51:33', 'last-modified': '2026-07-18T05:51:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566954'}
2026-07-18 05:51:36,307 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 05:51:36,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21286178 passed
2026-07-18 05:51:36,307 - DEBUG - ====Verifying policy data for ctest-vn-21286178 in API_Server ======
2026-07-18 05:51:36,308 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 05:51:36,313 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48
2026-07-18 05:51:36,325 - DEBUG - Requesting: http://10.0.0.50:8082/project/38f4a8c1-49f2-4cca-849f-3942456f7add
2026-07-18 05:51:36,402 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa17cba3-f353-44fe-b81f-ee92bf0e6a25
2026-07-18 05:51:36,414 - DEBUG - ==>Verifying data for policy with id: ed088ad7-f61a-4a7e-8ab0-3a4ce92b983b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10726457', 'ctest-policy-allow-all-78152415']
2026-07-18 05:51:36,414 - INFO - VN ctest-vn-21286178 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 05:51:36,414 - DEBUG - Verifying the vn in opserver
2026-07-18 05:51:36,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-21286178 virtual network link through opserver 10.0.0.50
2026-07-18 05:51:36,414 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 05:51:36,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-21286178', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-21286178?flat'}
2026-07-18 05:51:36,425 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10726457:ctest-vn-21286178 is found in opserver
2026-07-18 05:51:36,437 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 05:51:36,443 - DEBUG - VRF ids for VN ctest-vn-21286178: {}
2026-07-18 05:51:36,508 - DEBUG - Services list from nova: [