2025-06-25 12:13:43,819 - INFO - Domain Default found not creating
2025-06-25 12:13:43,992 - INFO - Project ctest-TestBasicPolicy-58498951 not found, creating it
2025-06-25 12:13:44,526 - INFO - Created Project:ctest-TestBasicPolicy-58498951, ID : 4cb2bf72-33ec-47c2-b06d-0b7425537d17
2025-06-25 12:13:46,094 - INFO - ================================================================================
2025-06-25 12:13:46,094 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-25 12:13:46,094 - 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-06-25 12:13:46,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-06-25 12:13:46,365 - INFO - Initial checks done. Running the testcase now
2025-06-25 12:13:46,365 - INFO -
2025-06-25 12:13:46,952 - DEBUG - Response for create_network : {'network': {'id': 'cbe383c7-5fd5-48e5-ac42-5252a21d9828', 'name': 'ctest-vn-70913836', 'tenant_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'project_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-vn-70913836'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 12:13:47,159 - DEBUG - Response for create_subnet : {'subnet': {'id': '01582ab7-736c-46cf-a7b3-b18d35bd2b33', 'name': '', 'tenant_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'network_id': 'cbe383c7-5fd5-48e5-ac42-5252a21d9828', 'ip_version': 4, 'cidr': '163.233.120.192/26', 'allocation_pools': [{'start': '163.233.120.194', 'end': '163.233.120.254'}], 'gateway_ip': '163.233.120.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.233.120.194', 'tags': [], 'project_id': '4cb2bf7233ec47c2b06d0b7425537d17'}}
2025-06-25 12:13:47,181 - INFO - Created VN ctest-vn-70913836
2025-06-25 12:13:47,236 - DEBUG - VN ctest-vn-70913836 UUID is cbe383c7-5fd5-48e5-ac42-5252a21d9828
2025-06-25 12:13:47,554 - DEBUG - Response for create_network : {'network': {'id': '71338178-0e5d-41c0-9f33-5500e529b8f5', 'name': 'ctest-vn-11609944', 'tenant_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'project_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-vn-11609944'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 12:13:47,751 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db978668-2eed-4c3b-b25d-e86090f985bd', 'name': '', 'tenant_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'network_id': '71338178-0e5d-41c0-9f33-5500e529b8f5', 'ip_version': 4, 'cidr': '20.169.41.128/26', 'allocation_pools': [{'start': '20.169.41.130', 'end': '20.169.41.190'}], 'gateway_ip': '20.169.41.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.169.41.130', 'tags': [], 'project_id': '4cb2bf7233ec47c2b06d0b7425537d17'}}
2025-06-25 12:13:47,773 - INFO - Created VN ctest-vn-11609944
2025-06-25 12:13:47,827 - DEBUG - VN ctest-vn-11609944 UUID is 71338178-0e5d-41c0-9f33-5500e529b8f5
2025-06-25 12:13:47,965 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-70913836, 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-58498951:ctest-vn-11609944, 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-06-25 12:13:48,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cbe383c7-5fd5-48e5-ac42-5252a21d9828', 'name': 'ctest-vn-70913836', 'tenant_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'project_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01582ab7-736c-46cf-a7b3-b18d35bd2b33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-vn-70913836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-policy-allow-all-85248034']], 'subnet_ipam': [{'subnet_cidr': '163.233.120.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 12:13:48,574 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71338178-0e5d-41c0-9f33-5500e529b8f5', 'name': 'ctest-vn-11609944', 'tenant_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'project_id': '4cb2bf7233ec47c2b06d0b7425537d17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db978668-2eed-4c3b-b25d-e86090f985bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-vn-11609944'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-policy-allow-all-85248034']], 'subnet_ipam': [{'subnet_cidr': '20.169.41.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 12:13:48,764 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-25 12:13:49,065 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-25 12:13:49,101 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08f2af9a-12f3-42d7-82e6-d5755904194d
2025-06-25 12:13:49,119 - DEBUG - Requesting: http://10.0.0.33:8082/project/4cb2bf72-33ec-47c2-b06d-0b7425537d17
2025-06-25 12:13:49,210 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cbe383c7-5fd5-48e5-ac42-5252a21d9828
2025-06-25 12:13:49,226 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cbe383c7-5fd5-48e5-ac42-5252a21d9828
2025-06-25 12:13:49,239 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/30a5acb8-d6bd-4608-b9af-f7bba979ebe4
2025-06-25 12:13:49,252 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/30a5acb8-d6bd-4608-b9af-f7bba979ebe4
2025-06-25 12:13:49,262 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2c501d7d-2367-4788-9961-cb9af964c4bf
2025-06-25 12:13:49,272 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 12:13:49,272 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cbe383c7-5fd5-48e5-ac42-5252a21d9828
2025-06-25 12:13:49,285 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/30a5acb8-d6bd-4608-b9af-f7bba979ebe4
2025-06-25 12:13:49,304 - INFO - Verified VN network id 8 for VN cbe383c7-5fd5-48e5-ac42-5252a21d9828
2025-06-25 12:13:49,305 - INFO - Verifications in API Server for VN ctest-vn-70913836 passed
2025-06-25 12:13:49,305 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cbe383c7-5fd5-48e5-ac42-5252a21d9828
2025-06-25 12:13:49,321 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/30a5acb8-d6bd-4608-b9af-f7bba979ebe4
2025-06-25 12:13:49,335 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/30a5acb8-d6bd-4608-b9af-f7bba979ebe4
2025-06-25 12:13:49,347 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2c501d7d-2367-4788-9961-cb9af964c4bf
2025-06-25 12:13:49,364 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-70913836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58498951', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14691731301742233829', 'uuid-lslong': '12412574037847152680'}, 'enable': 'true', 'created': '2025-06-25T12:13:46', 'last-modified': '2025-06-25T12:13:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087630'}
2025-06-25 12:13:49,375 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 12:13:49,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70913836 passed
2025-06-25 12:13:49,376 - DEBUG - ====Verifying policy data for ctest-vn-70913836 in API_Server ======
2025-06-25 12:13:49,376 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-25 12:13:49,386 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08f2af9a-12f3-42d7-82e6-d5755904194d
2025-06-25 12:13:49,403 - DEBUG - Requesting: http://10.0.0.33:8082/project/4cb2bf72-33ec-47c2-b06d-0b7425537d17
2025-06-25 12:13:49,482 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cbe383c7-5fd5-48e5-ac42-5252a21d9828
2025-06-25 12:13:49,496 - DEBUG - ==>Verifying data for policy with id: d97e7cf7-df8b-4b70-92e2-45853a89fbfd, fqn: ['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-policy-allow-all-85248034']
2025-06-25 12:13:49,496 - INFO - VN ctest-vn-70913836 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 12:13:49,496 - DEBUG - Verifying the vn in opserver
2025-06-25 12:13:49,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-70913836 virtual network link through opserver 10.0.0.33
2025-06-25 12:13:49,496 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-25 12:13:49,800 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-25 12:13:49,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-70913836', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-70913836?flat'}
2025-06-25 12:13:49,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-70913836 is found in opserver
2025-06-25 12:13:49,883 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 12:13:49,889 - DEBUG - VRF ids for VN ctest-vn-70913836: {}
2025-06-25 12:13:49,889 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-25 12:13:49,897 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08f2af9a-12f3-42d7-82e6-d5755904194d
2025-06-25 12:13:49,912 - DEBUG - Requesting: http://10.0.0.33:8082/project/4cb2bf72-33ec-47c2-b06d-0b7425537d17
2025-06-25 12:13:49,990 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/71338178-0e5d-41c0-9f33-5500e529b8f5
2025-06-25 12:13:50,004 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/71338178-0e5d-41c0-9f33-5500e529b8f5
2025-06-25 12:13:50,019 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5e0c7aa0-6122-4f14-9e71-8c3a4a5fae82
2025-06-25 12:13:50,028 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5e0c7aa0-6122-4f14-9e71-8c3a4a5fae82
2025-06-25 12:13:50,039 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b0996f2d-5888-49ae-acb0-578662988297
2025-06-25 12:13:50,050 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 12:13:50,050 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/71338178-0e5d-41c0-9f33-5500e529b8f5
2025-06-25 12:13:50,065 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5e0c7aa0-6122-4f14-9e71-8c3a4a5fae82
2025-06-25 12:13:50,089 - INFO - Verified VN network id 9 for VN 71338178-0e5d-41c0-9f33-5500e529b8f5
2025-06-25 12:13:50,089 - INFO - Verifications in API Server for VN ctest-vn-11609944 passed
2025-06-25 12:13:50,089 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/71338178-0e5d-41c0-9f33-5500e529b8f5
2025-06-25 12:13:50,105 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5e0c7aa0-6122-4f14-9e71-8c3a4a5fae82
2025-06-25 12:13:50,118 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5e0c7aa0-6122-4f14-9e71-8c3a4a5fae82
2025-06-25 12:13:50,131 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b0996f2d-5888-49ae-acb0-578662988297
2025-06-25 12:13:50,150 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-11609944', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58498951', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8157005702735151552', 'uuid-lslong': '11471606138175863029'}, 'enable': 'true', 'created': '2025-06-25T12:13:47', 'last-modified': '2025-06-25T12:13:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.606230'}
2025-06-25 12:13:50,160 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 12:13:50,160 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11609944 passed
2025-06-25 12:13:50,160 - DEBUG - ====Verifying policy data for ctest-vn-11609944 in API_Server ======
2025-06-25 12:13:50,161 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-25 12:13:50,171 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08f2af9a-12f3-42d7-82e6-d5755904194d
2025-06-25 12:13:50,186 - DEBUG - Requesting: http://10.0.0.33:8082/project/4cb2bf72-33ec-47c2-b06d-0b7425537d17
2025-06-25 12:13:50,284 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/71338178-0e5d-41c0-9f33-5500e529b8f5
2025-06-25 12:13:50,297 - DEBUG - ==>Verifying data for policy with id: d97e7cf7-df8b-4b70-92e2-45853a89fbfd, fqn: ['default-domain', 'ctest-TestBasicPolicy-58498951', 'ctest-policy-allow-all-85248034']
2025-06-25 12:13:50,297 - INFO - VN ctest-vn-11609944 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 12:13:50,297 - DEBUG - Verifying the vn in opserver
2025-06-25 12:13:50,297 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-11609944 virtual network link through opserver 10.0.0.33
2025-06-25 12:13:50,298 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-25 12:13:50,312 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-11609944', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-11609944?flat'}
2025-06-25 12:13:50,312 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58498951:ctest-vn-11609944 is found in opserver
2025-06-25 12:13:50,325 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 12:13:50,332 - DEBUG - VRF ids for VN ctest-vn-11609944: {}
2025-06-25 12:13:50,414 - DEBUG - Services list from nova: [