[System tests] test_cobbler_alive failed with authorization error because passwords for services are generated randomly now

Bug #1341484 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Artem Panchenko

Bug Description

Error Message

<Fault 1: "<class 'cobbler.cexceptions.CX'>:'login failed (cobbler)'">

Stacktrace

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/usr/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.thread_1/fuelweb_test/tests/test_admin_node.py", line 56, in test_cobbler_alive
    server.login('cobbler', 'cobbler')
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "<class 'cobbler.cexceptions.CX'>:'login failed (cobbler)'">

Now we have randomly generated passwords for cobbler so this line server.login('cobbler', 'cobbler') doesn't work.
We need to get password from /etc/fuel/astute.yaml somehow

Tags: system-tests
description: updated
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Panchenko (apanchenko-8)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/106743

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/106743
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=ad90ff5d2cbf27a41a7578fe5c542db6c02cf65c
Submitter: Jenkins
Branch: master

commit ad90ff5d2cbf27a41a7578fe5c542db6c02cf65c
Author: Artem Panchenko <email address hidden>
Date: Mon Jul 14 15:11:30 2014 +0300

    Get credentials for Cobbler from astute.yaml

    Currently password for Cobbler is randomly generated,
    so we should to parse it from configuration file.

    Change-Id: I13feb199d4c7f039195f81440835945a1448a75d
    Closes-bug: #1341484

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
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.