Comment 0 for bug 1850952

Revision history for this message
Erik Lönroth (erik-lonroth) wrote : centos add-machine missing CentOS-base repo

I'm getting an error when I try to add a centos machine to a juju model as:

juju add-machine ssh:<email address hidden>
Logging to /var/log/cloud-init-output.log on the bootstrap machine
Installing curl, bridge-utils, cloud-utils, nmap-ncat, tmux
Changing package mirror does not yet work on CentOS
sed: can't read /etc/yum/repos.d/CentOS-Base.repo: No such file or directory
ERROR provisioning failed, removing machine 97: subprocess encountered error code 1
ERROR subprocess encountered error code 1

After manually creating the file as:
juju ssh <email address hidden>
mkdir -p /etc/yum/repos.d/
touch CentOS-Base.repo

... then the juju agent installs fine as:

juju add-machine ssh:<email address hidden>
created machine 98

Getting juju to work better on centos is a good thing =)