Skip to content

Commit

Permalink
Change photon repo's baseurl for Photon 3.x and earlier (#87)
Browse files Browse the repository at this point in the history
* Change photon repo's baseurl for Photon 3.x and earlier

Signed-off-by: Qi Zhang <qiz@vmware.com>

* Add vgauth_check_service known issue with open-vm-tools 11.2.5 on Photon OS 3.x

Signed-off-by: Qi Zhang <qiz@vmware.com>
  • Loading branch information
keirazhang authored Jul 6, 2021
1 parent d9a3b30 commit 49e0734
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions docs/KNOWN_ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,18 @@ guest_customization/gosc_cloudinit_dhcp.yml
vhba_hot_add_remove/nvme_vhba_device_ops.yml
```

4. VMware Photon OS 3.0 and later
4. VMware Photon OS 3.x
* Failure: After reinstalling open-vm-tools 11.2.5, the VGAuthService cann't be started successfully due to xmlsec1 version mismatch
* Workaround: Manually upgrade xmlsec1 package by running command 'tdnf install xmlsec1', and then reboot Photon OS.
* Affected test cases:
```
vgauth_check_service/vgauth_check_service.yml
```

5. VMware Photon OS 3.0 and later
* Failure: When hot adding or removing NVMe disk to existing controller, VMware Photon OS cannot detect NVMe disk changes.
* Workaround: not available
* Affected test cases:
```
nvme_vhba_device_ops
vhba_hot_add_remove/nvme_vhba_device_ops.yml
```
12 changes: 10 additions & 2 deletions linux/utils/add_official_online_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@
- block:
- name: "Set the fact of Photon OS {{ guest_os_ansible_distribution_major_ver }} online repos"
set_fact:
photon_online_repos: ["photon", "photon-updates"]
photon_online_repos: ["photon", "photon-updates", "photon-extras"]
when: guest_os_ansible_distribution_major_ver | int < 4

- name: "Set the fact of Photon OS {{ guest_os_ansible_distribution_major_ver }} online repos"
set_fact:
photon_online_repos: ["photon", "photon-release", "photon-updates"]
photon_online_repos: ["photon", "photon-release", "photon-updates", "photon-extras"]
when: guest_os_ansible_distribution_major_ver | int >= 4

- include_tasks: ../../common/update_ini_style_file.yml
Expand All @@ -117,4 +117,12 @@
option_name: "enabled"
option_value: 1
with_items: "{{ photon_online_repos }}"

# Update baseurl to repos on https://packages.vmware.com/photon
- block:
- name: "Update repo's baseurl"
command: "sed -i 's#dl.bintray.com/vmware/#packages.vmware.com/photon/$releasever/#' /etc/yum.repos.d/{{ item }}.repo"
delegate_to: "{{ vm_guest_ip }}"
with_items: "{{ photon_online_repos }}"
when: guest_os_ansible_distribution_major_ver | int < 4
when: guest_os_ansible_distribution == 'VMware Photon OS'

0 comments on commit 49e0734

Please sign in to comment.