2025-11-05 18:45:30,763 - INFO - Domain Default found not creating
2025-11-05 18:45:30,901 - INFO - Project ctest-TestBasicPolicy-38498225 not found, creating it
2025-11-05 18:45:31,327 - INFO - Created Project:ctest-TestBasicPolicy-38498225, ID : 83270b0c-d2d6-4da1-b59f-85224e5e9d66
2025-11-05 18:45:32,686 - INFO - ================================================================================
2025-11-05 18:45:32,686 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 18:45:32,686 - 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-11-05 18:45:32,943 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-05 18:45:32,943 - INFO - Initial checks done. Running the testcase now
2025-11-05 18:45:32,943 - INFO -
2025-11-05 18:45:33,468 - DEBUG - Response for create_network : {'network': {'id': '1a17f48e-6290-4a39-8bf2-84991ceee620', 'name': 'ctest-vn-20385486', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-20385486'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 18:45:33,612 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee185d16-ea2d-4b68-aa17-3d99ea3e26d5', 'name': '', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'network_id': '1a17f48e-6290-4a39-8bf2-84991ceee620', 'ip_version': 4, 'cidr': '177.90.245.192/26', 'allocation_pools': [{'start': '177.90.245.194', 'end': '177.90.245.254'}], 'gateway_ip': '177.90.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.90.245.194', 'tags': [], 'project_id': '83270b0cd2d64da1b59f85224e5e9d66'}}
2025-11-05 18:45:33,628 - INFO - Created VN ctest-vn-20385486
2025-11-05 18:45:33,678 - DEBUG - VN ctest-vn-20385486 UUID is 1a17f48e-6290-4a39-8bf2-84991ceee620
2025-11-05 18:45:34,027 - DEBUG - Response for create_network : {'network': {'id': 'ca0b0c07-c158-4200-bc6a-0029a1e7db60', 'name': 'ctest-vn-18792396', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-18792396'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 18:45:34,205 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa224156-c510-4543-ba33-769a8466c8da', 'name': '', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'network_id': 'ca0b0c07-c158-4200-bc6a-0029a1e7db60', 'ip_version': 4, 'cidr': '52.227.115.64/26', 'allocation_pools': [{'start': '52.227.115.66', 'end': '52.227.115.126'}], 'gateway_ip': '52.227.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.227.115.66', 'tags': [], 'project_id': '83270b0cd2d64da1b59f85224e5e9d66'}}
2025-11-05 18:45:34,219 - INFO - Created VN ctest-vn-18792396
2025-11-05 18:45:34,270 - DEBUG - VN ctest-vn-18792396 UUID is ca0b0c07-c158-4200-bc6a-0029a1e7db60
2025-11-05 18:45:34,422 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486, 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-38498225:ctest-vn-18792396, 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-11-05 18:45:34,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a17f48e-6290-4a39-8bf2-84991ceee620', 'name': 'ctest-vn-20385486', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee185d16-ea2d-4b68-aa17-3d99ea3e26d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-20385486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058']], 'subnet_ipam': [{'subnet_cidr': '177.90.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 18:45:34,937 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca0b0c07-c158-4200-bc6a-0029a1e7db60', 'name': 'ctest-vn-18792396', 'tenant_id': '83270b0cd2d64da1b59f85224e5e9d66', 'project_id': '83270b0cd2d64da1b59f85224e5e9d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa224156-c510-4543-ba33-769a8466c8da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-vn-18792396'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058']], 'subnet_ipam': [{'subnet_cidr': '52.227.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 18:45:35,094 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 18:45:35,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 18:45:35,411 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30
2025-11-05 18:45:35,425 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66
2025-11-05 18:45:35,499 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620
2025-11-05 18:45:35,509 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620
2025-11-05 18:45:35,517 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471
2025-11-05 18:45:35,523 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471
2025-11-05 18:45:35,529 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee583999-7c40-42d5-9913-7116e2dcb8fe
2025-11-05 18:45:35,534 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 18:45:35,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620
2025-11-05 18:45:35,542 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471
2025-11-05 18:45:35,552 - INFO - Verified VN network id 12 for VN 1a17f48e-6290-4a39-8bf2-84991ceee620
2025-11-05 18:45:35,552 - INFO - Verifications in API Server for VN ctest-vn-20385486 passed
2025-11-05 18:45:35,552 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620
2025-11-05 18:45:35,559 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471
2025-11-05 18:45:35,564 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6afae92e-b4c3-454e-b390-7e081536a471
2025-11-05 18:45:35,568 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee583999-7c40-42d5-9913-7116e2dcb8fe
2025-11-05 18:45:35,578 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38498225', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1880240261826628153', 'uuid-lslong': '10084268308786243104'}, 'enable': 'true', 'created': '2025-11-05T18:45:33', 'last-modified': '2025-11-05T18:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895446'}
2025-11-05 18:45:35,583 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 18:45:35,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20385486 passed
2025-11-05 18:45:35,583 - DEBUG - ====Verifying policy data for ctest-vn-20385486 in API_Server ======
2025-11-05 18:45:35,583 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 18:45:35,587 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30
2025-11-05 18:45:35,595 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66
2025-11-05 18:45:35,662 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1a17f48e-6290-4a39-8bf2-84991ceee620
2025-11-05 18:45:35,670 - DEBUG - ==>Verifying data for policy with id: 3bcc2eeb-4a21-47c4-9677-38d69aa61a04, fqn: ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058']
2025-11-05 18:45:35,670 - INFO - VN ctest-vn-20385486 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 18:45:35,670 - DEBUG - Verifying the vn in opserver
2025-11-05 18:45:35,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486 virtual network link through opserver 10.0.0.38
2025-11-05 18:45:35,670 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 18:45:35,959 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 18:45:36,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486?flat'}
2025-11-05 18:45:36,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-20385486 is found in opserver
2025-11-05 18:45:36,025 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 18:45:36,029 - DEBUG - VRF ids for VN ctest-vn-20385486: {}
2025-11-05 18:45:36,029 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 18:45:36,033 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30
2025-11-05 18:45:36,042 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66
2025-11-05 18:45:36,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60
2025-11-05 18:45:36,126 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60
2025-11-05 18:45:36,134 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f
2025-11-05 18:45:36,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f
2025-11-05 18:45:36,144 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/582a0cdb-dd0b-466c-8ea7-db1107a10fa7
2025-11-05 18:45:36,149 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 18:45:36,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60
2025-11-05 18:45:36,158 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f
2025-11-05 18:45:36,169 - INFO - Verified VN network id 13 for VN ca0b0c07-c158-4200-bc6a-0029a1e7db60
2025-11-05 18:45:36,169 - INFO - Verifications in API Server for VN ctest-vn-18792396 passed
2025-11-05 18:45:36,169 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60
2025-11-05 18:45:36,176 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f
2025-11-05 18:45:36,180 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/325926f5-fa53-4777-bc0d-2c556b5ff82f
2025-11-05 18:45:36,185 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/582a0cdb-dd0b-466c-8ea7-db1107a10fa7
2025-11-05 18:45:36,194 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38498225', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14558743447853351424', 'uuid-lslong': '13576664205471767392'}, 'enable': 'true', 'created': '2025-11-05T18:45:33', 'last-modified': '2025-11-05T18:45:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.300400'}
2025-11-05 18:45:36,198 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 18:45:36,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18792396 passed
2025-11-05 18:45:36,199 - DEBUG - ====Verifying policy data for ctest-vn-18792396 in API_Server ======
2025-11-05 18:45:36,199 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 18:45:36,203 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30
2025-11-05 18:45:36,211 - DEBUG - Requesting: http://10.0.0.38:8082/project/83270b0c-d2d6-4da1-b59f-85224e5e9d66
2025-11-05 18:45:36,276 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca0b0c07-c158-4200-bc6a-0029a1e7db60
2025-11-05 18:45:36,285 - DEBUG - ==>Verifying data for policy with id: 3bcc2eeb-4a21-47c4-9677-38d69aa61a04, fqn: ['default-domain', 'ctest-TestBasicPolicy-38498225', 'ctest-policy-allow-all-93861058']
2025-11-05 18:45:36,285 - INFO - VN ctest-vn-18792396 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 18:45:36,285 - DEBUG - Verifying the vn in opserver
2025-11-05 18:45:36,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396 virtual network link through opserver 10.0.0.38
2025-11-05 18:45:36,285 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 18:45:36,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396?flat'}
2025-11-05 18:45:36,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38498225:ctest-vn-18792396 is found in opserver
2025-11-05 18:45:36,302 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 18:45:36,306 - DEBUG - VRF ids for VN ctest-vn-18792396: {}
2025-11-05 18:45:36,353 - DEBUG - Services list from nova: [