Ask Your Question
0

Live migration doesn't work after upgrade controllers from Newton to Ocata [closed]

asked 2019-02-22 03:18:20 -0500

amkgi gravatar image

For updates I deployed new controllers on VMs and install all packets from Ocata repos. I used new hostnames for new controllers, but I didn't changed IP-addresses. Afther all db sync, I checked all services, but live migration doesn't work. Nova list works fine, glance, cinder, neutron too. I can launch instances, deleted their, associate IPs and more, but only live and normal migrate doesn't work.

openstack server migrate --live compute01 instance01 --debug:

clean_up MigrateServer: Unable to establish connection to http://controller:8774/v2.1/20d6b9dc5e264779a40dfb334197ae67/servers/f6b517e0-b3cf-4a77-8e17-3ec315476830/action: ('Connection aborted.', BadStatusLine("''",))
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 90, in run
    return self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 1084, in take_action
    disk_over_commit=parsed_args.disk_overcommit,
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 402, in substitution
    return methods[-1].func(obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 459, in live_migrate
    disk_over_commit)
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 402, in substitution
    return methods[-1].func(obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1698, in live_migrate
    'disk_over_commit': disk_over_commit})
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1908, in _action
    info=info, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1919, in _action_return_resp_and_body
    return self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 74, in request
    **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 374, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 142, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/osc_lib/session.py", line 40, in request
    resp = super(TimingSession, self).request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 616, in request
    resp = send(**kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 690, in _send_request
    raise exceptions.ConnectFailure(msg)
ConnectFailure: Unable to establish connection to http://controller:8774/v2.1/20d6b9dc5e264779a40dfb334197ae67/servers/f6b517e0-b3cf-4a77-8e17-3ec315476830/action: ('Connection aborted ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by amkgi
close date 2019-02-26 02:10:36.529462

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-02-23 23:23:24 -0500

jguldmyr gravatar image

Placement was already available in Newton. You can and need to configure it.

edit flag offensive delete link more
0

answered 2019-02-25 00:06:11 -0500

amkgi gravatar image

The problem was due to the change of controller hostnames. I forgot to change the hosts file on the computes.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-02-22 03:18:20 -0500

Seen: 37 times

Last updated: Feb 23