screenshot of error thrown in openstack-dashboard

** Attachment added: "Screenshot from 2021-02-01 12-46-18.png"
   
https://bugs.launchpad.net/cloud-archive/+bug/1914100/+attachment/5458881/+files/Screenshot%20from%202021-02-01%2012-46-18.png

** Description changed:

  Openstack: Stein
  OS: Ubuntu Bionic
  Heat-dashboard fails to launch properly.
  
  # Reproducer
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
+ ```
+ [Mon Feb 01 19:46:05.787093 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/views/generic/base.py", line 88, in 
dispatch
+ [Mon Feb 01 19:46:05.787095 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     return handler(request, *args, 
**kwargs)
+ [Mon Feb 01 19:46:05.787098 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 182, in post
+ [Mon Feb 01 19:46:05.787100 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     if form.is_valid():
+ [Mon Feb 01 19:46:05.787103 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 183, in is_valid
+ [Mon Feb 01 19:46:05.787105 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     return self.is_bound and not 
self.errors
+ [Mon Feb 01 19:46:05.787108 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 175, in errors
+ [Mon Feb 01 19:46:05.787114 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     self.full_clean()
+ [Mon Feb 01 19:46:05.787116 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 385, in full_clean
+ [Mon Feb 01 19:46:05.787119 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     self._clean_form()
+ [Mon Feb 01 19:46:05.787122 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 412, in _clean_form
+ [Mon Feb 01 19:46:05.787124 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     cleaned_data = self.clean()
+ [Mon Feb 01 19:46:05.787127 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/heat_dashboard/content/stacks/forms.py", line 
149, in clean
+ [Mon Feb 01 19:46:05.787129 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     
self.clean_uploaded_files('template', _('template'), cleaned, files)
+ [Mon Feb 01 19:46:05.787132 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/heat_dashboard/content/stacks/forms.py", line 
207, in clean_uploaded_files
+ [Mon Feb 01 19:46:05.787135 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     if tpl.startswith('{'):
+ [Mon Feb 01 19:46:05.787139 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180] TypeError: startswith first arg must 
be bytes or a tuple of bytes, not str
+ [Mon Feb 01 19:46:05.787145 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180] 
+ 
+ /var/log/apache2$
+ 
+ ```

** Description changed:

  Openstack: Stein
  OS: Ubuntu Bionic
  Heat-dashboard fails to launch properly.
  
  # Reproducer
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  ```
- [Mon Feb 01 19:46:05.787093 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/views/generic/base.py", line 88, in 
dispatch
- [Mon Feb 01 19:46:05.787095 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     return handler(request, *args, 
**kwargs)
- [Mon Feb 01 19:46:05.787098 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 182, in post
- [Mon Feb 01 19:46:05.787100 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     if form.is_valid():
- [Mon Feb 01 19:46:05.787103 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 183, in is_valid
- [Mon Feb 01 19:46:05.787105 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     return self.is_bound and not 
self.errors
- [Mon Feb 01 19:46:05.787108 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 175, in errors
- [Mon Feb 01 19:46:05.787114 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     self.full_clean()
- [Mon Feb 01 19:46:05.787116 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 385, in full_clean
- [Mon Feb 01 19:46:05.787119 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     self._clean_form()
- [Mon Feb 01 19:46:05.787122 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/django/forms/forms.py", line 412, in _clean_form
- [Mon Feb 01 19:46:05.787124 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     cleaned_data = self.clean()
- [Mon Feb 01 19:46:05.787127 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/heat_dashboard/content/stacks/forms.py", line 
149, in clean
- [Mon Feb 01 19:46:05.787129 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     
self.clean_uploaded_files('template', _('template'), cleaned, files)
- [Mon Feb 01 19:46:05.787132 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]   File 
"/usr/lib/python3/dist-packages/heat_dashboard/content/stacks/forms.py", line 
207, in clean_uploaded_files
- [Mon Feb 01 19:46:05.787135 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]     if tpl.startswith('{'):
- [Mon Feb 01 19:46:05.787139 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180] TypeError: startswith first arg must 
be bytes or a tuple of bytes, not str
- [Mon Feb 01 19:46:05.787145 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180] 
+ 140255296943872] [remote 10.5.3.109:59180] TypeError: startswith first arg 
must be bytes or a tuple of bytes, not str
+ [Mon Feb 01 19:46:05.787145 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]
  
  /var/log/apache2$
  
  ```

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

Title:
  python3-heat-dashboard launch stack fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1914100/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to