Skip to content

Commit 49e0734

Browse files
authored
Change photon repo's baseurl for Photon 3.x and earlier (#87)
* Change photon repo's baseurl for Photon 3.x and earlier Signed-off-by: Qi Zhang <[email protected]> * Add vgauth_check_service known issue with open-vm-tools 11.2.5 on Photon OS 3.x Signed-off-by: Qi Zhang <[email protected]>
1 parent d9a3b30 commit 49e0734

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

docs/KNOWN_ISSUES.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,18 @@ guest_customization/gosc_cloudinit_dhcp.yml
5555
vhba_hot_add_remove/nvme_vhba_device_ops.yml
5656
```
5757

58-
4. VMware Photon OS 3.0 and later
58+
4. VMware Photon OS 3.x
59+
* Failure: After reinstalling open-vm-tools 11.2.5, the VGAuthService cann't be started successfully due to xmlsec1 version mismatch
60+
* Workaround: Manually upgrade xmlsec1 package by running command 'tdnf install xmlsec1', and then reboot Photon OS.
61+
* Affected test cases:
62+
```
63+
vgauth_check_service/vgauth_check_service.yml
64+
```
65+
66+
5. VMware Photon OS 3.0 and later
5967
* Failure: When hot adding or removing NVMe disk to existing controller, VMware Photon OS cannot detect NVMe disk changes.
6068
* Workaround: not available
6169
* Affected test cases:
6270
```
63-
nvme_vhba_device_ops
71+
vhba_hot_add_remove/nvme_vhba_device_ops.yml
6472
```

linux/utils/add_official_online_repo.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@
102102
- block:
103103
- name: "Set the fact of Photon OS {{ guest_os_ansible_distribution_major_ver }} online repos"
104104
set_fact:
105-
photon_online_repos: ["photon", "photon-updates"]
105+
photon_online_repos: ["photon", "photon-updates", "photon-extras"]
106106
when: guest_os_ansible_distribution_major_ver | int < 4
107107

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

113113
- include_tasks: ../../common/update_ini_style_file.yml
@@ -117,4 +117,12 @@
117117
option_name: "enabled"
118118
option_value: 1
119119
with_items: "{{ photon_online_repos }}"
120+
121+
# Update baseurl to repos on https://packages.vmware.com/photon
122+
- block:
123+
- name: "Update repo's baseurl"
124+
command: "sed -i 's#dl.bintray.com/vmware/#packages.vmware.com/photon/$releasever/#' /etc/yum.repos.d/{{ item }}.repo"
125+
delegate_to: "{{ vm_guest_ip }}"
126+
with_items: "{{ photon_online_repos }}"
127+
when: guest_os_ansible_distribution_major_ver | int < 4
120128
when: guest_os_ansible_distribution == 'VMware Photon OS'

0 commit comments

Comments
 (0)