80-deploy-ironic gets keystone auth token from wrong tftp location

Bug #1291533 reported by Adam Gandelman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Medium
Alexander Gordeev

Bug Description

The ramdisk created with deploy-ironic element requires fetching a Keystone auth token from the tftp server:

TOKEN_FILE=token-$DEPLOYMENT_ID

if tftp -r /tftpboot/$TOKEN_FILE -g $BOOT_SERVER
then TOKEN_HEADER="-H 'X-Auth-Token: `cat $TOKEN_FILE`'"
else TOKEN_HEADER=""
fi

This fails (at least using atftp setup with devstack[1]). On the tftp server side:

File /opt/stack/data/ironic/tftpboot//tftpboot/token-acb4157e-34ba-4b88-bba2-3bdb7920aef1 not found

Tokens are stored in the root of the configured server-side tftpboot directory. The element should fetch from there accordingly

[1] atftpd --port 69 --bind-address 10.0.0.251 -t 60 -m 50 --daemon --user ubuntu /opt/stack/data/ironic/tftpboot

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Seems this is handled on in tripleO's tftp server setup: https://review.openstack.org/#/c/53398/ ( which was later copied to ironic-conductor setup). the WIP devstack patch has been updated to configure its tftp server similarly.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

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

Changed in diskimage-builder:
assignee: nobody → Aleksandr Gordeev (a-gordeev)
status: New → In Progress
Ben Nemec (bnemec)
Changed in diskimage-builder:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/80596
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=7d50c04bf77296f4db9f3c98ed7513598e270676
Submitter: Jenkins
Branch: master

commit 7d50c04bf77296f4db9f3c98ed7513598e270676
Author: Alexander Gordeev <email address hidden>
Date: Thu Mar 13 16:36:14 2014 +0400

    Remove hardcoded /tftpboot/ from token's tftp path

    Since file to be fetched from the root tftp directory it shouldn't
    contain any hardcoded path. Additionaly it eliminates bearing with
    map-file containing regular expressions for tftp path replacement.

    Change-Id: Iee1672834f735d7dfefce43000540522e1d053b9
    Closes-Bug: #1291533

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