Problem Symptom
After upgrading the system to a patch version successfully and confirming the upgrade, roll back the system to the source version. However, the package of the source version fails to be uploaded.
Problem Diagnosis
Check whether the system has been upgraded to a patch version before.
Run the following command to log in to the database:
su - dmdbadmin -s /bin/bash -c "/opt/fusionstorage/deploymanager/gaussdb/app/bin/gsql -U dmdbadmin -d cmdb -W Huawei12#$"
Run the following command to check the installed system software packages in the database:
select * from PACKAGE_INFO where name='OceanStor-100D';
Check whether the command output contains the software package uploaded this time.
Causes
After upgrading to a patch version, information about the source software package is stored in the database and the source software package is in the installed state. If you upload the source software package again to perform a rollback, the package fails to be uploaded because it is already installed.
Solution
Log in to the active management node.
Run the su - dmdbadmin -s /bin/bash -c "/opt/fusionstorage/deploymanager/gaussdb/app/bin/gsql -U dmdbadmin -d cmdb -W Huawei12#$" command to access the database.
Run the select * from PACKAGE_INFO where name='OceanStor-100D'; command to obtain the IDs of the source and target packages.
Run the update PACKAGE_INFO set PARENT_ID='Target package ID' where ID='Source package ID'; command to update the parent package ID of the microservice package.
Run the delete from PACKAGE_INFO where ID='Source package ID'; command to delete information about the source package from the database.
Log in to DeviceManager and upload the source package again.
Check After Recovery
The source package is uploaded successfully.
Suggestion and Summary
N/A
Applicable Versions
OceanStor 100D 8.0.3; OceanStor Pacific series 8.1.0; OceanStor Atlantic series 8.1.0