Red Hat Bugzilla – Bug 1271563
Cannot create an Amazon Service Catalog item as a tenant admin
Last modified: 2015-12-08 08:38:24 EST
Created attachment 1082762 [details]
excerpt from production.log
Description of problem:
When trying to add new catalog item as tenant admin and choosing Amazon or Openstack provider, I am getting error page.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create tenant admin: Configure -> Configuration -> Access Control -> Users -> Configuration -> Add a new user
2. Fill in username, password and assign this user to EvmGroup-tenant_administrator
3. Login as tenant admin
4. Go to Services -> Catalogs -> Catalog Items
5. Click on Configuration -> Add a New Catalog Item
6. From "Catalog Item Type" dropdown menu select -> Amazon
I am getting similar error also when selecting Openstack provider from dropdown menu.
When Amazon provider is chosen:
undefined method `get_timezones' for #<ManageIQ::Providers::Amazon::CloudManager::ProvisionWorkflow:0x0000000cbe8528> [catalog/atomic_form_field_changed]
When Openstack provider is chosen:
undefined method `get_timezones' for #<ManageIQ::Providers::Openstack::CloudManager::ProvisionWorkflow:0x0000000481f750> [catalog/atomic_form_field_changed]
Item edit form appears.
The .missing instance was deleted from ManageIQ/Cloud/VM/Provisioning/Profile in this commit (https://github.com/epwinchell/manageiq/commit/a6dc83b694e100b11093ccb245caa143ebb4b029) which is causing the issue. Only groups with a matching instance will work, by default this is super_admin and user_self_service.
The .missing instance needs to be restored.
New commit detected on ManageIQ/manageiq/master:
Author: Madhu Kanoor <email@example.com>
AuthorDate: Mon Oct 19 14:42:03 2015 -0400
Commit: Madhu Kanoor <firstname.lastname@example.org>
CommitDate: Mon Oct 19 14:54:00 2015 -0400
Added missing yaml for Automate
This missing file was causing Amazon provision to fail.
.../ManageIQ/Cloud/VM/Provisioning/Profile.class/_missing.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 db/fixtures/ae_datastore/ManageIQ/Cloud/VM/Provisioning/Profile.class/_missing.yaml
Verified against 18.104.22.168-beta1.3.20151021133253_ed40d96. Tried to pick all providers from "Catalog Item Type" dropdown menu. It is working as expected now.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.