You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2017/07/03 14:42:31 UTC

Review Request 60602: /usr/sbin/ambari-agent missing after Ambari upgrade

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

Review request for Ambari and Vitalyi Brodetskyi.


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


Repository: ambari


Description
-------

STR:

  * Install Ambari 2.4.2
  * Upgrade to Ambari 2.5.2

Result: `/usr/sbin/ambari-agent` missing, Agent can only be started as
`service start ambari-agent`

    
    
    $ yum upgrade -y ambari-agent
    ...
    ---> Package ambari-agent.x86_64 0:2.4.2.0-163 will be updated
    ---> Package ambari-agent.x86_64 0:2.5.2.0-92 will be an update
    ...
    Updated:
      ambari-agent.x86_64 0:2.5.2.0-92
    
    Complete!
    $ ambari-agent start
    -bash: /usr/sbin/ambari-agent: No such file or directory
    $ which ambari-agent
    /usr/bin/which: no ambari-agent in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    

Works OK if installing from scratch:

    
    
    $ yum install -y ambari-agent
    ...
    ---> Package ambari-agent.x86_64 0:2.5.2.0-92 will be installed
    ...
    Installed:
      ambari-agent.x86_64 0:2.5.2.0-92
    
    Complete!
    $ which ambari-agent
    /usr/sbin/ambari-agent
    

Also works OK with previous build:

    
    
    $ yum upgrade -y ambari-agent
    ...
    ---> Package ambari-agent.x86_64 0:2.4.2.0-163 will be updated
    ---> Package ambari-agent.x86_64 0:2.5.2.0-91 will be an update
    ...
    Updated:
      ambari-agent.x86_64 0:2.5.2.0-91
    
    Complete!
    $ which ambari-agent
    /usr/sbin/ambari-agent


Diffs
-----

  ambari-agent/src/main/package/rpm/posttrans_agent.sh c301fc3 


Diff: https://reviews.apache.org/r/60602/diff/1/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 60602: /usr/sbin/ambari-agent missing after Ambari upgrade

Posted by Sumit Mohanty <sm...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60602/#review179514
-----------------------------------------------------------


Ship it!




Ship It!

- Sumit Mohanty


On July 3, 2017, 2:42 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60602/
> -----------------------------------------------------------
> 
> (Updated July 3, 2017, 2:42 p.m.)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-21396
>     https://issues.apache.org/jira/browse/AMBARI-21396
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR:
> 
>   * Install Ambari 2.4.2
>   * Upgrade to Ambari 2.5.2
> 
> Result: `/usr/sbin/ambari-agent` missing, Agent can only be started as
> `service start ambari-agent`
> 
>     
>     
>     $ yum upgrade -y ambari-agent
>     ...
>     ---> Package ambari-agent.x86_64 0:2.4.2.0-163 will be updated
>     ---> Package ambari-agent.x86_64 0:2.5.2.0-92 will be an update
>     ...
>     Updated:
>       ambari-agent.x86_64 0:2.5.2.0-92
>     
>     Complete!
>     $ ambari-agent start
>     -bash: /usr/sbin/ambari-agent: No such file or directory
>     $ which ambari-agent
>     /usr/bin/which: no ambari-agent in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>     
> 
> Works OK if installing from scratch:
> 
>     
>     
>     $ yum install -y ambari-agent
>     ...
>     ---> Package ambari-agent.x86_64 0:2.5.2.0-92 will be installed
>     ...
>     Installed:
>       ambari-agent.x86_64 0:2.5.2.0-92
>     
>     Complete!
>     $ which ambari-agent
>     /usr/sbin/ambari-agent
>     
> 
> Also works OK with previous build:
> 
>     
>     
>     $ yum upgrade -y ambari-agent
>     ...
>     ---> Package ambari-agent.x86_64 0:2.4.2.0-163 will be updated
>     ---> Package ambari-agent.x86_64 0:2.5.2.0-91 will be an update
>     ...
>     Updated:
>       ambari-agent.x86_64 0:2.5.2.0-91
>     
>     Complete!
>     $ which ambari-agent
>     /usr/sbin/ambari-agent
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/package/rpm/posttrans_agent.sh c301fc3 
> 
> 
> Diff: https://reviews.apache.org/r/60602/diff/1/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>


Re: Review Request 60602: /usr/sbin/ambari-agent missing after Ambari upgrade

Posted by Victor Galgo via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60602/#review179511
-----------------------------------------------------------


Ship it!




Ship It!

- Victor Galgo


On July 3, 2017, 2:42 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60602/
> -----------------------------------------------------------
> 
> (Updated July 3, 2017, 2:42 p.m.)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-21396
>     https://issues.apache.org/jira/browse/AMBARI-21396
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR:
> 
>   * Install Ambari 2.4.2
>   * Upgrade to Ambari 2.5.2
> 
> Result: `/usr/sbin/ambari-agent` missing, Agent can only be started as
> `service start ambari-agent`
> 
>     
>     
>     $ yum upgrade -y ambari-agent
>     ...
>     ---> Package ambari-agent.x86_64 0:2.4.2.0-163 will be updated
>     ---> Package ambari-agent.x86_64 0:2.5.2.0-92 will be an update
>     ...
>     Updated:
>       ambari-agent.x86_64 0:2.5.2.0-92
>     
>     Complete!
>     $ ambari-agent start
>     -bash: /usr/sbin/ambari-agent: No such file or directory
>     $ which ambari-agent
>     /usr/bin/which: no ambari-agent in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>     
> 
> Works OK if installing from scratch:
> 
>     
>     
>     $ yum install -y ambari-agent
>     ...
>     ---> Package ambari-agent.x86_64 0:2.5.2.0-92 will be installed
>     ...
>     Installed:
>       ambari-agent.x86_64 0:2.5.2.0-92
>     
>     Complete!
>     $ which ambari-agent
>     /usr/sbin/ambari-agent
>     
> 
> Also works OK with previous build:
> 
>     
>     
>     $ yum upgrade -y ambari-agent
>     ...
>     ---> Package ambari-agent.x86_64 0:2.4.2.0-163 will be updated
>     ---> Package ambari-agent.x86_64 0:2.5.2.0-91 will be an update
>     ...
>     Updated:
>       ambari-agent.x86_64 0:2.5.2.0-91
>     
>     Complete!
>     $ which ambari-agent
>     /usr/sbin/ambari-agent
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/package/rpm/posttrans_agent.sh c301fc3 
> 
> 
> Diff: https://reviews.apache.org/r/60602/diff/1/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>