Skip to content

kitchen-openstack unable to retrieve network information #134

@ev0ldave

Description

@ev0ldave

Test System: OS X 10.11.2
Openstack Release: Kilo 2015.1
Network: Neutron using VLAN networking. Private IPs only, no L3 service, external hardware router
kitchen-openstack: 2.2.0
chefdk: 0.10.0

>>>>>> Create failed on instance <default-ubuntu-1404>.
>>>>>> Please see .kitchen/logs/default-ubuntu-1404.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Could not find an IP
>>>>>> ----------------------

kitchen-openstack is unable to retrieve the network information for the instance after creation.
Dropping into a pry session at line 337 in lib/kitchen/driver/openstack.rb verifies empty hash for the network name being returned:

[1] pry(#<Kitchen::Driver::Openstack>)> server.addresses => {"os384"=>[]}

Starting a new fog session with openstack also returns an empty hash for about 5 minutes when it finally populates the request:

[3] pry(#<Kitchen::Driver::Openstack>)> y = Fog::Compute.new(openstack_server) => #<Fog::Compute::OpenStack::Real:70197332503020 @openstack_username="xxxxxx" @openstack_api_key="xxxxxx" @openstack_auth_url="http://10.160.3.44:5000/v2.0/tokens" @open

[4] pry(#<Kitchen::Driver::Openstack>)> y.servers.get(server.id).addresses => {"os384"=>[]}

[11] pry(#<Kitchen::Driver::Openstack>)> y.servers.get(server.id).addresses => {"os384"=>[{"OS-EXT-IPS-MAC:mac_addr"=>"fa:16:3e:b4:99:d8", "version"=>4, "addr"=>"10.160.84.44", "OS-EXT-IPS:type"=>"fixed"}]}

I can verify that every call to nova-api does return the network information in the nova-api-os-compute log

nova-api-os-compute.txt
kitchen.yml.txt
default-ubuntu-1404.log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions