CLI "show run all", "show run ports", "show run interfaces" are outputting errors
Steps to reproduce the issue:
Issue CLI "show run", "show run ports" or "show run interfaces" and it did not work as expected.
Describe the results you received:
ritahui@TestDUT:~$ show run all | more
Traceback (most recent call last):
File "/usr/local/bin/sonic-cfggen", line 416, in
main()
File "/usr/local/bin/sonic-cfggen", line 339, in main
configdb.connect()
File "/usr/local/lib/python2.7/dist-packages/swsssdk/configdb.py", line 74, in connect
self.db_connect('CONFIG_DB', wait_for_init, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/configdb.py", line 69, in db_connect
SonicV2Connector.connect(self, self.db_name, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/dbconnector.py", line 250, in connect
self.dbintf.connect(db_id, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 171, in connect
self._onetime_connect(db_id)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 183, in _onetime_connect
client.config_set('notify-keyspace-events', self.KEYSPACE_EVENTS)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 719, in config_set
return self.execute_command('CONFIG SET', name, value)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 673, in execute_command
connection.send_command(args)
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 610, in send_command
self.send_packed_command(self.pack_command(args))
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 585, in send_packed_command
self.connect()
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 13 connecting to unix socket: /var/run/redis/redis.sock. Permission denied.
Describe the results you expected:
Running config should be displayed. In earlier version
ritahui@TestDUT2:~$ show run all
{
"AAA": {
"authentication": {
"login": "tacacs+"
}
},
Description
CLI "show run all", "show run ports", "show run interfaces" are outputting errors
Steps to reproduce the issue:
Describe the results you received:
ritahui@TestDUT:~$ show run all | more Traceback (most recent call last): File "/usr/local/bin/sonic-cfggen", line 416, in
main()
File "/usr/local/bin/sonic-cfggen", line 339, in main
configdb.connect()
File "/usr/local/lib/python2.7/dist-packages/swsssdk/configdb.py", line 74, in connect
self.db_connect('CONFIG_DB', wait_for_init, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/configdb.py", line 69, in db_connect
SonicV2Connector.connect(self, self.db_name, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/dbconnector.py", line 250, in connect
self.dbintf.connect(db_id, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 171, in connect
self._onetime_connect(db_id)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 183, in _onetime_connect
client.config_set('notify-keyspace-events', self.KEYSPACE_EVENTS)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 719, in config_set
return self.execute_command('CONFIG SET', name, value)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 673, in execute_command
connection.send_command(args)
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 610, in send_command
self.send_packed_command(self.pack_command(args))
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 585, in send_packed_command
self.connect()
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 13 connecting to unix socket: /var/run/redis/redis.sock. Permission denied.
Describe the results you expected:
Running config should be displayed. In earlier version
ritahui@TestDUT2:~$ show run all { "AAA": { "authentication": { "login": "tacacs+" } },