Ask Your Question
0

Devstack live-migration configuration problem

asked 2017-07-18 21:39:32 -0500

ChrisHung gravatar image

So I'm trying to experiment openstack live-migration using devstack .
I followed https://www.mirantis.com/blog/tutorial-openstack-live-migration-with-kvm-hypervisor-and-nfs-shared-storage/ (this guide) to configure some settings (basically similiar to official document but more detailed)
And now I met 2 problems :

  1. I don't have /etc/init/libvirt-bin.conf and /etc/default/libvirt-bin files(which need to be configured), after doing some research, it seemed like the latest version of libvirt-bin changed their architecture a lot (https://answers.launchpad.net/ubuntu/+source/libvirt/+question/646453 (reference)), just wondering if anyone knows how to configure the latest libvirt-bin ?

  2. the document said I need to make sure nova UID and GID to be the same on the controller node and compute node, however I don't have user nova be created after executing stack.sh, is that mean I have to manually create them ?

I tried to ignore these 2 porblems and just ran live-migration command but nothing happened (it didn't give me error or any kinds of message) and of course it didn't migrate to another host.

If anyone know how to solve these 2 problems would be appreciate, thanks a lot

edit retag flag offensive close merge delete

Comments

Unsolicited advice: Don't use DevStack for that. Packstack is probably easier to use and more robust. Create an allinone server, then add a compute node. As far as I remember, it will be ready for migration.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-19 02:30:18 -0500 )edit

Thanks I'll look into it and might give it a try, can it run on Ubuntu btw because I didn't see it on the support list

ChrisHung gravatar imageChrisHung ( 2017-07-19 03:22:22 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-07-19 17:15:25 -0500

luowei gravatar image

updated 2017-07-19 17:16:03 -0500

I haven't tried this on devstack, but on a plain ubuntu tutorial build you need to:

Edit /etc/libvirt/libvirtd.conf to add/change:
listen_tls = 0
listen_tcp = 1
auth_tcp = "none"

Then edit /etc/default/libvirtd to add:
libvirtd_opts="-l"

Then:
/etc/init.d/libvirtd restart
edit flag offensive delete link more

Comments

You also need to setup passwordless root ssh between all compute nodes. See: https://medium.com/@luck/setup-passwo...

(Whereas for "resize" functionality you also need passwordless nova ssh between compute nodes).

luowei gravatar imageluowei ( 2017-07-19 17:27:03 -0500 )edit

I have setup the paswordless ssh but only for the stack user, does it mean that I have to manually create nova user and set it up ?

ChrisHung gravatar imageChrisHung ( 2017-07-19 21:12:58 -0500 )edit

I don't know devstack well enough to answer, sorry. From what you say it sounds like devstack doesn't need a nova user account. In my standard build passwordless ssh for the root user was needed for live migration. Also, try with the "Block Migration" checked if you don't use shared instance storage

luowei gravatar imageluowei ( 2017-07-19 21:41:06 -0500 )edit

So do you know the difference between Migrate Instance and Live Migrate Instance in the horizon manage instance menu? Select Migrate Instance it seemed everything goes well all I need to do is manually select Comfirm Resize/Migrate. However, select the other one nothing will happen .

ChrisHung gravatar imageChrisHung ( 2017-07-24 03:09:14 -0500 )edit
0

answered 2017-07-20 02:29:55 -0500

Deepa gravatar image

Try enabling enable-live-migration and enable-resize and set migration-auth-type to ssh in nova.conf file and also make sure id_rsa.pub of all hyperviors are present in authorized key of hypervior were you are trying to live migrate the instance

edit flag offensive delete link more

Comments

sry noobie question is that mean I have to setup something to enable enable-live-migration and enable-resize ? If it is where should I configure that ? thanks

ChrisHung gravatar imageChrisHung ( 2017-07-20 22:54:53 -0500 )edit

I deployed Open stack with juju and so used juju config nova-compute enable-live-migration=true and juju config nova-compute enable-resize=true and see juju config nova-compute

Deepa gravatar imageDeepa ( 2017-07-21 04:10:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-07-18 21:39:32 -0500

Seen: 219 times

Last updated: Jul 20 '17