After https://github.com/vmware/photon/commit/c51fb305cbb921f4a89c486c8dc72da96f6f9f71
This is not needed.
Change-Id: Iae8f8f5225ca50eefe985301dfba96a6a16bd646
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/17237
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>
| ... | ... |
@@ -152,26 +152,6 @@ class ToolChainUtils(object): |
| 152 | 152 |
raise Exception("RPM installation failed")
|
| 153 | 153 |
self.logger.debug("Successfully installed default toolchain RPMS in Chroot:" + chroot.getID())
|
| 154 | 154 |
|
| 155 |
- # There is some weird contention with this toolchain package installations and |
|
| 156 |
- # rpmdb rebuilds. So, let's do it explicitly here. |
|
| 157 |
- # XXX: Once we use latest ova template in our build env, we can remove this. |
|
| 158 |
- # Ubuntu build machines also use backend db as sqlite to remove this |
|
| 159 |
- timeout = 900 |
|
| 160 |
- old_epoch = time.time() |
|
| 161 |
- while True: |
|
| 162 |
- if chroot.run("[ -f /var/lib/rpm/Packages ]", logfn=self.logger.debug):
|
|
| 163 |
- break |
|
| 164 |
- time.sleep(1) |
|
| 165 |
- # retry for 15 min, ideally this should finish quickly |
|
| 166 |
- # if not, abort after 15 min |
|
| 167 |
- if time.time() - old_epoch > timeout: |
|
| 168 |
- self.logger.debug("--- 15 min elapsed trying to rebuild db ---")
|
|
| 169 |
- break |
|
| 170 |
- |
|
| 171 |
- if time.time() - old_epoch > timeout and not chroot.run("[ -f /var/lib/rpm/Packages ]", logfn=self.logger.debug):
|
|
| 172 |
- self.logger.error("rpmdb conversion failed after multiple retries")
|
|
| 173 |
- raise Exception("RpmDB conversion error")
|
|
| 174 |
- |
|
| 175 | 155 |
if packageName: |
| 176 | 156 |
self.installExtraToolchainRPMS(chroot, packageName, packageVersion) |
| 177 | 157 |
|