Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to launch more than 1 instance in Openstack Mitaka

Hi,

I am having one control node and one compute node. I have installed cinder with 1 TB capacity and launched an instance using that cinder. But I am unable to create more than one VM as it is throwing error "No valid host was found. There are not enough hosts available" but I am having enough CPU, RAM and Volumes. Please help to understand where I am doing mistake in launching instance. My setup supports hardware virutalization(please find screen shot below)

Please find below virt-host-validate output

root@kvmos-ctlnode:~# virt-host-validate QEMU: Checking for hardware virtualization : PASS QEMU: Checking if device /dev/kvm exists : PASS QEMU: Checking if device /dev/kvm is accessible : PASS QEMU: Checking if device /dev/vhost-net exists : PASS QEMU: Checking if device /dev/net/tun exists : PASS QEMU: Checking for cgroup 'memory' controller support : PASS QEMU: Checking for cgroup 'memory' controller mount-point : WARN (Mount 'memory' cgroup controller (suggested at /sys/fs/cgroup/memory)) QEMU: Checking for cgroup 'cpu' controller support : PASS QEMU: Checking for cgroup 'cpu' controller mount-point : WARN (Mount 'cpu' cgroup controller (suggested at /sys/fs/cgroup/cpu)) QEMU: Checking for cgroup 'cpuacct' controller support : PASS QEMU: Checking for cgroup 'cpuacct' controller mount-point : WARN (Mount 'cpuacct' cgroup controller (suggested at /sys/fs/cgroup/cpuacct)) QEMU: Checking for cgroup 'devices' controller support : PASS QEMU: Checking for cgroup 'devices' controller mount-point : WARN (Mount 'devices' cgroup controller (suggested at /sys/fs/cgroup/devices)) QEMU: Checking for cgroup 'net_cls' controller support : WARN (Enable CONFIG_NET_CLS_CGROUP in kernel Kconfig file) QEMU: Checking for cgroup 'blkio' controller support : PASS QEMU: Checking for cgroup 'blkio' controller mount-point : WARN (Mount 'blkio' cgroup controller (suggested at /sys/fs/cgroup/blkio)) QEMU: Checking for device assignment IOMMU support : PASS QEMU: Checking if IOMMU is enabled by kernel : WARN (IOMMU appears to be disabled in kernel. Add intel_iommu=on to kernel cmdline arguments) LXC: Checking for Linux >= 2.6.26 : PASS LXC: Checking for namespace ipc : PASS LXC: Checking for namespace mnt : PASS LXC: Checking for namespace pid : PASS LXC: Checking for namespace uts : PASS LXC: Checking for namespace net : PASS LXC: Checking for namespace user : PASS LXC: Checking for cgroup 'memory' controller support : PASS LXC: Checking for cgroup 'memory' controller mount-point : FAIL (Mount 'memory' cgroup controller (suggested at /sys/fs/cgroup/memory)) LXC: Checking for cgroup 'cpu' controller support : PASS LXC: Checking for cgroup 'cpu' controller mount-point : FAIL (Mount 'cpu' cgroup controller (suggested at /sys/fs/cgroup/cpu)) LXC: Checking for cgroup 'cpuacct' controller support : PASS LXC: Checking for cgroup 'cpuacct' controller mount-point : FAIL (Mount 'cpuacct' cgroup controller (suggested at /sys/fs/cgroup/cpuacct)) LXC: Checking for cgroup 'devices' controller support : PASS LXC: Checking for cgroup 'devices' controller mount-point : FAIL (Mount 'devices' cgroup controller (suggested at /sys/fs/cgroup/devices)) LXC: Checking for cgrou p 'net_cls' controller support : WARN (Enable CONFIG_NET_CLS_CGROUP in kernel Kconfig file) LXC: Checking for cgroup 'freezer' controller support : PASS LXC: Checking for cgroup 'freezer' controller mount-point : WARN (Mount 'freezer' cgroup controller (suggested at /sys/fs/cgroup/freezer))

*Error:*

File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 404, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 448, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/utils.py", line 372, in wrapped return func(args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/rpcapi.py", line 121, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 158, in call retry=self.retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 470, in send retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 461, in _send raise result

Please help to solve the issue.

Thanks in advance.

KKK

Unable to launch more than 1 instance in Openstack Mitaka

Hi,

