2026-05-07 02:22:19,797 - INFO - Domain Default found not creating
2026-05-07 02:22:20,000 - INFO - Project ctest-TestBasicPolicy-62673530 not found, creating it
2026-05-07 02:22:20,498 - INFO - Created Project:ctest-TestBasicPolicy-62673530, ID : 37a47e86-e7d0-4638-a3ad-39bf0d9db6c2
2026-05-07 02:22:22,250 - INFO - ================================================================================
2026-05-07 02:22:22,251 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-07 02:22:22,251 - 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-05-07 02:22:22,527 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-07 02:22:22,528 - INFO - Initial checks done. Running the testcase now
2026-05-07 02:22:22,528 - INFO -
2026-05-07 02:22:23,170 - DEBUG - Response for create_network : {'network': {'id': 'b3793d6f-6e8d-482e-aec8-dd0eda04b755', 'name': 'ctest-vn-21856884', 'tenant_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'project_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-vn-21856884'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:22:23,321 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bf31cb7-adfb-4e34-a474-6f94141ce3b0', 'name': '', 'tenant_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'network_id': 'b3793d6f-6e8d-482e-aec8-dd0eda04b755', 'ip_version': 4, 'cidr': '200.245.137.192/26', 'allocation_pools': [{'start': '200.245.137.194', 'end': '200.245.137.254'}], 'gateway_ip': '200.245.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.245.137.194', 'tags': [], 'project_id': '37a47e86e7d04638a3ad39bf0d9db6c2'}}
2026-05-07 02:22:23,343 - INFO - Created VN ctest-vn-21856884
2026-05-07 02:22:23,397 - DEBUG - VN ctest-vn-21856884 UUID is b3793d6f-6e8d-482e-aec8-dd0eda04b755
2026-05-07 02:22:23,724 - DEBUG - Response for create_network : {'network': {'id': '117e3a1d-231b-43ba-9395-5fda687dae75', 'name': 'ctest-vn-76114748', 'tenant_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'project_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-vn-76114748'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:22:23,906 - DEBUG - Response for create_subnet : {'subnet': {'id': '2546ccbd-656f-469b-b7b7-f72d08dddd21', 'name': '', 'tenant_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'network_id': '117e3a1d-231b-43ba-9395-5fda687dae75', 'ip_version': 4, 'cidr': '58.131.105.64/26', 'allocation_pools': [{'start': '58.131.105.66', 'end': '58.131.105.126'}], 'gateway_ip': '58.131.105.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.131.105.66', 'tags': [], 'project_id': '37a47e86e7d04638a3ad39bf0d9db6c2'}}
2026-05-07 02:22:23,927 - INFO - Created VN ctest-vn-76114748
2026-05-07 02:22:23,981 - DEBUG - VN ctest-vn-76114748 UUID is 117e3a1d-231b-43ba-9395-5fda687dae75
2026-05-07 02:22:24,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-21856884, 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-62673530:ctest-vn-76114748, 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-05-07 02:22:24,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3793d6f-6e8d-482e-aec8-dd0eda04b755', 'name': 'ctest-vn-21856884', 'tenant_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'project_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bf31cb7-adfb-4e34-a474-6f94141ce3b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-vn-21856884'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-policy-allow-all-63205288']], 'subnet_ipam': [{'subnet_cidr': '200.245.137.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:22:24,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '117e3a1d-231b-43ba-9395-5fda687dae75', 'name': 'ctest-vn-76114748', 'tenant_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'project_id': '37a47e86e7d04638a3ad39bf0d9db6c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2546ccbd-656f-469b-b7b7-f72d08dddd21'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-vn-76114748'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-policy-allow-all-63205288']], 'subnet_ipam': [{'subnet_cidr': '58.131.105.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:22:24,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 02:22:25,220 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 02:22:25,258 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32
2026-05-07 02:22:25,271 - DEBUG - Requesting: http://10.0.0.50:8082/project/37a47e86-e7d0-4638-a3ad-39bf0d9db6c2
2026-05-07 02:22:25,351 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b3793d6f-6e8d-482e-aec8-dd0eda04b755
2026-05-07 02:22:25,364 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b3793d6f-6e8d-482e-aec8-dd0eda04b755
2026-05-07 02:22:25,374 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af809957-dab2-468c-b849-bda824d336d6
2026-05-07 02:22:25,381 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af809957-dab2-468c-b849-bda824d336d6
2026-05-07 02:22:25,389 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3c78cfd0-ce78-42bc-9245-d1f00ff81be1
2026-05-07 02:22:25,397 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 02:22:25,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b3793d6f-6e8d-482e-aec8-dd0eda04b755
2026-05-07 02:22:25,407 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af809957-dab2-468c-b849-bda824d336d6
2026-05-07 02:22:25,422 - INFO - Verified VN network id 9 for VN b3793d6f-6e8d-482e-aec8-dd0eda04b755
2026-05-07 02:22:25,423 - INFO - Verifications in API Server for VN ctest-vn-21856884 passed
2026-05-07 02:22:25,423 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b3793d6f-6e8d-482e-aec8-dd0eda04b755
2026-05-07 02:22:25,433 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af809957-dab2-468c-b849-bda824d336d6
2026-05-07 02:22:25,441 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/af809957-dab2-468c-b849-bda824d336d6
2026-05-07 02:22:25,450 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3c78cfd0-ce78-42bc-9245-d1f00ff81be1
2026-05-07 02:22:25,465 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-21856884', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62673530', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12932435353776506926', 'uuid-lslong': '12594559413798614869'}, 'enable': 'true', 'created': '2026-05-07T02:22:23', 'last-modified': '2026-05-07T02:22:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068700'}
2026-05-07 02:22:25,471 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 02:22:25,471 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21856884 passed
2026-05-07 02:22:25,472 - DEBUG - ====Verifying policy data for ctest-vn-21856884 in API_Server ======
2026-05-07 02:22:25,472 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 02:22:25,478 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32
2026-05-07 02:22:25,489 - DEBUG - Requesting: http://10.0.0.50:8082/project/37a47e86-e7d0-4638-a3ad-39bf0d9db6c2
2026-05-07 02:22:25,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b3793d6f-6e8d-482e-aec8-dd0eda04b755
2026-05-07 02:22:25,575 - DEBUG - ==>Verifying data for policy with id: 9063db90-330b-47c0-bf76-77d8e3d3f85f, fqn: ['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-policy-allow-all-63205288']
2026-05-07 02:22:25,575 - INFO - VN ctest-vn-21856884 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 02:22:25,575 - DEBUG - Verifying the vn in opserver
2026-05-07 02:22:25,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-21856884 virtual network link through opserver 10.0.0.50
2026-05-07 02:22:25,575 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-07 02:22:25,927 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-07 02:22:26,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-21856884', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-21856884?flat'}
2026-05-07 02:22:26,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-21856884 is found in opserver
2026-05-07 02:22:26,017 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 02:22:26,022 - DEBUG - VRF ids for VN ctest-vn-21856884: {}
2026-05-07 02:22:26,022 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 02:22:26,028 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32
2026-05-07 02:22:26,041 - DEBUG - Requesting: http://10.0.0.50:8082/project/37a47e86-e7d0-4638-a3ad-39bf0d9db6c2
2026-05-07 02:22:26,115 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/117e3a1d-231b-43ba-9395-5fda687dae75
2026-05-07 02:22:26,131 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/117e3a1d-231b-43ba-9395-5fda687dae75
2026-05-07 02:22:26,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a0e4d62-003a-45f5-a51d-5472c3f6c522
2026-05-07 02:22:26,152 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a0e4d62-003a-45f5-a51d-5472c3f6c522
2026-05-07 02:22:26,160 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0cb9aebb-f906-4c25-8028-b0519054bad7
2026-05-07 02:22:26,169 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 02:22:26,169 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/117e3a1d-231b-43ba-9395-5fda687dae75
2026-05-07 02:22:26,180 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a0e4d62-003a-45f5-a51d-5472c3f6c522
2026-05-07 02:22:26,196 - INFO - Verified VN network id 10 for VN 117e3a1d-231b-43ba-9395-5fda687dae75
2026-05-07 02:22:26,196 - INFO - Verifications in API Server for VN ctest-vn-76114748 passed
2026-05-07 02:22:26,196 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/117e3a1d-231b-43ba-9395-5fda687dae75
2026-05-07 02:22:26,207 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a0e4d62-003a-45f5-a51d-5472c3f6c522
2026-05-07 02:22:26,214 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a0e4d62-003a-45f5-a51d-5472c3f6c522
2026-05-07 02:22:26,224 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0cb9aebb-f906-4c25-8028-b0519054bad7
2026-05-07 02:22:26,236 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-76114748', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62673530', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1260508842527769530', 'uuid-lslong': '10634511486765870709'}, 'enable': 'true', 'created': '2026-05-07T02:22:23', 'last-modified': '2026-05-07T02:22:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.572674'}
2026-05-07 02:22:26,242 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 02:22:26,242 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76114748 passed
2026-05-07 02:22:26,242 - DEBUG - ====Verifying policy data for ctest-vn-76114748 in API_Server ======
2026-05-07 02:22:26,242 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 02:22:26,250 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32
2026-05-07 02:22:26,262 - DEBUG - Requesting: http://10.0.0.50:8082/project/37a47e86-e7d0-4638-a3ad-39bf0d9db6c2
2026-05-07 02:22:26,340 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/117e3a1d-231b-43ba-9395-5fda687dae75
2026-05-07 02:22:26,349 - DEBUG - ==>Verifying data for policy with id: 9063db90-330b-47c0-bf76-77d8e3d3f85f, fqn: ['default-domain', 'ctest-TestBasicPolicy-62673530', 'ctest-policy-allow-all-63205288']
2026-05-07 02:22:26,349 - INFO - VN ctest-vn-76114748 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 02:22:26,350 - DEBUG - Verifying the vn in opserver
2026-05-07 02:22:26,350 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-76114748 virtual network link through opserver 10.0.0.50
2026-05-07 02:22:26,350 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-07 02:22:26,360 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-76114748', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-76114748?flat'}
2026-05-07 02:22:26,360 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62673530:ctest-vn-76114748 is found in opserver
2026-05-07 02:22:26,371 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 02:22:26,376 - DEBUG - VRF ids for VN ctest-vn-76114748: {}
2026-05-07 02:22:26,443 - DEBUG - Services list from nova: [