[MCOL-4832] columnstoreAlias.sh produces error upon login for non-clustered ColumnStore install Created: 2021-08-08  Updated: 2021-12-15  Resolved: 2021-12-10

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 5.6.2, 6.2.1
Fix Version/s: 6.2.2

Type: Bug Priority: Major
Reporter: Edward Stoever Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2021-16

 Description   

When a user logs in, he sees: "grep: /etc/columnstore/cmapi_server.conf: No such file or directory"

login as: root
Authenticating with public key "rsa-key-20200325" from agent
Linux cs 4.19.0-17-cloud-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64
 
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
 
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug  8 13:41:23 2021 from 181.56.133.171
grep: /etc/columnstore/cmapi_server.conf: No such file or directory
root@cs:~$ 

Workaround, in file /etc/profile.d/columnstoreAlias.sh

mcsapikey=$(grep -r 'x-api-key' /etc/columnstore/cmapi_server.conf 2>/dev/null | cut -d= -f2 | xargs)



 Comments   
Comment by Daniel Lee (Inactive) [ 2021-12-10 ]

Build verified: 6.2.2-1 (#3496)

For single node installation, tested without installing CMAPI.
Also tests on multi-node installation, which requires CMAPI.

Generated at Thu Feb 08 02:53:21 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.