Re: [ovirt-users] Unable to import hosted engine storage domain in 3.6RC with FC storage

2015-10-15 Thread Christopher Miersma
I've tried importing using the ovirt-shell, and a python script, but I'm 
having trouble figuring out what options to use to properly import an FC 
repository. The examples at http://www.ovirt.org/Testing/PythonApi use 
NFS or iSCSI. The 5 overload options for api.storagedomains.add() and 
the "add storagedomain," I found in the python API and in the 
ovirt-shell all seem to be requiring parameters for either a file system 
path or iSCSI. To test the import process, I tried removing another 
unused fibre channel storage domain and reimporting it. While that 
storage domain showed up in the web interface and could be imported via 
the web UI, I couldn't find the right options to import it in the python 
API or the ovirt-shell.


On 10/11/2015 06:53 AM, Roy Golan wrote:



On Sun, Oct 11, 2015 at 3:37 PM, Roy Golan <mailto:rgo...@redhat.com>> wrote:




    On Fri, Oct 9, 2015 at 9:42 PM, Christopher Miersma
mailto:mier...@ualberta.ca>> wrote:

Hi All,

I'm having an issue with the current release candidate for
3.6, running on CentOS 7. I'm trying to install the hosted
engine on fibre channel storage. I can successfully install
the VM, and get everything up and running, but the hosted
engine VM itself does not appear in the web interface, nor
does the storage domain on which the hosted engine's disks
reside appear. When I create a new storage domain on the SAN,
I can see the LUN on which the hosted engine resides, but it
is greyed out. When I first started the cluster and got the
host and engine VM installed and running, it gave me the
message " The Hosted Engine Storage Domain doesn't exist. It
shoudl be imported into the setup." I've tried importing and
attaching the storage domain, but it simply doesn't appear in
the interface to allow me to import it. I've tired every
Attach/Import/Activate screen that I could find. I've also
opened a bug report
(https://bugzilla.redhat.com/show_bug.cgi?id=1267337), but
with no success so far.

Has anyone else had a similar issue? Can you import the hosted
engine storage domain after setup, and if so on what kind of
storage? From some of the posts I've seen, it looks like
people are getting it to work with NFS and maybe iSCSI, but I
haven't seen anyone else mention Fibre Channel.



Can you try to import the hosted_storage domain using REST and not
via UI?
 NFS and ISCSI do work. Also Bug 1261996 did solve a but on import
(I'm no sure this is on your release candidate)



Also, there is a bug (and a patch) to import the SD automatically 
https://bugzilla.redhat.com/1269768




Christopher Miersma
___
Users mailing list
    Users@ovirt.org <mailto:Users@ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users





--
Christopher Miersma
Unix System Administrator
University of Alberta Libraries
4-30 Cameron Library
780-492-4718

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Unable to import hosted engine storage domain in 3.6RC with FC storage

2015-10-09 Thread Christopher Miersma

Hi All,

I'm having an issue with the current release candidate for 3.6, running 
on CentOS 7. I'm trying to install the hosted engine on fibre channel 
storage. I can successfully install the VM, and get everything up and 
running, but the hosted engine VM itself does not appear in the web 
interface, nor does the storage domain on which the hosted engine's 
disks reside appear. When I create a new storage domain on the SAN, I 
can see the LUN on which the hosted engine resides, but it is greyed 
out. When I first started the cluster and got the host and engine VM 
installed and running, it gave me the message " The Hosted Engine 
Storage Domain doesn't exist. It shoudl be imported into the setup." 
I've tried importing and attaching the storage domain, but it simply 
doesn't appear in the interface to allow me to import it. I've tired 
every Attach/Import/Activate screen that I could find. I've also opened 
a bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1267337), but 
with no success so far.


Has anyone else had a similar issue? Can you import the hosted engine 
storage domain after setup, and if so on what kind of storage? From some 
of the posts I've seen, it looks like people are getting it to work with 
NFS and maybe iSCSI, but I haven't seen anyone else mention Fibre Channel.


Christopher Miersma
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Admin internal inlog problems with clean install 3.6RC

2015-10-08 Thread Christopher Miersma
I had to rebuild to test something else, and I ran into the same issue 
again. I successfully ran ovirt-aaa-jdbc-tool user edit admin 
--account-valid-to="2100-01-01 00:00:00Z", but id didn't resolve the 
issue. Here is the out put from the database:


 engine=# select id,name,valid_to,password_valid_to from aaa_jdbc.users;
 id | name  |valid_to|   password_valid_to
+---++
  1 | admin | 2100-01-01 00:00:00-07 | 2215-08-21 16:31:18-06
(1 row)

engine=# select * from aaa_jdbc.users;
 id | uuid | name | 
password   | 
password_valid_to |

login_allowed | nopassw
d | disabled | unlock_time | last_successful_login  | 
last_unsuccessful_login   | consecutive_failures | valid_from | 
valid_to

+--+---+-++
--+
--+--+-+++--++ 

  1 | 300abd4f-28d3-41a0-b235-61182be68f94 | admin | 
1|PBKDF2WithHmacSHA1|VwFtVvQ/9XJNiPOSRF5f8fKaXvCFpFHTUjfrAt5g=|2000|BVWhUlrd8fjec8nmbL3zVawCZ3+fsS1wjyllWyro= 
| 2215-08-21 16:31:18-06 | 
111
1 
|
0 |0 | 1970-01-01 00:00:00 | 1970-01-01 00:00:00-07 | 2015-10-08 
16:36:40.279-06 |2 | 2015-10-08 16:31:17.267-06 | 
2100-01-01 00:00:00-07

(1 row)

engine=#

I also tired setting the field full of ones to just 1 and 0, but without 
success.




On 10/05/2015 12:52 PM, Christopher Miersma wrote:

Hi,

Thanks for the suggestion. I had used this command already:
$ ovirt-aaa-jdbc-tool user edit admin --account-valid-to="2100-01-01 
00:00:00Z


Unfortunately, it did not solve my problem. I had started poking 
around in the database, but didn't find the field you mention.


I have just rebuilt my setup again, and this time it suddenly worked. 
The only difference I noticed this time was that I got the message "[ 
ERROR ] Failed to execute stage 'Closing up': Failed to stop service 
'ovirt-vmconsole-proxy-sshd'" So, while I've got it working, I still 
don't have a good explanation of why it didn't work before and does 
again now. I rebuild a few more times and see if I can get it to 
happen again.


