2025-10-21 19:09:01,615 - INFO - Domain Default found not creating
2025-10-21 19:09:01,771 - INFO - Project ctest-TestBasicPolicy-42447796 not found, creating it
2025-10-21 19:09:02,242 - INFO - Created Project:ctest-TestBasicPolicy-42447796, ID : 47a6cf0a-6cb9-4722-8301-5099b8769f5a
2025-10-21 19:09:03,723 - INFO - ================================================================================
2025-10-21 19:09:03,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 19:09:03,723 - 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-21 19:09:03,979 - DEBUG - Nothing to compare xmpp stats {'10.0.0.245': {'10.20.0.254': '0'}} with
2025-10-21 19:09:03,979 - INFO - Initial checks done. Running the testcase now
2025-10-21 19:09:03,979 - INFO -
2025-10-21 19:09:04,538 - DEBUG - Response for create_network : {'network': {'id': '21010b3d-cf36-4cd7-8a4b-49660db638b5', 'name': 'ctest-vn-35082375', 'tenant_id': '47a6cf0a6cb9472283015099b8769f5a', 'project_id': '47a6cf0a6cb9472283015099b8769f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-vn-35082375'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 19:09:04,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c281d1d-619d-453a-9826-3d9ec5108b66', 'name': '', 'tenant_id': '47a6cf0a6cb9472283015099b8769f5a', 'network_id': '21010b3d-cf36-4cd7-8a4b-49660db638b5', 'ip_version': 4, 'cidr': '130.167.37.64/26', 'allocation_pools': [{'start': '130.167.37.66', 'end': '130.167.37.126'}], 'gateway_ip': '130.167.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.167.37.66', 'tags': [], 'project_id': '47a6cf0a6cb9472283015099b8769f5a'}}
2025-10-21 19:09:04,768 - INFO - Created VN ctest-vn-35082375
2025-10-21 19:09:04,820 - DEBUG - VN ctest-vn-35082375 UUID is 21010b3d-cf36-4cd7-8a4b-49660db638b5
2025-10-21 19:09:05,115 - DEBUG - Response for create_network : {'network': {'id': 'b2be09aa-6543-4c8c-86f3-f0c391fcf9da', 'name': 'ctest-vn-51369951', 'tenant_id': '47a6cf0a6cb9472283015099b8769f5a', 'project_id': '47a6cf0a6cb9472283015099b8769f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-vn-51369951'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 19:09:05,295 - DEBUG - Response for create_subnet : {'subnet': {'id': '00da02e7-64d5-49d3-be83-215ccf26ec6e', 'name': '', 'tenant_id': '47a6cf0a6cb9472283015099b8769f5a', 'network_id': 'b2be09aa-6543-4c8c-86f3-f0c391fcf9da', 'ip_version': 4, 'cidr': '43.39.242.64/26', 'allocation_pools': [{'start': '43.39.242.66', 'end': '43.39.242.126'}], 'gateway_ip': '43.39.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.39.242.66', 'tags': [], 'project_id': '47a6cf0a6cb9472283015099b8769f5a'}}
2025-10-21 19:09:05,316 - INFO - Created VN ctest-vn-51369951
2025-10-21 19:09:05,369 - DEBUG - VN ctest-vn-51369951 UUID is b2be09aa-6543-4c8c-86f3-f0c391fcf9da
2025-10-21 19:09:05,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-35082375, 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-42447796:ctest-vn-51369951, 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-21 19:09:05,788 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21010b3d-cf36-4cd7-8a4b-49660db638b5', 'name': 'ctest-vn-35082375', 'tenant_id': '47a6cf0a6cb9472283015099b8769f5a', 'project_id': '47a6cf0a6cb9472283015099b8769f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c281d1d-619d-453a-9826-3d9ec5108b66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-vn-35082375'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-policy-allow-all-72631755']], 'subnet_ipam': [{'subnet_cidr': '130.167.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 19:09:06,032 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2be09aa-6543-4c8c-86f3-f0c391fcf9da', 'name': 'ctest-vn-51369951', 'tenant_id': '47a6cf0a6cb9472283015099b8769f5a', 'project_id': '47a6cf0a6cb9472283015099b8769f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00da02e7-64d5-49d3-be83-215ccf26ec6e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-vn-51369951'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-policy-allow-all-72631755']], 'subnet_ipam': [{'subnet_cidr': '43.39.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 19:09:06,201 - DEBUG - Requesting: http://10.0.0.245:8082/domains
2025-10-21 19:09:06,498 - DEBUG - Requesting: http://10.0.0.245:8082/domains
2025-10-21 19:09:06,528 - DEBUG - Requesting: http://10.0.0.245:8082/domain/843cf282-6b41-482d-9699-9486af059217
2025-10-21 19:09:06,540 - DEBUG - Requesting: http://10.0.0.245:8082/project/47a6cf0a-6cb9-4722-8301-5099b8769f5a
2025-10-21 19:09:06,618 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/21010b3d-cf36-4cd7-8a4b-49660db638b5
2025-10-21 19:09:06,630 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/21010b3d-cf36-4cd7-8a4b-49660db638b5
2025-10-21 19:09:06,639 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/fa11281a-f188-47db-b52e-fe5d1ce8b91c
2025-10-21 19:09:06,646 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/fa11281a-f188-47db-b52e-fe5d1ce8b91c
2025-10-21 19:09:06,653 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/bc77c536-bb20-466a-830c-b8a98dffbb65
2025-10-21 19:09:06,659 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 19:09:06,659 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/21010b3d-cf36-4cd7-8a4b-49660db638b5
2025-10-21 19:09:06,668 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/fa11281a-f188-47db-b52e-fe5d1ce8b91c
2025-10-21 19:09:06,682 - INFO - Verified VN network id 11 for VN 21010b3d-cf36-4cd7-8a4b-49660db638b5
2025-10-21 19:09:06,682 - INFO - Verifications in API Server for VN ctest-vn-35082375 passed
2025-10-21 19:09:06,682 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/21010b3d-cf36-4cd7-8a4b-49660db638b5
2025-10-21 19:09:06,691 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/fa11281a-f188-47db-b52e-fe5d1ce8b91c
2025-10-21 19:09:06,698 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/fa11281a-f188-47db-b52e-fe5d1ce8b91c
2025-10-21 19:09:06,705 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/bc77c536-bb20-466a-830c-b8a98dffbb65
2025-10-21 19:09:06,716 - DEBUG - Control-node 10.0.0.245 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-35082375', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42447796', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2378194438325685463', 'uuid-lslong': '9965139303152892085'}, 'enable': 'true', 'created': '2025-10-21T19:09:04', 'last-modified': '2025-10-21T19:09:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949025'}
2025-10-21 19:09:06,722 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 19:09:06,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35082375 passed
2025-10-21 19:09:06,723 - DEBUG - ====Verifying policy data for ctest-vn-35082375 in API_Server ======
2025-10-21 19:09:06,723 - DEBUG - Requesting: http://10.0.0.245:8082/domains
2025-10-21 19:09:06,729 - DEBUG - Requesting: http://10.0.0.245:8082/domain/843cf282-6b41-482d-9699-9486af059217
2025-10-21 19:09:06,742 - DEBUG - Requesting: http://10.0.0.245:8082/project/47a6cf0a-6cb9-4722-8301-5099b8769f5a
2025-10-21 19:09:06,816 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/21010b3d-cf36-4cd7-8a4b-49660db638b5
2025-10-21 19:09:06,826 - DEBUG - ==>Verifying data for policy with id: f450b3e5-9cc1-4ed3-aa28-cd4a4705311d, fqn: ['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-policy-allow-all-72631755']
2025-10-21 19:09:06,826 - INFO - VN ctest-vn-35082375 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 19:09:06,826 - DEBUG - Verifying the vn in opserver
2025-10-21 19:09:06,826 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-35082375 virtual network link through opserver 10.0.0.245
2025-10-21 19:09:06,826 - DEBUG - Requesting: http://10.0.0.245:8081/analytics/uves/virtual-networks
2025-10-21 19:09:07,120 - DEBUG - Requesting: http://10.0.0.245:8081/analytics/uves/virtual-networks
2025-10-21 19:09:07,182 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-35082375', 'href': 'http://10.0.0.245:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-35082375?flat'}
2025-10-21 19:09:07,182 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-35082375 is found in opserver
2025-10-21 19:09:07,192 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 19:09:07,197 - DEBUG - VRF ids for VN ctest-vn-35082375: {}
2025-10-21 19:09:07,197 - DEBUG - Requesting: http://10.0.0.245:8082/domains
2025-10-21 19:09:07,203 - DEBUG - Requesting: http://10.0.0.245:8082/domain/843cf282-6b41-482d-9699-9486af059217
2025-10-21 19:09:07,222 - DEBUG - Requesting: http://10.0.0.245:8082/project/47a6cf0a-6cb9-4722-8301-5099b8769f5a
2025-10-21 19:09:07,298 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/b2be09aa-6543-4c8c-86f3-f0c391fcf9da
2025-10-21 19:09:07,310 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/b2be09aa-6543-4c8c-86f3-f0c391fcf9da
2025-10-21 19:09:07,320 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/6aad7650-c0b3-4d1a-9b55-e9b08fd379d4
2025-10-21 19:09:07,329 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/6aad7650-c0b3-4d1a-9b55-e9b08fd379d4
2025-10-21 19:09:07,336 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/093e66c1-55fa-4990-8c85-c28b0c35d7af
2025-10-21 19:09:07,343 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 19:09:07,343 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/b2be09aa-6543-4c8c-86f3-f0c391fcf9da
2025-10-21 19:09:07,354 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/6aad7650-c0b3-4d1a-9b55-e9b08fd379d4
2025-10-21 19:09:07,369 - INFO - Verified VN network id 12 for VN b2be09aa-6543-4c8c-86f3-f0c391fcf9da
2025-10-21 19:09:07,370 - INFO - Verifications in API Server for VN ctest-vn-51369951 passed
2025-10-21 19:09:07,370 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/b2be09aa-6543-4c8c-86f3-f0c391fcf9da
2025-10-21 19:09:07,378 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/6aad7650-c0b3-4d1a-9b55-e9b08fd379d4
2025-10-21 19:09:07,386 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/6aad7650-c0b3-4d1a-9b55-e9b08fd379d4
2025-10-21 19:09:07,396 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/093e66c1-55fa-4990-8c85-c28b0c35d7af
2025-10-21 19:09:07,410 - DEBUG - Control-node 10.0.0.245 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-51369951', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42447796', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12879742611774196876', 'uuid-lslong': '9724380743181597146'}, 'enable': 'true', 'created': '2025-10-21T19:09:05', 'last-modified': '2025-10-21T19:09:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.393774'}
2025-10-21 19:09:07,417 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 19:09:07,417 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51369951 passed
2025-10-21 19:09:07,417 - DEBUG - ====Verifying policy data for ctest-vn-51369951 in API_Server ======
2025-10-21 19:09:07,417 - DEBUG - Requesting: http://10.0.0.245:8082/domains
2025-10-21 19:09:07,424 - DEBUG - Requesting: http://10.0.0.245:8082/domain/843cf282-6b41-482d-9699-9486af059217
2025-10-21 19:09:07,435 - DEBUG - Requesting: http://10.0.0.245:8082/project/47a6cf0a-6cb9-4722-8301-5099b8769f5a
2025-10-21 19:09:07,511 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/b2be09aa-6543-4c8c-86f3-f0c391fcf9da
2025-10-21 19:09:07,522 - DEBUG - ==>Verifying data for policy with id: f450b3e5-9cc1-4ed3-aa28-cd4a4705311d, fqn: ['default-domain', 'ctest-TestBasicPolicy-42447796', 'ctest-policy-allow-all-72631755']
2025-10-21 19:09:07,522 - INFO - VN ctest-vn-51369951 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 19:09:07,522 - DEBUG - Verifying the vn in opserver
2025-10-21 19:09:07,522 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-51369951 virtual network link through opserver 10.0.0.245
2025-10-21 19:09:07,522 - DEBUG - Requesting: http://10.0.0.245:8081/analytics/uves/virtual-networks
2025-10-21 19:09:07,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-51369951', 'href': 'http://10.0.0.245:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-51369951?flat'}
2025-10-21 19:09:07,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42447796:ctest-vn-51369951 is found in opserver
2025-10-21 19:09:07,541 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 19:09:07,546 - DEBUG - VRF ids for VN ctest-vn-51369951: {}
2025-10-21 19:09:07,599 - DEBUG - Services list from nova: [