Web UI restrictions doesn't work correcly for Ironic

Bug #1573556 reported by Sofiia Andriichenko
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
Medium
Andriy Popovych
Mitaka
Confirmed
Medium
Andriy Popovych
Newton
Confirmed
Medium
Andriy Popovych
Ironic
Invalid
Undecided
Unassigned

Bug Description

Description:
Deployment of MOS ISO #225 http://paste.openstack.org/show/495123/
OpenStack Settings Configuration Error
Some restrictions didn't pass verification: ["Validation failed for attribute 'Install Ironic': Ironic requires Swift or RadosGW for Glance images."]

Steps to reproduce:
1. Got o Fuel
2. Create environment
3. Name "env1"
4. Compute "QEMU-KVM"
5. Networking setup "Neutron vlan segmentation"
6. Storage Backends:
 - Ceph RBD for volumes (Cinder)
 - Ceph RBD for ephemeral volumes (Nova)
 - Ceph RBD for images (Glance)

Expected results:
Impossible to select Ironic in Additional components tab when Ceph for Objects is not set RadosGW

Actual result:
Possible to install Ironic without RadosGw and Images in Ceph

Reproducibility:
100%

Additional information:
--

Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :
Revision history for this message
Sergii Turivnyi (sturivnyi) wrote : Re: Can't save settings for environment with Ironic Ceph RadosGW for objects (Swift API)

This bug is blocker for MOS-QA Team
On SI we got Error:

2016-04-20 22:16:35,468 - ERROR http.py:110 -- Bad Request code 400 [{"message": "Some restrictions didn't pass verification: [\"Validation failed for attribute 'Install Ironic': Ironic requires Swift or RadosGW for Glance images.\"]", "errors": []}]
2016-04-20 22:16:35,470 - ERROR __init__.py:66 -- update_cluster_attributes raised: HTTPError()

Changed in fuel:
importance: Undecided → Critical
milestone: none → 9.0
status: New → Confirmed
summary: - Can't save settings an ironic environment with Ceph RadosGW for objects
+ Can't save settings for environment with Ironic Ceph RadosGW for objects
(Swift API)
Changed in fuel:
assignee: nobody → Fuel for Openstack (fuel)
no longer affects: tempest
summary: - Can't save settings for environment with Ironic Ceph RadosGW for objects
- (Swift API)
+ Possible select ceph for volumes, images, ephemeral volumes without Ceph
+ RadosGW
description: updated
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel for Openstack (fuel) → MOS Ceph (mos-ceph)
Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote : Re: Possible select ceph for volumes, images, ephemeral volumes without Ceph RadosGW

Actually radosgw is not required for using Ceph as images and volumes backend

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote : Re: Ironic should explicitly enable RadosGW

> 'Install Ironic': Ironic requires Swift or RadosGW for Glance images.

radosgw is an optional component of a ceph cluster, quite a number of installations don't use radosgw at all
(they use ceph mainly via rbd to provide the storage for VMs). Therefore whatever deploys Ironic should explicitly enable radosgw (and adjust settings according to Ironic requirements)

summary: - Possible select ceph for volumes, images, ephemeral volumes without Ceph
- RadosGW
+ Ironic should explicitly enable RadosGW
Changed in fuel:
assignee: MOS Ceph (mos-ceph) → Fuel for Openstack (fuel)
Changed in fuel:
assignee: Fuel for Openstack (fuel) → MOS Ironic (mos-ironic)
Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

As a work around one can manually enable radosgw (in Fuel UI: Settings -> Storage -> Ceph RadosGW for objects (Swift API))

Revision history for this message
Vasyl Saienko (vsaienko) wrote :
summary: - Ironic should explicitly enable RadosGW
+ Web UI restrictions doesn't work correcly for Ironic
description: updated
Changed in fuel:
assignee: MOS Ironic (mos-ironic) → Fuel UI Team (fuel-ui)
Revision history for this message
Dmitry Tantsur (divius) wrote :

Please clarify if you need some work done on the Ironic side, it's not quite obvious at first glance.

Changed in ironic:
status: New → Incomplete
Dmitry Pyzhov (dpyzhov)
tags: added: area-ui
Changed in fuel:
milestone: 9.0 → 10.0
Revision history for this message
Julia Aranovich (jkirnosova) wrote :

Vasyl, thank you for the video recording. It perfectly demonstrates the bug.

The issue is that user is able to turn on Ironic in the wizard when Ceph for objects (Rados GW) is off: http://s32.postimg.org/h4y4vyttx/wizard_storage.png and http://s32.postimg.org/94xmcph1h/wizard_services.png

If user does not enable Ironic from the wizard, it is impossible to do on Settings tab: http://s32.postimg.org/6u00rwn7p/storage_tab.png and http://s32.postimg.org/jph765h8l/services_tab.png
That's an expected behaviour.

So, we need to fix restrictions for Ironic in wizard to require Ceph for objects (Rados GW) to be enabled.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/315942

Changed in fuel:
assignee: Fuel UI Team (fuel-ui) → Andriy Popovych (popovych-andrey)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Andriy Popovych (<email address hidden>) on branch: master
Review: https://review.openstack.org/315942

Revision history for this message
Andriy Popovych (popovych-andrey) wrote :

Let me explain how wizard tab working. It operates in terms of compatible/incompatible not restrictions and hasn't condition operator for now (some improvements will be in 10.0 https://blueprints.launchpad.net/fuel/+spec/component-registry-improvements). Settings page has more deep level of validation and it's expected behavior to raise validation message for restriction. As was written above possible workaround is just enable one option on settings tab. I agree that wizard should more smart but currently I don't see it as critical blocker for deployment so change priority to medium.

Changed in fuel:
importance: Critical → Medium
tags: added: area-partners
removed: area-ui
Changed in fuel:
status: In Progress → Confirmed
Revision history for this message
Ruby Loo (rloo) wrote :

This was opened over a year ago, and after reading the comments, it isn't clear to me that this is an ironic issue, so I'm going to invalidate it. If you have more information, please comment and update the status. Thanks.

Changed in ironic:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.