We should skip haproxy check if there is no online controlles

Bug #1516057 reported by Tatyanka
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Fuel QA Team

Bug Description

fuel_health.tests.ha.test_haproxy: INFO: Controllers nodes are [u'10.109.0.3']
fuel_health.common.test_mixins: INFO: STEP:1, verify action: 'Getting state of backends'
paramiko.transport: DEBUG: starting thread (client mode): 0x3913390L
paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_6.6.1p1)
paramiko.transport: DEBUG: kex algos:[<email address hidden>', u'ecdh-sha2-nistp256', u'ecdh-sha2-nistp384', u'ecdh-sha2-nistp521', u'diffie-hellman-group-exchange-sha256', u'diffie-hellman-group-exchange-sha1', u'diffie-hellman-group14-sha1', u'diffie-hellman-group1-sha1'] server key:[u'ssh-rsa', u'ssh-dss', u'ecdsa-sha2-nistp256', u'ssh-ed25519'] client encrypt:[u'aes256-ctr', u'aes192-ctr', u'aes128-ctr', u'arcfour256', u'arcfour128'] server encrypt:[u'aes256-ctr', u'aes192-ctr', u'aes128-ctr', u'arcfour256', u'arcfour128'] client mac:[u'hmac-sha2-512', u'hmac-sha2-256', u'hmac-ripemd160', u'hmac-sha1'] server mac:[u'hmac-sha2-512', u'hmac-sha2-256', u'hmac-ripemd160', u'hmac-sha1'] client compress:[u'none', <email address hidden>'] server compress:[u'none', <email address hidden>'] client lang:[u''] server lang:[u''] kex follows?False
paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr
paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local hmac-sha1, remote hmac-sha1; compression: local none, remote none
paramiko.transport: DEBUG: Switch to new keys ...
paramiko.transport: DEBUG: Adding ssh-rsa host key for 10.109.0.3: fa34e59935833b7048da195fa5eb1d51
paramiko.transport: DEBUG: Trying key 9974fb7610829a7632f45546d9fb9cd7 from /root/.ssh/id_rsa
paramiko.transport: DEBUG: userauth is OK
paramiko.transport: INFO: Authentication (publickey) successful!
paramiko.transport: DEBUG: [chan 1] Max packet in: 34816 bytes
paramiko.transport: DEBUG: [chan 1] Max packet out: 32768 bytes
paramiko.transport: INFO: Secsh channel 1 opened.
paramiko.transport: DEBUG: [chan 1] Sesch channel 1 request ok
paramiko.transport: DEBUG: [chan 1] Sesch channel 1 request ok
paramiko.transport: DEBUG: [chan 1] EOF sent (1)
paramiko.transport: DEBUG: [chan 1] EOF received (1)
paramiko.transport: DEBUG: Dropping user packet because connection is dead.
fuel_health.tests.ha.test_haproxy: DEBUG: Dead backends ['horizon-ssl node-3 Status: DOWN/L4CON Sessions: 0 Rate: 0 ', 'keystone-1 node-3 Status: DOWN/L4CON Sessions: 0 Rate: 0 ', 'keystone-2 node-3 Status: DOWN/L4CON Sessions: 0 Rate: 0 ']
--------------------- >> end captured logging << ---------------------
2015-11-13 03:33:43 SKIPPED Check data replication over mysql (fuel_health.tests.ha.test_mysql_replication.TestMysqlReplication.test_mysql_replication) There is only one database online. Nothing to check
2015-11-13 03:33:43 SKIPPED Check if amount of tables in databases is the same on each node (fuel_health.tests.ha.test_mysql_status.TestMysqlStatus.test_os_databases) There is only one database online. Nothing to check
2015-11-13 03:33:44 SKIPPED Check galera environment state (fuel_health.tests.ha.test_mysql_status.TestMysqlStatus.test_state_of_galera_cluster) There is only one database online. Nothing to check
2015-11-13 03:33:45 SUCCESS Check pacemaker status (fuel_health.tests.ha.test_pacemaker_status.TestPacemakerStatus.test_check_pacemaker_resources)
2015-11-13 03:33:46 SKIPPED RabbitMQ availability (fuel_health.tests.ha.test_rabbit.RabbitSanityTest.test_002_rabbitmqctl_status_ubuntu) There is only one RabbitMQ node online. Nothing to check
2015-11-13 03:33:48 SKIPPED RabbitMQ replication (fuel_health.tests.ha.test_rabbit.RabbitSanityTest.test_003_rabbitmqctl_replication) There is only one RabbitMQ node online. Nothing to check

So actually there is no online controller and test should be skipped

Test failed with:
Step 1 failed: Can't get state of backends. Please refer to OpenStack logs for more details.

Tags: area-qa
Artem Roma (aroma-x)
Changed in fuel:
status: New → Confirmed
summary: - We should skip haproxy check if tehre is no online controlles
+ We should skip haproxy check if there is no online controlles
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

As I can see we have check on online controllers here - https://github.com/openstack/fuel-ostf/blob/master/fuel_health/tests/ha/test_haproxy.py#L36

Also from the logs it reported that controller is fuel_health.tests.ha.test_haproxy: INFO: Controllers nodes are [u'10.109.0.3']

So seems that test failed because there were dead backends

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

Andrew if right move to invalid

Changed in fuel:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.