Error when i try to install Openstack platform 10 in rhel 7.3

Latest response

Hello!!

I´m trying to install Openstack platform 10 in my pc with a local network (192.168.1.1) and with vmware workstation 8 in a rhel 7.3

I´m following this resources

https://access.redhat.com/documentation/en/red-hat-openstack-platform/10/paged/director-installation-and-usage/chapter-4-installing-the-undercloud
https://www.youtube.com/watch?v=ulpxlNFfbF8&t=45s

But I have always the same error when i execute the command openstack undercloud install

e
2017-02-08 20:00:27 - Warning: /Firewall[999 drop all]: Skipping because of failed dependencies
2017-02-08 20:00:28 - Error: Could not find a suitable provider for mysql_datadir
2017-02-08 20:00:28 - Error: Could not find a suitable provider for mysql_database
2017-02-08 20:00:28 - Error: Could not find a suitable provider for mysql_user
2017-02-08 20:00:28 - Notice: Finished catalog run in 9.76 seconds
+ rc=4
+ set -e
+ echo 'puppet apply exited with exit code 4'
puppet apply exited with exit code 4
+ '[' 4 '!=' 2 -a 4 '!=' 0 ']'
+ exit 4
[2017-02-08 20:00:35,450] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]

[2017-02-08 20:00:35,450] (os-refresh-config) [ERROR] Aborting...
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1214, in install
_run_orc(instack_env)
File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1003, in _run_orc
_run_live_command(args, instack_env, 'os-refresh-config')
File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 519, in _run_live_command
raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
Command 'instack-install-undercloud' returned non-zero exit status 1

This is my undercloud.conf

local_ip = 192.168.1.60/24
undercloud_public_vip = 192.168.1.61
undercloud_admin_vip = 192.168.1.62
local_interface = ens33
masquerade_network = 192.168.1.0/24
dhcp_start = 192.168.1.100
dhcp_end = 192.168.1.120
network_cidr = 192.168.1.0/24
network_gateway = 192.168.1.60
inspection_iprange = 192.168.1.130,192.168.1.160

Please I need help!!!

Thanks

Regards

Responses

It looks like something is failing earlier in the Puppet configuration stage. Is there any chance you can post the full output of the Puppet run?

Hi Daniel, I am having the same issue as above - where can I get the output of the Puppet run to post to you? Thanks Siobhán

The log from the openstack undercloud install is sent to stdout, but with OSPd 10 a copy of the log is stored in /home/stack/.instack/install-undercloud.log. For Puppet errors, it's a good idea to grep for Error:. For example:

$ grep "Error:" ~/.instack/install-undercloud.log

Usually it's the first failed Puppet action is responsible for the other failures -- the rest are usually dependent on that first failed Puppet action.

Also just an additional note: don't post your full .instack/install-undercloud.log publicly. This log file can contain authentication details to certain OpenStack services on your undercloud.

Hi Daniel, I am having the same trouble. Solution: Add DNS-Entry in /etc/resolv.conf Check it: $ cat /etc/resolv.conf nameserver 208.67.222.222 $ ping www.google.at

Hi Ernst,

Thanks for your solution. Can you elaborate a little on the faulty nameserver entry? It might be useful for people who also encounter this issue.

Dan

We resolved this issue by correcting the local_interface = value from en49 to the correct eno49.

Hello!!

I´m trying to install Openstack platform 10 in my pc with a local network (192.168.0.28) and with virtualbox 5.1.22 in a rhel 7.3

I´m following this resources

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html/director_installation_and_usage/chap-installing_the_undercloud#sect-Completing_the_Undercloud_Configuration

I'm getting below error when i execute the command openstack undercloud install

