← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1711451] [NEW] Nova compute injects static interfaces file when DHCP ports belong to a different tenant than VM

 

Public bug reported:

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)

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1711451

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

Status in OpenStack Compute (nova):
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1711451/+subscriptions