2024-10-28 17:32:17,654 - INFO - Domain Default found not creating
2024-10-28 17:32:17,845 - INFO - Project ctest-TestBasicPolicy-01515961 not found, creating it
2024-10-28 17:32:18,358 - INFO - Created Project:ctest-TestBasicPolicy-01515961, ID : 20672c27-c1e8-4463-8a4e-bb8c68b4dbbf
2024-10-28 17:32:20,034 - INFO - ================================================================================
2024-10-28 17:32:20,035 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 17:32:20,035 - 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
2024-10-28 17:32:20,311 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.22': '0'}} with
2024-10-28 17:32:20,312 - INFO - Initial checks done. Running the testcase now
2024-10-28 17:32:20,312 - INFO -
2024-10-28 17:32:20,928 - DEBUG - Response for create_network : {'network': {'id': 'ad78c636-27cc-453a-b61e-e15ca48c27de', 'name': 'ctest-vn-35631471', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-35631471'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 17:32:21,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aebfded7-9bca-42fd-a9ec-bedfbfc35a53', 'name': '', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'network_id': 'ad78c636-27cc-453a-b61e-e15ca48c27de', 'ip_version': 4, 'cidr': '176.32.74.192/26', 'allocation_pools': [{'start': '176.32.74.194', 'end': '176.32.74.254'}], 'gateway_ip': '176.32.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.32.74.194', 'tags': [], 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf'}}
2024-10-28 17:32:21,179 - INFO - Created VN ctest-vn-35631471
2024-10-28 17:32:21,238 - DEBUG - VN ctest-vn-35631471 UUID is ad78c636-27cc-453a-b61e-e15ca48c27de
2024-10-28 17:32:21,596 - DEBUG - Response for create_network : {'network': {'id': '19f60bb0-8a59-4418-8700-a508cfedb18d', 'name': 'ctest-vn-06359809', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-06359809'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 17:32:21,837 - DEBUG - Response for create_subnet : {'subnet': {'id': '2568e122-2209-4faf-a86c-83f160c093af', 'name': '', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'network_id': '19f60bb0-8a59-4418-8700-a508cfedb18d', 'ip_version': 4, 'cidr': '158.159.205.0/26', 'allocation_pools': [{'start': '158.159.205.2', 'end': '158.159.205.62'}], 'gateway_ip': '158.159.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.159.205.2', 'tags': [], 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf'}}
2024-10-28 17:32:21,859 - INFO - Created VN ctest-vn-06359809
2024-10-28 17:32:21,918 - DEBUG - VN ctest-vn-06359809 UUID is 19f60bb0-8a59-4418-8700-a508cfedb18d
2024-10-28 17:32:22,053 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471, 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-01515961:ctest-vn-06359809, 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]
2024-10-28 17:32:22,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad78c636-27cc-453a-b61e-e15ca48c27de', 'name': 'ctest-vn-35631471', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aebfded7-9bca-42fd-a9ec-bedfbfc35a53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-35631471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652']], 'subnet_ipam': [{'subnet_cidr': '176.32.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 17:32:22,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19f60bb0-8a59-4418-8700-a508cfedb18d', 'name': 'ctest-vn-06359809', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2568e122-2209-4faf-a86c-83f160c093af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-06359809'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652']], 'subnet_ipam': [{'subnet_cidr': '158.159.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 17:32:22,862 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-28 17:32:23,163 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-28 17:32:23,208 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427
2024-10-28 17:32:23,225 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf
2024-10-28 17:32:23,320 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de
2024-10-28 17:32:23,339 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de
2024-10-28 17:32:23,356 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152
2024-10-28 17:32:23,366 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152
2024-10-28 17:32:23,379 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/cce48c09-a278-4488-9bb9-25e6b91f7c17
2024-10-28 17:32:23,389 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 17:32:23,389 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de
2024-10-28 17:32:23,405 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152
2024-10-28 17:32:23,427 - INFO - Verified VN network id 8 for VN ad78c636-27cc-453a-b61e-e15ca48c27de
2024-10-28 17:32:23,427 - INFO - Verifications in API Server for VN ctest-vn-35631471 passed
2024-10-28 17:32:23,427 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de
2024-10-28 17:32:23,443 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152
2024-10-28 17:32:23,454 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152
2024-10-28 17:32:23,463 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/cce48c09-a278-4488-9bb9-25e6b91f7c17
2024-10-28 17:32:23,478 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01515961', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12499958701665043770', 'uuid-lslong': '13123174152218093534'}, 'enable': 'true', 'created': '2024-10-28T17:32:20', 'last-modified': '2024-10-28T17:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.095118'}
2024-10-28 17:32:23,485 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 17:32:23,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35631471 passed
2024-10-28 17:32:23,486 - DEBUG - ====Verifying policy data for ctest-vn-35631471 in API_Server ======
2024-10-28 17:32:23,486 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-28 17:32:23,492 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427
2024-10-28 17:32:23,508 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf
2024-10-28 17:32:23,591 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de
2024-10-28 17:32:23,606 - DEBUG - ==>Verifying data for policy with id: a4201557-f83b-49bd-9f43-00231d722626, fqn: ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652']
2024-10-28 17:32:23,606 - INFO - VN ctest-vn-35631471 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 17:32:23,606 - DEBUG - Verifying the vn in opserver
2024-10-28 17:32:23,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471 virtual network link through opserver 10.0.0.30
2024-10-28 17:32:23,606 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-10-28 17:32:23,902 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-10-28 17:32:23,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471?flat'}
2024-10-28 17:32:23,971 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471 is found in opserver
2024-10-28 17:32:23,983 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 17:32:23,988 - DEBUG - VRF ids for VN ctest-vn-35631471: {}
2024-10-28 17:32:23,988 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-28 17:32:23,995 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427
2024-10-28 17:32:24,010 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf
2024-10-28 17:32:24,097 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d
2024-10-28 17:32:24,118 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d
2024-10-28 17:32:24,135 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366
2024-10-28 17:32:24,147 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366
2024-10-28 17:32:24,156 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/ec08e426-3912-4c7e-9251-f67d5e940075
2024-10-28 17:32:24,164 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 17:32:24,164 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d
2024-10-28 17:32:24,178 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366
2024-10-28 17:32:24,198 - INFO - Verified VN network id 9 for VN 19f60bb0-8a59-4418-8700-a508cfedb18d
2024-10-28 17:32:24,198 - INFO - Verifications in API Server for VN ctest-vn-06359809 passed
2024-10-28 17:32:24,198 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d
2024-10-28 17:32:24,213 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366
2024-10-28 17:32:24,223 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366
2024-10-28 17:32:24,232 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/ec08e426-3912-4c7e-9251-f67d5e940075
2024-10-28 17:32:24,246 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01515961', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1870695548082275352', 'uuid-lslong': '9727956652387053965'}, 'enable': 'true', 'created': '2024-10-28T17:32:21', 'last-modified': '2024-10-28T17:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.605229'}
2024-10-28 17:32:24,252 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 17:32:24,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06359809 passed
2024-10-28 17:32:24,253 - DEBUG - ====Verifying policy data for ctest-vn-06359809 in API_Server ======
2024-10-28 17:32:24,253 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-28 17:32:24,259 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427
2024-10-28 17:32:24,272 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf
2024-10-28 17:32:24,352 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d
2024-10-28 17:32:24,371 - DEBUG - ==>Verifying data for policy with id: a4201557-f83b-49bd-9f43-00231d722626, fqn: ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652']
2024-10-28 17:32:24,371 - INFO - VN ctest-vn-06359809 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 17:32:24,371 - DEBUG - Verifying the vn in opserver
2024-10-28 17:32:24,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809 virtual network link through opserver 10.0.0.30
2024-10-28 17:32:24,371 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-10-28 17:32:24,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809?flat'}
2024-10-28 17:32:24,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809 is found in opserver
2024-10-28 17:32:24,395 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 17:32:24,401 - DEBUG - VRF ids for VN ctest-vn-06359809: {}
2024-10-28 17:32:24,463 - DEBUG - Services list from nova: [