Cloud-init not working

Bug #1535334 reported by Yuli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Fix Released
High
Yuli

Bug Description

Looks like cloud-init is not working when working with Dragonflow.

Cloud-init is a feature automatically enabled by nova.
It is used for configuration of new VMs.
Like copying SSH keys, etc...

I created a Cirros VM and tried to connect to cloud-init server:

I tried to run the following command from VM without success:
curl http://169.254.169.254/latest/user-data
curl http://169.254.169.254/latest/meta-data/instance-id
curl http://169.254.169.254/2009-04-04/meta-data/instance-id
curl http://169.254.169.254/

I am getting 500 error.

Revision history for this message
Yuli (stremovsky) wrote :
Li Ma (nick-ma-z)
Changed in dragonflow:
importance: Undecided → High
Yuli (stremovsky)
description: updated
description: updated
Yuli (stremovsky)
Changed in dragonflow:
assignee: nobody → Yuli (stremovsky)
Revision history for this message
Yuli (stremovsky) wrote :

Hello

After additional research I was able to connect to the meta service.
I added the following lines to local.conf file before running the stack.sh
configuration script:

enable_service q-meta
enable_service q-dhcp

After that I was able to connect to meta service IP address: 169.254.169.254 .
In addition, I created and later connected using SSH to an ubuntu instance
using a private key generated by openstack.

It turned out to be able to use meta service, anther "hidden" service is started,
It is called meta-service-proxy service, It is used to forward meta data request to
real meta service. it is started by the regular q-dhcp service for each tenant.

Thanks and best regards,
Yuli

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

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

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

Reviewed: https://review.openstack.org/280643
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=b0e510901517729229b7872ca550ca415ef20164
Submitter: Jenkins
Branch: master

commit b0e510901517729229b7872ca550ca415ef20164
Author: Yuli <email address hidden>
Date: Tue Feb 16 14:06:53 2016 +0200

    Add howto steps to enable meta service

    Change-Id: I8f4637c3b771f8bf53f1861d64c1a19c8c50f991
    Closes-bug: #1535334

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