Christopher

On 10/05/2015 11:00 AM, Ondra Machacek wrote:

Hi,

I believe this should solve your problem:

$ ovirt-aaa-jdbc-tool user edit admin --account-valid-to="2100-01-01 
00:00:00Z"


(feel free change the date to whatever suites you)

If it won't help, can you please send output of this psql command?

# select valid_to from aaa_jdbc.users where name = 'admin';

Username and password to connect to database can be found here: 
/etc/ovirt-engine/aaa/internal.properties


Thanks,
Ondra

On 10/05/2015 06:43 PM, Christopher Miersma wrote:
I'm having the same problem with the latest packages for 3.6 RC. 
I've tried reinstalling a number of times, setting up with and 
without an answer file, and I always get a login denied error.


Log entries:
(from trying ovirt-shell)
2015-10-05 09:30:48,361 ERROR 
[org.ovirt.engine.core.aaa.filters.BasicAuthenticationFilter] 
(default task-1) [] User admin authentication failed. profile is 
internal. Invocation Result code is 0. Authn result code is 
ACCOUNT_EXPIRED


(from web interface)
2015-10-05 10:32:25,034 INFO 
[org.ovirt.engine.core.bll.aaa.LoginBaseCommand] (default task-19) 
[] Can't login user 'admin' with authentication profile 'internal' 
because the authentication failed.
2015-10-05 10:32:25,040 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(default task-19) [] Correlation ID: null, Call Stack: null, Custom 
Event ID: -1, Message: The account for admin got expired. Please 
contact the system administrator.
2015-10-05 10:32:25,043 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(default task-19) [] Correlation ID: null, Call Stack: null, Custom 
Event ID: -1, Message: User a

Re: [ovirt-users] Admin internal inlog problems with clean install 3.6RC

2015-10-05 Thread Christopher Miersma

Hi,

Thanks for the suggestion. I had used this command already:
$ ovirt-aaa-jdbc-tool user edit admin --account-valid-to="2100-01-01 
00:00:00Z


Unfortunately, it did not solve my problem. I had started poking around 
in the database, but didn't find the field you mention.


I have just rebuilt my setup again, and this time it suddenly worked. 
The only difference I noticed this time was that I got the message "[ 
ERROR ] Failed to execute stage 'Closing up': Failed to stop service 
'ovirt-vmconsole-proxy-sshd'" So, while I've got it working, I still 
don't have a good explanation of why it didn't work before and does 
again now. I rebuild a few more times and see if I can get it to happen 
again.


Christopher

On 10/05/2015 11:00 AM, Ondra Machacek wrote:

Hi,

I believe this should solve your problem:

