Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pyon-yx opened this issue Aug 19, 2020 · 7 comments

Comments

@pyon-yx
Copy link
Contributor

pyon-yx commented Aug 19, 2020

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
Copy link
Member

Fryguy commented Aug 19, 2020

@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
Copy link
Contributor Author

pyon-yx commented Aug 19, 2020

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
Copy link
Contributor Author

pyon-yx commented Aug 19, 2020

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
Copy link
Member

agrare commented Aug 19, 2020

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
Copy link
Contributor Author

pyon-yx commented Nov 15, 2020

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

@pyon-yx
Copy link
Contributor Author

pyon-yx commented Dec 13, 2020

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

@Fryguy
Copy link
Member

Fryguy commented Jan 4, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants