2025-04-09 15:03:52,818 - INFO - Domain Default found not creating
2025-04-09 15:03:52,983 - INFO - Project ctest-TestBasicPolicy-29529974 not found, creating it
2025-04-09 15:03:53,484 - INFO - Created Project:ctest-TestBasicPolicy-29529974, ID : af8a8963-f78a-4c0c-82fb-aa541e6bcf54
2025-04-09 15:03:55,016 - INFO - ================================================================================
2025-04-09 15:03:55,016 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 15:03:55,017 - 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-04-09 15:03:55,284 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-04-09 15:03:55,284 - INFO - Initial checks done. Running the testcase now
2025-04-09 15:03:55,285 - INFO -
2025-04-09 15:03:55,856 - DEBUG - Response for create_network : {'network': {'id': '19a68a25-6536-4145-8da8-11a2949d82c2', 'name': 'ctest-vn-19713256', 'tenant_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'project_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-vn-19713256'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:03:56,070 - DEBUG - Response for create_subnet : {'subnet': {'id': '73c47134-b130-4fea-a943-e25889dc8d6a', 'name': '', 'tenant_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'network_id': '19a68a25-6536-4145-8da8-11a2949d82c2', 'ip_version': 4, 'cidr': '168.122.132.64/26', 'allocation_pools': [{'start': '168.122.132.66', 'end': '168.122.132.126'}], 'gateway_ip': '168.122.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.122.132.66', 'tags': [], 'project_id': 'af8a8963f78a4c0c82fbaa541e6bcf54'}}
2025-04-09 15:03:56,088 - INFO - Created VN ctest-vn-19713256
2025-04-09 15:03:56,142 - DEBUG - VN ctest-vn-19713256 UUID is 19a68a25-6536-4145-8da8-11a2949d82c2
2025-04-09 15:03:56,466 - DEBUG - Response for create_network : {'network': {'id': '1433542e-fd5e-4487-8aae-9dd9483f6d44', 'name': 'ctest-vn-71431875', 'tenant_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'project_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-vn-71431875'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:03:56,645 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f76b383-ded1-433b-b47e-8f7d548cd8df', 'name': '', 'tenant_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'network_id': '1433542e-fd5e-4487-8aae-9dd9483f6d44', 'ip_version': 4, 'cidr': '100.212.94.192/26', 'allocation_pools': [{'start': '100.212.94.194', 'end': '100.212.94.254'}], 'gateway_ip': '100.212.94.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.212.94.194', 'tags': [], 'project_id': 'af8a8963f78a4c0c82fbaa541e6bcf54'}}
2025-04-09 15:03:56,664 - INFO - Created VN ctest-vn-71431875
2025-04-09 15:03:56,722 - DEBUG - VN ctest-vn-71431875 UUID is 1433542e-fd5e-4487-8aae-9dd9483f6d44
2025-04-09 15:03:56,850 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-19713256, 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-29529974:ctest-vn-71431875, 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-04-09 15:03:57,155 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19a68a25-6536-4145-8da8-11a2949d82c2', 'name': 'ctest-vn-19713256', 'tenant_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'project_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73c47134-b130-4fea-a943-e25889dc8d6a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-vn-19713256'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-policy-allow-all-30786484']], 'subnet_ipam': [{'subnet_cidr': '168.122.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:03:57,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1433542e-fd5e-4487-8aae-9dd9483f6d44', 'name': 'ctest-vn-71431875', 'tenant_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'project_id': 'af8a8963f78a4c0c82fbaa541e6bcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f76b383-ded1-433b-b47e-8f7d548cd8df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-vn-71431875'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-policy-allow-all-30786484']], 'subnet_ipam': [{'subnet_cidr': '100.212.94.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 15:03:57,598 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 15:03:57,912 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 15:03:57,944 - DEBUG - Requesting: http://10.0.0.249:8082/domain/af850899-bfa8-47c0-8575-89352504bd43
2025-04-09 15:03:57,958 - DEBUG - Requesting: http://10.0.0.249:8082/project/af8a8963-f78a-4c0c-82fb-aa541e6bcf54
2025-04-09 15:03:58,030 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/19a68a25-6536-4145-8da8-11a2949d82c2
2025-04-09 15:03:58,042 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/19a68a25-6536-4145-8da8-11a2949d82c2
2025-04-09 15:03:58,053 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2ebc1d4-ebb9-48d8-a12d-c599d8854923
2025-04-09 15:03:58,062 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2ebc1d4-ebb9-48d8-a12d-c599d8854923
2025-04-09 15:03:58,070 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/afeb5fa5-e0c1-4a44-8adb-b7368e3bcecc
2025-04-09 15:03:58,077 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 15:03:58,077 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/19a68a25-6536-4145-8da8-11a2949d82c2
2025-04-09 15:03:58,090 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2ebc1d4-ebb9-48d8-a12d-c599d8854923
2025-04-09 15:03:58,106 - INFO - Verified VN network id 9 for VN 19a68a25-6536-4145-8da8-11a2949d82c2
2025-04-09 15:03:58,106 - INFO - Verifications in API Server for VN ctest-vn-19713256 passed
2025-04-09 15:03:58,107 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/19a68a25-6536-4145-8da8-11a2949d82c2
2025-04-09 15:03:58,117 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2ebc1d4-ebb9-48d8-a12d-c599d8854923
2025-04-09 15:03:58,127 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c2ebc1d4-ebb9-48d8-a12d-c599d8854923
2025-04-09 15:03:58,136 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/afeb5fa5-e0c1-4a44-8adb-b7368e3bcecc
2025-04-09 15:03:58,150 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-19713256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29529974', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1848316590298644805', 'uuid-lslong': '10207427945410953922'}, 'enable': 'true', 'created': '2025-04-09T15:03:55', 'last-modified': '2025-04-09T15:03:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017091'}
2025-04-09 15:03:58,158 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 15:03:58,159 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19713256 passed
2025-04-09 15:03:58,159 - DEBUG - ====Verifying policy data for ctest-vn-19713256 in API_Server ======
2025-04-09 15:03:58,159 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 15:03:58,165 - DEBUG - Requesting: http://10.0.0.249:8082/domain/af850899-bfa8-47c0-8575-89352504bd43
2025-04-09 15:03:58,178 - DEBUG - Requesting: http://10.0.0.249:8082/project/af8a8963-f78a-4c0c-82fb-aa541e6bcf54
2025-04-09 15:03:58,258 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/19a68a25-6536-4145-8da8-11a2949d82c2
2025-04-09 15:03:58,271 - DEBUG - ==>Verifying data for policy with id: 7d0da80b-167c-4720-bbae-e988ea68f530, fqn: ['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-policy-allow-all-30786484']
2025-04-09 15:03:58,271 - INFO - VN ctest-vn-19713256 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 15:03:58,271 - DEBUG - Verifying the vn in opserver
2025-04-09 15:03:58,271 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-19713256 virtual network link through opserver 10.0.0.249
2025-04-09 15:03:58,271 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-09 15:03:58,565 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-09 15:03:58,633 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-19713256', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-19713256?flat'}
2025-04-09 15:03:58,633 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-19713256 is found in opserver
2025-04-09 15:03:58,649 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 15:03:58,656 - DEBUG - VRF ids for VN ctest-vn-19713256: {}
2025-04-09 15:03:58,656 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 15:03:58,666 - DEBUG - Requesting: http://10.0.0.249:8082/domain/af850899-bfa8-47c0-8575-89352504bd43
2025-04-09 15:03:58,681 - DEBUG - Requesting: http://10.0.0.249:8082/project/af8a8963-f78a-4c0c-82fb-aa541e6bcf54
2025-04-09 15:03:58,756 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1433542e-fd5e-4487-8aae-9dd9483f6d44
2025-04-09 15:03:58,777 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1433542e-fd5e-4487-8aae-9dd9483f6d44
2025-04-09 15:03:58,787 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/291bdea2-4053-4f72-ba34-9c6e0bbd6c3c
2025-04-09 15:03:58,798 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/291bdea2-4053-4f72-ba34-9c6e0bbd6c3c
2025-04-09 15:03:58,808 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d594494-f854-4855-972f-1cebe1565f58
2025-04-09 15:03:58,817 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 15:03:58,817 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1433542e-fd5e-4487-8aae-9dd9483f6d44
2025-04-09 15:03:58,830 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/291bdea2-4053-4f72-ba34-9c6e0bbd6c3c
2025-04-09 15:03:58,846 - INFO - Verified VN network id 10 for VN 1433542e-fd5e-4487-8aae-9dd9483f6d44
2025-04-09 15:03:58,846 - INFO - Verifications in API Server for VN ctest-vn-71431875 passed
2025-04-09 15:03:58,846 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1433542e-fd5e-4487-8aae-9dd9483f6d44
2025-04-09 15:03:58,858 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/291bdea2-4053-4f72-ba34-9c6e0bbd6c3c
2025-04-09 15:03:58,866 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/291bdea2-4053-4f72-ba34-9c6e0bbd6c3c
2025-04-09 15:03:58,875 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d594494-f854-4855-972f-1cebe1565f58
2025-04-09 15:03:58,889 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-71431875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29529974', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1455599665366844551', 'uuid-lslong': '9993098179727289668'}, 'enable': 'true', 'created': '2025-04-09T15:03:56', 'last-modified': '2025-04-09T15:03:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513505'}
2025-04-09 15:03:58,897 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 15:03:58,897 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71431875 passed
2025-04-09 15:03:58,897 - DEBUG - ====Verifying policy data for ctest-vn-71431875 in API_Server ======
2025-04-09 15:03:58,898 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 15:03:58,904 - DEBUG - Requesting: http://10.0.0.249:8082/domain/af850899-bfa8-47c0-8575-89352504bd43
2025-04-09 15:03:58,918 - DEBUG - Requesting: http://10.0.0.249:8082/project/af8a8963-f78a-4c0c-82fb-aa541e6bcf54
2025-04-09 15:03:58,993 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1433542e-fd5e-4487-8aae-9dd9483f6d44
2025-04-09 15:03:59,006 - DEBUG - ==>Verifying data for policy with id: 7d0da80b-167c-4720-bbae-e988ea68f530, fqn: ['default-domain', 'ctest-TestBasicPolicy-29529974', 'ctest-policy-allow-all-30786484']
2025-04-09 15:03:59,006 - INFO - VN ctest-vn-71431875 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 15:03:59,007 - DEBUG - Verifying the vn in opserver
2025-04-09 15:03:59,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-71431875 virtual network link through opserver 10.0.0.249
2025-04-09 15:03:59,007 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-09 15:03:59,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-71431875', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-71431875?flat'}
2025-04-09 15:03:59,021 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29529974:ctest-vn-71431875 is found in opserver
2025-04-09 15:03:59,033 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 15:03:59,039 - DEBUG - VRF ids for VN ctest-vn-71431875: {}
2025-04-09 15:03:59,105 - DEBUG - Services list from nova: [