Manage Fine: Azure cloud provider not able to see instances already present in azure platform


#1

Hi There,

I am trying to integrate azure cloud provider into manageiq fine version. but once i followed the steps and able to validate the keys successfully but after that i am not able to discover the vm’s that are already present in different resource group. Can someone please point me in a direction of what other steps i need to follow to discover the already existing instances into manageIQ.


#2

Hi Ravikanth,

Are the VM’s you’re looking for in the region that you set the provider to? Note also that there’s currently a bug with regards to regions in India caused by a case sensitivity issue that we haven’t fixed yet, but should be fixed soon.

Dan


#3

Hi Daniel,

Thanks a lot for the response. Yes I am selecting the correct region but
unfortunately all my vm’s are in central India region not sure if that’s
the reason I am not able to see instances and images. I am able to see all
other stuff like nsg flavour etc.

Any temp fix avlb

Regards,
Ravi


#4

The planned fix is here: https://github.com/ManageIQ/azure-armrest/pull/291

If you want to apply a hotfix, that should do the trick. Be sure to backup the existing code first.

Dan


#5

Thanks a lot Daniel will try to apply the same. Do we have any doc which
show procedure of applying this type of hot fixes. I am kind of new so just
checking


#6

Hi Daniel,

I was able change the code in
lib/azure/armrest/resource_group_based_service.rb as per the git lab one
and done a refresh which completed successfully…but still i am not able
to see mt instances and images in manageiq. my instances are in central
india

Regards,
Ravi


#7

Hi Ravi,

After you applied the changes, did you restart the app? You will need to for it to pick up the changes.

Dan


#8

Yeah i did restart the appliance and still no luck :frowning:

Not sure this has to do anything with space between central & india in
region tab and both region tab look different

Azure_new (Summary)

Properties
Region Central India
Type Azure
Management Engine GUID 7a0233d8-7799-11e7-81bd-000c299f8f3a
Region centralindia


#9

After looking at it again, I realized that we don’t actually use the :filter option, but instead use a select block. I’ve just had a PR merged that should address it.


#10

Hi Daniel,

I have updated the
/opt/rh/cfme-gemset/bundler/gems/manageiq-providers-azure-c6ff191a2a0c/app/models/manageiq/providers/azure/refresh_helper_methods.rb
with +44 lines in GIT and removed 3 lines. after doing that when i have
rebooted the appliance it throws error Undefined Method Describe in refresh
panel.
I have added below code to mail,

require ‘azure-armrest’


#11

Hi Daniel,

I have just update the 3 lines and it works perfectly fine and i am able to
see all the instances that belong to resource group thanks a ton for fixing
this…Do we have similar thing for images also as i am still not able
to detect the images that belong to same resource group.


#12

Yep, looks like private images needed an update on the azure-armrest side. So, that will be part of the 0.8.2 release, which I will incorporate into ManageIQ.


#13

@djberg96 could this issue be the reason I have been having sporadic refresh issues - some VMs show up on my appliance and others do not? I’ve added VMs which have never refreshed.


#14

Hey there Ravikanth_B I was just wondering how did you add the azure-armrest plugin to the manageiq version?


#15

@jerrykbiker, If you had VM’s in an India or Canada region, then yes. Otherwise, you should not have been affected by that.


#16

@djberg96 I kinda figured. I guess whatever refresh issue I"m having is unrelated. Thanks.