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

Host and Instance Counts Not Updating in Host Aggregates Page After Creating New Host Aggregate in OpenStack #9247

Open
Dhamo1107 opened this issue Aug 12, 2024 · 9 comments
Assignees
Labels

Comments

@Dhamo1107
Copy link

  1. I created a host aggregate with 3 hosts in OpenStack:
    image

  2. In ManageIQ, I expected to see the host count updated on the Host Aggregates page. While the host aggregate name is correctly displayed, the hosts and instances values are not updated:
    image

  3. Version : Petrosian

@Dhamo1107 Dhamo1107 added the bug label Aug 12, 2024
@Dhamo1107
Copy link
Author

Hi @GilbertCherrie @jeffibm @Fryguy @agrare, Do you have any idea on this?

@agrare
Copy link
Member

agrare commented Aug 14, 2024

Hey @Dhamo1107 I wonder if the issue is that event-based targeted refresh didn't happen to pick up the hosts in that host aggregate.

Can you go to the openstack cloud provider and click Configuration / Refresh Relationships and Power States to kick a full refresh?

image

@Dhamo1107
Copy link
Author

Hi @agrare,

Even after refreshing the Relationships and Power States, the host values are not being updated.

However, I was able to retrieve the host values using the following method (which fetches the hosts from the provider using the API):

def fetch_hosts_from_openstack ext_management_system.with_provider_connection do |connection| connection.list_aggregates.body['aggregates'].find { |agg| agg['id'] == ems_ref.to_i }['hosts'] end end

Do you have any insights on this?

@Rajkannan-2252
Copy link

Hi @agrare, @Dhamo1107,

I'm encountering the same issue. When I navigate to the Host Aggregates tab in the cloud provider section of ManageIQ, both the Host and Instances values are always showing as zero.

For your reference, I’m sharing the following screenshots:

  1. In ManageIQ, the Host Aggregates tab shows zero hosts and instances.

cmp openstack

  1. In OpenStack, I can see the hosts listed under the Host Aggregates tab.

Host Aggeration

3.The instances are also associated with the same hostname in OpenStack.

instances-host

It seems like there's a discrepancy between the host and instance values in ManageIQ and OpenStack. Could you please help analyze this issue?

@Rajkannan-2252
Copy link

Hi @Fryguy,

Do you have any updates on the above issue?

Additionally, when I try to create a new Host Aggregate, I encounter the following error:

Invalid input for field/attribute name. Value: None. None is not of type 'string'.

Could you please assist with this as well?

@Dhamo1107
Copy link
Author

Hi @jeffibm,

We only have a Cloud Provider in OpenStack (no Infrastructure Provider), and there is no Ironic service in OpenStack. We have 3 hosts in a host aggregate created in OpenStack, but even after refreshing relationships and power states, the hosts are not appearing on the Host Aggregate page in ManageIQ (Compute -> Cloud -> Host Aggregates). We are using Petrosian version. Do you have any idea why this might be happening?

Thanks.

@Dhamo1107
Copy link
Author

Hi @skateman, Do you have any idea on this?

@agrare
Copy link
Member

agrare commented Aug 28, 2024

Hi @Dhamo1107 I'm aware of this issue I haven't had a chance to investigate it yet though

@Dhamo1107
Copy link
Author

Thanks for the update, @agrare. Looking forward to your findings.

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

No branches or pull requests

3 participants