[puppet4] fuel::cobbler task fails during master node bootstrap

Bug #1667332 reported by Nikita Karpin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Nikita Karpin

Bug Description

When running fuel master node bootstrap with puppet4, fuel::cobbler task fails with next error:

Debug: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: Sleeping for 3 seconds between tries
Debug: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: Exec try 20/20
Debug: Exec[cobbler_sync](provider=posix): Executing 'cobbler sync'
Debug: Executing: 'cobbler sync'
Debug: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: Sleeping for 3 seconds between tries
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback:
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: Traceback (most recent call last):
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib/python2.7/site-packages/cobbler/cli.py", line 252, in check_setup
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: s.ping()
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: return self.__send(self.__name, args)
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: verbose=self.__verbose
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: return self.single_request(host, handler, request_body, verbose)
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/xmlrpclib.py", line 1301, in single_request
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: self.send_content(h, request_body)
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/xmlrpclib.py", line 1448, in send_content
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: connection.endheaders(request_body)
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: self._send_output(message_body)
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: self.send(msg)
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/httplib.py", line 826, in send
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: self.connect()
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/httplib.py", line 807, in connect
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: self.timeout, self.source_address)
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: File "/usr/lib64/python2.7/socket.py", line 553, in create_connection
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Notice: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]/returns: gaierror: [Errno -2] Name or service not known
Error: /Stage[main]/Cobbler::Server/Exec[cobbler_sync]: Failed to call refresh: cobbler sync returned 155 instead of one of [0]

Nikita Karpin (mkarpin)
Changed in fuel:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Nikita Karpin (mkarpin)
milestone: none → 11.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

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

Reviewed: https://review.openstack.org/437438
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=c69bf9e291928d9c8b8ad45c7be94c0e45df11ec
Submitter: Jenkins
Branch: master

commit c69bf9e291928d9c8b8ad45c7be94c0e45df11ec
Author: Mykyta Karpin <email address hidden>
Date: Thu Feb 23 17:31:06 2017 +0200

    [puppet4] Fix fuel::cobbler task

    Puppet4 requires that all variables were available for template
    directly in the class where the template is used.

    Change-Id: Iefcd60c933abb02b7f5e93efea4b8743cc7e450e
    Closes-Bug: #1667332

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