2026-04-02 02:31:09,953 - INFO - Domain Default found not creating
2026-04-02 02:31:10,167 - INFO - Project ctest-TestBasicPolicy-87801819 not found, creating it
2026-04-02 02:31:10,661 - INFO - Created Project:ctest-TestBasicPolicy-87801819, ID : 1f3549c7-8d00-4972-8b8c-bb7bf01ac90b
2026-04-02 02:31:12,340 - INFO - ================================================================================
2026-04-02 02:31:12,340 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-02 02:31:12,340 - 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-02 02:31:12,613 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.252': '0'}} with
2026-04-02 02:31:12,613 - INFO - Initial checks done. Running the testcase now
2026-04-02 02:31:12,613 - INFO -
2026-04-02 02:31:13,270 - DEBUG - Response for create_network : {'network': {'id': '06139124-6880-4a1c-aac2-c1323f730dd8', 'name': 'ctest-vn-56443380', 'tenant_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'project_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-vn-56443380'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:31:13,485 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc50554b-2e6e-4872-8f44-a2c79852eefa', 'name': '', 'tenant_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'network_id': '06139124-6880-4a1c-aac2-c1323f730dd8', 'ip_version': 4, 'cidr': '138.215.215.64/26', 'allocation_pools': [{'start': '138.215.215.66', 'end': '138.215.215.126'}], 'gateway_ip': '138.215.215.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.215.215.66', 'tags': [], 'project_id': '1f3549c78d0049728b8cbb7bf01ac90b'}}
2026-04-02 02:31:13,507 - INFO - Created VN ctest-vn-56443380
2026-04-02 02:31:13,563 - DEBUG - VN ctest-vn-56443380 UUID is 06139124-6880-4a1c-aac2-c1323f730dd8
2026-04-02 02:31:13,881 - DEBUG - Response for create_network : {'network': {'id': '5be21083-2e1d-4f23-bac4-eafb88817241', 'name': 'ctest-vn-90917068', 'tenant_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'project_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-vn-90917068'], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:31:14,094 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3610993-991c-42e3-8df9-0a3fdb12dc9c', 'name': '', 'tenant_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'network_id': '5be21083-2e1d-4f23-bac4-eafb88817241', 'ip_version': 4, 'cidr': '42.94.71.64/26', 'allocation_pools': [{'start': '42.94.71.66', 'end': '42.94.71.126'}], 'gateway_ip': '42.94.71.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.94.71.66', 'tags': [], 'project_id': '1f3549c78d0049728b8cbb7bf01ac90b'}}
2026-04-02 02:31:14,113 - INFO - Created VN ctest-vn-90917068
2026-04-02 02:31:14,167 - DEBUG - VN ctest-vn-90917068 UUID is 5be21083-2e1d-4f23-bac4-eafb88817241
2026-04-02 02:31:14,290 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-56443380, 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-87801819:ctest-vn-90917068, 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-02 02:31:14,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06139124-6880-4a1c-aac2-c1323f730dd8', 'name': 'ctest-vn-56443380', 'tenant_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'project_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc50554b-2e6e-4872-8f44-a2c79852eefa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-vn-56443380'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-policy-allow-all-10343308']], 'subnet_ipam': [{'subnet_cidr': '138.215.215.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:31:14,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5be21083-2e1d-4f23-bac4-eafb88817241', 'name': 'ctest-vn-90917068', 'tenant_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'project_id': '1f3549c78d0049728b8cbb7bf01ac90b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3610993-991c-42e3-8df9-0a3fdb12dc9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-vn-90917068'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-policy-allow-all-10343308']], 'subnet_ipam': [{'subnet_cidr': '42.94.71.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-02 02:31:15,036 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-02 02:31:15,365 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-02 02:31:15,402 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc192362-2178-4c81-a1c5-22de6770d012
2026-04-02 02:31:15,416 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f3549c7-8d00-4972-8b8c-bb7bf01ac90b
2026-04-02 02:31:15,489 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06139124-6880-4a1c-aac2-c1323f730dd8
2026-04-02 02:31:15,499 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06139124-6880-4a1c-aac2-c1323f730dd8
2026-04-02 02:31:15,510 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c581dc0b-ea9c-4bbf-a270-044500dff425
2026-04-02 02:31:15,519 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c581dc0b-ea9c-4bbf-a270-044500dff425
2026-04-02 02:31:15,527 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fe516b98-6492-434d-bc97-04a5b5d1d9fb
2026-04-02 02:31:15,535 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 02:31:15,535 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06139124-6880-4a1c-aac2-c1323f730dd8
2026-04-02 02:31:15,545 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c581dc0b-ea9c-4bbf-a270-044500dff425
2026-04-02 02:31:15,566 - INFO - Verified VN network id 12 for VN 06139124-6880-4a1c-aac2-c1323f730dd8
2026-04-02 02:31:15,566 - INFO - Verifications in API Server for VN ctest-vn-56443380 passed
2026-04-02 02:31:15,566 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06139124-6880-4a1c-aac2-c1323f730dd8
2026-04-02 02:31:15,576 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c581dc0b-ea9c-4bbf-a270-044500dff425
2026-04-02 02:31:15,584 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c581dc0b-ea9c-4bbf-a270-044500dff425
2026-04-02 02:31:15,594 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fe516b98-6492-434d-bc97-04a5b5d1d9fb
2026-04-02 02:31:15,606 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-56443380', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87801819', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '437853174343158300', 'uuid-lslong': '12304609553486646744'}, 'enable': 'true', 'created': '2026-04-02T02:31:13', 'last-modified': '2026-04-02T02:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030552'}
2026-04-02 02:31:15,612 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-02 02:31:15,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56443380 passed
2026-04-02 02:31:15,613 - DEBUG - ====Verifying policy data for ctest-vn-56443380 in API_Server ======
2026-04-02 02:31:15,613 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-02 02:31:15,619 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc192362-2178-4c81-a1c5-22de6770d012
2026-04-02 02:31:15,631 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f3549c7-8d00-4972-8b8c-bb7bf01ac90b
2026-04-02 02:31:15,704 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06139124-6880-4a1c-aac2-c1323f730dd8
2026-04-02 02:31:15,713 - DEBUG - ==>Verifying data for policy with id: a9c8e37a-750f-43d9-8c46-7d467d8113bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-policy-allow-all-10343308']
2026-04-02 02:31:15,713 - INFO - VN ctest-vn-56443380 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 02:31:15,713 - DEBUG - Verifying the vn in opserver
2026-04-02 02:31:15,713 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-56443380 virtual network link through opserver 10.0.0.22
2026-04-02 02:31:15,714 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-02 02:31:16,012 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-02 02:31:16,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-56443380', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-56443380?flat'}
2026-04-02 02:31:16,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-56443380 is found in opserver
2026-04-02 02:31:16,098 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 02:31:16,104 - DEBUG - VRF ids for VN ctest-vn-56443380: {}
2026-04-02 02:31:16,104 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-02 02:31:16,110 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc192362-2178-4c81-a1c5-22de6770d012
2026-04-02 02:31:16,122 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f3549c7-8d00-4972-8b8c-bb7bf01ac90b
2026-04-02 02:31:16,195 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5be21083-2e1d-4f23-bac4-eafb88817241
2026-04-02 02:31:16,206 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5be21083-2e1d-4f23-bac4-eafb88817241
2026-04-02 02:31:16,214 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c40aacd-66cd-403d-ae17-8c6e4b81c3f3
2026-04-02 02:31:16,222 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c40aacd-66cd-403d-ae17-8c6e4b81c3f3
2026-04-02 02:31:16,228 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bbf52663-2b7c-4476-b253-f5dee4fe27f0
2026-04-02 02:31:16,235 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 02:31:16,235 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5be21083-2e1d-4f23-bac4-eafb88817241
2026-04-02 02:31:16,242 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c40aacd-66cd-403d-ae17-8c6e4b81c3f3
2026-04-02 02:31:16,258 - INFO - Verified VN network id 13 for VN 5be21083-2e1d-4f23-bac4-eafb88817241
2026-04-02 02:31:16,258 - INFO - Verifications in API Server for VN ctest-vn-90917068 passed
2026-04-02 02:31:16,258 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5be21083-2e1d-4f23-bac4-eafb88817241
2026-04-02 02:31:16,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c40aacd-66cd-403d-ae17-8c6e4b81c3f3
2026-04-02 02:31:16,274 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c40aacd-66cd-403d-ae17-8c6e4b81c3f3
2026-04-02 02:31:16,281 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bbf52663-2b7c-4476-b253-f5dee4fe27f0
2026-04-02 02:31:16,295 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-90917068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87801819', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6620872557788483363', 'uuid-lslong': '13458139952537760321'}, 'enable': 'true', 'created': '2026-04-02T02:31:13', 'last-modified': '2026-04-02T02:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464751'}
2026-04-02 02:31:16,301 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-02 02:31:16,302 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90917068 passed
2026-04-02 02:31:16,302 - DEBUG - ====Verifying policy data for ctest-vn-90917068 in API_Server ======
2026-04-02 02:31:16,302 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-02 02:31:16,310 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cc192362-2178-4c81-a1c5-22de6770d012
2026-04-02 02:31:16,324 - DEBUG - Requesting: http://10.0.0.22:8082/project/1f3549c7-8d00-4972-8b8c-bb7bf01ac90b
2026-04-02 02:31:16,401 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5be21083-2e1d-4f23-bac4-eafb88817241
2026-04-02 02:31:16,412 - DEBUG - ==>Verifying data for policy with id: a9c8e37a-750f-43d9-8c46-7d467d8113bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-87801819', 'ctest-policy-allow-all-10343308']
2026-04-02 02:31:16,412 - INFO - VN ctest-vn-90917068 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-02 02:31:16,412 - DEBUG - Verifying the vn in opserver
2026-04-02 02:31:16,412 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-90917068 virtual network link through opserver 10.0.0.22
2026-04-02 02:31:16,412 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-02 02:31:16,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-90917068', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-90917068?flat'}
2026-04-02 02:31:16,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87801819:ctest-vn-90917068 is found in opserver
2026-04-02 02:31:16,432 - DEBUG - Do not have enough data to verify VN in agent
2026-04-02 02:31:16,437 - DEBUG - VRF ids for VN ctest-vn-90917068: {}
2026-04-02 02:31:16,501 - DEBUG - Services list from nova: [