Skip to content

Commit

Permalink
Merge branch 'master' into fix_ovirt_quota
Browse files Browse the repository at this point in the history
  • Loading branch information
mnecas committed Jul 19, 2023
2 parents 98eb6be + 9befbcf commit 9a723f4
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .automation/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ cp -r "$OVIRT_BUILD"/* "$OVIRT_BUILD"/.config "$COLLECTION_DIR"
cd "$COLLECTION_DIR"

antsibull-changelog lint -v
ansible-lint roles/*
#skip linting, done in separate github workflow
#ansible-lint roles/*

cd "$ROOT_PATH"

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install python3.9-venv -y
- name: Install ansible.posix
run: ansible-galaxy collection install -c ansible.posix

- name: Checkout
uses: ovirt/checkout-action@main

Expand Down Expand Up @@ -49,7 +52,7 @@ jobs:
"ansible-lint>=6.0.0,<7.0.0" \
cryptography \
"pyyaml>=5.4.1"
ansible-lint roles/* -x 204
ansible-lint -x 'key-order[task],no-free-form,schema[vars],yaml[octal-values],risky-shell-pipe,fqcn[keyword]' roles/*
build:
runs-on: ubuntu-latest
strategy:
Expand All @@ -69,6 +72,9 @@ jobs:
- name: Install python3.9 modules
run: ${{ matrix.pip-command }} install pycodestyle pylint voluptuous yamllint rstcheck antsibull-changelog rich "ansible-lint>=6.0.0,<7.0.0" cryptography

- name: Install ansible.posix
run: ansible-galaxy collection install -c ansible.posix

- name: Checkout
uses: ovirt/checkout-action@main

Expand Down
3 changes: 3 additions & 0 deletions changelogs/fragments/700-fix-directlun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- ovirt_disk - Fix issue in detaching the direct LUN (https://github.com/oVirt/ovirt-ansible-collection/pull/700)
3 changes: 3 additions & 0 deletions changelogs/fragments/702-drop-netaddr2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- HE - drop remaining filters using netaddr (https://github.com/oVirt/ovirt-ansible-collection/pull/702)
3 changes: 3 additions & 0 deletions changelogs/fragments/704-drop-netaddr3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- HE - fix ipv4 and ipv6 check after dropping netaddr (https://github.com/oVirt/ovirt-ansible-collection/pull/704)
3 changes: 3 additions & 0 deletions changelogs/fragments/706-he-update-README.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- hosted_engine_setup - Update README (https://github.com/oVirt/ovirt-ansible-collection/pull/706)
2 changes: 1 addition & 1 deletion plugins/modules/ovirt_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def update_check(self, entity):
equal(self.param('propagate_errors'), entity.propagate_errors) and
equal(otypes.ScsiGenericIO(self.param('scsi_passthrough')) if self.param('scsi_passthrough') else None, entity.sgio) and
equal(self.param('wipe_after_delete'), entity.wipe_after_delete) and
equal(self.param('profile'), follow_link(self._connection, entity.disk_profile).name)
equal(self.param('profile'), getattr(follow_link(self._connection, entity.disk_profile), 'name', None))
)


Expand Down
2 changes: 1 addition & 1 deletion roles/hosted_engine_setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ $ ansible-playbook hosted_engine_deploy.yml --extra-vars='@he_deployment.json' -

Deployment over a remote host:
```sh
ansible-playbook -i host123.localdomain, hosted_engine_deploy.yml --extra-vars='@he_deployment.json' --extra-vars='@passwords.yml' --ask-vault-pass
$ ansible-playbook -i host123.localdomain, hosted_engine_deploy.yml --extra-vars='@he_deployment.json' --extra-vars='@passwords.yml' --ask-vault-pass
```

Deploy over a remote host from Ansible AWX/Tower
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

- name: Set Engine public key as authorized key without validating the TLS/SSL certificates
connection: ssh
authorized_key:
ansible.posix.authorized_key:
user: root
state: present
key: https://{{ he_fqdn }}/ovirt-engine/services/pki-resource?resource=engine-certificate&format=OPENSSH-PUBKEY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
register: vlan_id_out
changed_when: true
- name: Set Engine public key as authorized key without validating the TLS/SSL certificates
authorized_key:
ansible.posix.authorized_key:
user: root
state: present
key: https://{{ he_fqdn }}/ovirt-engine/services/pki-resource?resource=engine-certificate&format=OPENSSH-PUBKEY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@
owner: root
group: root
mode: 0644
when: he_vm_ip_addr is not none and he_vm_ip_addr | ipv4
when: he_vm_ip_addr is not none and not he_vm_ip_addr is search(":")
- name: Generate static network configuration for the engine VM, IPv6
ansible.builtin.template:
src: templates/ifcfg-eth0-static-ipv6.j2
dest: "{{ he_local_vm_dir }}/ifcfg-eth0"
owner: root
group: root
mode: 0644
when: he_vm_ip_addr is not none and he_vm_ip_addr | ipv6
when: he_vm_ip_addr is not none and he_vm_ip_addr is search(":")
- name: Inject network configuration with guestfish
ansible.builtin.command: >-
guestfish -a {{ local_vm_disk_path }} --rw -i copy-in "{{ he_local_vm_dir }}/ifcfg-eth0"
Expand Down
2 changes: 1 addition & 1 deletion roles/hosted_engine_setup/tasks/fetch_host_ip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
ansible.builtin.set_fact:
he_host_ip: "{{
(
hostname_resolution_output.stdout.split() |
hostname_resolution_output.stdout.split() |
intersect(hostname_addresses_output.stdout.split())
)[0]
}}"
Expand Down

0 comments on commit 9a723f4

Please sign in to comment.