2025-10-30 13:50:42,230 - INFO - Domain Default found not creating
2025-10-30 13:50:42,364 - INFO - Project ctest-TestBasicPolicy-75791023 not found, creating it
2025-10-30 13:50:42,782 - INFO - Created Project:ctest-TestBasicPolicy-75791023, ID : acb1a5da-d3fa-443e-9f13-5f8e6e9d8bae
2025-10-30 13:50:44,152 - INFO - ================================================================================
2025-10-30 13:50:44,153 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 13:50:44,153 - 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
2025-10-30 13:50:44,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with
2025-10-30 13:50:44,414 - INFO - Initial checks done. Running the testcase now
2025-10-30 13:50:44,414 - INFO -
2025-10-30 13:50:44,932 - DEBUG - Response for create_network : {'network': {'id': 'da1af666-4dcb-4c41-9090-8e2abbeb2aa4', 'name': 'ctest-vn-05362953', 'tenant_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'project_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-vn-05362953'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 13:50:45,102 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcb70e02-88b3-417e-b74a-5959d6f0f0d9', 'name': '', 'tenant_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'network_id': 'da1af666-4dcb-4c41-9090-8e2abbeb2aa4', 'ip_version': 4, 'cidr': '103.17.142.128/26', 'allocation_pools': [{'start': '103.17.142.130', 'end': '103.17.142.190'}], 'gateway_ip': '103.17.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.17.142.130', 'tags': [], 'project_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae'}}
2025-10-30 13:50:45,118 - INFO - Created VN ctest-vn-05362953
2025-10-30 13:50:45,168 - DEBUG - VN ctest-vn-05362953 UUID is da1af666-4dcb-4c41-9090-8e2abbeb2aa4
2025-10-30 13:50:45,469 - DEBUG - Response for create_network : {'network': {'id': 'da5fa23d-80d0-495a-9959-0364e86486a4', 'name': 'ctest-vn-46996189', 'tenant_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'project_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-vn-46996189'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 13:50:45,666 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc2f09ec-ad2f-440d-a45e-9bf9f224edfb', 'name': '', 'tenant_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'network_id': 'da5fa23d-80d0-495a-9959-0364e86486a4', 'ip_version': 4, 'cidr': '201.226.154.0/26', 'allocation_pools': [{'start': '201.226.154.2', 'end': '201.226.154.62'}], 'gateway_ip': '201.226.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.226.154.2', 'tags': [], 'project_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae'}}
2025-10-30 13:50:45,682 - INFO - Created VN ctest-vn-46996189
2025-10-30 13:50:45,732 - DEBUG - VN ctest-vn-46996189 UUID is da5fa23d-80d0-495a-9959-0364e86486a4
2025-10-30 13:50:45,876 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-05362953, 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-75791023:ctest-vn-46996189, 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]
2025-10-30 13:50:46,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da1af666-4dcb-4c41-9090-8e2abbeb2aa4', 'name': 'ctest-vn-05362953', 'tenant_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'project_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcb70e02-88b3-417e-b74a-5959d6f0f0d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-vn-05362953'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-policy-allow-all-19469155']], 'subnet_ipam': [{'subnet_cidr': '103.17.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 13:50:46,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da5fa23d-80d0-495a-9959-0364e86486a4', 'name': 'ctest-vn-46996189', 'tenant_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'project_id': 'acb1a5dad3fa443e9f135f8e6e9d8bae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc2f09ec-ad2f-440d-a45e-9bf9f224edfb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-vn-46996189'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-policy-allow-all-19469155']], 'subnet_ipam': [{'subnet_cidr': '201.226.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 13:50:46,560 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-30 13:50:46,850 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-30 13:50:46,876 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8
2025-10-30 13:50:46,886 - DEBUG - Requesting: http://10.0.0.141:8082/project/acb1a5da-d3fa-443e-9f13-5f8e6e9d8bae
2025-10-30 13:50:46,954 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da1af666-4dcb-4c41-9090-8e2abbeb2aa4
2025-10-30 13:50:46,964 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da1af666-4dcb-4c41-9090-8e2abbeb2aa4
2025-10-30 13:50:46,972 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8e8f317f-6382-498b-bfed-e97eeb76e874
2025-10-30 13:50:46,979 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8e8f317f-6382-498b-bfed-e97eeb76e874
2025-10-30 13:50:46,985 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/eba31fb1-162a-4318-8fad-277e0ca2881c
2025-10-30 13:50:46,990 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 13:50:46,990 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da1af666-4dcb-4c41-9090-8e2abbeb2aa4
2025-10-30 13:50:46,998 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8e8f317f-6382-498b-bfed-e97eeb76e874
2025-10-30 13:50:47,013 - INFO - Verified VN network id 12 for VN da1af666-4dcb-4c41-9090-8e2abbeb2aa4
2025-10-30 13:50:47,013 - INFO - Verifications in API Server for VN ctest-vn-05362953 passed
2025-10-30 13:50:47,013 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da1af666-4dcb-4c41-9090-8e2abbeb2aa4
2025-10-30 13:50:47,021 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8e8f317f-6382-498b-bfed-e97eeb76e874
2025-10-30 13:50:47,026 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8e8f317f-6382-498b-bfed-e97eeb76e874
2025-10-30 13:50:47,031 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/eba31fb1-162a-4318-8fad-277e0ca2881c
2025-10-30 13:50:47,042 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-05362953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75791023', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15716144768915033153', 'uuid-lslong': '10416982252300479140'}, 'enable': 'true', 'created': '2025-10-30T13:50:44', 'last-modified': '2025-10-30T13:50:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.899264'}
2025-10-30 13:50:47,048 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 13:50:47,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05362953 passed
2025-10-30 13:50:47,048 - DEBUG - ====Verifying policy data for ctest-vn-05362953 in API_Server ======
2025-10-30 13:50:47,048 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-30 13:50:47,054 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8
2025-10-30 13:50:47,064 - DEBUG - Requesting: http://10.0.0.141:8082/project/acb1a5da-d3fa-443e-9f13-5f8e6e9d8bae
2025-10-30 13:50:47,134 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da1af666-4dcb-4c41-9090-8e2abbeb2aa4
2025-10-30 13:50:47,143 - DEBUG - ==>Verifying data for policy with id: 3dbab379-0fc9-4c57-a52d-4adfad3c9369, fqn: ['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-policy-allow-all-19469155']
2025-10-30 13:50:47,143 - INFO - VN ctest-vn-05362953 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 13:50:47,143 - DEBUG - Verifying the vn in opserver
2025-10-30 13:50:47,143 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-05362953 virtual network link through opserver 10.0.0.141
2025-10-30 13:50:47,143 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-30 13:50:47,433 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-30 13:50:47,487 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-05362953', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-05362953?flat'}
2025-10-30 13:50:47,487 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-05362953 is found in opserver
2025-10-30 13:50:47,495 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 13:50:47,499 - DEBUG - VRF ids for VN ctest-vn-05362953: {}
2025-10-30 13:50:47,499 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-30 13:50:47,503 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8
2025-10-30 13:50:47,512 - DEBUG - Requesting: http://10.0.0.141:8082/project/acb1a5da-d3fa-443e-9f13-5f8e6e9d8bae
2025-10-30 13:50:47,587 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da5fa23d-80d0-495a-9959-0364e86486a4
2025-10-30 13:50:47,596 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da5fa23d-80d0-495a-9959-0364e86486a4
2025-10-30 13:50:47,604 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e1de9d26-99db-4208-8c1c-363180e32379
2025-10-30 13:50:47,609 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e1de9d26-99db-4208-8c1c-363180e32379
2025-10-30 13:50:47,614 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5268d1bc-c78a-4c42-a0f5-1c7ed9b3e731
2025-10-30 13:50:47,619 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 13:50:47,619 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da5fa23d-80d0-495a-9959-0364e86486a4
2025-10-30 13:50:47,626 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e1de9d26-99db-4208-8c1c-363180e32379
2025-10-30 13:50:47,637 - INFO - Verified VN network id 13 for VN da5fa23d-80d0-495a-9959-0364e86486a4
2025-10-30 13:50:47,637 - INFO - Verifications in API Server for VN ctest-vn-46996189 passed
2025-10-30 13:50:47,637 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da5fa23d-80d0-495a-9959-0364e86486a4
2025-10-30 13:50:47,644 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e1de9d26-99db-4208-8c1c-363180e32379
2025-10-30 13:50:47,650 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e1de9d26-99db-4208-8c1c-363180e32379
2025-10-30 13:50:47,656 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5268d1bc-c78a-4c42-a0f5-1c7ed9b3e731
2025-10-30 13:50:47,666 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-46996189', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75791023', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15735474008093641050', 'uuid-lslong': '11049866892660737700'}, 'enable': 'true', 'created': '2025-10-30T13:50:45', 'last-modified': '2025-10-30T13:50:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.311515'}
2025-10-30 13:50:47,671 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 13:50:47,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46996189 passed
2025-10-30 13:50:47,671 - DEBUG - ====Verifying policy data for ctest-vn-46996189 in API_Server ======
2025-10-30 13:50:47,671 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-30 13:50:47,677 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8
2025-10-30 13:50:47,688 - DEBUG - Requesting: http://10.0.0.141:8082/project/acb1a5da-d3fa-443e-9f13-5f8e6e9d8bae
2025-10-30 13:50:47,758 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/da5fa23d-80d0-495a-9959-0364e86486a4
2025-10-30 13:50:47,766 - DEBUG - ==>Verifying data for policy with id: 3dbab379-0fc9-4c57-a52d-4adfad3c9369, fqn: ['default-domain', 'ctest-TestBasicPolicy-75791023', 'ctest-policy-allow-all-19469155']
2025-10-30 13:50:47,766 - INFO - VN ctest-vn-46996189 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 13:50:47,766 - DEBUG - Verifying the vn in opserver
2025-10-30 13:50:47,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-46996189 virtual network link through opserver 10.0.0.141
2025-10-30 13:50:47,766 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-30 13:50:47,774 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-46996189', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-46996189?flat'}
2025-10-30 13:50:47,774 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75791023:ctest-vn-46996189 is found in opserver
2025-10-30 13:50:47,784 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 13:50:47,789 - DEBUG - VRF ids for VN ctest-vn-46996189: {}
2025-10-30 13:50:47,842 - DEBUG - Services list from nova: [