Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2nd Ed, PDF p35, 'package' command has yum servers issue (CentOS 8 EOL) #453

Closed
mcheck opened this issue Feb 1, 2022 · 5 comments
Closed
Labels

Comments

@mcheck
Copy link

mcheck commented Feb 1, 2022

On p35 of 2nd Ed.:
ansible app -b -m package -a "name=git state=present"

192.168.57.4 | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/libexec/platform-python"
    },
    "changed": false,
    "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist",
    "rc": 1,
    "results": []
}
192.168.57.5 | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/libexec/platform-python"
    },
    "changed": false,
    "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist",
    "rc": 1,
    "results": []
}

Servers created as CentOS8s.

In the machine:

[vagrant@orc-app1 ~]$ sudo yum update -y
CentOS Linux 8 - AppStream                                          152  B/s |  38  B     00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Stackexchange suggests this is a resolv.conf issue, but even replacing resolv.conf with

nameserver 8.8.8.8
nameserver 8.8.4.4

Same error results.

@dglinder
Copy link
Contributor

dglinder commented Feb 2, 2022

The error message you're receiving:

Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

is from yum, not Ansible - this is a problem with your app servers installation or configuration - you will need to ask on a CentOS support forum.

@geerlingguy geerlingguy added the bug label Feb 3, 2022
@geerlingguy
Copy link
Owner

This seems to be the result of CentOS 8's EOL. At some point I may switch the examples to Rocky Linux 8 instead. (Yet another effect of the CentOS 8 rug-pull, grr...).

This seems to have started happening within the past week.

@geerlingguy
Copy link
Owner

See geerlingguy/packer-boxes#80 — I'm planning on adding a rockylinux8 build soon.

@geerlingguy geerlingguy changed the title 2nd Ed, PDF p35, 'package' command has yum servers issue 2nd Ed, PDF p35, 'package' command has yum servers issue (CentOS 8 EOL) Feb 21, 2022
@advancedluser
Copy link

Hey there, I'm really enjoying your book and videos :)

Wanted to add, that this issue is present in other places. I just faced it on page 20 and in the config file here on GitHub you have geerlingguy/centos8, but after in the book and in the videos on YouTube you talk about CentOS 7.

In the screenshot, line 8 in the code and the last line of text at the bottom.

image

@geerlingguy
Copy link
Owner

I have these references fixed in the manuscript. I hope to have an update out tonight!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants