Ask Your Question
0

Cannot launch instance with custom video RAM setting

asked 2018-02-12 05:04:04 -0500

yas gravatar image

I recently installed Openstack pike using packstack. I successfully configured networking. I can create instances on connect to them using ssh. My problem is when I tried to run an instance with custom RAM setting I got the following error:

Message: No valid host was found.

Code: 500

Details File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 1031, in schedule_and_build_instances instance_uuids) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 626, in _schedule_instances request_spec, instance_uuids) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 586, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 52, in select_destinations instance_uuids) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 33, in select_destinations instance_uuids) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 137, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 123, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 566, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 557, in _send raise result

I uploaded the image metadata using the following command:

glance image-update --property hw_video_model=vga --property hw_video_ram=64 CENTOS-IMAGE-ID

RESULT:

+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | 9eca98f4b3ad7e6dd4390a9d181381c9     |
| container_format | bare                                 |
| created_at       | 2018-02-09T20:44:20Z                 |
| description      | centos7_x86_64                       |
| disk_format      | qcow2                                |
| hw_video_model   | cirrus                               |
| hw_video_ram     | 64                                   |
| id               | f17a4cf5-99b0-4ff7-b4b6-f7a9cb78a61b |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | centos                               |
| owner            | 7a130a48c0dc48f88c18a4677e151ab0     |
| protected        | False                                |
| size             | 1004994560                           |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2018-02-12T16:23:21Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+

I also tried all hardware video models

vga, cirrus, vmvga and qxl

but none of them is working.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-12 07:13:50 -0500

yas gravatar image

I fixed my issue by adding a new custom nova flavor with the custom metadata value hw_video:ram_max_mb. then I update the image metadata using the following command:

glance image-update --property hw_video_model=vga --property hw_video_ram=64 IMAGE-ID

Then the instance is launched successfully.

source: https://docs.openstack.org/python-glanceclient/latest/cli/property-keys.html (glance property keys)

edit flag offensive delete link more

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: 2018-02-12 05:04:04 -0500

Seen: 82 times

Last updated: Feb 12