You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Vitalyi Brodetskyi <vb...@hortonworks.com> on 2015/06/27 17:41:50 UTC

Review Request 35971: Ambari : upgrading from 2.0.0 to 2.0.1 wipes out the added service folder on the stack.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35971/
-----------------------------------------------------------

Review request for Ambari, Andrew Onischuk and Dmytro Sen.


Bugs: AMBARI-12101
    https://issues.apache.org/jira/browse/AMBARI-12101


Repository: ambari


Description
-------

- Install Ambari 2.0 based cluster.
- Add a new service (custom) which is not part of the stack using "Add Service" wizard.  This step requires the new custom service package needs to be copied to the /var/lib/ambari-server/resources/stacks/HDP/2.2/services folder.
- Deploy the new service and everything works fine.
- Now upgrade from Ambari 2.0 to Ambari 2.0.1

Problem:  The /var/lib/ambari-server/resources/stacks/HDP/2.2/services/mycustomservice folder got wiped out. Restarting the ambari-server results in the following exception.
{code}
27 May 2015 10:53:55,441 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server
org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=HST
	at org.apache.ambari.server.api.services.AmbariMetaInfo.getService(AmbariMetaInfo.java:497)
	at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:265)
	at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96)
	at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217)
	at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665)
{code}

Expected: After upgrade the added service should be available and active.  The custom service folder should not be wiped out from the stacks folder.


Diffs
-----

  ambari-server/src/main/python/ambari_server/serverUpgrade.py 6315f9a 

Diff: https://reviews.apache.org/r/35971/diff/


Testing
-------

mvn clean test


Thanks,

Vitalyi Brodetskyi


Re: Review Request 35971: Ambari : upgrading from 2.0.0 to 2.0.1 wipes out the added service folder on the stack.

Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35971/
-----------------------------------------------------------

(Updated Червень 30, 2015, 4:47 після полудня)


Review request for Ambari, Andrew Onischuk and Dmytro Sen.


Bugs: AMBARI-12101
    https://issues.apache.org/jira/browse/AMBARI-12101


Repository: ambari


Description
-------

- Install Ambari 2.0 based cluster.
- Add a new service (custom) which is not part of the stack using "Add Service" wizard.  This step requires the new custom service package needs to be copied to the /var/lib/ambari-server/resources/stacks/HDP/2.2/services folder.
- Deploy the new service and everything works fine.
- Now upgrade from Ambari 2.0 to Ambari 2.0.1

Problem:  The /var/lib/ambari-server/resources/stacks/HDP/2.2/services/mycustomservice folder got wiped out. Restarting the ambari-server results in the following exception.
{code}
27 May 2015 10:53:55,441 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server
org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=HST
	at org.apache.ambari.server.api.services.AmbariMetaInfo.getService(AmbariMetaInfo.java:497)
	at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:265)
	at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96)
	at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217)
	at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665)
{code}

Expected: After upgrade the added service should be available and active.  The custom service folder should not be wiped out from the stacks folder.


Diffs (updated)
-----

  ambari-server/src/main/python/ambari_server/serverUpgrade.py f446fd6 
  ambari-server/src/test/python/TestAmbariServer.py ce0747c 

Diff: https://reviews.apache.org/r/35971/diff/


Testing
-------

mvn clean test


Thanks,

Vitalyi Brodetskyi


Re: Review Request 35971: Ambari : upgrading from 2.0.0 to 2.0.1 wipes out the added service folder on the stack.

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35971/#review89679
-----------------------------------------------------------

Ship it!


Ship It!

- Andrew Onischuk


On June 27, 2015, 3:41 p.m., Vitalyi Brodetskyi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35971/
> -----------------------------------------------------------
> 
> (Updated June 27, 2015, 3:41 p.m.)
> 
> 
> Review request for Ambari, Andrew Onischuk and Dmytro Sen.
> 
> 
> Bugs: AMBARI-12101
>     https://issues.apache.org/jira/browse/AMBARI-12101
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> - Install Ambari 2.0 based cluster.
> - Add a new service (custom) which is not part of the stack using "Add Service" wizard.  This step requires the new custom service package needs to be copied to the /var/lib/ambari-server/resources/stacks/HDP/2.2/services folder.
> - Deploy the new service and everything works fine.
> - Now upgrade from Ambari 2.0 to Ambari 2.0.1
> 
> Problem:  The /var/lib/ambari-server/resources/stacks/HDP/2.2/services/mycustomservice folder got wiped out. Restarting the ambari-server results in the following exception.
> {code}
> 27 May 2015 10:53:55,441 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server
> org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=HST
> 	at org.apache.ambari.server.api.services.AmbariMetaInfo.getService(AmbariMetaInfo.java:497)
> 	at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:265)
> 	at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96)
> 	at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217)
> 	at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665)
> {code}
> 
> Expected: After upgrade the added service should be available and active.  The custom service folder should not be wiped out from the stacks folder.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/python/ambari_server/serverUpgrade.py 6315f9a 
> 
> Diff: https://reviews.apache.org/r/35971/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>