2026-08-20 13:12:54,717 - INFO - Domain Default found not creating
2026-08-20 13:12:54,891 - INFO - Project ctest-TestBasicPolicy-01659755 not found, creating it
2026-08-20 13:12:55,408 - INFO - Created Project:ctest-TestBasicPolicy-01659755, ID : baabe3f2-47a6-42a5-a24e-cfd3084bd44d
2026-08-20 13:12:57,010 - INFO - ================================================================================
2026-08-20 13:12:57,011 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 13:12:57,011 - 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-08-20 13:12:57,277 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-08-20 13:12:57,277 - INFO - Initial checks done. Running the testcase now
2026-08-20 13:12:57,277 - INFO -
2026-08-20 13:12:57,850 - DEBUG - Response for create_network : {'network': {'id': '8c01cac5-7937-43fd-9384-57d53bb3a9c3', 'name': 'ctest-vn-40911300', 'tenant_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'project_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-vn-40911300'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:12:58,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '48224fb2-64ee-4de2-8f8d-a6252e6c24d3', 'name': '', 'tenant_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'network_id': '8c01cac5-7937-43fd-9384-57d53bb3a9c3', 'ip_version': 4, 'cidr': '26.172.145.192/26', 'allocation_pools': [{'start': '26.172.145.194', 'end': '26.172.145.254'}], 'gateway_ip': '26.172.145.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.172.145.194', 'tags': [], 'project_id': 'baabe3f247a642a5a24ecfd3084bd44d'}}
2026-08-20 13:12:58,089 - INFO - Created VN ctest-vn-40911300
2026-08-20 13:12:58,140 - DEBUG - VN ctest-vn-40911300 UUID is 8c01cac5-7937-43fd-9384-57d53bb3a9c3
2026-08-20 13:12:58,435 - DEBUG - Response for create_network : {'network': {'id': '823f9bc6-2274-4779-9d85-2e1df1672615', 'name': 'ctest-vn-84529471', 'tenant_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'project_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-vn-84529471'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:12:58,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c3c93ea-807d-4814-ad36-87cbb817e666', 'name': '', 'tenant_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'network_id': '823f9bc6-2274-4779-9d85-2e1df1672615', 'ip_version': 4, 'cidr': '185.210.237.0/26', 'allocation_pools': [{'start': '185.210.237.2', 'end': '185.210.237.62'}], 'gateway_ip': '185.210.237.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.210.237.2', 'tags': [], 'project_id': 'baabe3f247a642a5a24ecfd3084bd44d'}}
2026-08-20 13:12:58,610 - INFO - Created VN ctest-vn-84529471
2026-08-20 13:12:58,664 - DEBUG - VN ctest-vn-84529471 UUID is 823f9bc6-2274-4779-9d85-2e1df1672615
2026-08-20 13:12:58,816 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-40911300, 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-01659755:ctest-vn-84529471, 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-08-20 13:12:59,142 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c01cac5-7937-43fd-9384-57d53bb3a9c3', 'name': 'ctest-vn-40911300', 'tenant_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'project_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48224fb2-64ee-4de2-8f8d-a6252e6c24d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-vn-40911300'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-policy-allow-all-54049976']], 'subnet_ipam': [{'subnet_cidr': '26.172.145.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:12:59,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '823f9bc6-2274-4779-9d85-2e1df1672615', 'name': 'ctest-vn-84529471', 'tenant_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'project_id': 'baabe3f247a642a5a24ecfd3084bd44d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c3c93ea-807d-4814-ad36-87cbb817e666'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-vn-84529471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-policy-allow-all-54049976']], 'subnet_ipam': [{'subnet_cidr': '185.210.237.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 13:12:59,556 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 13:12:59,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 13:12:59,906 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3
2026-08-20 13:12:59,922 - DEBUG - Requesting: http://10.0.0.50:8082/project/baabe3f2-47a6-42a5-a24e-cfd3084bd44d
2026-08-20 13:12:59,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c01cac5-7937-43fd-9384-57d53bb3a9c3
2026-08-20 13:13:00,013 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c01cac5-7937-43fd-9384-57d53bb3a9c3
2026-08-20 13:13:00,026 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/be4c4c07-a8f3-432a-8375-055739ff0ce6
2026-08-20 13:13:00,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/be4c4c07-a8f3-432a-8375-055739ff0ce6
2026-08-20 13:13:00,044 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a6981350-a16b-4cf5-807b-73d775bc4bbf
2026-08-20 13:13:00,052 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 13:13:00,052 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c01cac5-7937-43fd-9384-57d53bb3a9c3
2026-08-20 13:13:00,062 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/be4c4c07-a8f3-432a-8375-055739ff0ce6
2026-08-20 13:13:00,079 - INFO - Verified VN network id 11 for VN 8c01cac5-7937-43fd-9384-57d53bb3a9c3
2026-08-20 13:13:00,079 - INFO - Verifications in API Server for VN ctest-vn-40911300 passed
2026-08-20 13:13:00,079 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c01cac5-7937-43fd-9384-57d53bb3a9c3
2026-08-20 13:13:00,088 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/be4c4c07-a8f3-432a-8375-055739ff0ce6
2026-08-20 13:13:00,096 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/be4c4c07-a8f3-432a-8375-055739ff0ce6
2026-08-20 13:13:00,117 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a6981350-a16b-4cf5-807b-73d775bc4bbf
2026-08-20 13:13:00,131 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-40911300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01659755', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10088567589777654781', 'uuid-lslong': '10629717593842493891'}, 'enable': 'true', 'created': '2026-08-20T13:12:57', 'last-modified': '2026-08-20T13:12:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.010891'}
2026-08-20 13:13:00,137 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 13:13:00,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40911300 passed
2026-08-20 13:13:00,138 - DEBUG - ====Verifying policy data for ctest-vn-40911300 in API_Server ======
2026-08-20 13:13:00,138 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 13:13:00,144 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3
2026-08-20 13:13:00,156 - DEBUG - Requesting: http://10.0.0.50:8082/project/baabe3f2-47a6-42a5-a24e-cfd3084bd44d
2026-08-20 13:13:00,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c01cac5-7937-43fd-9384-57d53bb3a9c3
2026-08-20 13:13:00,243 - DEBUG - ==>Verifying data for policy with id: bceb1f04-1c91-476a-a197-6d9f784e0acd, fqn: ['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-policy-allow-all-54049976']
2026-08-20 13:13:00,243 - INFO - VN ctest-vn-40911300 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 13:13:00,243 - DEBUG - Verifying the vn in opserver
2026-08-20 13:13:00,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-40911300 virtual network link through opserver 10.0.0.50
2026-08-20 13:13:00,243 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-20 13:13:00,563 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-20 13:13:00,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-40911300', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-40911300?flat'}
2026-08-20 13:13:00,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-40911300 is found in opserver
2026-08-20 13:13:00,630 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 13:13:00,635 - DEBUG - VRF ids for VN ctest-vn-40911300: {}
2026-08-20 13:13:00,635 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 13:13:00,643 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3
2026-08-20 13:13:00,655 - DEBUG - Requesting: http://10.0.0.50:8082/project/baabe3f2-47a6-42a5-a24e-cfd3084bd44d
2026-08-20 13:13:00,735 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/823f9bc6-2274-4779-9d85-2e1df1672615
2026-08-20 13:13:00,747 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/823f9bc6-2274-4779-9d85-2e1df1672615
2026-08-20 13:13:00,756 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/03c00e0c-f843-4474-a4da-b04c437d83e2
2026-08-20 13:13:00,763 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/03c00e0c-f843-4474-a4da-b04c437d83e2
2026-08-20 13:13:00,770 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fa005e6b-8ef4-4620-a443-834acc88e897
2026-08-20 13:13:00,776 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 13:13:00,776 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/823f9bc6-2274-4779-9d85-2e1df1672615
2026-08-20 13:13:00,785 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/03c00e0c-f843-4474-a4da-b04c437d83e2
2026-08-20 13:13:00,799 - INFO - Verified VN network id 12 for VN 823f9bc6-2274-4779-9d85-2e1df1672615
2026-08-20 13:13:00,799 - INFO - Verifications in API Server for VN ctest-vn-84529471 passed
2026-08-20 13:13:00,799 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/823f9bc6-2274-4779-9d85-2e1df1672615
2026-08-20 13:13:00,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/03c00e0c-f843-4474-a4da-b04c437d83e2
2026-08-20 13:13:00,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/03c00e0c-f843-4474-a4da-b04c437d83e2
2026-08-20 13:13:00,823 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fa005e6b-8ef4-4620-a443-834acc88e897
2026-08-20 13:13:00,835 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-84529471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01659755', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9385391423747278713', 'uuid-lslong': '11350529141996201493'}, 'enable': 'true', 'created': '2026-08-20T13:12:58', 'last-modified': '2026-08-20T13:12:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.475738'}
2026-08-20 13:13:00,841 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 13:13:00,841 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84529471 passed
2026-08-20 13:13:00,841 - DEBUG - ====Verifying policy data for ctest-vn-84529471 in API_Server ======
2026-08-20 13:13:00,841 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-20 13:13:00,847 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3
2026-08-20 13:13:00,857 - DEBUG - Requesting: http://10.0.0.50:8082/project/baabe3f2-47a6-42a5-a24e-cfd3084bd44d
2026-08-20 13:13:00,934 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/823f9bc6-2274-4779-9d85-2e1df1672615
2026-08-20 13:13:00,944 - DEBUG - ==>Verifying data for policy with id: bceb1f04-1c91-476a-a197-6d9f784e0acd, fqn: ['default-domain', 'ctest-TestBasicPolicy-01659755', 'ctest-policy-allow-all-54049976']
2026-08-20 13:13:00,944 - INFO - VN ctest-vn-84529471 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 13:13:00,944 - DEBUG - Verifying the vn in opserver
2026-08-20 13:13:00,944 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-84529471 virtual network link through opserver 10.0.0.50
2026-08-20 13:13:00,944 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-20 13:13:00,954 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-84529471', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-84529471?flat'}
2026-08-20 13:13:00,954 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01659755:ctest-vn-84529471 is found in opserver
2026-08-20 13:13:00,965 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 13:13:00,970 - DEBUG - VRF ids for VN ctest-vn-84529471: {}
2026-08-20 13:13:01,026 - DEBUG - Services list from nova: [