Bug 1340832 - Serial ports lost after hard-reboot
Summary: Serial ports lost after hard-reboot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 7.0 (Kilo)
Hardware: All
OS: All
high
high
Target Milestone: async
: ---
Assignee: Sahid Ferdjaoui
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On:
Blocks: 1313171 1341606 1341612
TreeView+ depends on / blocked
 
Reported: 2016-05-30 11:28 UTC by Sahid Ferdjaoui
Modified: 2019-11-14 08:12 UTC (History)
13 users (show)

Fixed In Version: openstack-nova-2015.1.4-5.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1341606 (view as bug list)
Environment:
Last Closed: 2016-06-23 17:37:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1587014 0 None None None 2016-05-30 11:28:01 UTC
OpenStack gerrit 322772 0 None None None 2016-05-30 11:33:46 UTC
Red Hat Product Errata RHBA-2016:1313 0 normal SHIPPED_LIVE openstack-nova bug fix advisory 2016-06-23 21:36:11 UTC

Description Sahid Ferdjaoui 2016-05-30 11:28:02 UTC
After I executed "nova reboot --hard <vm>", I could not access to the vm's serial-console.

The problem is able to be recovered by re-executing "nova reboot --hard <vm>".
And evey time I execute the command, the accessiblity to serial console is changed alternately.

 1. Get Serial Console             => I can access it.
 2. After 1st "nova reboot --hard" => I cannot access it.
 3. After 2nd "nova reboot --hard" => I can access it.
 4. After 3rd "nova reboot --hard" => I cannot access it.

Comment 7 Prasanth Anbalagan 2016-06-23 12:34:17 UTC
Verified as follows,


**********
VERSION
**********

[root@rhos-compute-node-02 ~(keystone_admin)]# yum list installed | grep openstack-nova
openstack-nova-api.noarch                  2015.1.4-7.el7ost       @RH7-RHOS-7.0
openstack-nova-cert.noarch                 2015.1.4-7.el7ost       @RH7-RHOS-7.0
openstack-nova-common.noarch               2015.1.4-7.el7ost       @RH7-RHOS-7.0
openstack-nova-conductor.noarch            2015.1.4-7.el7ost       @RH7-RHOS-7.0
openstack-nova-console.noarch              2015.1.4-7.el7ost       @RH7-RHOS-7.0
openstack-nova-novncproxy.noarch           2015.1.4-7.el7ost       @RH7-RHOS-7.0
openstack-nova-scheduler.noarch            2015.1.4-7.el7ost       @RH7-RHOS-7.0
[root@rhos-compute-node-02 ~(keystone_admin)]# 

*******
LOGS
*******

[root@rhos-compute-node-02 ~(keystone_admin)]# nova get-serial-console vm1
+--------+-----------------------------------------------------------------+
| Type   | Url                                                             |
+--------+-----------------------------------------------------------------+
| serial | ws://10.8.0.50:6083/?token=156f31f5-9dac-4236-a8ed-c186fdda4b92 |
+--------+-----------------------------------------------------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# nova reboot --hard vm1
[root@rhos-compute-node-02 ~(keystone_admin)]# nova list
+--------------------------------------+------+-------------+---------------------+-------------+---------------------+
| ID                                   | Name | Status      | Task State          | Power State | Networks            |
+--------------------------------------+------+-------------+---------------------+-------------+---------------------+
| c16e753b-68f8-41e2-b9ff-2baaf5a05200 | vm1  | HARD_REBOOT | reboot_pending_hard | Running     | public=172.24.4.227 |
| 0ff9ef1b-56b7-4d08-aff4-87ff26f8430f | vm2  | ACTIVE      | -                   | Running     | public=172.24.4.228 |
+--------------------------------------+------+-------------+---------------------+-------------+---------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| c16e753b-68f8-41e2-b9ff-2baaf5a05200 | vm1  | ACTIVE | -          | Running     | public=172.24.4.227 |
| 0ff9ef1b-56b7-4d08-aff4-87ff26f8430f | vm2  | ACTIVE | -          | Running     | public=172.24.4.228 |
+--------------------------------------+------+--------+------------+-------------+---------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# nova get-serial-console vm1
+--------+-----------------------------------------------------------------+
| Type   | Url                                                             |
+--------+-----------------------------------------------------------------+
| serial | ws://10.8.0.50:6083/?token=65914d98-e7a7-4df7-b31d-ef0c25f4be20 |
+--------+-----------------------------------------------------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# nova reboot --hard vm1
[root@rhos-compute-node-02 ~(keystone_admin)]# nova list
+--------------------------------------+------+-------------+----------------+-------------+---------------------+
| ID                                   | Name | Status      | Task State     | Power State | Networks            |
+--------------------------------------+------+-------------+----------------+-------------+---------------------+
| c16e753b-68f8-41e2-b9ff-2baaf5a05200 | vm1  | HARD_REBOOT | rebooting_hard | Running     | public=172.24.4.227 |
| 0ff9ef1b-56b7-4d08-aff4-87ff26f8430f | vm2  | ACTIVE      | -              | Running     | public=172.24.4.228 |
+--------------------------------------+------+-------------+----------------+-------------+---------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| c16e753b-68f8-41e2-b9ff-2baaf5a05200 | vm1  | ACTIVE | -          | Running     | public=172.24.4.227 |
| 0ff9ef1b-56b7-4d08-aff4-87ff26f8430f | vm2  | ACTIVE | -          | Running     | public=172.24.4.228 |
+--------------------------------------+------+--------+------------+-------------+---------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# nova get-serial-console vm1
+--------+-----------------------------------------------------------------+
| Type   | Url                                                             |
+--------+-----------------------------------------------------------------+
| serial | ws://10.8.0.50:6083/?token=280a390f-ae1d-4543-9939-963653a06dfc |
+--------+-----------------------------------------------------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# nova reboot --hard vm1
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# nova list
+--------------------------------------+------+-------------+---------------------+-------------+---------------------+
| ID                                   | Name | Status      | Task State          | Power State | Networks            |
+--------------------------------------+------+-------------+---------------------+-------------+---------------------+
| c16e753b-68f8-41e2-b9ff-2baaf5a05200 | vm1  | HARD_REBOOT | reboot_started_hard | Running     | public=172.24.4.227 |
| 0ff9ef1b-56b7-4d08-aff4-87ff26f8430f | vm2  | ACTIVE      | -                   | Running     | public=172.24.4.228 |
+--------------------------------------+------+-------------+---------------------+-------------+---------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# 
[root@rhos-compute-node-02 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| c16e753b-68f8-41e2-b9ff-2baaf5a05200 | vm1  | ACTIVE | -          | Running     | public=172.24.4.227 |
| 0ff9ef1b-56b7-4d08-aff4-87ff26f8430f | vm2  | ACTIVE | -          | Running     | public=172.24.4.228 |
+--------------------------------------+------+--------+------------+-------------+---------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# nova get-serial-console vm1
+--------+-----------------------------------------------------------------+
| Type   | Url                                                             |
+--------+-----------------------------------------------------------------+
| serial | ws://10.8.0.50:6083/?token=597dc533-5d58-49d0-abc1-29591cab2dce |
+--------+-----------------------------------------------------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]#

Comment 9 errata-xmlrpc 2016-06-23 17:37:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1313


Note You need to log in before you can comment on or make changes to this bug.