ManageIQ / manageiq-ui-classic

Classic UI of ManageIQ
Apache License 2.0
50 stars 358 forks source link

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

Open Dhamo1107 opened 2 months ago

Dhamo1107 commented 2 months ago
  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 commented 2 months ago

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

agrare commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

agrare commented 2 months ago

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

Dhamo1107 commented 2 months ago

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