2026-01-20 09:50:50,193 - INFO - Domain Default found not creating
2026-01-20 09:50:50,388 - INFO - Project ctest-TestBasicPolicy-05354138 not found, creating it
2026-01-20 09:50:50,889 - INFO - Created Project:ctest-TestBasicPolicy-05354138, ID : fb26bb31-d04b-4c04-80c6-9c637df1f043
2026-01-20 09:50:52,583 - INFO - ================================================================================
2026-01-20 09:50:52,583 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-20 09:50:52,584 - 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-01-20 09:50:52,851 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-01-20 09:50:52,851 - INFO - Initial checks done. Running the testcase now
2026-01-20 09:50:52,851 - INFO -
2026-01-20 09:50:53,476 - DEBUG - Response for create_network : {'network': {'id': '8585c0f2-aab2-409a-9aeb-ba8ffc7be968', 'name': 'ctest-vn-07110384', 'tenant_id': 'fb26bb31d04b4c0480c69c637df1f043', 'project_id': 'fb26bb31d04b4c0480c69c637df1f043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-vn-07110384'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 09:50:53,656 - DEBUG - Response for create_subnet : {'subnet': {'id': '4db69145-8434-4ebb-a659-f9777fb929f5', 'name': '', 'tenant_id': 'fb26bb31d04b4c0480c69c637df1f043', 'network_id': '8585c0f2-aab2-409a-9aeb-ba8ffc7be968', 'ip_version': 4, 'cidr': '74.188.42.192/26', 'allocation_pools': [{'start': '74.188.42.194', 'end': '74.188.42.254'}], 'gateway_ip': '74.188.42.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.188.42.194', 'tags': [], 'project_id': 'fb26bb31d04b4c0480c69c637df1f043'}}
2026-01-20 09:50:53,675 - INFO - Created VN ctest-vn-07110384
2026-01-20 09:50:53,728 - DEBUG - VN ctest-vn-07110384 UUID is 8585c0f2-aab2-409a-9aeb-ba8ffc7be968
2026-01-20 09:50:54,049 - DEBUG - Response for create_network : {'network': {'id': 'b40c1590-a6b5-4397-ab88-02a450c82bbe', 'name': 'ctest-vn-08849932', 'tenant_id': 'fb26bb31d04b4c0480c69c637df1f043', 'project_id': 'fb26bb31d04b4c0480c69c637df1f043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-vn-08849932'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 09:50:54,269 - DEBUG - Response for create_subnet : {'subnet': {'id': '0373d533-5644-444b-8248-d1ee3d987e4f', 'name': '', 'tenant_id': 'fb26bb31d04b4c0480c69c637df1f043', 'network_id': 'b40c1590-a6b5-4397-ab88-02a450c82bbe', 'ip_version': 4, 'cidr': '154.110.25.0/26', 'allocation_pools': [{'start': '154.110.25.2', 'end': '154.110.25.62'}], 'gateway_ip': '154.110.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.110.25.2', 'tags': [], 'project_id': 'fb26bb31d04b4c0480c69c637df1f043'}}
2026-01-20 09:50:54,290 - INFO - Created VN ctest-vn-08849932
2026-01-20 09:50:54,344 - DEBUG - VN ctest-vn-08849932 UUID is b40c1590-a6b5-4397-ab88-02a450c82bbe
2026-01-20 09:50:54,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-07110384, 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-05354138:ctest-vn-08849932, 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-01-20 09:50:54,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8585c0f2-aab2-409a-9aeb-ba8ffc7be968', 'name': 'ctest-vn-07110384', 'tenant_id': 'fb26bb31d04b4c0480c69c637df1f043', 'project_id': 'fb26bb31d04b4c0480c69c637df1f043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4db69145-8434-4ebb-a659-f9777fb929f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-vn-07110384'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-policy-allow-all-51594857']], 'subnet_ipam': [{'subnet_cidr': '74.188.42.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 09:50:55,032 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b40c1590-a6b5-4397-ab88-02a450c82bbe', 'name': 'ctest-vn-08849932', 'tenant_id': 'fb26bb31d04b4c0480c69c637df1f043', 'project_id': 'fb26bb31d04b4c0480c69c637df1f043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0373d533-5644-444b-8248-d1ee3d987e4f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-vn-08849932'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-policy-allow-all-51594857']], 'subnet_ipam': [{'subnet_cidr': '154.110.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 09:50:55,188 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 09:50:55,531 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 09:50:55,568 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7
2026-01-20 09:50:55,581 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb26bb31-d04b-4c04-80c6-9c637df1f043
2026-01-20 09:50:55,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8585c0f2-aab2-409a-9aeb-ba8ffc7be968
2026-01-20 09:50:55,675 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8585c0f2-aab2-409a-9aeb-ba8ffc7be968
2026-01-20 09:50:55,686 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2a7aa2b-6078-49d8-a0cf-f43dbea067e6
2026-01-20 09:50:55,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2a7aa2b-6078-49d8-a0cf-f43dbea067e6
2026-01-20 09:50:55,704 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/acd0c950-d111-4831-8ce9-46a84aa64173
2026-01-20 09:50:55,712 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 09:50:55,712 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8585c0f2-aab2-409a-9aeb-ba8ffc7be968
2026-01-20 09:50:55,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2a7aa2b-6078-49d8-a0cf-f43dbea067e6
2026-01-20 09:50:55,738 - INFO - Verified VN network id 11 for VN 8585c0f2-aab2-409a-9aeb-ba8ffc7be968
2026-01-20 09:50:55,739 - INFO - Verifications in API Server for VN ctest-vn-07110384 passed
2026-01-20 09:50:55,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8585c0f2-aab2-409a-9aeb-ba8ffc7be968
2026-01-20 09:50:55,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2a7aa2b-6078-49d8-a0cf-f43dbea067e6
2026-01-20 09:50:55,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a2a7aa2b-6078-49d8-a0cf-f43dbea067e6
2026-01-20 09:50:55,765 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/acd0c950-d111-4831-8ce9-46a84aa64173
2026-01-20 09:50:55,780 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-07110384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05354138', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9621308327425360026', 'uuid-lslong': '11163221228946975080'}, 'enable': 'true', 'created': '2026-01-20T09:50:53', 'last-modified': '2026-01-20T09:50:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015092'}
2026-01-20 09:50:55,787 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 09:50:55,788 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07110384 passed
2026-01-20 09:50:55,788 - DEBUG - ====Verifying policy data for ctest-vn-07110384 in API_Server ======
2026-01-20 09:50:55,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 09:50:55,795 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7
2026-01-20 09:50:55,810 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb26bb31-d04b-4c04-80c6-9c637df1f043
2026-01-20 09:50:55,885 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8585c0f2-aab2-409a-9aeb-ba8ffc7be968
2026-01-20 09:50:55,894 - DEBUG - ==>Verifying data for policy with id: eb874737-30e7-432b-8d58-0265cd1f1325, fqn: ['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-policy-allow-all-51594857']
2026-01-20 09:50:55,895 - INFO - VN ctest-vn-07110384 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 09:50:55,895 - DEBUG - Verifying the vn in opserver
2026-01-20 09:50:55,895 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-07110384 virtual network link through opserver 10.0.0.38
2026-01-20 09:50:55,895 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 09:50:56,234 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 09:50:56,309 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-07110384', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-07110384?flat'}
2026-01-20 09:50:56,309 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-07110384 is found in opserver
2026-01-20 09:50:56,318 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 09:50:56,323 - DEBUG - VRF ids for VN ctest-vn-07110384: {}
2026-01-20 09:50:56,323 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 09:50:56,330 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7
2026-01-20 09:50:56,342 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb26bb31-d04b-4c04-80c6-9c637df1f043
2026-01-20 09:50:56,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b40c1590-a6b5-4397-ab88-02a450c82bbe
2026-01-20 09:50:56,435 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b40c1590-a6b5-4397-ab88-02a450c82bbe
2026-01-20 09:50:56,446 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9bcf7b27-2661-445d-88ea-e6aaa0658cf2
2026-01-20 09:50:56,455 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9bcf7b27-2661-445d-88ea-e6aaa0658cf2
2026-01-20 09:50:56,464 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5581d62-8ee2-4550-835f-1127f8d11117
2026-01-20 09:50:56,472 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 09:50:56,472 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b40c1590-a6b5-4397-ab88-02a450c82bbe
2026-01-20 09:50:56,482 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9bcf7b27-2661-445d-88ea-e6aaa0658cf2
2026-01-20 09:50:56,500 - INFO - Verified VN network id 12 for VN b40c1590-a6b5-4397-ab88-02a450c82bbe
2026-01-20 09:50:56,500 - INFO - Verifications in API Server for VN ctest-vn-08849932 passed
2026-01-20 09:50:56,500 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b40c1590-a6b5-4397-ab88-02a450c82bbe
2026-01-20 09:50:56,510 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9bcf7b27-2661-445d-88ea-e6aaa0658cf2
2026-01-20 09:50:56,518 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9bcf7b27-2661-445d-88ea-e6aaa0658cf2
2026-01-20 09:50:56,528 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5581d62-8ee2-4550-835f-1127f8d11117
2026-01-20 09:50:56,541 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-08849932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05354138', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12973768337563927447', 'uuid-lslong': '12360132082071514046'}, 'enable': 'true', 'created': '2026-01-20T09:50:54', 'last-modified': '2026-01-20T09:50:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.537170'}
2026-01-20 09:50:56,547 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 09:50:56,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08849932 passed
2026-01-20 09:50:56,547 - DEBUG - ====Verifying policy data for ctest-vn-08849932 in API_Server ======
2026-01-20 09:50:56,547 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 09:50:56,553 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7
2026-01-20 09:50:56,564 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb26bb31-d04b-4c04-80c6-9c637df1f043
2026-01-20 09:50:56,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b40c1590-a6b5-4397-ab88-02a450c82bbe
2026-01-20 09:50:56,686 - DEBUG - ==>Verifying data for policy with id: eb874737-30e7-432b-8d58-0265cd1f1325, fqn: ['default-domain', 'ctest-TestBasicPolicy-05354138', 'ctest-policy-allow-all-51594857']
2026-01-20 09:50:56,687 - INFO - VN ctest-vn-08849932 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 09:50:56,687 - DEBUG - Verifying the vn in opserver
2026-01-20 09:50:56,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-08849932 virtual network link through opserver 10.0.0.38
2026-01-20 09:50:56,687 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 09:50:56,715 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-08849932', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-08849932?flat'}
2026-01-20 09:50:56,715 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05354138:ctest-vn-08849932 is found in opserver
2026-01-20 09:50:56,728 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 09:50:56,734 - DEBUG - VRF ids for VN ctest-vn-08849932: {}
2026-01-20 09:50:56,833 - DEBUG - Services list from nova: [