Hi,
On Fri, Jul 13, 2018 at 5:25 PM, Vineet Khandpur <khandpur(a)ualberta.ca> wrote:
bump?
vk
--------------------------------
Vineet Khandpur
UNIX System Administrator
Information Technology Services
University of Alberta Libraries
+1-780-492-4718
On 12 July 2018 at 09:24, Vineet Khandpur <khandpur(a)ualberta.ca> wrote:
>
> Sorry, more clarification:
>
> 2018-07-12 08:45:24,810-0600 DEBUG otopi.context
> context._executeMethod:128 Stage misc METHOD
>
otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn.Plugin._misc_configure_pro
> vider
> 2018-07-12 08:45:24,810-0600 DEBUG otopi.transaction
> transaction._prepare:61 preparing 'File transaction for
> '/etc/ovirt-engine/ovirt-provider-ovn-conf.example''
> 2018-07-12 08:45:24,810-0600 DEBUG otopi.filetransaction
> filetransaction.prepare:183 file
> '/etc/ovirt-engine/ovirt-provider-ovn-conf.example' missing
> 2018-07-12 08:45:24,823-0600 DEBUG otopi.transaction
> transaction._prepare:61 preparing 'File transaction for
> '/etc/ovirt-provider-ovn/conf.d/10-setup-ovirt-provider-ovn.conf''
> 2018-07-12 08:45:24,823-0600 DEBUG otopi.filetransaction
> filetransaction.prepare:183 file
> '/etc/ovirt-provider-ovn/conf.d/10-setup-ovirt-provider-ovn.conf' missing
> 2018-07-12 08:45:24,830-0600 DEBUG
> otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn
> plugin.executeRaw:813 execute: ('keytool', '-import',
'-alias',
> 'ovirt-provider-ovn',
> '-keystore', '/var/lib/ovirt-engine/external_truststore',
'-file',
> '/etc/pki/ovirt-engine/ca.pem', '-noprompt',
'-storepass:env', 'pass'),
> executable='None', cwd='None', env={'pass': '**FILT
> ERED**'}
> 2018-07-12 08:45:24,842-0600 DEBUG
> otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn
> plugin.executeRaw:869 execute-result: ('keytool', '-import',
'-alias',
> 'ovirt-provide
> r-ovn', '-keystore', '/var/lib/ovirt-engine/external_truststore',
'-file',
> '/etc/pki/ovirt-engine/ca.pem', '-noprompt',
'-storepass:env', 'pass'),
> exception
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856, in
> executeRaw
> preexec_fn=preexec_fn,
> File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
> errread, errwrite)
> File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
Seems somewhat similar to:
https://bugzilla.redhat.com/1481583
Sorry for not attaching there at the time the actual logs :-((((
Is it possible that you (tried to) something non-default? Perhaps
a non clean machine? Manually (partially?) configured ovn? Something
like that?
Anyway, in case you do not know about anything "bad" you did:
The thing that failed is the command:
keytool -import -alias ovirt-provider-ovn -keystore
/var/lib/ovirt-engine/external_truststore -file
/etc/pki/ovirt-engine/ca.pem -noprompt -storepass:env pass
and if you want to try it yourself, you'll have to first set 'pass' to the
value of ENGINE_EXTERNAL_PROVIDERS_TRUST_STORE_PASSWORD, which defaults to
'changeit'. So e.g. 'export pass=changeit' and then run above command.
It seems to me (although a bit hard to tell) that the "no such file or
directory"
is not about one of the arguments, but about 'keytool' itself. Do you have
/usr/bin/keytool?
It should be supplied by the package 'java-1.8.0-openjdk-headless', but we
do not require it directly. We require 'java-openjdk-headless >= 1:1.8.0'.
So in theory this could have happened if you pre-installed some other package
that provides this but does not provide keytool.
I suggest to open a bug, provide precise and detailed flow, and attach a full
sosreport, or at least all relevant logs, including e.g.:
yum.log
full setup.log
ls -l of all relevant files/directories
> 2018-07-12 08:45:24,844-0600 DEBUG otopi.context
> context._executeMethod:143 method exception
> Traceback (most recent call last):
>
> ----------------------------------
> Also:
>
> [root@ovirtdev conf.d]# pwd
> /etc/ovirt-provider-ovn/conf.d
> [root@ovirtdev conf.d]# ls -al
> total 4
> drwxr-xr-x. 2 root root 20 Jul 12 08:45 .
> drwxr-xr-x. 3 root root 70 Jul 12 08:34 ..
> -rw-r--r--. 1 root root 194 Jun 4 08:22 README
> [root@ovirtdev conf.d]#
I assume you showed this to us because of the line
"10-setup-ovirt-provider-ovn.conf missing", but that in itself is not
a problem and most likely unrelated. It's just part of otopi's normal
logging - if it's asked (by engine-setup) to create a file, and the
file does not exist, it logs this. If it does exist, it creates a backup
(and logs that as well).
Best regards,
>
>
>
> vk
> --------------------------------
> Vineet Khandpur
> UNIX System Administrator
> Information Technology Services
> University of Alberta Libraries
> +1-780-492-4718
>
> On 12 July 2018 at 09:17, Vineet Khandpur <khandpur(a)ualberta.ca> wrote:
>>
>> cat
>> /var/log/ovirt-engine/setup/ovirt-engine-setup-20180712081855-efeaj4.log |
>> grep -v DEBUG
>>
>> ...
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856,
in
>> executeRaw
>> preexec_fn=preexec_fn,
>> File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
>> errread, errwrite)
>> File "/usr/lib64/python2.7/subprocess.py", line 1327, in
_execute_child
>> raise child_exception
>> OSError: [Errno 2] No such file or directory
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133,
in
>> _executeMethod
>> method['method']()
>> File
>>
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
>> line 877, in _misc_configure_provider
>> self._upate_external_providers_keystore()
>> File
>>
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
>> line 747, in _upate_external_providers_keystore
>> 'pass': truststore_password,
>> File
>>
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
>> line 507, in _execute_command
>> env=env,
>> File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 912,
in
>> execute
>> **kwargs
>> File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line 856,
in
>> executeRaw
>> preexec_fn=preexec_fn,
>> File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
>> errread, errwrite)
>> File "/usr/lib64/python2.7/subprocess.py", line 1327, in
_execute_child
>> raise child_exception
>> OSError: [Errno 2] No such file or directory
>> 2018-07-12 08:45:24,846-0600 ERROR otopi.context
>> context._executeMethod:152 Failed to execute stage 'Misc configuration':
>> [Errno 2] No such file or directory
>> 2018-07-12 08:45:24,846-0600 INFO
>> otopi.plugins.otopi.packagers.yumpackager yumpackager.info:80 Yum Performing
>> yum transaction rollback
>> ....
>>
>>
>>
>>
>>
>> vk
>> --------------------------------
>> Vineet Khandpur
>> UNIX System Administrator
>> Information Technology Services
>> University of Alberta Libraries
>> +1-780-492-4718
>>
>> On 12 July 2018 at 08:46, Vineet Khandpur <khandpur(a)ualberta.ca> wrote:
>>>
>>> Building a snadbox ovirt environment on CentOS 7.5.1804
>>> Install fails at Creating CA stage:
>>>
>>> [ INFO ] Configuring PostgreSQL
>>> [ INFO ] Creating CA
>>> [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No
>>> such file or directory
>>> [ INFO ] Yum Performing yum transaction rollback
>>> [ INFO ] Stage: Clean up
>>> Log file is located at
>>> /var/log/ovirt-engine/setup/ovirt-engine-setup-20180712081855-efeaj4.log
>>> [ INFO ] Generating answer file
>>> '/var/lib/ovirt-engine/setup/answers/20180712082036-setup.conf'
>>> [ INFO ] Stage: Pre-termination
>>> [ INFO ] Stage: Termination
>>> [ ERROR ] Execution of setup failed
>>>
>>> /etc/pki/ovirt-engine missing several files after install (compared to
>>> our prod and test systems)
>>>
>>> Did something change with the installation re. cert creation? Or am I
>>> missing something obvious?
>>> [note: default answers to installation questions]
>>>
>>> Thanks.
>>> vk
>>> --------------------------------
>>> Vineet Khandpur
>>> UNIX System Administrator
>>> Information Technology Services
>>> University of Alberta Libraries
>>> +1-780-492-4718
>>
>>
>
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/TPR3CYGXZ7T...
--
Didi