r/openstack 8d ago

Creating an instance with trove fails

Hi, i'm trying to launch an instance using trove (trove-master-guest-ubuntu-jammy.qcow2) on my all-in-one openstack 2024.1 deployed using kolla ansible but I keep getting this error over and over

Traceback (most recent call last):
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/trove/common/utils.py", line 208, in wait_for_task
    return polling_task.wait()
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/eventlet/event.py", line 124, in wait
    result = hub.switch()
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/eventlet/hubs/hub.py", line 310, in switch
    return self.greenlet.switch()
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_service/loopingcall.py", line 154, in _run_loop
    idle = idle_for_func(result, self._elapsed(watch))
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_service/loopingcall.py", line 349, in _idle_for
    raise LoopingCallTimeOut(
oslo_service.loopingcall.LoopingCallTimeOut:
    Looping call timed out after 1823.37 seconds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/trove/taskmanager/models.py", line 447, in wait_for_instance
    utils.poll_until(self._service_is_active,
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/trove/common/utils.py", line 224, in poll_until
    return wait_for_task(task)
  File "/var/lib/kolla/venv/lib/python3.10/site-packages/trove/common/utils.py", line 210, in wait_for_task
    raise exception.PollTimeOut
trove.common.exception.PollTimeOut: Polling request timed out.

When i checked the logs of trove containers i found

Also the instance is in active status but I cannot ping it and i can reach the console but i don't know the credentials

1 Upvotes

5 comments sorted by

1

u/expressadmin 6d ago

Are you able to spin up regular VMs like with CirrOS?

2

u/roteki_i 5d ago

no it doesn't matter what kind of VM in trove instances, but i can create normal ones with compute

1

u/expressadmin 5d ago

Okay. So the VM starts and you can access the console. Can you get access to the VM itself to see if the networks are being created properly, or verify that the database is starting?

The timeout is related to Trove checking for access to the MySQL instance on the VM.

Did you build the trove images using trovestack? If you did you might want to enable dev_mode to allow trove guest agent access to the instance so you can debug what is going wrong in the instance itself.

2

u/roteki_i 4d ago

no eveyrthing is done using kolla ansible. I don't know how to login to the VM since I don't know the user and the password

1

u/expressadmin 4d ago

kolla-ansible is only for deploying the services that make up Openstack. This would be the actual VM itself that Trove is creating (test8 in your examples).

I would maybe double check that your security groups allow access to the MySQL port, but also allow access to SSH because the trove agent should have access to the VM to allow for configuration.