<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Ezpeer,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The services-disable-failed indicates that the VIM was not able to safely disable the services on controller-0 (i.e. nova, neutron, kubernetes). There should
 be more information in /var/log/nfv-vim.log at the time when the lock was done.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Bart<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Ezpeer Chen [mailto:ezpeerchen@gmail.com]
<br>
<b>Sent:</b> September 19, 2019 2:51 AM<br>
<b>To:</b> starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> [Starlingx-discuss] system lock fail and then can't unlock<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Dear all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I want to use system host-lock and then system host-unlock to reboot.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">But is cause task always locking.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">It also shows that  "vim_progress_status | services-disable-failed."     <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Log:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">[sysadmin@controller-0 ~(keystone_admin)]$ system host-lock controller-0<br>
+---------------------+--------------------------------------------+<br>
| Property            | Value                                      |<br>
+---------------------+--------------------------------------------+<br>
| action              | none                                       |<br>
| administrative      | unlocked                                   |<br>
| availability        | available                                  |<br>
| bm_ip               | None                                       |<br>
| bm_type             | None                                       |<br>
| bm_username         | None                                       |<br>
| boot_device         | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| capabilities        | {u'stor_function': u'monitor'}             |<br>
| config_applied      | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| config_status       | None                                       |<br>
| config_target       | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| console             | tty0                                       |<br>
| created_at          | 2019-09-10T10:15:49.779617+00:00           |<br>
| hostname            | controller-0                               |<br>
| id                  | 1                                          |<br>
| install_output      | text                                       |<br>
| install_state       | None                                       |<br>
| install_state_info  | None                                       |<br>
| inv_state           | inventoried                                |<br>
| invprovision        | provisioned                                |<br>
| location            | {}                                         |<br>
| mgmt_ip             | 192.168.204.3                              |<br>
| mgmt_mac            | 00:00:00:00:00:00                          |<br>
| operational         | enabled                                    |<br>
| personality         | controller                                 |<br>
| reserved            | False                                      |<br>
| rootfs_device       | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| serialid            | None                                       |<br>
| software_load       | 19.08                                      |<br>
| subfunction_avail   | available                                  |<br>
| subfunction_oper    | enabled                                    |<br>
| subfunctions        | controller,worker                          |<br>
| task                | Locking                                    |<br>
| tboot               | false                                      |<br>
| ttys_dcd            | None                                       |<br>
| updated_at          | 2019-09-19T06:32:21.003163+00:00           |<br>
| uptime              | 372                                        |<br>
| uuid                | 86ccb737-a20b-4cea-86ae-50032383cde8       |<br>
| vim_progress_status | services-disabled                          |<br>
+---------------------+--------------------------------------------+<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-unlock controller-0<br>
Avoiding 'unlock' action on already 'unlocked' host controller-0<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-unlock controller-0<br>
Avoiding 'unlock' action on already 'unlocked' host controller-0<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-lock controller-0<br>
+---------------------+--------------------------------------------+<br>
| Property            | Value                                      |<br>
+---------------------+--------------------------------------------+<br>
| action              | none                                       |<br>
| administrative      | unlocked                                   |<br>
| availability        | available                                  |<br>
| bm_ip               | None                                       |<br>
| bm_type             | None                                       |<br>
| bm_username         | None                                       |<br>
| boot_device         | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| capabilities        | {u'stor_function': u'monitor'}             |<br>
| config_applied      | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| config_status       | None                                       |<br>
| config_target       | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| console             | tty0                                       |<br>
| created_at          | 2019-09-10T10:15:49.779617+00:00           |<br>
| hostname            | controller-0                               |<br>
| id                  | 1                                          |<br>
| install_output      | text                                       |<br>
| install_state       | None                                       |<br>
| install_state_info  | None                                       |<br>
| inv_state           | inventoried                                |<br>
| invprovision        | provisioned                                |<br>
| location            | {}                                         |<br>
| mgmt_ip             | 192.168.204.3                              |<br>
| mgmt_mac            | 00:00:00:00:00:00                          |<br>
| operational         | enabled                                    |<br>
| personality         | controller                                 |<br>
| reserved            | False                                      |<br>
| rootfs_device       | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| serialid            | None                                       |<br>
| software_load       | 19.08                                      |<br>
| subfunction_avail   | available                                  |<br>
| subfunction_oper    | enabled                                    |<br>
| subfunctions        | controller,worker                          |<br>
| task                | Locking                                    |<br>
| tboot               | false                                      |<br>
| ttys_dcd            | None                                       |<br>
| updated_at          | 2019-09-19T06:33:29.533163+00:00           |<br>
| uptime              | 442                                        |<br>
| uuid                | 86ccb737-a20b-4cea-86ae-50032383cde8       |<br>
| vim_progress_status | services-disabled                          |<br>
+---------------------+--------------------------------------------+<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-unlock controller-0<br>
Avoiding 'unlock' action on already 'unlocked' host controller-0<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-lock controller-0<br>
+---------------------+--------------------------------------------+<br>
| Property            | Value                                      |<br>
+---------------------+--------------------------------------------+<br>
| action              | none                                       |<br>
| administrative      | unlocked                                   |<br>
| availability        | available                                  |<br>
| bm_ip               | None                                       |<br>
| bm_type             | None                                       |<br>
| bm_username         | None                                       |<br>
| boot_device         | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| capabilities        | {u'stor_function': u'monitor'}             |<br>
| config_applied      | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| config_status       | None                                       |<br>
| config_target       | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| console             | tty0                                       |<br>
| created_at          | 2019-09-10T10:15:49.779617+00:00           |<br>
| hostname            | controller-0                               |<br>
| id                  | 1                                          |<br>
| install_output      | text                                       |<br>
| install_state       | None                                       |<br>
| install_state_info  | None                                       |<br>
| inv_state           | inventoried                                |<br>
| invprovision        | provisioned                                |<br>
| location            | {}                                         |<br>
| mgmt_ip             | 192.168.204.3                              |<br>
| mgmt_mac            | 00:00:00:00:00:00                          |<br>
| operational         | enabled                                    |<br>
| personality         | controller                                 |<br>
| reserved            | False                                      |<br>
| rootfs_device       | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| serialid            | None                                       |<br>
| software_load       | 19.08                                      |<br>
| subfunction_avail   | available                                  |<br>
| subfunction_oper    | enabled                                    |<br>
| subfunctions        | controller,worker                          |<br>
| task                | Locking                                    |<br>
| tboot               | false                                      |<br>
| ttys_dcd            | None                                       |<br>
| updated_at          | 2019-09-19T06:33:37.166469+00:00           |<br>
| uptime              | 442                                        |<br>
| uuid                | 86ccb737-a20b-4cea-86ae-50032383cde8       |<br>
| vim_progress_status | services-disabled                          |<br>
+---------------------+--------------------------------------------+<br>
[sysadmin@controller-0 ~(keystone_admin)]$<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-show controller-0<br>
+---------------------+----------------------------------------------------------------------+<br>
| Property            | Value                                                                |<br>
+---------------------+----------------------------------------------------------------------+<br>
| action              | none                                                                 |<br>
| administrative      | unlocked                                                             |<br>
| availability        | available                                                            |<br>
| bm_ip               | None                                                                 |<br>
| bm_type             | None                                                                 |<br>
| bm_username         | None                                                                 |<br>
| boot_device         | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0                           |<br>
| capabilities        | {u'stor_function': u'monitor', u'Personality': u'Controller-Active'} |<br>
| config_applied      | 1a574443-db19-4338-86c6-d0b3c2afd3ce                                 |<br>
| config_status       | None                                                                 |<br>
| config_target       | 1a574443-db19-4338-86c6-d0b3c2afd3ce                                 |<br>
| console             | tty0                                                                 |<br>
| created_at          | 2019-09-10T10:15:49.779617+00:00                                     |<br>
| hostname            | controller-0                                                         |<br>
| id                  | 1                                                                    |<br>
| install_output      | text                                                                 |<br>
| install_state       | None                                                                 |<br>
| install_state_info  | None                                                                 |<br>
| inv_state           | inventoried                                                          |<br>
| invprovision        | provisioned                                                          |<br>
| location            | {}                                                                   |<br>
| mgmt_ip             | 192.168.204.3                                                        |<br>
| mgmt_mac            | 00:00:00:00:00:00                                                    |<br>
| operational         | enabled                                                              |<br>
| personality         | controller                                                           |<br>
| reserved            | False                                                                |<br>
| rootfs_device       | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0                           |<br>
| serialid            | None                                                                 |<br>
| software_load       | 19.08                                                                |<br>
| subfunction_avail   | available                                                            |<br>
| subfunction_oper    | enabled                                                              |<br>
| subfunctions        | controller,worker                                                    |<br>
| task                |                                                                      |<br>
| tboot               | false                                                                |<br>
| ttys_dcd            | None                                                                 |<br>
| updated_at          | 2019-09-19T06:34:33.201421+00:00                                     |<br>
| uptime              | 507                                                                  |<br>
| uuid                | 86ccb737-a20b-4cea-86ae-50032383cde8                                 |<br>
| vim_progress_status | services-disable-failed..                                            |<br>
+---------------------+----------------------------------------------------------------------+<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-lock controller-0<br>
+---------------------+--------------------------------------------+<br>
| Property            | Value                                      |<br>
+---------------------+--------------------------------------------+<br>
| action              | none                                       |<br>
| administrative      | unlocked                                   |<br>
| availability        | available                                  |<br>
| bm_ip               | None                                       |<br>
| bm_type             | None                                       |<br>
| bm_username         | None                                       |<br>
| boot_device         | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| capabilities        | {u'stor_function': u'monitor'}             |<br>
| config_applied      | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| config_status       | None                                       |<br>
| config_target       | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| console             | tty0                                       |<br>
| created_at          | 2019-09-10T10:15:49.779617+00:00           |<br>
| hostname            | controller-0                               |<br>
| id                  | 1                                          |<br>
| install_output      | text                                       |<br>
| install_state       | None                                       |<br>
| install_state_info  | None                                       |<br>
| inv_state           | inventoried                                |<br>
| invprovision        | provisioned                                |<br>
| location            | {}                                         |<br>
| mgmt_ip             | 192.168.204.3                              |<br>
| mgmt_mac            | 00:00:00:00:00:00                          |<br>
| operational         | enabled                                    |<br>
| personality         | controller                                 |<br>
| reserved            | False                                      |<br>
| rootfs_device       | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| serialid            | None                                       |<br>
| software_load       | 19.08                                      |<br>
| subfunction_avail   | available                                  |<br>
| subfunction_oper    | enabled                                    |<br>
| subfunctions        | controller,worker                          |<br>
| task                | Locking                                    |<br>
| tboot               | false                                      |<br>
| ttys_dcd            | None                                       |<br>
| updated_at          | 2019-09-19T06:35:21.167957+00:00           |<br>
| uptime              | 507                                        |<br>
| uuid                | 86ccb737-a20b-4cea-86ae-50032383cde8       |<br>
| vim_progress_status |                                            |<br>
+---------------------+--------------------------------------------+<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-unlock controller-0<br>
Avoiding 'unlock' action on already 'unlocked' host controller-0<br>
[sysadmin@controller-0 ~(keystone_admin)]$ system host-lock controller-0<br>
+---------------------+--------------------------------------------+<br>
| Property            | Value                                      |<br>
+---------------------+--------------------------------------------+<br>
| action              | none                                       |<br>
| administrative      | unlocked                                   |<br>
| availability        | available                                  |<br>
| bm_ip               | None                                       |<br>
| bm_type             | None                                       |<br>
| bm_username         | None                                       |<br>
| boot_device         | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| capabilities        | {u'stor_function': u'monitor'}             |<br>
| config_applied      | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| config_status       | None                                       |<br>
| config_target       | 1a574443-db19-4338-86c6-d0b3c2afd3ce       |<br>
| console             | tty0                                       |<br>
| created_at          | 2019-09-10T10:15:49.779617+00:00           |<br>
| hostname            | controller-0                               |<br>
| id                  | 1                                          |<br>
| install_output      | text                                       |<br>
| install_state       | None                                       |<br>
| install_state_info  | None                                       |<br>
| inv_state           | inventoried                                |<br>
| invprovision        | provisioned                                |<br>
| location            | {}                                         |<br>
| mgmt_ip             | 192.168.204.3                              |<br>
| mgmt_mac            | 00:00:00:00:00:00                          |<br>
| operational         | enabled                                    |<br>
| personality         | controller                                 |<br>
| reserved            | False                                      |<br>
| rootfs_device       | /dev/disk/by-path/pci-0000:00:11.5-ata-3.0 |<br>
| serialid            | None                                       |<br>
| software_load       | 19.08                                      |<br>
| subfunction_avail   | available                                  |<br>
| subfunction_oper    | enabled                                    |<br>
| subfunctions        | controller,worker                          |<br>
| task                | Locking                                    |<br>
| tboot               | false                                      |<br>
| ttys_dcd            | None                                       |<br>
| updated_at          | 2019-09-19T06:36:15.197604+00:00           |<br>
| uptime              | 572                                        |<br>
| uuid                | 86ccb737-a20b-4cea-86ae-50032383cde8       |<br>
| vim_progress_status | services-disable-failed..                  |<br>
+---------------------+--------------------------------------------+<br>
[sysadmin@controller-0 ~(keystone_admin)]$<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>