← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1958938] [NEW] VirtualInterface table can't use the default save() to change the table

 

Public bug reported:

1. I use the method get_by_uuid from VirtualInterface to get the vif of an instance.
    vif = objects.VirtualInterface.get_by_uuid(context, port_uuid)
2. I change the 'tag' value in the vif.
3. I use the method vif.save()

Result:
I expect the the tag of my vif would be changed, but actually the LOG information of nova-compute says that 'Nonetype' object has no attribute to 'update'. By pdb check, I find out that the the method in nova/db/sqlalchemy/api/virtual_interface_update can't find the corresponding record of the instance.

The reason I guess is that when we use the method get_by_uuid, the
address would be the mac address, but the address shows in the table of
VirtualInterface is 'address/uuid', which causes the
virtual_interface_update can't find the corresponding address.

** Affects: nova
     Importance: Undecided
     Assignee: Minghong Hou (houmh)
         Status: New


** Tags: nova virtualinterface

** Changed in: nova
     Assignee: (unassigned) => Minghong Hou (houmh)

** Tags added: nova virtualinterface

-- 
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/1958938

Title:
  VirtualInterface table can't use the default save() to change the
  table

Status in OpenStack Compute (nova):
  New

Bug description:
  1. I use the method get_by_uuid from VirtualInterface to get the vif of an instance.
      vif = objects.VirtualInterface.get_by_uuid(context, port_uuid)
  2. I change the 'tag' value in the vif.
  3. I use the method vif.save()

  Result:
  I expect the the tag of my vif would be changed, but actually the LOG information of nova-compute says that 'Nonetype' object has no attribute to 'update'. By pdb check, I find out that the the method in nova/db/sqlalchemy/api/virtual_interface_update can't find the corresponding record of the instance.

  The reason I guess is that when we use the method get_by_uuid, the
  address would be the mac address, but the address shows in the table
  of VirtualInterface is 'address/uuid', which causes the
  virtual_interface_update can't find the corresponding address.

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