2025-06-09 17:20:44,005 - INFO - Domain Default found not creating
2025-06-09 17:20:44,156 - INFO - Project ctest-TestBasicPolicy-33355735 not found, creating it
2025-06-09 17:20:44,626 - INFO - Created Project:ctest-TestBasicPolicy-33355735, ID : a7de4e62-0eb9-43d2-bf86-c583a3d5107f
2025-06-09 17:20:46,097 - INFO - ================================================================================
2025-06-09 17:20:46,097 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 17:20:46,097 - 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-06-09 17:20:46,354 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-06-09 17:20:46,354 - INFO - Initial checks done. Running the testcase now
2025-06-09 17:20:46,355 - INFO -
2025-06-09 17:20:46,885 - DEBUG - Response for create_network : {'network': {'id': '25632074-a0d4-4ea4-b123-a727b90388d2', 'name': 'ctest-vn-14338139', 'tenant_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'project_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-vn-14338139'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 17:20:47,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '6704228b-73bc-4296-ad4f-d2aa39f7b6b1', 'name': '', 'tenant_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'network_id': '25632074-a0d4-4ea4-b123-a727b90388d2', 'ip_version': 4, 'cidr': '220.206.55.64/26', 'allocation_pools': [{'start': '220.206.55.66', 'end': '220.206.55.126'}], 'gateway_ip': '220.206.55.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.206.55.66', 'tags': [], 'project_id': 'a7de4e620eb943d2bf86c583a3d5107f'}}
2025-06-09 17:20:47,079 - INFO - Created VN ctest-vn-14338139
2025-06-09 17:20:47,131 - DEBUG - VN ctest-vn-14338139 UUID is 25632074-a0d4-4ea4-b123-a727b90388d2
2025-06-09 17:20:47,438 - DEBUG - Response for create_network : {'network': {'id': '2f266598-52f0-4eae-8814-fb97de8ffbab', 'name': 'ctest-vn-52733220', 'tenant_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'project_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-vn-52733220'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 17:20:47,597 - DEBUG - Response for create_subnet : {'subnet': {'id': '7653705d-321d-4844-a5be-906002fca839', 'name': '', 'tenant_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'network_id': '2f266598-52f0-4eae-8814-fb97de8ffbab', 'ip_version': 4, 'cidr': '49.190.192.0/26', 'allocation_pools': [{'start': '49.190.192.2', 'end': '49.190.192.62'}], 'gateway_ip': '49.190.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.190.192.2', 'tags': [], 'project_id': 'a7de4e620eb943d2bf86c583a3d5107f'}}
2025-06-09 17:20:47,749 - INFO - Created VN ctest-vn-52733220
2025-06-09 17:20:47,803 - DEBUG - VN ctest-vn-52733220 UUID is 2f266598-52f0-4eae-8814-fb97de8ffbab
2025-06-09 17:20:47,954 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-14338139, 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-33355735:ctest-vn-52733220, 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-06-09 17:20:48,246 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25632074-a0d4-4ea4-b123-a727b90388d2', 'name': 'ctest-vn-14338139', 'tenant_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'project_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6704228b-73bc-4296-ad4f-d2aa39f7b6b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-vn-14338139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-policy-allow-all-32060049']], 'subnet_ipam': [{'subnet_cidr': '220.206.55.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 17:20:48,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f266598-52f0-4eae-8814-fb97de8ffbab', 'name': 'ctest-vn-52733220', 'tenant_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'project_id': 'a7de4e620eb943d2bf86c583a3d5107f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7653705d-321d-4844-a5be-906002fca839'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-vn-52733220'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-policy-allow-all-32060049']], 'subnet_ipam': [{'subnet_cidr': '49.190.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 17:20:48,647 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 17:20:48,941 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 17:20:48,972 - DEBUG - Requesting: http://10.0.0.27:8082/domain/96a0cb43-5fb2-4db1-9653-5e3103eb5893
2025-06-09 17:20:48,987 - DEBUG - Requesting: http://10.0.0.27:8082/project/a7de4e62-0eb9-43d2-bf86-c583a3d5107f
2025-06-09 17:20:49,069 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25632074-a0d4-4ea4-b123-a727b90388d2
2025-06-09 17:20:49,080 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25632074-a0d4-4ea4-b123-a727b90388d2
2025-06-09 17:20:49,091 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b070e107-6f56-42e9-9d09-c990f760691b
2025-06-09 17:20:49,099 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b070e107-6f56-42e9-9d09-c990f760691b
2025-06-09 17:20:49,105 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2e540855-3622-4a9f-bf5c-51b757b271ac
2025-06-09 17:20:49,111 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 17:20:49,111 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25632074-a0d4-4ea4-b123-a727b90388d2
2025-06-09 17:20:49,120 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b070e107-6f56-42e9-9d09-c990f760691b
2025-06-09 17:20:49,133 - INFO - Verified VN network id 8 for VN 25632074-a0d4-4ea4-b123-a727b90388d2
2025-06-09 17:20:49,133 - INFO - Verifications in API Server for VN ctest-vn-14338139 passed
2025-06-09 17:20:49,133 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25632074-a0d4-4ea4-b123-a727b90388d2
2025-06-09 17:20:49,143 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b070e107-6f56-42e9-9d09-c990f760691b
2025-06-09 17:20:49,149 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b070e107-6f56-42e9-9d09-c990f760691b
2025-06-09 17:20:49,156 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2e540855-3622-4a9f-bf5c-51b757b271ac
2025-06-09 17:20:49,167 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-14338139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33355735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2694032687384252068', 'uuid-lslong': '12764229557947697362'}, 'enable': 'true', 'created': '2025-06-09T17:20:46', 'last-modified': '2025-06-09T17:20:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948270'}
2025-06-09 17:20:49,173 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 17:20:49,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14338139 passed
2025-06-09 17:20:49,174 - DEBUG - ====Verifying policy data for ctest-vn-14338139 in API_Server ======
2025-06-09 17:20:49,174 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 17:20:49,179 - DEBUG - Requesting: http://10.0.0.27:8082/domain/96a0cb43-5fb2-4db1-9653-5e3103eb5893
2025-06-09 17:20:49,191 - DEBUG - Requesting: http://10.0.0.27:8082/project/a7de4e62-0eb9-43d2-bf86-c583a3d5107f
2025-06-09 17:20:49,259 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25632074-a0d4-4ea4-b123-a727b90388d2
2025-06-09 17:20:49,269 - DEBUG - ==>Verifying data for policy with id: 7b953b4a-70f0-4e47-9d7f-440d263d1286, fqn: ['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-policy-allow-all-32060049']
2025-06-09 17:20:49,269 - INFO - VN ctest-vn-14338139 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 17:20:49,269 - DEBUG - Verifying the vn in opserver
2025-06-09 17:20:49,269 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-14338139 virtual network link through opserver 10.0.0.27
2025-06-09 17:20:49,269 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 17:20:49,560 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 17:20:49,614 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-14338139', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-14338139?flat'}
2025-06-09 17:20:49,614 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-14338139 is found in opserver
2025-06-09 17:20:49,625 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 17:20:49,630 - DEBUG - VRF ids for VN ctest-vn-14338139: {}
2025-06-09 17:20:49,630 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 17:20:49,636 - DEBUG - Requesting: http://10.0.0.27:8082/domain/96a0cb43-5fb2-4db1-9653-5e3103eb5893
2025-06-09 17:20:49,647 - DEBUG - Requesting: http://10.0.0.27:8082/project/a7de4e62-0eb9-43d2-bf86-c583a3d5107f
2025-06-09 17:20:49,720 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f266598-52f0-4eae-8814-fb97de8ffbab
2025-06-09 17:20:49,734 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f266598-52f0-4eae-8814-fb97de8ffbab
2025-06-09 17:20:49,746 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9126a42b-934e-4d97-bcb2-0bc3bfc2cb7f
2025-06-09 17:20:49,755 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9126a42b-934e-4d97-bcb2-0bc3bfc2cb7f
2025-06-09 17:20:49,762 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c914d312-8717-485e-8ecf-aa6bb685d6eb
2025-06-09 17:20:49,769 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 17:20:49,769 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f266598-52f0-4eae-8814-fb97de8ffbab
2025-06-09 17:20:49,778 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9126a42b-934e-4d97-bcb2-0bc3bfc2cb7f
2025-06-09 17:20:49,793 - INFO - Verified VN network id 9 for VN 2f266598-52f0-4eae-8814-fb97de8ffbab
2025-06-09 17:20:49,793 - INFO - Verifications in API Server for VN ctest-vn-52733220 passed
2025-06-09 17:20:49,794 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f266598-52f0-4eae-8814-fb97de8ffbab
2025-06-09 17:20:49,806 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9126a42b-934e-4d97-bcb2-0bc3bfc2cb7f
2025-06-09 17:20:49,814 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9126a42b-934e-4d97-bcb2-0bc3bfc2cb7f
2025-06-09 17:20:49,821 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c914d312-8717-485e-8ecf-aa6bb685d6eb
2025-06-09 17:20:49,834 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-52733220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33355735', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3397514673798532782', 'uuid-lslong': '9805738918385023915'}, 'enable': 'true', 'created': '2025-06-09T17:20:47', 'last-modified': '2025-06-09T17:20:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.378408'}
2025-06-09 17:20:49,840 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 17:20:49,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52733220 passed
2025-06-09 17:20:49,840 - DEBUG - ====Verifying policy data for ctest-vn-52733220 in API_Server ======
2025-06-09 17:20:49,840 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 17:20:49,847 - DEBUG - Requesting: http://10.0.0.27:8082/domain/96a0cb43-5fb2-4db1-9653-5e3103eb5893
2025-06-09 17:20:49,859 - DEBUG - Requesting: http://10.0.0.27:8082/project/a7de4e62-0eb9-43d2-bf86-c583a3d5107f
2025-06-09 17:20:49,936 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f266598-52f0-4eae-8814-fb97de8ffbab
2025-06-09 17:20:49,946 - DEBUG - ==>Verifying data for policy with id: 7b953b4a-70f0-4e47-9d7f-440d263d1286, fqn: ['default-domain', 'ctest-TestBasicPolicy-33355735', 'ctest-policy-allow-all-32060049']
2025-06-09 17:20:49,947 - INFO - VN ctest-vn-52733220 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 17:20:49,947 - DEBUG - Verifying the vn in opserver
2025-06-09 17:20:49,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-52733220 virtual network link through opserver 10.0.0.27
2025-06-09 17:20:49,947 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 17:20:49,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-52733220', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-52733220?flat'}
2025-06-09 17:20:49,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33355735:ctest-vn-52733220 is found in opserver
2025-06-09 17:20:49,969 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 17:20:49,974 - DEBUG - VRF ids for VN ctest-vn-52733220: {}
2025-06-09 17:20:50,031 - DEBUG - Services list from nova: [