2024-08-27 01:06:04,892 - INFO - Domain Default found not creating
2024-08-27 01:06:05,202 - INFO - Project ctest-TestBasicPolicy-38880541 not found, creating it
2024-08-27 01:06:05,994 - INFO - Created Project:ctest-TestBasicPolicy-38880541, ID : 4003b723-a149-43ab-8c7e-cf6de33bfb18
2024-08-27 01:06:08,221 - INFO - ================================================================================
2024-08-27 01:06:08,222 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 01:06:08,223 - 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-08-27 01:06:08,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.69': {'10.20.0.21': '0'}} with
2024-08-27 01:06:08,554 - INFO - Initial checks done. Running the testcase now
2024-08-27 01:06:08,554 - INFO -
2024-08-27 01:06:09,313 - DEBUG - Response for create_network : {'network': {'id': 'f388c86d-36e0-45bb-b94d-68476a0879c7', 'name': 'ctest-vn-60580154', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-60580154'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 01:06:09,555 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c89fc453-c662-4592-a932-1e5df796ff18', 'name': '', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'network_id': 'f388c86d-36e0-45bb-b94d-68476a0879c7', 'ip_version': 4, 'cidr': '40.12.58.192/26', 'allocation_pools': [{'start': '40.12.58.194', 'end': '40.12.58.254'}], 'gateway_ip': '40.12.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.12.58.194', 'tags': [], 'project_id': '4003b723a14943ab8c7ecf6de33bfb18'}}
2024-08-27 01:06:09,593 - INFO - Created VN ctest-vn-60580154
2024-08-27 01:06:09,650 - DEBUG - VN ctest-vn-60580154 UUID is f388c86d-36e0-45bb-b94d-68476a0879c7
2024-08-27 01:06:10,291 - DEBUG - Response for create_network : {'network': {'id': 'dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48', 'name': 'ctest-vn-77942183', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-77942183'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 01:06:10,506 - DEBUG - Response for create_subnet : {'subnet': {'id': '4896c128-8a64-490d-b2ab-111780c11923', 'name': '', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'network_id': 'dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48', 'ip_version': 4, 'cidr': '66.15.71.0/26', 'allocation_pools': [{'start': '66.15.71.2', 'end': '66.15.71.62'}], 'gateway_ip': '66.15.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.15.71.2', 'tags': [], 'project_id': '4003b723a14943ab8c7ecf6de33bfb18'}}
2024-08-27 01:06:10,528 - INFO - Created VN ctest-vn-77942183
2024-08-27 01:06:10,582 - DEBUG - VN ctest-vn-77942183 UUID is dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48
2024-08-27 01:06:10,745 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154, 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-38880541:ctest-vn-77942183, 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-08-27 01:06:11,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f388c86d-36e0-45bb-b94d-68476a0879c7', 'name': 'ctest-vn-60580154', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c89fc453-c662-4592-a932-1e5df796ff18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-60580154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046']], 'subnet_ipam': [{'subnet_cidr': '40.12.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 01:06:11,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48', 'name': 'ctest-vn-77942183', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4896c128-8a64-490d-b2ab-111780c11923'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-77942183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046']], 'subnet_ipam': [{'subnet_cidr': '66.15.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 01:06:11,838 - DEBUG - Requesting: http://10.0.0.69:8082/domains
2024-08-27 01:06:12,212 - DEBUG - Requesting: http://10.0.0.69:8082/domains
2024-08-27 01:06:12,364 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6
2024-08-27 01:06:12,396 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18
2024-08-27 01:06:12,503 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7
2024-08-27 01:06:12,531 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7
2024-08-27 01:06:12,559 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9
2024-08-27 01:06:12,583 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9
2024-08-27 01:06:12,605 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/741d6c3a-8740-491e-aaba-953aedc1656f
2024-08-27 01:06:12,624 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 01:06:12,624 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7
2024-08-27 01:06:12,645 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9
2024-08-27 01:06:12,673 - INFO - Verified VN network id 7 for VN f388c86d-36e0-45bb-b94d-68476a0879c7
2024-08-27 01:06:12,673 - INFO - Verifications in API Server for VN ctest-vn-60580154 passed
2024-08-27 01:06:12,673 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7
2024-08-27 01:06:12,693 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9
2024-08-27 01:06:12,708 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9
2024-08-27 01:06:12,726 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/741d6c3a-8740-491e-aaba-953aedc1656f
2024-08-27 01:06:12,766 - DEBUG - Control-node 10.0.0.69 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38880541', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17548496319446795707', 'uuid-lslong': '13352443126154295751'}, 'enable': 'true', 'created': '2024-08-27T01:06:09', 'last-modified': '2024-08-27T01:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.550033'}
2024-08-27 01:06:12,788 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 01:06:12,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60580154 passed
2024-08-27 01:06:12,789 - DEBUG - ====Verifying policy data for ctest-vn-60580154 in API_Server ======
2024-08-27 01:06:12,789 - DEBUG - Requesting: http://10.0.0.69:8082/domains
2024-08-27 01:06:12,805 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6
2024-08-27 01:06:12,834 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18
2024-08-27 01:06:12,942 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7
2024-08-27 01:06:12,958 - DEBUG - ==>Verifying data for policy with id: 2994070f-f7f9-4970-acaa-5d5a596e59c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046']
2024-08-27 01:06:12,959 - INFO - VN ctest-vn-60580154 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 01:06:12,959 - DEBUG - Verifying the vn in opserver
2024-08-27 01:06:12,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154 virtual network link through opserver 10.0.0.69
2024-08-27 01:06:12,959 - DEBUG - Requesting: http://10.0.0.69:8081/analytics/uves/virtual-networks
2024-08-27 01:06:13,277 - DEBUG - Requesting: http://10.0.0.69:8081/analytics/uves/virtual-networks
2024-08-27 01:06:13,398 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154', 'href': 'http://10.0.0.69:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154?flat'}
2024-08-27 01:06:13,398 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154 is found in opserver
2024-08-27 01:06:13,437 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 01:06:13,453 - DEBUG - VRF ids for VN ctest-vn-60580154: {}
2024-08-27 01:06:13,453 - DEBUG - Requesting: http://10.0.0.69:8082/domains
2024-08-27 01:06:13,468 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6
2024-08-27 01:06:13,490 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18
2024-08-27 01:06:13,577 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48
2024-08-27 01:06:13,604 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48
2024-08-27 01:06:13,624 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c
2024-08-27 01:06:13,640 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c
2024-08-27 01:06:13,652 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/21bbef00-0caa-4e13-9047-95ee415fe362
2024-08-27 01:06:13,664 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 01:06:13,665 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48
2024-08-27 01:06:13,679 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c
2024-08-27 01:06:13,700 - INFO - Verified VN network id 8 for VN dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48
2024-08-27 01:06:13,700 - INFO - Verifications in API Server for VN ctest-vn-77942183 passed
2024-08-27 01:06:13,700 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48
2024-08-27 01:06:13,712 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c
2024-08-27 01:06:13,723 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c
2024-08-27 01:06:13,732 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/21bbef00-0caa-4e13-9047-95ee415fe362
2024-08-27 01:06:13,753 - DEBUG - Control-node 10.0.0.69 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38880541', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15883005653652949903', 'uuid-lslong': '9795821507488578120'}, 'enable': 'true', 'created': '2024-08-27T01:06:10', 'last-modified': '2024-08-27T01:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.155959'}
2024-08-27 01:06:13,766 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 01:06:13,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77942183 passed
2024-08-27 01:06:13,766 - DEBUG - ====Verifying policy data for ctest-vn-77942183 in API_Server ======
2024-08-27 01:06:13,766 - DEBUG - Requesting: http://10.0.0.69:8082/domains
2024-08-27 01:06:13,775 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6
2024-08-27 01:06:13,791 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18
2024-08-27 01:06:13,899 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48
2024-08-27 01:06:13,919 - DEBUG - ==>Verifying data for policy with id: 2994070f-f7f9-4970-acaa-5d5a596e59c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046']
2024-08-27 01:06:13,919 - INFO - VN ctest-vn-77942183 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 01:06:13,919 - DEBUG - Verifying the vn in opserver
2024-08-27 01:06:13,920 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183 virtual network link through opserver 10.0.0.69
2024-08-27 01:06:13,920 - DEBUG - Requesting: http://10.0.0.69:8081/analytics/uves/virtual-networks
2024-08-27 01:06:13,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183', 'href': 'http://10.0.0.69:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183?flat'}
2024-08-27 01:06:13,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183 is found in opserver
2024-08-27 01:06:13,971 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 01:06:13,987 - DEBUG - VRF ids for VN ctest-vn-77942183: {}
2024-08-27 01:06:14,163 - DEBUG - Services list from nova: [