Ошибка неизвестный репозиторий powertools

Перейти к содержимому

Недорогой хостинг для сайтов

hosting.energy недорогой хостинг сайтов

Как включить репозиторий PowerTools на компьютере с ОС CentOS 8 / RHEL 8 Linux? Репозиторий PowerTools не включен по умолчанию в CentOS 8 / RHEL 8 Linux. Этот репозиторий содержит ряд пакетов, необходимых в качестве зависимостей при установке других приложений и в основном сборке приложений из исходного кода.

Вот некоторые из пакетов в PowerTools:

  • device-mapper-devel
  • kmod-devel
  • lame-devel
  • maven-common
  • mariadb-common
  • mingw64 and mesa packages
  • opencv
  • perl-*
  • parted-devel
  • xorg-x11-server-devel
  • and many others

Чтобы иметь возможность включить PowerTools Repository на CentOS 8 / RHEL 8 из интерфейса командной строки. Сначала установите пакет плагинов DNF:

sudo dnf -y install dnf-plugins-core

Установите EPEL-репозиторий — PowerTools-репозиторий и EPEL-репозиторий являются лучшими друзьями. Так что включите репозиторий EPEL.

sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Включить репозиторий PowerTools в CentOS 8 / RHEL 8:

sudo dnf config-manager --set-enabled powertools

Подтвердите, что он включен:

$ sudo dnf repolist
Last metadata expiration check: 0:00:44 ago on Fri 24 Apr 2020 09:00:56 PM CEST.
repo id                                                 repo name                                                                                 status
AppStream                                               CentOS-8 - AppStream                                                                      4,830
BaseOS                                                  CentOS-8 - Base                                                                           1,661
PowerTools                                              CentOS-8 - PowerTools                                                                     1,456
ceph-nautilus                                           Ceph=Nautilus                                                                               119
*epel                                                   Extra Packages for Enterprise Linux 8 - x86_64                                            5,335
extras                                                  CentOS-8 - Extras                                                                            15

Теперь вы можете устанавливать пакеты из репозитория PowerTools в системе CentOS 8 / RHEL 8 Linux.

Рекомендуемый контент


Мы используем файлы cookie на нашем веб-сайте, чтобы предоставить вам наиболее релевантный опыт, запоминая ваши предпочтения и повторные посещения. Нажимая «Принять все», вы соглашаетесь на использование ВСЕХ файлов cookie. Однако вы можете посетить «Настройки файлов cookie», чтобы предоставить контролируемое согласие.

CentOS

The Community ENTerprise Operating System

centOS 9, X Windows System

centOS 9, X Windows System

Post by wondergrandma » 2022/02/27 14:55:56

Re: centOS 9, X Windows System

Post by TrevorH » 2022/02/27 16:27:05

Re: centOS 9, X Windows System

Post by toracat » 2022/02/27 18:47:07

Re: centOS 9, X Windows System

Post by wondergrandma » 2022/02/28 10:10:33

Hi, it’s not in the grouplist. What i have in grouplist is «KDE Plasma Worspaces», but i have problems installing it too. I was googling for solution all tutorials said that i need to enable epel and powertools.

Installing epel worked fine, problem was when i tried to enable powertools. Can you help me to reslove it ?

For powertools I tried:

Re: centOS 9, X Windows System

Post by TrevorH » 2022/02/28 11:11:35

Re: centOS 9, X Windows System

Post by jlehtone » 2022/02/28 14:47:52

Источник

How to enable PowerTools Repository on Rocky Linux 8

If you are using the EPEL repository then also enable PowerTools repo on Rocky Linux server or desktop to install developer-related software packages. The command given in this tutorial can also be used for CentOS8 and RHEL8.

What is PowerTools?

PowerTools is a repository that is available for RedHat and its derivative Linux to download and install developer-related packages, tools, and libraries. Also, many software packages available in EPEL repo sometimes require PowerTools repo to get installed properly. This repository mainly requires when you want to build some applications using their source code.

Here are some packages available to install using the PowerTools repo:

  • clucene-core-devel
  • zziplib-devel
  • xmlrpc-c-c++
  • xmltoman.noarch
  • boost -numpy
  • turbojpeg-devel
  • xz-lzma-compat
  • transfig.x86_64
  • tracker-miners
  • xcb-util-devel
  • xorg-x11-util-macros.noarch
  • xorg-x11-xkb-utils-devel
  • xmlsec1-openssl-devel
  • xmlsec1-gcrypt
  • And others…

Install DNF plugins package

Although it would already be installed on your Rocky system, however still run the below command to make sure it is there-

Install EPEL

If you are about to use PowerTools then I would recommend you to also enable EPEL because many time installing some software or building some package from its source code requires some dependencies that are available in EPEL, thus simply run-

Enable PowerTools repository on Rocky Linux 8

Now, finally, get PowerTools on your Rocky Linux/CentOS/AlmaLinux/RHEL 8 using the below-given command-

Update command

To flush the system cache and let it recognize the newly added repo of PowerTools, run once the update command before installing any package.

Check the Added repository on Rocky Linux

Let’s check what are the Repos are on our Linux system to download various packages using the command line package manager Yum or DNF.

In the below screenshot you can see we have four key repositories on our Rocky Linux that are –

Источник

Решил поставить mate на OL8 по иструкции надо выполнить комунду dnf config-manager –enable PowerTools но у меня выводит ошибку Ошибка: Нет подходящего репозитория для изменения: PowerTools. Я подумал что надо поставить другой EPEL рупозиторий, устанавливал по разному но ничего не вышло. идентификатор репозитория имя репозитория состояние epel Extra Packages for Enterprise Linux 8 — x86_ 5 267 ol8_UEKR6 Latest Unbreakable Enterprise Kernel Release 83 ol8_addons Oracle Linux 8 Addons (x86_64) 31 ol8_appstream Oracle Linux 8 Application Stream (x86_64) 11 657 ol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64) 4 764 ol8_u1_baseos_base Oracle Linux 8.1 BaseOS (x86_64) 1 829 Помогите)

Идентификатор репозитария CodeReady Builder для OL8 вроде должен быть «codeready_builder». «PowerTools» — это название аналогичного репозитария для CentOS 8.

Я подключил codeready_builder. Не могу найти как установить «PowerTools» в гугле они просто ставят enable=1 У меня его нету в репозиториях, команда yum search PowerTools выдает что такого нету.

codeready_builder это PowerTools для OL8:
— Для RHEL 8 — «codeready-builder-for-rhel-8-x86_64-rpms».
— Для CentOS 8 — «PowerTools».
— Для Oracle Linux 8 — «codeready_builder».

Все 3 репозитария одни и те же; первый — оригинальный, а остальные — просто пересборка его же.

Источник

How to Install OpenStack on CentOS 8 with Packstack

Openstack is a free and open-source private cloud software through which we can manage compute, network and storage resources of our data center with an ease using a single dashboard and via openstack cli commands. In this article we will demonstrate on how to install Openstack on a CentOS 8 system with packstack. Packstack is a command line utility which deploy different components of openstack using puppet modules.

Openstack deployment with packstack is generally used for POC (proof of concept) purpose, so it is not recommended to use packstack for production deployment. Use TripleO method to deploy openstack in production environment.

Minimum System requirements for OpenStack

  • Minimal CentOS 8
  • Dual core Processor
  • 8 GB RAM
  • 40 GB free disk space
  • Stable Internet Connection
  • At least one nic card

My Lab setup details:

  • Hostname – openstack.example.com
  • IP – 192.168.1.8
  • Flat Network – 192.168.1.0/24

Let’s deep dive into the openstack installation steps,

Step 1) Set the hostname and update /etc/hosts file

Open the terminal and set the hostname using the following hostnamectl command,

Run below echo command to append hostname entry in /etc/hosts file.

Step 2) Disable Network Manager and Configure Network using network-scripts

Network-Manager is the default tool in CentOS 8 to manager networks but for Openstack we must disable it because openstack networking will not work properly with network-manager. In place of network manager, we must install native network-scripts.

To disable network-manager run the following commands,

Run following dnf command to install native network-scripts

Once the network-scripts package is installed then we can manage networking (ifcfg-* files) using native network.service

Now let’s configure IP address in ifcfg-enp0s3 file and start network service

Save and exit the file and then start network service using following command,

Now verify whether IP is assigned to NIC (enp0s3) using ip command,

Step 3) Enable OpenStack repositories and install packstack utility

At time of writing this article, ussuri openstack was available, so run the following command to configure its repositories

Now installed all the available updates and reboot your system,

Once the system is available after the reboot, execute following dnf command to install packstack utility

Step 4) Generate answer file and install openstack using packstack

Use packstack command to generate the answer file,

Once the answer file is generated, edit the following parameters using vi editor,

Save and exit the file.

Replace the interface name (enp0s3) as per your setup.

Note: Default Tenant network type drive is set as “geneve” and default neutron type driver is set as “geneve and flat”. If wish to change these default parameters, then update following lines in answer file. In this demonstration i am not going to update these parameters.

Run the following command to initiate the openstack deployment using answer file.

Deployment will take around 20 to 30 minutes depending on your system’s hardware and internet speed. Once it is installed successfully, we will get the following:

Now verify whether IP from enp03 interface is assigned to bridge br-ex and also confirm whether interface enp0s3 is added as a port in ovs-bridge.

Run the following commands:

Perfect, above output confirms that installation was successful, and networking is also configured as per the answer file.

Step 5) Access Horizon Dashboard

Now try to login to Horizon dashboard. URL is already specified in the above output, in my case url is http://192.168.1.8/dashboard , Use the user name as admin and password that we specify in answer file.

We also refer the file “ keystonerc_admin ” for credentials

