-
Notifications
You must be signed in to change notification settings - Fork 23
Conversation
Since oVirt.repositories role is dependency the docker tests will not run till this role is available from galaxy. |
@didib thanks for review, I ll adjust comments and repost here. |
Hello contributor, thanks for submitting a PR for an this project! I am the bot who triggers "standard-CI" builds for this project. In order to allow automated tests to run, please ask one of the project maintainers to review the code and then do one of the following:
Note: You might see multiple messages like this showing up on a single PR, this is due to a known bug in the GitHub trigger plugin on Jenkins, the infra team is working on fixing this via new testing flow in the near future, so we'll be able to post a single message per PR. |
ci add to whitelist |
ci build please |
README.md
Outdated
|---------------------------------|-----------------------|-----------------------------------------------------------| | ||
| ovirt_engine_setup_version | UNDEF | Allowed versions: [3.6, 4.0, 4.1, 4.2] | | ||
| ovirt_engine_setup_product_type | ovirt-engine | Type of product 'ovirt-engine' or 'rhvm' | | ||
| ovirt_engine_setup_package_list | [ovirt-engine-dwh-setup,ovirt-engine-extension-aaa-ldap] | List of extra packages to be installed on engine apart from ovirt-engine package. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need ovirt-engine-dwh-setup
and ovirt-engine-extension-aaa-ldap
to be installed by default? I'd say that default should be provided by existing ovirt-*-setup-*
RPM dependencies, so this list should be empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't read the code nor specs/etc., so not sure if this code should handle updates. If it does, then our docs usually say to:
yum update ovirt*setup*
Which does include ovirt-engine-dwh-setup.
ovirt-engine-setup already requires -dwh-setup, but not a very specific version. So should be updated manually. If user does not, engine-setup will fail, saying 'An update for the Setup packages {packages} was found'.
For clean installs it's enough to install ovirt-engine. That's true also for downstream, BTW, see https://bugzilla.redhat.com/show_bug.cgi?id=1251129
README.md
Outdated
|
||
| Name | Default value | Description | | ||
|---------------------------------|-----------------------|-----------------------------------------------------------| | ||
| ovirt_engine_setup_version | UNDEF | Allowed versions: [3.6, 4.0, 4.1, 4.2] | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we support all of those version, we should probably document which option below is valid for which version. But it can be done later in subsequent patch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
README.md
Outdated
| ovirt_engine_setup_package_list | [ovirt-engine-dwh-setup,ovirt-engine-extension-aaa-ldap] | List of extra packages to be installed on engine apart from ovirt-engine package. | | ||
| ovirt_engine_setup_answer_file_path | UNDEF | Path to custom answerfile for `engine-setup`. | | ||
| ovirt_engine_setup_db_host | localhost | IP address or host name of a PostgreSQL server for Engine database. By default the database will be configured on the same host as Engine. | | ||
| ovirt_engine_setup_db_port | 5432 | Engine database port. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add a special section Engine database
similar to below ISO section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
README.md
Outdated
| ovirt_engine_setup_db_name | engine | Engine database name. | | ||
| ovirt_engine_setup_db_user | engine | Engine database user. | | ||
| ovirt_engine_setup_db_password | UNDEF | Engine database password. | | ||
| ovirt_engine_setup_dwh_db_host | localhost | IP address or host name of a PostgreSQL server for DWH database. By default the DWH database will be configured on the same host as Engine. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add a special section Data Warehouse database
similar to below ISO section?
By default engine-setup uses answer file specific for version of oVirt, | ||
based on ``ovirt_engine_setup_version`` parameter. You can specify own answer file | ||
as ``ovirt_engine_setup_answer_file_path``. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add a special section Common options
similar to below ISO section?
README.md
Outdated
| ovirt_engine_setup_iso_domain_name | IDO_DOMAIN | Name of ISO domain. | | ||
| ovirt_engine_setup_iso_domain_acl | 0.0.0.0/0.0.0.0(rw) | ACL permissions for ISO domain mount point. | | ||
|
||
* Configure firewall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that firewall with only one option deserves its own section, I'd move to common section
README.md
Outdated
|
||
| Name | Default value | Description | | ||
|-----------------------|-----------------------|-----------------------------------------------------------| | ||
| ovirt_engine_setup_update_packages | False | If `True`, setup packages will be updated before `engine-setup` will be executed. Makes sence if Engine is already installed. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I'd move to common section
defaults/main.yml
Outdated
@@ -0,0 +1,33 @@ | |||
--- | |||
ovirt_engine_setup_dwh: True | |||
ovirt_engine_setup_version: '4.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use 4.2 as default version
defaults/main.yml
Outdated
ovirt_engine_setup_configure_iso_domain: false | ||
ovirt_engine_setup_iso_domain_path: '/var/lib/exports/iso' | ||
ovirt_engine_setup_iso_domain_name: 'ISO_DOMAIN' | ||
ovirt_engine_setup_iso_domain_acl: '0.0.0.0/0.0.0.0(rw)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ISO is no longer valid for 4.2, please remove those options from default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
README.md
Outdated
|
||
| Name | Default value | Description | | ||
|-----------------------|-----------------------|-----------------------------------------------------------| | ||
| ovirt_engine_setup_update_packages | False | If `True`, setup packages will be updated before `engine-setup` will be executed. Makes sence if Engine is already installed. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned before I'd change default to true, as the most common use cases to execute this role are to perform new installation (updating setup packages should not break anything) or upgrade (updating setup packages is a must for upgrade)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes thanks, done.
63df205
to
8c50f4c
Compare
Missed some comments, will repost again. |
a5779ae
to
b558bc9
Compare
I have some issue with the upgrade plays, and docker got it. I 'll take a look tomorrow and repost. |
060ffaf
to
fcfbed6
Compare
@mwperina @machacekondra Can you please CR ?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general looks good to me, some minor comments.
mkdir -p $PKG_DOC_DIR | ||
|
||
cp -pR defaults/ $PKG_DATA_DIR | ||
cp -pR tasks/ $PKG_DATA_DIR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add here also:
cp -pR templates/ $PKG_DATA_DIR
meta/main.yml
Outdated
|
||
license: Apache License 2.0 | ||
|
||
min_ansible_version: 2.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, include_tasks for example.
ovirt-ansible-engine-setup.spec.in
Outdated
Requires: ansible >= 2.3 | ||
|
||
%description | ||
This Ansible role to install required packages for oVirt Engine deployment, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/This Ansible role to/This Ansible role
|
||
galaxy_tags: [ovirt, rhv, rhev, virtualization] | ||
|
||
dependencies: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In readme you say dependecies oVirt.repostiories
so I am just wondering whether we should depends on it really... I think we shouldn't but I am open to suggestion why we should.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really dependent, just this role expect oVirt repositories enabled on the target machine. I 'd rather remove the dependency from README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way how to verify if oVirt.repositories are properly installed as a dependency if you install oVirt.engine-setup from Galaxy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's installed as a depency in case you specify it in meta/main.yml
as dependency, but that's something we don't want. no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't want it, target machine's repos can be preconfigured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, let's see what Martin thinks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
ovirt-ansible-engine-setup.spec.in
Outdated
BuildArch: noarch | ||
Url: http://www.ovirt.org | ||
|
||
Requires: ansible >= 2.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.4
tasks/engine_setup.yml
Outdated
when: ovirt_engine_setup_answer_file_path is defined | ||
|
||
- name: Update setup packages | ||
shell: 'yum -y update ovirt*setup*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to not use yum module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yum module doesn't never run yum update, even if you specify latest. I always runs yum install + params.
When I used the ansible yum module, I was hitting dependency issues, when updating setup packages, and it was complaining about missing dependecies that I could see they are in repository.
I can rerun with this change and check again, however. Maybe there was other issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
tasks/engine_setup.yml
Outdated
- skip_ansible_lint | ||
|
||
- name: Update all packages | ||
shell: 'yum -y update' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use yum module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same ^.
I 'll change and rerun tests I said. Maybe there was non related issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
tasks/engine_setup.yml
Outdated
shell: 'yum -y update' | ||
when: ovirt_engine_setup_update_all_packages | ||
tags: | ||
- skip_ansible_lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What this tag means?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/willthames/ansible-lint#false-positives
It's from ansible-lint checking.
Because I think linters will compain I am not using yum module :) Will confirm, I it will be needed to keep this instead of yum module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, if possible we shouldn't use it, and use correct format. And if we need to use it we should document why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already removed and I am using yum module. I think you see outdated page.
fcfbed6
to
69666d8
Compare
@mwperina @machacekondra Anything else I can do for this one? |
69666d8
to
49ec84f
Compare
* OVN related options: | ||
|
||
| Name | Default value | Description | | ||
|---------------------------------|-----------------------|-----------------------------------------------------------| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about option to enable/disable OVN configuration during engine-setup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
README.md
Outdated
| ovirt_engine_setup_provider_ovn_username | admin@internal | Username for OVN. | | ||
| ovirt_engine_setup_provider_ovn_password | UNDEF | Password for OVN. | | ||
|
||
* ISO domain related options: (This following options are deprecated for versions > 3.6) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that ISO domain config was removed from engine-setup in 4.2. Am I right Didi? If so, please change the text inside brackets to: "Following options are valid only for version < 4.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks it's in the docs for 4.1. Fixed.
README.md
Outdated
# Contains encrypted `ovirt_engine_setup_admin_password` variable using ansible-vault | ||
- passwords.yml | ||
vars: | ||
ovirt_engine_setup_version: '4.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to 4.2
README.md
Outdated
ovirt_engine_setup_version: '4.1' | ||
ovirt_engine_setup_organization: 'of.ovirt.engine.com' | ||
ovirt_engine_setup_admin_password: "{{ ovirt_engine_setup_admin_password }}" | ||
ovirt_repositories_ovirt_release_rpm: 'http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to 4.2 (right now it does not exist, but it should exist before this roles is officially released)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
examples/engine-deploy.yml
Outdated
- passwords.yml | ||
vars: | ||
ovirt_engine_setup_type: "ovirt-engine" | ||
ovirt_engine_setup_version: "4.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to 4.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
examples/engine-deploy.yml
Outdated
ovirt_engine_setup_dwh_db_host: "localhost" | ||
ovirt_engine_setup_configure_iso_domain: true | ||
ovirt_engine_setup_firewall_manager: null | ||
ovirt_repositories_ovirt_release_rpm: "http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to 4.2 (right now it does not exist, but it should exist before this roles is officially released)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
galaxy_tags: [ovirt, rhv, rhev, virtualization] | ||
|
||
dependencies: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way how to verify if oVirt.repositories are properly installed as a dependency if you install oVirt.engine-setup from Galaxy?
@@ -0,0 +1,9 @@ | |||
{% include "./templates/basic_answerfile.txt.j2" %}, | |||
[environment:default] | |||
OVESETUP_OVN/ovirtProviderOvn=bool:True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be provided as role parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mwperina oVrt.repositories is not really a dependency, since if the target machines has the repositories by some other way (user brought them manually) role will work fine.
@@ -0,0 +1,11 @@ | |||
{% include "./templates/basic_answerfile.txt.j2" %}, | |||
OVESETUP_OVN/ovirtProviderOvn=bool:True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be provided as role parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
BuildArch: noarch | ||
Url: http://www.ovirt.org | ||
|
||
Requires: ansible >= 2.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add dependency to oVirt.respositories role:
Requires: ovirt-ansible-repositories
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want this package is required ? isn't it better if it's optional ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, let's leave it optional
49ec84f
to
80cfcd4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except minor typo and resolving both RPM and Galaxy dependencies it looks good to me
README.md
Outdated
| ovirt_engine_setup_provider_ovn_username | admin@internal | Username for OVN. | | ||
| ovirt_engine_setup_provider_ovn_password | UNDEF | Password for OVN. | | ||
|
||
* ISO domain related options: (This following options are valied for versions < 4.2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
valied -> valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And maybe without "This":
Following options are valid for versions < 4.2
fdaef32
to
0e174aa
Compare
@didib This role is used to deploy also engine for 3.6 and there ISO prameters are not deprecated IIUC. |
I don't see a reason to support deploying 3.6. |
Re ISO domain - as you wish, but that bug affects also 3.6. I'd personally set it to False and not mention it in README. |
Not that important, but also in RHV 'yum install ovirt-engine' should work just as well, at least since 4.0 - no need to make ovirt_engine_setup_product_type a parameter. See also: https://bugzilla.redhat.com/show_bug.cgi?id=1251129 . |
- block: | ||
- name: Set answer file path | ||
set_fact: | ||
answer_file_path: "/tmp/answerfile-{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is insecure. Please use mktemp or ansible tempfile module. If you require root, you can also use /root/something .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this insecure?
- name: Run engine-setup with answerfile | ||
command: "engine-setup --config-append={{ answer_file_path }} {{ accept_defaults }}" | ||
tags: | ||
- skip_ansible_lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need this? BTW, you can also set acceptdefaults in the answer file, no need to pass it on the command line. See also: https://bugzilla.redhat.com/1270719#8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one. Didn't know, I'll change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to change to use this answerfile variable but it didn't work.. It failed on the question to auomatically upgrade the postgresql with EOF, which means the default answer was not passed. Moved back to command line option.
|
||
- name: Check if Engine health page is up | ||
uri: | ||
url: "http://{{ ansible_fqdn }}/ovirt-engine/services/health" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The health service is considered deprecated and might be removed in the future, see also: https://bugzilla.redhat.com/show_bug.cgi?id=1027210
If you decide to keep the code as-is, please open an issue to replace this and comment on that bug - so that we know that ovirt-ansible-engine-setup uses it too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll try to replace and make it point to the api
@@ -0,0 +1,4 @@ | |||
{% include "./templates/basic_answerfile.txt.j2" %}, | |||
OVESETUP_DB/upgradeWithHeEl6Hosts=none:None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not really need these. Generally speaking, almost all vars default to None, so setting them to None in the answerfile almost always does nothing. But no harm in keeping them anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this file.
README.md
Outdated
| ovirt_engine_setup_update_setup_packages | False | If `True`, setup packages will be updated before `engine-setup` will be executed. Makes sense if Engine is already installed. | | ||
| ovirt_engine_setup_update_all_packages | True | If `True`, all packages will be updated before `engine-setup` will be executed. | | ||
| ovirt_engine_setup_accept_defaults | False | If `True` use option `--accept-defaults` when executing `engine-setup`. | | ||
| ovirt_engine_setup_require_rollback | UNDEF | If `True` setup will require to be able to rollback new packages in case of a failure. If not passed the default answer from `engine-setup` will be chosen. Valid for updating/upgrading. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand this. Isn't the default answer chosen only if using "accept_defaults"? If not, engine-setup should prompt. Do we then let the user answer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I have in the ansewr fille, OSETUP_RPMDISTRO/requireRollback=none:None in case user doesn't give answer, so default value will be chosen, without the use of accept-defaults.
What we have decided is that all answers should exists in the answer file.
Accept defaults makes sense for example when custom answer file will be used.
templates/basic_answerfile.txt.j2
Outdated
OVESETUP_CONFIG/engineDbBackupDir=str:/var/lib/ovirt-engine/backups | ||
OVESETUP_CONFIG/engineHeapMin=str:1024M | ||
OVESETUP_CONFIG/imageioProxyConfig=bool:True | ||
OVESETUP_PROVISIONING/postgresProvisioningEnabled=bool:True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no way to set this to False, we do not support remote databases. Is it so? If so, not sure we need to have so much code to allow configuring database and db user names etc., the defaults are good enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. So, in the past we used to have this option not confiugrable as well, but we used to be able to connect to preconfigured remote db.
So, what probably happens, is that first checks if OVESETUP_DB/host is set to localhost, and if it's not localhost, it will try to connect to remote database and all other options will be used.
templates/basic_answerfile.txt.j2
Outdated
OVESETUP_DWH_DB/securedHostValidation=none:None | ||
{% endif %} | ||
OVESETUP_ENGINE_CORE/enable=bool:True | ||
OVESETUP_CORE/engineStop=none:None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better drop this line, or set it to True. If you keep it, you rely on the fact that otopi lets the last occurrence of a key to override previous ones, and this isn't documented officially (so in theory might change in the future, or even make it alert/abort/whatever). This is because in upgrades you pass True. No harm in setting it here to True and remove from upgrades - clean setups will be ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I 'll try. But can you please point me to the documentation pages for the answerfile options?
I can't seem to find it anywhere.
templates/basic_answerfile.txt.j2
Outdated
OVESETUP_SYSTEM/memCheckEnabled=bool:False | ||
OVESETUP_SYSTEM/nfsConfigEnabled=bool:False | ||
OVESETUP_PKI/organization=str:{{ ovirt_engine_setup_organization }} | ||
OVESETUP_PKI/renew=none:None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None means that if a user needs to renew pki on upgrade, we prompt. Please either set to True or to False or at least open a bug/issue to consider how to handle this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, False means we'll not renew, and this will eventually be required, so user will have to run manually engine-setup and answer Yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this option is valid only for upgrade? I should probably move it to only the upgrade files.
templates/basic_answerfile.txt.j2
Outdated
OVESETUP_CONFIG/isoDomainMountPoint=none:None | ||
OVESETUP_SYSTEM/nfsConfigEnabled=bool:False | ||
{% endif %} | ||
OVESETUP_CONFIG/engineHeapMax=str:1024M |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove engineHeapMin and engineHeapMax , so that engine-setup does its guesswork. See also: https://bugzilla.redhat.com/1185411
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
templates/basic_answerfile.txt.j2
Outdated
OVESETUP_DWH_CONFIG/dwhDbBackupDir=str:/var/lib/ovirt-engine-dwh/backups | ||
OVESETUP_DWH_DB/restoreBackupLate=bool:True | ||
OVESETUP_DWH_DB/disconnectExistingDwh=none:None | ||
OVESETUP_DWH_DB/performBackup=none:None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better drop, same as OVESETUP_CORE/engineStop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what is the default option here to set it explicitly. You mean I should set it to False?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And is this option also related only to upgrade? I should probably move these options to some upgrade specific file.
roles: | ||
- role: oVirt.repositories | ||
- role: oVirt.engine-setup | ||
# --accept-defaults needed because of: https://bugzilla.redhat.com/show_bug.cgi?id=1518697 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be interested in using https://bugzilla.redhat.com/show_bug.cgi?id=1396925 instead? I set needinfo on Lukas but got no reply... Current project may be the best way to move this forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I 'll add it as well, sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with having otopi answer files only. However we need to wait for the patches to be merged and available. i would say it is out of scope of this patch, and I would rather handle this after this and mentioned BZ patch is released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged the patch earlier this morning, should be available later on today - in master-snapshot repo.
Finished my review for now. Didn't mark any comments as requested items, sorry - some are quite important, most are less so. |
@didib thanks a lot for the review! I adjusted all comments, can you only point me to any doc pages related to answer file options? It would be really helpful, and I can add it here for future adjustments. |
b0acf64
to
27888d2
Compare
27888d2
to
0440b62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
{% if ovirt_engine_setup_provider_ovn_password is defined %} | ||
OVESETUP_OVN/ovirtProviderOvnPassword=str:{{ ovirt_engine_setup_provider_ovn_password }} | ||
{% else %} | ||
OVESETUP_OVN/ovirtProviderOvnPassword=none:None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we set the default to be the admin@internal pass instead of none?
passing none will result in a non-functional OVN provider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nellyc for all passwords we have default None, see for example OVESETUP_DB/password=none:None.
I think we can simply set the passwd it with the relevant parameter if you agree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consult and send a separate PR if needed, I am merging
.
Tomorrow we have a 4.2.1 compose. Are we OK to merge it and release? Or are there any updates planning, so we will need to postpone the release to next week? |
No description provided.