[Yahoo-eng-team] [Bug 1374326] [NEW] instance name is different between aip-cell and nova-compute node

2014-09-26 Thread adesin-zte
Public bug reported:

In api-cell the instance_name by 'nova show' command is 'instance-0062', 
but in the compute node it is 'instance-005b'. This is because the instance 
record in nova database between api-cell and child-cell. 
In api-cell:
| 2014-09-26 03:32:55 | 2014-09-26 03:33:08 | NULL| 98 |
NULL | e2b117abece5456f8f508042b824fa55 | 49dd085bd0814a8595c923c4fa22e156 | 
9e2fcd1f-f6d2-415f-a3ed-7a5cef782dd7 |   ||0 | 
NULL | NULL |   1 | active   |  2048 | 2 | 
training-test   | SBCR_1_1_3 | NULL  | r-nfmu0e2p   
  | 2014-09-26 03:32:56 | 2014-09-26 03:33:08 | NULL| 
training_test| 
training_test   | NULL  |  0 | NULL| SBCR_1_1_3  |  
 13 | NULL| 15791c49-7b0c-4290-81f5-71490cf98560 | NULL | 
/dev/vda | NULL | NULL |  | NULL   | 
NULL | NULL|0 |1 |  
0 | 0 |  20 |0 | 
api-cell0!child-cell0 | SBCR_1_1_3 |   0 | NULL  |   0 | NULL   
  
   |

the instance id  is 98(0x62) uuid is
15791c49-7b0c-4290-81f5-71490cf98560

In child-cell:
| 2014-09-26 03:32:55 | 2014-09-26 03:33:08 | NULL| 91 |
NULL | e2b117abece5456f8f508042b824fa55 | 49dd085bd0814a8595c923c4fa22e156 | 
9e2fcd1f-f6d2-415f-a3ed-7a5cef782dd7 |   ||0 | 
NULL | NULL |   1 | active   |  2048 | 2 | 
training-test   | SBCR_1_1_3 | NULL  | r-nfmu0e2p   
  | 2014-09-26 03:32:56 | 2014-09-26 03:33:08 | NULL| 
training_test| 
training_test   | NULL  |  0 | NULL| SBCR_1_1_3  |  
 13 | NULL| 15791c49-7b0c-4290-81f5-71490cf98560 | NULL | 
/dev/vda | NULL | NULL |  | NULL   | 
NULL | NULL|0 |1 |  
0 | 0 |  20 |0 | NULL  | 
SBCR_1_1_3 |   0 | NULL  |   0 | NULL   |

the instance id  is 91(0x5b) uuid is
15791c49-7b0c-4290-81f5-71490cf98560

In  compute node, the result of dumpxml is
# virsh dumpxml instance-005b

  instance-005b
  15791c49-7b0c-4290-81f5-71490cf98560

In api-cell, the result of nova show
| OS-EXT-SRV-ATTR:instance_name| instance-0062  
  |

** 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/1374326

Title:
  instance name is different between aip-cell and nova-compute node

Status in OpenStack Compute (Nova):
  New

Bug description:
  In api-cell the instance_name by 'nova show' command is 'instance-0062', 
but in the compute node it is 'instance-005b'. This is because the instance 
record in nova database between api-cell and child-cell. 
  In api-cell:
  | 2014-09-26 03:32:55 | 2014-09-26 03:33:08 | NULL| 98 |  
  NULL | e2b117abece5456f8f508042b824fa55 | 49dd085bd0814a8595c923c4fa22e156 | 
9e2fcd1f-f6d2-415f-a3ed-7a5cef782dd7 |   ||0 | 
NULL | NULL |   1 | active   |  2048 | 2 | 
training-test   | SBCR_1_1_3 | NULL  | r-nfmu0e2p   
  | 2014-09-26 03:32:56 | 2014-09-26 03:33:08 | NULL| 
training_test| 
training_test   | NULL  |  0 | NULL| SBCR_1_1_3  |  
 13 | NULL| 15791c49-7b0c-4290-81f5-71490cf98560 | NULL | 
/dev/vda | NULL | NULL |  | NULL   | 
NULL | NULL|0 |1 |  
0 | 0 |  20 |0 | 
api-cell0!child-cell0 | SBCR_1_1_3 |   0 | NULL  |   0 | NULL   

 |

  the instance id  is 98(0x62) uuid is
  15791c49-7b0c-4290-81f5-71490cf98560

  In child-cell:
  | 2014-09-26 03:32:55 | 2014-09-26 03:33:08 | NULL| 91 |  
  NULL | e2b117abece5456f8f508042b824fa55 | 49dd085bd0814a8595c923c4fa22e156 | 
9e2fcd1f-f6d2-415f-a3ed-7a5cef782dd7 |   ||0 | 
NULL | NULL |   1 | active   |  2048 | 2 | 
training-test   | SBCR_1_1_3 | NULL  | r-nfmu0e2p   
  | 2014-09-26 03:32:56 | 2014-09-26 03:33:08 | NULL| 
training_test| 
training_

[Yahoo-eng-team] [Bug 1371535] [NEW] 'FlavorNotFound' when create an instance with cells

2014-09-19 Thread adesin-zte
Public bug reported:

I create a new flavor, and create an instance with the new flavor. It failed 
with "raise exception.FlavorNotFound(flavor_id=id)\n\nFlavorNotFound: Flavor 12 
could not be found".
Because when creates a new flavor, it will update the db on apicell only, but 
not update it on childcell. When the spwan instance on host, it will access the 
db on childcell.

The trace back sa following:

File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 1316, in 
_build_instance
 set_access_ip=set_access_ip)
 File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 401, in 
decorated_function 
 return function(self, context, *args, **kwargs)  
 File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 1729, in 
_spawn
 LOG.exception(_(\'Instance failed to spawn\'), instance=instance)  
 File " sr/lib/python2.7/site-packages ova/openstack/common/excutils.py", line 
68, in __exit__
 six.reraise(self.type_, self.value, self.tb)  
 File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 1726, in 
_spawn
 block_device_info)  
 File " sr/lib/python2.7/site-packages ova/virt/libvirt/driver.py", line 2323, 
in spawn
 write_to_disk=True)  
 File " sr/lib/python2.7/site-packages ova/virt/libvirt/driver.py", line 3508, 
in to_xml
 disk_info, rescue, block_device_info)  
 File " sr/lib/python2.7/site-packages ova/virt/libvirt/driver.py", line 3157, 
in get_guest_config
 instance[\'instance_type_id\']) 
 File " sr/lib/python2.7/site-packages ova/objects/base.py", line 110, in 
wrapperargs, kwargs)  
 File " sr/lib/python2.7/site-packages ova/conductor/rpcapi.py", line 425, in 
object_class_action
 objver=objver, args=args, kwargs=kwargs) 
 File " sr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 150, 
in call
 wait_for_reply=True, timeout=timeout) 
 File " sr/lib/python2.7/site-packages/oslo/messaging/transport.py", line 90, 
in _send   
 timeout=timeout)  
 File " sr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py", 
line 412, in send
 return self._send(target, ctxt, message, wait_for_reply, timeout)
 File " sr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py", 
line 405, in _send
 raise result\n', u'FlavorNotFound_Remote: Flavor 12 could not be 
found.\nTraceback (most recent call last):
 File " sr/lib/python2.7/site-packages ova/conductor/manager.py", line 597, in 
_object_dispatch   
 return getattr(target, method)(context, *args, **kwargs)  
 File " sr/lib/python2.7/site-packages ova/objects/base.py", line 112, in 
wrapper   
 result = fn(cls, context, *args, **kwargs)  File " 
sr/lib/python2.7/site-packages ova/objects/flavor.py", line 83, in get_by_id
 db_flavor = db.flavor_get(context, id)
 File " sr/lib/python2.7/site-packages ova/db/api.py", line 1454, in flavor_get 
   
 return IMPL.flavor_get(context, id) 
 File " sr/lib/python2.7/site-packages ova/db/sqlalchemy/api.py", line 164, in 
wrapper
 return f(*args, **kwargs) 
 File " sr/lib/python2.7/site-packages ova/db/sqlalchemy/api.py", line 4368, in 
flavor_get
 raise exception.FlavorNotFound(flavor_id=id)\n\nFlavorNotFound: Flavor 12 
could not be found.

** 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/1371535

Title:
  'FlavorNotFound' when create an instance with cells

Status in OpenStack Compute (Nova):
  New

Bug description:
  I create a new flavor, and create an instance with the new flavor. It failed 
with "raise exception.FlavorNotFound(flavor_id=id)\n\nFlavorNotFound: Flavor 12 
could not be found".
  Because when creates a new flavor, it will update the db on apicell only, but 
not update it on childcell. When the spwan instance on host, it will access the 
db on childcell.

  The trace back sa following:

  File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 1316, in 
_build_instance
   set_access_ip=set_access_ip)
   File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 401, in 
decorated_function 
   return function(self, context, *args, **kwargs)  
   File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 1729, in 
_spawn
   LOG.exception(_(\'Instance failed to spawn\'), instance=instance)  
   File " sr/lib/python2.7/site-packages ova/openstack/common/excutils.py", 
line 68, in __exit__
   six.reraise(self.type_, self.value, self.tb)  
   File " sr/lib/python2.7/site-packages ova/compute/manager.py", line 1726, in 
_spawn
   block_device_info)  
   File " sr/lib/python2.7/site-packages ova/virt/libvirt/driver.py", line 
2323, in spawn
   write_to_disk=True)  
   File " sr/lib/python2.7/site-packages ova/virt/libvirt/driver.py", line 
3508, in to_xml
   disk_info, rescue, block_device_info)  
   File " sr/lib/python2.7/site-packages ov

[Yahoo-eng-team] [Bug 1342545] [NEW] There is no parameter for 'nova rebuild' to inject files into the server.

2014-07-15 Thread adesin-zte
Public bug reported:

When create a server, I can use the parameter --file to inject a file to
it. But when I rebuild the server, I can not inject the files.

** 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/1342545

Title:
  There is no parameter for 'nova rebuild' to inject files into the
  server.

Status in OpenStack Compute (Nova):
  New

Bug description:
  When create a server, I can use the parameter --file to inject a file
  to it. But when I rebuild the server, I can not inject the files.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp