Modify trove instance status from database

Source: Internet
Author: User

Due to the test mysql5.5 replication function, the default trove using Gtid,instance is in Backup state, trove Reset-status cannot be run in Backup state, modify the database manually

Modify the status_id field in the Service_statuses table to 0x16, 22 for decimal

Status Code View File

# trove/common/instance.py 97 line Class servicestatuses (object):     running  = servicestatus (0x01,  ' running ',  ' ACTIVE ')     BLOCKED =  ServiceStatus (0x02,  ' blocked ',  ' blocked ')     paused = servicestatus ( 0x03,  ' paused ',  ' SHUTDOWN ')     shutdown = servicestatus (0x04,  ' Shutdown ',  ' shutdown ')     crashed = servicestatus (0x06,  ' CRASHED '),   ' SHUTDOWN ')     failed = servicestatus (0x08,  ' failed to  Spawn ',  ' FAILED ')     building = servicestatus (0x09,  ' BUILDING ',  ' BUILD ')     promoting = servicestatus (0x10,  ' Promoting replica ',  ' PROMOTE ')     ejecting = servicestatus (0x11,  ' ejecting replica  SOURCE ',  ' EJECT ')  &nbsP;  logging = servicestatus (0x12,  ' transferring guest logs ',  ' LOGGING ' )     unknown = servicestatus (0x16,  ' UNKNOWN ',  ' ERROR ')      new = servicestatus (0x17,  ' new ',  ' new ')     deleted =  servicestatus (0x05,  ' deleted ',  ' deleted ')     failed_timeout_guestagent  = servicestatus (0x18,  ' Guestagent error ',                                                  ' ERROR ')     instance_ready = servicestatus (0x19,  ' INSTANCE  ready ',  ' BUILD ')     restart_required = servicestatus (0x20,  ' Restart required ',  &NBsp;                                     ' Restart_required ')


This article is from the "Wuling Grassland" blog, please make sure to keep this source http://penguintux.blog.51cto.com/3021117/1911721

Modify trove instance status from database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.