stx-openstack apply takes longer time when lock and unlock on standby controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Frank Miller |
Bug Description
Brief Description
-----------------
When standby controller locked and unlocked after host changes to available state application apply was taking more than 5 mins apply complete. This was observed in two different regular 2+2 system
2019-06-24 18:39:11,207] 423 DEBUG MainThread ssh.exec_cmd:: Executing command...
[2019-06-24 18:39:11,208] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-24 18:39:13,281] 387 DEBUG MainThread ssh.expect :: Output:
+------
| Property | Value |
+------
| action | none |
| administrative | locked |
| availability | online |
| bm_ip | 128.224.64.92 |
| bm_type | bmc |
| bm_username | Administrator |
| boot_device | sda |
| capabilities | {u'stor_function': u'monitor', u'Personality': u'Controller-
| config_applied | 6f3cceb1-
| config_status | None |
| config_target | 6f3cceb1-
| console | ttyS0,115200 |
| created_at | 2019-06-
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 192.168.204.104 |
| mgmt_mac | 2c:44:fd:83:b6:ed |
| operational | disabled |
| personality | controller |
| reserved | False |
| rootfs_device | sda |
| serialid | None |
| software_load | 19.01 |
| task | |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2019-06-
| uptime | 12697 |
| uuid | 99a714bf-
| vim_progress_status | services-disabled |
+------
[sysadmin@
[2019-06-24 18:39:13,282] 268 DEBUG MainThread ssh.send :: Send 'echo $?'
INFO MainThread host_helper.
[2019-06-24 18:39:31,987] 1340 DEBUG MainThread ssh.get_
[2019-06-24 18:39:31,987] 423 DEBUG MainThread ssh.exec_cmd:: Executing command...
[2019-06-24 18:39:31,987] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-24 18:39:33,946] 387 DEBUG MainThread ssh.expect :: Output:
+------
| Property | Value |
+------
| action | none |
| administrative | locked |
| availability | online |
| bm_ip | 128.224.64.92 |
| bm_type | bmc |
| bm_username | Administrator |
| boot_device | sda |
| capabilities | {u'stor_function': u'monitor', u'Personality': u'Controller-
| config_applied | 6f3cceb1-
| config_status | None |
| config_target | 6f3cceb1-
| console | ttyS0,115200 |
| created_at | 2019-06-
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 192.168.204.104 |
| mgmt_mac | 2c:44:fd:83:b6:ed |
| operational | disabled |
| personality | controller |
| reserved | False |
| rootfs_device | sda |
| serialid | None |
| software_load | 19.01 |
| task | |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2019-06-
| uptime | 12697 |
| uuid | 99a714bf-
| vim_progress_status | services-disabled |
+------
INFO MainThread host_helper.
[2019-06-24 18:39:31,987] 1340 DEBUG MainThread ssh.get_
[2019-06-24 18:39:31,987] 423 DEBUG MainThread ssh.exec_cmd:: Executing command...
[2019-06-24 18:39:31,987] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-24 18:39:33,946] 387 DEBUG MainThread ssh.expect :: Output:
+------
| Property | Value |
+------
| action | none |
| administrative | locked |
| availability | online |
| bm_ip | 128.224.64.92 |
| bm_type | bmc |
| bm_username | Administrator |
| boot_device | sda |
| capabilities | {u'stor_function': u'monitor', u'Personality': u'Controller-
| config_applied | 6f3cceb1-
| config_status | None |
| config_target | 6f3cceb1-
| console | ttyS0,115200 |
| created_at | 2019-06-
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 192.168.204.104 |
| mgmt_mac | 2c:44:fd:83:b6:ed |
| operational | disabled |
| personality | controller |
| reserved | False |
| rootfs_device | sda |
| serialid | None |
| software_load | 19.01 |
| task | |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2019-06-
| uptime | 12697 |
| uuid | 99a714bf-
| vim_progress_status | services-disabled |
+------
2019-06-24 18:48:17,898] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-24 18:48:19,927] 387 DEBUG MainThread ssh.expect :: Output:
+----+-
| id | hostname | personality | administrative | operational | availability |
+----+-
| 1 | controller-0 | controller | unlocked | enabled | available |
| 2 | controller-1 | controller | unlocked | enabled | available |
| 3 | compute-0 | worker | unlocked | enabled | available |
| 4 | compute-1 | worker | unlocked | enabled | available |
+----+-
8.204.102:5000/v3 --os-user-
[2019-06-24 18:48:15,612] 387 DEBUG MainThread ssh.expect :: Output:
+------
| application | version | manifest name | manifest file | status | progress |
+------
| platform-integ-apps | 1.0-7 | platform-
| stx-openstack | 1.0-16-
+------
2019-06-24 18:51:17,056] 387 DEBUG MainThread ssh.expect :: Output:
+------
| application | version | manifest name | manifest file | status | progress |
+------
| platform-integ-apps | 1.0-7 | platform-
| stx-openstack | 1.0-16-
+------
2019-06-24 18:51:17,056] 387 DEBUG MainThread ssh.expect :: Output:
+------
| application | version | manifest name | manifest file | status | progress |
+------
| platform-integ-apps | 1.0-7 | platform-
| stx-openstack | 1.0-16-
+------
Sysinv logs time when complete
19-06-24 18:53:31.753 106249 INFO sysinv.
2019-06-24 18:53:33.693 102406 INFO sysinv.
2019-06-24 18:53:34.938 102406 INFO sysinv.
2019-06-24 18:53:36.176 102406 INFO sysinv.
2019-06-24 18:53:37.533 102406 INFO sysinv.
2019-06-24 18:53:37.533 102406 INFO sysinv.
2019-06-24 18:53:38.015 102406 INFO sysinv.
2019-06-
Severity
--------
Major
Steps to Reproduce
------------------
1. Check initial state application was in applied state
2. lock and unlock standby controller
2019-06-24 18:39:11,207] 423 DEBUG MainThread ssh.exec_cmd:: Executing command...
[2019-06-24 18:39:11,208] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-24 18:39:13,281] 387 DEBUG MainThread ssh.expect :: Output:
+------
| Property | Value |
+------
| action | none |
| administrative | locked |
| availability | online |
| bm_ip | 128.224.64.92 |
| bm_type | bmc |
| bm_username | Administrator |
| boot_device | sda |
| capabilities | {u'stor_function': u'monitor', u'Personality': u'Controller-
| config_applied | 6f3cceb1-
| config_status | None |
| config_target | 6f3cceb1-
| console | ttyS0,115200 |
| created_at | 2019-06-
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 192.168.204.104 |
| mgmt_mac | 2c:44:fd:83:b6:ed |
| operational | disabled |
| personality | controller |
| reserved | False |
| rootfs_device | sda |
| serialid | None |
| software_load | 19.01 |
| task | |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2019-06-
| uptime | 12697 |
| uuid | 99a714bf-
| vim_progress_status | services-disabled |
+------
[sysadmin@
[2019-06-24 18:39:13,282] 268 DEBUG MainThread ssh.send :: Send 'echo $?'
INFO MainThread host_helper.
[2019-06-24 18:39:31,987] 1340 DEBUG MainThread ssh.get_
[2019-06-24 18:39:31,987] 423 DEBUG MainThread ssh.exec_cmd:: Executing command...
[2019-06-24 18:39:31,987] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-24 18:39:33,946] 387 DEBUG MainThread ssh.expect :: Output:
+------
| Property | Value |
+------
| action | none |
| administrative | locked |
| availability | online |
| bm_ip | 128.224.64.92 |
| bm_type | bmc |
| bm_username | Administrator |
| boot_device | sda |
| capabilities | {u'stor_function': u'monitor', u'Personality': u'Controller-
| config_applied | 6f3cceb1-
| config_status | None |
| config_target | 6f3cceb1-
| console | ttyS0,115200 |
| created_at | 2019-06-
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 192.168.204.104 |
| mgmt_mac | 2c:44:fd:83:b6:ed |
| operational | disabled |
| personality | controller |
| reserved | False |
| rootfs_device | sda |
| serialid | None |
| software_load | 19.01 |
| task | |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2019-06-
| uptime | 12697 |
| uuid | 99a714bf-
| vim_progress_status | services-disabled |
+------
3. As per description openstack application was not up for 5mins after standby controller is in available state
Expected Behavior
------------------
application is applied within 5mins
Actual Behavior
----------------
application apply took more than 5mins
Reproducibility
---------------
Reproducible
System Configuration
-------
regular 2+2 system
Branch/Pull Time/Commit
-------
"20190623T233000Z
Last Pass
---------
Not sure
Timestamp/Logs
--------------
2019-06-
Test Activity
-------------
Regression test
tags: | added: stx.regression |
tags: | added: stx.retestneeded |
tags: | removed: stx.retestneeded |
How long did it take the application to apply after lock/unlock?
Given the bugs says it takes longer after lock/unlock, how long does the apply take initially on the same system?
Also a reminder to include the logs when opening bugs