2026-11-23 02:19:55,099 - INFO - Domain Default found not creating
2026-11-23 02:19:55,275 - INFO - Project ctest-TestBasicPolicy-70441057 not found, creating it
2026-11-23 02:19:55,741 - INFO - Created Project:ctest-TestBasicPolicy-70441057, ID : b74e3dfc-6be8-4864-a5b0-2aa9493e0534
2026-11-23 02:19:57,468 - INFO - ================================================================================
2026-11-23 02:19:57,469 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-23 02:19:57,469 - 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-11-23 02:19:57,738 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with
2026-11-23 02:19:57,738 - INFO - Initial checks done. Running the testcase now
2026-11-23 02:19:57,738 - INFO -
2026-11-23 02:19:58,363 - DEBUG - Response for create_network : {'network': {'id': '7c9a4bbf-df91-4e97-97d0-220ce3f8990b', 'name': 'ctest-vn-04241233', 'tenant_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'project_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-vn-04241233'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-11-23 02:19:58,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '11019948-76bb-4f7a-8e45-dc88047b8185', 'name': '', 'tenant_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'network_id': '7c9a4bbf-df91-4e97-97d0-220ce3f8990b', 'ip_version': 4, 'cidr': '41.66.124.64/26', 'allocation_pools': [{'start': '41.66.124.66', 'end': '41.66.124.126'}], 'gateway_ip': '41.66.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-11-23T02:19:58.516701', 'updated_at': '2026-11-23T02:19:58.516701', 'dns_server_address': '41.66.124.66', 'tags': [], 'project_id': 'b74e3dfc6be84864a5b02aa9493e0534'}}
2026-11-23 02:19:58,595 - INFO - Created VN ctest-vn-04241233
2026-11-23 02:19:58,645 - DEBUG - VN ctest-vn-04241233 UUID is 7c9a4bbf-df91-4e97-97d0-220ce3f8990b
2026-11-23 02:19:58,994 - DEBUG - Response for create_network : {'network': {'id': '01220877-4309-4dcf-a152-806d6e190679', 'name': 'ctest-vn-22632444', 'tenant_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'project_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-vn-22632444'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-11-23 02:19:59,157 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0eaf943-9e65-437a-8b80-a0fc302f2a6f', 'name': '', 'tenant_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'network_id': '01220877-4309-4dcf-a152-806d6e190679', 'ip_version': 4, 'cidr': '32.180.108.0/26', 'allocation_pools': [{'start': '32.180.108.2', 'end': '32.180.108.62'}], 'gateway_ip': '32.180.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-11-23T02:19:59.097155', 'updated_at': '2026-11-23T02:19:59.097155', 'dns_server_address': '32.180.108.2', 'tags': [], 'project_id': 'b74e3dfc6be84864a5b02aa9493e0534'}}
2026-11-23 02:19:59,174 - INFO - Created VN ctest-vn-22632444
2026-11-23 02:19:59,225 - DEBUG - VN ctest-vn-22632444 UUID is 01220877-4309-4dcf-a152-806d6e190679
2026-11-23 02:19:59,369 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-04241233, 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-70441057:ctest-vn-22632444, 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-11-23 02:19:59,668 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c9a4bbf-df91-4e97-97d0-220ce3f8990b', 'name': 'ctest-vn-04241233', 'tenant_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'project_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['11019948-76bb-4f7a-8e45-dc88047b8185'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-vn-04241233'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-policy-allow-all-78759254']], 'subnet_ipam': [{'subnet_cidr': '41.66.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-11-23T02:19:58.326871', 'updated_at': '2026-11-23T02:19:58.530009'}}
2026-11-23 02:19:59,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01220877-4309-4dcf-a152-806d6e190679', 'name': 'ctest-vn-22632444', 'tenant_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'project_id': 'b74e3dfc6be84864a5b02aa9493e0534', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f0eaf943-9e65-437a-8b80-a0fc302f2a6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-vn-22632444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-policy-allow-all-78759254']], 'subnet_ipam': [{'subnet_cidr': '32.180.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-11-23T02:19:58.961954', 'updated_at': '2026-11-23T02:19:59.110145'}}
2026-11-23 02:20:00,061 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-23 02:20:00,428 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-23 02:20:00,456 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5
2026-11-23 02:20:00,468 - DEBUG - Requesting: http://10.0.0.177:8082/project/b74e3dfc-6be8-4864-a5b0-2aa9493e0534
2026-11-23 02:20:00,547 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7c9a4bbf-df91-4e97-97d0-220ce3f8990b
2026-11-23 02:20:00,558 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7c9a4bbf-df91-4e97-97d0-220ce3f8990b
2026-11-23 02:20:00,567 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/52407d84-d140-4f50-a3c1-cdda4c685fbc
2026-11-23 02:20:00,575 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/52407d84-d140-4f50-a3c1-cdda4c685fbc
2026-11-23 02:20:00,581 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/ff399258-390e-4580-8b5f-ade4a0035f23
2026-11-23 02:20:00,587 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-23 02:20:00,587 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7c9a4bbf-df91-4e97-97d0-220ce3f8990b
2026-11-23 02:20:00,595 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/52407d84-d140-4f50-a3c1-cdda4c685fbc
2026-11-23 02:20:00,607 - INFO - Verified VN network id 11 for VN 7c9a4bbf-df91-4e97-97d0-220ce3f8990b
2026-11-23 02:20:00,607 - INFO - Verifications in API Server for VN ctest-vn-04241233 passed
2026-11-23 02:20:00,607 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7c9a4bbf-df91-4e97-97d0-220ce3f8990b
2026-11-23 02:20:00,617 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/52407d84-d140-4f50-a3c1-cdda4c685fbc
2026-11-23 02:20:00,623 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/52407d84-d140-4f50-a3c1-cdda4c685fbc
2026-11-23 02:20:00,629 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/ff399258-390e-4580-8b5f-ade4a0035f23
2026-11-23 02:20:00,641 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-04241233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70441057', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8978572094578183831', 'uuid-lslong': '10939280933642606859'}, 'enable': 'true', 'created': '2026-11-23T02:19:58', 'last-modified': '2026-11-23T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.992584'}
2026-11-23 02:20:00,648 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-23 02:20:00,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04241233 passed
2026-11-23 02:20:00,648 - DEBUG - ====Verifying policy data for ctest-vn-04241233 in API_Server ======
2026-11-23 02:20:00,648 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-23 02:20:00,653 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5
2026-11-23 02:20:00,663 - DEBUG - Requesting: http://10.0.0.177:8082/project/b74e3dfc-6be8-4864-a5b0-2aa9493e0534
2026-11-23 02:20:00,733 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7c9a4bbf-df91-4e97-97d0-220ce3f8990b
2026-11-23 02:20:00,742 - DEBUG - ==>Verifying data for policy with id: 15e878bb-2f58-4bec-a4ea-2a23a82685c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-policy-allow-all-78759254']
2026-11-23 02:20:00,742 - INFO - VN ctest-vn-04241233 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-23 02:20:00,742 - DEBUG - Verifying the vn in opserver
2026-11-23 02:20:00,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-04241233 virtual network link through opserver 10.0.0.177
2026-11-23 02:20:00,743 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-23 02:20:01,108 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-23 02:20:01,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-04241233', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-04241233?flat'}
2026-11-23 02:20:01,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-04241233 is found in opserver
2026-11-23 02:20:01,166 - DEBUG - Do not have enough data to verify VN in agent
2026-11-23 02:20:01,171 - DEBUG - VRF ids for VN ctest-vn-04241233: {}
2026-11-23 02:20:01,171 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-23 02:20:01,176 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5
2026-11-23 02:20:01,187 - DEBUG - Requesting: http://10.0.0.177:8082/project/b74e3dfc-6be8-4864-a5b0-2aa9493e0534
2026-11-23 02:20:01,267 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/01220877-4309-4dcf-a152-806d6e190679
2026-11-23 02:20:01,279 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/01220877-4309-4dcf-a152-806d6e190679
2026-11-23 02:20:01,290 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f2582fa1-9f10-4896-9753-4a3ea5cabc44
2026-11-23 02:20:01,297 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f2582fa1-9f10-4896-9753-4a3ea5cabc44
2026-11-23 02:20:01,304 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/6c0819ca-d0c0-477c-8ff6-ef951cc91af7
2026-11-23 02:20:01,310 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-23 02:20:01,310 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/01220877-4309-4dcf-a152-806d6e190679
2026-11-23 02:20:01,321 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f2582fa1-9f10-4896-9753-4a3ea5cabc44
2026-11-23 02:20:01,337 - INFO - Verified VN network id 12 for VN 01220877-4309-4dcf-a152-806d6e190679
2026-11-23 02:20:01,337 - INFO - Verifications in API Server for VN ctest-vn-22632444 passed
2026-11-23 02:20:01,338 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/01220877-4309-4dcf-a152-806d6e190679
2026-11-23 02:20:01,347 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f2582fa1-9f10-4896-9753-4a3ea5cabc44
2026-11-23 02:20:01,354 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f2582fa1-9f10-4896-9753-4a3ea5cabc44
2026-11-23 02:20:01,360 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/6c0819ca-d0c0-477c-8ff6-ef951cc91af7
2026-11-23 02:20:01,374 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-22632444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70441057', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '81637051564903887', 'uuid-lslong': '11624494795683595897'}, 'enable': 'true', 'created': '2026-11-23T02:19:58', 'last-modified': '2026-11-23T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.498751'}
2026-11-23 02:20:01,380 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-23 02:20:01,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22632444 passed
2026-11-23 02:20:01,380 - DEBUG - ====Verifying policy data for ctest-vn-22632444 in API_Server ======
2026-11-23 02:20:01,381 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-23 02:20:01,386 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5
2026-11-23 02:20:01,397 - DEBUG - Requesting: http://10.0.0.177:8082/project/b74e3dfc-6be8-4864-a5b0-2aa9493e0534
2026-11-23 02:20:01,478 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/01220877-4309-4dcf-a152-806d6e190679
2026-11-23 02:20:01,488 - DEBUG - ==>Verifying data for policy with id: 15e878bb-2f58-4bec-a4ea-2a23a82685c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-70441057', 'ctest-policy-allow-all-78759254']
2026-11-23 02:20:01,488 - INFO - VN ctest-vn-22632444 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-23 02:20:01,488 - DEBUG - Verifying the vn in opserver
2026-11-23 02:20:01,488 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-22632444 virtual network link through opserver 10.0.0.177
2026-11-23 02:20:01,488 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-23 02:20:01,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-22632444', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-22632444?flat'}
2026-11-23 02:20:01,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70441057:ctest-vn-22632444 is found in opserver
2026-11-23 02:20:01,508 - DEBUG - Do not have enough data to verify VN in agent
2026-11-23 02:20:01,513 - DEBUG - VRF ids for VN ctest-vn-22632444: {}
2026-11-23 02:20:01,575 - DEBUG - Services list from nova: [