irb(main):007:0> pp ExtManagementSystem.all[1].ems_folders
ExtManagementSystem Load (1.9ms) SELECT "ext_management_systems".* FROM "ext_management_systems"
{"@timestamp":"2020-12-04T11:27:57.463506 ","hostname":"26r1-generic-644989b84-sz4nk","pid":51,"tid":"2aefd92c9964","level":"debug","message":" \u001b[1m\u001b[36mExtManagementSystem Load (1.9ms)\u001b[0m \u001b[1m\u001b[34mSELECT \"ext_management_systems\".* FROM \"ext_management_systems\"\u001b[0m"}
ExtManagementSystem Inst Including Associations (1.0ms - 3rows)
{"@timestamp":"2020-12-04T11:27:57.465278 ","hostname":"26r1-generic-644989b84-sz4nk","pid":51,"tid":"2aefd92c9964","level":"debug","message":" ExtManagementSystem Inst Including Associations (1.0ms - 3rows)"}
EmsFolder Load (76.9ms) SELECT "ems_folders".* FROM "ems_folders" WHERE "ems_folders"."ems_id" = $1 [["ems_id", 26000000000002]]
{"@timestamp":"2020-12-04T11:27:57.543830 ","hostname":"26r1-generic-644989b84-sz4nk","pid":51,"tid":"2aefd92c9964","level":"debug","message":" \u001b[1m\u001b[36mEmsFolder Load (76.9ms)\u001b[0m \u001b[1m\u001b[34mSELECT \"ems_folders\".* FROM \"ems_folders\" WHERE \"ems_folders\".\"ems_id\" = $1\u001b[0m [[\"ems_id\", 26000000000002]]"}
EmsFolder Inst Including Associations (0.6ms - 4rows)
{"@timestamp":"2020-12-04T11:27:57.545002 ","hostname":"26r1-generic-644989b84-sz4nk","pid":51,"tid":"2aefd92c9964","level":"debug","message":" EmsFolder Inst Including Associations (0.6ms - 4rows)"}
[#<ManageIQ::Providers::Redhat::InfraManager::Folder:0x000055dfbbc9da60
id: 26000000000001,
name: "Datacenters",
ems_id: 26000000000002,
created_on: Fri, 12 Jun 2020 08:56:47 UTC +00:00,
updated_on: Fri, 12 Jun 2020 08:56:47 UTC +00:00,
uid_ems: "root_dc",
ems_ref: nil,
type: "ManageIQ::Providers::Redhat::InfraManager::Folder",
hidden: true,
ems_ref_type: nil>,
#<ManageIQ::Providers::Redhat::InfraManager::Folder:0x000055dfbbca3708
id: 26000000000002,
name: "host",
ems_id: 26000000000002,
created_on: Fri, 12 Jun 2020 08:56:47 UTC +00:00,
updated_on: Fri, 12 Jun 2020 08:56:47 UTC +00:00,
uid_ems: "7a559bec-5c4b-11ea-8813-00163e629632_host",
ems_ref: nil,
type: "ManageIQ::Providers::Redhat::InfraManager::Folder",
hidden: true,
ems_ref_type: nil>,
#<ManageIQ::Providers::Redhat::InfraManager::Folder:0x000055dfbbca26f0
id: 26000000000003,
name: "vm",
ems_id: 26000000000002,
created_on: Fri, 12 Jun 2020 08:56:47 UTC +00:00,
updated_on: Fri, 12 Jun 2020 08:56:47 UTC +00:00,
uid_ems: "7a559bec-5c4b-11ea-8813-00163e629632_vm",
ems_ref: nil,
type: "ManageIQ::Providers::Redhat::InfraManager::Folder",
hidden: true,
ems_ref_type: nil>,
#<ManageIQ::Providers::Redhat::InfraManager::Datacenter:0x000055dfbbca08c8
id: 26000000000414,
name: "Default",
ems_id: 26000000000002,
created_on: Fri, 04 Dec 2020 11:27:42 UTC +00:00,
updated_on: Fri, 04 Dec 2020 11:27:42 UTC +00:00,
uid_ems: "7a559bec-5c4b-11ea-8813-00163e629632",
ems_ref: "/api/datacenters/7a559bec-5c4b-11ea-8813-00163e629632",
type: "ManageIQ::Providers::Redhat::InfraManager::Datacenter",
hidden: nil,
ems_ref_type: nil>]
Hello
We have a problems, after ems refresh we have a recreated datacenter (every time)
version jansa
Anyone know what is it?
Adam Grare @agrare 16:07
Weird, it does that on a full refresh as well? (E.g. running refresh relationships and power states on the the provider)
And is the old data center deleted right away or only after the next full refresh?
Aliaksei Hrechushkin @ahrechushkin 16:20
Yes, yes
Adam Grare @agrare 16:35
I was able to reproduce