OSTF test for default password usage: unexpected result
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Low
|
Fuel Sustaining | ||
Mitaka |
Confirmed
|
Medium
|
Fuel Documentation Team |
Bug Description
Our partner (Infoblox) has found that after he changed default OpenStack password for admin, Fuel OSTF test still claim that default password is used:
"Authorization failure. Please provide the valid credentials for your OpenStack environment, and reattempt.
Target component: Configuration
Scenario:
1. Check if default credentials for OpenStack cluster have changed."
Looks like OSTF test only verifies password value in nailgun database, not the current password, used by OpenStack environment(see https:/
This is counterintuitive and not very useful and there is no easy way to pass this test if password wasn't changed before the deployment (and of course, we only could see that the test failed after deployment end).
This behavior should at least be documented, better yet, error message should elaborate that this test might fail, even after the password was changed from default, and the best fix would be to verify if we can use the default password on the environment like it's done on the similar test test_001_
[root@fuel ~]# cat /etc/fuel/
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "8.0"
api: "1.0"
build_number: "589"
build_id: "589"
fuel-nailgun_sha: "558ca91a854cf2
python-
fuel-agent_sha: "658be72c4b42d3
fuel-
astute_sha: "b81577a5b7857c
fuel-library_sha: "c2a335b5b725f1
fuel-ostf_sha: "3bc76a63a9e7d1
fuel-mirror_sha: "fb45b80d7bee58
fuelmenu_sha: "78ffc73065a967
shotgun_sha: "63645dea384a37
network-
fuel-upgrade_sha: "616a7490ec7199
fuelmain_sha: "643a1ef27c7dcc
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: area-ostf customer-found |
Changed in fuel: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
milestone: | none → 10.0 |
The OSTF error "Authorization failure. Please provide the valid credentials for your OpenStack environment, and reattempt." is not generally unexpected.
Next to "Run test" button there is "Provide credentials" button.
You can provide valid admin credential in that window. Although i agree that this test should not require any login into except keystone URL to test.
The real problem with this test is that it still shows "Default credentials values are used. We kindly recommend that you changed all defaults." even if you already changed them.
From what i can tell this test actually uses login into you provide to test authentication instead of using admin/admin user and password.
Jugging from the test code it is so:
/usr/lib/ python2. 7/site- packages/ fuel_health/ tests/configura tion/test_ configuration. py
.....
def test_002_ check_default_ openstack_ credential_ usage(self) :
"""Check if default credentials for OpenStack cluster have changed
Target component: Configuration
Scenario:
cluster_ data = {
'password' : self.config. identity. admin_password,
'username' : self.config. identity. admin_username,
'tenant' : self.config. identity. admin_tenant_ name}
1. Check if default credentials for OpenStack cluster have changed.
Duration: 20 s.
Available since release: 2014.2-6.1
"""