You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Mahadev Konar <ma...@apache.org> on 2015/08/03 08:26:32 UTC
Re: Review Request 36882: Ambari-server reset action works
incorrectly for external DB
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36882/#review93870
-----------------------------------------------------------
Ship it!
Ship It!
- Mahadev Konar
On July 28, 2015, 9:12 a.m., Vitalyi Brodetskyi wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36882/
> -----------------------------------------------------------
>
> (Updated July 28, 2015, 9:12 a.m.)
>
>
> Review request for Ambari, Andrew Onischuk and Dmytro Sen.
>
>
> Bugs: AMBARI-12560
> https://issues.apache.org/jira/browse/AMBARI-12560
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Ambari tries to drop DB schema during reset ever it is external DB, and fails during this process.
>
> {code}
> ambari-framework-selftest-sle113-8508-split1-re2-5:~ # cat /etc/ambari-server/conf/ambari.properties |grep server.persistence.type
> server.persistence.type=remote
> ambari-framework-selftest-sle113-8508-split1-re2-5:~ # ambari-server reset -s
> Using python /usr/bin/python2.6
> Resetting ambari-server
> **** WARNING **** You are about to reset and clear the Ambari Server database. This will remove all cluster host and configuration information from the database. You will be required to re-configure the Ambari server and re-run the cluster wizard.
> Are you SURE you want to perform the reset [yes/no] (yes)?
> Confirm server reset [yes/no](yes)?
> Resetting the Server database...
> ERROR: Exiting with exit code 1.
> REASON: psql: could not connect to server: No such file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
> {code}
>
>
> Diffs
> -----
>
> ambari-server/src/main/python/ambari_server/serverSetup.py e76d2bc
>
> Diff: https://reviews.apache.org/r/36882/diff/
>
>
> Testing
> -------
>
> mvn clean test
>
>
> Thanks,
>
> Vitalyi Brodetskyi
>
>