RuntimeError: cannot reuse already awaited coroutine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
Triaged
|
Undecided
|
Unassigned |
Bug Description
I have been seeing this error/warning in many deployments lately. They do not seem to be harmful as the deployment just goes on and does finish (or at least does not fail because of this). It can appear in different places in the workflow (in this particular case it was right after adding the hypervisor unit but I have seen it much sooner like during deployment of the control plane services or even when adding microk8s to the unit).
13:51:42 > Deploying OpenStack Control Plane to Kubernetes (this may take a while) ... waiting for services to come online (19/31)
13:52:04 > Deploying OpenStack Control Plane to Kubernetes (this may take a while) ... waiting for services to come online (24/31)
13:52:22 > Deploying OpenStack Control Plane to Kubernetes (this may take a while) ... waiting for services to come online (30/31)
13:53:08 > Deploying OpenStack Control Plane to Kubernetes (this may take a while) ... waiting for services to come online (31/31)
13:54:16 > Configure MySQL ...
13:54:16 > Patch LoadBalancer service annotations ...
13:54:16 > Initializing Terraform from provider mirror ...
13:54:16 > Deploying OpenStack Hypervisor ...
13:54:16 > Adding Openstack Hypervisor unit to machine(s) ... Task was destroyed but it is pending!
13:54:16 task: <Task pending name='Task-66204' coro=<Connectio
13:54:16 > Adding Openstack Hypervisor unit to machine(s) ... Task tmp raised an exception: cannot reuse already awaited coroutine
13:54:16 Traceback (most recent call last):
13:54:16 File "/snap/
13:54:16 task.result()
13:54:16 RuntimeError: cannot reuse already awaited coroutine
Changed in snap-openstack: | |
status: | Confirmed → Triaged |
Seeing this during a cluster join:
Disks to attach to MicroCeph (comma separated list): /dev/sda3 n._pinger. <locals> ._do_ping( ) done, defined at /snap/openstack /462/lib/ python3. 10/site- packages/ juju/client/ connection. py:599> wait_for=<Future cancelled> cb=[create_ task_with_ handler. <locals> ._task_ result_ exp_handler( task_name= 'tmp', logger=<Logger juju....ction (ERROR)>)() at /snap/openstack /462/lib/ python3. 10/site- packages/ juju/jasyncio. py:39]> openstack/ 462/lib/ python3. 10/site- packages/ juju/jasyncio. py", line 41, in _task_result_ exp_handler
⠙ Adding Openstack Hypervisor unit to machine(s) ... Task was destroyed but it is pending!
task: <Task pending name='Task-59' coro=<Connectio
Task tmp raised an exception: cannot reuse already awaited coroutine
Traceback (most recent call last):
File "/snap/
task.result()
RuntimeError: cannot reuse already awaited coroutine