2025-07-30 20:24:46,302 - INFO - Domain Default found not creating
2025-07-30 20:24:46,443 - INFO - Project ctest-TestBasicPolicy-87692325 not found, creating it
2025-07-30 20:24:46,885 - INFO - Created Project:ctest-TestBasicPolicy-87692325, ID : 54f82336-a873-4603-a3f0-abae4fde0155
2025-07-30 20:24:48,269 - INFO - ================================================================================
2025-07-30 20:24:48,269 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-30 20:24:48,269 - 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-07-30 20:24:48,527 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-07-30 20:24:48,527 - INFO - Initial checks done. Running the testcase now
2025-07-30 20:24:48,527 - INFO -
2025-07-30 20:24:49,058 - DEBUG - Response for create_network : {'network': {'id': '943e87d4-5248-4639-a214-6c08f98b827f', 'name': 'ctest-vn-28808498', 'tenant_id': '54f82336a8734603a3f0abae4fde0155', 'project_id': '54f82336a8734603a3f0abae4fde0155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-vn-28808498'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:24:49,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '65a1e8a4-ce10-4056-b843-49e2de4b5c33', 'name': '', 'tenant_id': '54f82336a8734603a3f0abae4fde0155', 'network_id': '943e87d4-5248-4639-a214-6c08f98b827f', 'ip_version': 4, 'cidr': '146.174.155.0/26', 'allocation_pools': [{'start': '146.174.155.2', 'end': '146.174.155.62'}], 'gateway_ip': '146.174.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.174.155.2', 'tags': [], 'project_id': '54f82336a8734603a3f0abae4fde0155'}}
2025-07-30 20:24:49,293 - INFO - Created VN ctest-vn-28808498
2025-07-30 20:24:49,345 - DEBUG - VN ctest-vn-28808498 UUID is 943e87d4-5248-4639-a214-6c08f98b827f
2025-07-30 20:24:49,655 - DEBUG - Response for create_network : {'network': {'id': '95404470-2c2c-47f5-87b5-6650736ed3a2', 'name': 'ctest-vn-87642357', 'tenant_id': '54f82336a8734603a3f0abae4fde0155', 'project_id': '54f82336a8734603a3f0abae4fde0155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-vn-87642357'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:24:49,876 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b4076ae-c08f-47a2-a9a1-72d80e754c73', 'name': '', 'tenant_id': '54f82336a8734603a3f0abae4fde0155', 'network_id': '95404470-2c2c-47f5-87b5-6650736ed3a2', 'ip_version': 4, 'cidr': '175.83.197.192/26', 'allocation_pools': [{'start': '175.83.197.194', 'end': '175.83.197.254'}], 'gateway_ip': '175.83.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.83.197.194', 'tags': [], 'project_id': '54f82336a8734603a3f0abae4fde0155'}}
2025-07-30 20:24:49,893 - INFO - Created VN ctest-vn-87642357
2025-07-30 20:24:49,945 - DEBUG - VN ctest-vn-87642357 UUID is 95404470-2c2c-47f5-87b5-6650736ed3a2
2025-07-30 20:24:50,097 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-28808498, 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-87692325:ctest-vn-87642357, 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-07-30 20:24:50,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '943e87d4-5248-4639-a214-6c08f98b827f', 'name': 'ctest-vn-28808498', 'tenant_id': '54f82336a8734603a3f0abae4fde0155', 'project_id': '54f82336a8734603a3f0abae4fde0155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65a1e8a4-ce10-4056-b843-49e2de4b5c33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-vn-28808498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-policy-allow-all-83533103']], 'subnet_ipam': [{'subnet_cidr': '146.174.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:24:50,619 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95404470-2c2c-47f5-87b5-6650736ed3a2', 'name': 'ctest-vn-87642357', 'tenant_id': '54f82336a8734603a3f0abae4fde0155', 'project_id': '54f82336a8734603a3f0abae4fde0155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b4076ae-c08f-47a2-a9a1-72d80e754c73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-vn-87642357'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-policy-allow-all-83533103']], 'subnet_ipam': [{'subnet_cidr': '175.83.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:24:50,789 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 20:24:51,078 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 20:24:51,104 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31
2025-07-30 20:24:51,116 - DEBUG - Requesting: http://10.0.0.254:8082/project/54f82336-a873-4603-a3f0-abae4fde0155
2025-07-30 20:24:51,188 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/943e87d4-5248-4639-a214-6c08f98b827f
2025-07-30 20:24:51,198 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/943e87d4-5248-4639-a214-6c08f98b827f
2025-07-30 20:24:51,207 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13c4ae5b-1fad-4c85-9c37-66ffcc2a3536
2025-07-30 20:24:51,215 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13c4ae5b-1fad-4c85-9c37-66ffcc2a3536
2025-07-30 20:24:51,223 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8a9ceaf5-6e53-4c97-b9e5-c03039e480e1
2025-07-30 20:24:51,229 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 20:24:51,229 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/943e87d4-5248-4639-a214-6c08f98b827f
2025-07-30 20:24:51,238 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13c4ae5b-1fad-4c85-9c37-66ffcc2a3536
2025-07-30 20:24:51,252 - INFO - Verified VN network id 12 for VN 943e87d4-5248-4639-a214-6c08f98b827f
2025-07-30 20:24:51,252 - INFO - Verifications in API Server for VN ctest-vn-28808498 passed
2025-07-30 20:24:51,252 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/943e87d4-5248-4639-a214-6c08f98b827f
2025-07-30 20:24:51,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13c4ae5b-1fad-4c85-9c37-66ffcc2a3536
2025-07-30 20:24:51,267 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13c4ae5b-1fad-4c85-9c37-66ffcc2a3536
2025-07-30 20:24:51,274 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8a9ceaf5-6e53-4c97-b9e5-c03039e480e1
2025-07-30 20:24:51,284 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-28808498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87692325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10682124712152679993', 'uuid-lslong': '11679078519480746623'}, 'enable': 'true', 'created': '2025-07-30T20:24:49', 'last-modified': '2025-07-30T20:24:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915247'}
2025-07-30 20:24:51,290 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 20:24:51,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28808498 passed
2025-07-30 20:24:51,290 - DEBUG - ====Verifying policy data for ctest-vn-28808498 in API_Server ======
2025-07-30 20:24:51,290 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 20:24:51,295 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31
2025-07-30 20:24:51,305 - DEBUG - Requesting: http://10.0.0.254:8082/project/54f82336-a873-4603-a3f0-abae4fde0155
2025-07-30 20:24:51,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/943e87d4-5248-4639-a214-6c08f98b827f
2025-07-30 20:24:51,382 - DEBUG - ==>Verifying data for policy with id: 79ec614a-143f-416a-82f2-0f33287ffc2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-policy-allow-all-83533103']
2025-07-30 20:24:51,382 - INFO - VN ctest-vn-28808498 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 20:24:51,382 - DEBUG - Verifying the vn in opserver
2025-07-30 20:24:51,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-28808498 virtual network link through opserver 10.0.0.254
2025-07-30 20:24:51,383 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-30 20:24:51,670 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-30 20:24:51,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-28808498', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-28808498?flat'}
2025-07-30 20:24:51,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-28808498 is found in opserver
2025-07-30 20:24:51,738 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 20:24:51,742 - DEBUG - VRF ids for VN ctest-vn-28808498: {}
2025-07-30 20:24:51,742 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 20:24:51,749 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31
2025-07-30 20:24:51,760 - DEBUG - Requesting: http://10.0.0.254:8082/project/54f82336-a873-4603-a3f0-abae4fde0155
2025-07-30 20:24:51,830 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/95404470-2c2c-47f5-87b5-6650736ed3a2
2025-07-30 20:24:51,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/95404470-2c2c-47f5-87b5-6650736ed3a2
2025-07-30 20:24:51,850 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31c95666-49e0-41e8-a513-5fcf368d547e
2025-07-30 20:24:51,857 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31c95666-49e0-41e8-a513-5fcf368d547e
2025-07-30 20:24:51,864 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7660f5b4-0dd6-4cf0-8330-459eb29a5dec
2025-07-30 20:24:51,869 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 20:24:51,869 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/95404470-2c2c-47f5-87b5-6650736ed3a2
2025-07-30 20:24:51,878 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31c95666-49e0-41e8-a513-5fcf368d547e
2025-07-30 20:24:51,892 - INFO - Verified VN network id 13 for VN 95404470-2c2c-47f5-87b5-6650736ed3a2
2025-07-30 20:24:51,893 - INFO - Verifications in API Server for VN ctest-vn-87642357 passed
2025-07-30 20:24:51,893 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/95404470-2c2c-47f5-87b5-6650736ed3a2
2025-07-30 20:24:51,902 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31c95666-49e0-41e8-a513-5fcf368d547e
2025-07-30 20:24:51,909 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31c95666-49e0-41e8-a513-5fcf368d547e
2025-07-30 20:24:51,915 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7660f5b4-0dd6-4cf0-8330-459eb29a5dec
2025-07-30 20:24:51,926 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-87642357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87692325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10754671158728869877', 'uuid-lslong': '9778834661624959906'}, 'enable': 'true', 'created': '2025-07-30T20:24:49', 'last-modified': '2025-07-30T20:24:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.328797'}
2025-07-30 20:24:51,932 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 20:24:51,932 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87642357 passed
2025-07-30 20:24:51,932 - DEBUG - ====Verifying policy data for ctest-vn-87642357 in API_Server ======
2025-07-30 20:24:51,932 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 20:24:51,937 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31
2025-07-30 20:24:51,947 - DEBUG - Requesting: http://10.0.0.254:8082/project/54f82336-a873-4603-a3f0-abae4fde0155
2025-07-30 20:24:52,021 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/95404470-2c2c-47f5-87b5-6650736ed3a2
2025-07-30 20:24:52,030 - DEBUG - ==>Verifying data for policy with id: 79ec614a-143f-416a-82f2-0f33287ffc2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-87692325', 'ctest-policy-allow-all-83533103']
2025-07-30 20:24:52,030 - INFO - VN ctest-vn-87642357 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 20:24:52,030 - DEBUG - Verifying the vn in opserver
2025-07-30 20:24:52,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-87642357 virtual network link through opserver 10.0.0.254
2025-07-30 20:24:52,030 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-30 20:24:52,039 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-87642357', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-87642357?flat'}
2025-07-30 20:24:52,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87692325:ctest-vn-87642357 is found in opserver
2025-07-30 20:24:52,049 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 20:24:52,054 - DEBUG - VRF ids for VN ctest-vn-87642357: {}
2025-07-30 20:24:52,120 - DEBUG - Services list from nova: [