Now, let’s test this openstack deployment by launching an instance.

Step 6) Test and verify OpenStack installation by launching an instance

Before launching an instance in openstack, first we must create networks and router and glance image. So, let’s first create external network in admin tenant using following neutron commands,

Now add a subnet of your flat network to external network by running following neutron command.

Create a router by executing the following neutron command and set its gateway using external network

Create private network and attach a subnet to it. Run the following neutron command,

Add pvt_net interface to router “ dev_router ” using beneath neutron command,

Now Download Cirros image and then upload it to glance

Now head back to horizon dashboard and verify the network topology

Perfect, above confirms that private and external network have been setup correctly along with the router.

One final step before creating a vm, update the default security group, add icmp and ssh ingress rules, click on “Security Groups” under the network Tab, Click on Manage Rules and then click on “Add rule

Similarly add rule for ssh

Now all the requirements for launching an openstack instance are fullfilled. Click on Compute Tab and then Choose Instances option and click on “Launch Instance

Once VM is launched successfully then we will get something like below,

Now Associate floating IP to instance (demo_vm), Under the “Actions” Tab, Choose “Associate Floating IP

Now Choose IP or Click on + sign to get floating IP from external network and then associate it

Once IP is associated to the VM then floating IP will be displayed for under ‘ IP Address ‘ option, example is shown below

Now try to access this demo_vm using the floating ip, use cirros as a user and ‘ gocubsgo ’ as password

Great, above output confirms that we can access our instance via floating ip. This concludes the article; I hope this tutorial helps to deploy openstack on CentOS 8 system. Please don’t hesitate to share your feedback and comments.

31 thoughts on “How to Install OpenStack on CentOS 8 with Packstack”

when issuing command “dnf config-manager –enable PowerTools” it throws an error “No such command: config-manager. Please use /usr/bin/dnf –help

]# dnf config-manager –enable PowerTools
No such command: config-manager. Please use /usr/bin/dnf –help
It could be a DNF plugin command, try: “dnf install ‘dnf-command(config-manager)’”
[[email protected]

Run the following dnf command to fix the above said issue:

$ sudo dnf install ‘dnf-command(config-manager)’

try with powertools instead of “PowerTools”

[[email protected] network-scripts]# dnf config-manager –enable PowerTools
Error: No matching repo to modify: PowerTools.
[[email protected] network-scripts]# dnf config-manager –enable powertools
[[email protected] network-scripts]# dnf install -y centos-release-openstack-victoria
CentOS Linux 8 – PowerTools 5.8 MB/s | 2.0 MB 00:00
Dependencies resolved.

In case you have latest and updated CentOS stream then use below command

# dnf config-manager –set-enabled powertools

Hi Sir,
I get an issue below :

ERROR : Failed to run remote script, stdout: skipping creation of hiera.yaml symlink

stderr: Warning: Permanently added ‘10.10.69.100’ (ECDSA) to the list of known hosts.
+ trap t ERR
+ [[ -f /etc/hiera.yaml ]]
+ echo ‘skipping creation of hiera.yaml symlink’
++ puppet config print hiera_config
+ sed -i ‘s;:datadir:.*;:datadir: /var/tmp/packstack/d7eabbcf57df47b6b283fc89caeb47be/hieradata;g’ /etc/puppet/hiera.yaml
sed: can’t read /etc/puppet/hiera.yaml: No such file or directory
++ t
++ exit 2

How to solve it?

Hi Sir,
I was able to access this demo_vm using cirros as user with floating IP.
But from demo_vm, the following fails.
$ ping 8.8.8.8
How to solve it?

Add the DNS Sever IP while creating the external network subnet.

Thank you
I added a DNS server to the external network subnet, but it doesn’t work.
Other conditions are as follows.
Ping from demo_vm
to: FloatingIP -> Success
to: GestOS IP -> Success
(Use VirtualBox and bridge connection)
to: Host Default GW IP -> Failure
How to solve it?

I’m sorry.
In another VirtualBox environment, ping 8.8.8.8 was successful.

@Manusia:
I had the same error and now i found the issue
There is a problem with epel and the hiera package (hiera-3.6.0-2.el8)
The centos-openstack-ussuri repo provides hiera-3.6.0-1.el8

A look at the filelist in rpm shows that hiera-3.6.0-2.el8 didn’t include:
/etc/puppet
/etc/puppet/hiera.yaml

So remove hiera, disable epel and reinstall openstack-packstack:
dnf remove hiera -y
dnf config-manager –disable epel
dnf install -y openstack-packstack

when i uninstall hiera, i cannot reinstall packtack. I’m on the openstack-victoria. Can you help me with this problem?

First of all, this is a great reference document for Openstack installation on CentOS. I followed every step in the document and was successful. However, ran into some issue during last few steps.

Can you please help me with some trigger or suggestion to solve this issue? Thanks a lot in advance.

Copying Puppet modules and manifests [ DONE ]
Applying 192.168.0.3_controller.pp
192.168.0.3_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.0.3_controller.pp
Error: Facter: error while resolving custom fact “rabbitmq_nodename”: undefined method `[]’ for nil:NilClass
You will find full trace in log /var/tmp/packstack/20200723-225316-7yvkznxa/manifests/192.168.0.3_controller.pp.log
Please check log file /var/tmp/packstack/20200723-225316-7yvkznxa/openstack-setup.log for more information
Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.0.3. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.0.3/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
[[email protected]

Please check controller.pp.log and openstack-setup.log, You might get the clue there. I would suggest give a try one more time.

Thanks a lot for helping me for previous query. Earlier problem fixed, now I am able to create VM instance successfully, but I can’t connect from Virtual box machine (CentOS machine) and outside network.

Furthermore, there are no route 172.24.1.0/24 on my Virtual box machine (CentOS machine).

Is Virtual box IP address and External Network should be on same subnet? I tried that and that still not worked.

It seems Neutron not properly configured.

Please suggest me how to fix this (Using same commands provided in the document).

Virtual box IP address: 192.168.0.104 (Subnet = 192.168.0.0/24)
Private Network: 10.20.1.0/24
External Network: 172.24.1.0/24

================
CLI Commands:
================
source keystonerc_admin
neutron net-create external_network –provider:network_type flat –provider:physical_network extnet –router:external
neutron subnet-create –name public_subnet –enable_dhcp=True –allocation-pool=start=172.24.1.210,end=172.24.1.230 –gateway=172.24.1.1 external_network 172.24.1.0/24
neutron router-create dev-router
neutron router-gateway-set dev-router external_network
neutron net-create pvt_net
neutron subnet-create –name pvt_subnet pvt_net 10.20.1.0/24
neutron router-interface-add dev-router pvt_subnet

(keystone_admin)]# ifconfig -a
br-ex: flags=4163 mtu 1500
inet 192.168.0.104 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 33024 bytes 27440713 (26.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29794 bytes 17763062 (16.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

br-int: flags=4098 mtu 1500
ether 86:09:c0:60:00:4e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099 mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:49:2d:fa:d2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp0s3: flags=4163 mtu 1500
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 38913 bytes 28292425 (26.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 38573 bytes 21086877 (20.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2708229 bytes 2168061258 (2.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2708229 bytes 2168061258 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ovs-system: flags=4098 mtu 1500
ether 22:df:63:8b:31:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

(keystone_admin)]# ip route show
default via 192.168.0.1 dev br-ex
169.254.0.0/16 dev enp0s3 scope link metric 1002
169.254.0.0/16 dev br-ex scope link metric 1004
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.0.0/24 dev br-ex proto kernel scope link src 192.168.0.104
[[email protected]

Источник

Содержание

  1. error no matching repo to modify powertools
  2. How do I enable PowerTools repository?
  3. What is PowerTools repo?
  4. How do I install PowerTools?
  5. Is Remi repo safe?
  6. What is EPEL repository?
  7. How to enable PowerTools Repository on Rocky Linux 8
  8. Install DNF plugins package
  9. Install EPEL
  10. Enable PowerTools repository on Rocky Linux 8
  11. Update command
  12. Check the Added repository on Rocky Linux
  13. ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist
  14. Best Answer
  15. Answers
  16. ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist
  17. Best Answer
  18. Answers
  19. How to Install OpenStack on CentOS 8 with Packstack
  20. Minimum System requirements for OpenStack
  21. Step 1) Set the hostname and update /etc/hosts file
  22. Step 2) Disable Network Manager and Configure Network using network-scripts
  23. Step 3) Enable OpenStack repositories and install packstack utility
  24. Step 4) Generate answer file and install openstack using packstack
  25. Step 5) Access Horizon Dashboard
  26. Step 6) Test and verify OpenStack installation by launching an instance
  27. 31 thoughts on “How to Install OpenStack on CentOS 8 with Packstack”

  1. How do I enable PowerTools repository?
  2. What is PowerTools repo?
  3. How do I install PowerTools?
  4. Is Remi repo safe?
  5. What is EPEL repository?

How To Enable CentOS 8 PowerTools Repo

  1. Log in to the server and switch to the root user.
  2. Edit the PowerTools repo file. # vim /etc/yum.repos.d/CentOS-PowerTools.repo. # vim /etc/yum.repos.d/CentOS-PowerTools.repo.
  3. Change enabled=0 to enabled=1.
  4. Save and close the file. :wq. :wq.
  5. The PowerTools repo is now enabled.

The PowerTools repository is not enabled by default on CentOS 8 / RHEL 8 Linux. This repository contains a number of packages required as dependencies when installing other applications, and mostly building applications from source code. Some of the Packages in PowerTools are: device-mapper-devel.

To get started, you need to head to PowerToys from GitHub and download and install the MSI setup file near the bottom of the page. Once you go through the basic install wizard, click the PowerToys logo in the notification area on the taskbar. That will open up the app and you can choose which ones you want to enable.

Is Remi repo safe?

The «remi-safe» repository is enabled by default, as it is really safe. Available packages in «remi» and others «remi-*» repositories override those in official repository.

What is EPEL repository?

The EPEL repository is an additional package repository that provides easy access to install packages for commonly used software. . To put it simply the goal of this repo was to provide greater ease of access to software on Enterprise Linux compatible distributions.

Источник

If you are using the EPEL repository then also enable PowerTools repo on Rocky Linux server or desktop to install developer-related software packages. The command given in this tutorial can also be used for CentOS8 and RHEL8.

What is PowerTools?

PowerTools is a repository that is available for RedHat and its derivative Linux to download and install developer-related packages, tools, and libraries. Also, many software packages available in EPEL repo sometimes require PowerTools repo to get installed properly. This repository mainly requires when you want to build some applications using their source code.

Here are some packages available to install using the PowerTools repo:

  • clucene-core-devel
  • zziplib-devel
  • xmlrpc-c-c++
  • xmltoman.noarch
  • boost -numpy
  • turbojpeg-devel
  • xz-lzma-compat
  • transfig.x86_64
  • tracker-miners
  • xcb-util-devel
  • xorg-x11-util-macros.noarch
  • xorg-x11-xkb-utils-devel
  • xmlsec1-openssl-devel
  • xmlsec1-gcrypt
  • And others…

Install DNF plugins package

Although it would already be installed on your Rocky system, however still run the below command to make sure it is there-

Install EPEL

If you are about to use PowerTools then I would recommend you to also enable EPEL because many time installing some software or building some package from its source code requires some dependencies that are available in EPEL, thus simply run-

Now, finally, get PowerTools on your Rocky Linux/CentOS/AlmaLinux/RHEL 8 using the below-given command-

Update command

To flush the system cache and let it recognize the newly added repo of PowerTools, run once the update command before installing any package.

Check the Added repository on Rocky Linux

Let’s check what are the Repos are on our Linux system to download various packages using the command line package manager Yum or DNF.

In the below screenshot you can see we have four key repositories on our Rocky Linux that are –

Источник

ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist

Hello,
I’m trying to setup my RHEL 8.5 VM machine.

NAME=»Red Hat Enterprise Linux VERSION=»8.5 (Ootpa)

When I run
./ready-for.sh —fix-missing —install LFD201

I’m getting error
No matching repo to modify: powertools.

I have checked several posts related to this issue, till I find post in Red Hat forum stating that «PowerTools is a CentOS repository. On RHEL 8 we have the CodeReady Builder repository».

This was the first error, the second error as well is

Some packages didn’t install: collectl

I’m not sure if it is related to the powertools or it is another error.

Appreciate your suggestion to resolve.

Best Answer

It’s a warning you can ignore. It was something from RHEL 7 that should have been fixed. Yes you should use the CodeReady Builder repo. I’ll tell the ready-for.sh maintainer this has not been fixed. «collectl» is in the EPEL repo which you should make sure to install as a bunch of stuff is in there. The ready-for.sh script should have installed that I believe but you can always get it manually

Answers

Seems also I’m having trouble with «collectl» in RHEL 8.5

when I run
yum —disablerepo=»*» —enablerepo=»epel» list available | grep collectl
It displays nothing

I have checked this link and seems doesn’t exist for version 8 while this link shows it exists in version 7

hmm. I just checked on my system which is a true RHEL 8 (not CentOS) and I found that I have installed the el7 package — it seems to work just fine. I did not bother to check the version before, just that dnf info showed it as EPEL. I don’t think you even need collectl for this course, it is in the list for other courses so it is being a little over ambitious. In other words you can install it but you are fine anyway

Thanks Dr. Jerry for instant & continuous help.

I have tried multiple things till it worked, just sharing my experience that might be useful to ready-for.sh maintainer.

This Linux family is important for me as it is used by my corporate and is most commonly used in my region.

I installed «Fedora 35 Workstation»: Script worked fine without an issue.

I installed «CentOS Stream 8 20220414»: As CentOS 8 got removed from all repositories by end of year 2021, It issued two errors for these packages:

I had Red Hat Enterprise Linux 8.5: I got the following two error:

texinfo is also a «Powertools» package on centos-8-stream; however in the LF VM it is turned off because red hat has done a sloppy job and when it is turned on it sometimes causes dependency screw ups. If you turn it on and just install texinfo it should work.

As far as RHEL 8 in general, RHEL 8 is hit or miss for ready-for.sh because we have almost no students using it in introductory courses at least, as it is not free (although you can get free subscriptions for personal use) and there are tools such as pkgs.org which we use which do not support it. So rather than turn off support, we just don’t maintain it well. This is the first case I can remember over a number of years of people raising issues about ready-for.sh and RHEL 8, so I’m sorry if it is a little frustrating.

You are actually very unlikely to need texinfo, and why it is a required dependency is something frankly I cannot remember. These package lists grow with time, and as distros change sometimes they get somewhat stale. Usually having more packages installed that you need doesn’t screw things up, but occasionally you get these kinds of irritations.

Источник

ready-for.sh doesn’t work on RHEL 8.5 as PowerTools doesn’t exist

Hello,
I’m trying to setup my RHEL 8.5 VM machine.

NAME=»Red Hat Enterprise Linux VERSION=»8.5 (Ootpa)

When I run
./ready-for.sh —fix-missing —install LFD201

I’m getting error
No matching repo to modify: powertools.

I have checked several posts related to this issue, till I find post in Red Hat forum stating that «PowerTools is a CentOS repository. On RHEL 8 we have the CodeReady Builder repository».

This was the first error, the second error as well is

Some packages didn’t install: collectl

I’m not sure if it is related to the powertools or it is another error.

Appreciate your suggestion to resolve.

Best Answer

It’s a warning you can ignore. It was something from RHEL 7 that should have been fixed. Yes you should use the CodeReady Builder repo. I’ll tell the ready-for.sh maintainer this has not been fixed. «collectl» is in the EPEL repo which you should make sure to install as a bunch of stuff is in there. The ready-for.sh script should have installed that I believe but you can always get it manually

Answers

Seems also I’m having trouble with «collectl» in RHEL 8.5

when I run
yum —disablerepo=»*» —enablerepo=»epel» list available | grep collectl
It displays nothing

I have checked this link and seems doesn’t exist for version 8 while this link shows it exists in version 7

hmm. I just checked on my system which is a true RHEL 8 (not CentOS) and I found that I have installed the el7 package — it seems to work just fine. I did not bother to check the version before, just that dnf info showed it as EPEL. I don’t think you even need collectl for this course, it is in the list for other courses so it is being a little over ambitious. In other words you can install it but you are fine anyway

Thanks Dr. Jerry for instant & continuous help.

I have tried multiple things till it worked, just sharing my experience that might be useful to ready-for.sh maintainer.

This Linux family is important for me as it is used by my corporate and is most commonly used in my region.

I installed «Fedora 35 Workstation»: Script worked fine without an issue.

I installed «CentOS Stream 8 20220414»: As CentOS 8 got removed from all repositories by end of year 2021, It issued two errors for these packages:

I had Red Hat Enterprise Linux 8.5: I got the following two error:

texinfo is also a «Powertools» package on centos-8-stream; however in the LF VM it is turned off because red hat has done a sloppy job and when it is turned on it sometimes causes dependency screw ups. If you turn it on and just install texinfo it should work.

As far as RHEL 8 in general, RHEL 8 is hit or miss for ready-for.sh because we have almost no students using it in introductory courses at least, as it is not free (although you can get free subscriptions for personal use) and there are tools such as pkgs.org which we use which do not support it. So rather than turn off support, we just don’t maintain it well. This is the first case I can remember over a number of years of people raising issues about ready-for.sh and RHEL 8, so I’m sorry if it is a little frustrating.

You are actually very unlikely to need texinfo, and why it is a required dependency is something frankly I cannot remember. These package lists grow with time, and as distros change sometimes they get somewhat stale. Usually having more packages installed that you need doesn’t screw things up, but occasionally you get these kinds of irritations.

Источник

How to Install OpenStack on CentOS 8 with Packstack

Openstack is a free and open-source private cloud software through which we can manage compute, network and storage resources of our data center with an ease using a single dashboard and via openstack cli commands. In this article we will demonstrate on how to install Openstack on a CentOS 8 system with packstack. Packstack is a command line utility which deploy different components of openstack using puppet modules.

Openstack deployment with packstack is generally used for POC (proof of concept) purpose, so it is not recommended to use packstack for production deployment. Use TripleO method to deploy openstack in production environment.

Minimum System requirements for OpenStack

  • Minimal CentOS 8
  • Dual core Processor
  • 8 GB RAM
  • 40 GB free disk space
  • Stable Internet Connection
  • At least one nic card

My Lab setup details:

  • Hostname – openstack.example.com
  • IP – 192.168.1.8
  • Flat Network – 192.168.1.0/24

Let’s deep dive into the openstack installation steps,

Step 1) Set the hostname and update /etc/hosts file

Open the terminal and set the hostname using the following hostnamectl command,

Run below echo command to append hostname entry in /etc/hosts file.

Step 2) Disable Network Manager and Configure Network using network-scripts

Network-Manager is the default tool in CentOS 8 to manager networks but for Openstack we must disable it because openstack networking will not work properly with network-manager. In place of network manager, we must install native network-scripts.

To disable network-manager run the following commands,

Run following dnf command to install native network-scripts

Once the network-scripts package is installed then we can manage networking (ifcfg-* files) using native network.service

Now let’s configure IP address in ifcfg-enp0s3 file and start network service

Save and exit the file and then start network service using following command,

Now verify whether IP is assigned to NIC (enp0s3) using ip command,

Step 3) Enable OpenStack repositories and install packstack utility

At time of writing this article, ussuri openstack was available, so run the following command to configure its repositories

Now installed all the available updates and reboot your system,

Once the system is available after the reboot, execute following dnf command to install packstack utility

Step 4) Generate answer file and install openstack using packstack

Use packstack command to generate the answer file,

Once the answer file is generated, edit the following parameters using vi editor,

Save and exit the file.

Replace the interface name (enp0s3) as per your setup.

Note: Default Tenant network type drive is set as “geneve” and default neutron type driver is set as “geneve and flat”. If wish to change these default parameters, then update following lines in answer file. In this demonstration i am not going to update these parameters.

Run the following command to initiate the openstack deployment using answer file.

Deployment will take around 20 to 30 minutes depending on your system’s hardware and internet speed. Once it is installed successfully, we will get the following:

Now verify whether IP from enp03 interface is assigned to bridge br-ex and also confirm whether interface enp0s3 is added as a port in ovs-bridge.

Run the following commands:

Perfect, above output confirms that installation was successful, and networking is also configured as per the answer file.

Step 5) Access Horizon Dashboard

Now try to login to Horizon dashboard. URL is already specified in the above output, in my case url is http://192.168.1.8/dashboard , Use the user name as admin and password that we specify in answer file.

We also refer the file “ keystonerc_admin ” for credentials

Now, let’s test this openstack deployment by launching an instance.

Step 6) Test and verify OpenStack installation by launching an instance

Before launching an instance in openstack, first we must create networks and router and glance image. So, let’s first create external network in admin tenant using following neutron commands,

Now add a subnet of your flat network to external network by running following neutron command.

Create a router by executing the following neutron command and set its gateway using external network

Create private network and attach a subnet to it. Run the following neutron command,

Add pvt_net interface to router “ dev_router ” using beneath neutron command,

Now Download Cirros image and then upload it to glance

Now head back to horizon dashboard and verify the network topology

Perfect, above confirms that private and external network have been setup correctly along with the router.

One final step before creating a vm, update the default security group, add icmp and ssh ingress rules, click on “Security Groups” under the network Tab, Click on Manage Rules and then click on “Add rule

Similarly add rule for ssh

Now all the requirements for launching an openstack instance are fullfilled. Click on Compute Tab and then Choose Instances option and click on “Launch Instance

Once VM is launched successfully then we will get something like below,

Now Associate floating IP to instance (demo_vm), Under the “Actions” Tab, Choose “Associate Floating IP

Now Choose IP or Click on + sign to get floating IP from external network and then associate it

Once IP is associated to the VM then floating IP will be displayed for under ‘ IP Address ‘ option, example is shown below

Now try to access this demo_vm using the floating ip, use cirros as a user and ‘ gocubsgo ’ as password

Great, above output confirms that we can access our instance via floating ip. This concludes the article; I hope this tutorial helps to deploy openstack on CentOS 8 system. Please don’t hesitate to share your feedback and comments.

31 thoughts on “How to Install OpenStack on CentOS 8 with Packstack”

when issuing command “dnf config-manager –enable PowerTools” it throws an error “No such command: config-manager. Please use /usr/bin/dnf –help

]# dnf config-manager –enable PowerTools
No such command: config-manager. Please use /usr/bin/dnf –help
It could be a DNF plugin command, try: “dnf install ‘dnf-command(config-manager)’”
[[email protected]

Run the following dnf command to fix the above said issue:

$ sudo dnf install ‘dnf-command(config-manager)’

try with powertools instead of “PowerTools”

[[email protected] network-scripts]# dnf config-manager –enable PowerTools
Error: No matching repo to modify: PowerTools.
[[email protected] network-scripts]# dnf config-manager –enable powertools
[[email protected] network-scripts]# dnf install -y centos-release-openstack-victoria
CentOS Linux 8 – PowerTools 5.8 MB/s | 2.0 MB 00:00
Dependencies resolved.

In case you have latest and updated CentOS stream then use below command

# dnf config-manager –set-enabled powertools

Hi Sir,
I get an issue below :

ERROR : Failed to run remote script, stdout: skipping creation of hiera.yaml symlink

stderr: Warning: Permanently added ‘10.10.69.100’ (ECDSA) to the list of known hosts.
+ trap t ERR
+ [[ -f /etc/hiera.yaml ]]
+ echo ‘skipping creation of hiera.yaml symlink’
++ puppet config print hiera_config
+ sed -i ‘s;:datadir:.*;:datadir: /var/tmp/packstack/d7eabbcf57df47b6b283fc89caeb47be/hieradata;g’ /etc/puppet/hiera.yaml
sed: can’t read /etc/puppet/hiera.yaml: No such file or directory
++ t
++ exit 2

How to solve it?

Hi Sir,
I was able to access this demo_vm using cirros as user with floating IP.
But from demo_vm, the following fails.
$ ping 8.8.8.8
How to solve it?

Add the DNS Sever IP while creating the external network subnet.

Thank you
I added a DNS server to the external network subnet, but it doesn’t work.
Other conditions are as follows.
Ping from demo_vm
to: FloatingIP -> Success
to: GestOS IP -> Success
(Use VirtualBox and bridge connection)
to: Host Default GW IP -> Failure
How to solve it?

I’m sorry.
In another VirtualBox environment, ping 8.8.8.8 was successful.

@Manusia:
I had the same error and now i found the issue
There is a problem with epel and the hiera package (hiera-3.6.0-2.el8)
The centos-openstack-ussuri repo provides hiera-3.6.0-1.el8

A look at the filelist in rpm shows that hiera-3.6.0-2.el8 didn’t include:
/etc/puppet
/etc/puppet/hiera.yaml

So remove hiera, disable epel and reinstall openstack-packstack:
dnf remove hiera -y
dnf config-manager –disable epel
dnf install -y openstack-packstack

when i uninstall hiera, i cannot reinstall packtack. I’m on the openstack-victoria. Can you help me with this problem?

First of all, this is a great reference document for Openstack installation on CentOS. I followed every step in the document and was successful. However, ran into some issue during last few steps.

Can you please help me with some trigger or suggestion to solve this issue? Thanks a lot in advance.

Copying Puppet modules and manifests [ DONE ]
Applying 192.168.0.3_controller.pp
192.168.0.3_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.0.3_controller.pp
Error: Facter: error while resolving custom fact “rabbitmq_nodename”: undefined method `[]’ for nil:NilClass
You will find full trace in log /var/tmp/packstack/20200723-225316-7yvkznxa/manifests/192.168.0.3_controller.pp.log
Please check log file /var/tmp/packstack/20200723-225316-7yvkznxa/openstack-setup.log for more information
Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.0.3. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.0.3/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
[[email protected]

Please check controller.pp.log and openstack-setup.log, You might get the clue there. I would suggest give a try one more time.

Thanks a lot for helping me for previous query. Earlier problem fixed, now I am able to create VM instance successfully, but I can’t connect from Virtual box machine (CentOS machine) and outside network.

Furthermore, there are no route 172.24.1.0/24 on my Virtual box machine (CentOS machine).

Is Virtual box IP address and External Network should be on same subnet? I tried that and that still not worked.

It seems Neutron not properly configured.

Please suggest me how to fix this (Using same commands provided in the document).

Virtual box IP address: 192.168.0.104 (Subnet = 192.168.0.0/24)
Private Network: 10.20.1.0/24
External Network: 172.24.1.0/24

================
CLI Commands:
================
source keystonerc_admin
neutron net-create external_network –provider:network_type flat –provider:physical_network extnet –router:external
neutron subnet-create –name public_subnet –enable_dhcp=True –allocation-pool=start=172.24.1.210,end=172.24.1.230 –gateway=172.24.1.1 external_network 172.24.1.0/24
neutron router-create dev-router
neutron router-gateway-set dev-router external_network
neutron net-create pvt_net
neutron subnet-create –name pvt_subnet pvt_net 10.20.1.0/24
neutron router-interface-add dev-router pvt_subnet

(keystone_admin)]# ifconfig -a
br-ex: flags=4163 mtu 1500
inet 192.168.0.104 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 33024 bytes 27440713 (26.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29794 bytes 17763062 (16.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

br-int: flags=4098 mtu 1500
ether 86:09:c0:60:00:4e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099 mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:49:2d:fa:d2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp0s3: flags=4163 mtu 1500
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 38913 bytes 28292425 (26.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 38573 bytes 21086877 (20.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2708229 bytes 2168061258 (2.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2708229 bytes 2168061258 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ovs-system: flags=4098 mtu 1500
ether 22:df:63:8b:31:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

(keystone_admin)]# ip route show
default via 192.168.0.1 dev br-ex
169.254.0.0/16 dev enp0s3 scope link metric 1002
169.254.0.0/16 dev br-ex scope link metric 1004
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.0.0/24 dev br-ex proto kernel scope link src 192.168.0.104
[[email protected]

Источник

Hello @yydsleo,
Please note that CentOS 8 is EOL.
The natural candidates to replace it (in the same functional manner) are RockyLinux and AlmaLinux. OracleLinux also can help, but more as a runtime platform (we experienced some build problems with it).
So currently please use Oracle Linux 8 (e.g. make docker OSNICK=ol8).
We’ll be moving into RockyLinux as our RHEL8-compatible build platform pretty soon.
As for CentOS 8, it can still be made functional by using repos from CloudFlare (you can use deps/readies/bin/getupdates to enable that on a CentOS 8 machine), or by using Docker images from quay.io/centos/centos:stream8 (the latter, however, is a stream-based CentOS 8, which is not the same as the traditional model, therefore not exactly binary compatible with RHEL8).

CentOS

The Community ENTerprise Operating System

centOS 9, X Windows System

centOS 9, X Windows System

Post by wondergrandma » 2022/02/27 14:55:56

Re: centOS 9, X Windows System

Post by TrevorH » 2022/02/27 16:27:05

Re: centOS 9, X Windows System

Post by toracat » 2022/02/27 18:47:07

Re: centOS 9, X Windows System

Post by wondergrandma » 2022/02/28 10:10:33

Hi, it’s not in the grouplist. What i have in grouplist is «KDE Plasma Worspaces», but i have problems installing it too. I was googling for solution all tutorials said that i need to enable epel and powertools.

Installing epel worked fine, problem was when i tried to enable powertools. Can you help me to reslove it ?

For powertools I tried:

Re: centOS 9, X Windows System

Post by TrevorH » 2022/02/28 11:11:35

Re: centOS 9, X Windows System

Post by jlehtone » 2022/02/28 14:47:52

Источник

How to enable PowerTools Repository on Rocky Linux 8

If you are using the EPEL repository then also enable PowerTools repo on Rocky Linux server or desktop to install developer-related software packages. The command given in this tutorial can also be used for CentOS8 and RHEL8.

What is PowerTools?

PowerTools is a repository that is available for RedHat and its derivative Linux to download and install developer-related packages, tools, and libraries. Also, many software packages available in EPEL repo sometimes require PowerTools repo to get installed properly. This repository mainly requires when you want to build some applications using their source code.

Here are some packages available to install using the PowerTools repo:

  • clucene-core-devel
  • zziplib-devel
  • xmlrpc-c-c++
  • xmltoman.noarch
  • boost -numpy
  • turbojpeg-devel
  • xz-lzma-compat
  • transfig.x86_64
  • tracker-miners
  • xcb-util-devel
  • xorg-x11-util-macros.noarch
  • xorg-x11-xkb-utils-devel
  • xmlsec1-openssl-devel
  • xmlsec1-gcrypt
  • And others…

Install DNF plugins package

Although it would already be installed on your Rocky system, however still run the below command to make sure it is there-

Install EPEL

If you are about to use PowerTools then I would recommend you to also enable EPEL because many time installing some software or building some package from its source code requires some dependencies that are available in EPEL, thus simply run-

Enable PowerTools repository on Rocky Linux 8

Now, finally, get PowerTools on your Rocky Linux/CentOS/AlmaLinux/RHEL 8 using the below-given command-

Update command

To flush the system cache and let it recognize the newly added repo of PowerTools, run once the update command before installing any package.

Check the Added repository on Rocky Linux

Let’s check what are the Repos are on our Linux system to download various packages using the command line package manager Yum or DNF.

In the below screenshot you can see we have four key repositories on our Rocky Linux that are –

Источник

Решил поставить mate на OL8 по иструкции надо выполнить комунду dnf config-manager –enable PowerTools но у меня выводит ошибку Ошибка: Нет подходящего репозитория для изменения: PowerTools. Я подумал что надо поставить другой EPEL рупозиторий, устанавливал по разному но ничего не вышло. идентификатор репозитория имя репозитория состояние epel Extra Packages for Enterprise Linux 8 — x86_ 5 267 ol8_UEKR6 Latest Unbreakable Enterprise Kernel Release 83 ol8_addons Oracle Linux 8 Addons (x86_64) 31 ol8_appstream Oracle Linux 8 Application Stream (x86_64) 11 657 ol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64) 4 764 ol8_u1_baseos_base Oracle Linux 8.1 BaseOS (x86_64) 1 829 Помогите)

Идентификатор репозитария CodeReady Builder для OL8 вроде должен быть «codeready_builder». «PowerTools» — это название аналогичного репозитария для CentOS 8.

Я подключил codeready_builder. Не могу найти как установить «PowerTools» в гугле они просто ставят enable=1 У меня его нету в репозиториях, команда yum search PowerTools выдает что такого нету.

codeready_builder это PowerTools для OL8:
— Для RHEL 8 — «codeready-builder-for-rhel-8-x86_64-rpms».
— Для CentOS 8 — «PowerTools».
— Для Oracle Linux 8 — «codeready_builder».

Все 3 репозитария одни и те же; первый — оригинальный, а остальные — просто пересборка его же.

Источник

How to Install OpenStack on CentOS 8 with Packstack

Openstack is a free and open-source private cloud software through which we can manage compute, network and storage resources of our data center with an ease using a single dashboard and via openstack cli commands. In this article we will demonstrate on how to install Openstack on a CentOS 8 system with packstack. Packstack is a command line utility which deploy different components of openstack using puppet modules.

Openstack deployment with packstack is generally used for POC (proof of concept) purpose, so it is not recommended to use packstack for production deployment. Use TripleO method to deploy openstack in production environment.

Minimum System requirements for OpenStack

  • Minimal CentOS 8
  • Dual core Processor
  • 8 GB RAM
  • 40 GB free disk space
  • Stable Internet Connection
  • At least one nic card

My Lab setup details:

  • Hostname – openstack.example.com
  • IP – 192.168.1.8
  • Flat Network – 192.168.1.0/24

Let’s deep dive into the openstack installation steps,

Step 1) Set the hostname and update /etc/hosts file

Open the terminal and set the hostname using the following hostnamectl command,

Run below echo command to append hostname entry in /etc/hosts file.

Step 2) Disable Network Manager and Configure Network using network-scripts

Network-Manager is the default tool in CentOS 8 to manager networks but for Openstack we must disable it because openstack networking will not work properly with network-manager. In place of network manager, we must install native network-scripts.

To disable network-manager run the following commands,

Run following dnf command to install native network-scripts

Once the network-scripts package is installed then we can manage networking (ifcfg-* files) using native network.service

Now let’s configure IP address in ifcfg-enp0s3 file and start network service

Save and exit the file and then start network service using following command,

Now verify whether IP is assigned to NIC (enp0s3) using ip command,

Step 3) Enable OpenStack repositories and install packstack utility

At time of writing this article, ussuri openstack was available, so run the following command to configure its repositories

Now installed all the available updates and reboot your system,

Once the system is available after the reboot, execute following dnf command to install packstack utility

Step 4) Generate answer file and install openstack using packstack

