[Bug 2039302] [NEW] mantic heat package missing heat/cloudinit/ files

Corey Bryant 2039302 at bugs.launchpad.net
Fri Oct 13 17:22:41 UTC 2023


Public bug reported:

[Impact]

Creating a stack on mantic results in (see /var/log/heat/heat-
engine.log):

2023-10-13 17:14:44.705 78879 INFO heat.engine.resource [None req-3809003f-f9b6-42ae-85f5-e41e859c622b admin - - - - -] CREATE: Server "my_instance" Stack "stack3" [467ab1c9-523f-4fff-a774-be66b96572ea]
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource Traceback (most recent call last):
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 922, in _action_recorder
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 1034, in _do_action
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield from self.action_handler_task(action, args=handler_args)
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 976, in action_handler_task
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     handler_data = handler(*args)
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                    ^^^^^^^^^^^^^^
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resources/openstack/nova/server.py", line 848, in handle_create
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     userdata = self.client_plugin().build_userdata(
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 370, in build_userdata
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     read_cloudinit_file('config')).safe_substitute(
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 352, in read_cloudinit_file
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return pkgutil.get_data(
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3.11/pkgutil.py", line 640, in get_data
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return loader.get_data(resource_name)
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "<frozen importlib._bootstrap_external>", line 1130, in get_data
2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/config'


2023-10-13 17:28:34.236 571625 INFO heat.engine.resource [None req-d4e72a94-b94d-4927-8796-c5919afac221 admin - - - - -] CREATE: Server "my_instance" Stack "stack4" [1f196864-0d28-4338-94ec-6310736a3256]
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource Traceback (most recent call last):
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 922, in _action_recorder
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     yield
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 1034, in _do_action
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     yield from self.action_handler_task(action, args=handler_args)
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 976, in action_handler_task
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     handler_data = handler(*args)
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource                    ^^^^^^^^^^^^^^
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resources/openstack/nova/server.py", line 848, in handle_create
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     userdata = self.client_plugin().build_userdata(
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 373, in build_userdata
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     read_cloudinit_file('boothook.sh')).safe_substitute(
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 352, in read_cloudinit_file
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     return pkgutil.get_data(
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3.11/pkgutil.py", line 640, in get_data
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     return loader.get_data(resource_name)
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "<frozen importlib._bootstrap_external>", line 1130, in get_data
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/boothook.sh'
2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource
2023-10-13 17:28:34.263 571625 INFO heat.engine.stack [None req-d4e72a94-b94d-4927-8796-c5919afac221 admin - - - - -] Stack CREATE FAILED (stack4): Resource CREATE failed: FileNotFoundError: resources.my_instance: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/boothook.sh'

[Test Case]
Deploy OpenStack with juju and create a heat stack. It should be successful.

[Regression Potential]
The heat package doesn't include the missing files in the cloudinit directory. Adding the files to the package install should not cause any issues. Currently creation of a heat stack won't work on mantic. It does, however, currently work when the same package is backported to jammy (bobcat cloud archive).

** Affects: heat (Ubuntu)
     Importance: High
         Status: Triaged

** Affects: heat (Ubuntu Mantic)
     Importance: High
         Status: Triaged

** Also affects: heat (Ubuntu Mantic)
   Importance: Undecided
       Status: New

** Changed in: heat (Ubuntu Mantic)
       Status: New => Triaged

** Changed in: heat (Ubuntu Mantic)
   Importance: Undecided => High

** Description changed:

- This seems to only effect Mantic.
+ [Impact]
+ 
+ Creating a stack on mantic results in (see /var/log/heat/heat-
+ engine.log):
  
  2023-10-13 17:14:44.705 78879 INFO heat.engine.resource [None req-3809003f-f9b6-42ae-85f5-e41e859c622b admin - - - - -] CREATE: Server "my_instance" Stack "stack3" [467ab1c9-523f-4fff-a774-be66b96572ea]
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource Traceback (most recent call last):
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 922, in _action_recorder
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 1034, in _do_action
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield from self.action_handler_task(action, args=handler_args)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 976, in action_handler_task
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     handler_data = handler(*args)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                    ^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resources/openstack/nova/server.py", line 848, in handle_create
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     userdata = self.client_plugin().build_userdata(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 370, in build_userdata
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     read_cloudinit_file('config')).safe_substitute(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 352, in read_cloudinit_file
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return pkgutil.get_data(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3.11/pkgutil.py", line 640, in get_data
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return loader.get_data(resource_name)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "<frozen importlib._bootstrap_external>", line 1130, in get_data
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/config'
+ 
+ [Test Case]
+ Deploy OpenStack with juju and create a heat stack. It should be successful. 
+ 
+ [Regression Potential]
+ The heat package doesn't include the missing file. Adding the file to the package install should not cause any issues. Currently creation of a heat stack won't work on mantic. It does, however, currently work when the same package is backported to jammy (bobcat cloud archive).

** Description changed:

  [Impact]
  
  Creating a stack on mantic results in (see /var/log/heat/heat-
  engine.log):
  
  2023-10-13 17:14:44.705 78879 INFO heat.engine.resource [None req-3809003f-f9b6-42ae-85f5-e41e859c622b admin - - - - -] CREATE: Server "my_instance" Stack "stack3" [467ab1c9-523f-4fff-a774-be66b96572ea]
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource Traceback (most recent call last):
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 922, in _action_recorder
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 1034, in _do_action
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield from self.action_handler_task(action, args=handler_args)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 976, in action_handler_task
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     handler_data = handler(*args)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                    ^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resources/openstack/nova/server.py", line 848, in handle_create
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     userdata = self.client_plugin().build_userdata(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 370, in build_userdata
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     read_cloudinit_file('config')).safe_substitute(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 352, in read_cloudinit_file
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return pkgutil.get_data(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3.11/pkgutil.py", line 640, in get_data
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return loader.get_data(resource_name)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "<frozen importlib._bootstrap_external>", line 1130, in get_data
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/config'
  
+ 
+ 2023-10-13 17:28:34.236 571625 INFO heat.engine.resource [None req-d4e72a94-b94d-4927-8796-c5919afac221 admin - - - - -] CREATE: Server "my_instance" Stack "stack4" [1f196864-0d28-4338-94ec-6310736a3256]
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource Traceback (most recent call last):
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 922, in _action_recorder
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     yield
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 1034, in _do_action
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     yield from self.action_handler_task(action, args=handler_args)
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 976, in action_handler_task
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     handler_data = handler(*args)
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource                    ^^^^^^^^^^^^^^
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resources/openstack/nova/server.py", line 848, in handle_create
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     userdata = self.client_plugin().build_userdata(
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 373, in build_userdata
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     read_cloudinit_file('boothook.sh')).safe_substitute(
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 352, in read_cloudinit_file
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     return pkgutil.get_data(
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3.11/pkgutil.py", line 640, in get_data
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     return loader.get_data(resource_name)
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "<frozen importlib._bootstrap_external>", line 1130, in get_data
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/boothook.sh'
+ 2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource
+ 2023-10-13 17:28:34.263 571625 INFO heat.engine.stack [None req-d4e72a94-b94d-4927-8796-c5919afac221 admin - - - - -] Stack CREATE FAILED (stack4): Resource CREATE failed: FileNotFoundError: resources.my_instance: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/boothook.sh'
+ 
  [Test Case]
- Deploy OpenStack with juju and create a heat stack. It should be successful. 
+ Deploy OpenStack with juju and create a heat stack. It should be successful.
  
  [Regression Potential]
- The heat package doesn't include the missing file. Adding the file to the package install should not cause any issues. Currently creation of a heat stack won't work on mantic. It does, however, currently work when the same package is backported to jammy (bobcat cloud archive).
+ The heat package doesn't include the missing files in the cloudinit directory. Adding the files to the package install should not cause any issues. Currently creation of a heat stack won't work on mantic. It does, however, currently work when the same package is backported to jammy (bobcat cloud archive).

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to heat in Ubuntu.
https://bugs.launchpad.net/bugs/2039302

Title:
  mantic heat package missing heat/cloudinit/ files

Status in heat package in Ubuntu:
  Triaged
Status in heat source package in Mantic:
  Triaged

Bug description:
  [Impact]

  Creating a stack on mantic results in (see /var/log/heat/heat-
  engine.log):

  2023-10-13 17:14:44.705 78879 INFO heat.engine.resource [None req-3809003f-f9b6-42ae-85f5-e41e859c622b admin - - - - -] CREATE: Server "my_instance" Stack "stack3" [467ab1c9-523f-4fff-a774-be66b96572ea]
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource Traceback (most recent call last):
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 922, in _action_recorder
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 1034, in _do_action
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     yield from self.action_handler_task(action, args=handler_args)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 976, in action_handler_task
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     handler_data = handler(*args)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                    ^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resources/openstack/nova/server.py", line 848, in handle_create
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     userdata = self.client_plugin().build_userdata(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 370, in build_userdata
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     read_cloudinit_file('config')).safe_substitute(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 352, in read_cloudinit_file
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return pkgutil.get_data(
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "/usr/lib/python3.11/pkgutil.py", line 640, in get_data
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource     return loader.get_data(resource_name)
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource   File "<frozen importlib._bootstrap_external>", line 1130, in get_data
  2023-10-13 17:14:44.705 78879 ERROR heat.engine.resource FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/config'

  
  2023-10-13 17:28:34.236 571625 INFO heat.engine.resource [None req-d4e72a94-b94d-4927-8796-c5919afac221 admin - - - - -] CREATE: Server "my_instance" Stack "stack4" [1f196864-0d28-4338-94ec-6310736a3256]
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource Traceback (most recent call last):
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 922, in _action_recorder
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     yield
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 1034, in _do_action
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     yield from self.action_handler_task(action, args=handler_args)
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resource.py", line 976, in action_handler_task
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     handler_data = handler(*args)
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource                    ^^^^^^^^^^^^^^
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/resources/openstack/nova/server.py", line 848, in handle_create
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     userdata = self.client_plugin().build_userdata(
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 373, in build_userdata
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     read_cloudinit_file('boothook.sh')).safe_substitute(
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3/dist-packages/heat/engine/clients/os/nova.py", line 352, in read_cloudinit_file
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     return pkgutil.get_data(
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "/usr/lib/python3.11/pkgutil.py", line 640, in get_data
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource     return loader.get_data(resource_name)
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource   File "<frozen importlib._bootstrap_external>", line 1130, in get_data
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/boothook.sh'
  2023-10-13 17:28:34.236 571625 ERROR heat.engine.resource
  2023-10-13 17:28:34.263 571625 INFO heat.engine.stack [None req-d4e72a94-b94d-4927-8796-c5919afac221 admin - - - - -] Stack CREATE FAILED (stack4): Resource CREATE failed: FileNotFoundError: resources.my_instance: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/heat/cloudinit/boothook.sh'

  [Test Case]
  Deploy OpenStack with juju and create a heat stack. It should be successful.

  [Regression Potential]
  The heat package doesn't include the missing files in the cloudinit directory. Adding the files to the package install should not cause any issues. Currently creation of a heat stack won't work on mantic. It does, however, currently work when the same package is backported to jammy (bobcat cloud archive).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/heat/+bug/2039302/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list