fourkitchens / pantheon-tools

Tools to run actions against a Pantheon site
GNU General Public License v3.0
16 stars 3 forks source link

'pantheon-db-*' are suddenly failing because Pantheon is not reporting the name of the database #16

Closed dalin- closed 1 year ago

dalin- commented 1 year ago

These commands rely on terminus connection:info to get data about the database. But it's no longer returning the name of the DB:

➜ terminus connection:info columbia-sps.live  --format=print-r --fields='*'
Array
(
    [sftp_command] => sftp -o Port=2222 live.6170880e-6b27-46d1-910d-1a83c0d99b98@appserver.live.6170880e-6b27-46d1-910d-1a83c0d99b98.drush.in
    [sftp_username] => live.6170880e-6b27-46d1-910d-1a83c0d99b98
    [sftp_host] => appserver.live.6170880e-6b27-46d1-910d-1a83c0d99b98.drush.in
    [sftp_password] => Use your account password
    [sftp_url] => sftp://live.6170880e-6b27-46d1-910d-1a83c0d99b98@appserver.live.6170880e-6b27-46d1-910d-1a83c0d99b98.drush.in:2222
    [mysql_command] => mysql -u 41d1045d98ac4e02b6407d0106405b5a -p0e776c3d27204e54bc43ec1b52218d0d -h dbserver.live.6170880e-6b27-46d1-910d-1a83c0d99b98.drush.in -P 14960
    [mysql_username] => 41d1045d98ac4e02b6407d0106405b5a
    [mysql_host] => dbserver.live.6170880e-6b27-46d1-910d-1a83c0d99b98.drush.in
    [mysql_password] => 0e776c3d27204e54bc43ec1b52218d0d
    [mysql_url] => mysql://41d1045d98ac4e02b6407d0106405b5a:0e776c3d27204e54bc43ec1b52218d0d@dbserver.live.6170880e-6b27-46d1-910d-1a83c0d99b98.drush.in:14960/
    [mysql_port] => 14960
    [mysql_database] =>
    [redis_command] => redis-cli -h 34.135.30.224 -p 11255 -a 4c631bebe31e44abbfd94869e4b0ee0f
    [redis_port] => 11255
    [redis_url] => redis://b8603a26f0bd43cca513ad25bf146588:4c631bebe31e44abbfd94869e4b0ee0f@34.135.30.224:11255
    [redis_password] => 4c631bebe31e44abbfd94869e4b0ee0f
)

PR forthcoming to fallback to "pantheon" when this happens.