Use packstack command to generate the answer file,

Once the answer file is generated, edit the following parameters using vi editor,

Save and exit the file.

Replace the interface name (enp0s3) as per your setup.

Note: Default Tenant network type drive is set as “geneve” and default neutron type driver is set as “geneve and flat”. If wish to change these default parameters, then update following lines in answer file. In this demonstration i am not going to update these parameters.

Run the following command to initiate the openstack deployment using answer file.

Deployment will take around 20 to 30 minutes depending on your system’s hardware and internet speed. Once it is installed successfully, we will get the following:

Now verify whether IP from enp03 interface is assigned to bridge br-ex and also confirm whether interface enp0s3 is added as a port in ovs-bridge.

Run the following commands:

Perfect, above output confirms that installation was successful, and networking is also configured as per the answer file.

Step 5) Access Horizon Dashboard

Now try to login to Horizon dashboard. URL is already specified in the above output, in my case url is http://192.168.1.8/dashboard , Use the user name as admin and password that we specify in answer file.

We also refer the file “ keystonerc_admin ” for credentials

Now, let’s test this openstack deployment by launching an instance.

Step 6) Test and verify OpenStack installation by launching an instance

Before launching an instance in openstack, first we must create networks and router and glance image. So, let’s first create external network in admin tenant using following neutron commands,

