Unable to install openstack
Did anyone install ONAP LAB 2022 after Jan 31st?
I tried but failed.
The error I got:
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Quickly google it, found:
CentOS 8 reached its end-of-life on December 31st, 2021, and thus, since January 31st, 2022
What should I do?
Comments
-
That looks like there is no available subscription for Openstack channels. You may run this command to see matching channels for Openstack
Raw# subscription-manager list --available --matches 'Red Hat OpenStack'
If you don't have required subscription for Openstack then get the subscription, attach it later, and then activate Openstack repos which should work.
0 -
Following
https://techglimpse.com/failed-metadata-repo-appstream-centos-8/I was able to move ahead this early morning.
I did that yesterday, kept getting connection timeout. My guessing is since CentOS 8 reached its end-of-life, all mirrors disappeared and caused the congestion.
I was able to start aio-centos-gcp-deploy.sh, but I ran into another issue:
_ASK [lxc_hosts : Format the machines file] ************************************
TASK [lxc_hosts : Create machines mount point] *********************************
fatal: [aio1]: FAILED! => {"changed": false, "msg": "path /proc/self/fd/4 does not exist", "path": "/proc/self/fd/4
"}
PLAY RECAP *********************************************************************
aio1 : ok=87 changed=4 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0EXIT NOTICE [Playbook execution failure] **************************************
- grep -q 'Playbook execution success' setup-hosts.out
- echo 'Failed to run the ansible playbook setup-hosts.yml'
Failed to run the ansible playbook setup-hosts.yml_
Any suggestion?
0 -
I was able to fix most of the issues. Still got an error as:
"ImportError: cannot import name 'qos_limit_bandwidth_rules_client'"According to https://forum.linuxfoundation.org/discussion/comment/32377
We can live with it.Here are my updates:
update CentOS 8 repository location
Credit goes to https://techglimpse.com/failed-metadata-repo-appstream-centos-8/
- #sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
- #sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
- #yum update -y
disable selinux
Reference link:
https://docs.openstack.org/openstack-ansible/latest/user/aio/quickstart.html- # systemctl stop firewalld
- # systemctl mask firewalld
- # vi /etc/sysconfig/selinux
- in /etc/sysconfig/selinux, change SELINUX=enforcing is changed to SELINUX=disabled.
- # reboot
update CentOS 8 repository location for image used by lxc_hosts
- # vi /opt/openstack-ansible/ansible-role-requirements.yml
- comment out following lines, since we need to modify one of file in local
- #- name: lxc_hosts
- # scm: git
- # src: https://opendev.org/openstack/openstack-ansible-lxc_hosts
- # version: fc0eedf9de8a4024b51abbe5771234f89b5bfa32
- # trackbranch: stable/victoria
- #cd /opt/openstack-ansible/playbooks/roles
- #git clone https://opendev.org/openstack/openstack-ansible-lxc_hosts lxc_hosts
- #cd lxc_hosts
- #git checkout stable/victoria
- #vi defaults/main.yml
- change
- lxc_cache_prep_pre_commands: '## pre command skipped ##'
- to
- lxc_cache_prep_pre_commands: "sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*\n sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*"
0 -
Hi All,
I will take a look at these errors. If necessary, will create a new image with Ubuntu OS. I will keep you all posted. Thanks.0 -
@raghuramg said:
Hi All,
I will take a look at these errors. If necessary, will create a new image with Ubuntu OS. I will keep you all posted. Thanks.Do you have any update?
Thanks
0 -
Hi @huntingweb ,
Due to CentOS being EndofLife, OpenStack is un-installable on CentOS. There is a warning on OpenStack Page.
We are in process of building a new image with Ubuntu OS. the work is in progress. I will keep you informed here once the image is ready. Thank You for your Patience.Warning
The announcement of early end-of-life for CentOS 8 and the migration to CentOS Stream leaves OpenStack-Ansible currently un-installable on CentOS Stream. A number of critical dependencies are taken from the EPEL repository and currently these will not install onto a CentOS Stream host. Careful consideration should be given to the life-cycle of any new deployments on CentOS 8.
0 -
Hi @huntingweb ,
While we are working on getting a new Ubuntu GCP Image. You could trying installing OpenStack on any VM with Ubuntu 20.04 OS which has a public IP. You could follow the same steps as in the LAB guide.Copy the onap-custom folder from the GCP to target ubuntu VM where you will install OpenStack and update the script (~/onap-custom/setup-utils/aio-centos-client-install.sh) with below content and try.
===================================================================
!/bin/bash
LOGFILE="aio-openstack-cli-installation.log"
echo "Going to install the Openstack Cli and Heat Stack Cli packages"
apt install python3-pip -y | tee -a $LOGFILE
python3 -m pip install -U pip | tee -a $LOGFILE
pip3 install python-openstackclient | tee -a $LOGFILE
pip3 install python-heatclient | tee -a $LOGFILEecho "Successfully installed the Client packages"
exit 0
0 -
Hi @huntingweb,
Were you able to install OpenStack on any other VM other than GCP ?0 -
I am still waiting your office image.
I had stuck OpenStack issue for 3 days. Really don't want to wast any more time on it.
Currently, I temporarily used an old version of microstack, it is super easy, supports http and didn't see any issue in OOM installation.sudo snap install microstack --classic --channel=rocky/edge
Do you have the official version ready?
0 -
Hi @huntingweb,
The new OpenStack image is not available yet. We're having some issues with installing OpenStack on GCP. We are debugging the issue. Hopefully, the image will be available by next week. I will keep you informed.0 -
@raghuramg said:
Hi @huntingweb,
The new OpenStack image is not available yet. We're having some issues with installing OpenStack on GCP. We are debugging the issue. Hopefully, the image will be available by next week. I will keep you informed.Hi @raghuramg,
Any update on this?Thanks
0 -
Hi @huntingweb,
We've fixed the OpenStack issue on Ubuntu. The new GCP image with Ubuntu OS will be available by tomorrow. I will comment here once it is available.0 -
Hi @raghuramg
Since there were a few issues found during recent exercise, can you guy re-certify the lab after fixing the Openstack installation issue and AAI certification problem?
0 -
Hi @huntingweb,
The new GCP Ubuntu OpenStack Image is Ready.Here are the steps to install with a new image.
# Launch an instance to deploy OpenStack
gcloud compute instances create openstack-01 --zone us-central1-f --custom-cpu 32 --custom-memory 72GB --min-cpu-platform "Intel Haswell" --image "https://www.googleapis.com/compute/v1/projects/onap-177920/global/images/aarna-aio-openstack-victoria-ubuntu-20-16032022-00"#If you see this error for utility container. Please ignore.
aio1_utility_container-35e97cfd : ok=57 changed=3 unreachable=0 failed=1 skipped=26 rescued=0 ignored=0# Replace the following attached scripts in path ~/onap-custom/setup-utils
Extract the attached scripts.zip to get the updated files.
aio-centos-gcp-deploy.sh
aio-centos-client-install.shFollow the remaining steps as per the lab document to install OpenStack.
# Find the ip address of your eth0 interface
ip addr show ens40 -
@raghuramg
I'm trying to install Openstack using the updated Ubuntu image, however it is currently hanging on:- RUNNING HANDLER [os_keystone : Wait for uWSGI socket to be ready] **************
In the nohup.log I see a bunch of messages saying backend has no server available:
- Message from syslogd@aio1 at Mar 17 17:56:27 ...
- haproxy[104364]: backend nova_api_os_compute-back has no server available!
- Broadcast message from systemd-journald@aio1 (Thu 2022-03-17 17:56:27 UTC):
- haproxy[104364]: backend nova_console-back has no server available!
- Message from syslogd@aio1 at Mar 17 17:56:27 ...
- haproxy[104364]: backend nova_console-back has no server available!
- Broadcast message from systemd-journald@aio1 (Thu 2022-03-17 17:56:28 UTC):
- haproxy[104364]: backend placement-back has no server available!
- Message from syslogd@aio1 at Mar 17 17:56:28 ...
- haproxy[104364]: backend placement-back has no server available!
- Broadcast message from systemd-journald@aio1 (Thu 2022-03-17 17:56:29 UTC):
- haproxy[104364]: backend rabbitmq_mgmt-back has no server available!
Is there something else that needs to be configured?
0 -
Hi @michaober,
Have you created VM using the below command? If yes, Could you please share your VM Public IP ?gcloud compute instances create openstack-01 --zone us-central1-f --custom-cpu 32 --custom-memory 72GB --min-cpu-platform "Intel Haswell" --image "https://www.googleapis.com/compute/v1/projects/onap-177920/global/images/aarna-aio-openstack-victoria-ubuntu-20-16032022-00"
0 -
I created it on "us-central1-a", not "f", because "f" had no resources at the time I tried.
I have sent you the IP via private message.
0 -
Hi @michaober,
I cannot SSH or Ping the VM IP that you shared. Please verify.0 -
I've started it again and will leave it running for the next few hours.
0 -
Hi @michaober,
I could not connect to the VM still. Please make sure the IP is correct?0 -
The IP is correct, but I cannot leave the VM running 24/7 due to costs. It was running for ~8 hours after my previous post.
There has to be another way to solve this issue.
0 -
Hi @michaober,
I am in India TimeZone. So I have missed your message last night. Is it possible to create a new VM with the below command now and share the IP?gcloud compute instances create openstack-01 --zone us-central1-f --custom-cpu 32 --custom-memory 72GB --min-cpu-platform "Intel Haswell" --image "https://www.googleapis.com/compute/v1/projects/onap-177920/global/images/aarna-aio-openstack-victoria-ubuntu-20-16032022-00"
0 -
Hi @michaober,
I have started the installation and it is in progress. so far no errors. it is going smoothly. I will update once it gets complete. it might take around the next 2 hours.0 -
Hi @michaober,
It has failed again at the below steps. I could not clean up completely to start the install again. is it possible to delete this VM and create a new VM?TASK [os_keystone : Create database for service] *******************************
failed: [aio1_keystone_container-21a606d1 -> 172.29.237.184] (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
fatal: [aio1_keystone_container-21a606d1]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}0 -
I'm pretty sure that repeating the same steps while get the same results.
Can you maybe create a working VM and document the steps you took?
0 -
Hi @michaober,
It is a working Image. I recommend not to power-off ONAP or OpenStack VM's even when not used. That might cause problems. we have seen issues before if power off and power on.Have you tried on a new VM ? or this is the 1st VM ?
0 -
I recommend not to power-off ONAP or OpenStack VM's even when not used. That might cause problems. we have seen issues before if power off and power on.
How is this supposed to work? Is there a way to use GCP for free? If powering off and on breaks the system, I would not consider it is "working".
Have you tried on a new VM ? or this is the 1st VM ?
It's the first. But if I'm supposed to spend another working day on getting this system up and running, I'd like to have more concise instructions. Currently, I picked everything from different sources - the PDF supplied in the course and different forum posts.
So I'd like to ask you again to provide complete, end-to-end, tested instructions.
0 -
Hi @michaober,
Here are the steps to install OpenStack. The image is tested and it will work fine if VM is not restarted / Power-off.
# Launch an instance to deploy OpenStack
gcloud compute instances create openstack-01 --zone us-central1-f --custom-cpu 32 --custom-memory 72GB --min-cpu-platform "Intel Haswell" --image "https://www.googleapis.com/compute/v1/projects/onap-177920/global/images/aarna-aio-openstack-victoria-ubuntu-20-16032022-00"#If you see this error for utility container. Please ignore.
aio1_utility_container-35e97cfd : ok=57 changed=3 unreachable=0 failed=1 skipped=26 rescued=0 ignored=0cd onap-custom/
git pull -v
cd setup-utils/
nohup sudo bash -x aio-ubuntu-gcp-deploy.sh 2 &
sudo bash -x ./aio-ubuntu-update-haproxy-http.sh
ip addr show ens4
sudo bash -x ./aio-prepare-overcloudrc.sh aarna0
Categories
- All Categories
- 138 LFX Mentorship
- 138 LFX Mentorship: Linux Kernel
- 815 Linux Foundation IT Professional Programs
- 366 Cloud Engineer IT Professional Program
- 184 Advanced Cloud Engineer IT Professional Program
- 83 DevOps Engineer IT Professional Program
- 151 Cloud Native Developer IT Professional Program
- 142 Express Training Courses & Microlearning
- 142 Express Courses - Discussion Forum
- Microlearning - Discussion Forum
- 6.6K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 72 LFC131 Class Forum
- 49 LFD102 Class Forum
- 234 LFD103 Class Forum
- 21 LFD110 Class Forum
- 44 LFD121 Class Forum
- LFD123 Class Forum
- LFD125 Class Forum
- 18 LFD133 Class Forum
- 8 LFD134 Class Forum
- 18 LFD137 Class Forum
- 72 LFD201 Class Forum
- 5 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 719 LFD259 Class Forum
- 111 LFD272 Class Forum - Discontinued
- 4 LFD272-JP クラス フォーラム
- 13 LFD273 Class Forum
- 236 LFS101 Class Forum
- 2 LFS111 Class Forum
- 3 LFS112 Class Forum
- 3 LFS116 Class Forum
- 7 LFS118 Class Forum
- LFS120 Class Forum
- 9 LFS142 Class Forum
- 8 LFS144 Class Forum
- 4 LFS145 Class Forum
- 4 LFS146 Class Forum
- 16 LFS148 Class Forum
- 15 LFS151 Class Forum
- 5 LFS157 Class Forum
- 65 LFS158 Class Forum
- LFS158-JP クラス フォーラム
- 11 LFS162 Class Forum
- 2 LFS166 Class Forum
- 7 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 33 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム - Discontinued
- 20 LFS203 Class Forum
- 135 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 2 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 53 LFS241 Class Forum
- 50 LFS242 Class Forum
- 38 LFS243 Class Forum
- 16 LFS244 Class Forum
- 5 LFS245 Class Forum
- LFS246 Class Forum
- LFS248 Class Forum
- 86 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 156 LFS253 Class Forum
- 1 LFS254 Class Forum
- 2 LFS255 Class Forum
- 12 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 11 LFS258-JP クラス フォーラム
- 135 LFS260 Class Forum
- 161 LFS261 Class Forum
- 43 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 25 LFS268 Class Forum
- 37 LFS269 Class Forum
- 7 LFS270 Class Forum
- 202 LFS272 Class Forum - Discontinued
- 2 LFS272-JP クラス フォーラム
- 4 LFS147 Class Forum
- 2 LFS274 Class Forum
- 4 LFS281 Class Forum
- 16 LFW111 Class Forum
- 262 LFW211 Class Forum
- 185 LFW212 Class Forum
- 15 SKF100 Class Forum
- 1 SKF200 Class Forum
- 2 SKF201 Class Forum
- 797 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 104 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 761 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 149 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 355 Ubuntu
- 470 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 95 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 69 Mobile Computing
- 18 Android
- 38 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 379 Off Topic
- 115 Introductions
- 177 Small Talk
- 26 Study Material
- 808 Programming and Development
- 304 Kernel Development
- 486 Software Development
- 1.8K Software
- 263 Applications
- 183 Command Line
- 3 Compiling/Installing
- 988 Games
- 317 Installation
- 103 All In Program
- 103 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)