Nova compute injects static interfaces file when DHCP ports belong to a different tenant than VM

Bug #1711451 reported by Pooja Ghumre
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Pooja Ghumre

Bug Description

Description
===========
When config drive is not used, metadata service is used to inject SSH key for which the static
route is injected by DHCP agent. When querying DHCP ports for a shared network, we need to use
admin context otherwise only for the network owner tenant, dhcp_server is added to network_info model of an instance and for other tenants, nova-compute injects static IP interface file.

Steps to reproduce
==================
* Created an isolated shared DHCO network in tenant A
* Created a VM on above network without config drive enabled and tried injecting SSH key
* Tried to SSH using the key

Expected result
===============
SSH using key should work.

Actual result
=============
Got permission denied error since SSH key was not injected.
Static route for metadata service was not added to guest and it had a static interfaces file injected instead of DHCP.

Environment
===========
- Openstack Newton (Nova and Neutron with metadata service enabled for isolated networks)

tags: added: openstack-version.newton
Pooja Ghumre (pooja-9)
Changed in nova:
status: New → In Progress
assignee: nobody → Pooja Ghumre (pooja-9)
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.