$ ovirt-aaa-jdbc-tool user edit admin --account-valid-to="2100-01-01 
00:00:00Z"


(feel free change the date to whatever suites you)

If it won't help, can you please send output of this psql command?

# select valid_to from aaa_jdbc.users where name = 'admin';

Username and password to connect to database can be found here: 
/etc/ovirt-engine/aaa/internal.properties


Thanks,
Ondra

On 10/05/2015 06:43 PM, Christopher Miersma wrote:
I'm having the same problem with the latest packages for 3.6 RC. I've 
tried reinstalling a number of times, setting up with and without an 
answer file, and I always get a login denied error.


Log entries:
(from trying ovirt-shell)
2015-10-05 09:30:48,361 ERROR 
[org.ovirt.engine.core.aaa.filters.BasicAuthenticationFilter] 
(default task-1) [] User admin authentication failed. profile is 
internal. Invocation Result code is 0. Authn result code is 
ACCOUNT_EXPIRED


(from web interface)
2015-10-05 10:32:25,034 INFO 
[org.ovirt.engine.core.bll.aaa.LoginBaseCommand] (default task-19) [] 
Can't login user 'admin' with authentication profile 'internal' 
because the authentication failed.
2015-10-05 10:32:25,040 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default 
task-19) [] Correlation ID: null, Call Stack: null, Custom Event ID: 
-1, Message: The account for admin got expired. Please contact the 
system administrator.
2015-10-05 10:32:25,043 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default 
task-19) [] Correlation ID: null, Call Stack: null, Custom Event ID: 
-1, Message: User admin@internal failed to log in.
2015-10-05 10:32:25,044 WARN 
[org.ovirt.engine.core.bll.aaa.LoginAdminUserCommand] (default 
task-19) [] CanDoAction of action 'LoginAdminUser' failed for user 
admin@internal. Reasons: USER_ACCOUNT_EXPIRED



I have tried using the ovirt-aaa-jdbc-tool tool, with "user edit 
--account-valid-to,"  "user password-reset --password-valid-to," and 
"user unlock" options with multiple different dates, passwords of 
varying complexity, etc. and nothing seems to work. This is all 
happening during the middle of a hosted-engine setup, which throws 
everything off. I've also done clean re-installs a number of times.



Early last week, when the release candidate first came out, I did not 
have this issue. I was able to complete the install without any 
problems.


Has anyone found a way to get around this if it starts happening?


Christopher
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users




--
Christopher Miersma
Unix System Administrator
University of Alberta Libraries
4-30 Cameron Library
780-492-4718

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Admin internal inlog problems with clean install 3.6RC

2015-10-05 Thread Christopher Miersma
I'm having the same problem with the latest packages for 3.6 RC. I've 
tried reinstalling a number of times, setting up with and without an 
answer file, and I always get a login denied error.


Log entries:
(from trying ovirt-shell)
2015-10-05 09:30:48,361 ERROR 
[org.ovirt.engine.core.aaa.filters.BasicAuthenticationFilter] (default 
task-1) [] User admin authentication failed. profile is internal. 
Invocation Result code is 0. Authn result code is ACCOUNT_EXPIRED


(from web interface)
2015-10-05 10:32:25,034 INFO 
[org.ovirt.engine.core.bll.aaa.LoginBaseCommand] (default task-19) [] 
Can't login user 'admin' with authentication profile 'internal' because 
the authentication failed.
2015-10-05 10:32:25,040 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(default task-19) [] Correlation ID: null, Call Stack: null, Custom 
Event ID: -1, Message: The account for admin got expired. Please contact 
the system administrator.
2015-10-05 10:32:25,043 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(default task-19) [] Correlation ID: null, Call Stack: null, Custom 
Event ID: -1, Message: User admin@internal failed to log in.
2015-10-05 10:32:25,044 WARN 
[org.ovirt.engine.core.bll.aaa.LoginAdminUserCommand] (default task-19) 
[] CanDoAction of action 'LoginAdminUser' failed for user 
admin@internal. Reasons: USER_ACCOUNT_EXPIRED



I have tried using the ovirt-aaa-jdbc-tool tool, with "user edit 
--account-valid-to,"  "user password-reset --password-valid-to," and 
"user unlock" options with multiple different dates, passwords of 
varying complexity, etc. and nothing seems to work. This is all 
happening during the middle of a hosted-engine setup, which throws 
everything off. I've also done clean re-installs a number of times.



Early last week, when the release candidate first came out, I did not 
have this issue. I was able to complete the install without any problems.


Has anyone found a way to get around this if it starts happening?


Christopher
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users