Now add a subnet of your flat network to external network by running following neutron command.

Create a router by executing the following neutron command and set its gateway using external network

Create private network and attach a subnet to it. Run the following neutron command,

Add pvt_net interface to router “ dev_router ” using beneath neutron command,

Now Download Cirros image and then upload it to glance

Now head back to horizon dashboard and verify the network topology

Perfect, above confirms that private and external network have been setup correctly along with the router.

One final step before creating a vm, update the default security group, add icmp and ssh ingress rules, click on “Security Groups” under the network Tab, Click on Manage Rules and then click on “Add rule

Similarly add rule for ssh

Now all the requirements for launching an openstack instance are fullfilled. Click on Compute Tab and then Choose Instances option and click on “Launch Instance

Once VM is launched successfully then we will get something like below,

Now Associate floating IP to instance (demo_vm), Under the “Actions” Tab, Choose “Associate Floating IP

Now Choose IP or Click on + sign to get floating IP from external network and then associate it

Once IP is associated to the VM then floating IP will be displayed for under ‘ IP Address ‘ option, example is shown below

Now try to access this demo_vm using the floating ip, use cirros as a user and ‘ gocubsgo ’ as password

Great, above output confirms that we can access our instance via floating ip. This concludes the article; I hope this tutorial helps to deploy openstack on CentOS 8 system. Please don’t hesitate to share your feedback and comments.

31 thoughts on “How to Install OpenStack on CentOS 8 with Packstack”

