Skip to content

Conversation

@dann1
Copy link
Contributor

@dann1 dann1 commented Jan 16, 2025

Description

rhel repo CE code blocks don't work when copying from the doc

image

[root@localhost ~]#  # cat << "EOT" > /etc/yum.repos.d/opennebula.repo
[root@localhost ~]#  [opennebula]
-bash: [opennebula]: command not found
[root@localhost ~]#  name=OpenNebula Community Edition
-bash: Community: command not found
[root@localhost ~]#  baseurl=https://downloads.opennebula.io/repo/7.0/AlmaLinux/$releasever/$basearch
[root@localhost ~]#  enabled=1
[root@localhost ~]#  gpgkey=https://downloads.opennebula.io/repo/repo2.key
[root@localhost ~]#  gpgcheck=1
[root@localhost ~]#  repo_gpgcheck=1
[root@localhost ~]#  EOT
-bash: EOT: command not found
[root@localhost ~]#  # yum makecache

EE works

image

[root@localhost ~]# cat << "EOT" > /etc/yum.repos.d/opennebula.repo
> [opennebula]
> name=OpenNebula Enterprise Edition
> baseurl=https://<token>@enterprise.opennebula.io/repo/7.0/AlmaLinux/$releasever/$basearch
> enabled=1
> gpgkey=https://downloads.opennebula.io/repo/repo2.key
> gpgcheck=1
> repo_gpgcheck=1
> EOT
[root@localhost ~]# yum makecache
AlmaLinux 8 - BaseOS                                                                                                                               12 kB/s | 3.8 kB     00:00
AlmaLinux 8 - AppStream                                                                                                                            15 kB/s | 4.3 kB     00:00
AlmaLinux 8 - Extras                                                                                                                               11 kB/s | 3.3 kB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                     50 kB/s |  37 kB     00:00
OpenNebula Enterprise Edition                                                                                                                     334  B/s | 381  B     00:01
Errors during downloading metadata for repository 'opennebula':
  - Status code: 401 for https://<token>@enterprise.opennebula.io/repo/7.0/AlmaLinux/8/x86_64/repodata/repomd.xml (IP: 139.162.168.171)
Error: Failed to download metadata for repo 'opennebula': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Also fix a warning with VM HA code block

Branches to which this PR applies

  • master
  • one-6.10
  • one-6.10-maintenance

  • Check this if this PR should not be squashed

@dann1 dann1 requested a review from tinova January 16, 2025 16:22
@tinova tinova merged commit c3e11e4 into OpenNebula:master Jan 16, 2025
3 checks passed
tinova pushed a commit that referenced this pull request Jan 16, 2025
tinova pushed a commit that referenced this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants