Bug 1287444 - nova resize fails due to ssh accross compute nodes not setup
Summary: nova resize fails due to ssh accross compute nodes not setup
Keywords:
Status: CLOSED DUPLICATE of bug 1404294
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Angus Thomas
QA Contact: Omri Hochman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-02 06:16 UTC by Graeme Gillies
Modified: 2019-10-10 10:38 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 12:50:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Graeme Gillies 2015-12-02 06:16:59 UTC
Director 7.1, RHEL-OSP 7.0.2

When doing a nova resize, it fails with the following error

2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs) 
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/comput
e/manager.py", line 294, in decorated_function                                                                       
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     migration.instance_uuid, exc_info=True)         
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/
excutils.py", line 85, in __exit__                                                                                   
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)    
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/comput
e/manager.py", line 277, in decorated_function                                                                       
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs) 
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/comput
e/manager.py", line 363, in decorated_function                                                                       
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())          
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/
excutils.py", line 85, in __exit__                                                                                   
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)    
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/comput
e/manager.py", line 351, in decorated_function                                                                       
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs) 
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/comput
e/manager.py", line 4076, in resize_instance                                                                         
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     self.instance_events.clear_events_for_instance(i
nstance)                                                                                                             
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib64/python2.7/contextlib.py", line 35
, in __exit__                                                                                                        
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     self.gen.throw(type, value, traceback)          
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/comput
e/manager.py", line 6455, in _error_out_instance_on_exception                                                        
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher     raise error.inner_exception                     
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher ResizeError: Resize error: not able to execute ssh c
ommand: Unexpected error while running command.                                                                      
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher Command: ssh 10.9.38.70 mkdir -p /var/lib/nova/insta
nces/ee73d3e2-fcff-4e18-bd86-7e2e699e15bb                                                                            
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher Exit code: 255                                      
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher Stdout: u''                                         
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher Stderr: u'Host key verification failed.\r\n'        
2015-12-02 01:01:21.422 4409 TRACE oslo_messaging.rpc.dispatcher                                                     

Looking in /var/lib/nova/.ssh, it seems that no ssh keys are setup for the nova user, and also there is no .ssh/config file with the following contents

Host *
StrictHostKeyChecking no

Both of these will be needed for resize to work

Regards,

Graeme

Comment 2 Jeremy 2016-02-29 14:09:23 UTC
Hello,

Is there any additional info we need for this bug?

Comment 4 Mike Burns 2016-04-07 21:00:12 UTC
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.

Comment 7 Red Hat Bugzilla Rules Engine 2017-02-06 23:35:49 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 8 Stephen Gordon 2017-04-21 12:50:33 UTC
This would fall under the work being planned under https://bugzilla.redhat.com/show_bug.cgi?id=1404294 for cold migration scenarios.

*** This bug has been marked as a duplicate of bug 1404294 ***

Comment 9 awaugama 2017-09-07 19:03:52 UTC
Dup -- QE will decide about automating the original


Note You need to log in before you can comment on or make changes to this bug.