[Bug 1826114] Re: Errors creating users and projects
Corey Bryant
corey.bryant at canonical.com
Mon Jan 13 15:04:00 UTC 2020
Disco is EOL this month so we can fix this directly in Rocky.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1826114
Title:
Errors creating users and projects
Status in Ubuntu Cloud Archive:
Fix Released
Status in Ubuntu Cloud Archive stein series:
Triaged
Status in Ubuntu Cloud Archive train series:
Triaged
Status in OpenStack Dashboard (Horizon):
Fix Released
Status in horizon package in Ubuntu:
Fix Released
Status in horizon source package in Disco:
Won't Fix
Status in horizon source package in Eoan:
Triaged
Status in horizon source package in Focal:
Fix Released
Bug description:
After a fresh install of OpenStack Stein using Juju Charms I'm getting
errors and items not appearing when creating new users and projects.
Here are several tests I made:
When creating ONLY a new user in a domain different than admin_domain,
the user creates successfully but is not shown in the user list on the
GUI even after a refresh/logout. Using the CLI shows that it was
created successfully.
When creating ONLY a project in a domain different than admin_domain,
the project creates successfully but is not shown in the user list on
the GUI even after a refresh/logout. Using the CLI shows that it was
created successfully.
When creating a user in a domain different than admin_domain, the
project list in the form is empty.
When creating a user AND a project in any domain (using the "+" icon
in the user creation form), after creating the project the GIU hangs
on a "Working..." spinning wheel and the following error appears on
the web console:
Uncaught SyntaxError: Unexpected token < in JSON at position 53
at JSON.parse (<anonymous>)
at Function.jQuery.parseJSON (439e79e74c16.js:567)
at Function.jQuery.parseJSON (439e79e74c16.js:720)
at processServerSuccess (c1b8ea0c3a19.js:80)
at Object.success (c1b8ea0c3a19.js:84)
at fire (439e79e74c16.js:210)
at Object.fireWith [as resolveWith] (439e79e74c16.js:216)
at done (439e79e74c16.js:626)
at XMLHttpRequest.callback (439e79e74c16.js:653)
After a refresh, the project is created but not the user.
When creating a new user and a project separately in admin_domain
everything works OK. After that I can see both and assign the project
to the user.
In all the pages I load from Horizon I get the following warning on
the web console:
439e79e74c16.js:700 JQMIGRATE: $(html) HTML strings must start with '<' character
migrateWarn @ 439e79e74c16.js:700
jQuery.fn.init @ 439e79e74c16.js:714
jQuery @ 439e79e74c16.js:15
success @ c1b8ea0c3a19.js:204
fire @ 439e79e74c16.js:210
fireWith @ 439e79e74c16.js:216
done @ 439e79e74c16.js:626
callback @ 439e79e74c16.js:653
439e79e74c16.js:700 console.trace
migrateWarn @ 439e79e74c16.js:700
jQuery.fn.init @ 439e79e74c16.js:714
jQuery @ 439e79e74c16.js:15
success @ c1b8ea0c3a19.js:204
fire @ 439e79e74c16.js:210
fireWith @ 439e79e74c16.js:216
done @ 439e79e74c16.js:626
callback @ 439e79e74c16.js:653
==========================================================================
[Impact]
New users and projects created in domain other than admin_domain are not
displayed in dashboard.
Creation of project from User creation form hangs and never returns
This patch fixes both the issues mentioned above
[Test Case]
Tests involved 3 cases
- Creation of Project in different domain context
- Creation of User in different domain context
- Creation of Project in Create User form
1. Reproducing the issue
1a. Login to horizon as admin user
1b. Go to page Identity->Domains and select "SetDomainContext" button for domain other than default or admin
1c. Go to page Identity->Projects
1d. Click on Create Project, enter new project details and click on Finish
1e. The page gets refreshed but the new project is not displayed
1f. Go to page Identity->Users
1g. Click on Create User, enter new user details and click on Create User button in the form
1h. The page gets refreshed but the new user is not displayed
1i. Go to page Identity->Users
1j. Click on Create User and enter new user details
1k. Click on + symbol under Primary project in the form to create New project. Spinning wheel rotates forever.
2. Install the package with fixed code
3. Confirm bug have been fixed
3a. Repeat steps 1a-1d. New project should be displayed in the table
3b. Repeat steps 1f-1h. New user should be displayed in the table
3c. Repeat steps 1i-1k, Project creation form should be opened
3d. Add new project details and click on Create Project button in the form. Project should be displayed in User creation form.
3e. Click on Create User button in Create user form
3f. Users page should be refreshed and new user will be displayed
3g. Go to Identity->Projects and new project created during user creation should be displayed
[Regression Potential]
Upstream CI passed for all the releases including the backported versions.
Installation of new package will restart apache service and hence there will be downtime of horizon service for few milliseconds.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1826114/+subscriptions
More information about the Ubuntu-sponsors
mailing list