when issuing command “dnf config-manager –enable PowerTools” it throws an error “No such command: config-manager. Please use /usr/bin/dnf –help

]# dnf config-manager –enable PowerTools
No such command: config-manager. Please use /usr/bin/dnf –help
It could be a DNF plugin command, try: “dnf install ‘dnf-command(config-manager)’”
[[email protected]

Run the following dnf command to fix the above said issue:

$ sudo dnf install ‘dnf-command(config-manager)’

try with powertools instead of “PowerTools”

[[email protected] network-scripts]# dnf config-manager –enable PowerTools
Error: No matching repo to modify: PowerTools.
[[email protected] network-scripts]# dnf config-manager –enable powertools
[[email protected] network-scripts]# dnf install -y centos-release-openstack-victoria
CentOS Linux 8 – PowerTools 5.8 MB/s | 2.0 MB 00:00
Dependencies resolved.

In case you have latest and updated CentOS stream then use below command

# dnf config-manager –set-enabled powertools

Hi Sir,
I get an issue below :

ERROR : Failed to run remote script, stdout: skipping creation of hiera.yaml symlink

stderr: Warning: Permanently added ‘10.10.69.100’ (ECDSA) to the list of known hosts.
+ trap t ERR
+ [[ -f /etc/hiera.yaml ]]
+ echo ‘skipping creation of hiera.yaml symlink’
++ puppet config print hiera_config
+ sed -i ‘s;:datadir:.*;:datadir: /var/tmp/packstack/d7eabbcf57df47b6b283fc89caeb47be/hieradata;g’ /etc/puppet/hiera.yaml
sed: can’t read /etc/puppet/hiera.yaml: No such file or directory
++ t
++ exit 2

How to solve it?

Hi Sir,
I was able to access this demo_vm using cirros as user with floating IP.
But from demo_vm, the following fails.
$ ping 8.8.8.8
How to solve it?

Add the DNS Sever IP while creating the external network subnet.

Thank you
I added a DNS server to the external network subnet, but it doesn’t work.
Other conditions are as follows.
Ping from demo_vm
to: FloatingIP -> Success
to: GestOS IP -> Success
(Use VirtualBox and bridge connection)
to: Host Default GW IP -> Failure
How to solve it?

I’m sorry.
In another VirtualBox environment, ping 8.8.8.8 was successful.

@Manusia:
I had the same error and now i found the issue
There is a problem with epel and the hiera package (hiera-3.6.0-2.el8)
The centos-openstack-ussuri repo provides hiera-3.6.0-1.el8

A look at the filelist in rpm shows that hiera-3.6.0-2.el8 didn’t include:
/etc/puppet
/etc/puppet/hiera.yaml

So remove hiera, disable epel and reinstall openstack-packstack:
dnf remove hiera -y
dnf config-manager –disable epel
dnf install -y openstack-packstack

when i uninstall hiera, i cannot reinstall packtack. I’m on the openstack-victoria. Can you help me with this problem?

First of all, this is a great reference document for Openstack installation on CentOS. I followed every step in the document and was successful. However, ran into some issue during last few steps.

Can you please help me with some trigger or suggestion to solve this issue? Thanks a lot in advance.

Copying Puppet modules and manifests [ DONE ]
Applying 192.168.0.3_controller.pp
192.168.0.3_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.0.3_controller.pp
Error: Facter: error while resolving custom fact “rabbitmq_nodename”: undefined method `[]’ for nil:NilClass
You will find full trace in log /var/tmp/packstack/20200723-225316-7yvkznxa/manifests/192.168.0.3_controller.pp.log
Please check log file /var/tmp/packstack/20200723-225316-7yvkznxa/openstack-setup.log for more information
Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.0.3. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.0.3/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
[[email protected]

Please check controller.pp.log and openstack-setup.log, You might get the clue there. I would suggest give a try one more time.

Thanks a lot for helping me for previous query. Earlier problem fixed, now I am able to create VM instance successfully, but I can’t connect from Virtual box machine (CentOS machine) and outside network.

Furthermore, there are no route 172.24.1.0/24 on my Virtual box machine (CentOS machine).

Is Virtual box IP address and External Network should be on same subnet? I tried that and that still not worked.

It seems Neutron not properly configured.

Please suggest me how to fix this (Using same commands provided in the document).

Virtual box IP address: 192.168.0.104 (Subnet = 192.168.0.0/24)
Private Network: 10.20.1.0/24
External Network: 172.24.1.0/24

================
CLI Commands:
================
source keystonerc_admin
neutron net-create external_network –provider:network_type flat –provider:physical_network extnet –router:external
neutron subnet-create –name public_subnet –enable_dhcp=True –allocation-pool=start=172.24.1.210,end=172.24.1.230 –gateway=172.24.1.1 external_network 172.24.1.0/24
neutron router-create dev-router
neutron router-gateway-set dev-router external_network
neutron net-create pvt_net
neutron subnet-create –name pvt_subnet pvt_net 10.20.1.0/24
neutron router-interface-add dev-router pvt_subnet

(keystone_admin)]# ifconfig -a
br-ex: flags=4163 mtu 1500
inet 192.168.0.104 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 33024 bytes 27440713 (26.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29794 bytes 17763062 (16.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

br-int: flags=4098 mtu 1500
ether 86:09:c0:60:00:4e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099 mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:49:2d:fa:d2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp0s3: flags=4163 mtu 1500
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 38913 bytes 28292425 (26.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 38573 bytes 21086877 (20.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2708229 bytes 2168061258 (2.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2708229 bytes 2168061258 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ovs-system: flags=4098 mtu 1500
ether 22:df:63:8b:31:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

(keystone_admin)]# ip route show
default via 192.168.0.1 dev br-ex
169.254.0.0/16 dev enp0s3 scope link metric 1002
169.254.0.0/16 dev br-ex scope link metric 1004
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.0.0/24 dev br-ex proto kernel scope link src 192.168.0.104
[[email protected]

Источник

$ vagrant --version

$ vagrant plugin list

vagrant-sshfs (1.3.5, global)
vagrant-vbguest (0.26.0, global)
  - Version Constraint: 0.26.0

How to reproduce

Given this packer_template repo you can add the following new packer template to create a CentOS 8 Stream image. I was able to successfully create the CentOS 8 stream image.

$ cat ../centos/centos-8-stream-x86_64.json
{
  "builders": [
    {
      "boot_command": [
        "<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
      ],
      "boot_wait": "10s",
      "cpus": "{{ user `cpus` }}",
      "disk_size": "{{user `disk_size`}}",
      "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
      "guest_additions_url": "{{ user `guest_additions_url` }}",
      "guest_os_type": "RedHat_64",
      "hard_drive_interface": "sata",
      "hard_drive_nonrotational": true,
      "headless": "{{ user `headless` }}",
      "http_directory": "{{user `http_directory`}}",
      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_url": "{{user `iso_url`}}",
      "memory": "{{ user `memory` }}",
      "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-virtualbox",
      "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
      "ssh_password": "vagrant",
      "ssh_port": 22,
      "ssh_timeout": "10000s",
      "ssh_username": "vagrant",
      "type": "virtualbox-iso",
      "virtualbox_version_file": ".vbox_version",
      "vm_name": "{{ user `template` }}",
      "vrdp_bind_address": "0.0.0.0"
    },
    {
      "boot_command": [
        "<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
      ],
      "boot_wait": "10s",
      "cpus": "{{ user `cpus` }}",
      "disk_size": "{{user `disk_size`}}",
      "guest_os_type": "centos-64",
      "headless": "{{ user `headless` }}",
      "http_directory": "{{user `http_directory`}}",
      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_url": "{{user `iso_url`}}",
      "memory": "{{ user `memory` }}",
      "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-vmware",
      "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
      "ssh_password": "vagrant",
      "ssh_port": 22,
      "ssh_timeout": "10000s",
      "ssh_username": "vagrant",
      "tools_upload_flavor": "linux",
      "type": "vmware-iso",
      "vm_name": "{{ user `template` }}",
      "vmx_data": {
        "cpuid.coresPerSocket": "1"
      },
      "vmx_remove_ethernet_interfaces": true
    },
    {
      "boot_command": [
        "<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
      ],
      "boot_wait": "10s",
      "cpus": "{{ user `cpus` }}",
      "disk_size": "{{user `disk_size`}}",
      "guest_os_type": "centos",
      "http_directory": "{{user `http_directory`}}",
      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_url": "{{user `iso_url`}}",
      "memory": "{{ user `memory` }}",
      "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-parallels",
      "parallels_tools_flavor": "lin",
      "prlctl_version_file": ".prlctl_version",
      "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
      "ssh_password": "vagrant",
      "ssh_port": 22,
      "ssh_timeout": "10000s",
      "ssh_username": "vagrant",
      "type": "parallels-iso",
      "vm_name": "{{ user `template` }}"
    },
    {
      "boot_command": [
        "<wait5><tab> text ks=hd:fd0:/ks.cfg<enter><wait5><esc>"
      ],
      "boot_wait": "10s",
      "cpus": "{{ user `cpus` }}",
      "disk_size": "{{user `disk_size`}}",
      "floppy_files": [
        "{{user `http_directory`}}/{{user `ks_path`}}"
      ],
      "generation": "{{user `hyperv_generation`}}",
      "guest_additions_mode": "disable",
      "http_directory": "{{user `http_directory`}}",
      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_url": "{{user `iso_url`}}",
      "memory": "{{ user `memory` }}",
      "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-hyperv",
      "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
      "ssh_password": "vagrant",
      "ssh_port": 22,
      "ssh_timeout": "10000s",
      "ssh_username": "vagrant",
      "switch_name": "{{ user `hyperv_switch`}}",
      "type": "hyperv-iso",
      "vm_name": "{{ user `template` }}"
    },
    {
      "boot_command": [
        "<up><wait><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
      ],
      "boot_wait": "10s",
      "cpus": "{{ user `cpus` }}",
      "disk_size": "{{user `disk_size`}}",
      "headless": "{{ user `headless` }}",
      "http_directory": "{{user `http_directory`}}",
      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_url": "{{user `iso_url`}}",
      "memory": "{{ user `memory` }}",
      "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-qemu",
      "shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
      "ssh_password": "vagrant",
      "ssh_port": 22,
      "ssh_timeout": "10000s",
      "ssh_username": "vagrant",
      "type": "qemu",
      "vm_name": "{{ user `template` }}"
    }
  ],
  "post-processors": [
    {
      "output": "{{ user `build_directory` }}/{{user `box_basename`}}.{{.Provider}}.box",
      "type": "vagrant"
    }
  ],
  "provisioners": [
    {
      "environment_vars": [
        "HOME_DIR=/home/vagrant",
        "http_proxy={{user `http_proxy`}}",
        "https_proxy={{user `https_proxy`}}",
        "no_proxy={{user `no_proxy`}}"
      ],
      "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
      "expect_disconnect": true,
      "scripts": [
        "{{template_dir}}/scripts/update.sh",
        "{{template_dir}}/../_common/sshd.sh",
        "{{template_dir}}/scripts/networking.sh",
        "{{template_dir}}/../_common/vagrant.sh",
        "{{template_dir}}/../_common/virtualbox.sh",
        "{{template_dir}}/../_common/vmware.sh",
        "{{template_dir}}/../_common/parallels.sh",
        "{{template_dir}}/scripts/cleanup.sh",
        "{{template_dir}}/../_common/minimize.sh"
      ],
      "type": "shell"
    }
  ],
  "variables": {
    "box_basename": "centos-8-stream",
    "build_directory": "../builds",
    "build_timestamp": "{{isotime "2019102650405"}}",
    "cpus": "1",
    "disk_size": "65536",
    "git_revision": "__unknown_git_revision__",
    "guest_additions_url": "",
    "headless": "",
    "http_directory": "{{template_dir}}/http",
    "http_proxy": "{{env `http_proxy`}}",
    "https_proxy": "{{env `https_proxy`}}",
    "hyperv_generation": "1",
    "hyperv_switch": "{{env `hyperv_switch`}}",
    "iso_checksum": "9f4dcb3ce4c1673c43e8f00fc807adc90d0eda464048c82bd8a84ce3235a2008",
    "iso_checksum_type": "sha256",
    "iso_url": "http://centos.den.host-engine.com/8-stream/isos/x86_64/CentOS-Stream-8-x86_64-20201211-dvd1.iso",
    "ks_path": "8/ks.cfg",
    "memory": "1024",
    "name": "centos-8-stream",
    "no_proxy": "{{env `no_proxy`}}",
    "template": "centos-8-stream-x86_64",
    "version": "TIMESTAMP"
  }
}

Once the image is created, I add the box to Vagrant, then attempt to fire up the new Vagrant box and I get the following screen shot.

$ vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos/8stream'...
Progress: 30%^R
Progress: 50%^R
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: builds_default_1608098746040_2930
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions seems to be installed (6.1.16) correctly, but not running.
Redirecting to /bin/systemctl start vboxadd.service
Redirecting to /bin/systemctl start vboxadd-service.service
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel
4.18.0-257.el8.x86_64. Please install them and execute
  /sbin/rcvboxadd setup
ValueError: File context for /opt/VBoxGuestAdditions-6.1.16/other/mount.vboxsf already defined
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Restarting VM to apply changes...
==> default: Attempting graceful shutdown of VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default:
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Installing SSHFS client...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

yum -y install --enablerepo=PowerTools fuse-sshfs

Stdout from the command:



Stderr from the command:

Error: Unknown repo: 'PowerTools

cat /etc/os-release

NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

cat /etc/yum.repos.d/CentOS-Stream-PowerTools.repo

# CentOS-Stream-PowerTools.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client.  You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[powertools]
name=CentOS Stream $releasever - PowerTools
mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$stream/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

So the problem is on this version of CentOS 8 stream, it’s not PowerTools it is powertools. This seems to be a global wide spread issue as I’ve seen it both ways on various different CentOS 8 machines over the past few months. I’m not sure I know which way is the right way.

However, given that my system has it as powertools I feel like this plugin should be able to accommodate both or decide and document which is the right way and give the user a nice message to help them out or perhaps put a pre hook in to fix the file if it’s the lowercase version or the CamelCase version that is the problem.

CentOS

The Community ENTerprise Operating System

centOS 9, X Windows System

centOS 9, X Windows System

Post by wondergrandma » 2022/02/27 14:55:56

Re: centOS 9, X Windows System

Post by TrevorH » 2022/02/27 16:27:05

Re: centOS 9, X Windows System

Post by toracat » 2022/02/27 18:47:07

Re: centOS 9, X Windows System

Post by wondergrandma » 2022/02/28 10:10:33

Hi, it’s not in the grouplist. What i have in grouplist is «KDE Plasma Worspaces», but i have problems installing it too. I was googling for solution all tutorials said that i need to enable epel and powertools.

Installing epel worked fine, problem was when i tried to enable powertools. Can you help me to reslove it ?

For powertools I tried:

Re: centOS 9, X Windows System

Post by TrevorH » 2022/02/28 11:11:35

Re: centOS 9, X Windows System

Post by jlehtone » 2022/02/28 14:47:52

Источник

How to enable PowerTools Repository on Rocky Linux 8

If you are using the EPEL repository then also enable PowerTools repo on Rocky Linux server or desktop to install developer-related software packages. The command given in this tutorial can also be used for CentOS8 and RHEL8.

What is PowerTools?

PowerTools is a repository that is available for RedHat and its derivative Linux to download and install developer-related packages, tools, and libraries. Also, many software packages available in EPEL repo sometimes require PowerTools repo to get installed properly. This repository mainly requires when you want to build some applications using their source code.

Here are some packages available to install using the PowerTools repo:

  • clucene-core-devel
  • zziplib-devel
  • xmlrpc-c-c++
  • xmltoman.noarch
  • boost -numpy
  • turbojpeg-devel
  • xz-lzma-compat
  • transfig.x86_64
  • tracker-miners
  • xcb-util-devel
  • xorg-x11-util-macros.noarch
  • xorg-x11-xkb-utils-devel
  • xmlsec1-openssl-devel
  • xmlsec1-gcrypt
  • And others…

Install DNF plugins package

Although it would already be installed on your Rocky system, however still run the below command to make sure it is there-

Install EPEL

If you are about to use PowerTools then I would recommend you to also enable EPEL because many time installing some software or building some package from its source code requires some dependencies that are available in EPEL, thus simply run-

Enable PowerTools repository on Rocky Linux 8

Now, finally, get PowerTools on your Rocky Linux/CentOS/AlmaLinux/RHEL 8 using the below-given command-

Update command

To flush the system cache and let it recognize the newly added repo of PowerTools, run once the update command before installing any package.

Check the Added repository on Rocky Linux

Let’s check what are the Repos are on our Linux system to download various packages using the command line package manager Yum or DNF.

In the below screenshot you can see we have four key repositories on our Rocky Linux that are –

Источник

Решил поставить mate на OL8 по иструкции надо выполнить комунду dnf config-manager –enable PowerTools но у меня выводит ошибку Ошибка: Нет подходящего репозитория для изменения: PowerTools. Я подумал что надо поставить другой EPEL рупозиторий, устанавливал по разному но ничего не вышло. идентификатор репозитория имя репозитория состояние epel Extra Packages for Enterprise Linux 8 — x86_ 5 267 ol8_UEKR6 Latest Unbreakable Enterprise Kernel Release 83 ol8_addons Oracle Linux 8 Addons (x86_64) 31 ol8_appstream Oracle Linux 8 Application Stream (x86_64) 11 657 ol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64) 4 764 ol8_u1_baseos_base Oracle Linux 8.1 BaseOS (x86_64) 1 829 Помогите)

Идентификатор репозитария CodeReady Builder для OL8 вроде должен быть «codeready_builder». «PowerTools» — это название аналогичного репозитария для CentOS 8.

Я подключил codeready_builder. Не могу найти как установить «PowerTools» в гугле они просто ставят enable=1 У меня его нету в репозиториях, команда yum search PowerTools выдает что такого нету.

codeready_builder это PowerTools для OL8:
— Для RHEL 8 — «codeready-builder-for-rhel-8-x86_64-rpms».
— Для CentOS 8 — «PowerTools».
— Для Oracle Linux 8 — «codeready_builder».

Все 3 репозитария одни и те же; первый — оригинальный, а остальные — просто пересборка его же.

Источник

How to Install OpenStack on CentOS 8 with Packstack

Openstack is a free and open-source private cloud software through which we can manage compute, network and storage resources of our data center with an ease using a single dashboard and via openstack cli commands. In this article we will demonstrate on how to install Openstack on a CentOS 8 system with packstack. Packstack is a command line utility which deploy different components of openstack using puppet modules.

Openstack deployment with packstack is generally used for POC (proof of concept) purpose, so it is not recommended to use packstack for production deployment. Use TripleO method to deploy openstack in production environment.

Minimum System requirements for OpenStack

  • Minimal CentOS 8
  • Dual core Processor
  • 8 GB RAM
  • 40 GB free disk space
  • Stable Internet Connection
  • At least one nic card

My Lab setup details:

  • Hostname – openstack.example.com
  • IP – 192.168.1.8
  • Flat Network – 192.168.1.0/24

Let’s deep dive into the openstack installation steps,

Step 1) Set the hostname and update /etc/hosts file

Open the terminal and set the hostname using the following hostnamectl command,

Run below echo command to append hostname entry in /etc/hosts file.

Step 2) Disable Network Manager and Configure Network using network-scripts

Network-Manager is the default tool in CentOS 8 to manager networks but for Openstack we must disable it because openstack networking will not work properly with network-manager. In place of network manager, we must install native network-scripts.

To disable network-manager run the following commands,

Run following dnf command to install native network-scripts

Once the network-scripts package is installed then we can manage networking (ifcfg-* files) using native network.service

Now let’s configure IP address in ifcfg-enp0s3 file and start network service

Save and exit the file and then start network service using following command,

Now verify whether IP is assigned to NIC (enp0s3) using ip command,

Step 3) Enable OpenStack repositories and install packstack utility

At time of writing this article, ussuri openstack was available, so run the following command to configure its repositories

Now installed all the available updates and reboot your system,

Once the system is available after the reboot, execute following dnf command to install packstack utility

Step 4) Generate answer file and install openstack using packstack

Use packstack command to generate the answer file,

Once the answer file is generated, edit the following parameters using vi editor,

Save and exit the file.

Replace the interface name (enp0s3) as per your setup.

Note: Default Tenant network type drive is set as “geneve” and default neutron type driver is set as “geneve and flat”. If wish to change these default parameters, then update following lines in answer file. In this demonstration i am not going to update these parameters.

Run the following command to initiate the openstack deployment using answer file.

Deployment will take around 20 to 30 minutes depending on your system’s hardware and internet speed. Once it is installed successfully, we will get the following:

Now verify whether IP from enp03 interface is assigned to bridge br-ex and also confirm whether interface enp0s3 is added as a port in ovs-bridge.

Run the following commands:

Perfect, above output confirms that installation was successful, and networking is also configured as per the answer file.

Step 5) Access Horizon Dashboard

Now try to login to Horizon dashboard. URL is already specified in the above output, in my case url is http://192.168.1.8/dashboard , Use the user name as admin and password that we specify in answer file.

We also refer the file “ keystonerc_admin ” for credentials

Now, let’s test this openstack deployment by launching an instance.

Step 6) Test and verify OpenStack installation by launching an instance

Before launching an instance in openstack, first we must create networks and router and glance image. So, let’s first create external network in admin tenant using following neutron commands,

Now add a subnet of your flat network to external network by running following neutron command.

Create a router by executing the following neutron command and set its gateway using external network

Create private network and attach a subnet to it. Run the following neutron command,

Add pvt_net interface to router “ dev_router ” using beneath neutron command,

Now Download Cirros image and then upload it to glance

Now head back to horizon dashboard and verify the network topology

Perfect, above confirms that private and external network have been setup correctly along with the router.

One final step before creating a vm, update the default security group, add icmp and ssh ingress rules, click on “Security Groups” under the network Tab, Click on Manage Rules and then click on “Add rule

Similarly add rule for ssh

Now all the requirements for launching an openstack instance are fullfilled. Click on Compute Tab and then Choose Instances option and click on “Launch Instance

Once VM is launched successfully then we will get something like below,

Now Associate floating IP to instance (demo_vm), Under the “Actions” Tab, Choose “Associate Floating IP

Now Choose IP or Click on + sign to get floating IP from external network and then associate it

Once IP is associated to the VM then floating IP will be displayed for under ‘ IP Address ‘ option, example is shown below

Now try to access this demo_vm using the floating ip, use cirros as a user and ‘ gocubsgo ’ as password

Great, above output confirms that we can access our instance via floating ip. This concludes the article; I hope this tutorial helps to deploy openstack on CentOS 8 system. Please don’t hesitate to share your feedback and comments.

31 thoughts on “How to Install OpenStack on CentOS 8 with Packstack”

when issuing command “dnf config-manager –enable PowerTools” it throws an error “No such command: config-manager. Please use /usr/bin/dnf –help

]# dnf config-manager –enable PowerTools
No such command: config-manager. Please use /usr/bin/dnf –help
It could be a DNF plugin command, try: “dnf install ‘dnf-command(config-manager)’”
[[email protected]

Run the following dnf command to fix the above said issue:

$ sudo dnf install ‘dnf-command(config-manager)’

try with powertools instead of “PowerTools”

[[email protected] network-scripts]# dnf config-manager –enable PowerTools
Error: No matching repo to modify: PowerTools.
[[email protected] network-scripts]# dnf config-manager –enable powertools
[[email protected] network-scripts]# dnf install -y centos-release-openstack-victoria
CentOS Linux 8 – PowerTools 5.8 MB/s | 2.0 MB 00:00
Dependencies resolved.

In case you have latest and updated CentOS stream then use below command

# dnf config-manager –set-enabled powertools

Hi Sir,
I get an issue below :

ERROR : Failed to run remote script, stdout: skipping creation of hiera.yaml symlink

stderr: Warning: Permanently added ‘10.10.69.100’ (ECDSA) to the list of known hosts.
+ trap t ERR
+ [[ -f /etc/hiera.yaml ]]
+ echo ‘skipping creation of hiera.yaml symlink’
++ puppet config print hiera_config
+ sed -i ‘s;:datadir:.*;:datadir: /var/tmp/packstack/d7eabbcf57df47b6b283fc89caeb47be/hieradata;g’ /etc/puppet/hiera.yaml
sed: can’t read /etc/puppet/hiera.yaml: No such file or directory
++ t
++ exit 2

How to solve it?

Hi Sir,
I was able to access this demo_vm using cirros as user with floating IP.
But from demo_vm, the following fails.
$ ping 8.8.8.8
How to solve it?

Add the DNS Sever IP while creating the external network subnet.

Thank you
I added a DNS server to the external network subnet, but it doesn’t work.
Other conditions are as follows.
Ping from demo_vm
to: FloatingIP -> Success
to: GestOS IP -> Success
(Use VirtualBox and bridge connection)
to: Host Default GW IP -> Failure
How to solve it?

I’m sorry.
In another VirtualBox environment, ping 8.8.8.8 was successful.

@Manusia:
I had the same error and now i found the issue
There is a problem with epel and the hiera package (hiera-3.6.0-2.el8)
The centos-openstack-ussuri repo provides hiera-3.6.0-1.el8

A look at the filelist in rpm shows that hiera-3.6.0-2.el8 didn’t include:
/etc/puppet
/etc/puppet/hiera.yaml

So remove hiera, disable epel and reinstall openstack-packstack:
dnf remove hiera -y
dnf config-manager –disable epel
dnf install -y openstack-packstack

when i uninstall hiera, i cannot reinstall packtack. I’m on the openstack-victoria. Can you help me with this problem?

First of all, this is a great reference document for Openstack installation on CentOS. I followed every step in the document and was successful. However, ran into some issue during last few steps.

Can you please help me with some trigger or suggestion to solve this issue? Thanks a lot in advance.

Copying Puppet modules and manifests [ DONE ]
Applying 192.168.0.3_controller.pp
192.168.0.3_controller.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.0.3_controller.pp
Error: Facter: error while resolving custom fact “rabbitmq_nodename”: undefined method `[]’ for nil:NilClass
You will find full trace in log /var/tmp/packstack/20200723-225316-7yvkznxa/manifests/192.168.0.3_controller.pp.log
Please check log file /var/tmp/packstack/20200723-225316-7yvkznxa/openstack-setup.log for more information
Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.0.3. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.0.3/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
[[email protected]

Please check controller.pp.log and openstack-setup.log, You might get the clue there. I would suggest give a try one more time.

Thanks a lot for helping me for previous query. Earlier problem fixed, now I am able to create VM instance successfully, but I can’t connect from Virtual box machine (CentOS machine) and outside network.

Furthermore, there are no route 172.24.1.0/24 on my Virtual box machine (CentOS machine).

Is Virtual box IP address and External Network should be on same subnet? I tried that and that still not worked.

It seems Neutron not properly configured.

Please suggest me how to fix this (Using same commands provided in the document).

Virtual box IP address: 192.168.0.104 (Subnet = 192.168.0.0/24)
Private Network: 10.20.1.0/24
External Network: 172.24.1.0/24

================
CLI Commands:
================
source keystonerc_admin
neutron net-create external_network –provider:network_type flat –provider:physical_network extnet –router:external
neutron subnet-create –name public_subnet –enable_dhcp=True –allocation-pool=start=172.24.1.210,end=172.24.1.230 –gateway=172.24.1.1 external_network 172.24.1.0/24
neutron router-create dev-router
neutron router-gateway-set dev-router external_network
neutron net-create pvt_net
neutron subnet-create –name pvt_subnet pvt_net 10.20.1.0/24
neutron router-interface-add dev-router pvt_subnet

(keystone_admin)]# ifconfig -a
br-ex: flags=4163 mtu 1500
inet 192.168.0.104 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 33024 bytes 27440713 (26.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29794 bytes 17763062 (16.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

br-int: flags=4098 mtu 1500
ether 86:09:c0:60:00:4e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099 mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:49:2d:fa:d2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp0s3: flags=4163 mtu 1500
inet6 fe80::a00:27ff:fe8a:a9cd prefixlen 64 scopeid 0x20
ether 08:00:27:8a:a9:cd txqueuelen 1000 (Ethernet)
RX packets 38913 bytes 28292425 (26.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 38573 bytes 21086877 (20.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 2708229 bytes 2168061258 (2.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2708229 bytes 2168061258 (2.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ovs-system: flags=4098 mtu 1500
ether 22:df:63:8b:31:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

(keystone_admin)]# ip route show
default via 192.168.0.1 dev br-ex
169.254.0.0/16 dev enp0s3 scope link metric 1002
169.254.0.0/16 dev br-ex scope link metric 1004
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.0.0/24 dev br-ex proto kernel scope link src 192.168.0.104
[[email protected]

Источник

Понравилась статья? Поделить с друзьями:
  • Ошибка неизвестный порт
  • Ошибка невозможно подключиться к базе
  • Ошибка неисправность рулевого управления форд фокус 2 рестайлинг
  • Ошибка невозможно подключение ldap
  • Ошибка неизвестный издатель сертификата