vania-janet/multiturn-rag-retrieval-data huggingface dataset:
* [Step 5: Restart the pod](https://cloud.ibm.com/docs/openshift?topic=openshift-debug_cluster_autoscalerca-debug-pod-restart)
* [Step 6: Disable and reenable](https://cloud.ibm.com/docs/openshift?topic=openshift-debug_cluster_autoscalerca-debug-disable)
* [Step 8: Check if the issue is resolved](https://cloud.ibm.com/docs/openshift?topic=openshift-debug_cluster_autoscalerca-debug-more)



[Autoscaling fails after API key reset](https://cloud.ibm.com/docs/openshift?topic=openshift-ts-storage-ca-apikey-resetts-storage-ca-apikey-reset)

[Why can't I resize or rebalance my worker pool?](https://cloud.ibm.com/docs/openshift?topic=openshift-ts-ca-resizets-ca-resize)

[Why are my autoscaled worker pools unbalanced?](https://cloud.ibm.com/docs/openshift?topic=openshift-ts-ca-unbalancedts-ca-unbalanced)





 Cluster network 

[Why is my cluster missing the public containers.appdomain.cloud subdomain?](https://cloud.ibm.com/docs/openshift?topic=openshift-roks_ts_subdomainroks_ts_subdomain)

[Why does my worker node show a NetworkUnavailable error?](https://cloud.ibm.com/docs/openshift?topic=openshift-ts-network-calico-nodets-network-calico-node)
[Log in to your cluster](https://cloud.ibm.com/docs/openshift?topic=openshift-access_cluster). Note that if the Red Hat OpenShift web console does not work for you to get the login token, you can [access the cluster from the CLI](https://cloud.ibm.com/docs/openshift?topic=openshift-access_clusteraccess_oc_cli).

VPC only: If you enabled the private cloud service endpoint, you must be [connected to the private network through your VPC VPN connection](https://cloud.ibm.com/docs/openshift?topic=openshift-access_clustervpc_private_se) to access the web console.





 Step 6: Check the component pods 

Check the health of the Red Hat OpenShift component pods that don't work.



1. Check the status of the pod.

oc get pods -n <project>
2. If a pod is not in a Running status, describe the pod and check for the events. For example, you might see an error that the pod can't be scheduled because of a lack of CPU or memory resources, which is common if you have a cluster with less than 3 worker nodes. [Resize your worker pool](https://cloud.ibm.com/docs/openshift?topic=openshift-add_workers) and try again.

oc describe pod -n <project> <pod>
3. If you don't see any helpful information in the events section, check the pod logs for any error messages or other troubleshooting information.

oc logs pod -n <project> <pod>
4. Restart the pod and check if it reaches a Running status.

oc delete pod -n <project> <pod>







 Step 7: Check the system pods 

If the pods are healthy, check if other system pods are experiencing issues. Oftentimes to function properly, one component depends on another component to be healthy.
Why does the Ingress status show an ERRDRISS error? 

Virtual Private Cloud

Classic infrastructure

Satellite

You can use the the ibmcloud oc ingress status-report ignored-errors add command to add an error to the ignored-errors list. Ignored errors still appear in the output of the ibmcloud oc ingress status-report get command, but are ignored when calculating the overall Ingress Status.

 What’s happening 

When you check the status of your cluster's Ingress components by running the ibmcloud oc ingress status-report get command, you see an error similar to the following example.

The subdomain has DNS resolution issues (ERRDRISS).

 Why it’s happening 

One or more managed subdomains that belong to your cluster are not resolving correctly. Your subdomain configuration might be incorrect or the backend IPs have health issues.

 How to fix it 

Review and update your managed subdomains.



1. Get the list of the managed domains using the ibmcloud oc nlb-dns ls[command](https://cloud.ibm.com/docs/openshift?topic=openshift-kubernetes-service-clics_nlb-dns-ls).
2. Use dig to resolve your domains and verify that they resolve to the configured addresses.

dig <subdomain>
3. If you get NXDOMAIN or you see missing addresses, verify that your domain has correct configuration.



* Make sure that the domain does not have mixed IP address types. For example, make sure the domain contains only public or only private IP addresses.
* Make sure that the domain does not have malformed IP addresses or load balancer hostnames registered.



4. Check if the domain has health monitoring.



* Get the list of the subdomain that have health monitoring enabled using the ibmcloud oc nlb-dns monitor ls[command](https://cloud.ibm.com/docs/openshift?topic=openshift-kubernetes-service-clics_nlb-dns-monitor-ls).
For more information about troubleshooting Linux network speed issues, see [Using iPerf to Troubleshoot Speed and Throughput Issues](https://www.ibm.com/cloud/blog/using-iperf-to-troubleshoot-speed-and-throughput-issues?mhsrc=ibmsearch_a&mhq=iperf).





 Why do I have RHEL package issues? 

If you experience one of the following RHEL package issues, see the possible solutions.



* Can't download new packages for RHEL servers
* Can't update packages through YUM
* Can't connect to internal IBM Cloud® YUM repositories



Possible solutions



1. Check the connectivity of server with IBM DNS servers.



* Verify that the server is using IBM repositories within its /etc/resolv.conf file (10.0.80.11/12).
* Test ping DNS server IPS (10.0.80.11 & 10.0.80.12).



2. Check whether the private network is pinging. A private network is used for YUM updates and downloads, so IBM repositories need to be connected through a private interface.
3. Allow the proper IP ranges for the back-end network through your gateway and or security groups. For more information, see [Red Hat Enterprise Linux server requirements](https://cloud.ibm.com/docs/cloud-infrastructure?topic=cloud-infrastructure-ibm-cloud-ip-rangesred-hat-enterprise-linux-server) and [Getting started with IBM security groups](https://cloud.ibm.com/docs/security-groups?topic=security-groups-getting-started).
4. Check your subscription status by using the following commands.



* subscription-manager status



Expected output

System Status Details
Overall Status: Current



* subscription-manager identity



If the registration status is “Unknown”, then you need to register the server. To register your server, open a [support case](https://cloud.ibm.com/docs/virtual-servers?topic=virtual-servers-gettinghelp).
"Movie_name": "Avatar",
"Movie_earnings_rank": "1",
"Person_pob": "New Jersey, USA",
"Movie_year": 2009,
"Person_dob": "1978-06-19"
}
],
"bookmark": "g2wA ... Omo"
}
Show more

See the following example that uses HTTP for a slightly more complex search:

POST /my-movies/_find HTTP/1.1
Host: $SERVICE_URL
Content-Type: application/json
{
"selector": {
"Person_name":"Robert De Niro",
"Movie_year": 1978
}
}

See the following example that uses the command line for a slightly more complex search:



* Curl
* Java
* Node
* Python
* Go



curl -X POST -H "Content-Type: application/json" 	"$SERVICE_URL/my-movies/_find" 	-d '{"selector": {"Person_name":"Robert De Niro", "Movie_year": 1978}}'

import com.ibm.cloud.cloudant.v1.Cloudant;
import com.ibm.cloud.cloudant.v1.model.FindResult;
import com.ibm.cloud.cloudant.v1.model.PostFindOptions;

import java.util.HashMap;
import java.util.Map;

Cloudant service = Cloudant.newInstance();

Map<String, Object> selector = new HashMap<>();
selector.put("Person_name", "Robert De Niro");
selector.put("Movie_year", 1978);

PostFindOptions findOptions = new PostFindOptions.Builder()
.db("my-movies")
.selector(selector)
.build();

FindResult response =
- status: "True"
        type: Admitted
4. Review the configuration of Route resources that are not admitted:



* Ensure the Route configuration is correct. See [Route configuration](https://docs.openshift.com/container-platform/4.11/networking/routes/route-configuration.html).
* Ensure you do not have two Route resources with the same host, in this case only one of them is admitted.
* If you configured [Ingress Controller sharding](https://docs.openshift.com/container-platform/4.11/networking/ingress-operator.htmlnw-ingress-sharding_configuring-ingress), ensure that the labels on the Route resource or on the namespace containing the Route resource are correct.



If you no longer need the Route which is not admitted, delete it using the oc delete route command.
5. Wait 10 to 15 minutes, then check your Routes again by running the oc get routes -A command.
6. If you see a different error, repeat the troubleshooting steps. If the issue persists, contact support. Open a [support case](https://cloud.ibm.com/docs/get-support?topic=get-support-using-avatar). In the case details, be sure to include any relevant log files, error messages, or command outputs.
* [Verifying that the storage driver and plug-in pods show a status of Running](https://cloud.ibm.com/docs/openshift?topic=openshift-debug_storage_blockdebug_storage_block_driver_plugin)
* [Checking whether your PVC is successfully provisioned.](https://cloud.ibm.com/docs/openshift?topic=openshift-debug_storage_blockdebug_storage_block_pvc)
* [Checking and updating the oc CLI version](https://cloud.ibm.com/docs/openshift?topic=openshift-debug_storage_blockdebug_storage_block_cli)
* [Checking and updating the Block Storage for Classic driver](https://cloud.ibm.com/docs/openshift?topic=openshift-debug_storage_blockdebug_storage_block_driver)



[Why can't my app access or write to PVCs?](https://cloud.ibm.com/docs/openshift?topic=openshift-block_app_failuresblock_app_failures)

[Why does mounting existing block storage to a pod fail with the wrong file system?](https://cloud.ibm.com/docs/openshift?topic=openshift-block_filesystemblock_filesystem)

[Why does block storage change to read-only?](https://cloud.ibm.com/docs/openshift?topic=openshift-readonly_blockreadonly_block)

[Why does the Block storage plug-in Helm chart give CPU throttling warnings?](https://cloud.ibm.com/docs/openshift?topic=openshift-block_helm_cpublock_helm_cpu)
For 1G connections, use 1G optic; for connections greater than 1G, use a 10G optic. (1310nm optic - 1G=1000BASE-LX / 10G=10GBASE-LR)
5. Check the light levels from the Meet Me Room (MMR) to make sure that you're sending light to IBM and receiving light from IBM.
6. Try rolling the fiber by flipping TX/RX strands. Roll only one end, not both.
7. Make sure that the edge device port is set to auto-negotiate. If auto-negotiate does not work, then remove auto-negotiation by forcing the speed duplex settings.
8. Shut/no shut or disable/enable the interface if the port does not come up.



If these steps do not resolve the Direct Link Dedicated physical issue, contact the Advanced Customer Support (ACS) networking team and provide the gateway ID that is experiencing issues.
"field": "STATE",
"count": 3,
"results":
{
"key": "CA",
"matching_results": 1210,
"aggregations":
{
"type": "average",
"field": "VEH_SPEED",
"value": 26.239653512993264
},
{
"type": "term",
"field": "CITY",
"count": 2,
"results":
{
"key": "LOS ANGELES",
"matching_results": 77
},
{
"key": "SAN DIEGO",
"matching_results": 66
}
]
}
] ! ! ! ! ! !
}
Show more
<-- </section "id="section-average-example" "> --><-- </section "id="section-average" "> --><-- <section "id="section-aggfilter" "> --> filter A modifier that narrows the document set of the aggregation query that it precedes.<-- <section "id="section-aggfilter-syntax" "> --> Syntax filter(field)
<-- </section "id="section-aggfilter-syntax" "> --><-- <section "id="section-aggfilter-example" "> --> Example The following example filters the matching document set to include only documents that mention IBM. filter(enriched_text.entities.text:IBM)
When combined with other aggregations, filters the matching documents set to include only those documents that meet the condition you specify. {
"query":"brake",
"aggregation": "filter(VEH_SPEED>50).term(field:STATE,count:3).term(field:CITY,count:2)"
}
* [expression](https://cloud.ibm.com/docs/sql-query?topic=sql-query-sql-referenceexpression)







 Related references - case expression 

A case expression is referenced by the following clause:



* [primaryExpression](https://cloud.ibm.com/docs/sql-query?topic=sql-query-sql-referenceprimaryExpression)









 Time series expressions 

The syntax of a time series expression is described by the following syntax diagrams.



 timeSeriesExpression 

The syntax shows time series functions that require expressions, such as TS_MAP(), TS_FILTER(), TS_SEGMENT_BY_ANCHOR(), TS_SEGMENT_BY_MARKER(), TS_SEGMENT_BY_DUAL_MARKER(), TS_FIND(), and TS_COUNT_ANCHOR().

For more information about each function, see [Data processing functions](https://cloud.ibm.com/docs/sql-query?topic=sql-query-data_processing_functions).





 Example - time series 

WITH timeseries_input AS (SELECT location, TIME_SERIES_WITH_TRS(TS_TIMESTAMP(timestamp), humidity, TS_TRS_DEFAULT()) AS ts
FROM cos://us-geo/sql/temperature_humidity.csv STORED AS CSV
GROUP BY location),
only_40_or_above_ts AS (
SELECT location,
TS_FILTER(ts, TS_EXP_GT(TS_EXP_ID(), 40.0)) AS above_40_ts
FROM timeseries_input
)
SELECT location, TS_EXPLODE(above_40_ts) AS (timestamp, humidity) FROM only_40_or_above_ts

A time series expression is referenced by the following clause:



* [primaryExpression](https://cloud.ibm.com/docs/sql-query?topic=sql-query-sql-referenceprimaryExpression)







 booleanTimeSeriesExpression
FROM cos://eu-de/results-marisa/jobid=f178778e-7707-46a9-982d-1e89261b63a5 STORED AS PARQUET
WHERE _source.action = "iam-identity.serviceid-apikey.login"
ORDER BY _source.eventTime
INTO cos://eu-de/results-marisa STORED AS CSV







 Reference. Event field names for SQL queries 

The following table lists the event fields and the column name that you must use when you build your SQL queries:



Table 3. Mapping of event fields to SQL query column names

 Activity Tracker event field SQL query column name 

 id _source.id 
 eventTime _source.eventTime 
 action _source.action 
 outcome _source.outcome 
 message _source.message 
 initiator.id _source.o_initiator.id 
 initiator.typeURI _source.o_initiator.typeURI 
 initiator.name _source.o_initiator.name 
 initiator.host.address _source.o_initiator.o_host.address 
 initiator.host.agent _source.o_initiator.o_host.agent 
 initiator.credential.type _source.o_initiator.o_credential.type 
 target.id _source.o_target.id 
 target.name _source.o_target.name 
 target.typeURI _source.o_target.typeURI 
 reason.reasonCode _source.o_reason.reasonCode 
 reason.reasonType _source.o_reason.reasonType 
 severity _source.severity 
 requestData _source.requestData 
 responseData _source.responseData
The scalar function call expressions in this example are: ToLowerCase, (GetText(P.lastname), ToLowerCase(GetText(P.firstname)), and GetText(P.lastname).





 Aggregate function call 

An expression can be an aggregate function call. This expression type can have as arguments another expression of type column reference or type scalar function call. The following example shows an aggregate function call with expression type column reference:

create view CountLastNames as
select Count(Person.lastname)
from Person;

The expression is simply Count(Person.lastname) and counts the number of Person.lastname annotations in the document. An example of an aggregate function call with expression type scalar function call exists in the previous example as List(GetText(P.firstname)) with the List aggregate function taking a GetText scalar function as an argument to generate a list of given names. Aggregate function call expressions are only allowed as expressions in the select list of a select statement. Aggregate function call expressions are not allowed in the select list of an extract statement, or as arguments to a scalar or aggregate function call.







 Data model 

The data model for AQL is similar to the standard relational model that is used by an SQL database such as DB2®. All data in AQL is stored in tuples, data records of one or more columns, or fields. A collection of tuples forms a view. All tuples in a view must have the same schema that is the names and types of the fields across all tuples.

The content of the input document is represented as a special view called Document.

The fields of a tuple must belong to one of the built-in data types of AQL:



* Boolean

A data type that has a true or false value.
* Float

A single-precision floating-point number.
* Integer

A 32-bit signed integer.
* ScalarList

A collection of values of the same scalar type (Integer, Float, Text, or Span).
* Parameter Name: zipcode
* Located in: Query
* Required: Yes
* Type: string



15. Create a new definition: Today.
16. Add new properties for the Today definition as shown in Table 2.



Table 2. Properties for the Today definition

 Name Type 

 zip string 
 hi integer 
 lowe integer 
 nighthumidity integer 
 dayhumidity integer 
 city string 
 state string 



17. Update the response schema in the GET /today section to "Today".
18. Save your API.
19. Click the Assemble tab. You created two operations so far: GET /current and GET /today. To ensure that the correct target endpoint is invoked, create some logic that executes a conditional on the operation that's being called. Let's use the Operation Switch logic construct to do this.

a. If the canvas displays a default invoke policy, delete the policy now.
b. From the palette, drag the Operation Switch and drop it on the canvas.



* To case 0, assign the get /current operation.
* Add a new Case: case 1.
* Assign the get /today operation to case 1. ![assemble-1.png](https://cloud.ibm.com/docs-content/v1/content/78bb71851d95d7580503eb9ba10cf3ae31490ade/apiconnect/tutorials/images/assemble-1.png) The Operation Switch provides a decision point. Based on the verb and path pair, the appropriate operation must be invoked.
c. Drag the invoke policy from the palette and drop it on the canvas. Drop one in the /get current path and one in the /get today path. d. Select the invoke policy in the /get current path, and update its title to "invoke-current".
e.
(4,'Scotty') AS emp,
VALUES
(1,3000),
(2,2000),
(3,3000),
(4,4000) AS mission
WHERE emp.col1 = mission.col1
Show more

The result of the example query is shown in the following table.



Table 13. Query result for the example joining

 ID NAME MISSIONS 

 1 Spock 3000 
 2 Kirk 2000 
 3 McCoy 3000 
 4 Scotty 4000 







 Values statement 

A values statement is a statement on its own. It can be used instead of a fullselect if your statement references only a single value and does not contain any join with other relations or values clauses.





 Examples - values statement 

-- values statement with single column result set with 3 rows
VALUES 1, 2, 3

The result of the example query is shown in the following table.



Table 14. Query result for the example values

 COL1 

 1 
 2 
 3 



--- values statement with multi column result set
VALUES
(1, 'Spock'),
(2,'Kirk') ,
(3, 'McCoy'),
(4,'Scotty')

The result of the example query is shown in the following table.



Table 15. Query result for the example values

 COL1 COL2 

 1 Spock 
 2 Kirk 
 3 McCoy 
 4 Scotty 







 More topics - values clause 

For more information about the clauses that are used in a values clause, see the following topics:



* [expression](https://cloud.ibm.com/docs/sql-query?topic=sql-query-sql-referenceexpression)
* [identifier](https://cloud.ibm.com/docs/sql-query?topic=sql-query-sql-referenceidentifier)







 Related references - values clause 

A values clause is referenced by the following clauses:



* [fullselect](https://cloud.ibm.com/docs/sql-query?topic=sql-query-sql-referencefullselect)
[Manage Data](https://cloud.ibm.com/docs-content/v1/content/ded4adc3ea0bd2a81b113c579f2b1183926da211/discovery//images/icon_yourData.png) icon, then choose the appropriate language from the drop-down.)
2. Under Search for documents, click Use the Discovery Query Language, then:



* Click the Field drop-down and choose text, for the Operator choose contains, then enter the Value of Pittsburgh Steelers. Click Add rule, then click the Field drop-down and choose enriched_text.sentiment.document.label, for the Operator choose contains, then enter the Value of positive.

The query text:"Pittsburgh Steelers",enriched_text.sentiment.document.label:"positive" displays under the Visual Query Builder.



3. Click More options, then enter 10 (this is the default) in the Number of documents to return field.
4. Click Run query. The top 10 articles about the Pittsburgh Steelers with a positive sentiment are displayed.



The maximum number of results returned for a Watson Discovery News query is 50.

News articles might be syndicated to several news outlets, and IBM Watson™ Discovery News picks up each of them, resulting in duplicate articles. This means that a query to IBM Watson™ Discovery News can potentially return several identical or nearly identical articles in query results. To turn on deduplication, under More options, choose Exclude duplicate results. To learn more about this beta capability, see [Excluding duplicate documents from query results](https://cloud.ibm.com/docs/discovery?topic=discovery-query-parametersdeduplication).
{"_id":"4058219","_rev":"1-9b4eb183c9cdf57c19be660ec600330c","name":"Daphne","latitude":30.60353,"longitude":-87.9036,"country":"US","population":21570,"timezone":"America/Chicago"},
{"_id":"4058553","_rev":"1-56100f7e7742028facfcc50ab6b07a04","name":"Decatur","latitude":34.60593,"longitude":-86.98334,"country":"US","population":55683,"timezone":"America/Chicago"},
{"_id":"4059102","_rev":"1-612ae37d982dc71eeecf332c1e1c16aa","name":"Dothan","latitude":31.22323,"longitude":-85.39049,"country":"US","population":65496,"timezone":"America/Chicago"}
] ! ! ,
"bookmark": "g1AAAAA-eJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzmxiYWhoaGIGkOWDSyBJZAO9qD40",
"warning": "no matching index found, create an index to optimize query time"
}
Show more
This time, you get the next five cities and a new bookmark ready for the next request.<-- </section "id="section-use-cloudant-query-search" "> --><-- <section "id="section-how-cloudant-search-works" "> --> How does IBM Cloudant Search work?
,0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0]]},{"name":"QId_d18","samples":0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0],0,0]
For more information about the values clause, see [valuesClause](https://cloud.ibm.com/docs/sql-query?topic=sql-query-sql-referencevaluesClause).

In the following example SQL query, sales data is grouped per year and quarter.

-- grouping sales data per year and quarter
SELECT
sales.col1 AS year,
sales.col2 AS quarter,
SUM(sales.col3) AS amount
FROM VALUES
(2017, 1 ,100),
(2017, 1 ,50),
(2017, 2 ,200),
(2017, 2 ,300),
(2018, 1 ,300),
(2018, 1 ,100),
(2018, 2 ,400) AS sales
GROUP BY col1, col2
ORDER BY year, quarter

The result of the example query is shown in the following table.



Table 7. Query result for the example grouping

 YEAR QUARTER AMOUNT 

 2017 1 150 
 2017 2 500 
 2018 1 400 
 2018 2 400 



A ROLLUP grouping is an extension to the group by clause that produces a result set containing subtotal rows in addition to the regular grouped rows. A GROUP BY COL1, COL2 WITH ROLLUP generates the following grouping sets: (COL1, COL2), (COL1), (). The N grouping expressions of the ROLLUP convert to N+1 grouping sets.

Referring to the preceding example, adding a WITH ROLLUP modifier to the group by clause computes rollup sales data on quarter by year basis, a yearly basis, and a grand total as shown by the following example.

-- rollup sales data on quarter by year basis, a yearly basis, and a grand total
SELECT
sales.col1 AS year,
sales.col2 AS quarter,
SUM(sales.col3) AS amount
FROM VALUES
(2017, 1 ,100),
(2017, 1 ,50),
(2017, 2 ,200),
(2017, 2 ,300),
(2018, 1 ,300),
(2018, 1 ,100),