setup_livem_nfs_global fails if the cluster has mixed hypervisors
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
High
|
Jeya ganesh babu J | |||
Trunk |
Fix Committed
|
High
|
Jeya ganesh babu J |
Bug Description
Live migration can happen across compatible hypervisors only. For example a libvirt VM cannot be migrated to Docker. So setup_livem_nfs should setup live migration only on computes running libvirt (and any compatible) hypervisors.
Currently setup_livm_nfs tries to setup live migration on Docker hypervisors and fails.
env.roledefs = {
'all': [host2, host3, host4, host7,host8, host9, host10, host11, host12],
'cfgm': [host2, host3, host4],
'control': [host2, host3, host4],
'openstack': [host2, host3, host4],
'compute': [host7, host8, host9, host10, host11, host12],
'collector': [host2, host3, host4 ],
'webui': [host2, host3, host4],
'database': [host2, host3, host4],
'storage-
'storage-
'toragent': [host12],
'tsn': [host12],
'build': [host_build],
}
# Compute Hypervisor
env.hypervisor = {
host11: 'docker',
host12: 'docker',
}
storage_node_config = {
host7 : { 'disks' : ['/dev/
host8 : { 'disks' : ['/dev/sdb',
host9 : { 'disks' : ['/dev/
host10 : { 'disks' : ['/dev/
}
2015-05-14 15:06:59:338201: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: 64 bytes from 172.16.75.3: icmp_seq=8 ttl=60 time=0.410 ms
2015-05-14 15:07:00:341242: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: 64 bytes from 172.16.75.3: icmp_seq=9 ttl=60 time=0.324 ms
2015-05-14 15:07:01:344323: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: 64 bytes from 172.16.75.3: icmp_seq=10 ttl=60 time=0.209 ms
2015-05-14 15:07:02:346984: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out:
2015-05-14 15:07:02:347256: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: --- 172.16.75.3 ping statistics ---
2015-05-14 15:07:02:347448: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: 10 packets transmitted, 10 received, 0% packet loss, time 8998ms
2015-05-14 15:07:02:347626: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: rtt min/avg/max/mdev = 0.209/0.
2015-05-14 15:07:02:347816: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out:
2015-05-14 15:07:02:347986: [root@172.16.70.2] out: [172.16.80.2] out:
2015-05-14 15:07:02:348170: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] run: sudo rm -rf /var/lib/
2015-05-14 15:07:02:348328: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] run: sudo mkdir /var/lib/
2015-05-14 15:07:02:348512: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] run: sudo mount 172.16.
2015-05-14 15:07:02:449580: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: mount: wrong fs type, bad option, bad superblock on 172.16.
2015-05-14 15:07:02:614188: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: missing codepage or helper program, or other error
2015-05-14 15:07:02:614428: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: (for several filesystems (e.g. nfs, cifs) you might
2015-05-14 15:07:02:614625: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: need a /sbin/mount.<type> helper program)
2015-05-14 15:07:02:614799: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: In some cases useful info is found in syslog - try
2015-05-14 15:07:02:614997: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out: dmesg | tail or so
2015-05-14 15:07:02:615186: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out:
2015-05-14 15:07:02:615341: [root@172.16.70.2] out: [172.16.80.2] out: [root@172.16.80.12] out:
2015-05-14 15:07:02:615509: [root@172.16.70.2] out: [172.16.80.2] out:
2015-05-14 15:07:02:615696: [root@172.16.70.2] out: [172.16.80.2] out:
2015-05-14 15:07:02:615853: [root@172.16.70.2] out: [172.16.80.2] out: Fatal error: run() received nonzero return code 32 while executing!
2015-05-14 15:07:02:616041: [root@172.16.70.2] out: [172.16.80.2] out:
2015-05-14 15:07:02:616232: [root@172.16.70.2] out: [172.16.80.2] out: Requested: sudo mount 172.16.
2015-05-14 15:07:02:616421: [root@172.16.70.2] out: [172.16.80.2] out: Executed: /bin/bash -l -c "sudo mount 172.16.
2015-05-14 15:07:02:616612: [root@172.16.70.2] out: [172.16.80.2] out:
2015-05-14 15:07:02:616838: [root@172.16.70.2] out: [172.16.80.2] out: Aborting.
2015-05-14 15:07:02:617029: [root@172.16.70.2] out: [172.16.80.2] out:
2015-05-14 15:07:02:919183: [root@172.16.70.2] out:
2015-05-14 15:07:02:919415: [root@172.16.70.2] out:
2015-05-14 15:07:02:919689: [root@172.16.70.2] out: Fatal error: run() received nonzero return code 1 while executing!
2015-05-14 15:07:02:919979: [root@172.16.70.2] out:
2015-05-14 15:07:02:920225: [root@172.16.70.2] out: Requested: livemnfs-setup --storage-master 172.16.80.2 --storage-
2015-05-14 15:07:02:920544: [root@172.16.70.2] out: Executed: /bin/bash -l -c "livemnfs-setup --storage-master 172.16.80.2 --storage-
2015-05-14 15:07:02:920913: [root@172.16.70.2] out:
2015-05-14 15:07:02:921214: [root@172.16.70.2] out: Aborting.
2015-05-14 15:07:02:921468: [root@172.16.70.2] out:
2015-05-14 15:07:03:038294:
2015-05-14 15:07:03:044502: Fatal error: sudo() received nonzero return code 1 while executing!
2015-05-14 15:07:03:044502:
Review in progress for https:/ /review. opencontrail. org/10735
Submitter: Jeya ganesh babu (<email address hidden>)