Redhat sanity expecting fqname while running sanity. nova service-list in RH has fqname

Bug #1730492 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Medium
Senthilnathan Murugappan
R4.0
Fix Committed
Medium
Senthilnathan Murugappan
R4.1
Fix Committed
Medium
Senthilnathan Murugappan
Trunk
Fix Committed
Medium
Senthilnathan Murugappan

Bug Description

  Traceback (most recent call last):
  File "tcutils/wrappers.py", line 152, in wrapper
    raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: <pre>Traceback (most recent call last):
  File "tcutils/wrappers.py", line 73, in wrapper
    result = function(self, *args, **kwargs)
  File "scripts/vm_regression/test_vm_basic.py", line 272, in test_vm_add_delete
    assert vm1_fixture.verify_on_setup()
  File "/contrail-test/fixtures/vm_test.py", line 604, in verify_on_setup
    result = self.verify_vm_in_agent()
  File "tcutils/util.py", line 61, in f_retry
    result = f(*args, **kwargs) # first attempt
  File "/contrail-test/fixtures/vm_test.py", line 859, in verify_vm_in_agent
    inspect_h = self.agent_inspect[self.vm_node_ip]
  File "/contrail-test/fixtures/vm_test.py", line 299, in vm_node_ip
    self._vm_node_ip = self.inputs.get_host_ip(self.get_host_of_vm())
  File "common/contrail_test_init.py", line 711, in get_host_ip
    ip = self.host_data[name]['host_ip']
KeyError: u'overcloud-novacompute-1.localdomain'
</pre>

Revision history for this message
shajuvk (shajuvk) wrote :

[root@overcloud-controller-0 ~]# nova service-list
+----+------------------+-------------------------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+-------------------------------------+----------+---------+-------+----------------------------+-----------------+
| 5 | nova-consoleauth | overcloud-controller-0.localdomain | internal | enabled | up | 2017-11-06T19:28:22.000000 | - |
| 6 | nova-scheduler | overcloud-controller-0.localdomain | internal | enabled | up | 2017-11-06T19:28:17.000000 | - |
| 7 | nova-conductor | overcloud-controller-0.localdomain | internal | enabled | up | 2017-11-06T19:28:20.000000 | - |
| 9 | nova-compute | overcloud-novacompute-1.localdomain | nova | enabled | up | 2017-11-06T19:28:15.000000 | - |
| 10 | nova-compute | overcloud-novacompute-0.localdomain | nova | enabled | up | 2017-11-06T19:28:21.000000 | - |
+----+------------------+-------------------------------------+----------+---------+-------+----------------------------+-----------------+
[root@overcloud-controller-0 ~]# vi /etc/hosts

information type: Proprietary → Public
summary: - Redhat sanity expecting fqname in sanity_testbed.json
+ Redhat sanity expecting fqname while running sanity
summary: - Redhat sanity expecting fqname while running sanity
+ Redhat sanity expecting fqname while running sanity. nova service-list
+ in RH has fqname
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/37225
Submitter: Senthilnathan Murugappan (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37226
Submitter: Senthilnathan Murugappan (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/37227
Submitter: Senthilnathan Murugappan (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/37228
Submitter: Senthilnathan Murugappan (<email address hidden>)

shajuvk (shajuvk)
tags: added: sanityblocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/37225
Submitter: Senthilnathan Murugappan (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37226
Committed: http://github.com/Juniper/contrail-test-ci/commit/cb54fb827a26ddf071ad4668f9e821e83f33c8b6
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit cb54fb827a26ddf071ad4668f9e821e83f33c8b6
Author: Senthilnathan Murugappan <email address hidden>
Date: Mon Nov 6 12:08:11 2017 -0800

fix matching on host-fqname while retrieving hostname
from nova obj

Needed for RHOSP installation where nova services are registered with host-fqdn and contrail uses hostname
Closes-Bug: #1730492

Change-Id: I1a149eb083f17b7d9a39c8ad75bca6e47623ba07

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/37225
Committed: http://github.com/Juniper/contrail-test-ci/commit/a8b2f051da3d8ef4ca8125711ede4074c8a0e16f
Submitter: Zuul (<email address hidden>)
Branch: master

commit a8b2f051da3d8ef4ca8125711ede4074c8a0e16f
Author: Senthilnathan Murugappan <email address hidden>
Date: Mon Nov 6 12:08:11 2017 -0800

fix matching on host-fqname while retrieving hostname from nova obj

Needed for RHOSP installation where nova services are registered with host-fqdn and contrail uses hostname
Closes-Bug: #1730492

Change-Id: I1a149eb083f17b7d9a39c8ad75bca6e47623ba07

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/37228
Committed: http://github.com/Juniper/contrail-test-ci/commit/54533ffe541531c04525c14e7d715a07efb133c6
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 54533ffe541531c04525c14e7d715a07efb133c6
Author: Senthilnathan Murugappan <email address hidden>
Date: Mon Nov 6 12:08:11 2017 -0800

fix matching on host-fqname while retrieving hostname
from nova obj

Needed for RHOSP installation where nova services are registered with host-fqdn and contrail uses hostname
Closes-Bug: #1730492

Change-Id: I1a149eb083f17b7d9a39c8ad75bca6e47623ba07

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/37227
Committed: http://github.com/Juniper/contrail-test-ci/commit/c57677a31abc8a68783ff49269d90c2fbd33b219
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit c57677a31abc8a68783ff49269d90c2fbd33b219
Author: Senthilnathan Murugappan <email address hidden>
Date: Mon Nov 6 12:08:11 2017 -0800

fix matching on host-fqname while retrieving hostname
from nova obj

Needed for RHOSP installation where nova services are registered with host-fqdn and contrail uses hostname
Closes-Bug: #1730492

Change-Id: I1a149eb083f17b7d9a39c8ad75bca6e47623ba07

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/40095
Submitter: Ankit Jain (<email address hidden>)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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