Got it

A Patch Rollback Fails After a Confirmed Upgrade

149 0 0 0 0

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

  1. Check whether the system has been upgraded to a patch version before.

  2. 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#$"

  3. Run the following command to check the installed system software packages in the database:

    select * from PACKAGE_INFO where name='OceanStor-100D';

  4. 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

  1. Log in to the active management node.

  2. 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.

  3. Run the select * from PACKAGE_INFO where name='OceanStor-100D'; command to obtain the IDs of the source and target packages.

  4. 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.

  5. Run the delete from PACKAGE_INFO where ID='Source package ID'; command to delete information about the source package from the database.

  6. 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


Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.