[stack@manager ~]$ grep "Error:" ~/.instack/install-undercloud.log 2017-11-04 11:58:29,013 INFO: 2017-11-04 11:58:29 - Notice: /Stage[setup]/Tripleo::Network::Os_net_config/Exec[os-net-config]/returns: I Error: [Errno 2] No such file or directory: '/sys/class/net/eth1/address' 2017-11-04 11:58:29,024 INFO: 2017-11-04 11:58:29 - Error: /bin/os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes returned 1 instead of one of [0,2] 2017-11-04 11:58:29,025 INFO: 2017-11-04 11:58:29 - Error: /Stage[setup]/Tripleo::Network::Os_net_config/Exec[os-net-config]/returns: change from notrun to 0 2 failed: /bin/os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes returned 1 instead of one of [0,2] 2017-11-04 11:58:46,441 INFO: 2017-11-04 11:58:46 - Error: /Stage[main]/Rabbitmq/Rabbitmq_plugin[rabbitmq_management]: Provider rabbitmqplugins is not functional on this host 2017-11-04 11:58:46,467 INFO: 2017-11-04 11:58:46 - Error: Could not prefetch mysql_grant provider 'mysql': Command mysql is missing 2017-11-04 11:58:46,933 INFO: 2017-11-04 11:58:46 - Error: Could not prefetch keystone_service provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:46,947 INFO: 2017-11-04 11:58:46 - Error: Could not prefetch keystone_role provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:47,888 INFO: 2017-11-04 11:58:47 - Error: Could not prefetch keystone_endpoint provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:49,154 INFO: 2017-11-04 11:58:49 - Error: Could not prefetch keystone_tenant provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:49,775 INFO: 2017-11-04 11:58:49 - Error: Could not prefetch keystone_domain provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:52,047 INFO: 2017-11-04 11:58:52 - Error: Could not find a suitable provider for mysql_datadir 2017-11-04 11:58:52,052 INFO: 2017-11-04 11:58:52 - Error: Could not find a suitable provider for mysql_database 2017-11-04 11:58:52,052 INFO: 2017-11-04 11:58:52 - Error: Could not find a suitable provider for mysql_user

This is my undercloud.conf

local_ip = 192.168.56.28/24 undercloud_public_vip = 192.168.56.29 undercloud_admin_vip = 192.168.56.30 local_interface = enp0s8 masquerade_network = 192.168.56.0/24 dhcp_start = 192.168.56.100 dhcp_end = 192.168.56.120 network_cidr = 192.168.56.0/24 network_gateway = 192.168.56.28

Would be great if I get some quick help here !!!

It looks like the local_interface param is being set to eth1. Is there anything else in the undercloud.conf file? Maybe an additional local_interface param set to eth1? Or maybe local_interface = enp0s8 is acidentally commented out?

Also can you provide the contents of /etc/os-net-config/config.json?

Hi Daniel, Thank you so much for providing the necessary info to get know issues ..

I'm sure, there is no additional param set to eth1 and eth1 is replaced by enp0s3 in the undecloud conf file.

Please find below the undercloud.conf file, [stack@manager ~]$ cat undercloud.conf |grep -v ^$ | grep -v ^# [DEFAULT] local_ip = 192.168.0.29/24 network_gateway = 192.168.0.29 undercloud_public_vip = 192.168.0.30 undercloud_admin_vip = 192.168.0.31 local_interface = enp0s3 local_mtu = 1500 network_cidr = 192.168.0.0/24 masquerade_network = 192.168.0.0/24 dhcp_start = 192.168.0.50 dhcp_end = 192.168.0.70 inspection_iprange = 192.168.0.100,192.168.0.120

Find below the content of /etc/os-net-config/config.json [stack@manager ~]$ cat /etc/os-net-config/config.json {"network_config": [{"addresses": [{"ip_netmask": "192.168.0.29/24"}], "mtu": 1500, "ovs_extra": ["br-set-external-id br-ctlplane bridge-id br-ctlplane"], "members": [{"type": "interface", "name": "enp0s3", "primary": "true", "mtu": 1500}], "type": "ovs_bridge", "name": "br-ctlplane"}]}

Please help me !!!

For your information... [stack@manager ~]$ grep "Error:" ~/.instack/install-undercloud.log 2017-11-05 02:00:04,968 INFO: 2017-11-05 02:00:04 - Error: Execution of '/bin/yum -d 0 -e 0 -y install iptables-services' returned 1: Error downloading packages: 2017-11-05 02:00:04,968 INFO: 2017-11-05 02:00:04 - Error: /Stage[setup]/Firewall::Linux::Redhat/Package[iptables-services]/ensure: change from absent to present failed: Execution of '/bin/yum -d 0 -e 0 -y install iptables-services' returned 1: Error downloading packages: 2017-11-05 02:00:10,617 INFO: 2017-11-05 02:00:10 - Error: /Stage[main]/Rabbitmq/Rabbitmq_plugin[rabbitmq_management]: Provider rabbitmqplugins is not functional on this host 2017-11-05 02:00:10,661 INFO: 2017-11-05 02:00:10 - Error: Could not prefetch mysql_grant provider 'mysql': Command mysql is missing 2017-11-05 02:00:11,156 INFO: 2017-11-05 02:00:11 - Error: Could not prefetch keystone_service provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:11,171 INFO: 2017-11-05 02:00:11 - Error: Could not prefetch keystone_role provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:12,335 INFO: 2017-11-05 02:00:12 - Error: Could not prefetch keystone_endpoint provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:13,737 INFO: 2017-11-05 02:00:13 - Error: Could not prefetch keystone_tenant provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:14,338 INFO: 2017-11-05 02:00:14 - Error: Could not prefetch keystone_domain provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:16,491 INFO: 2017-11-05 02:00:16 - Error: Could not find a suitable provider for mysql_datadir 2017-11-05 02:00:16,491 INFO: 2017-11-05 02:00:16 - Error: Could not find a suitable provider for mysql_database 2017-11-05 02:00:16,491 INFO: 2017-11-05 02:00:16 - Error: Could not find a suitable provider for mysql_user [stack@manager ~]$ sudo yum install iptables-services Loaded plugins: product-id, search-disabled-repos, subscription-manager https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: cdn.redhat.com; Unknown error" Trying other mirror. Resolving Dependencies --> Running transaction check ---> Package iptables-services.x86_64 0:1.4.21-18.2.el7_4 will be installed --> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================

Package Arch Version Repository Size

Installing: iptables-services x86_64 1.4.21-18.2.el7_4 rhel-7-server-rpms 51 k

Transaction Summary

Install 1 Package

Total download size: 51 k Installed size: 25 k Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. iptables-services-1.4.21-18.2. FAILED https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/Packages/iptables-services-1.4.21-18.2.el7_4.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: cdn.redhat.com; Unknown error" Trying other mirror. Error downloading packages: iptables-services-1.4.21-18.2.el7_4.x86_64: [Errno 256] No more mirrors to try.

It looks like an issue with DNS resolution. What output do you get with the following commands:

$ grep undercloud_nameservers /home/stack/undercloud.conf 
$ cat /etc/resolv.conf

Check iptables service is running or not .It should be able to start before triggering the undercloud instillation

HI, I am trying to install Openstack ver 10 and getting the follow error after "openstack undercloud install":

***********omitted********** 2018-12-20 23:49:01,937 INFO: + '[' '!' -f /root/.ssh/id_rsa ']' 2018-12-20 23:49:01,937 INFO: + cat /root/.ssh/id_rsa.pub 2018-12-20 23:49:01,937 INFO: cat: /root/.ssh/id_rsa.pub: No such file or directory 2018-12-20 23:49:01,939 INFO: [2018-12-20 23:49:01,938] (os-refresh-config) [ERROR] during post-configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/post-configure.d']' returned non-zero exit status 1] 2018-12-20 23:49:01,940 INFO: 2018-12-20 23:49:01,940 INFO: [2018-12-20 23:49:01,938] (os-refresh-config) [ERROR] Aborting...

Any suggestions?

Sorry for the delayed response, Sergey.

Did you run the "openstack undercloud install" command the the "stack" user or the "root" user?

Hello!

I am having the exact same issue but with OpenStack 12. I run it, as written in the install docu, as stack user. The problem here is permissions. Some files are not readable by stack user and /etc/os-net-config has no write permission for stack user.

After I changed permissions of /etc/os-net-config and /usr/libexec/os-apply-config/ to stack user it fails again later because it wont to write to /root and don't has permission.

Hi Matthias,

Just want to double check, have you enabled passwordless sudoer access for the "stack" user:

[root@director ~]# echo "stack ALL=(root) NOPASSWD:ALL" | tee -a /etc/sudoers.d/stack
[root@director ~]# chmod 0440 /etc/sudoers.d/stack
[root@director ~]# su - stack
[stack@director ~]$

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/12/html/director_installation_and_usage/chap-installing_the_undercloud#sect-Creating_a_Director_Installation_User

I ask because that would probably be the main thing I can think of off the top of my head that could be causing your issue.

Hello Daniel!

When I wrote: as written in the install docu I meant: I exactly follow the steps in the documentation. Yes, I did enable the sudoer access without PW for the stack user. And I tried something more: I installed release 12 without any problem. After that, I tried upgrading to release 13 and it fails again with the same error. Moreover: When I start installation without sudoer it will ask immediately for the root password. When I try to start it as root it doesn't start: "This command cannot run under root user. Switch to a normal user."

Okay, so here's what I know for sure:

  • You definitely need to enable passwordless sudo access for the stack user
  • To install, you definitely run "openstack undercloud install" as the stack user, but not "sudo openstack undercloud install"
  • To upgrade, you definitely run "openstack undercloud upgrade" as the stack user, but not "sudo openstack undercloud upgrade"

The reason why we provide passwordless sudo access to stack but don't run the commands as sudo is becasue the scripts used as part of the install and upgrade need to run some processes as sudo and some processes as plain stack user access. So the scripts will determine what will be "sudo" and what won't be.

So I'm not sure what could be causing the failure. If you've followed the installation or upgrade process as documented, it's probably best to open a support case so our support engineers can take a closer look.

I've got a similar issue where my undercloud install is stuck at applying the puppet config, very early in the undercloud install process. ... 2019-08-22 11:49:10,483 INFO: + puppet apply --summarize --detailed-exitcodes /etc/puppet/manifests/puppet-stack-config.pp ... I've checked the following: IPv6 enabled and running (modprobe.d, ifcfg-* files, grub, lsmod) iptables and ip6tables running DNS resolution working

Installer complains about keepalived and the fact that its not enabled and running.

019-08-22 15:01:28,190 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 20-os-apply-config completed 2019-08-22 15:01:28,191 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 Running /usr/libexec/os-refresh-config/configure.d/30-reload-keepalived 2019-08-22 15:01:28,193 INFO: + systemctl is-enabled keepalived 2019-08-22 15:01:28,200 INFO: Failed to get unit file state for keepalived.service: No such file or directory 2019-08-22 15:01:28,202 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 30-reload-keepalived completed 2019-08-22 15:01:28,203 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 Running /usr/libexec/os-refresh-config/configure.d/40-hiera-datafiles 2019-08-22 15:01:28,320 INFO: [2019/08/22 03:01:28 PM] [WARNING] DEPRECATED: falling back to /var/run/os-collect-config/os_config_files.json 2019-08-22 15:01:28,333 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 40-hiera-datafiles completed 2019-08-22 15:01:28,334 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 Running /usr/libexec/os-refresh-config/configure.d/40-stop-running-epmd 2019-08-22 15:01:28,336 INFO: + RESTART_RABBITMQ= 2019-08-22 15:01:28,337 INFO: + systemctl is-active rabbitmq-server 2019-08-22 15:01:28,339 INFO: unknown 2019-08-22 15:01:28,340 INFO: + systemctl try-restart 'epmd@*' 2019-08-22 15:01:28,357 INFO: + '[' -n '' ']' 2019-08-22 15:01:28,360 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 40-stop-running-epmd completed 2019-08-22 15:01:28,361 INFO: dib-run-parts Thu Aug 22 15:01:28 NZST 2019 Running /usr/libexec/os-refresh-config/configure.d/50-puppet-stack-config 2019-08-22 15:01:28,363 INFO: + set -o pipefail 2019-08-22 15:01:28,363 INFO: + puppet_apply puppet apply --summarize --detailed-exitcodes /etc/puppet/manifests/puppet-stack-config.pp 2019-08-22 15:01:28,364 INFO: + set +e

2019-08-22 15:01:28,364 INFO: + puppet apply --summarize --detailed-exitcodes /etc/puppet/manifests/puppet-stack-config.pp

AFAIK, the undercloud installer will install and configure the keepalived service.

Thoughts??

Hi Devendra,

AFAIK, keepalived should be installed on the undercloud as a part of the process.

What version of OSP are you using?