Launching an Ironic instance with user data deploys instance without user data

Bug #1555516 reported by Sofiia Andriichenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Medium
MOS Ironic
8.0.x
Won't Fix
Medium
MOS Ironic
9.x
Invalid
Medium
MOS Ironic

Bug Description

Precondition:
 - Ironic

execute:
touch file.txt
echo "# file" >> file.txt

nova boot \
--flavor bm_flavor_extra \
--image virtual_trusty_ext4 \
--key-name ironic_key \
--nic net-id=$(nova net-list|grep baremetal|awk '{print $2}') \
--user-data ./file.txt \
UbuntuVM

Actual result:
There are no file in the /home/ubuntu/ directory on the instance

Expected result:
file.txt is in the /home/ubuntu/ directory on the instance

  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "570"
  build_id: "570"
  fuel-nailgun_sha: "558ca91a854cf29e395940c232911ffb851899c1"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "c2a335b5b725f1b994f78d4c78723d29fa44685a"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "d605bcbabf315382d56d0ce8143458be67c53434"

Changed in mos:
assignee: nobody → MOS Ironic (mos-ironic)
description: updated
Revision history for this message
Dina Belova (dbelova) wrote :

Is that possible to implement it via usual metadata url? If so, that should work, otherwise it's a small feature request.

tags: added: area-ironic
removed: ironic
Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Won't Fix for 8.0-updates because of Medium importance

tags: added: wontfix-low
Revision history for this message
Andrey Shestakov (ashestakov) wrote :

please look how to use user-data in openstack
http://docs.openstack.org/user-guide/cli_provide_user_data_to_instances.html

local file file.txt should not be injected to instance as is.

Changed in mos:
status: Confirmed → Invalid
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.