2025-08-13 15:41:27,538 - INFO - Domain Default found not creating
2025-08-13 15:41:27,669 - INFO - Project ctest-TestBasicPolicy-55805435 not found, creating it
2025-08-13 15:41:28,129 - INFO - Created Project:ctest-TestBasicPolicy-55805435, ID : 82cf8fc0-2398-4b6a-a3c2-75ce46fe4a87
2025-08-13 15:41:29,506 - INFO - ================================================================================
2025-08-13 15:41:29,506 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 15:41:29,506 - 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-08-13 15:41:29,764 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-08-13 15:41:29,764 - INFO - Initial checks done. Running the testcase now
2025-08-13 15:41:29,764 - INFO -
2025-08-13 15:41:30,278 - DEBUG - Response for create_network : {'network': {'id': 'df76f00c-b38f-4b4e-b5b3-a427a3cb566f', 'name': 'ctest-vn-47555303', 'tenant_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'project_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-vn-47555303'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:41:30,419 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc2e0c35-3352-4ba7-b150-59e3fa7b3621', 'name': '', 'tenant_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'network_id': 'df76f00c-b38f-4b4e-b5b3-a427a3cb566f', 'ip_version': 4, 'cidr': '159.32.167.64/26', 'allocation_pools': [{'start': '159.32.167.66', 'end': '159.32.167.126'}], 'gateway_ip': '159.32.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.32.167.66', 'tags': [], 'project_id': '82cf8fc023984b6aa3c275ce46fe4a87'}}
2025-08-13 15:41:30,435 - INFO - Created VN ctest-vn-47555303
2025-08-13 15:41:30,487 - DEBUG - VN ctest-vn-47555303 UUID is df76f00c-b38f-4b4e-b5b3-a427a3cb566f
2025-08-13 15:41:30,756 - DEBUG - Response for create_network : {'network': {'id': '781bce4e-26ce-4bf3-a771-65bd80833e7b', 'name': 'ctest-vn-29379343', 'tenant_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'project_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-vn-29379343'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:41:30,904 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b025d598-76ac-4426-ad30-f4147ca76637', 'name': '', 'tenant_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'network_id': '781bce4e-26ce-4bf3-a771-65bd80833e7b', 'ip_version': 4, 'cidr': '110.77.165.128/26', 'allocation_pools': [{'start': '110.77.165.130', 'end': '110.77.165.190'}], 'gateway_ip': '110.77.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.77.165.130', 'tags': [], 'project_id': '82cf8fc023984b6aa3c275ce46fe4a87'}}
2025-08-13 15:41:30,919 - INFO - Created VN ctest-vn-29379343
2025-08-13 15:41:30,971 - DEBUG - VN ctest-vn-29379343 UUID is 781bce4e-26ce-4bf3-a771-65bd80833e7b
2025-08-13 15:41:31,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-47555303, 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-55805435:ctest-vn-29379343, 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-08-13 15:41:31,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df76f00c-b38f-4b4e-b5b3-a427a3cb566f', 'name': 'ctest-vn-47555303', 'tenant_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'project_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc2e0c35-3352-4ba7-b150-59e3fa7b3621'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-vn-47555303'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-policy-allow-all-60461005']], 'subnet_ipam': [{'subnet_cidr': '159.32.167.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:41:31,614 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '781bce4e-26ce-4bf3-a771-65bd80833e7b', 'name': 'ctest-vn-29379343', 'tenant_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'project_id': '82cf8fc023984b6aa3c275ce46fe4a87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b025d598-76ac-4426-ad30-f4147ca76637'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-vn-29379343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-policy-allow-all-60461005']], 'subnet_ipam': [{'subnet_cidr': '110.77.165.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:41:31,759 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-13 15:41:32,053 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-13 15:41:32,077 - DEBUG - Requesting: http://10.0.0.141:8082/domain/24455de6-f2a1-4f58-8f9b-7739c5c2c866
2025-08-13 15:41:32,088 - DEBUG - Requesting: http://10.0.0.141:8082/project/82cf8fc0-2398-4b6a-a3c2-75ce46fe4a87
2025-08-13 15:41:32,157 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/df76f00c-b38f-4b4e-b5b3-a427a3cb566f
2025-08-13 15:41:32,166 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/df76f00c-b38f-4b4e-b5b3-a427a3cb566f
2025-08-13 15:41:32,175 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/82740e53-c2e7-4eb6-84c4-84e420fee989
2025-08-13 15:41:32,181 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/82740e53-c2e7-4eb6-84c4-84e420fee989
2025-08-13 15:41:32,187 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d17bc0cd-d3ea-47e2-9e93-820233173c9e
2025-08-13 15:41:32,192 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 15:41:32,192 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/df76f00c-b38f-4b4e-b5b3-a427a3cb566f
2025-08-13 15:41:32,200 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/82740e53-c2e7-4eb6-84c4-84e420fee989
2025-08-13 15:41:32,212 - INFO - Verified VN network id 11 for VN df76f00c-b38f-4b4e-b5b3-a427a3cb566f
2025-08-13 15:41:32,212 - INFO - Verifications in API Server for VN ctest-vn-47555303 passed
2025-08-13 15:41:32,212 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/df76f00c-b38f-4b4e-b5b3-a427a3cb566f
2025-08-13 15:41:32,221 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/82740e53-c2e7-4eb6-84c4-84e420fee989
2025-08-13 15:41:32,226 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/82740e53-c2e7-4eb6-84c4-84e420fee989
2025-08-13 15:41:32,232 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d17bc0cd-d3ea-47e2-9e93-820233173c9e
2025-08-13 15:41:32,242 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-47555303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55805435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16102321455052573518', 'uuid-lslong': '13092989031854855791'}, 'enable': 'true', 'created': '2025-08-13T15:41:30', 'last-modified': '2025-08-13T15:41:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.868853'}
2025-08-13 15:41:32,248 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 15:41:32,248 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47555303 passed
2025-08-13 15:41:32,249 - DEBUG - ====Verifying policy data for ctest-vn-47555303 in API_Server ======
2025-08-13 15:41:32,249 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-13 15:41:32,253 - DEBUG - Requesting: http://10.0.0.141:8082/domain/24455de6-f2a1-4f58-8f9b-7739c5c2c866
2025-08-13 15:41:32,263 - DEBUG - Requesting: http://10.0.0.141:8082/project/82cf8fc0-2398-4b6a-a3c2-75ce46fe4a87
2025-08-13 15:41:32,329 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/df76f00c-b38f-4b4e-b5b3-a427a3cb566f
2025-08-13 15:41:32,338 - DEBUG - ==>Verifying data for policy with id: 85c53fe7-1159-4b99-bcbe-e843a1dd8df6, fqn: ['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-policy-allow-all-60461005']
2025-08-13 15:41:32,338 - INFO - VN ctest-vn-47555303 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 15:41:32,338 - DEBUG - Verifying the vn in opserver
2025-08-13 15:41:32,338 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-47555303 virtual network link through opserver 10.0.0.141
2025-08-13 15:41:32,338 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-13 15:41:32,625 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-13 15:41:32,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-47555303', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-47555303?flat'}
2025-08-13 15:41:32,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-47555303 is found in opserver
2025-08-13 15:41:32,683 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 15:41:32,687 - DEBUG - VRF ids for VN ctest-vn-47555303: {}
2025-08-13 15:41:32,687 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-13 15:41:32,692 - DEBUG - Requesting: http://10.0.0.141:8082/domain/24455de6-f2a1-4f58-8f9b-7739c5c2c866
2025-08-13 15:41:32,703 - DEBUG - Requesting: http://10.0.0.141:8082/project/82cf8fc0-2398-4b6a-a3c2-75ce46fe4a87
2025-08-13 15:41:32,772 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/781bce4e-26ce-4bf3-a771-65bd80833e7b
2025-08-13 15:41:32,783 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/781bce4e-26ce-4bf3-a771-65bd80833e7b
2025-08-13 15:41:32,792 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1d29b876-70de-4278-b1c9-6742be52efe3
2025-08-13 15:41:32,798 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1d29b876-70de-4278-b1c9-6742be52efe3
2025-08-13 15:41:32,804 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f4d2656c-be7d-4894-aefe-78ada3ffd781
2025-08-13 15:41:32,809 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 15:41:32,809 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/781bce4e-26ce-4bf3-a771-65bd80833e7b
2025-08-13 15:41:32,817 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1d29b876-70de-4278-b1c9-6742be52efe3
2025-08-13 15:41:32,829 - INFO - Verified VN network id 12 for VN 781bce4e-26ce-4bf3-a771-65bd80833e7b
2025-08-13 15:41:32,829 - INFO - Verifications in API Server for VN ctest-vn-29379343 passed
2025-08-13 15:41:32,829 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/781bce4e-26ce-4bf3-a771-65bd80833e7b
2025-08-13 15:41:32,838 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1d29b876-70de-4278-b1c9-6742be52efe3
2025-08-13 15:41:32,844 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1d29b876-70de-4278-b1c9-6742be52efe3
2025-08-13 15:41:32,850 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f4d2656c-be7d-4894-aefe-78ada3ffd781
2025-08-13 15:41:32,860 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-29379343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55805435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8654737943976365043', 'uuid-lslong': '12065536741281578619'}, 'enable': 'true', 'created': '2025-08-13T15:41:30', 'last-modified': '2025-08-13T15:41:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.266970'}
2025-08-13 15:41:32,866 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 15:41:32,866 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29379343 passed
2025-08-13 15:41:32,866 - DEBUG - ====Verifying policy data for ctest-vn-29379343 in API_Server ======
2025-08-13 15:41:32,866 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-13 15:41:32,876 - DEBUG - Requesting: http://10.0.0.141:8082/domain/24455de6-f2a1-4f58-8f9b-7739c5c2c866
2025-08-13 15:41:32,886 - DEBUG - Requesting: http://10.0.0.141:8082/project/82cf8fc0-2398-4b6a-a3c2-75ce46fe4a87
2025-08-13 15:41:32,954 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/781bce4e-26ce-4bf3-a771-65bd80833e7b
2025-08-13 15:41:32,964 - DEBUG - ==>Verifying data for policy with id: 85c53fe7-1159-4b99-bcbe-e843a1dd8df6, fqn: ['default-domain', 'ctest-TestBasicPolicy-55805435', 'ctest-policy-allow-all-60461005']
2025-08-13 15:41:32,964 - INFO - VN ctest-vn-29379343 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 15:41:32,964 - DEBUG - Verifying the vn in opserver
2025-08-13 15:41:32,964 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-29379343 virtual network link through opserver 10.0.0.141
2025-08-13 15:41:32,964 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-13 15:41:32,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-29379343', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-29379343?flat'}
2025-08-13 15:41:32,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55805435:ctest-vn-29379343 is found in opserver
2025-08-13 15:41:32,983 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 15:41:32,988 - DEBUG - VRF ids for VN ctest-vn-29379343: {}
2025-08-13 15:41:33,036 - DEBUG - Services list from nova: [