Bug 1154730

Summary: Set token_duration to 6 hours instead of one hour
Product: Red Hat OpenStack Reporter: Ramon Acedo <racedoro>
Component: rhel-osp-installerAssignee: Mike Burns <mburns>
Status: CLOSED EOL QA Contact: Omri Hochman <ohochman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: Foreman (RHEL 6)CC: lzap, rhos-maint, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: Installer   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-29 13:31:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ramon Acedo 2014-10-20 15:43:54 UTC
If the installation takes more than one hour or if the servers have been registered but not deployed for more than an hour the token expires and the host won't be built. The result is the hosts rebooting all the time into installation as the pxelinux.cfg/mac_address_of_the_node is not updated to boot from the local disk.

Comment 1 Ramon Acedo 2014-10-20 15:47:10 UTC
We tried doing this from the foreman console:

# foreman-rake console

h=Host.find_by_name("osp1-controller02.domain.example)
h.token
=> #<Token id: 158, value: "31255447-68d4-4467-a722-861cb65bf832", expires: "2014-10-20 18:17:05", host_id: 87>
h.token.expires="2014-10-20 21:10:57"
h.token.save!

The token expire time is changed but the host still ends up in the building loop.

Comment 2 Lukas Zapletal 2014-10-20 15:48:10 UTC
http://projects.theforeman.org/issues/7995

Comment 5 Jaromir Coufal 2016-09-29 13:31:45 UTC
Closing list of bugs for RHEL OSP Installer since its support cycle has already ended [0]. If there is some bug closed by mistake, feel free to re-open.

For new deployments, please, use RHOSP director (starting with version 7).

-- Jaromir Coufal
-- Sr. Product Manager
-- Red Hat OpenStack Platform

[0] https://access.redhat.com/support/policy/updates/openstack/platform