I am having one control node and one compute node. I have installed cinder with 1 TB capacity and launched an instance using that cinder. But I am unable to create more than one VM as it is throwing error "No valid host was found. There are not enough hosts available" but I am having enough CPU, RAM and Volumes. Please help to understand where I am doing mistake in launching instance. My setup supports hardware virutalization(please find screen shot below)

Please find below virt-host-validate output

root@kvmos-ctlnode:~# virt-host-validate
  QEMU: Checking for hardware virtualization                                 : PASS
  QEMU: Checking if device /dev/kvm exists                                   : PASS
  QEMU: Checking if device /dev/kvm is accessible                            : PASS
  QEMU: Checking if device /dev/vhost-net exists                             : PASS
  QEMU: Checking if device /dev/net/tun exists                               : PASS
  QEMU: Checking for cgroup 'memory' controller support                      : PASS
  QEMU: Checking for cgroup 'memory' controller mount-point                  : WARN (Mount 'memory' cgroup controller (suggested at /sys/fs/cgroup/memory))
  QEMU: Checking for cgroup 'cpu' controller support                         : PASS
  QEMU: Checking for cgroup 'cpu' controller mount-point                     : WARN (Mount 'cpu' cgroup controller (suggested at /sys/fs/cgroup/cpu))
  QEMU: Checking for cgroup 'cpuacct' controller support                     : PASS
  QEMU: Checking for cgroup 'cpuacct' controller mount-point                 : WARN (Mount 'cpuacct' cgroup controller (suggested at /sys/fs/cgroup/cpuacct))
  QEMU: Checking for cgroup 'devices' controller support                     : PASS
  QEMU: Checking for cgroup 'devices' controller mount-point                 : WARN (Mount 'devices' cgroup controller (suggested at /sys/fs/cgroup/devices))
  QEMU: Checking for cgroup 'net_cls' controller support                     : WARN (Enable CONFIG_NET_CLS_CGROUP in kernel Kconfig file)
  QEMU: Checking for cgroup 'blkio' controller support                       : PASS
  QEMU: Checking for cgroup 'blkio' controller mount-point                   : WARN (Mount 'blkio' cgroup controller (suggested at /sys/fs/cgroup/blkio))
  QEMU: Checking for device assignment IOMMU support                         : PASS
  QEMU: Checking if IOMMU is enabled by kernel                               : WARN (IOMMU appears to be disabled in kernel. Add intel_iommu=on to kernel cmdline arguments)
   LXC: Checking for Linux >= 2.6.26                                         : PASS
   LXC: Checking for namespace ipc                                           : PASS
   LXC: Checking for namespace mnt                                           : PASS
   LXC: Checking for namespace pid                                           : PASS
   LXC: Checking for namespace uts                                           : PASS
   LXC: Checking for namespace net                                           : PASS
   LXC: Checking for namespace user                                          : PASS
   LXC: Checking for cgroup 'memory' controller support                      : PASS
   LXC: Checking for cgroup 'memory' controller mount-point                  : FAIL (Mount 'memory' cgroup controller (suggested at /sys/fs/cgroup/memory))
   LXC: Checking for cgroup 'cpu' controller support                         : PASS
   LXC: Checking for cgroup 'cpu' controller mount-point                     : FAIL (Mount 'cpu' cgroup controller (suggested at /sys/fs/cgroup/cpu))
   LXC: Checking for cgroup 'cpuacct' controller support                     : PASS
   LXC: Checking for cgroup 'cpuacct' controller mount-point                 : FAIL (Mount 'cpuacct' cgroup controller (suggested at /sys/fs/cgroup/cpuacct))
   LXC: Checking for cgroup 'devices' controller support                     : PASS
   LXC: Checking for cgroup 'devices' controller mount-point                 : FAIL (Mount 'devices' cgroup controller (suggested at /sys/fs/cgroup/devices))
   LXC: Checking for cgrou
p 'net_cls' controller support                     : WARN (Enable CONFIG_NET_CLS_CGROUP in kernel Kconfig file)
   LXC: Checking for cgroup 'freezer' controller support                     : PASS
   LXC: Checking for cgroup 'freezer' controller mount-point                 : WARN (Mount 'freezer' cgroup controller (suggested at /sys/fs/cgroup/freezer))

/sys/fs/cgroup/freezer)) ****Error:****

*Error:*

File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 404, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 448, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/utils.py", line 372, in wrapped return func(args, *kwargs) func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(args, *kwargs) __name)(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/rpcapi.py", line 121, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 158, in call retry=self.retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 470, in send retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 461, in _send raise result

result

Please help to solve the issue.

Thanks in advance.

KKK