2025-07-31 13:56:31,258 - INFO - Domain Default found not creating
2025-07-31 13:56:31,417 - INFO - Project ctest-TestBasicPolicy-97756710 not found, creating it
2025-07-31 13:56:31,905 - INFO - Created Project:ctest-TestBasicPolicy-97756710, ID : fd6f222b-37f3-4052-8759-b53935e1d37f
2025-07-31 13:56:33,378 - INFO - ================================================================================
2025-07-31 13:56:33,378 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 13:56:33,379 - 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-31 13:56:33,637 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with
2025-07-31 13:56:33,638 - INFO - Initial checks done. Running the testcase now
2025-07-31 13:56:33,638 - INFO -
2025-07-31 13:56:34,186 - DEBUG - Response for create_network : {'network': {'id': 'ea23d2db-e8ff-467c-9a1d-f861b460ef81', 'name': 'ctest-vn-57158974', 'tenant_id': 'fd6f222b37f340528759b53935e1d37f', 'project_id': 'fd6f222b37f340528759b53935e1d37f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-vn-57158974'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:56:34,362 - DEBUG - Response for create_subnet : {'subnet': {'id': '40238337-55e2-48af-88fc-51fb95fba5da', 'name': '', 'tenant_id': 'fd6f222b37f340528759b53935e1d37f', 'network_id': 'ea23d2db-e8ff-467c-9a1d-f861b460ef81', 'ip_version': 4, 'cidr': '9.38.3.0/26', 'allocation_pools': [{'start': '9.38.3.2', 'end': '9.38.3.62'}], 'gateway_ip': '9.38.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.38.3.2', 'tags': [], 'project_id': 'fd6f222b37f340528759b53935e1d37f'}}
2025-07-31 13:56:34,380 - INFO - Created VN ctest-vn-57158974
2025-07-31 13:56:34,431 - DEBUG - VN ctest-vn-57158974 UUID is ea23d2db-e8ff-467c-9a1d-f861b460ef81
2025-07-31 13:56:34,768 - DEBUG - Response for create_network : {'network': {'id': 'f994ba2d-e3a1-442a-bbc7-50dd9f95a895', 'name': 'ctest-vn-35395382', 'tenant_id': 'fd6f222b37f340528759b53935e1d37f', 'project_id': 'fd6f222b37f340528759b53935e1d37f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-vn-35395382'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:56:34,963 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0929308-e319-47fe-9160-2c83bb4bd93f', 'name': '', 'tenant_id': 'fd6f222b37f340528759b53935e1d37f', 'network_id': 'f994ba2d-e3a1-442a-bbc7-50dd9f95a895', 'ip_version': 4, 'cidr': '97.237.85.128/26', 'allocation_pools': [{'start': '97.237.85.130', 'end': '97.237.85.190'}], 'gateway_ip': '97.237.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.237.85.130', 'tags': [], 'project_id': 'fd6f222b37f340528759b53935e1d37f'}}
2025-07-31 13:56:34,979 - INFO - Created VN ctest-vn-35395382
2025-07-31 13:56:35,031 - DEBUG - VN ctest-vn-35395382 UUID is f994ba2d-e3a1-442a-bbc7-50dd9f95a895
2025-07-31 13:56:35,149 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-57158974, 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-97756710:ctest-vn-35395382, 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-31 13:56:35,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea23d2db-e8ff-467c-9a1d-f861b460ef81', 'name': 'ctest-vn-57158974', 'tenant_id': 'fd6f222b37f340528759b53935e1d37f', 'project_id': 'fd6f222b37f340528759b53935e1d37f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40238337-55e2-48af-88fc-51fb95fba5da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-vn-57158974'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-policy-allow-all-59469109']], 'subnet_ipam': [{'subnet_cidr': '9.38.3.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:56:35,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f994ba2d-e3a1-442a-bbc7-50dd9f95a895', 'name': 'ctest-vn-35395382', 'tenant_id': 'fd6f222b37f340528759b53935e1d37f', 'project_id': 'fd6f222b37f340528759b53935e1d37f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0929308-e319-47fe-9160-2c83bb4bd93f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-vn-35395382'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-policy-allow-all-59469109']], 'subnet_ipam': [{'subnet_cidr': '97.237.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 13:56:35,859 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 13:56:36,154 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 13:56:36,186 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3
2025-07-31 13:56:36,199 - DEBUG - Requesting: http://10.0.0.65:8082/project/fd6f222b-37f3-4052-8759-b53935e1d37f
2025-07-31 13:56:36,274 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea23d2db-e8ff-467c-9a1d-f861b460ef81
2025-07-31 13:56:36,286 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea23d2db-e8ff-467c-9a1d-f861b460ef81
2025-07-31 13:56:36,297 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1b1c16e5-04e6-452e-8429-c9342ec75ca0
2025-07-31 13:56:36,305 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1b1c16e5-04e6-452e-8429-c9342ec75ca0
2025-07-31 13:56:36,312 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ef6744bc-b66c-49c1-9d31-8f8140697b1f
2025-07-31 13:56:36,318 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 13:56:36,318 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea23d2db-e8ff-467c-9a1d-f861b460ef81
2025-07-31 13:56:36,329 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1b1c16e5-04e6-452e-8429-c9342ec75ca0
2025-07-31 13:56:36,346 - INFO - Verified VN network id 11 for VN ea23d2db-e8ff-467c-9a1d-f861b460ef81
2025-07-31 13:56:36,346 - INFO - Verifications in API Server for VN ctest-vn-57158974 passed
2025-07-31 13:56:36,346 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea23d2db-e8ff-467c-9a1d-f861b460ef81
2025-07-31 13:56:36,359 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1b1c16e5-04e6-452e-8429-c9342ec75ca0
2025-07-31 13:56:36,369 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1b1c16e5-04e6-452e-8429-c9342ec75ca0
2025-07-31 13:56:36,378 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ef6744bc-b66c-49c1-9d31-8f8140697b1f
2025-07-31 13:56:36,396 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-57158974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97756710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16871560471008724604', 'uuid-lslong': '11105305354687278977'}, 'enable': 'true', 'created': '2025-07-31T13:56:34', 'last-modified': '2025-07-31T13:56:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963835'}
2025-07-31 13:56:36,407 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 13:56:36,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57158974 passed
2025-07-31 13:56:36,407 - DEBUG - ====Verifying policy data for ctest-vn-57158974 in API_Server ======
2025-07-31 13:56:36,407 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 13:56:36,415 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3
2025-07-31 13:56:36,431 - DEBUG - Requesting: http://10.0.0.65:8082/project/fd6f222b-37f3-4052-8759-b53935e1d37f
2025-07-31 13:56:36,525 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea23d2db-e8ff-467c-9a1d-f861b460ef81
2025-07-31 13:56:36,540 - DEBUG - ==>Verifying data for policy with id: 4c3fb4ad-dd42-464e-8310-70df03320dba, fqn: ['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-policy-allow-all-59469109']
2025-07-31 13:56:36,540 - INFO - VN ctest-vn-57158974 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 13:56:36,540 - DEBUG - Verifying the vn in opserver
2025-07-31 13:56:36,540 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-57158974 virtual network link through opserver 10.0.0.65
2025-07-31 13:56:36,540 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-31 13:56:36,844 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-31 13:56:36,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-57158974', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-57158974?flat'}
2025-07-31 13:56:36,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-57158974 is found in opserver
2025-07-31 13:56:36,926 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 13:56:36,931 - DEBUG - VRF ids for VN ctest-vn-57158974: {}
2025-07-31 13:56:36,931 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 13:56:36,937 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3
2025-07-31 13:56:36,952 - DEBUG - Requesting: http://10.0.0.65:8082/project/fd6f222b-37f3-4052-8759-b53935e1d37f
2025-07-31 13:56:37,030 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f994ba2d-e3a1-442a-bbc7-50dd9f95a895
2025-07-31 13:56:37,046 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f994ba2d-e3a1-442a-bbc7-50dd9f95a895
2025-07-31 13:56:37,056 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/83fee1c0-7540-401c-b3f3-881b2815dea6
2025-07-31 13:56:37,066 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/83fee1c0-7540-401c-b3f3-881b2815dea6
2025-07-31 13:56:37,074 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/830b7932-13a4-4cc7-acd3-32eb9c93e823
2025-07-31 13:56:37,084 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 13:56:37,084 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f994ba2d-e3a1-442a-bbc7-50dd9f95a895
2025-07-31 13:56:37,097 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/83fee1c0-7540-401c-b3f3-881b2815dea6
2025-07-31 13:56:37,120 - INFO - Verified VN network id 12 for VN f994ba2d-e3a1-442a-bbc7-50dd9f95a895
2025-07-31 13:56:37,120 - INFO - Verifications in API Server for VN ctest-vn-35395382 passed
2025-07-31 13:56:37,120 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f994ba2d-e3a1-442a-bbc7-50dd9f95a895
2025-07-31 13:56:37,133 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/83fee1c0-7540-401c-b3f3-881b2815dea6
2025-07-31 13:56:37,143 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/83fee1c0-7540-401c-b3f3-881b2815dea6
2025-07-31 13:56:37,152 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/830b7932-13a4-4cc7-acd3-32eb9c93e823
2025-07-31 13:56:37,169 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-35395382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97756710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17984203918252524586', 'uuid-lslong': '13530872518253324437'}, 'enable': 'true', 'created': '2025-07-31T13:56:34', 'last-modified': '2025-07-31T13:56:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495980'}
2025-07-31 13:56:37,176 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 13:56:37,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35395382 passed
2025-07-31 13:56:37,177 - DEBUG - ====Verifying policy data for ctest-vn-35395382 in API_Server ======
2025-07-31 13:56:37,177 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-31 13:56:37,183 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3
2025-07-31 13:56:37,200 - DEBUG - Requesting: http://10.0.0.65:8082/project/fd6f222b-37f3-4052-8759-b53935e1d37f
2025-07-31 13:56:37,288 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f994ba2d-e3a1-442a-bbc7-50dd9f95a895
2025-07-31 13:56:37,300 - DEBUG - ==>Verifying data for policy with id: 4c3fb4ad-dd42-464e-8310-70df03320dba, fqn: ['default-domain', 'ctest-TestBasicPolicy-97756710', 'ctest-policy-allow-all-59469109']
2025-07-31 13:56:37,300 - INFO - VN ctest-vn-35395382 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 13:56:37,300 - DEBUG - Verifying the vn in opserver
2025-07-31 13:56:37,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-35395382 virtual network link through opserver 10.0.0.65
2025-07-31 13:56:37,300 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-31 13:56:37,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-35395382', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-35395382?flat'}
2025-07-31 13:56:37,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97756710:ctest-vn-35395382 is found in opserver
2025-07-31 13:56:37,330 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 13:56:37,337 - DEBUG - VRF ids for VN ctest-vn-35395382: {}
2025-07-31 13:56:37,411 - DEBUG - Services list from nova: [