ManageIQ / manageiq

ManageIQ Open-Source Management Platform
https://manageiq.org
Apache License 2.0
1.35k stars 896 forks source link

Create Object Store Container and Object Store Object by using Openstack Swift provider. #20458

Open pyon-yx opened 4 years ago

pyon-yx commented 4 years ago

Hello! I have met an issue on using object storage. I have added OpenStack cloud provider in Compute->Clouds->Providers, as a result of that, I could find "openstack cloud provider Cinder Manager" in Storage->BlockStorage->Managers and "openstack cloud provider Swift Manager" in Storage->ObjectStorage->Managers. Now, block storage is working well. My issue is related with object storage. When I move into Storage->Object Storage->Object Store Containers, "Configuration" button is always disabled, so that I can not add new object container. object_storage_issue Would you like to resolve this issue? Thank you.

Fryguy commented 4 years ago

@pyon-yx When you hover over the disabled button do you get any popup text explaining why it's disabled? If not, I'd consider that a form of bug that's related to this feature request.

pyon-yx commented 4 years ago

When I hover over this button, it will show me this message. Configuration o Add a new Cloud Object Store Container - No storage managers support creating cloud object store containers. o Clear Object Storage Containers - Clear selected Object Storage Containers. o Remove Object Storage Containers from Inventory - Remove selected Object Storage Containers from Inventory disabled_config_btn

pyon-yx commented 4 years ago

I have checked the source code for this button, and found this lines out. First, value of "disabled" in the following screenshot will always be "true". image Second, when I was trying to search in manageiq-provider-openstack, there was no swift-manager class in storage module. image

agrare commented 4 years ago

Openstack doesn't subclass the swift manager (not sure why), it uses the ManageIQ::Providers::StorageManager::SwiftManager in manageiq core here

You'll need to add supports :cloud_object_store_container_create like S3

pyon-yx commented 3 years ago

Hello, I have been still confused on this issue. Is there anybody who can be able to help me on code?

pyon-yx commented 3 years ago

How can I make the "Configure" button enabled by fixing code?

Fryguy commented 3 years ago

@pyon-yx The feature needs to be added. So, this means you'd need to add the low-level "create" functionality, then expose it with the supports :cloud_object_store_container_create as @agrare mentioned