<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>The Wombelix Post - Upgrade</title><link href="https://dominik.wombacher.cc/" rel="alternate"/><link href="/feeds/tag_upgrade.atom.xml" rel="self"/><id>https://dominik.wombacher.cc/</id><updated>2022-03-29T00:00:00+02:00</updated><entry><title>vCloud Usage Meter 4.5 Upgrade - Error(908) Command line option is invalid: --skipdigest</title><link href="https://dominik.wombacher.cc/posts/vcloud_usage_meter_45_upgrade_error_908_command_line_option_is_invalid_skipdigest.html" rel="alternate"/><published>2022-03-29T00:00:00+02:00</published><updated>2022-03-29T00:00:00+02:00</updated><author><name>Dominik Wombacher</name></author><id>tag:dominik.wombacher.cc,2022-03-29:/posts/vcloud_usage_meter_45_upgrade_error_908_command_line_option_is_invalid_skipdigest.html</id><summary type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Again a interesting bug, this time during the In-Place Upgrade of a VMWare vCloud Usage Meter
from Version 4.4 to 4.5, which shouldn't be a big deal based  ... &lt;a class="read-more" href="/posts/vcloud_usage_meter_45_upgrade_error_908_command_line_option_is_invalid_skipdigest.html"&gt; [read more]&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Again a interesting bug, this time during the In-Place Upgrade of a VMWare vCloud Usage Meter
from Version 4.4 to 4.5, which shouldn't be a big deal based on the
&lt;a class="reference external" href="https://docs.vmware.com/en/vCloud-Usage-Meter/4.5/Getting-Started-vCloud-Usage-Meter/GUID-AE5A81E1-097A-4EED-9A8E-8BF7E0B378A4.html"&gt;official Upgrade Guide&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20220329202039/https://docs.vmware.com/en/vCloud-Usage-Meter/4.5/Getting-Started-vCloud-Usage-Meter/GUID-AE5A81E1-097A-4EED-9A8E-8BF7E0B378A4.html"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2022.03.29-201847/https://docs.vmware.com/en/vCloud-Usage-Meter/4.5/Getting-Started-vCloud-Usage-Meter/GUID-AE5A81E1-097A-4EED-9A8E-8BF7E0B378A4.html"&gt;[2]&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Running &lt;code&gt;bash /root/upgrade/upgrade-um.sh&lt;/code&gt; ended in:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
Error(908) : Command line error: option is invalid.
No such option: --skipdigest. Please use /usr/bin/tdnf --help
Upgrade fail during JRE update. Please, revert to latest snapshot and prior update execute 'tdnf clean cache'.`

&lt;/pre&gt;
&lt;p&gt;I followed all steps exactly as described in the Guide so how is it possible that the Upgrade Script triggers &lt;code&gt;tdnf&lt;/code&gt; with unavailable options?
Couldn't find anything related / similar in the VMWare KB, GitHub and a good old Google / DuckDuckGo Search.&lt;/p&gt;
&lt;p&gt;Based on our internal documentation, we installed the Usage Meter a while back in Version 4.1
and upgraded to 4.4 a year ago, probably there was also a 4.2 and / or 4.3 upgrade before.&lt;/p&gt;
&lt;p&gt;The result of &lt;code&gt;tdnf --version&lt;/code&gt; was a quite outdated version &lt;code&gt;tdnf: 1.2.3&lt;/code&gt; which seem to be released around mid of 2017,
but option &lt;code&gt;--skipdigest&lt;/code&gt; was part of a &lt;a class="reference external" href="https://github.com/vmware/tdnf/commit/7f23f9c2f5b5976d2ccd443ddc2b84e00cba81d0"&gt;commit&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20220329202918/https://github.com/vmware/tdnf/commit/7f23f9c2f5b5976d2ccd443ddc2b84e00cba81d0"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2022.03.29-202915/https://github.com/vmware/tdnf/commit/7f23f9c2f5b5976d2ccd443ddc2b84e00cba81d0"&gt;[2]&lt;/a&gt;) on April 12 2019.&lt;/p&gt;
&lt;p&gt;vCloud Usage Meter is running on VMware Photon OS, &lt;em&gt;just&lt;/em&gt; another Linux Distribution with yum as package manager and attached online repositories.
So let's just try to update &lt;strong&gt;tdnf&lt;/strong&gt; manually via &lt;code&gt;yum update tdnf&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
Upgrading:
rpm-libs          x86_64      4.14.3-1.ph3      photon-updates      937.03k 959523
rpm               x86_64      4.14.3-1.ph3      photon-updates      356.38k 364930
hawkey            x86_64      2017.1-8.ph3      photon-updates      150.05k 153656
tdnf-cli-libs     x86_64      3.1.8-1.ph3       photon-updates       70.18k 71864
tdnf              x86_64      3.1.8-1.ph3       photon-updates      309.71k 317139

Total installed size:   1.78M 1867112

Is this ok [y/N]: y

&lt;/pre&gt;
&lt;p&gt;Looks good, installation of version &lt;code&gt;tdnf: 3.1.8&lt;/code&gt; was successful, a quick test, which ended earlier in the same &lt;em&gt;Error(908)&lt;/em&gt; as above,
worked this time, so obviously this version is new enough to know the option &lt;code&gt;--skipdigest&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
tdnf update --skipdigest vmware-jre

&lt;/pre&gt;
&lt;p&gt;Afterwards I could just follow the Guide from VMWare to perform the In-Place Upgrade to Version 4.5 without any further issues.
I assume something went wrong during earlier Upgrades and &lt;code&gt;tdnf&lt;/code&gt; was never updated after the initial Installation.
Earlier Upgrade Scripts probably didn't used the &lt;code&gt;--skipdigest&lt;/code&gt; option, so it was undetected until now.&lt;/p&gt;
&lt;p&gt;All this would explain why no one else seem to hit that bug, was probably a rare edge case limited to our Environment.&lt;/p&gt;
</content><category term="Linux"/><category term="vCloud"/><category term="VMWare"/><category term="vSphere"/><category term="Error"/><category term="Upgrade"/></entry></feed>