2025-08-26 08:06:50,689 - INFO - Domain Default found not creating
2025-08-26 08:06:50,843 - INFO - Project ctest-TestBasicPolicy-85724628 not found, creating it
2025-08-26 08:06:51,351 - INFO - Created Project:ctest-TestBasicPolicy-85724628, ID : 6edd674e-1195-4b80-bd87-072455458c51
2025-08-26 08:06:52,897 - INFO - ================================================================================
2025-08-26 08:06:52,898 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-26 08:06:52,898 - 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-08-26 08:06:53,166 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-08-26 08:06:53,166 - INFO - Initial checks done. Running the testcase now
2025-08-26 08:06:53,166 - INFO -
2025-08-26 08:06:53,787 - DEBUG - Response for create_network : {'network': {'id': '8861960e-429b-4802-bdf7-2f44c9c2522f', 'name': 'ctest-vn-03333089', 'tenant_id': '6edd674e11954b80bd87072455458c51', 'project_id': '6edd674e11954b80bd87072455458c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-vn-03333089'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:06:54,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '789e1d86-2f3e-4c75-a21d-f56aa445c5e4', 'name': '', 'tenant_id': '6edd674e11954b80bd87072455458c51', 'network_id': '8861960e-429b-4802-bdf7-2f44c9c2522f', 'ip_version': 4, 'cidr': '198.16.102.0/26', 'allocation_pools': [{'start': '198.16.102.2', 'end': '198.16.102.62'}], 'gateway_ip': '198.16.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.16.102.2', 'tags': [], 'project_id': '6edd674e11954b80bd87072455458c51'}}
2025-08-26 08:06:54,062 - INFO - Created VN ctest-vn-03333089
2025-08-26 08:06:54,115 - DEBUG - VN ctest-vn-03333089 UUID is 8861960e-429b-4802-bdf7-2f44c9c2522f
2025-08-26 08:06:54,455 - DEBUG - Response for create_network : {'network': {'id': '8c52198f-8514-48e8-a3d7-ded2669f89e9', 'name': 'ctest-vn-84588515', 'tenant_id': '6edd674e11954b80bd87072455458c51', 'project_id': '6edd674e11954b80bd87072455458c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-vn-84588515'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:06:54,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b5efbe0-2249-4baf-a64a-7491d2aed12a', 'name': '', 'tenant_id': '6edd674e11954b80bd87072455458c51', 'network_id': '8c52198f-8514-48e8-a3d7-ded2669f89e9', 'ip_version': 4, 'cidr': '88.177.14.192/26', 'allocation_pools': [{'start': '88.177.14.194', 'end': '88.177.14.254'}], 'gateway_ip': '88.177.14.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.177.14.194', 'tags': [], 'project_id': '6edd674e11954b80bd87072455458c51'}}
2025-08-26 08:06:54,664 - INFO - Created VN ctest-vn-84588515
2025-08-26 08:06:54,723 - DEBUG - VN ctest-vn-84588515 UUID is 8c52198f-8514-48e8-a3d7-ded2669f89e9
2025-08-26 08:06:54,849 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-03333089, 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-85724628:ctest-vn-84588515, 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-08-26 08:06:55,166 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8861960e-429b-4802-bdf7-2f44c9c2522f', 'name': 'ctest-vn-03333089', 'tenant_id': '6edd674e11954b80bd87072455458c51', 'project_id': '6edd674e11954b80bd87072455458c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['789e1d86-2f3e-4c75-a21d-f56aa445c5e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-vn-03333089'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-policy-allow-all-10408876']], 'subnet_ipam': [{'subnet_cidr': '198.16.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:06:55,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c52198f-8514-48e8-a3d7-ded2669f89e9', 'name': 'ctest-vn-84588515', 'tenant_id': '6edd674e11954b80bd87072455458c51', 'project_id': '6edd674e11954b80bd87072455458c51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b5efbe0-2249-4baf-a64a-7491d2aed12a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-vn-84588515'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-policy-allow-all-10408876']], 'subnet_ipam': [{'subnet_cidr': '88.177.14.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 08:06:55,611 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-26 08:06:55,914 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-26 08:06:55,944 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4
2025-08-26 08:06:55,957 - DEBUG - Requesting: http://10.0.0.50:8082/project/6edd674e-1195-4b80-bd87-072455458c51
2025-08-26 08:06:56,035 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8861960e-429b-4802-bdf7-2f44c9c2522f
2025-08-26 08:06:56,048 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8861960e-429b-4802-bdf7-2f44c9c2522f
2025-08-26 08:06:56,062 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1541320b-fdd7-4ebd-870e-57f8c43e7290
2025-08-26 08:06:56,071 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1541320b-fdd7-4ebd-870e-57f8c43e7290
2025-08-26 08:06:56,083 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ae20144d-a640-4650-ba78-f73a776b482e
2025-08-26 08:06:56,091 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 08:06:56,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8861960e-429b-4802-bdf7-2f44c9c2522f
2025-08-26 08:06:56,102 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1541320b-fdd7-4ebd-870e-57f8c43e7290
2025-08-26 08:06:56,117 - INFO - Verified VN network id 11 for VN 8861960e-429b-4802-bdf7-2f44c9c2522f
2025-08-26 08:06:56,117 - INFO - Verifications in API Server for VN ctest-vn-03333089 passed
2025-08-26 08:06:56,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8861960e-429b-4802-bdf7-2f44c9c2522f
2025-08-26 08:06:56,129 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1541320b-fdd7-4ebd-870e-57f8c43e7290
2025-08-26 08:06:56,137 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1541320b-fdd7-4ebd-870e-57f8c43e7290
2025-08-26 08:06:56,144 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ae20144d-a640-4650-ba78-f73a776b482e
2025-08-26 08:06:56,158 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-03333089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85724628', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9827300849890314242', 'uuid-lslong': '13688461564905148975'}, 'enable': 'true', 'created': '2025-08-26T08:06:53', 'last-modified': '2025-08-26T08:06:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021396'}
2025-08-26 08:06:56,166 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 08:06:56,166 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03333089 passed
2025-08-26 08:06:56,166 - DEBUG - ====Verifying policy data for ctest-vn-03333089 in API_Server ======
2025-08-26 08:06:56,166 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-26 08:06:56,173 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4
2025-08-26 08:06:56,187 - DEBUG - Requesting: http://10.0.0.50:8082/project/6edd674e-1195-4b80-bd87-072455458c51
2025-08-26 08:06:56,272 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8861960e-429b-4802-bdf7-2f44c9c2522f
2025-08-26 08:06:56,287 - DEBUG - ==>Verifying data for policy with id: 89d24473-4aa3-4c7f-a716-d71f2b92f7e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-policy-allow-all-10408876']
2025-08-26 08:06:56,287 - INFO - VN ctest-vn-03333089 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 08:06:56,287 - DEBUG - Verifying the vn in opserver
2025-08-26 08:06:56,287 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-03333089 virtual network link through opserver 10.0.0.50
2025-08-26 08:06:56,287 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-26 08:06:56,579 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-26 08:06:56,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-03333089', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-03333089?flat'}
2025-08-26 08:06:56,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-03333089 is found in opserver
2025-08-26 08:06:56,659 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 08:06:56,664 - DEBUG - VRF ids for VN ctest-vn-03333089: {}
2025-08-26 08:06:56,664 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-26 08:06:56,671 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4
2025-08-26 08:06:56,685 - DEBUG - Requesting: http://10.0.0.50:8082/project/6edd674e-1195-4b80-bd87-072455458c51
2025-08-26 08:06:56,759 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c52198f-8514-48e8-a3d7-ded2669f89e9
2025-08-26 08:06:56,776 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c52198f-8514-48e8-a3d7-ded2669f89e9
2025-08-26 08:06:56,789 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ae39e04-cb87-49b9-99dc-833c6278a901
2025-08-26 08:06:56,798 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ae39e04-cb87-49b9-99dc-833c6278a901
2025-08-26 08:06:56,808 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9ee8c2c-7312-435c-b7a8-da35e8511c09
2025-08-26 08:06:56,816 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 08:06:56,816 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c52198f-8514-48e8-a3d7-ded2669f89e9
2025-08-26 08:06:56,828 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ae39e04-cb87-49b9-99dc-833c6278a901
2025-08-26 08:06:56,844 - INFO - Verified VN network id 12 for VN 8c52198f-8514-48e8-a3d7-ded2669f89e9
2025-08-26 08:06:56,844 - INFO - Verifications in API Server for VN ctest-vn-84588515 passed
2025-08-26 08:06:56,844 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c52198f-8514-48e8-a3d7-ded2669f89e9
2025-08-26 08:06:56,859 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ae39e04-cb87-49b9-99dc-833c6278a901
2025-08-26 08:06:56,867 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ae39e04-cb87-49b9-99dc-833c6278a901
2025-08-26 08:06:56,875 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9ee8c2c-7312-435c-b7a8-da35e8511c09
2025-08-26 08:06:56,890 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-84588515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85724628', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10111172217603901672', 'uuid-lslong': '11806149943421274601'}, 'enable': 'true', 'created': '2025-08-26T08:06:54', 'last-modified': '2025-08-26T08:06:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510479'}
2025-08-26 08:06:56,898 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 08:06:56,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84588515 passed
2025-08-26 08:06:56,899 - DEBUG - ====Verifying policy data for ctest-vn-84588515 in API_Server ======
2025-08-26 08:06:56,899 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-26 08:06:56,906 - DEBUG - Requesting: http://10.0.0.50:8082/domain/342c02d5-2795-4e1c-82bc-cda74abc5ff4
2025-08-26 08:06:56,919 - DEBUG - Requesting: http://10.0.0.50:8082/project/6edd674e-1195-4b80-bd87-072455458c51
2025-08-26 08:06:57,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c52198f-8514-48e8-a3d7-ded2669f89e9
2025-08-26 08:06:57,016 - DEBUG - ==>Verifying data for policy with id: 89d24473-4aa3-4c7f-a716-d71f2b92f7e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-85724628', 'ctest-policy-allow-all-10408876']
2025-08-26 08:06:57,016 - INFO - VN ctest-vn-84588515 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 08:06:57,016 - DEBUG - Verifying the vn in opserver
2025-08-26 08:06:57,016 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-84588515 virtual network link through opserver 10.0.0.50
2025-08-26 08:06:57,016 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-26 08:06:57,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-84588515', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-84588515?flat'}
2025-08-26 08:06:57,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85724628:ctest-vn-84588515 is found in opserver
2025-08-26 08:06:57,038 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 08:06:57,044 - DEBUG - VRF ids for VN ctest-vn-84588515: {}
2025-08-26 08:06:57,109 - DEBUG - Services list from nova: [