Many installations are running into an issue with installing new bits in preparation for an upgrade. Consider the following stack trace:
Ambari attempts to determine the correct package to install by first doing a scoped search by a specific repository. Once it has found a match, it then proceeds with the yum install.
The problem in the above system is that Storm appears to have already been partially installed:
Notice that the repository listed for storm shows installed, instead of a real repository. The actual repository it should be coming from is called HDP-2.6-repo-1.
The odd part here is that this appears to be our first install of storm. If we can't find the package, then how did it even get into this state? It seems like there might be something going on in the agent in terms of killing yum and automatically retrying it. We can see the following:
It's actually pretty easy to duplicate this problem - during a yum install, just kill yum. It will leave the package in this quasi-installed state where its repo is listed as 'installed' even though it is not.
I think what's happening here is that the agent receives the command to install storm. During the course of the installation - the yum command gets killed (possibly by the agent itself) and the agent retries to install the package quietly. It then is unable to find the package anymore since it no longer is listed as "available" and is now "installed" with the installed repository association.