[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-17 Thread Corey Bryant
This bug was fixed in the package heat-dashboard - 1.5.0-0ubuntu3~cloud1
---

 heat-dashboard (1.5.0-0ubuntu3~cloud1) bionic-stein; urgency=medium
 .
   [ Corey Bryant ]
   * d/gbp.conf: Create stable/stein branch.
 .
   [ Chris MacNaughton ]
   * d/control: Update VCS paths for move to lp:~ubuntu-openstack-dev.
 .
   [ Heather Lemon ]
   * d/p/2003343-enforces-unicode-decoding-of-data.patch (LP: #1914100)
 - Enforces the decoding of the returned value as a UTF-8


** Changed in: cloud-archive/stein
   Status: Fix Committed => Fix Released

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-05 Thread Heather Lemon
Re-tagged as verification-done.

Thanks,
Heather Lemon

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard/0 $/var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  # use sshuttle for reverse proxy to your openstack instance
  sshuttle -r ubuntu@X.X.X.X X.X.0.0/24
  
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  # ssh to openstack dashboard container
  # use new heat-dashboard deb
  # restart apache2
  # try and upload template.yaml again
  juju ssh openstack-dashboard/0
  
  #remove existing python3-heat-dashboard version
  sudo apt-get remove python3-heat-dashboard
  
  sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
  apt-get update
  
  # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
  sudo apt-cache policy python3-heat-dashboard
  
  # restart apache2
  systemctl restart apache2
  
  # go to error log
  cd /var/log/apache2
  tail -f error.log
  
  # in a new terminal
  
  on the openstack cli
  -
  openstack flavor create test
  openstack floating ip create ext_net
  openstack server list
  #find the associated container for reverse-proxy
  | 7b790c15-ccd1-469d-85f6-c20321128c3c | juju-d21df1-sru-2003343-9  | ACTIVE 
| test_admin_net=x.x.x.131| 
auto-sync/ubuntu-bionic-daily-amd64-server-20200826-disk1.img | m1.small
  #copy id or name
  
  openstack image list
  - create an image if one is not listed
  openstack keypair create test-key
  openstack keypair list
  
  openstack server add floating ip   #copied cmd from 
  # in a separate terminal
  sshuttle -r ubuntu@x.x.x.x x.x.x.0/24
  
  # open a private session with brower
  copy and paste ip from your floating ip list command into the browser url
  
  #Note: an image must be available for use before attempting a file upload
  I did this through the UI, but cli works too
  
  try to upload the file via horizon dashboard -> Project -> Stacks -> Launch 
stack (+)
  - choose the template.yaml
  - fill out admin password
  - Launch
  
  (the instance will be created)
  
  you can tail the error.logs for apache2 inside of openstack-dashboard/o
  under /var/log/apache2/error.log
  
  I saw no errors when uploading the template file.
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Patch landed in Train and now going to Stein.
  This is apython3 API change, Bionic/Queens are on python2, no fix needed in 
those releases.
  
  Openstack: Stein
  OS: Ubuntu Bionic
  
  # how to find new Openstack dashboard credentials
  credentials (leave a comment if you don't know)
  -
  # print out openstack login credentials
  juju config keystone admin-user
  juju config keystone admin-password
  
  #helpful links
  [0] https://docs.openstack.org/heat/latest/install/launch-instance.html
  [1] https://docs.openstack.org/heat-dashboard/latest/install/index.html
  [2] 
https://docs.openstack.org/newton/user-guide/cli-create-and-manage-stacks.html
+ 
+ VERIFICATION DONE
+ I was able to successfully launch a new stack from the template gui. 
+ # enabled proposed
+ Enabled the bionic-proposed repository in the openstack-dashboard container.
+ #removed old version
+ sudo apt-get remove python3-heat-dashboard
+ # dpkg -l python3-heat-dashboard | cat
+ Ensured that the version number is latest 

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-04 Thread Heather Lemon
** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard/0 $/var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  # use sshuttle for reverse proxy to your openstack instance
  sshuttle -r ubuntu@X.X.X.X X.X.0.0/24
  
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  # ssh to openstack dashboard container
  # use new heat-dashboard deb
  # restart apache2
  # try and upload template.yaml again
  juju ssh openstack-dashboard/0
  
  #remove existing python3-heat-dashboard version
  sudo apt-get remove python3-heat-dashboard
  
  sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
  apt-get update
  
  # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
  sudo apt-cache policy python3-heat-dashboard
  
  # restart apache2
  systemctl restart apache2
  
  # go to error log
  cd /var/log/apache2
  tail -f error.log
  
  # in a new terminal
  
  on the openstack cli
  -
  openstack flavor create test
  openstack floating ip create ext_net
  openstack server list
  #find the associated container for reverse-proxy
  | 7b790c15-ccd1-469d-85f6-c20321128c3c | juju-d21df1-sru-2003343-9  | ACTIVE 
| test_admin_net=x.x.x.131| 
auto-sync/ubuntu-bionic-daily-amd64-server-20200826-disk1.img | m1.small
  #copy id or name
  
  openstack image list
  - create an image if one is not listed
  openstack keypair create test-key
  openstack keypair list
  
  openstack server add floating ip   #copied cmd from 
  # in a separate terminal
  sshuttle -r ubuntu@x.x.x.x x.x.x.0/24
  
  # open a private session with brower
  copy and paste ip from your floating ip list command into the browser url
  
+ #Note: an image must be available for use before attempting a file upload
+ I did this through the UI, but cli works too
+ 
  try to upload the file via horizon dashboard -> Project -> Stacks -> Launch 
stack (+)
  - choose the template.yaml
  - fill out admin password
  - Launch
  
  (the instance will be created)
  
  you can tail the error.logs for apache2 inside of openstack-dashboard/o
  under /var/log/apache2/error.log
  
  I saw no errors when uploading the template file.
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Patch landed in Train and now going to Stein.
  This is apython3 API change, Bionic/Queens are on python2, no fix needed in 
those releases.
  
  Openstack: Stein
  OS: Ubuntu Bionic
  
  # how to find new Openstack dashboard credentials
  credentials (leave a comment if you don't know)
  -
  # print out openstack login credentials
  juju config keystone admin-user
  juju config keystone admin-password
  
  #helpful links
  [0] https://docs.openstack.org/heat/latest/install/launch-instance.html
  [1] https://docs.openstack.org/heat-dashboard/latest/install/index.html
  [2] 
https://docs.openstack.org/newton/user-guide/cli-create-and-manage-stacks.html

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-04 Thread Heather Lemon
** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard/0 $/var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  # use sshuttle for reverse proxy to your openstack instance
  sshuttle -r ubuntu@X.X.X.X X.X.0.0/24
  
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  # ssh to openstack dashboard container
  # use new heat-dashboard deb
  # restart apache2
  # try and upload template.yaml again
  juju ssh openstack-dashboard/0
  
  #remove existing python3-heat-dashboard version
  sudo apt-get remove python3-heat-dashboard
  
  sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
  apt-get update
  
  # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
  sudo apt-cache policy python3-heat-dashboard
  
  # restart apache2
  systemctl restart apache2
  
  # go to error log
  cd /var/log/apache2
  tail -f error.log
  
  # in a new terminal
  
  on the openstack cli
  -
  openstack flavor create test
+ openstack floating ip create ext_net
+ openstack server list
+ #find the associated container for reverse-proxy
+ | 7b790c15-ccd1-469d-85f6-c20321128c3c | juju-d21df1-sru-2003343-9  | ACTIVE 
| test_admin_net=x.x.x.131| 
auto-sync/ubuntu-bionic-daily-amd64-server-20200826-disk1.img | m1.small   
+ #copy id or name
+ 
+ openstack server add floating ip   #copied cmd from  
+ # in a separate terminal 
+ sshuttle -r ubuntu@x.x.x.x x.x.x.0/24
+ 
  openstack image list
  - create an image if one is not listed
  openstack keypair create test-key
  openstack keypair list
  
  try to upload the file via horizon dashboard -> Project -> Stacks -> Launch 
stack (+)
  - choose the template.yaml
  - fill out admin password
  - Launch
  
  (the instance will be created)
  
  you can tail the error.logs for apache2 inside of openstack-dashboard/o
  under /var/log/apache2/error.log
  
  I saw no errors when uploading the template file.
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Patch landed in Train and now going to Stein.
  This is apython3 API change, Bionic/Queens are on python2, no fix needed in 
those releases.
  
  Openstack: Stein
  OS: Ubuntu Bionic
  
  # how to find new Openstack dashboard credentials
  credentials (leave a comment if you don't know)
  -
  # print out openstack login credentials
  juju config keystone admin-user
  juju config keystone admin-password
  
  #helpful links
  [0] https://docs.openstack.org/heat/latest/install/launch-instance.html
  [1] https://docs.openstack.org/heat-dashboard/latest/install/index.html
  [2] 
https://docs.openstack.org/newton/user-guide/cli-create-and-manage-stacks.html

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard/0 $/var/log/apache2/error.log and it should have 

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-04 Thread Heather Lemon
** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard/0 $/var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  # use sshuttle for reverse proxy to your openstack instance
  sshuttle -r ubuntu@X.X.X.X X.X.0.0/24
  
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  # ssh to openstack dashboard container
  # use new heat-dashboard deb
  # restart apache2
  # try and upload template.yaml again
  juju ssh openstack-dashboard/0
  
  #remove existing python3-heat-dashboard version
  sudo apt-get remove python3-heat-dashboard
  
  sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
  apt-get update
  
  # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
  sudo apt-cache policy python3-heat-dashboard
  
  # restart apache2
  systemctl restart apache2
  
  # go to error log
  cd /var/log/apache2
  tail -f error.log
  
+ # in a new terminal
+ 
  on the openstack cli
  -
  openstack flavor create test
  openstack image list
  - create an image if one is not listed
  openstack keypair create test-key
  openstack keypair list
  
  try to upload the file via horizon dashboard -> Project -> Stacks -> Launch 
stack (+)
  - choose the template.yaml
  - fill out admin password
  - Launch
  
  (the instance will be created)
  
  you can tail the error.logs for apache2 inside of openstack-dashboard/o
  under /var/log/apache2/error.log
  
  I saw no errors when uploading the template file.
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Patch landed in Train and now going to Stein.
  This is apython3 API change, Bionic/Queens are on python2, no fix needed in 
those releases.
  
  Openstack: Stein
  OS: Ubuntu Bionic
  
  # how to find new Openstack dashboard credentials
  credentials (leave a comment if you don't know)
  -
  # print out openstack login credentials
  juju config keystone admin-user
  juju config keystone admin-password
  
- #helpful links 
+ #helpful links
  [0] https://docs.openstack.org/heat/latest/install/launch-instance.html
  [1] https://docs.openstack.org/heat-dashboard/latest/install/index.html
  [2] 
https://docs.openstack.org/newton/user-guide/cli-create-and-manage-stacks.html

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-04 Thread Heather Lemon
Hi Corey,

That's good to know about the DEP-3 headers.

Thank You! 
Heather Lemon

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-03 Thread Corey Bryant
Hi Heather,

Thanks for your help on this. I'm making a few minor changes to the
patch to drop the DEP-3 headers and use an unchanged 'git cherry-pick'
from the upstream stable/stein branch. Some Ubuntu developers prefer
DEP-3 headers only. I'm personally ok with an unchanged cherry-pick from
upstream or DEP-3 headers.

@Jens, We are currently only able to do point releases for the packages
listed at the following unfortunately:
https://wiki.ubuntu.com/OpenStack/StableReleaseUpdates

Thanks,
Corey

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Dr. Jens Harbott
This has been fixed upstream in release 1.5.1, why not simply update to
the new upstream version? The patch you attached is
https://review.opendev.org/c/openstack/heat-dashboard/+/694952 , you
should at a minimum show its origin.

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard/0 $/var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  # use sshuttle for reverse proxy to your openstack instance
  sshuttle -r ubuntu@X.X.X.X X.X.0.0/24
  
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  # ssh to openstack dashboard container
  # use new heat-dashboard deb
  # restart apache2
  # try and upload template.yaml again
  juju ssh openstack-dashboard/0
  
  #remove existing python3-heat-dashboard version
  sudo apt-get remove python3-heat-dashboard
  
  sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
  apt-get update
  
  # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
  sudo apt-cache policy python3-heat-dashboard
  
  # restart apache2
  systemctl restart apache2
  
  # go to error log
  cd /var/log/apache2
  tail -f error.log
  
  on the openstack cli
  -
  openstack flavor create test
  openstack image list
  - create an image if one is not listed
  openstack keypair create test-key
  openstack keypair list
  
  try to upload the file via horizon dashboard -> Project -> Stacks -> Launch 
stack (+)
  - choose the template.yaml
  - fill out admin password
  - Launch
  
  (the instance will be created)
  
  you can tail the error.logs for apache2 inside of openstack-dashboard/o
  under /var/log/apache2/error.log
  
  I saw no errors when uploading the template file.
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Patch landed in Train and now going to Stein.
  This is apython3 API change, Bionic/Queens are on python2, no fix needed in 
those releases.
  
  Openstack: Stein
  OS: Ubuntu Bionic
  
  # how to find new Openstack dashboard credentials
  credentials (leave a comment if you don't know)
  -
  # print out openstack login credentials
  juju config keystone admin-user
  juju config keystone admin-password
+ 
+ #helpful links 
+ [0] https://docs.openstack.org/heat/latest/install/launch-instance.html
+ [1] https://docs.openstack.org/heat-dashboard/latest/install/index.html
+ [2] 
https://docs.openstack.org/newton/user-guide/cli-create-and-manage-stacks.html

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  # use sshuttle for reverse proxy to your openstack instance
  sshuttle -r ubuntu@X.X.X.X X.X.0.0/24
  
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  # ssh to openstack dashboard container
  # use new heat-dashboard deb
  # restart apache2
  # try and upload template.yaml again
  juju ssh openstack-dashboard/0
  
  #remove existing python3-heat-dashboard version
  sudo apt-get remove python3-heat-dashboard
  
  sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
  apt-get update
  
  # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
  sudo apt-cache policy python3-heat-dashboard
  
  # restart apache2
  systemctl restart apache2
  
  # go to error log
  cd /var/log/apache2
  tail -f error.log
  
  on the openstack cli
  -
  openstack flavor create test
  openstack image list
  - create an image if one is not listed
  openstack keypair create test-key
  openstack keypair list
  
  try to upload the file via horizon dashboard -> Project -> Stacks -> Launch 
stack (+)
  - choose the template.yaml
  - fill out admin password
  - Launch
  
  (the instance will be created)
  
- you can tail the error.logs for apache2 inside of openstack-dashboard/o 
+ you can tail the error.logs for apache2 inside of openstack-dashboard/o
  under /var/log/apache2/error.log
  
  I saw no errors when uploading the template file.
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
- Patch landed in train and now going to stein.
- Since focal is carry 2.0 which has the fix, no need to add the ubuntu bionic 
package series.
+ Patch landed in Train and now going to Stein.
+ This is apython3 API change, Bionic/Queens are on python2, no fix needed in 
those releases.
  
  Openstack: Stein
  OS: Ubuntu Bionic
  
  # how to find new Openstack dashboard credentials
  credentials (leave a comment if you don't know)
  -
  # print out openstack login credentials
  juju config keystone admin-user
  juju config keystone admin-password

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
- 3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
+ 3) Check openstack-dashboard/0 $/var/log/apache2/error.log and it should have 
the error
  ```
  [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 

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
** Tags added: sts-sru-needed

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  # use sshuttle for reverse proxy to your openstack instance
  sshuttle -r ubuntu@X.X.X.X X.X.0.0/24
  
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  # ssh to openstack dashboard container
  # use new heat-dashboard deb
- # restart apache2 
+ # restart apache2
  # try and upload template.yaml again
  juju ssh openstack-dashboard/0
  
  #remove existing python3-heat-dashboard version
  sudo apt-get remove python3-heat-dashboard
  
  sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
  apt-get update
  
  # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
  sudo apt-cache policy python3-heat-dashboard
  
  # restart apache2
  systemctl restart apache2
  
  # go to error log
  cd /var/log/apache2
  tail -f error.log
  
  on the openstack cli
  -
  openstack flavor create test
  openstack image list
  - create an image if one is not listed
  openstack keypair create test-key
  openstack keypair list
  
  try to upload the file via horizon dashboard -> Project -> Stacks -> Launch 
stack (+)
  - choose the template.yaml
  - fill out admin password
  - Launch
  
  (the instance will be created)
  
+ you can tail the error.logs for apache2 inside of openstack-dashboard/o 
+ under /var/log/apache2/error.log
+ 
+ I saw no errors when uploading the template file.
+ 
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Patch landed in train and now going to stein.
  Since focal is carry 2.0 which has the fix, no need to add the ubuntu bionic 
package series.
  
  Openstack: Stein
  OS: Ubuntu Bionic
  
  # how to find new Openstack dashboard credentials
  credentials (leave a comment if you don't know)
  -
  # print out openstack login credentials
  juju config keystone admin-user
  juju config keystone admin-password

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
attached debdiff ready for sru cloud review

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
+ -
+ testing with fix
+ # add my ppa or use debdiff inside of openstack-dashboard/0
+ 
+ juju ssh openstack-dashboard/0
+ 
+ #remove existing python3-heat-dashboard version
+ sudo apt-get remove python3-heat-dashboard
+ 
+ sudo add-apt-repository ppa:hypothetical-lemon/heat-dashboard
+ apt-get update 
+ 
+ # make sure the version is newest (heat-dashboard_1.5.0-0ubuntu3~cloud1)
+ sudo apt-cache policy python3-heat-dashboard
+ 
+ cd /var/log/apache2
+ tail -f error.log
+ 
+ New openstack dashboard credentials 
+ credentials 
+ -
+ admin_domain 
+ admin
+ openstack 
+ -
+ # print out openstack login credentials 
+ juju config keystone admin-user
+ juju config keystone admin-password
+ 
+ on the openstack cli 
+ - 
+ openstack flavor create test
+ openstack image list
+ - create an image if one is not listed
+ openstack keypair create test-key 
+ openstack keypair list
+ 
+ 
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
- Patch landed in train and now going to stein. 
- Since focal is carry 2.0 which has the fix, no need to add the ubuntu bionic 
package series. 
+ Patch landed in train and now going to stein.
+ Since focal is carry 2.0 which has the fix, no need to add the ubuntu bionic 
package series.
  
  Openstack: Stein
  OS: Ubuntu Bionic

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  ```
  [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]
  ```
  -
  testing with fix
  # add my ppa or use debdiff inside of openstack-dashboard/0
  
  juju ssh openstack-dashboard/0
  
  #remove existing 

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
adding .mkv video showing fixed issue

** Attachment added: "encode-fixed-2021-02-02_14.23.39"
   
https://bugs.launchpad.net/ubuntu/+source/heat-dashboard/+bug/1914100/+attachment/5459183/+files/encode-fixed-2021-02-02_14.23.39

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
this template version 2. the one that works

** Attachment added: "template.yaml"
   
https://bugs.launchpad.net/ubuntu/+source/heat-dashboard/+bug/1914100/+attachment/5459184/+files/template.yaml

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  ```
  [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] 
+ [Mon Feb 01 19:46:05.787145 2021] [wsgi:error] [pid 13984:tid 
140255296943872] [remote 10.5.3.109:59180]
  ```
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
+ Patch landed in train and now going to stein. 
+ Since focal is carry 2.0 which has the fix, no need to add the ubuntu bionic 
package series. 
+ 
  Openstack: Stein
  OS: Ubuntu Bionic

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-02 Thread Heather Lemon
** Changed in: heat-dashboard (Ubuntu Bionic)
 Assignee: Heather Lemon (hypothetical-lemon) => (unassigned)

** No longer affects: heat-dashboard (Ubuntu Bionic)

** Changed in: heat-dashboard (Ubuntu)
   Status: New => Invalid

** Changed in: cloud-archive
   Status: New => Invalid

** Changed in: cloud-archive/stein
   Status: New => In Progress

** Changed in: cloud-archive/stein
   Importance: Undecided => Medium

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  
  [Where problems could occur]
  
+ 
  [Other Info]
  
  Openstack: Stein
  OS: Ubuntu Bionic

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  
  [Where problems could occur]
  
+ The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Openstack: Stein
  OS: Ubuntu Bionic

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
  
  "A template is used to automate the deployment of infrastructure,
  services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
+ ```
+ [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] 
+ ```
  
  [Where problems could occur]
  
  The information for the forms page could fail to load properly.
  
  [Other Info]
  
  Openstack: Stein
  OS: Ubuntu Bionic

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
** Description changed:

+ 
+ Heat-dashboard fails to launch properly.
+ 
+ [Impact]
+ 
+ Users cannot upload heat template file via the openstack dashboard (see
+ failed ui screenshot)
+ 
+ 
+ [Test Case]
+ 
+ 1) Setup a basic openstack with heat and horizon
+ - generate a heat-template.yaml deployment (attached template.yaml) 
+ 2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
+ - choose the template.yaml 
+ 3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
+ 
+ [Where problems could occur]
+ 
+ 
+ [Other Info]
+ 
  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
- ```
- 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:

- 
- Heat-dashboard fails to launch properly.
+ Heat-dashboard fails to upload files.
  
  [Impact]
  
  Users cannot upload heat template file via the openstack dashboard (see
  failed ui screenshot)
  
- 
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
- - generate a heat-template.yaml deployment (attached template.yaml) 
+ - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
- - choose the template.yaml 
+ - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  
  [Where problems could occur]
- 
  
  [Other Info]
  
  Openstack: Stein
  OS: Ubuntu Bionic

** Description changed:

  Heat-dashboard fails to upload files.
  
  [Impact]
  
- Users cannot upload heat template file via the openstack dashboard (see
+ Users cannot upload heat template files via the Openstack dashboard (see
  failed ui screenshot)
+ 
+ "A template is used to automate the deployment of infrastructure,
+ services, and applications."
  
  [Test Case]
  
  1) Setup a basic openstack with heat and horizon
  - generate a heat-template.yaml deployment (attached template.yaml)
  2) After the regular cloud setup, try to upload the file via horizon 
dashboard -> Project -> Stacks -> Launch stack (+)
  - choose the template.yaml
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error
  
  [Where problems could occur]
  
  [Other Info]
  
  Openstack: Stein
  OS: Ubuntu Bionic

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
screenshot of /var/log/apache2/error.log

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

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
sample template.yaml for test

** Attachment added: "template.yaml"
   
https://bugs.launchpad.net/cloud-archive/+bug/1914100/+attachment/5458884/+files/template.yaml

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
upload an example template.yaml

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

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
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 

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
** Also affects: cloud-archive/stein
   Importance: Undecided
   Status: New

** Changed in: cloud-archive/stein
 Assignee: (unassigned) => Heather Lemon (hypothetical-lemon)

-- 
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

[Bug 1914100] Re: python3-heat-dashboard launch stack fails

2021-02-01 Thread Heather Lemon
** Description changed:

  Openstack: Stein
  OS: Ubuntu Bionic
  Heat-dashboard fails to launch properly.
  
  # Reproducer
  1) Setup a basic openstack with heat and horizon
- ./generate-bundle.sh --use-stable-charms -n gendarmerie-00301871 
--create-model -s bionic -r stein --heat --openstack-dashboard
+ ./generate-bundle.sh --use-stable-charms -n test --create-model -s bionic -r 
stein --heat --openstack-dashboard
  2) After the regular cloud setup, try to upload the file 'template.yaml'  via 
horizon dashboard -> Project -> Stacks -> Launch stack
  3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error [3]

** Description changed:

  Openstack: Stein
  OS: Ubuntu Bionic
  Heat-dashboard fails to launch properly.
  
  # Reproducer
  1) Setup a basic openstack with heat and horizon
- ./generate-bundle.sh --use-stable-charms -n test --create-model -s bionic -r 
stein --heat --openstack-dashboard
- 2) After the regular cloud setup, try to upload the file 'template.yaml'  via 
horizon dashboard -> Project -> Stacks -> Launch stack
+ - 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 [3]

** 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 [3]
+ 3) Check openstack-dashboard /var/log/apache2/error.log and it should have 
the error

-- 
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