[regression] Tempest test test_host_name_is_same_as_server_name is failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
Oleksiy Butenko |
Bug Description
Detailed bug description:
9.1 snapshot #173
Configuration:
ISO: http://
Settings:
Compute - QEMU.
Network - Neutron with VLAN segmentation.
Storage Backends - LVM
Additional services - Install Ironic
In tab Settings->Compute check Nova quotas
In tab Settings->OpenStack Services check enable Install Ceilometer and Aodh
In tab Networks->Other check enable Neutron DVR
Nodes: controller, compute, ironic,cinder, Telemetry - MongoDB
Steps to reproduce:
1. Deploy ISO in configuration see (Detailed bug description)
2. Navigate to controller node
3. Install git (use apt-get install git)
4. Clone script to deploy rally + tempest
# git clone https:/
5. Navigate to the https:/
6. Execute necessary steps to deploy tempest
7. Tun test in debug mode
#rally --debug verify start --regex tempest.
Expected results:
Test is passed
Actual result:
Test is Failed
(see comments)
Reproducibility:
See attachment
Workaround:
---
Impact:
---
Description of the environment:
See (Detailed bug description)
Additional information:
Traceback (most recent call last):
File "/home/
self.
File "/usr/local/
self.
File "/usr/local/
raise mismatch_error
testtools.
reference = 'tempest-
actual = u'tempest-
: Failed while verifying servername equals hostname. Expected hostname "tempest-
Changed in mos: | |
assignee: | MOS QA Team (mos-qa) → stgleb (gstepanov) |
summary: |
- Tempes test test_host_name_is_same_as_server_name is failed + Tempest test test_host_name_is_same_as_server_name is failed |
Changed in mos: | |
assignee: | stgleb (gstepanov) → nobody |
assignee: | nobody → MOS Nova (mos-nova) |
summary: |
- Tempest test test_host_name_is_same_as_server_name is failed + [regression] Tempest test test_host_name_is_same_as_server_name is + failed |
Changed in mos: | |
assignee: | MOS QA Team (mos-qa) → Oleksiy Butenko (obutenko) |
Changed in mos: | |
status: | Confirmed → Invalid |
status: | Invalid → In Progress |
The problem is that we expected hostname with capital letters.
As I know DNS or name in /etc/hostname are insensetive:
http:// www.ietf. org/rfc/ rfc1035. txt
2.3.1. Preferred name syntax
Note that while upper and lower case letters are allowed in domain
names, no significance is attached to the case. That is, two names with
the same spelling but different case are to be treated as if identical."
So, we just can apply lower() method here /github. com/openstack/ tempest/ blob/master/ tempest/ api/compute/ servers/ test_create_ server. py#L142
https:/
However, it is worked before and was broken on 9.x snapshot #169 /mirantis. testrail. com/index. php?/tests/ view/14007006& group_by= cases:section_ id&group_ order=asc& group_id= 49560
https:/
It's easy to reproduce - just boot new instance with capital letters in name.
I guess, it's not clound-init problem (because I got hostname in lowercase for few images) and replated to Nova
default cirros image: http:// pastebin. com/B8T4Q3A9 pastebin. com/bPw7s8yb
ubuntu image: http://