Bug 1392456 - VM Reconfiguration fail on certain CFME appliances
Summary: VM Reconfiguration fail on certain CFME appliances
Keywords:
Status: CLOSED DUPLICATE of bug 1389303
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: cfme-future
Assignee: Nick Carboni
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-07 14:39 UTC by Ilanit Stein
Modified: 2016-11-18 22:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-09 13:51:26 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rhevm_ova_production.log (14.44 KB, text/plain)
2016-11-07 14:40 UTC, Ilanit Stein
no flags Details
sprout_production.log (11.65 KB, text/plain)
2016-11-07 14:40 UTC, Ilanit Stein
no flags Details
Screenshot_of_final_configuration (35.07 KB, image/png)
2016-11-09 11:15 UTC, Ilanit Stein
no flags Details

Description Ilanit Stein 2016-11-07 14:39:10 UTC
Description of problem:

On CFME-5.7.0.9 appliance, 
based on cfme-rhevm-5.7.0.9-1.x86_64.rhevm.ova,
VM Reconfigure for any RHV-4.0.4/RHV-3.6.8 VM (up/down) fail in production.log:

"FATAL -- : Error caught: [NoMethodError] undefined method `auth_key_configured?' for nil:NilClass"
(see rhevm_ova_production.log attached)

On CFME UI, after pressing 'submit' nothing occurs, and there is an option to press 'Cancel'. 
Normally it should move to the Requests window, in order to track the request.

On CFME-5.7.0.9 appliance, leased from Sprout, connected to exact same RHV-4.0, VM Reconfigure works fine (see sprout_production.log attached).

Version-Release number of selected component (if applicable):
CFME-5.7.0.9

Steps to reproduce:
1. Get cfme-rhevm-5.7.0.9-1.x86_64.rhevm.ova template
2. Create a VM from this template
3. Configure network, and configure Database
4. For RHV-4.0/3.6 provider try to VM reconfigure CPU/Memory/Add disk,
for up/down VM.
See in production.log error.

Additional info:
This problem is CFME appliance specific. It is not specific to RHV-4.0, as it occur for RHV-3.6 as well.

Comment 2 Ilanit Stein 2016-11-07 14:40:09 UTC
Created attachment 1218045 [details]
rhevm_ova_production.log

Comment 3 Ilanit Stein 2016-11-07 14:40:43 UTC
Created attachment 1218046 [details]
sprout_production.log

Comment 4 Ilanit Stein 2016-11-09 10:51:39 UTC
Tested it on CFME-5.7.0.9, and Vsphere 5.5 and VM reconfigure fails the same.
therefore this bug is not specific to RHV provider.

Again, on a Pre configured CFME-5.7.0.9 appliance, leased from Sprout, VM Reconfigure works fine.

Could be that some configuration differences make it work.

Comment 5 Ilanit Stein 2016-11-09 11:15:00 UTC
Here are the configuration steps I do on my CFME appliance:

1. Run appliance_console 
2. Choose 8) configure database
3. Choose encription key: 1 - Create key
4. Create Internal database (choose 4) )
5. I get a message:
No partition found for database disk. You probably want to add an unpartitioned disk and try again.
Are you sure you don't want to partion the database disk? (Y/N): Y <-- a typo 
Configure this server as a dedicated database instance? (Y/N): N <-- This text was changed for CFME-5.7.0.9. On previous versions I used to enter Y for this line.
6. Each database region number must be unique.
enter the database region number: 1
Enter the database password on 127.0.0.1: *******
Enter the database password again: *******

Attached the final configuration screen shot.

Comment 6 Ilanit Stein 2016-11-09 11:15:51 UTC
Created attachment 1218891 [details]
Screenshot_of_final_configuration

Comment 7 Ilanit Stein 2016-11-09 11:53:34 UTC
On CFME-nightly, master.20161109064604_31921db, configured by the steps in comment #5 above:

I tried, on the first time, to run RHV migrate VM (new feature for RHV),
and I get same error, as I sew for VM Reconfigure, in production .log,
but it appear on the CFME UI:

"undefined method `auth_key_configured?' for nil:NilClass"

So this problem is not failing only VM reconfigure, but also other operations.

Comment 8 Nick Carboni 2016-11-09 13:51:26 UTC
Closing as a duplicate.

*** This bug has been marked as a duplicate of bug 1389303 ***

Comment 9 Ilanit Stein 2016-11-09 14:01:01 UTC
The difference between the configuration of the Sprout pre configured CFME,
and my CFME was that for Sprout database region=0, and my region=1.

I configured the database on my CFME to region=0,
and now VM reconfigure works fine.


Note You need to log in before you can comment on or make changes to this bug.