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
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 801 Linux Foundation IT Professional Programs
- 358 Cloud Engineer IT Professional Program
- 180 Advanced Cloud Engineer IT Professional Program
- 83 DevOps Engineer IT Professional Program
- 149 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 138 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 42 LFD102 Class Forum
- 227 LFD103 Class Forum
- 19 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 154 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 34 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 135 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 48 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 155 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 122 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 25 LFS268 Class Forum
- 31 LFS269 Class Forum
- 3 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 10 LFW111 Class Forum
- 261 LFW211 Class Forum
- 182 LFW212 Class Forum
- 15 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 758 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 806 Programming and Development
- 304 Kernel Development
- 204 Software Development
- 1.8K Software
- 263 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 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)